@font-face { font-family: Geist; src: url(/fonts/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/GeistMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --bg-3: #18181b;
  --ink: #ededef;
  --ink-2: #a8a8b0;
  --ink-3: #8d8d96;
  --rule: rgba(255, 255, 255, .09);
  --rule-2: rgba(255, 255, 255, .18);
  --rule-3: rgba(255, 255, 255, .32);
  /* The one accent: map shading and the verified badge only. */
  --acc: #6aa8ff;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; padding-block: 32px 80px; }
a { color: inherit; text-decoration-color: var(--rule-3); text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.025em; }
h2 { font-size: 20px; margin-top: 1.6em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 12px; }
.meta { color: var(--ink-3); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: .92em; }
.lede { color: var(--ink-2); font-size: 18px; max-width: 60ch; }
.crumb { font-size: 14px; margin-bottom: 14px; }
.crumb a { color: var(--ink-3); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; padding-block: 4px; transition: color .15s; }
.crumb a::before { content: "\2190"; transition: transform .25s var(--ease); }
.crumb a:hover { color: var(--ink); }
.crumb a:hover::before { transform: translateX(-3px); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 7px; vertical-align: 1px; }

/* Header and footer */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 12, .9); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); view-transition-name: top; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; padding-block: 8px; }
.brand .mark { color: var(--ink); flex: none; }
.top nav { display: flex; gap: 2px; }
.top nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 8px 10px; border-radius: 8px; transition: color .15s, background-color .15s; }
.top nav a:hover { color: var(--ink); background: var(--bg-2); }
.top nav a[aria-current] { color: var(--ink); }
.foot { border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 14px; overflow: hidden; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 32px 12px; }
.foot-in p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { text-decoration: none; color: var(--ink-2); padding-block: 4px; transition: color .15s; }
.foot nav a:hover { color: var(--ink); }
.fine { margin: 0 0 32px; font-size: 13px; }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease); }
.btn:hover { background: #fff; }
.btn:active { transform: scale(.97); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--rule-3); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 6px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--rule-2); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; transition: border-color .15s, background-color .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--rule-3); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
textarea { resize: vertical; }
/* Native select arrows sit flush against the edge and differ per browser; draw our own chevron. */
select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23a8a8b0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
select:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23ededef' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
select option { background: var(--bg-2); color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
input[type=checkbox], input[type=radio] { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none; border: 1px solid var(--rule-3); border-radius: 5px; background: var(--bg-2) center / 12px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s, transform .12s var(--ease); }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:hover, input[type=radio]:hover { border-color: var(--ink-2); }
input[type=checkbox]:active, input[type=radio]:active { transform: scale(.9); }
input[type=checkbox]:checked { background-color: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%230b0b0c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type=radio]:checked { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 4px, var(--bg-2) 4.5px); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: none; }

/* Chrome's customizable select: the open list is ours too. Other browsers keep the native list with our chevron. */
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { background-image: none; padding-right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  select:hover { background-image: none; }
  select::picker-icon { content: ""; width: 12px; height: 12px; margin-left: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23a8a8b0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: rotate .25s var(--ease); }
  select:open::picker-icon { rotate: 180deg; }
  ::picker(select) { background: var(--bg-2); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 10px; padding: 4px; margin-block: 6px; max-height: min(360px, 60vh); overflow-y: auto; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); opacity: 0; translate: 0 -4px; transition: opacity .16s, translate .2s var(--ease), overlay .2s allow-discrete, display .2s allow-discrete; }
  select:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style { select:open::picker(select) { opacity: 0; translate: 0 -4px; } }
  select option { background: none; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--ink-2); cursor: pointer; display: flex; gap: 8px; }
  select option:hover, select option:focus-visible { background: var(--bg-3); color: var(--ink); outline: none; }
  select option:checked { color: var(--ink); }
  select option::checkmark { content: ""; order: 1; margin-left: auto; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23ededef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
  select option[value=""] { display: none; }
}

