/* FAQ shares the publication layout while keeping questions as native disclosures. */
.ab-faq-page, .ab-faq-page main { background: var(--ab-surface); color: var(--ab-ink); }
.ab-faq-main { --site-font-size-scale: 1; padding-block: 152px 64px; font-family: var(--ab-font); }
.ab-faq-main :is(h1,h2,h3,p) { margin: 0; }
.ab-faq-main :is(h1,h2,h3) { overflow-wrap: anywhere; }
.ab-faq-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: start; gap: clamp(32px,4vw,64px); }
.ab-faq-sidebar { position: sticky; top: 120px; min-width: 0; max-height: calc(100svh - 144px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ab-border) transparent; }
.ab-faq-main .ab-faq-eyebrow { margin-bottom: 12px; color: var(--ab-muted); font-size: .75rem; font-weight: 400; line-height: 1.5; }
.ab-faq-intro h1 { color: var(--ab-brand); font-size: clamp(1.875rem,2.6vw,2.125rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
.ab-faq-main .ab-faq-description { max-width: 48ch; margin-top: 16px; color: var(--ab-muted); font-size: .875rem; line-height: 1.8; }
.ab-faq-search { display: grid; gap: 10px; margin-top: 28px; }
.ab-faq-search label { color: var(--ab-ink); font-size: .75rem; line-height: 1.6; }
.ab-faq-search > input { min-width: 0; width: 100%; }
.ab-faq-search__meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; min-height: 36px; }
.ab-faq-search__meta p { color: var(--ab-muted); font-size: .75rem; line-height: 1.6; }
.ab-faq-search__meta button { min-height: 36px; border: 0; padding: 4px 0; background: transparent; color: var(--ab-brand); font: 400 .75rem/1.5 var(--ab-font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ab-faq-support { margin-top: 20px; border-top: 1px solid var(--ab-border); padding-top: 20px; }
.ab-faq-support h2 { color: var(--ab-ink); font-size: .875rem; font-weight: 500; line-height: 1.6; }
.ab-faq-support .ab-ui-button { justify-content: space-between; gap: 24px; width: 100%; margin-top: 12px; }
.ab-faq-support a svg { flex: none; width: 16px; height: 16px; transition: transform var(--ab-motion) var(--ab-ease); }
.ab-faq-questions { min-width: 0; }
.ab-faq-toolbar { display: flex; align-items: baseline; min-height: 48px; margin-bottom: 16px; }
.ab-faq-toolbar h2 { color: var(--ab-brand); font-size: 1.125rem; font-weight: 500; line-height: 1.5; }
.ab-faq-list { overflow: hidden; border: 1px solid var(--ab-border); border-radius: var(--ab-radius-surface); background: var(--ab-surface); }
.ab-faq-item + .ab-faq-item { border-top: 1px solid var(--ab-border); }
.ab-faq-item { scroll-margin-top: 128px; }
.ab-faq-item summary { display: grid; grid-template-columns: 24px minmax(0,1fr) 20px; align-items: baseline; gap: 16px; min-height: 64px; padding: 18px 20px; list-style: none; cursor: pointer; }
.ab-faq-item summary::-webkit-details-marker { display: none; }
.ab-faq-item__number { color: var(--ab-muted); font-size: .6875rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ab-faq-item__question { color: var(--ab-ink); font-size: .9375rem; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; transition: color var(--ab-motion); }
.ab-faq-item__toggle { align-self: center; flex: none; color: var(--ab-brand); }
.ab-faq-item__toggle-vertical { transform-origin: center; transition: transform var(--ab-motion) var(--ab-ease); }
.ab-faq-item[open] { background: #fcfafd; }
.ab-faq-item[open] .ab-faq-item__toggle-vertical { transform: scaleY(0); }
.ab-faq-item[open] .ab-faq-item__question { color: var(--ab-brand); }
.ab-faq-item__answer { padding: 0 56px 20px 60px; color: var(--ab-muted); font-size: .875rem; line-height: 1.8; overflow-wrap: anywhere; }
.ab-faq-item__answer p { color: inherit; font: inherit; }
.ab-faq-empty { padding: 20px; color: var(--ab-muted); font-size: .875rem; line-height: 1.8; }
.ab-faq-no-results { border: 1px solid var(--ab-border); border-radius: var(--ab-radius-surface); padding: 24px 20px; }
.ab-faq-no-results h3 { color: var(--ab-brand); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.ab-faq-main .ab-faq-no-results p { margin-top: 8px; color: var(--ab-muted); font-size: .875rem; line-height: 1.8; }
.ab-faq-main :is(a,button,summary):focus-visible { outline: 2px solid var(--ab-brand); outline-offset: 4px; }
.ab-faq-item summary:focus-visible { outline-offset: -4px; }
.ab-faq-page main [hidden] { display: none !important; }
@media (hover:hover) {
  .ab-faq-item summary:hover .ab-faq-item__question { color: var(--ab-brand); }
  .ab-faq-support a:hover svg { transform: translateX(3px); }
}
@media (max-width:960px) {
  .ab-faq-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .ab-faq-sidebar { position: static; display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,1fr); align-items: start; column-gap: 32px; max-height: none; overflow: visible; }
  .ab-faq-intro { grid-column: 1; grid-row: 1 / span 2; }
  .ab-faq-search { grid-column: 2; margin-top: 0; }
  .ab-faq-support { grid-column: 2; margin-top: 12px; padding-top: 16px; }
  .ab-faq-support .ab-ui-button { width: auto; min-width: 200px; }
  .ab-faq-toolbar { min-height: auto; margin-bottom: 16px; }
}
@media (max-width:600px) {
  .ab-faq-main { --ab-gutter: 20px; padding-block: 112px 40px; }
  .ab-faq-layout { gap: 24px; }
  .ab-faq-sidebar { display: block; }
  .ab-faq-intro h1 { font-size: clamp(1.875rem,8vw,2.125rem); }
  .ab-faq-main .ab-faq-description { margin-top: 12px; font-size: .875rem; }
  .ab-faq-search { margin-top: 20px; }
  .ab-faq-support { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; padding-top: 16px; }
  .ab-faq-support h2 { font-size: .8125rem; }
  .ab-faq-support .ab-ui-button { min-width: 0; margin-top: 0; padding-inline: 16px; }
  .ab-faq-toolbar h2 { font-size: 1rem; }
  .ab-faq-item summary { grid-template-columns: 18px minmax(0,1fr) 18px; gap: 10px; min-height: 64px; padding: 16px; }
  .ab-faq-item__question { font-size: .875rem; }
  .ab-faq-item__toggle { width: 18px; height: 18px; }
  .ab-faq-item__answer { padding: 0 16px 18px 44px; font-size: .875rem; }
}
@media (prefers-reduced-motion:reduce) {
  .ab-faq-support a svg, .ab-faq-item__question, .ab-faq-item__toggle-vertical { transition: none; }
}
@media print {
  .ab-faq-main { padding-top: 24px; }
  .ab-faq-layout, .ab-faq-sidebar { display: block; }
  .ab-faq-sidebar { position: static; max-height: none; overflow: visible; }
  .ab-faq-questions { margin-top: 24px; }
  .ab-faq-support, .ab-faq-search, .ab-faq-no-results, .ab-faq-item__toggle { display: none !important; }
}
