/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0f2044;
  --navy-mid:#1a3260;
  --gold:    #c9a84c;
  --gold-lt: #f0dfa0;
  --cream:   #f9f7f2;
  --white:   #ffffff;
  --text:    #1e1e2e;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --radius:  10px;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  padding-top: 56px; /* topnav height */
}

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

/* ── Top Nav ────────────────────────────────────────── */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  height: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topnav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.brand-church {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-sep { color: rgba(255,255,255,0.25); font-size: 0.8rem; }

.brand-doc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.topnav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
}

.topnav-links a:hover,
.topnav-links a.active {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(201,168,76,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* ── TOC Bar ────────────────────────────────────────── */
.toc-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 56px;
  z-index: 90;
}

.toc-bar .container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}

.toc-bar a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy-mid);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--cream);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.toc-bar a:hover {
  background: var(--gold-lt);
  border-color: var(--gold);
  color: var(--navy);
}

/* ── Main Doc ───────────────────────────────────────── */
.main { padding: 48px 0 80px; }

.doc-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 32px;
  padding: 40px 40px 48px;
  scroll-margin-top: 120px;
}

/* ── Section Header ─────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.section-letter {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-label-sm {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

/* ── Subsections ────────────────────────────────────── */
.subsection {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px dashed var(--border);
}

.subsection:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.subsec-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.subsec-intro {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-style: italic;
}

/* ── Questions ──────────────────────────────────────── */
.q-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.q-list.mt-0 { margin-bottom: 0; }

.q-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.q-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 1px;
}

.q-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* ── Callouts ───────────────────────────────────────── */
.callout {
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.callout-blue {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
}

.callout-gold {
  background: #fffbeb;
  border-left: 4px solid var(--gold);
}

.callout-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.callout-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.callout-list li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.callout-list li::before {
  content: '—';
  color: var(--muted);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── Objectives Grid ────────────────────────────────── */
.obj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.obj-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.obj-icon { font-size: 1.1rem; flex-shrink: 0; }

.body-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ── Timeline ───────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid var(--border);
  margin-left: 16px;
  padding-left: 32px;
  padding-top: 4px;
}

.tl-month {
  position: relative;
  padding-bottom: 32px;
}

.tl-month::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.tl-month-final { padding-bottom: 0; }

.tl-month-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.tl-month-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.tl-month-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 9px;
}

.tl-intro {
  font-size: 0.83rem;
  color: var(--muted);
  font-style: italic;
  margin: 10px 0 5px;
}

.tl-also {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 4px;
}

.tl-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tl-items li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.tl-items li::before {
  content: '✓';
  color: var(--gold);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.tl-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 10px;
  padding: 8px 12px;
  background: #fffbeb;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}

/* ── Briefings ──────────────────────────────────────── */
.briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.briefing-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 20px 22px;
}

.briefing-when {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.briefing-title {
  font-family: var(--font-heading);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.briefing-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.briefing-items li {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.briefing-items li::before {
  content: '·';
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ── Governance Grid ────────────────────────────────── */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.gov-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 18px 18px;
}

.gov-icon { font-size: 1.2rem; flex-shrink: 0; }
.gov-text { font-size: 0.88rem; line-height: 1.5; }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 24px 0;
}

.footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.03em;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .doc-section { padding: 28px 20px 32px; }
  .section-header { flex-direction: column; gap: 12px; }
  .toc-bar .container { gap: 4px; }
  .toc-bar a { font-size: 0.72rem; padding: 3px 8px; }
  .brand-doc { display: none; }
  .timeline { margin-left: 8px; padding-left: 20px; }
  .tl-month::before { left: -29px; }
}
