/* FAQ: grouped native <details> accordions, ruled rows, plus/minus marker. No JS. */

.faq__grid { display: grid; grid-template-columns: minmax(200px, .32fr) 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }

/* sticky index of groups */
.faq__aside { position: sticky; top: calc(var(--crisis-h) + var(--nav-h) + 28px); display: grid; gap: 22px; }
.faq__index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.faq__index li { border-bottom: 1px solid var(--line); }
.faq__index a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; text-decoration: none; color: var(--ink-2); font-size: .9375rem; transition: color .25s var(--ease); }
.faq__index a span { font-size: var(--fs-label); letter-spacing: var(--track-label); font-variant-numeric: tabular-nums; color: var(--sapphire); min-width: 2.6em; }
.faq__index a:hover { color: var(--sapphire); }
.faq__help { background: var(--sapphire-night); color: #E9ECF5; border-radius: var(--radius); padding: 18px 20px; }
.faq__help p { margin: 0; font-size: var(--fs-small); line-height: 1.6; }
.faq__help b { color: #fff; }
.faq__help a { color: var(--dawn); font-weight: 600; }

/* groups */
.faq__body { max-width: 860px; min-width: 0; }
.faq__note { margin: 0 0 clamp(40px, 5vw, 64px); max-width: 62ch; }
.faq__note .tag { vertical-align: 1px; margin: 0 2px; }
.faq__group { scroll-margin-top: calc(var(--crisis-h) + var(--nav-h) + 24px); }
.faq__group + .faq__group { margin-top: clamp(64px, 8vw, 120px); }
.faq__h { font-size: clamp(1.75rem, 2.6vw, 2.4rem); margin: 0 0 clamp(18px, 2.4vw, 30px); }

/* one ruled row per question */
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: clamp(20px, 2.2vw, 28px) 0; cursor: pointer; border-radius: 2px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 4px; }
.faq__q { font-family: var(--serif); font-weight: 600; font-size: clamp(1.125rem, 1.45vw, 1.3rem); line-height: 1.35; letter-spacing: -.01em; color: var(--ink); transition: color .25s var(--ease); }
.faq__item summary:hover .faq__q, .faq__item[open] .faq__q { color: var(--sapphire); }

/* plus / minus: two bars, the vertical one folds flat when open */
.faq__mark { position: relative; flex: none; width: 34px; height: 34px; margin-top: -3px; border-radius: 50%; border: 1px solid rgba(20, 24, 28, .18); transition: background .3s var(--ease), border-color .3s var(--ease); }
.faq__mark::before, .faq__mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); border-radius: 1px; transition: transform .35s var(--ease), background .3s var(--ease); }
.faq__mark::after { transform: rotate(90deg); }
.faq__item summary:hover .faq__mark { border-color: var(--sapphire); }
.faq__item[open] .faq__mark { background: var(--sapphire); border-color: var(--sapphire); }
.faq__item[open] .faq__mark::before, .faq__item[open] .faq__mark::after { background: #fff; }
.faq__item[open] .faq__mark::after { transform: rotate(0deg); }

.faq__a { padding: 0 58px clamp(24px, 2.6vw, 34px) 0; max-width: 66ch; }
.faq__a p { margin: 0; color: var(--ink-2); line-height: 1.7; }
.faq__a p + p { margin-top: 12px; }
.faq__a a { color: var(--sapphire); }
.faq__a .tag { margin-left: 6px; vertical-align: 1px; }
.faq__item[open] .faq__a { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq__item[open] .faq__a { animation: none; } .faq__mark::before, .faq__mark::after { transition: none; } }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .faq__index { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .faq__index li { border-bottom: 0; }
  .faq__index a { min-height: 44px; align-items: center; padding: 0 14px; gap: 8px; border: 1px solid rgba(20, 24, 28, .18); border-radius: 999px; background: #fff; font-size: .875rem; }
  .faq__index a span { min-width: 0; }
  .faq__a { padding-right: 0; }
}

/* a cream breather midway down the questions (Hugo audit 23 Oct) */
.faq__break { margin: clamp(40px, 5vw, 64px) 0; }
.faq__break img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.faq__break figcaption { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-2); }
.faq__index a.is-here { color: var(--ink); font-weight: 600; }
.faq__index a.is-here span { color: var(--ink); }
