/* ==========================================================================
   FAQ: same design system as the About, Submit, Packages and Careers pages
   (navy · maroon · ivory). Loaded only on the FAQ page, after about.css.
   Everything is scoped to .abf so no other page is affected.
   ========================================================================== */

/* ---------- Sticky elements need the page not to clip them: main.css sets html/body overflow-x hidden ---------- */
html:has(body.gbp-faq-page), body.gbp-faq-page { overflow-x: visible; }

/* ---------- Topic index (sticky, under the header) ---------- */
.abf .abf-index { position: sticky; top: var(--abf-top, 0px); z-index: 30; background: var(--ab-maroon-deep); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .6); }
.abf .abf-index__in { padding-top: 0; padding-bottom: 0; }
.abf .abf-index ul { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 0; margin: 0; list-style: none; }
.abf .abf-index a {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
	border: 1px solid rgba(233, 205, 209, .28); color: var(--ab-ivory); text-decoration: none;
	font: 500 14px/1.2 var(--font-sans); transition: background .3s, border-color .3s, color .3s;
}
.abf .abf-index a span { font-size: 12px; color: var(--ab-rose); }
.abf .abf-index a:hover { background: rgba(233, 205, 209, .14); border-color: rgba(233, 205, 209, .6); }
.abf .abf-index a:focus-visible { outline: 2px solid var(--ab-rose); outline-offset: 3px; }
.abf .abf-group { scroll-margin-top: calc(var(--abf-top, 0px) + 80px); }

/* ---------- Topic groups ---------- */
.abf .abf-group__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.abf .abf-group__head { position: sticky; top: calc(var(--abf-top, 0px) + 110px); }
.abf .abf-group__count { display: block; font: 700 clamp(56px, 7vw, 96px)/.9 var(--ab-serif); letter-spacing: -.04em; color: var(--ab-maroon); margin-bottom: 14px; }
.abf .abf-group__head .ab-h2 { margin-bottom: .4em !important; }
.abf .abf-group__n { margin: 0; font: 600 13px/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ab-maroon); }
.abf .abf-group__head .abf-group__count,
.abf .abf-group__head .ab-h2 { transition: color .4s; }
.abf .ab-sec--navy .abf-group__count { color: var(--ab-rose); }
.abf .ab-sec--navy .abf-group__n { color: var(--ab-rose); }
.abf .ab-sec--navy .ab-h2 { color: var(--ab-ivory); }

/* ---------- Accordion ---------- */
.abf .abf-acc { border-top: 1px solid rgba(91, 20, 35, .2); }
.abf .abf-acc:last-child { border-bottom: 1px solid rgba(91, 20, 35, .2); }
.abf .ab-sec--navy .abf-acc { border-top-color: rgba(246, 239, 223, .16); }
.abf .ab-sec--navy .abf-acc:last-child { border-bottom-color: rgba(246, 239, 223, .16); }
.abf .abf-acc summary {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
	list-style: none; cursor: pointer; padding: 24px 0;
	font: 700 clamp(18px, 1.8vw, 21px)/1.35 var(--ab-serif); color: var(--ab-navy); transition: color .3s;
}
.abf .ab-sec--navy .abf-acc summary { color: var(--ab-ivory); }
.abf .abf-acc summary::-webkit-details-marker { display: none; }
.abf .abf-acc summary:hover { color: var(--ab-maroon); }
.abf .ab-sec--navy .abf-acc summary:hover { color: var(--ab-rose); }
.abf .abf-acc summary:focus-visible { outline: 2px solid var(--ab-maroon); outline-offset: 4px; border-radius: 2px; }
.abf .ab-sec--navy .abf-acc summary:focus-visible { outline-color: var(--ab-rose); }
.abf .abf-acc__plus { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.abf .abf-acc__plus::before, .abf .abf-acc__plus::after {
	content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor;
	transition: transform .4s var(--ab-ease);
}
.abf .abf-acc__plus::after { transform: rotate(90deg); }
.abf .abf-acc[open] .abf-acc__plus::after { transform: rotate(0deg); }
.abf .abf-acc[open] .abf-acc__plus { transform: rotate(180deg); }
.abf .abf-acc__body { overflow: hidden; }
.abf .abf-acc__body p { margin: 0 0 26px; padding-right: 46px; font-size: 16.5px; line-height: 1.75; color: rgba(20, 35, 61, .88); }
.abf .ab-sec--navy .abf-acc__body p { color: rgba(246, 239, 223, .86); }
.abf .abf-acc[open] .abf-acc__body p { animation: abfFade .5s var(--ab-ease) both; }
@keyframes abfFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Closing band ---------- */
.abf .abf-next .ab-lede { font-size: clamp(17px, 1.6vw, 20px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.abf .abf-group__grid { grid-template-columns: 1fr; }
	.abf .abf-group__head { position: static; }
}
@media (max-width: 720px) {
	.abf .abf-index ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
	.abf .abf-index ul::-webkit-scrollbar { display: none; }
	.abf .abf-index a { flex: 0 0 auto; }
	.abf .abf-acc summary { padding: 20px 0; }
	.abf .abf-acc__body p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.abf .abf-acc[open] .abf-acc__body p { animation: none; }
}