::selection { background: var(--ink); color: var(--bg); }
html { scrollbar-color: #2c2c31 var(--bg); scrollbar-width: thin; caret-color: var(--ink); }

/* Right-click menu and copy toast */
.ctx { position: fixed; z-index: 100; min-width: 220px; max-width: 280px; padding: 4px; background: #151517; border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: 0 18px 44px rgba(0, 0, 0, .6); font-size: 14px; transform-origin: var(--ox, 0) var(--oy, 0); animation: ctxin .14s var(--ease) both; }
@keyframes ctxin { from { opacity: 0; transform: scale(.96); } }
.ctx button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 32px; padding: 0 10px; border-radius: 6px; color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx button:hover, .ctx button:focus-visible { background: var(--bg-3); }
.ctx button span { overflow: hidden; text-overflow: ellipsis; }
.ctx kbd { font: 12px var(--sans); color: var(--ink-3); }
.ctx hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 6px; }
.ctx .ctx-note { padding: 6px 10px 4px; font-size: 12px; color: var(--ink-3); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 101; translate: -50% 0; background: var(--ink); color: var(--bg); font-size: 14px; padding: 8px 14px; border-radius: 8px; animation: toast 1.6s var(--ease) both; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; translate: -50% 8px; } 12%, 80% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; } }
[aria-invalid=true] { border-color: #ff8a80; }
.err { color: #ff9e96; font-size: 14px; margin: 6px 0 0; }
.err-box, .notice { border: 1px solid var(--rule-2); border-radius: 10px; padding: 12px 14px; }
.err-box { border-color: #ff8a80; color: #ffc2bc; }

/* Home */
.eyebrow { font-size: 13px; color: var(--ink-3); display: flex; gap: 14px; margin-bottom: 22px; }
.eyebrow span { padding-left: 14px; border-left: 1px solid var(--rule-2); }
.display { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; margin: 0 0 20px; max-width: 16ch; }
.hero { padding-block: 32px 0; }
.hero-row { display: grid; gap: 20px 48px; align-items: end; }
@media (min-width: 860px) { .hero-row { grid-template-columns: 1fr 440px; } }
.hero-row .lede { margin: 0; }
.search { position: relative; display: flex; gap: 8px; width: 100%; }
.search input { flex: 1; padding-left: 38px; }
.search-ico { position: absolute; left: 13px; top: 14px; color: var(--ink-3); pointer-events: none; }

.atlas { margin-top: 40px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.atlas-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 14px; color: var(--ink-3); }
.atlas-bar h2 { font-size: 14px; font-weight: 500; letter-spacing: 0; margin: 0; color: var(--ink); flex: 1; }
.combo { position: relative; width: 240px; }
.combo input { min-height: 36px; padding: 6px 36px 6px 12px; font-size: 14px; border-radius: 8px; }
.combo-chev { position: absolute; right: 12px; top: 12px; color: var(--ink-2); cursor: pointer; transition: rotate .25s var(--ease), color .15s; }
.combo:hover .combo-chev { color: var(--ink); }
.combo.open .combo-chev { rotate: 180deg; color: var(--ink); }
/* The combo form gets its own stacking context so the absolute listbox paints above siblings (map frame, sections below) instead of alongside them at auto. Bumped well above the sticky header (.top z=20) when open. */
.combo { isolation: isolate; }
.combo.open { z-index: 60; }
.combo-list { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; max-height: min(340px, 55vh); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); font-size: 14px; text-transform: none; letter-spacing: 0; animation: pop .16s var(--ease) both; }
.combo-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--ink-2); cursor: pointer; }
.combo-list li[hidden] { display: none; }
.combo-list li[aria-selected=true] { background: var(--bg-3); color: var(--ink); }
.combo-list .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.combo-none { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--rule-2); border-radius: 10px; font-size: 14px; color: var(--ink-3); }
.atlas-foot { flex-wrap: wrap; font-size: 13px; }
.atlas-body { position: relative; padding-block: clamp(8px, 2vw, 24px); }
.map { display: block; width: 100%; height: auto; }
.map a { outline: none; }
/* Sits under the map in one line, so it never covers Florida or the Gulf coast. */
.readout { display: flex; align-items: baseline; gap: 10px; min-height: 32px; padding-top: 12px; pointer-events: none; }
.ro-code { font-size: 26px; font-weight: 500; line-height: 1; letter-spacing: -.02em; min-width: 2.2ch; }
.ro-name { font-weight: 500; font-size: 15px; }
.ro-n { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.readout.swap > * { animation: roswap .32s var(--ease) both; }
.readout.swap .ro-name { animation-delay: 30ms; } .readout.swap .ro-n { animation-delay: 60ms; }
@keyframes roswap { from { opacity: 0; transform: translateY(8px); } }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legend li { display: flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border: 1px solid var(--rule-2); border-radius: 3px; display: inline-block; }
.sw.l0 { background: var(--bg); } .sw.l1 { background: color-mix(in srgb, var(--acc) 34%, var(--bg)); }
.sw.l2 { background: color-mix(in srgb, var(--acc) 52%, var(--bg)); } .sw.l3 { background: color-mix(in srgb, var(--acc) 74%, var(--bg)); }
.sw.l4 { background: var(--acc); }

@media (min-width: 900px) { .sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; } }
.sec-head h2 { margin: 0; font-size: 20px; letter-spacing: -.015em; }
.sec-n { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-3); font-weight: 400; }
.recent { margin-top: 64px; display: grid; gap: 16px 48px; align-items: start; }
@media (min-width: 900px) { .recent { grid-template-columns: 1fr 340px; } .recent .sec-head { grid-column: 1 / -1; } }
.recent-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.recent-list a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.recent-list .ico { width: 36px; height: 36px; border-radius: 9px; font-size: 12px; }
.rl-text { display: grid; gap: 2px; min-width: 0; }
.recent-list .rl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.recent-list a:hover .rl-name { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-3); text-underline-offset: 3px; }
.rl-n { font: 13px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rl-name { font-weight: 500; }
.rl-meta { font-size: 13px; color: var(--ink-3); }
.cta { border-top: 1px solid var(--rule); padding-top: 16px; }
.cta p { color: var(--ink-2); font-size: 15px; }

/* State page */
.state-hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: 24px 0 28px; border-bottom: 1px solid var(--rule); }
.state-hero .lede { margin: 0; }
.state-name { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.03em; line-height: 1.02; margin: 0 0 14px; }
.state-name .up { color: var(--ink-3); text-decoration: none; transition: color .15s; }
.state-name .up:hover { color: var(--ink); }
/* Signature: the state's two-letter code in mono, as on the map labels. */
.state-name .st-code { margin-left: .5em; font: 400 .32em/1 var(--mono); color: var(--ink-3); vertical-align: .9em; letter-spacing: .04em; }
.state-name .sep { color: var(--rule-3); font-weight: 400; margin: 0 .22em; }
.state-shape { width: clamp(80px, 18vw, 200px); height: auto; max-height: 180px; overflow: visible; view-transition-name: shape; }
.state-shape path, .state-shape circle { fill: var(--bg-2); stroke: var(--ink-2); stroke-linejoin: round; }
.state-shape.has path, .state-shape.has circle { fill: color-mix(in srgb, var(--acc) 42%, var(--bg)); stroke: var(--acc); }

