/* FAQ page: search, topic chips, sources (workstream B). Loaded after legacy.css. */
.ep-fq { display: grid; gap: 14px; min-width: 0; }
.ep-fq__tools { display: grid; gap: 10px; }
.ep-fq__search { position: relative; display: flex; align-items: center; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.ep-fq__search:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.ep-fq__search > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.ep-fq__search input { flex: 1; min-width: 0; height: 50px; padding: 0 8px 0 42px; border: 0; background: transparent; font: 500 16px var(--sans); color: var(--text); }
.ep-fq__search input:focus { outline: none; }
.ep-fq__search input::-webkit-search-cancel-button { display: none; }
.ep-fq__clear { display: grid; place-items: center; width: 44px; height: 44px; margin-right: 3px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.ep-fq__clear[hidden] { display: none; }
.ep-fq__clear svg { width: 18px; height: 18px; }
.ep-fq__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-fq__cats button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 600 14px var(--sans); color: var(--ink); cursor: pointer; transition: background var(--ep-dur-s, .24s), color var(--ep-dur-s, .24s), transform var(--ep-dur-xs, .12s); }
.ep-fq__cats button:active { transform: scale(.96); }
.ep-fq__cats button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.ep-fq__count { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.3em; }
.ep-fq [data-fq-item][hidden] { display: none; }
.ep-fq mark { padding: 0 2px; border-radius: 3px; background: #fde9a8; color: inherit; }
.ep-fq__src { margin: 8px 0 0; font-size: 13px; }
.ep-fq__src a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.ep-fq__none { margin: 0; padding: 18px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.ep-fq__checked { margin: 0; font-size: 12.5px; color: var(--muted); }
.ep-fq__note { display: grid; gap: 4px; margin-top: 8px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); max-width: 380px; transform: rotate(-.6deg); transition: transform var(--ep-dur-s, .24s) var(--ep-ease-spring, ease); }
.ep-fq__note:hover { transform: rotate(0) translateY(-2px); }
.ep-fq__note strong { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); }
.ep-fq__note span { font-size: 14px; color: var(--muted); }
.ep-fq__note em { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--brand-deep); }
/* Desktop: a topic index fills the side column under the sticky intro */
.ep-fq__index { display: none; }
@media (min-width: 960px) {
    .ep-fq__index { display: block; width: 100%; max-width: 380px; margin-top: 14px; }
    .ep-fq__index h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
    .ep-fq__index ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
    .ep-fq__index button { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; transition: padding var(--ep-dur-s, .24s) var(--ep-ease-out, ease); }
    .ep-fq__index button span { font-family: var(--serif); font-size: 18px; color: var(--ink); }
    .ep-fq__index button small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
    .ep-fq__index button:hover { padding-left: 6px; }
    .ep-fq__index button[aria-pressed="true"] span { color: var(--brand-deep); font-style: italic; }
}
@media (prefers-reduced-motion: reduce) {
    .ep-fq__index button { transition: none; } .ep-fq__note, .ep-fq__note:hover { transform: none; transition: none; } }

/* Phones & tablets (mobile pass 2026-11-11): small print 14px+ */
@media (max-width: 959px) {
    .ep-fq__count, .ep-fq__src, .ep-fq__checked { font-size: 14px; }
}

