:root {
    color-scheme: light;
    --navy: #123b70;
    --blue: #1769aa;
    --bg: #f3f6fb;
    --ink: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 1; padding: 12px; background: #fff; }
.skip-link:focus { top: 8px; }
.site-header { background: linear-gradient(120deg, #102f59, #1769aa); color: #fff; padding: 24px max(20px, calc((100vw - 1180px) / 2)); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; width: fit-content; }
.brand:hover { color: #fff; }
.brand:focus-visible { outline-color: #fff; }
.logo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #ffffff20; display: grid; place-items: center; }
h1 { font-size: 22px; margin: 0; }
.site-header p { margin: 5px 0 0; color: #dceafa; font-size: 13px; }
.site-header p span { white-space: nowrap; }
.layout { max-width: 1180px; margin: 24px auto; padding: 0 18px; display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "sidebar content"; gap: 20px; }
.sidebar { grid-area: sidebar; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 16px #0f172a08; padding: 18px; align-self: start; min-width: 0; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding-block: 4px 10px; cursor: pointer; }
.category-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.category-nav a { display: block; padding: 9px 10px; border-radius: 9px; color: #334155; font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.category-nav a:hover, .category-nav a[aria-current] { background: #f0f6fd; color: #145b98; }
.category-nav a[aria-current] { font-weight: 650; }
.category-note { color: var(--muted); font-size: 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.content { grid-area: content; min-width: 0; }
.hero { grid-area: search; padding: 24px; background: linear-gradient(130deg, #fff, #f1f7ff); border: 1px solid var(--line); border-radius: 16px; }
.hero h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.35; }
.hero > p { margin: 0; color: var(--muted); }
.search { display: flex; gap: 8px; margin-top: 18px; }
.search input[type="search"] { flex: 1; min-width: 0; padding: 14px 15px; border: 1px solid #cbd5e1; border-radius: 11px; font: inherit; line-height: normal; background: #fff; color: var(--ink); }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { border-color: #4b91cf; }
.primary { border: 0; background: var(--blue); color: #fff; padding: 0 20px; border-radius: 11px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 48px; }
.primary:hover { background: var(--navy); }
.app-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; border: 1px solid var(--line); background: #fff; color: #475569; border-radius: 20px; padding: 6px 11px; font-size: 12px; text-decoration: none; }
.chip:hover, .chip[aria-current] { background: #eaf3ff; border-color: #8ab9e8; color: #145b98; }
.chip[aria-current] { font-weight: 650; }
.filter-status { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; color: #475569; font-size: 12px; }
.filter-status p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.filter-status strong { font-weight: 600; }
.reset { display: inline-block; padding-block: 6px; }
.results { grid-area: results; margin-top: 18px; min-width: 0; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.results-heading h2 { margin: 0; font-size: 16px; }
.results-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 10px; }
.faq > summary { padding: 16px; cursor: pointer; list-style: none; border-radius: 12px; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary:hover { background: #fafcff; }
.question { margin: 0 0 5px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.faq-meta { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.faq-meta > span { margin-inline: 3px; }
.preview { display: block; color: #475569; font-size: 13px; overflow-wrap: anywhere; }
.answer-toggle { display: inline-flex; align-items: center; margin-top: 12px; border: 1px solid #c5def6; background: #eaf3ff; border-radius: 8px; padding: 7px 10px; min-height: 34px; font-size: 12px; color: #145b98; font-weight: 600; }
.when-open { display: none; }
.faq[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.faq[open] .when-closed, .faq[open] .preview { display: none; }
.faq[open] .when-open { display: inline; }
.answer { margin: 0 16px 16px; padding: 16px; background: #f7faff; border-radius: 10px; font-size: 14px; line-height: 1.7; color: #475569; overflow-wrap: anywhere; overflow-x: auto; }
.answer > :first-child { margin-top: 0; }
.answer > :last-child { margin-bottom: 0; }
.answer p, .answer ol, .answer ul { margin-block: 10px; }
.answer ol, .answer ul { padding-left: 22px; }
.answer li + li { margin-top: 7px; }
.answer img { max-width: 100%; height: auto; }
.answer pre { white-space: pre-wrap; }
.answer table { border-collapse: collapse; }
.answer td, .answer th { border: 1px solid #cbd5e1; padding: 8px; }
.module { font-size: 12px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.empty-state { text-align: center; color: var(--muted); padding: 28px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; overflow-wrap: anywhere; }
.empty-state h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.empty-state p { font-size: 13px; margin: 0 0 12px; }
.text-link { display: inline-block; padding-block: 8px; font-size: 13px; font-weight: 600; }
.site-footer { max-width: 1180px; margin: 0 auto 30px; padding: 0 18px; color: var(--muted); font-size: 11px; }
.site-footer span { margin-inline: 4px; }
@media (max-width: 780px) {
    .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "sidebar" "results"; margin-top: 14px; gap: 14px; }
    .content { display: contents; }
    .search { flex-direction: column; }
    .primary { padding: 12px; }
    .category-nav { max-height: 180px; overflow-y: auto; padding: 4px; }
    .category-nav a { min-height: 44px; display: flex; align-items: center; }
    .category-note { margin-top: 10px; padding-top: 8px; }
    .chip, .answer-toggle { min-height: 44px; }
    .results { margin-top: 0; }
}
@media (max-width: 420px) {
    .site-header { padding: 20px 18px; }
    .site-header p { font-size: 12px; }
    h1 { font-size: 20px; }
    .hero { padding: 20px; }
    .hero h2 { font-size: 21px; }
    .hero > p { font-size: 14px; }
    .empty-state { padding: 24px 18px; }
    .answer { margin-inline: 12px; padding: 12px; }
}
