@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-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; 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: 11px; letter-spacing: .14em; 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; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding .3s var(--ease); }
.recent-list a:hover { padding-left: 8px; }
.rl-name { font-weight: 500; overflow-wrap: anywhere; }
.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); }
.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-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; 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-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; 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); }
.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 when you hover the logo. */
  .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 
  .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; }

  .js .map a > * { animation: fade .6s var(--ease) both; }
  .js .map .w1 { animation-delay: 50ms; } .js .map .w2 { animation-delay: 100ms; } .js .map .w3 { animation-delay: 150ms; }
  .js .map .w4 { animation-delay: 200ms; } .js .map .w5 { animation-delay: 250ms; } .js .map .w6 { animation-delay: 300ms; }
  .js .map .w7 { animation-delay: 350ms; } .js .map .w8 { animation-delay: 400ms; } .js .map .w9 { animation-delay: 450ms; }
  .js .readout { animation: fade .6s var(--ease) .5s both; }
  .js .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; }

  /* Sections below the fold rise as they scroll in. CSS only, no observers. */
  @supports (animation-timeline: view()) {
    .reveal,       }
}
@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; box-shadow: 0 0 0 0 rgba(62, 207, 110, .5); }
@media (prefers-reduced-motion: no-preference) {
  .tally-live .dot { animation: livepulse 2.4s ease-out infinite; }
  @keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(62, 207, 110, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(62, 207, 110, 0); } }
}

/* ---- 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; }
