/* EIU v2 FAQ page (faq.html) - built by scripts/build_faq.py. Palette: red/navy, Inter, Lucide. No gold. */
.page-faq { --r: 12px; --sh: 0 1px 2px rgba(16,24,40,.05), 0 6px 18px rgba(16,24,40,.06); --sh-h: 0 14px 34px rgba(16,24,40,.12); --fq-top: 86px; }
.fq-tile { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #FBEDED; color: var(--red); transition: background .25s, color .25s, transform .3s var(--ease); }

/* hero */
.fq-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #F7F8FB 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.fq-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fq-hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.fq-hero__blob--1 { width: 380px; height: 380px; right: -80px; top: -120px; background: #F6D6D8; animation: fq-float 14s ease-in-out infinite alternate; }
.fq-hero__blob--2 { width: 320px; height: 320px; left: -120px; bottom: -160px; background: #D9E2F4; animation: fq-float 18s ease-in-out infinite alternate-reverse; }
.fq-hero__grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(40,74,141,.12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 75%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 75%); }
@keyframes fq-float { to { transform: translate3d(-30px, 24px, 0) scale(1.06); } }
.fq-hero__in { padding-block: 2rem 2.4rem; text-align: center; }
.fq-crumb ol { display: flex; justify-content: center; gap: .45rem; margin: 0 0 1.3rem; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.fq-crumb li + li::before { content: "›"; margin-right: .45rem; color: #A0A6B1; }
.fq-crumb a { color: var(--navy); text-decoration: none; font-weight: 500; }
.fq-crumb a:hover { color: var(--red); }
.fq-crumb [aria-current] { color: var(--ink); font-weight: 600; }
.fq-eyebrow { display: inline-flex; align-items: center; gap: .4rem; }
.fq-hero h1 { margin: .5rem auto 0; font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1.15; max-width: 22ch; letter-spacing: -.02em; }
.fq-hero__lead { margin: 1rem auto 0; max-width: 60ch; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.fq-search { position: relative; max-width: 640px; margin: 1.6rem auto 0; }
.fq-search input { width: 100%; height: 58px; padding: 0 3.2rem 0 3.25rem; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); box-shadow: 0 10px 30px rgba(26,29,35,.07); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.fq-search input::placeholder { color: #8A909B; }
.fq-search input::-webkit-search-cancel-button { display: none; }
.fq-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(40,74,141,.14), 0 10px 30px rgba(26,29,35,.07); }
.fq-search__ic { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--navy); display: grid; pointer-events: none; }
.fq-search__x { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gray); color: var(--muted); cursor: pointer; }
.fq-search__x:hover { background: var(--red); color: #fff; }
.fq-hero__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; font-size: .84rem; color: var(--muted); }
.fq-hero__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.fq-hero__meta svg { color: var(--navy); }

/* sticky topic bar */
.fq-bar { position: sticky; top: var(--fq-top); z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.fq-bar.is-stuck { box-shadow: 0 8px 22px rgba(26,29,35,.06); }
.fq-bar__in { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; }
.fq-chips { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.fq-chips::-webkit-scrollbar { display: none; }
.fq-chips ul { display: flex; gap: .5rem; margin: 0; padding: 0 1.5rem 0 0; list-style: none; width: max-content; }
.fq-chip { display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: .86rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.fq-chip svg { color: var(--red); transition: color .2s; }
.fq-chip em { font-style: normal; font-size: .72rem; font-weight: 600; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--gray); color: var(--muted); }
.fq-chip:hover { border-color: #EBC3C3; transform: translateY(-1px); }
.fq-chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.fq-chip.is-active svg { color: #fff; }
.fq-chip.is-active em { background: rgba(255,255,255,.2); color: #fff; }
.fq-tools { display: flex; gap: .4rem; flex: none; }
.fq-tool { display: inline-flex; align-items: center; gap: .35rem; height: 40px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fq-tool:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* body layout */
.fq-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-block: 2.25rem 3.5rem; }
.fq-side { position: sticky; top: calc(var(--fq-top) + 78px); display: grid; gap: 1rem; }
.fq-pop { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.15rem; box-shadow: var(--sh); }
.fq-pop h2 { margin: 0 0 .7rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fq-pop ul { display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.fq-pop a { display: flex; gap: .55rem; align-items: flex-start; padding: .5rem .45rem; border-radius: 8px; color: var(--ink); font-size: .88rem; line-height: 1.4; text-decoration: none; transition: background .2s, color .2s; }
.fq-pop a svg { flex: none; margin-top: 1px; color: var(--red); }
.fq-pop a:hover { background: var(--gray); color: var(--red); }
.fq-mini { padding: 1.15rem; border-radius: var(--r); background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.fq-mini p { margin: 0 0 .85rem; font-size: .88rem; line-height: 1.5; color: rgba(255,255,255,.86); }
.fq-mini strong { color: #fff; }
.fq-mini__btn { width: 100%; justify-content: center; gap: .45rem; }
.fq-status { margin: 0 0 1rem; font-size: .85rem; color: var(--muted); }

/* categories + accordions */
.fq-cat { scroll-margin-top: calc(var(--fq-top) + 80px); }
.fq-cat + .fq-cat { margin-top: 2.25rem; }
.fq-cat[hidden] { display: none; }
.fq-cat__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.fq-cat__head h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.01em; }
.fq-cat__count { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--gray); padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.fq-list { display: grid; gap: .65rem; }
.fq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); scroll-margin-top: calc(var(--fq-top) + 84px); transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
.fq-item:hover { border-color: #EBC3C3; }
.fq-item.is-open { border-color: #EBC3C3; box-shadow: var(--sh); }
.fq-item.is-target { animation: fq-flash 1.6s var(--ease); }
@keyframes fq-flash { 0%, 30% { box-shadow: 0 0 0 4px rgba(183,10,20,.18); } 100% { box-shadow: var(--sh); } }
.fq-item[hidden] { display: none; }
.fq-item__h { margin: 0; font-size: inherit; }
.fq-item__btn { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 60px; padding: .85rem 1rem; background: none; border: 0; border-radius: var(--r); font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.fq-item__btn:focus-visible { outline: 3px solid rgba(40,74,141,.45); outline-offset: 2px; }
.fq-item__n { flex: none; font-size: .74rem; font-weight: 700; color: var(--navy); background: #EEF2FA; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; transition: background .25s, color .25s; }
.fq-item__q { flex: 1; font-weight: 600; font-size: 1rem; line-height: 1.45; transition: color .2s; }
.fq-item__q mark { background: #FDE7B0; color: inherit; border-radius: 3px; padding: 0 1px; }
.fq-item__chev { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gray); color: var(--muted); transition: transform .3s var(--ease), background .2s, color .2s; }
.fq-item__btn:hover .fq-item__q { color: var(--red); }
.fq-item.is-open .fq-item__chev { transform: rotate(180deg); background: var(--red); color: #fff; }
.fq-item.is-open .fq-item__n { background: var(--red); color: #fff; }
.fq-item__panel { overflow: hidden; transition: height .35s var(--ease); }
.fq-item__inner { padding: 0 1.25rem 1.15rem calc(1rem + 34px + .85rem); }
.fq-ans { color: #374151; font-size: .95rem; line-height: 1.7; }
.fq-ans > :first-child { margin-top: 0; }
.fq-ans p { margin: 0 0 .75rem; }
.fq-ans h4 { margin: 1.1rem 0 .4rem; font-size: .98rem; color: var(--navy-deep); }
.fq-ans ul, .fq-ans ol { margin: 0 0 .85rem; padding-left: 1.2rem; }
.fq-ans li { margin-bottom: .35rem; }
.fq-ans li::marker { color: var(--red); }
.fq-ans a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.fq-ans a:hover { color: var(--navy); }
.fq-table { overflow-x: auto; margin: .5rem 0 1rem; border: 1px solid var(--line); border-radius: 10px; }
.fq-table:focus-visible { outline: 3px solid rgba(40,74,141,.45); }
.fq-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .88rem; }
.fq-table th, .fq-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fq-table thead th { background: var(--navy-deep); color: #fff; font-weight: 600; }
.fq-table tbody tr:nth-child(even) { background: #F9FAFB; }
.fq-table tbody tr:last-child td { border-bottom: 0; }
.fq-item__tools { margin: .35rem 0 0; }
.fq-perma { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: .3rem .55rem; margin-left: -.55rem; border-radius: 8px; transition: background .2s, color .2s; }
.fq-perma:hover { background: var(--gray); color: var(--navy); }
.fq-perma.is-copied { color: #0B7A3B; }
.fq-empty { display: grid; justify-items: center; text-align: center; gap: .75rem; padding: 2.5rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--r); background: #FAFBFC; }
.fq-empty p { margin: 0; color: var(--muted); max-width: 46ch; }
.fq-empty strong { color: var(--ink); }
.fq-empty__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.fq-empty .btn, .fq-help .btn { gap: .45rem; }
.fq-updated { display: flex; align-items: center; gap: .4rem; margin: 2rem 0 0; font-size: .8rem; color: #636A77; /* AA: 5.03:1 on #F5F6F8 */ }

/* still have questions */
.fq-help { padding-bottom: 4rem; }
.fq-help__card { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; padding: 2rem 2.25rem; border-radius: 20px; background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff; box-shadow: var(--sh-h); }
.fq-help__card::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(183,10,20,.45), transparent 65%); }
.fq-help__bot { display: grid; place-items: center; }
.fq-help__bot img { width: 200px; height: auto; filter: drop-shadow(0 16px 24px rgba(0,0,0,.25)); }
.fq-help__kicker { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F6C9CB; }
.fq-help h2 { margin: .45rem 0 .6rem; color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.fq-help__copy > p:not([class]) { margin: 0; color: rgba(255,255,255,.82); max-width: 56ch; line-height: 1.6; }
.fq-help__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.fq-wa, .fq-mail { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .45rem 1.1rem; border-radius: 10px; font-weight: 700; font-size: .9rem; text-decoration: none; line-height: 1.2; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.fq-wa small, .fq-mail small { display: block; font-weight: 500; font-size: .76rem; opacity: .85; }
.fq-wa { background: #25D366; color: #052E16; }
.fq-wa:hover { background: #1EBE5A; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37,211,102,.28); }
.fq-mail { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.fq-mail:hover { background: #fff; color: var(--navy-deep); transform: translateY(-2px); }
.fq-help__note { display: inline-flex; align-items: center; gap: .4rem; margin: 1rem 0 0; font-size: .85rem; color: rgba(255,255,255,.8); }

/* motion (JS adds .fq-motion; never on reduced motion) */
.fq-motion .fq-cat, .fq-motion .fq-help__card { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fq-motion .is-in { opacity: 1 !important; transform: none !important; }

/* responsive */
@media (max-width: 1023px) {
  .fq-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .fq-side { position: static; order: 2; grid-template-columns: 1fr 1fr; }
  .fq-tool span { display: none; }
  .fq-tool { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 767px) {
  .fq-hero__in { padding-block: 1.4rem 1.8rem; }
  .fq-hero__lead { font-size: .96rem; }
  .fq-search input { height: 52px; font-size: 16px; }
  .fq-side { grid-template-columns: 1fr; }
  .fq-item__btn { gap: .65rem; padding: .8rem .8rem; }
  .fq-item__n { display: none; }
  .fq-item__q { font-size: .95rem; }
  .fq-item__inner { padding: 0 .95rem 1rem; }
  .fq-cat__head .fq-tile { width: 38px; height: 38px; }
  .fq-help__card { grid-template-columns: 1fr; text-align: center; padding: 1.75rem 1.25rem; gap: 1rem; }
  .fq-help__bot img { width: 140px; }
  .fq-help__cta { justify-content: center; }
  .fq-help__cta > * { flex: 1 1 100%; justify-content: center; }
  .fq-help__note { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fq-hero__blob { animation: none; }
  .fq-item__panel, .fq-item__chev, .fq-chip, .fq-item, .fq-wa, .fq-mail { transition: none; }
  .fq-item.is-target { animation: none; box-shadow: 0 0 0 3px rgba(183,10,20,.25); }
  .fq-motion .fq-cat, .fq-motion .fq-help__card { opacity: 1; transform: none; }
}
.fq-search__x[hidden] { display: none; }
.fq [hidden] { display: none !important; }
