/* Public FAQ module. All selectors are scoped to preserve the shared portal theme. */
.faq-page { --faq-muted: #53627b; max-width: 1240px; margin: 0 auto; padding: 18px 12px 44px; }
.faq-page [hidden] { display: none !important; }
.faq-page a { text-underline-offset: 4px; }
.faq-page button { cursor: pointer; }
.faq-page .faq-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.faq-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--faq-muted); margin-bottom: 22px; }
.faq-breadcrumb a { color: var(--brap-navy-800); text-decoration: none; }
.faq-breadcrumb a:hover { text-decoration: underline; }
.faq-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 28px; padding: clamp(20px, 3vh, 28px) 32px clamp(30px, 4vh, 36px); border-radius: 18px; color: white; background: linear-gradient(115deg, #101c4a 5%, #172d68 100%); overflow: hidden; }
.faq-hero::after { content: ''; z-index: -1; position: absolute; width: 520px; height: 520px; right: -110px; top: -210px; border: 1px solid #ffffff14; border-radius: 50%; box-shadow: 0 0 0 60px #ffffff04, 0 0 0 120px #ffffff03; pointer-events: none; }
.faq-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #d7e1ff; font-size: .69rem; letter-spacing: .16em; font-weight: 700; }
.faq-eyebrow > span { width: 7px; height: 7px; background: #ffb568; border-radius: 50%; }
.faq-page .faq-hero h1 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.16; letter-spacing: -.035em; color: white; margin: 10px 0; overflow-wrap: anywhere; }
.faq-hero h1 em { font-style: normal; color: #ffc180; }
.faq-hero-copy > p { max-width: 575px; color: #d5ddf3; line-height: 1.6; font-size: .9rem; margin: 0; }
.faq-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: #c2cce7; font-size: .73rem; }
.faq-page .faq-document { align-self: center; padding: 16px; border: 1px solid #ffffff30; border-radius: 12px; background: #ffffff09; color: white; text-decoration: none; transition: background .15s, border-color .15s; }
.faq-document:hover { background: #ffffff14; border-color: #ffffff70; }
.faq-document-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.faq-pdf-icon { display: grid; place-items: center; width: 28px; height: 30px; color: #ffc180; }
.faq-pdf-icon svg { width: 24px; height: 28px; }
.faq-file-type { font-size: .64rem; letter-spacing: .12em; color: #cbd6f5; font-weight: 600; }
.faq-document strong { display: block; font-size: 1.1rem; line-height: 1.35; letter-spacing: -.025em; }
.faq-document-description { display: block; font-size: .8rem; line-height: 1.55; color: #cbd6f5; margin-top: 8px; }
.faq-document-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .82rem; font-weight: 700; color: #ffca93; padding-top: 10px; margin-top: 12px; border-top: 1px solid #ffffff24; }
.faq-document-action svg { width: 16px; height: 16px; }
.faq-search-panel { position: relative; margin: -16px 24px 22px; padding: 8px 14px; border: 1px solid #e2e7f1; border-radius: 12px; background: white; box-shadow: 0 8px 30px #101c4a09; }
.faq-search { display: flex; align-items: center; gap: 10px; margin: 0; }
.faq-search > svg { flex-shrink: 0; width: 18px; height: 18px; margin-left: 2px; color: #536786; }
.faq-page .faq-search input { flex: 1; min-width: 0; width: 100%; min-height: 44px; padding: 10px 2px; border: none; border-radius: 4px; background: transparent; color: var(--brap-ink); font-size: .9rem; box-shadow: none; }
.faq-search input::placeholder { color: #68758b; opacity: 1; }
.faq-search-submit { display: flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 14px; min-height: 44px; border: none; border-radius: 8px; padding: 10px 16px; background: var(--brap-blue); color: white; font-weight: 700; font-size: .84rem; }
.faq-search-submit:hover { background: var(--brap-navy-700); }
.faq-search-clear { border: 0; background: transparent; font-size: 1.5rem; color: #53627b; min-width: 38px; min-height: 42px; }
.faq-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 1px solid #eef1f6; padding: 8px 2px 0; font-size: .71rem; }
.faq-suggestions > span { color: var(--faq-muted); margin-right: 3px; }
.faq-suggestions button { min-height: 28px; padding: 4px 8px; border: 1px solid #e8edf5; border-radius: 5px; background: #f7f9fc; color: #344767; font-size: .71rem; }
.faq-suggestions button:hover { background: #e9efff; border-color: #b6c8f2; }
.faq-workspace { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; margin-top: 22px; align-items: start; }
.faq-sidebar { position: sticky; top: 22px; }
.faq-topic-panel { border: 1px solid var(--brap-line); background: white; border-radius: 12px; padding: 16px 10px 10px; }
.faq-page .faq-topic-panel h2 { font-size: .69rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin: 0 12px 16px; color: #65728a; }
.faq-topics { display: flex; flex-direction: column; gap: 5px; }
.faq-page .faq-topic { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 10px; border-radius: 8px; color: #42526c; font-size: .78rem; font-weight: 600; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.faq-topic:hover { background: #f5f7fc; }
.faq-page .faq-topic.is-active { color: #1d48bd; background: #edf2ff; }
.faq-topic-icon { font-size: .75rem; font-weight: 700; width: 18px; text-align: center; }
.faq-topic-count { background: #f1f4f9; padding: 2px 7px; min-width: 26px; text-align: center; border-radius: 5px; font-size: .69rem; }
.faq-topic.is-active .faq-topic-count { background: white; }
.faq-help-card { border: 1px solid #e0e7f5; background: #edf2fb; border-radius: 12px; padding: 18px; margin-top: 16px; }
.faq-help-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #c9d5ec; color: #294f9c; border-radius: 50%; font-size: 1rem; margin-bottom: 10px; font-weight: 600; }
.faq-page .faq-help-card h2 { font-size: .98rem; line-height: 1.4; font-weight: 700; color: var(--brap-navy-800); margin: 0 0 10px; }
.faq-help-card p { font-size: .79rem; color: var(--faq-muted); line-height: 1.8; margin: 0 0 16px; }
.faq-help-card a { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: #224baf; text-decoration: none; }
.faq-help-card a:hover { text-decoration: underline; }
.faq-results { min-width: 0; scroll-margin-top: 24px; }
.faq-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.faq-page .faq-results-toolbar h2 { color: var(--brap-ink); font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 5px; }
.faq-results-toolbar p { font-size: .76rem; color: var(--faq-muted); margin: 0; }
.faq-expand { flex-shrink: 0; font-size: .76rem; color: #214bb3; border: 1px solid #d9e2f3; background: white; padding: 10px 13px; border-radius: 7px; }
.faq-expand:hover { background: #edf2ff; }
.faq-expand:disabled { opacity: .5; cursor: default; }
.faq-group { margin-bottom: 22px; scroll-margin-top: 24px; }
.faq-group-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 13px; }
.faq-page .faq-group-heading h3 { font-size: 1rem; color: #1a2b4c; font-weight: 700; margin: 0 0 6px; }
.faq-group-heading p { font-size: .75rem; color: var(--faq-muted); margin: 0; line-height: 1.65; }
.faq-group-heading > span { white-space: nowrap; color: #68758b; font-size: .7rem; }
.faq-question-list { border: 1px solid var(--brap-line); background: white; border-radius: 12px; overflow: hidden; }
.faq-item { border-bottom: 1px solid #e8edf5; scroll-margin-top: 24px; }
.faq-item:last-child { border-bottom: 0; }
.faq-item > summary { display: flex; align-items: baseline; gap: 12px; min-height: 44px; list-style: none; cursor: pointer; padding: 15px 18px; color: #263956; line-height: 1.65; font-size: .88rem; font-weight: 600; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: #f8faff; }
.faq-item > summary:focus-visible { outline-offset: -4px; }
.faq-number { font-size: .69rem; color: #6a7a93; font-weight: 500; min-width: 20px; }
.faq-question-text { flex: 1; min-width: 0; }
.faq-toggle { position: relative; top: 3px; flex-shrink: 0; width: 19px; height: 19px; color: #6a7a93; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; width: 11px; height: 1.5px; background: currentColor; top: 8px; left: 4px; }
.faq-toggle::after { transform: rotate(90deg); transition: transform .15s; }
.faq-item[open] { background: #fbfcff; }
.faq-item[open] > summary { color: #1d48bd; }
.faq-item[open] .faq-toggle { color: #1d48bd; }
.faq-item[open] .faq-toggle::after { transform: rotate(0); }
.faq-answer { padding: 0 50px 16px; color: #47566e; font-size: .85rem; line-height: 1.8; overflow-wrap: anywhere; }
.faq-answer p { margin: 0 0 12px; }
.faq-answer-topic { display: inline-block; color: #536a91; font-size: .69rem; font-weight: 700; background: #edf2fc; padding: 3px 8px; border-radius: 4px; margin-bottom: 12px; }
.faq-answer-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid #e5ebf5; margin-top: 14px; font-size: .66rem; color: #64748b; }
.faq-page .faq-answer-link { display: inline-flex; align-items: center; gap: 6px; color: #345daf; font-size: .7rem; text-decoration: none; }
.faq-answer-link:hover { text-decoration: underline; }
.faq-answer-link svg { width: 15px; height: 15px; }
.faq-table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid #dce4f1; border-radius: 8px; }
.faq-table-hint { display: none; }
.faq-page .faq-table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .75rem; line-height: 1.65; overflow-wrap: normal; }
.faq-table-wrap caption { caption-side: top; color: #2c4168; padding: 12px; font-weight: 700; background: #f4f7fd; }
.faq-table-wrap th, .faq-table-wrap td { padding: 12px; text-align: left; border-bottom: 1px solid #e3e9f4; vertical-align: top; }
.faq-table-wrap thead th { color: #2c4168; background: #eaf0fb; font-weight: 700; }
.faq-table-wrap tbody th { font-weight: 500; }
.faq-table-wrap tr:last-child > * { border-bottom: 0; }
.faq-treatment { display: inline-block; border-radius: 4px; padding: 2px 7px; color: #2d4c8b; background: #edf2fc; font-weight: 700; }
.faq-source-note { display: flex; gap: 13px; padding: 20px 0; color: #66748a; border-top: 1px solid #dfe5f0; }
.faq-source-note > span { display: grid; place-items: center; flex-shrink: 0; width: 18px; height: 18px; border: 1px solid #9eabc0; border-radius: 50%; font-size: .7rem; }
.faq-source-note p, .faq-noscript { font-size: .73rem; line-height: 1.8; margin: 0; }
.faq-empty { text-align: center; padding: 55px 24px; border: 1px dashed #cbd6e8; border-radius: 14px; background: white; margin-bottom: 30px; }
.faq-empty-icon { display: grid; place-items: center; margin: 0 auto 18px; width: 44px; height: 44px; border-radius: 50%; background: #edf2ff; color: #3653a0; font-size: 1.5rem; }
.faq-empty h3 { font-size: 1.2rem; font-weight: 700; }
.faq-empty p { color: var(--faq-muted); font-size: .85rem; }
.faq-empty button { margin-top: 15px; color: white; background: var(--brap-blue); border: 0; padding: 12px 18px; border-radius: 8px; font-size: .8rem; }
@media (max-width: 1000px) {
    .faq-table-hint { display: block; font-size: .72rem; color: #536a91; }
    .faq-hero { grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; padding-inline: 24px; }
    .faq-workspace { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
    .faq-topic-panel { padding-inline: 8px; }
    .faq-page .faq-topic { gap: 7px; padding-inline: 8px; }
    .faq-answer { padding-inline: 25px; }
    .faq-item > summary { padding-inline: 18px; gap: 10px; }
}
@media (max-width: 760px) {
    .faq-page { padding: 14px 2px 30px; }
    .faq-hero { grid-template-columns: minmax(0, 1fr); padding: 20px 20px 30px; gap: 16px; border-radius: 14px; }
    .faq-page .faq-hero h1 { font-size: 1.85rem; }
    .faq-hero-copy > p { font-size: .88rem; }
    .faq-hero-meta { font-size: .68rem; gap: 8px; }
    .faq-page .faq-document { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding: 12px; }
    .faq-document-top { grid-row: 1 / 3; margin: 0; }
    .faq-file-type, .faq-document-description, .faq-document strong br { display: none; }
    .faq-document strong { font-size: .95rem; }
    .faq-document-action { margin: 0; padding-top: 7px; border: 0; font-size: .76rem; }
    .faq-document-action svg { width: 16px; height: 16px; }
    .faq-search-panel { margin: -14px 8px 18px; padding: 8px 10px; }
    .faq-search { gap: 6px; }
    .faq-search > svg { width: 18px; height: 18px; }
    .faq-page .faq-search input { font-size: max(16px, .9rem); }
    .faq-search-submit { padding: 10px; }
    .faq-search-submit span { display: none; }
    .faq-search-clear { min-width: 30px; padding-inline: 2px; }
    .faq-suggestions { gap: 6px; font-size: .68rem; }
    .faq-suggestions button { min-height: 32px; }
    .faq-workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
    .faq-sidebar { position: static; }
    .faq-help-card { display: none; }
    .faq-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .faq-page .faq-topic { font-size: .73rem; grid-template-columns: minmax(0, 1fr) auto; padding: 9px; }
    .faq-topic-icon { display: none; }
    .faq-topic-panel { padding: 12px 8px 8px; }
    .faq-results-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
    .faq-page .faq-results-toolbar h2 { font-size: 1.2rem; }
    .faq-expand { padding: 9px; font-size: .69rem; }
    .faq-group-heading > span { display: none; }
    .faq-item > summary { font-size: .86rem; padding: 14px 12px; }
    .faq-answer { padding: 0 18px 16px; font-size: .84rem; }
    .faq-answer-footer { flex-direction: column; align-items: flex-start; }
}
/* Short laptop/zoomed viewports need less introductory space. Content remains
   naturally sized, so enlarged text and translated copy can grow without clipping. */
@media (min-width: 761px) and (max-height: 760px) {
    .faq-hero { padding-top: 18px; padding-bottom: 30px; }
    .faq-page .faq-hero h1 { font-size: 1.9rem; }
    .faq-document-description { display: none; }
}
@media (prefers-reduced-motion: reduce) { .faq-page *, .faq-page *::after { transition: none !important; scroll-behavior: auto !important; } }