/* ═══ v5 white: search + topic chips on top, hairline accordion rows ═══ */
.fq { display: grid; gap: 24px; min-width: 0; }
.fq__tools { display: grid; gap: 16px; }
@media (min-width: 960px) { .fq__tools { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 24px; } .fq__count { grid-column: 1 / -1; } }
.fq__search { background: #fff; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .2s; }
.fq__search:hover { box-shadow: inset 0 0 0 1px var(--g-400, #9aa5b5); }
.fq__search:focus-within { box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-100, #dbe6ff); }
.fq__search input { height: 48px; padding-left: 44px; font-size: 16px; }
.fq__search > svg { left: 16px; }
.fq__search .ep-fq__clear { border-radius: var(--radius-sm); }
.fq__search .ep-fq__clear:hover { background: var(--paper-2); color: var(--text); }
.fq__cats { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.fq__cats::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .fq__cats { flex-wrap: wrap; overflow: visible; } }
.fq__cats button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); cursor: pointer; transition: background .2s; }
.fq__cats button:hover { background: var(--paper-2); }
.fq__cats button:focus-visible, .fq__q summary:focus-visible, .fq__act:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fq__cats button small { color: var(--muted); font: inherit; font-variant-numeric: tabular-nums; }
.fq__cats button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.fq__cats button[aria-pressed="true"] small { color: rgba(255, 255, 255, .7); }
.fq__count { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--muted); }
.fq__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0 56px; align-items: start; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .fq__list { grid-template-columns: 1fr 1fr; } }
.fq__list > li[hidden] { display: none; }
.fq mark { padding: 0 2px; border-radius: 3px; background: var(--brand-100, #dbe6ff); color: inherit; }
.fq__q { border-bottom: 1px solid var(--line); background: none; }
.fq__q summary { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; }
.fq__q summary:hover .fq__t { color: var(--brand-deep); }
.fq__q summary::-webkit-details-marker { display: none; }
.fq__n { display: none; }
.fq__t { font-weight: 600; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; transition: color .2s; }
.fq__q summary i { position: relative; width: 20px; height: 20px; }
.fq__q summary i::before, .fq__q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--text); transition: transform .2s ease-out; }
.fq__q summary i::after { transform: rotate(90deg); }
.fq__q[open] summary i::after { transform: rotate(0); }
.fq__a { padding: 0 36px 24px 0; font-size: 1rem; line-height: 1.55; color: var(--muted); max-width: 64ch; }
.fq__a p { margin: 0; }
/* Promise: will / will not */
.fq__promise { display: grid; gap: 16px; }
@media (min-width: 760px) { .fq__promise { grid-template-columns: 1fr 1fr; } }
.fq__pcard { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fq__pcard h3 { margin: 0 0 16px; font: 600 clamp(1.25rem, 1.4vw + .6rem, 1.6rem)/1.15 var(--display); letter-spacing: -.02em; color: var(--text); }
.fq__pcard ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.fq__pcard li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.4; color: var(--text); }
.fq__pcard li:first-child { border-top: 0; }
.fq__pcard svg { flex: none; width: 16px; height: 16px; margin-top: 4px; }
.fq__pcard--yes svg { color: var(--ok); }
.fq__pcard--no svg { color: var(--err); }
/* Ask: four actions, one dark */
.fq__acts { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fq__acts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .fq__acts { grid-template-columns: repeat(4, 1fr); } }
.fq__act { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: 128px; padding: 24px; border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--text); transition: box-shadow .2s ease-out; }
.fq__act:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.fq__act b { font: 600 1.25rem/1.2 var(--display); letter-spacing: -.02em; }
.fq__act span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); color: var(--text); }
.fq__act svg { width: 18px; height: 18px; }
.fq__act--main { background: var(--ink); color: #fff; box-shadow: none; }
.fq__act--main:hover { box-shadow: var(--shadow-2); background: #162036; }
.fq__act--main span { background: #fff; color: var(--ink); }
.fq__act--main:focus-visible { outline-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .fq__act, .fq__q summary i::before, .fq__q summary i::after { transition: none; } }

/* ═══ v5 FAQ ═══ */
.fq__search { border-radius: var(--radius-pill); box-shadow: none; }
.fq__search:hover { box-shadow: none; }
.fq__search:focus-within { box-shadow: 0 0 0 3px var(--brand); }
.fq__cats button { border-radius: var(--radius-pill); transition: transform .22s var(--spring), background .2s; }
.fq__cats button:hover { transform: translateY(-2px); background: var(--c-tint, var(--brand-50)); }
.fq__cats button[aria-pressed="true"] { background: var(--sun); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sv-sec--band .fq__list { border-top: 0; gap: 12px 20px; }
.sv-sec--band .fq__q { background: #fff; border: 0; border-radius: var(--radius-lg); padding: 0 24px; transition: transform .26s var(--spring), box-shadow .26s var(--ease); }
.sv-sec--band .fq__q:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.fq__q[open] { box-shadow: 0 0 0 2px var(--brand); }
.fq__q summary i { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); transition: background .2s, transform .3s var(--spring); }
.fq__q summary i::before, .fq__q summary i::after { background: var(--brand); }
.fq__q[open] summary i { background: var(--sun); transform: rotate(180deg); }
.fq__q[open] summary i::before, .fq__q[open] summary i::after { background: var(--ink); }
.fq__t { font-weight: 700; }
.fq__pcard { border: 0; box-shadow: none; background: var(--c); color: var(--c-on); position: relative; overflow: hidden; transition: transform .26s var(--spring); }
.fq__pcard:hover { transform: translateY(-4px) rotate(-.4deg); }
.fq__pcard h3, .fq__pcard li { color: var(--c-on); }
.fq__pcard h3 { font-weight: 800; }
.fq__pcard li { border-color: color-mix(in srgb, var(--c-on) 25%, transparent); }
.fq__pcard--yes svg, .fq__pcard--no svg { color: var(--sun); }
.fq__act { background: #fff; box-shadow: none; border-radius: var(--radius-lg); transition: transform .26s var(--spring), box-shadow .26s var(--ease); }
.fq__act:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); }
.fq__act span { background: var(--brand-50); color: var(--brand); transition: transform .3s var(--spring), background .2s; }
.fq__act:hover span { transform: rotate(-12deg) scale(1.12); background: var(--sun); color: var(--ink); }
.fq__act--main { background: var(--brand); color: #fff; }
.fq__act--main:hover { background: var(--brand-deep); }
.fq__act--main span { background: var(--sun); color: var(--ink); }
.fq__act b { font-weight: 800; }
