:root { color-scheme: dark; --bg: #111714; --surface: #1C2521; --accent: #42D985; --text: #E8F2EB; --muted: #9FB3A6; --line: #35473d; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 1rem/1.55 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #8af1b5; }
:focus-visible { outline: 3px solid #8af1b5; outline-offset: 3px; }
.shell { width: min(100% - 3rem, 1180px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .6rem 1rem; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: .5rem; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1rem; }
.brand { font-weight: 800; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--muted); font-size: .75rem; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.4rem; }
.site-nav a { text-decoration: none; }
.nav-link, .nav-group { padding: .4rem .6rem; border-radius: .5rem; }
.nav-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; }
.nav-heading { font-weight: 700; color: var(--muted); }
.nav-group.active, .nav-link.active { background: #253b2e; }
.nav-group.active .nav-heading, .site-nav [aria-current] { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.main-content { flex: 1; padding-block: 2rem 3rem; min-width: 0; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.25rem; color: var(--muted); font-size: .9rem; }
h1, h2 { line-height: 1.2; }
h1 { margin: 0 0 .65rem; font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { margin-top: 0; font-size: 1.3rem; }
.hero { margin-bottom: 1.5rem; }
.muted, .card-label, .card-detail { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, .panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; margin-block: 1rem; }
.card { margin: 0; }
.card:focus-within { border-color: var(--accent); }
.card-value { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; overflow-wrap: anywhere; }
.card-detail { margin-top: .5rem; }
.card-label { margin: 0 0 .5rem; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.card-unavailable { border-style: dashed; }
.card-value a { text-decoration-thickness: 1px; }
.status-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; background: var(--accent); margin-right: .5rem; }
form.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; align-items: end; }
.filter-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filter-actions button { width: auto; }
.filter-help { margin-bottom: 0; font-size: .9rem; }
.filter-summary { padding: .8rem 1rem; border-radius: 8px; background: var(--bg); overflow-wrap: anywhere; }
label { display: grid; gap: .3rem; color: var(--muted); }
input, select, button { width: 100%; min-width: 0; border: 1px solid #52695a; border-radius: 8px; background: var(--bg); color: var(--text); padding: .65rem; font: inherit; }
button { background: var(--accent); color: #0b1510; font-weight: 700; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid var(--accent); border-radius: 8px; font-weight: 700; text-decoration: none; }
.button.secondary { background: var(--bg); color: var(--accent); }
.button:hover, button:hover { background: #256c45; color: #fff; }
.pagination { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.fact-grid > div { min-width: 0; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.fact-grid dt { color: var(--muted); font-size: .9rem; }
.fact-grid dd { margin: .25rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td { overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; word-break: break-word; }
.errors { border-left: 4px solid #ffb4a8; color: #ffd2ca; }
.empty-state { color: var(--muted); font-style: italic; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } form.filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .shell { width: min(100% - 2rem, 1180px); } .site-nav { width: 100%; align-items: stretch; flex-direction: column; gap: .25rem; } .nav-group { gap: .4rem .8rem; } .nav-heading { width: 100%; } .grid, form.filters, .fact-grid { grid-template-columns: 1fr; } .panel, .card { padding: 1rem; } table { font-size: .875rem; } th, td { padding: .5rem; } }