.toolbar { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar .switch { margin-left: auto; }
.tb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--bg-2); position: relative; }
.seg label { position: relative; cursor: pointer; }
.seg input, .chip input, .switch input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 12px; border-radius: 5px; font-size: 14px; color: var(--ink-2); transition: color .2s, background-color .25s var(--ease); white-space: nowrap; }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.switch:hover { color: var(--ink); }
.track { width: 36px; height: 22px; border-radius: 999px; border: 1px solid var(--rule-3); background: var(--bg-2); position: relative; transition: background-color .25s var(--ease), border-color .25s; flex: none; }
.track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); transition: transform .3s var(--ease), background-color .25s; }
.switch input:checked + .track { background: var(--ink); border-color: var(--ink); }
.switch input:checked + .track::after { transform: translateX(14px); background: var(--bg); }
.switch input:focus-visible + .track { outline: 2px solid var(--ink); outline-offset: 2px; }
.chips-row { justify-content: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips + .chips { margin-left: 10px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: color .15s, border-color .15s, background-color .2s var(--ease), transform .12s var(--ease); white-space: nowrap; }
.chip:hover span { color: var(--ink); border-color: var(--rule-3); }
.chip:active span { transform: scale(.96); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.js .apply { display: none; }
.result-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.result-line { font-size: 14px; color: var(--ink-3); margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 10px; border-radius: 6px; background: var(--bg-3); color: var(--ink); font-size: 13px; text-decoration: none; transition: background-color .15s; }
.active-filters a:hover { background: var(--rule-2); }
.active-filters svg { color: var(--ink-3); }
.active-filters a:hover svg { color: var(--ink); }
.active-filters .clear { background: none; color: var(--ink-3); padding: 0 6px; }
.active-filters .clear:hover { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Tags dropdown: a <details> so it works without JS; site.js applies it on close. */
.dd { position: relative; }
.dd-btn { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--bg-2); font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; transition: color .15s, border-color .15s; }
.dd-btn::-webkit-details-marker { display: none; }
.dd-btn:hover, .dd[open] .dd-btn, .dd-btn.on { color: var(--ink); border-color: var(--rule-3); }
.dd-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dd-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dd-chev { color: var(--ink-3); transition: rotate .25s var(--ease); }
.dd[open] .dd-chev { rotate: 180deg; }
.dd-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 220px; margin: 0; padding: 4px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--bg-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); animation: pop .16s var(--ease) both; }
.dd-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.dd-opt:hover { background: var(--bg-3); color: var(--ink); }
.dd-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dd-opt input:focus-visible ~ span { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.dd-check { opacity: 0; color: var(--ink); transition: opacity .12s; }
.dd-opt input:checked ~ span { color: var(--ink); }
.dd-opt input:checked ~ .dd-check { opacity: 1; }

.empty { margin-top: 32px; border: 1px solid var(--rule); border-radius: 8px; padding: clamp(24px, 5vw, 44px); background: var(--bg-2); }
.empty h2 { margin-top: 0; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -.025em; }
.empty > p { color: var(--ink-2); max-width: 52ch; margin-bottom: 22px; }
.elsewhere { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.elsewhere h3 { font-size: 13px; color: var(--ink-3); font-weight: 400; margin-bottom: 12px; }
.pill-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pill-links a { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 999px; text-decoration: none; font-size: 14px; transition: border-color .15s, background-color .15s; }
.pill-links a:hover { border-color: var(--rule-3); background: var(--bg-3); }
.pill-links span { font-family: var(--mono); color: var(--ink-3); }

/* Cards */
.cards { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card { position: relative; border: 1px solid var(--rule); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; background: var(--bg); transition: border-color .25s, background-color .25s; }
.card:hover { border-color: var(--rule-2); background: #101012; }
.card:has(.stretch:focus-visible) { outline: 1px solid var(--ink); outline-offset: 3px; }
.stretch { text-decoration: none; outline: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.card-title { min-width: 0; flex: 1; }
.card-name { font-size: 17px; font-weight: 500; margin: 0 0 2px; overflow-wrap: anywhere; letter-spacing: -.01em; }
.card .meta { margin: 0; font-size: 14px; }
.ico { width: 44px; height: 44px; border-radius: 11px; flex: none; background: var(--bg-3); object-fit: cover; }

.ico-lg { width: 72px; height: 72px; border-radius: 18px; }
.ico-ph { display: grid; place-items: center; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.desc { color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.desc.lg { font-size: 17px; max-width: 62ch; }
/* The dot sits before every tag and the list is pulled left by one dot width with overflow hidden,
   so a wrapped line never starts with a stray separator. */
.tags-clip { overflow: hidden; margin-bottom: 18px; }
.tags { list-style: none; padding: 0; margin: 0 0 0 -16px; display: flex; flex-wrap: wrap; overflow: hidden; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.tags li::before { content: "\00b7"; display: inline-block; width: 16px; text-align: center; color: var(--rule-3); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--rule); }
.counts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.btn-join { position: relative; z-index: 1; background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-join:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--acc); }
.server { border: 1px solid var(--rule); border-radius: 16px; padding: 24px; margin-bottom: 24px; display: flex; flex-direction: column; }
.server .card-head { margin-bottom: 16px; }
.server h1 { margin-bottom: 4px; font-size: clamp(26px, 5vw, 40px); }
.server .meta { margin: 0; font-size: 14px; }
.server .badge { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--acc); }
.stats { display: flex; gap: 32px; margin: 4px 0 20px; flex-wrap: wrap; }
.stats dt { font-size: 13px; color: var(--ink-3); }
.stats dd { margin: 2px 0 0; font-family: var(--mono); font-size: 22px; }
.empty-note { border: 1px solid var(--rule); border-radius: 16px; padding: 24px; color: var(--ink-2); margin-top: 20px; background: var(--bg-2); }

/* Forms */
.form { max-width: 560px; display: flex; flex-direction: column; margin-top: 24px; }
.form.narrow { max-width: 360px; }
.form > label:not(.chk) { font-weight: 600; margin: 20px 0 6px; }
.form > label:first-child { margin-top: 0; }
.hint { color: var(--ink-3); font-size: 14px; margin: -2px 0 8px; }
.tagset { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 20px; }
.tagset legend { width: 100%; font-weight: 600; margin-bottom: 8px; }
.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; cursor: pointer; }
.form .btn { align-self: flex-start; margin-top: 24px; }
.cf-turnstile:has(iframe) { margin-top: 16px; }
.preview:not(:empty) { margin-top: 10px; }
.pv { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--bg-2); animation: pop .35s var(--ease) both; }
.pv .ico { width: 40px; height: 40px; border-radius: 10px; }
.pv-name { font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.pv-meta { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.pv-bad { border-color: #ff8a80; }
.pv-bad .pv-meta { color: #ffc2bc; font-family: var(--sans); font-size: 14px; }
.pv-wait { color: var(--ink-3); font-size: 14px; }
.report { margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 12px; }
.report summary { cursor: pointer; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; width: max-content; }
.report form { max-width: 520px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.report fieldset { display: flex; flex-direction: column; }
.report legend { margin-bottom: 6px; color: var(--ink-3); font-size: 14px; }
.report .btn { align-self: flex-start; margin-top: 10px; }

/* Verify */
.code { font-family: var(--mono); font-size: clamp(24px, 6vw, 34px); border: 1px solid var(--rule-2); border-radius: 12px; padding: 12px 18px; display: inline-block; user-select: all; }
.steps { padding-left: 20px; max-width: 64ch; }
.steps li { margin-bottom: 12px; color: var(--ink-2); }
.steps b { color: var(--ink); font-weight: 600; }

/* About */
.prose { max-width: 66ch; }
.prose p { color: var(--ink-2); }

/* Admin */
.admin-top { display: flex; justify-content: space-between; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rule); margin: 8px 0 20px; }
.tabs a { padding: 10px 12px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--ink); }
.tabs .n { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.arow { border-bottom: 1px solid var(--rule); padding: 16px 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .arow { grid-template-columns: 1fr auto; } }
.arow .meta { font-size: 13px; margin-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: start; }
.actions form { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { color: var(--ink-3); font-weight: 400; }

@media (max-width: 640px) {
      .readout { position: static; justify-items: start; text-align: left; padding: 8px 4px 0; display: none; }
  .atlas-foot > span, .atlas-hint { display: none; }
  .jump, .combo { position: relative; width: 240px; }
.combo input { min-height: 36px; padding: 6px 36px 6px 12px; font-size: 14px; border-radius: 8px; }
.combo-chev { position: absolute; right: 12px; top: 12px; color: var(--ink-2); cursor: pointer; transition: rotate .25s var(--ease), color .15s; }
.combo:hover .combo-chev { color: var(--ink); }
.combo.open .combo-chev { rotate: 180deg; color: var(--ink); }
/* The combo form gets its own stacking context so the absolute listbox paints above siblings (map frame, sections below) instead of alongside them at auto. Bumped well above the sticky header (.top z=20) when open. */
.combo { isolation: isolate; }
.combo.open { z-index: 60; }
.combo-list { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; max-height: min(340px, 55vh); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); font-size: 14px; text-transform: none; letter-spacing: 0; animation: pop .16s var(--ease) both; }
.combo-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--ink-2); cursor: pointer; }
.combo-list li[hidden] { display: none; }
.combo-list li[aria-selected=true] { background: var(--bg-3); color: var(--ink); }
.combo-list .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.combo-none { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--rule-2); border-radius: 10px; font-size: 14px; color: var(--ink-3); }
  .sec-head { flex-wrap: wrap; }
  .filter,     .top nav a { padding: 8px 7px; }
  .search { flex-direction: column; }
  .search .btn { width: 100%; }
  .state-hero { grid-template-columns: 1fr; align-items: start; position: relative; }
  .state-shape { position: absolute; right: 0; top: 4px; width: 84px; max-height: 84px; }
  .state-name { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.03em; line-height: 1.02; margin: 0 0 14px; }
.state-name .up { color: var(--ink-3); text-decoration: none; transition: color .15s; }
.state-name .up:hover { color: var(--ink); }
/* Signature: the state's two-letter code in mono, as on the map labels. */
.state-name .st-code { margin-left: .5em; font: 400 .32em/1 var(--mono); color: var(--ink-3); vertical-align: .9em; letter-spacing: .04em; }
.state-name .sep { color: var(--rule-3); font-weight: 400; margin: 0 .22em; }
  .seg { width: 100%; }
  .seg label { flex: 1; text-align: center; }
  .seg span { padding-inline: 6px; }
  .toolbar .switch { margin-left: auto; }
  .chips-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .chips-row::-webkit-scrollbar { display: none; }
  .chips { flex-wrap: nowrap; flex: none; }
}

/* ---- Motion. Everything below is skipped when the visitor asks for reduced motion. ---- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.985); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { from { fill-opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* The light bar flashes like a patrol car's: twice when the page opens, again on hover. */
  .js .brand .lamp-l { animation: lampL .7s steps(1) .5s 2; }
  .js .brand .lamp-r { animation: lampR .7s steps(1) .5s 2; }
  .brand:hover .lamp-l { animation: lampL .7s steps(1) 1; }
  .brand:hover .lamp-r { animation: lampR .7s steps(1) 1; }
  @keyframes lampL { 0%, 50% { opacity: 1; } 25%, 75% { opacity: .15; } }
  @keyframes lampR { 0%, 50% { opacity: .15; } 25%, 75% { opacity: 1; } }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: var(--ease); }
  ::view-transition-group(shape) { animation-duration: .5s; animation-timing-function: var(--ease); }

  .js .rise { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
  .js .state-shape path, .js .state-shape circle {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: draw 1.3s var(--ease-io) .1s forwards, fillin .7s var(--ease) .9s both;
  }
  /* Arriving from the map, the outline is already there, so skip the draw. */
  .vt-from-map .state-shape path, .vt-from-map .state-shape circle { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  /* Re-filtering the same state: keep the header still, only the results animate. */
  .same-page .state-shape path, .same-page .state-shape circle { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .same-page .toolbar.rise { animation: none; }
  .same-page .state-shape, .same-page .top { view-transition-name: none; }

  /* Home headline: each word rises out of its own line. */
  .js .display .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
  .js .display .w > span { display: inline-block; animation: wordup .9s var(--ease) both; }
  .js .display .w:nth-child(2) > span { animation-delay: 60ms; } .js .display .w:nth-child(3) > span { animation-delay: 120ms; }
  .js .display .w:nth-child(4) > span { animation-delay: 180ms; } .js .display .w:nth-child(5) > span { animation-delay: 240ms; }
  .js .display .w:nth-child(6) > span { animation-delay: 300ms; } .js .display .w:nth-child(7) > span { animation-delay: 360ms; }
  @keyframes wordup { from { transform: translateY(108%); } }
  .js .home-top .hero > .lede { animation: rise .7s var(--ease) .4s both; }
  .js .home-top .hero > .search { animation: rise .7s var(--ease) .5s both; }
  .js .home-top .hero > .ticker { animation: rise .7s var(--ease) .6s both; }

  /* Map: a scan line crosses west to east and each state lights up as it passes. */
  .js .map a > * { animation: fade .5s var(--ease) both; }
  .js .map .w0 { animation-delay: 150ms; } .js .map .w1 { animation-delay: 280ms; } .js .map .w2 { animation-delay: 410ms; }
  .js .map .w3 { animation-delay: 540ms; } .js .map .w4 { animation-delay: 670ms; } .js .map .w5 { animation-delay: 800ms; }
  .js .map .w6 { animation-delay: 930ms; } .js .map .w7 { animation-delay: 1060ms; } .js .map .w8 { animation-delay: 1190ms; }
  .js .map .w9 { animation-delay: 1320ms; }
  .js .map .labels { animation: fade .6s var(--ease) 1.3s both; }
  .js .map .sweep { animation: sweep 1.6s cubic-bezier(.4, 0, .2, 1) .1s both; }
  @keyframes sweep { from { transform: translateX(0); opacity: 1; } 85% { opacity: 1; } to { transform: translateX(1060px); opacity: 0; } }
  .js .readout { animation: fade .6s var(--ease) 1.4s both; }

  /* Below the fold, things arrive as they scroll in. CSS scroll timelines only, no observers;
     browsers without them just show everything. */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    .active-list li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    .active-list li:nth-child(2) { animation-range: entry 8% entry 58%; } .active-list li:nth-child(3) { animation-range: entry 16% entry 66%; }
    .active-list li:nth-child(4) { animation-range: entry 24% entry 74%; }
    .top-states .ts-fill { transform-box: fill-box; transform-origin: left center; animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
  }
}
/* ---- Motion everywhere: each piece answers something you did or shows something arriving. ---- */
@media (prefers-reduced-motion: no-preference) {
  /* Page to page: the header holds still, the page body slides out and the next one slides in. */
  main { view-transition-name: page; }
  ::view-transition-old(page) { animation: vt-out .18s var(--ease) both; }
  ::view-transition-new(page) { animation: vt-in .32s var(--ease) .04s both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

  /* Presses: buttons give a little under the finger. */
  .btn, .d-btn, .seg label span, .zoom-ctl button { transition: transform .12s var(--ease), background-color .15s, border-color .15s, color .15s; }
  .btn:active, .d-btn:active, .zoom-ctl button:active { transform: scale(.97); }

  /* Search: the field brightens and the glass leans in while you type. */
  .search input { transition: border-color .2s, background-color .2s; }
  .search .search-ico { transition: transform .25s var(--ease), color .2s; }
  .search:focus-within .search-ico { transform: translateX(2px) rotate(-8deg); color: var(--ink); }

  /* Rows: a small arrow slides in at the end of the one you point at. */
  .recent-list a { position: relative; }
  .recent-list .go { position: absolute; right: -24px; top: 50%; color: var(--ink-2); opacity: 0; transform: translate(-8px, -50%); transition: opacity .2s var(--ease), transform .25s var(--ease); }
  .recent-list a:hover .go { opacity: 1; transform: translate(0, -50%); }
  .active-list .ico, .recent-list .ico { transition: transform .3s var(--ease); }
  .active-list a:hover .ico, .recent-list a:hover .ico { transform: translateY(-2px); }

  /* Lists arrive row by row as they scroll in. */
  @supports (animation-timeline: view()) {
    .recent-list li, .cards > *, .d-list .d-row { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .sv-stats div { animation: rise .6s var(--ease) both; }
    .sv-stats div:nth-child(2) { animation-delay: .08s; } .sv-stats div:nth-child(3) { animation-delay: .16s; }
  }
  /* Server page: the icon settles in, the join panel follows. */
  .js .sv-head .ico { animation: pop .6s var(--ease) both; }
  .js .sv-join { animation: rise .6s var(--ease) .2s both; }
}
.recent-list .go { display: none; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) { .recent-list .go { display: inline-flex; } }
.cnt { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- Discord sign-in ---- */
.top nav { align-items: center; }
.nav-auth { margin-left: 6px; border: 1px solid var(--rule-2); }
.nav-me { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; }
.nav-me span { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-3); flex: none; }
.av-lg { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-3); flex: none; }
.btn .dc { flex: none; }
.alt-login { margin-top: 28px; }
.alt-login summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
.alt-login summary:hover { color: var(--ink); }
.alt-login .form { margin-top: 12px; }
.me-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.me-head h1 { margin: 0 0 2px; }
.me-head form { margin-left: auto; }
.own-list { border-top: 1px solid var(--rule); margin-bottom: 24px; }
.own-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.own-main { flex: 1; min-width: 0; }
.own-main .card-name { margin: 0 0 2px; }
.own-main .card-name a { text-decoration: none; }
.own-main .card-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.own-row .actions { display: flex; gap: 8px; }
.st-approved { color: var(--ink); }
.st-rejected, .st-dead { color: #ffc2bc; }
@media (max-width: 640px) {
  .nav-me span { display: none; }
  .nav-auth, .nav-me { margin-left: 0; }
  .me-head { flex-wrap: wrap; }
  .own-row { flex-wrap: wrap; }
  .own-row .actions { width: 100%; padding-left: 58px; }
}
.signin-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 560px; margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--rule-2); border-radius: 10px; color: var(--ink-2); font-size: 15px; }
.signin-note p { margin: 0; }
@media (max-width: 640px) { .signin-note { flex-direction: column; align-items: flex-start; } }
.atlas-hint a { color: inherit; text-decoration: none; }
.atlas-hint a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sec-link { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.sec-link:hover { color: var(--ink); }
.sec-link::after { content: " \2192"; }

/* ---- Expired invites ---- */
.expired { position: relative; z-index: 1; font-size: 13px; color: var(--ink-3); padding: 6px 10px; border: 1px dashed var(--rule-2); border-radius: 6px; white-space: nowrap; }
.dead-box { max-width: 560px; margin: 8px 0 20px; padding: 16px; border: 1px solid var(--rule-2); border-radius: 10px; }
.dead-box > p:first-child { margin-top: 0; color: var(--ink-2); }
.dead-box b { color: var(--ink); font-weight: 600; }
.dead-form label { display: block; font-weight: 600; margin: 12px 0 6px; }
.dead-row { display: flex; gap: 8px; }
.dead-row input { flex: 1; min-width: 0; }
.dead-row .btn { min-height: 44px; }
.dead-form .meta { margin-bottom: 0; }
@media (max-width: 640px) { .dead-row { flex-direction: column; } }
.combo-tb { width: 200px; }
.combo-tb input[role=combobox] { height: 40px; min-height: 40px; padding: 0 34px 0 14px; border-radius: 8px; background: var(--bg-2); font-size: 14px; }
.combo-tb .combo-chev { top: 14px; }
@media (max-width: 640px) { .combo-tb { width: auto; flex: 1; min-width: 0; } }

/* ---- Map: states shaded blue by server count ---- */
.map-frame { position: relative; overflow: hidden; border-radius: 12px; }
.map { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.map-frame.zoomed .map { touch-action: none; cursor: grab; }
.map.panning { cursor: grabbing; }
.map .states path, .map .states circle { stroke: var(--bg); stroke-width: 1.2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .2s var(--ease); }
.s0 { fill: #141416; }
.s1 { fill: #15223a; }
.s2 { fill: #1b3462; }
.s3 { fill: #27509a; }
.s4 { fill: #477fdc; }
.s5 { fill: var(--acc); }
/* Hover: the state brightens and gets a white outline, instead of turning solid white. */
.states a:hover > *, .states a:focus-visible > * { filter: brightness(1.45) saturate(1.1); stroke: var(--ink); stroke-width: 1.6px; }
.states a:hover .s0, .states a:focus-visible .s0 { fill: var(--bg-3); filter: none; }
.states a:focus-visible > * { stroke: var(--acc); stroke-width: 2px; }
.labels { pointer-events: none; }
.lbl { fill: var(--ink); text-anchor: middle; font-family: var(--sans); transition: opacity .2s; }
.lbl.on-light { fill: var(--bg); }
.lc { font-size: calc(11px * var(--lf, 1)); font-weight: 600; letter-spacing: .03em; }
.ln { font-size: calc(10px * var(--lf, 1)); opacity: .75; font-variant-numeric: tabular-nums; }
.lbl.tiny { opacity: 0; }
.map-frame.near .lbl.tiny { opacity: 1; }
/* The hovered state turns white, so its label goes dark. */
.lbl.hot { fill: var(--ink); }
.zoom-ctl { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; border: 1px solid var(--rule-2); border-radius: 10px; background: rgba(21, 21, 23, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.zoom-ctl button { all: unset; display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink-2); cursor: pointer; transition: color .15s, background-color .15s; }
.zoom-ctl button + button { border-top: 1px solid var(--rule); }
.zoom-ctl button:hover { color: var(--ink); background: var(--bg-3); }
.zoom-ctl button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.zoom-ctl button[hidden] { display: none; }
@media (max-width: 640px) { .zoom-ctl { right: 6px; bottom: 6px; } .zoom-ctl button { width: 40px; height: 40px; } }

/* ---- Ratings ---- */
.counts .rt { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.star { color: var(--acc); flex: none; }
.stats .of { color: var(--ink-3); font-size: .6em; font-weight: 400; letter-spacing: 0; }
.rate { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); }
.rate-h { font-size: 18px; margin: 0 0 10px; }
.rate .meta { margin: 0 0 12px; }
.rate-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; border: 0; padding: 0; margin: 0; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { cursor: pointer; padding: 4px; border-radius: 6px; color: var(--rule-3); transition: color .12s, transform .12s var(--ease); }
.stars label .star { width: 28px; height: 28px; color: inherit; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--acc); }
.stars:hover input:checked ~ label:not(:hover):not(:hover ~ label) { color: var(--rule-3); }
.stars label:active { transform: scale(.9); }
.stars input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 1px; }
.rate-form .rate-note { margin: 0; }
.rate-form.auto .rate-save { display: none; }
.rate-remove { margin-top: 8px; }
.linkish { all: unset; cursor: pointer; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); }

/* ---- Filter bar, final pass ----
   One control height, one radius, one surface, so the row reads as a single instrument.
   Selected states are a lifted dark pill rather than a white block. */
.toolbar { --ctl: 36px; position: relative; z-index: 20; gap: 8px; }
.seg { height: var(--ctl); padding: 3px; border-radius: 10px; align-items: stretch; box-sizing: border-box; background: var(--bg-2); border: 1px solid var(--rule); }
.seg span { display: flex; align-items: center; height: 100%; padding: 0 12px; border-radius: 7px; font-size: 13px; letter-spacing: -.005em; color: var(--ink-3); }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: #232327; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .4); }
.seg input:focus-visible + span { outline: 2px solid var(--rule-3); outline-offset: 0; }
.combo-tb { width: 190px; }
.combo-tb input[role=combobox] { height: var(--ctl); min-height: 0; padding: 0 32px 0 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--bg-2); font-size: 13px; color: var(--ink); }
.combo-tb input[role=combobox]::placeholder { color: var(--ink-3); }
.combo-tb input[role=combobox]:hover { border-color: var(--rule-2); }
.combo-tb input[role=combobox]:focus { outline: none; border-color: var(--rule-3); }
.combo-tb .combo-chev { top: 12px; right: 11px; color: var(--ink-3); }
.combo-tb .combo-list { top: calc(100% + 6px); }
.dd-btn { height: var(--ctl); padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); gap: 7px; }
.dd-btn:hover, .dd[open] .dd-btn, .dd-btn.on { color: var(--ink); border-color: var(--rule-2); }
.dd-btn:focus { outline: none; }
.dd-btn:focus-visible { outline: 2px solid var(--rule-3); outline-offset: 2px; }
.dd-n { min-width: 16px; height: 16px; font-size: 10.5px; }
.dd-menu { min-width: 232px; padding: 5px; border-radius: 12px; background: #141416; border-color: var(--rule-2); box-shadow: 0 24px 48px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4); }
.dd-opt { justify-content: flex-start; gap: 10px; height: 34px; padding: 0 10px; font-size: 13px; color: var(--ink-2); }
.dd-opt:hover { background: rgba(255, 255, 255, .05); }
.dd-box { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 4px; border: 1px solid var(--rule-3); transition: background-color .12s, border-color .12s; }
.dd-box .dd-check { width: 11px; height: 11px; opacity: 0; color: var(--bg); }
.dd-opt input:checked ~ .dd-box { background: var(--ink); border-color: var(--ink); }
.dd-opt input:checked ~ .dd-box .dd-check { opacity: 1; }
.dd-opt input:focus-visible ~ .dd-box { outline: 2px solid var(--rule-3); outline-offset: 2px; }
.dd-opt input:focus-visible ~ span { outline: none; }
.toolbar .switch { min-height: var(--ctl); font-size: 13px; color: var(--ink-3); }
.toolbar .switch:hover { color: var(--ink); }
@media (max-width: 640px) { .combo-tb { width: auto; flex: 1; } .seg span { padding: 0 8px; } }
.dd-menu { left: auto; right: 0; }

/* ---- Home tally ---- */
.tally { margin: 18px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-3); max-width: 62ch; }
.tally b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.tally-live { white-space: nowrap; }
.tally-live .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ecf6e; margin: 0 6px 2px 2px; }


/* ---- erlcdirectory.com ---- */
.dir-head { padding: clamp(28px, 6vw, 56px) 0 8px; }
.dir-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin: 12px 0 20px; overflow-x: auto; }
.dir-tabs a { display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 14px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s, border-color .2s; }
.dir-tabs a:hover { color: var(--ink); }
.dir-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--acc); }
.dir-tabs span { font: 13px/1 var(--mono, ui-monospace, monospace); color: var(--ink-3); }
.dir-search { margin-bottom: 4px; }
.dir-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 8px; }


/* ---- Home: recently added + biggest states ---- */
.home-lists { margin-top: 72px; display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .home-lists { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }
.home-lists .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.top-states { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--rule); }
.top-states a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; row-gap: 8px; padding: 12px 0 10px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.ts-code { font: 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.ts-name { font-size: 15px; transition: color .15s; }
.top-states a:hover .ts-name { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-3); text-underline-offset: 3px; }
.ts-n { font: 13px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ts-bar { grid-column: 2 / -1; display: block; width: 100%; height: 2px; }
.ts-track { fill: var(--rule); }
.ts-fill { fill: var(--ink-3); }
.ts-fill.lead { fill: var(--acc); }

/* ---- Server page ---- */
.sv-head { display: flex; align-items: center; gap: 24px; padding: 20px 0 32px; }
.sv-head .ico { width: 96px; height: 96px; border-radius: 22px; font-size: 26px; }
.sv-title { min-width: 0; }
.sv-name { font-size: clamp(30px, 5vw, 54px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 12px; overflow-wrap: anywhere; }
.sv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; font-size: 14px; color: var(--ink-3); }
.sv-code { font: 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); text-decoration: none; padding: 4px 6px; border: 1px solid var(--rule-2); border-radius: 5px; transition: border-color .15s, color .15s; }
.sv-code:hover { color: var(--ink); border-color: var(--rule-3); }
.sv-ver { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.sv-ver .badge { color: var(--acc); margin: 0; }
.sv-grid { display: grid; gap: 32px; border-top: 1px solid var(--rule); padding-top: 32px; }
@media (min-width: 900px) { .sv-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } .sv-side { position: sticky; top: 80px; align-self: start; } }
.sv-desc { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px; max-width: 62ch; overflow-wrap: anywhere; }
.sv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 32px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sv-stats div { padding: 20px 0 20px 20px; border-left: 1px solid var(--rule); min-width: 0; }
.sv-stats div:first-child { padding-left: 0; border-left: 0; }
.sv-stats dt { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.sv-stats dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 400 28px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sv-stats .dot.live { width: 8px; height: 8px; margin: 0; background: #3ecf6e; }
.sv-stars { display: inline-flex; gap: 1px; }
.sv-stars span { color: var(--ink-3); opacity: .4; display: inline-flex; }
.sv-stars span.on { color: var(--ink); opacity: 1; }
.sv-of { font: 13px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-3); flex-basis: 100%; }
.sv-main .rate { margin-top: 32px; }
.sv-foot { margin-top: 32px; display: grid; gap: 8px; }
.sv-join { border: 1px solid var(--rule); border-radius: 16px; padding: 20px; background: var(--bg-2); }
.sv-btn { width: 100%; min-height: 48px; font-size: 16px; }
.sv-btn .dc { flex: none; }
.sv-inv { margin: 16px 0 0; text-align: center; font: 13px/1.4 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.sv-inv b { font-weight: 400; color: var(--ink-2); }
.sv-note { margin: 6px 0 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.sv-more { margin-top: 72px; }
.sv-more .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
@media (min-width: 720px) { .sv-more .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .sv-head { gap: 16px; padding-top: 8px; }
  .sv-head .ico { width: 64px; height: 64px; border-radius: 16px; font-size: 18px; }
  .sv-stats dd { font-size: 20px; }
  .sv-stats div { padding-left: 12px; }
}
.rl-u { font-family: var(--sans); color: var(--ink-3); }
@media (max-width: 560px) { .rl-u { display: none; } }

/* Phones: the header keeps Servers, Submit and Sign in; States and About are on the page and in the footer. */
@media (max-width: 520px) { .top nav .nav-wide { display: none; } .top nav a { padding: 8px; font-size: 14px; } .top nav .nav-auth { margin-left: 4px; } }
@media (max-width: 560px) { .state-hero { grid-template-columns: 1fr; } .state-shape { display: none; } }

/* ---- Home: hero text beside the map ---- */
.home-top .hero { padding-block: 24px 0; }
.home-top .hero .lede { margin: 0 0 24px; }
.home-top .search { max-width: 520px; }
.home-top .tally { margin-top: 24px; }
@media (min-width: 1100px) {
  .home-top { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 48px; align-items: center; min-height: calc(100svh - 56px - 48px);
    width: min(1440px, calc(100vw - 48px)); margin-inline: calc(50% - min(720px, 50vw - 24px)); }
  .home-top .hero { padding: 0; }
  .home-top .display { font-size: clamp(44px, 4.4vw, 64px); }
  .home-top .atlas { margin-top: 0; border-top: 0; border-bottom: 0; }
  .home-top .atlas-bar { padding-top: 0; }
}

/* ---- Home: most active right now ---- */
.home-active { margin-top: 64px; }
.home-active .sec-head, .home-facts .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.active-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .active-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .active-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.active-list a { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px 12px; padding: 16px; border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; background: var(--bg); transition: border-color .2s, background-color .2s; }
.active-list a:hover { border-color: var(--rule-2); background: var(--bg-2); }
.al-rank { position: absolute; top: 12px; right: 14px; font: 12px/1 var(--mono); color: var(--ink-3); }
.active-list .ico { width: 44px; height: 44px; border-radius: 11px; }
.al-text { display: grid; gap: 3px; min-width: 0; align-content: center; padding-right: 16px; }
.al-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); min-width: 0; white-space: nowrap; overflow: hidden; }
.al-code { font: 11px/1 var(--mono); padding: 3px 5px; border: 1px solid var(--rule-2); border-radius: 4px; color: var(--ink-2); flex: none; }
.al-on { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); font: 22px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.al-on .dot.live { width: 8px; height: 8px; margin: 0; background: #3ecf6e; }
.al-u { font: 13px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); }

/* ---- Home: how it works ---- */
.home-facts { margin-top: 72px; display: grid; gap: 24px; border-top: 1px solid var(--rule); padding-top: 32px; }
@media (min-width: 900px) { .home-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
.home-facts h3 { font-size: 16px; font-weight: 500; margin: 0 0 8px; letter-spacing: -.01em; }
.home-facts p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 40ch; }

/* Map scan line: a hairline of the accent with a faint trail, above the states, never clickable. */
.map .sweep { pointer-events: none; transform: translateX(1060px); }
.map .sweep-line { fill: var(--acc); }
.map .sweep-trail { fill: var(--acc); opacity: .07; }

/* Home: live line cycling through the busiest servers (dir: site.js). */
.ticker { position: relative; display: flex; align-items: center; gap: 10px; margin: 20px 0 0; height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-2); font-size: 14px; overflow: hidden; max-width: 520px; }
.tk-label { font: 12px/1 var(--mono); color: var(--ink-3); flex: none; display: inline-flex; align-items: center; gap: 8px; }
.tk-label .dot { width: 6px; height: 6px; margin: 0; background: #3ecf6e; }
.tk-items { position: relative; flex: 1; height: 100%; min-width: 0; }
.tk { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; opacity: 0; transform: translateY(100%); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.tk.on { opacity: 1; transform: none; }
.tk.out { opacity: 0; transform: translateY(-100%); }
.tk b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk span { font: 13px/1 var(--mono); color: var(--ink-2); flex: none; font-variant-numeric: tabular-nums; }
.tk:hover b { text-decoration: underline; text-decoration-color: var(--rule-3); text-underline-offset: 3px; }

/* Home hero: one search field with its button inside, and the live line as a quiet row under it. */
.hero-search { position: relative; display: block; max-width: 480px; }
.hero-search input { width: 100%; height: 52px; padding: 0 104px 0 42px; border-radius: 12px; font-size: 16px; }
.hero-search .search-ico { top: 18px; left: 15px; }
.hero-search .btn { position: absolute; top: 8px; right: 8px; min-height: 36px; height: 36px; padding: 0 16px; border-radius: 8px; font-size: 14px; }
.home-top .ticker { margin-top: 16px; height: 24px; padding: 0; border: 0; background: none; max-width: 480px; font-size: 14px; }
.home-top .ticker .tk b { font-weight: 400; color: var(--ink-2); }
.home-top .ticker .tk span { color: var(--ink-3); }
.home-top .ticker .tk:hover b { color: var(--ink); }
.home-top .hero .lede { max-width: 34ch; }
.home-top .ticker, .home-top .ticker .tk-items, .home-top .ticker .tk { height: 22px; line-height: 22px; }
.home-top .ticker .tk-label { line-height: 22px; }

/* Minimal home: one column of lists under the hero, a single line to list a server. */
.home-lists { grid-template-columns: 1fr !important; }
.home-top .atlas-bar { display: none; }
.home-cta { margin: 64px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 15px; }
.home-cta a { color: var(--ink); }

/* ---- Home below the map: quiet headings, borderless rows ---- */
.home-active, .home-lists { margin-top: 56px; }
.home-active .sec-head h2, .home-lists .sec-head h2 { font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.home-lists .sec-link { font-size: 14px; color: var(--ink-3); }
.home-lists .sec-link:hover { color: var(--ink); }
.active-list { gap: 0 32px; }
.active-list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-radius: 0; background: none; }
.active-list a:hover { background: none; }
.active-list .ico { width: 40px; height: 40px; border-radius: 10px; }
.active-list .al-text { padding: 0; gap: 4px; }
.active-list .al-name { font-weight: 400; color: var(--ink); transition: color .15s; }
.active-list a:hover .al-name { color: #fff; }
.active-list .al-on { grid-column: auto; padding: 0; border: 0; font: 13px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); gap: 6px; }
.active-list .al-on .dot.live { width: 6px; height: 6px; }
.recent-list { border-top: 0; }
.recent-list a { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; padding: 10px 0; border-bottom: 0; }
.recent-list .ico { width: 32px; height: 32px; border-radius: 8px; font-size: 11px; }
.recent-list .rl-name { font-weight: 400; }
.recent-list a:hover .rl-name { color: #fff; text-decoration: none; }
.recent-list .rl-meta { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 720px) { .recent-list a { grid-template-columns: 32px minmax(0, 1fr); } .recent-list .rl-meta { grid-column: 2; } }
.home-cta { border-top: 0; padding-top: 0; margin-top: 48px; }

/* ---- Home boards: most active and recently added, side by side ---- */
.boards { margin-top: 72px; display: grid; gap: 56px; }
@media (min-width: 1000px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-2); }
.board-head h2 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink); }
.board-head span, .board-head a { font: 12px/1 var(--mono); color: var(--ink-3); text-decoration: none; transition: color .15s; }
.board-head a:hover { color: var(--ink); }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list a { position: relative; display: grid; grid-template-columns: 24px 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--rule); }
.b-rk { font: 12px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .2s; }
.board-list .ico { width: 36px; height: 36px; border-radius: 9px; font-size: 11px; }
.b-text { display: grid; gap: 4px; min-width: 0; }
.b-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.b-sub { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-val { display: inline-flex; align-items: center; gap: 8px; font: 15px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.b-val .dot.live { width: 6px; height: 6px; margin: 0; background: #3ecf6e; }
.b-time { font-size: 13px; color: var(--ink-3); }
/* The row's bottom line fills with its share of the busiest server's players. */
.b-fill { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 1px; overflow: visible; }
.b-fill rect { fill: var(--ink-3); }
.b-fill rect.lead { fill: var(--acc); }
.board-list a:hover .b-rk { color: var(--acc); }

/* ---- Server names: a drawn underline sweeps in from the left on hover ---- */
.u, .card-name a, .d-link, .al-name, .rl-name, .sv-more .card-name a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; text-decoration: none; transition: background-size .35s var(--ease); padding-bottom: 1px; }
.board-list a:hover .u, .card:hover .card-name a, .d-row:hover .d-link, .recent-list a:hover .rl-name { background-size: 100% 1px; }
@media (prefers-reduced-motion: no-preference) {
  .b-fill rect { transform-box: fill-box; transform-origin: left center; }
  @supports (animation-timeline: view()) {
    .b-fill rect { animation: grow linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
    .board-list li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}

/* ---- Footer: brand, three link columns, a bottom bar ---- */
.foot { margin-top: 96px; }
.foot-grid { display: grid; gap: 32px; padding-block: 48px 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; } }
.foot-brand p { margin: 12px 0 0; max-width: 34ch; color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.foot-brand .brand { padding: 0; }
.foot .foot-col { display: grid; align-content: start; gap: 10px; }
.foot-col h2 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: 0; }
.foot .foot-col a { font-size: 14px; color: var(--ink-3); text-decoration: none; padding: 0; transition: color .15s; width: fit-content; }
.foot .foot-col a:hover { color: var(--ink); }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 32px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }

/* ---- Not found ---- */
.nf { padding-block: clamp(48px, 10vw, 120px); max-width: 560px; }
.nf-code { font: 13px/1 var(--mono); color: var(--ink-3); margin: 0 0 16px; letter-spacing: .04em; }
.nf h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; margin: 0 0 12px; }
.nf .lede { margin: 0 0 28px; }
.nf-links { display: flex; gap: 24px; margin: 24px 0 0; font-size: 14px; }
.nf-links a { color: var(--ink-2); }

/* Legal pages read like documents. */
.prose ul { padding-left: 20px; color: var(--ink-2); }
.prose li { margin: 6px 0; }
.prose code { font: 13px var(--mono); padding: 2px 5px; border: 1px solid var(--rule-2); border-radius: 4px; }
