:root {
    color-scheme: dark;
    --surface: #223143;
    --muted: #bac9da;
    --cta: #325fa8;
    --ink: #e2e9f2;
    --link: #bad8ff;
    --line: #46596e;
    --stripe: #293b4f;
    --band: #344b63;
    font: 14px/1.6 Verdana, Arial, sans-serif;
    color: var(--ink);
    /* Three different tile sizes keep the stars from lining up in rows. */
    --faint-star: #788fa8 0.55px, transparent 1px;
    --blue-star: #accae6 0.7px, transparent 1.25px;
    --bright-star: #eef7ff 0.7px, #9cbbd1 1px, transparent 1.7px;
    background-color: #080f20;
    background-image:
        radial-gradient(circle at 22px 37px, var(--faint-star)),
        radial-gradient(circle at 101px 53px, var(--faint-star)),
        radial-gradient(circle at 72px 104px, var(--faint-star)),
        radial-gradient(circle at 143px 14px, var(--faint-star)),
        radial-gradient(circle at 31px 90px, var(--blue-star)),
        radial-gradient(circle at 196px 143px, var(--faint-star)),
        radial-gradient(circle at 117px 174px, var(--blue-star)),
        radial-gradient(circle at 69px 31px, var(--faint-star)),
        radial-gradient(circle at 58px 67px, var(--bright-star)),
        radial-gradient(circle at 251px 197px, var(--blue-star)),
        radial-gradient(circle at 234px 73px, var(--faint-star)),
        radial-gradient(ellipse at 5% 24%, #1b324c, transparent 49%),
        radial-gradient(ellipse at 91% 73%, #192843, transparent 51%);
    background-size:
        157px 119px, 157px 119px, 157px 119px, 157px 119px,
        229px 191px, 229px 191px, 229px 191px, 229px 191px,
        347px 283px, 347px 283px, 347px 283px, 100% 100vh, 100% 100vh;
    background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat,
                       repeat, repeat, repeat, no-repeat, no-repeat;
}
* { box-sizing: border-box; }
body {
    max-width: 820px;
    margin: 16px auto;
    border: 1px solid var(--line);
    background: var(--surface);
}
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #fff; background: var(--band); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px dashed var(--link); outline-offset: 2px; }
.skip { position: absolute; top: -80px; background: var(--surface); padding: 5px; }
.skip:focus { top: 0; }
.mast { padding: 14px 18px 0; background: #233448; border-bottom: 1px solid var(--line); }
.site-name { font-weight: bold; font-size: 20px; text-decoration: none; }
.mast a { color: #fff; }
.mast a:hover, .mast a:focus-visible { background: #435d73; outline-color: white; }
.mast nav { display: flex; flex-wrap: wrap; margin-top: 6px; gap: 5px 18px; padding-bottom: 9px; font-size: 13px; }
main { padding: 18px 20px 28px; }
h1 { margin: 0 0 9px; font-size: 22px; line-height: 1.25; }
h2, h3 { font-size: 15px; margin: 0; }
p { margin: 5px 0 14px; }
section { margin-top: 22px; scroll-margin-top: 8px; }
.bar, .news article header {
    margin: 0;
    padding: 7px 14px;
    background: var(--band);
    border: 1px solid var(--line);
    color: var(--ink);
}
.news { margin-top: 0; }
.news article { border: 1px solid var(--line); padding: 0 14px 15px; margin-bottom: 14px; }
.news article header {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 4px 14px; flex-wrap: wrap; margin: 0 -14px 10px; border: 0; border-bottom: 1px solid var(--line);
}
.news time, small, figcaption, .tally, .vote-total { font-size: 12px; color: var(--muted); }
.panel, .board, .specs { border: 1px solid var(--line); padding: 14px; }
.bar + .panel, .bar + .board, .bar + .specs { border-top: 0; }
.panel > :last-child, .panel form > :last-child, .empty p:last-child { margin-bottom: 0; }
.ethos-list { margin: 0; padding-left: 1.4em; }
.ethos-list strong { display: block; }
.ethos-list li + li { margin-top: 14px; }
.local-nav { font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; margin-bottom: 9px; font-size: 13px; }
.filters b { min-width: 4em; text-transform: capitalize; }
.filters a[aria-current=true] { background: var(--band); color: #fff; font-weight: bold; padding: 0 4px; }
.empty { margin-top: 8px; border-top: 1px dotted var(--line); padding-top: 7px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; text-align: left; }
th, td { border: 1px solid var(--line); padding: 8px 10px; }
th { background: var(--band); } tbody tr:nth-child(even) { background: var(--stripe); }
td small { display: block; } td:nth-child(2) { overflow-wrap: anywhere; } .points { text-align: right; font-variant-numeric: tabular-nums; }
.specs { margin: 0; padding: 0; }
.specs div { display: grid; grid-template-columns: 155px 1fr; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: 0; }
.specs dt, .specs dd { margin: 0; padding: 10px 14px; }
.specs dt { font-weight: bold; background: var(--stripe); }
figure { margin: 8px 0 0; } figure img { display: block; width: 100%; max-width: 400px; height: auto; filter: grayscale(1); }
button, input { font: inherit; }
button { background: var(--stripe); border: 1px solid var(--line); color: var(--ink); padding: 4px 10px; cursor: pointer; }
button:hover { background: var(--band); }
a.action, #upload button[type=submit] {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid var(--cta);
    background: var(--cta);
    color: white;
    font-weight: bold;
    text-decoration: none;
}
a.action:hover, #upload button[type=submit]:hover { text-decoration: underline; }
.download-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
a.download { padding: 10px 16px; font-size: 16px; }
#setup ol { padding-left: 1.6em; }
#setup li + li { margin-top: 12px; }
.faq h3:not(:first-child) { margin-top: 20px; }
input { max-width: 100%; accent-color: var(--muted); }
#upload label { display: block; margin: 9px 0; }
#upload label[hidden] { display: none; }
output:not(:empty) { display: block; margin-top: 7px; overflow-wrap: anywhere; }
.choices { max-width: 520px; border: 1px solid var(--line); }
.choices button {
    display: grid; grid-template-columns: minmax(0,1fr) 68px 50px; gap: 8px;
    align-items: center; width: 100%; text-align: left; background: var(--surface);
    padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line);
}
.choices button:last-child { border-bottom: 0; }
.choices button:nth-child(even) { background: var(--stripe); }
.choices button:hover, .choices button[aria-pressed=true] { background: var(--band); }
.choice-title { text-decoration: underline; }.choice-title small { font-weight: bold; margin-left: 4px; }
.tally { text-align: right; }
progress { width: 100%; height: 7px; border: 0; appearance: none; color: #95b0ca; background: var(--band); }
progress::-webkit-progress-bar { background: var(--band); } progress::-webkit-progress-value { background: #95b0ca; } progress::-moz-progress-bar { background: #95b0ca; }
@media (max-width: 600px) {
    body { margin: 10px 4px; }
    main { padding: 12px 9px; } .mast { padding: 10px 9px 0; }
    .specs div { grid-template-columns: 1fr; }
    th, td { padding: 8px 4px; } .choices button { grid-template-columns: minmax(0,1fr) 47px 36px; }
}

footer { border-top: 1px solid var(--line); padding: 12px 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a, .mast nav a, .filters a, .text-link { display: inline-block; min-height: 24px; }
main { overflow-wrap: anywhere; }
input[type=file] { width: 100%; }
button, input { border-color: #97aec4; }
.skip:focus { z-index: 1; }
