/* Local, responsive shared shell. Domain data and permissions stay server-side. */
:root { color-scheme: light; --ink:#172738; --accent:#155b54; }
body { margin:0; background:#f3f6f8; color:var(--ink); font-family:system-ui,"Segoe UI",sans-serif; line-height:1.6; }
.container { max-width:76rem; }
.site-header { background:#142f40; color:#fff; border-bottom:4px solid #348b7d; }
.header-inner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; padding:1rem; }
.brand { color:#fff; text-decoration:none; font-size:1.5rem; font-weight:750; }
.brand span { display:block; font-size:.8rem; font-weight:400; color:#dde8ed; }
.primary-nav { display:flex; flex-wrap:wrap; gap:.3rem; }
.primary-nav a { color:#fff; display:inline-block; padding:.65rem .85rem; border-radius:.35rem; }
.primary-nav a:hover { background:#294d60; }
main { min-height:65vh; }
h1 { font-size:clamp(1.8rem,4vw,2.6rem); letter-spacing:-.035em; margin:0 0 1rem; overflow-wrap:anywhere; }
h2 { font-size:1.45rem; margin-top:1.5rem; }
h3 { font-size:1.15rem; }
p, li, dd, code, a { overflow-wrap:anywhere; }
a { color:#075578; text-underline-offset:.2em; }
a:hover { color:#003650; }
.card { border:1px solid #c4d0d8; border-radius:.65rem; background:#fff; box-shadow:0 2px 5px #102d3c08; }
.card-body { min-width:0; }
.site-footer { color:#425563; border-top:1px solid #bdcad2; padding-top:1rem; margin-top:2rem; }
.skip-link { position:absolute; left:1rem; top:-6rem; background:white; padding:1rem; z-index:1000; }
.skip-link:focus { top:.3rem; }
:focus-visible { outline:3px solid #0b5fa5 !important; outline-offset:3px; }
.site-header :focus-visible { outline-color:#ffd46a !important; }
form { max-width:100%; }
form label { display:block; font-weight:650; margin-bottom:.3rem; }
form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), form textarea, form select {
 display:block; max-width:100%; width:100%; padding:.65rem; border:1px solid #6d818e; border-radius:.35rem; background:#fff; color:var(--ink); }
form textarea { min-height:6rem; }
form input[type="checkbox"], form input[type="radio"] { min-width:1.25rem; min-height:1.25rem; }
button, .btn, summary { min-height:44px; padding:.6rem .85rem; }
button { border:1px solid #526d7e; border-radius:.35rem; background:#edf3f6; color:var(--ink); }
form button { margin-top:.65rem; }
summary { cursor:pointer; font-weight:650; }
.errorlist, .error-summary { color:#8b1625; }
.error-summary a { color:inherit; }
.helptext, small { color:#425563; }
[aria-invalid="true"] { border:2px solid #a12435; }
.table { background:#fff; }
.table caption { color:#344c5c; caption-side:top; font-weight:650; }
.table-responsive { max-width:100%; margin-bottom:1rem; border:1px solid #c4d0d8; border-radius:.35rem; }
.table-responsive table { min-width:38rem; margin-bottom:0; }
.table th, .table td { padding:.75rem; vertical-align:top; }
.chart-frame { height:18rem; max-width:100%; }
.score-number { font-size:2rem; font-weight:750; }
@media(max-width:575px) { .header-inner { align-items:flex-start; } .primary-nav { width:100%; } main.container { padding:1rem; } .card-body { padding:1rem; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
@media(forced-colors:active) { .card, button, .btn { border:1px solid CanvasText; } a { color:LinkText; } }

/* Darker semantic button text and fills retain contrast on the light surface. */
.btn-primary { --bs-btn-bg:#075578; --bs-btn-border-color:#075578; --bs-btn-hover-bg:#003650; --bs-btn-hover-border-color:#003650; }
.btn-outline-primary { --bs-btn-color:#075578; --bs-btn-border-color:#075578; --bs-btn-hover-bg:#075578; --bs-btn-hover-border-color:#075578; }
.btn-outline-danger { --bs-btn-color:#8b1625; --bs-btn-border-color:#8b1625; --bs-btn-hover-bg:#8b1625; --bs-btn-hover-border-color:#8b1625; }
.btn-secondary { --bs-btn-bg:#425563; --bs-btn-border-color:#425563; }
