/* Shared interface. Generated audit reports keep their own presentation. */
:root {
    color-scheme: light;
    --brand-light: #145da0; --brand-dark: #9bcff4;
    --accent-light: #e4f0fc; --accent-dark: #223b51; --swatch: #9bcff4;
    --bg: #f4f7fa; --surface: #ffffff; --surface-alt: #eaf0f5;
    --text: #172b3a; --muted: #526577; --brand: var(--brand-light); --on-brand: #ffffff;
    --accent: var(--accent-light); --border: #d3dfe7; --input-border: #708494;
    --focus: var(--brand-light); --danger: #a12632; --danger-bg: #fff0f1;
    --control-bg: #ffffff; --control-border: #708494; --control-icon: #4b6477;
    --control-on-accent: #17384c;
    --control-selected-ring: var(--brand-light);
    --shadow: 0 16px 48px rgb(20 45 65 / 6%);
}
:root[data-accent="green"] { --brand-light: #006657; --brand-dark: #83e4ca; --accent-light: #def3e9; --accent-dark: #233e39; --swatch: #83e4ca; }
:root[data-accent="violet"] { --brand-light: #6542b0; --brand-dark: #cdbbfa; --accent-light: #eee7fc; --accent-dark: #39304e; --swatch: #cdbbfa; }
:root[data-accent="amber"] { --brand-light: #865200; --brand-dark: #f4cd85; --accent-light: #fbefdb; --accent-dark: #443822; --swatch: #f4cd85; }
:root[data-accent="rose"] { --brand-light: #a52e59; --brand-dark: #f5b8ce; --accent-light: #fce6ef; --accent-dark: #482b3c; --swatch: #f5b8ce; }
:root[data-theme="dark"], :root[data-color-scheme="dark"] {
    color-scheme: dark;
    --bg: #101b25; --surface: #182735; --surface-alt: #223543;
    --text: #edf5f1; --muted: #b4c6d0; --brand: var(--brand-dark); --on-brand: #172b3a;
    --accent: var(--accent-dark); --border: #3f5867; --input-border: #859ba5;
    --focus: var(--brand-dark); --danger: #ffb3bb; --danger-bg: #402a33;
    --control-bg: #1c262b; --control-border: #667984; --control-icon: #bfd0db;
    --control-selected-ring: transparent;
    --shadow: 0 16px 48px rgb(0 0 0 / 14%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-color-scheme="light"]) {
        color-scheme: dark;
        --bg: #101b25; --surface: #182735; --surface-alt: #223543;
        --text: #edf5f1; --muted: #b4c6d0; --brand: var(--brand-dark); --on-brand: #172b3a;
        --accent: var(--accent-dark); --border: #3f5867; --input-border: #859ba5;
        --focus: var(--brand-dark); --danger: #ffb3bb; --danger-bg: #402a33;
        --control-bg: #1c262b; --control-border: #667984; --control-icon: #bfd0db;
        --control-selected-ring: transparent;
        --shadow: 0 16px 48px rgb(0 0 0 / 14%);
    }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: var(--brand); text-underline-offset: .22em; text-decoration-thickness: .08em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: .14em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .65; }
img, svg { max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.045em; margin-bottom: 1.25rem; font-weight: 750; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); letter-spacing: -.025em; margin-bottom: .75rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }
small { font-size: .875rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }
::selection { color: var(--on-brand); background: var(--brand); }
.container { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.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; z-index: 10; top: 1rem; left: 1rem; padding: .8rem 1rem; background: var(--surface); color: var(--brand); border: 2px solid var(--brand); border-radius: .5rem; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; padding-block: 1.25rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; color: var(--text); font-size: 1.05rem; font-weight: 750; line-height: 1.15; text-decoration: none; }
.brand small { display: block; color: var(--muted); margin-top: .3rem; font-size: .75rem; font-weight: 500; letter-spacing: .045em; }
.brand-mark { display: flex; width: 42px; height: 42px; border-radius: 13px; align-items: center; justify-content: center; background: var(--brand); color: var(--on-brand); font-size: 1.8rem; letter-spacing: -.12em; padding-right: .15em; }
.brand-mark > span { opacity: .7; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: .45rem .85rem; border-radius: .5rem; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--accent); color: var(--brand); }
.site-nav a[aria-current="page"] { font-weight: 750; text-decoration: underline; text-underline-offset: .3em; }
.appearance-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; min-width: 0; }
.theme-switcher { display: flex; gap: 2px; flex-shrink: 0; padding: 5px; margin: 0; border: 1.5px solid var(--control-border); border-radius: 999px; background: var(--control-bg); }
.theme-option { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 56px; width: 56px; height: 56px; margin: 0; border-radius: 50%; color: var(--control-icon); cursor: pointer; }
.theme-option svg { width: 28px; height: 28px; }
.theme-option:hover { background: var(--surface-alt); }
.theme-option:has(input:checked) { background: var(--swatch); color: var(--control-on-accent); box-shadow: inset 0 0 0 1.5px var(--control-selected-ring); }
.theme-option input { position: absolute; inset: 0; appearance: none; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; border-radius: inherit; opacity: 0; cursor: pointer; }
.theme-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.accent-picker { position: relative; flex: 0 0 auto; max-width: 100%; }
.appearance-controls .accent-select { width: auto; min-width: 186px; max-width: 100%; height: 69px; min-height: 69px; appearance: none; margin: 0; padding: .7rem 2.3rem .7rem 2.65rem; border: 1.5px solid var(--control-border); border-radius: 999px; background: var(--control-bg); color: var(--text); font-size: 1rem; font-weight: 700; cursor: pointer; }
.accent-select option { background: var(--surface); color: var(--text); }
.accent-swatch { position: absolute; z-index: 1; left: 1rem; top: 50%; width: 20px; height: 20px; border: 1px solid var(--control-border); border-radius: 50%; background: var(--swatch); transform: translateY(-50%); pointer-events: none; }
.accent-chevron { position: absolute; right: .95rem; top: 50%; transform: translateY(-50%); color: var(--text); pointer-events: none; }
.site-main { padding-block: 3.5rem 4rem; min-height: 65vh; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; margin-bottom: 4rem; }
.hero-copy { padding-top: 1.5rem; }
.eyebrow { display: block; color: var(--brand); font-size: .75rem; line-height: 1.5; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--brand); }
.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.75; max-width: 52ch; }
.muted, .help-text { color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: .3rem .65rem; border: 1px solid var(--border); border-radius: 2rem; background: var(--accent); color: var(--brand); font-size: .8rem; font-weight: 650; line-height: 1.4; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: .9rem; align-items: flex-start; }
.step-number { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid var(--border); border-radius: 50%; color: var(--brand); font-size: .75rem; font-weight: 700; }
.steps strong { display: block; font-size: .95rem; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: .875rem; }
.panel { min-width: 0; padding: 2rem; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { margin-bottom: 1.75rem; }
.panel-heading > p, .page-heading > p { max-width: 65ch; color: var(--muted); }
.page-heading { margin-bottom: 2rem; }
.page-heading h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
legend { padding: 0; font-size: 1.05rem; font-weight: 650; margin-bottom: 1.25rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { min-width: 0; margin-bottom: 1.25rem; }
.field-grid .field { margin-bottom: 0; }
label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: .65rem .85rem; border: 1px solid var(--input-border); border-radius: .6rem; background: var(--surface); color: var(--text); }
input[aria-invalid="true"] { border-color: var(--danger) !important; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.help-text { display: block; margin: .5rem 0 0; font-size: .85rem; }
.error { color: var(--danger); }
.field-error { margin: .4rem 0 0; font-size: .85rem; color: var(--danger); }
.field-error:empty { margin: 0; }
.button { display: inline-flex; gap: .5rem; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.15rem; border: 1px solid var(--brand); border-radius: .6rem; background: var(--brand); color: var(--on-brand); font-weight: 650; font-size: .95rem; line-height: 1.5; text-align: center; text-decoration: none; }
.button:hover { filter: brightness(.94); text-decoration: none; }
.button-secondary { background: var(--surface); color: var(--brand); }
.button-secondary:hover { background: var(--accent); filter: none; }
.button-wide { width: 100%; }
.form-actions { margin-top: 1.5rem; }
.form-note { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.scan-result { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.scan-result h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.scan-result [role="status"] { font-size: .9rem; overflow-wrap: anywhere; }
.scan-result [role="status"] p:last-child { margin-bottom: 0; }
.scan-result [role="status"] a { display: inline-flex; min-height: 44px; align-items: center; }
.section-heading { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: baseline; margin-bottom: 1.25rem; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.guide-grid { align-items: start; }
.guide-faq { grid-column: 1 / -1; }
.guide-faq summary { min-height: 44px; padding-block: .65rem; color: var(--brand); font-weight: 650; cursor: pointer; }
.guide-faq details + details { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .5rem; }
.guide-faq details p { margin-top: .65rem; }
.archive-card { display: flex; flex-direction: column; }
.archive-card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.archive-icon { display: flex; width: 48px; height: 48px; border-radius: .75rem; align-items: center; justify-content: center; background: var(--accent); color: var(--brand); }
.archive-card p { color: var(--muted); font-size: .95rem; }
.card-actions, .actions, .report-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.card-actions { margin-top: auto; padding-top: .5rem; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-size: .9rem; font-weight: 600; }
.support-panel { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; margin-top: 2rem; padding: 1.5rem 2rem; background: var(--surface-alt); border-radius: 1rem; }
.support-panel h2 { font-size: 1.1rem; }
.support-panel p { max-width: 65ch; font-size: .9rem; color: var(--muted); margin-bottom: 0; }
.donate-form { margin: 0; }
.share-links { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.share-links a { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--border); padding: .35rem .75rem; border-radius: .5rem; font-size: .85rem; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 2rem; }
.footer-inner p { margin: 0; font-size: .9rem; }
.footer-inner p span { display: block; color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.report-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.report-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; min-width: 0; padding: 1.25rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); overflow-wrap: anywhere; }
.report-item h2, .report-item h3 { font-size: 1.05rem; margin-bottom: .65rem; }
.report-item p { margin-bottom: .65rem; }
.report-item .report-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 290px; max-width: 100%; margin-top: 0; }
.report-actions .button { font-size: .85rem; padding: .55rem .75rem; }
.report-item details { display: block; margin-top: .75rem; font-size: .85rem; }
.report-item summary { min-height: 44px; padding-block: .5rem; color: var(--brand); cursor: pointer; }
.report-item details p { margin-block: .25rem .75rem; color: var(--muted); }
.report-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; color: var(--muted); }
.archive-toolbar { margin-bottom: 1.5rem; }
.archive-toolbar .field-grid { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); margin-bottom: 1.25rem; }
.result-count { margin-block: 1.5rem 1rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 44px; margin-bottom: 1rem; font-size: .9rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.pagination [aria-disabled="true"] { opacity: .65; cursor: default; border-style: dashed; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); scrollbar-color: var(--input-border) var(--surface-alt); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); }
caption { text-align: left; padding: 1rem 1.25rem; font-weight: 650; color: var(--text); }
th, td { padding: .9rem 1rem; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--text); background: var(--surface-alt); font-weight: 650; }
tbody tr:nth-child(even) { background: var(--bg); }
tbody tr:hover { background: var(--accent); }
td a { overflow-wrap: anywhere; }
.table-scroll table { min-width: 780px; }
.table-scroll th:nth-child(2), .table-scroll td:nth-child(2) { min-width: 240px; max-width: 330px; }
.scroll-hint { color: var(--muted); font-size: .875rem; margin-bottom: 1rem; }
.ranking-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
@media (max-width: 960px) {
    .hero { gap: 2rem; }
    .site-nav { order: 3; flex-basis: 100%; justify-content: center; }
    .header-inner { gap: .75rem 1rem; }
    .panel { padding: 1.5rem; }
}
@media (max-width: 1160px) and (min-width: 961px) {
    .site-nav { order: 3; flex-basis: 100%; justify-content: center; }
}
@media (max-width: 760px) {
    .hero { grid-template-columns: minmax(0, 1fr); margin-bottom: 2.5rem; }
    .hero-copy { padding-top: 0; }
    .site-main { padding-block: 2rem 3rem; }
    .steps { margin-top: 1.5rem; }
    .archive-grid { grid-template-columns: minmax(0, 1fr); }
    .report-item { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .report-item .report-actions { width: 100%; }
    .footer-inner { flex-direction: column; }
}
@media (max-width: 480px) {
    .container { width: calc(100% - 2rem); }
    .brand { font-size: .95rem; gap: .5rem; }
    .brand-mark { width: 36px; height: 36px; font-size: 1.5rem; }
    .appearance-controls { order: 4; flex-basis: 100%; justify-content: center; gap: .5rem; }
    .theme-switcher { padding: 3px; gap: 0; }
    .theme-option { flex-basis: 44px; width: 44px; height: 44px; }
    .theme-option svg { width: 24px; height: 24px; }
    .appearance-controls .accent-select { min-width: 174px; min-height: 53px; height: 53px; padding-left: 2.25rem; padding-right: 1.85rem; font-size: .8rem; }
    .accent-swatch { left: .75rem; width: 16px; height: 16px; }
    .accent-chevron { right: .65rem; width: 14px; }
    .site-nav { gap: .1rem; }
    .site-nav a { padding: .45rem .55rem; font-size: .8rem; }
    .panel { padding: 1.25rem; border-radius: 1rem; }
    .field-grid, .archive-toolbar .field-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .support-panel { padding: 1.25rem; gap: 1rem; }
    .card-actions { align-items: stretch; flex-direction: column; gap: .25rem; }
    .card-actions .text-link { justify-content: center; }
    .report-actions > .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .button, .theme-switcher, .accent-select, .badge, .brand-mark { border: 1px solid ButtonText; }
    .theme-option:has(input:checked) { background: Highlight; color: HighlightText; box-shadow: none; forced-color-adjust: none; }
    .theme-option:has(input:focus-visible) { outline-color: Highlight; }
    :focus-visible { outline-color: Highlight; }
}
@media print {
    .site-header, .site-footer, .appearance-controls, .skip-link, .share-links, .donate-form { display: none !important; }
    body { background: white; color: black; }
    .container { width: 100%; }
    .site-main { padding: 0; }
    .panel { box-shadow: none; }
    .table-scroll { overflow: visible; border: 0; }
    .table-scroll table { min-width: 0; font-size: 8pt; }
    th, td { padding: .35rem; }
}
