/* The FAQ page (/faq/), layered on styles.css the way for/for.css is. The
   question markup (details.faq-item) matches the for-faq pattern so the two
   read the same; the page adds a jump nav and a two-column group layout. */

.faq-hero { padding: 36px 0 8px; }
.faq-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-faint); margin-bottom: 28px;
}
.faq-crumbs a { color: var(--text-dim); }
.faq-crumbs a:hover { color: var(--amber-light); }
.faq-crumbs [aria-current] { color: var(--text); }
.faq-hero .section-head { max-width: 760px; }
.faq-hero h1 { margin-top: 18px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.02em; }
.faq-hero .lede { margin-top: 20px; }
.faq-hero .lede a { color: var(--amber-light); text-decoration: underline; text-underline-offset: 3px; }

/* Jump nav: one pill per group. */
.faq-nav { margin-top: 28px; }
.faq-nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-nav a {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: rgba(17, 24, 39, 0.6);
  color: var(--text-dim); font-size: 13.5px; font-weight: 600; line-height: 1.2;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.faq-nav a:hover { border-color: rgba(245, 158, 11, 0.5); color: var(--text); }

/* Groups: a sticky heading column beside the questions. */
.faq-group { padding: 40px 0 8px; scroll-margin-top: 88px; }
.faq-group-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-group-head { position: sticky; top: 96px; }
.faq-group-head h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.015em; margin-top: 8px; line-height: 1.2; }
.faq-group-head p { margin-top: 12px; color: var(--text-dim); font-size: 15.5px; line-height: 1.65; }
.faq-group-head p a { color: var(--amber-light); text-decoration: underline; text-underline-offset: 3px; }

.faq-list { max-width: 820px; }
.faq-item { border-top: 1px solid var(--line); padding: 4px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--amber); font-size: 22px; font-weight: 500;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0 0 14px; color: var(--text-dim); font-size: 15.5px; line-height: 1.65; max-width: 70ch; }
.faq-item p:last-of-type { margin-bottom: 18px; }
.faq-item ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-dim); font-size: 15.5px; line-height: 1.65; max-width: 70ch; }
.faq-item li { margin-top: 4px; }
.faq-item li::marker { color: var(--amber); }
.faq-item a { color: var(--amber-light); text-decoration: underline; text-underline-offset: 3px; }
.faq-item a:hover { color: var(--amber); }
.faq-item strong { color: var(--text); font-weight: 600; }

/* Still have a question: three cards above the CTA strip. */
.faq-more { padding: 48px 0 24px; }
.faq-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.faq-more-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(17, 24, 39, 0.6);
  color: var(--text); transition: border-color 0.2s ease;
}
.faq-more-card:hover { border-color: rgba(245, 158, 11, 0.4); }
.faq-more-card strong { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.faq-more-card span { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.faq-more-card em { font-style: normal; color: var(--amber-light); font-weight: 600; font-size: 14px; margin-top: 6px; }

@media (max-width: 980px) {
  .faq-group-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-group-head { position: static; }
  .faq-group { padding-top: 32px; }
}
@media (max-width: 760px) {
  .faq-more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .faq-hero h1 { font-size: clamp(30px, 8vw, 40px); }
  .faq-item summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-nav a, .faq-more-card { transition: none; }
}
