/* ==========================================================================
   faq.css — page-scoped styles for /faq/
   Loaded on top of design-tokens.css.
   Namespace: .f-*
   ========================================================================== */

.f-page {
  padding: clamp(64px, 9vw, 128px) 0;
  background: var(--bg);
}

.f-page__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

/* ─── Head (eyebrow + h1 + dek) ──────────────────────────────────────────── */

.f-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 720px;
  margin-inline: auto;
}

.f-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.f-h1 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--blue-900);
  margin: 0 0 16px;
}

.f-dek {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--text-500);
  margin: 0 auto;
  max-width: 600px;
}

/* ─── Layout (TOC + body) ────────────────────────────────────────────────── */

.f-layout {
  display: block;
}

@media (min-width: 1024px) {
  .f-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}

.f-faq {
  max-width: 70ch;
}

/* ─── TOC (desktop sidebar) ──────────────────────────────────────────────── */

.f-toc {
  display: none;
}

@media (min-width: 1024px) {
  .f-toc:not(.f-toc--inline) {
    display: block;
    position: sticky;
    top: 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
}

.f-toc__heading {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-500);
  margin: 0 0 12px;
}

.f-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f-toc__link {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-700);
  text-decoration: none;
  transition: color 150ms ease;
  border-left: 2px solid transparent;
  margin-left: -16px;
  padding-left: 14px;
}

.f-toc__link:hover {
  color: var(--gold);
  text-decoration: none;
}

.f-toc__link--active {
  color: var(--gold);
  font-weight: 600;
  border-left-color: var(--gold);
}

/* ─── TOC (mobile inline collapsible) ────────────────────────────────────── */

.f-toc--inline {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .f-toc--inline {
    display: none;
  }
}

.f-toc--inline > summary {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-700);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.f-toc--inline > summary::-webkit-details-marker {
  display: none;
}

.f-toc--inline > summary::after {
  content: '\f078'; /* fa-chevron-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: var(--text-500);
  transition: transform 200ms ease;
}

.f-toc--inline[open] > summary::after {
  transform: rotate(180deg);
}

.f-toc--inline .f-toc__list {
  margin-top: 14px;
}

.f-toc--inline .f-toc__link {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

/* ─── Section ────────────────────────────────────────────────────────────── */

.f-section {
  scroll-margin-top: 24px;
}

.f-section + .f-section {
  margin-top: 64px;
}

.f-section:first-child {
  margin-top: 32px;
}

.f-section__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--blue-900);
  margin: 0 0 16px;
}

/* ─── Q&A disclosure ─────────────────────────────────────────────────────── */

.f-question {
  border-top: 1px solid var(--border);
}

.f-section .f-question:first-of-type {
  border-top: 1px solid var(--border);
}

.f-section > .f-question:last-of-type {
  border-bottom: 1px solid var(--border);
}

.f-question__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--blue-900);
  transition: color 150ms ease;
}

.f-question__summary::-webkit-details-marker {
  display: none;
}

.f-question__summary:hover {
  color: var(--gold);
}

.f-question__summary::after {
  content: '\f078'; /* fa-chevron-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
  transition: transform 200ms ease;
}

.f-question[open] > .f-question__summary::after {
  transform: rotate(180deg);
}

.f-question__body {
  padding: 0 0 24px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-700);
}

.f-question__body > :first-child {
  margin-top: 0;
}

.f-question__body > :last-child {
  margin-bottom: 0;
}

.f-question__body p {
  margin: 0 0 14px;
}

.f-question__body ul,
.f-question__body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.f-question__body li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.f-question__body strong {
  font-weight: 600;
  color: var(--text-700);
}

.f-question__body a {
  color: var(--blue-900);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 150ms ease;
}

.f-question__body a:hover {
  color: var(--gold);
}

.f-question__body h6 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-900);
  margin: 18px 0 8px;
}

/* Two-column grid used for short side-by-side bullet lists inside answers. */
.f-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 14px 0;
}

@media (min-width: 640px) {
  .f-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.f-cols ul {
  margin: 0;
  padding-left: 22px;
}

/* Three-column grid used by Q6 (Organizations/Events/Courses) and similar. */
.f-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 16px 0 8px;
}

@media (min-width: 640px) {
  .f-trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.f-trio__item {
  text-align: center;
}

.f-trio__item h6 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-900);
  margin: 0 0 6px;
}

.f-trio__item p {
  font-size: 14px;
  color: var(--text-500);
  margin: 0;
  line-height: 1.5;
}

/* ─── Subtle callout (used sparingly inside answers) ─────────────────────── */

.f-callout {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 16px;
  margin: 16px 0;
  color: var(--text-700);
}

.f-callout p {
  margin: 0 0 8px;
}

.f-callout p:last-child {
  margin-bottom: 0;
}

.f-callout strong {
  color: var(--blue-900);
}

/* ─── Scripture italic block ─────────────────────────────────────────────── */

.f-quote {
  text-align: center;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-700);
  margin: 24px auto;
  max-width: 520px;
  padding: 0;
  border: none;
}

.f-quote__cite {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-500);
  margin-top: 8px;
}

/* ─── Closing "still have questions" footer ──────────────────────────────── */

.f-still {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.f-still__text {
  font-family: 'Source Sans 3', sans-serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-700);
  max-width: 520px;
  margin: 0 auto 20px;
}

.f-still__cta {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}

.f-still__cta:hover {
  background: var(--gold);
  color: #fff;
  text-decoration: none;
}

/* ─── Print ──────────────────────────────────────────────────────────────── */

@media print {
  .f-toc,
  .f-toc--inline {
    display: none !important;
  }

  .f-page {
    padding: 0;
  }

  .f-layout {
    display: block;
  }

  .f-faq {
    max-width: 100%;
  }

  .f-question__summary::after {
    display: none;
  }

  .f-question[open] > .f-question__body,
  .f-question > .f-question__body {
    display: block !important;
  }

  .f-question__body {
    color: #000;
    font-size: 11pt;
  }

  .f-section__title {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  .f-still {
    display: none;
  }
}
