@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* Tokens: change colours here, every component reads from these */
:root {
  --bg: #332b27;
  --surface: #403730;
  --surface-2: #493e36;
  --ink: #f5efe7;
  --muted: #d6ccc0;
  --line: rgba(245, 239, 231, .18);
  --accent: #9a7d69;
  --accent-hover: #b39179;
  --accent-ink: #f5efe7;
  --ok: #8fae86;
  --warn: #c9784b;
  --radius: 0;
  --shadow: none;
}

:root[data-theme="dark"] {
  --bg: #332b27;
  --surface: #403730;
  --surface-2: #493e36;
  --ink: #f5efe7;
  --muted: #d6ccc0;
  --line: rgba(245, 239, 231, .18);
  --accent: #9a7d69;
  --accent-hover: #b39179;
  --accent-ink: #f5efe7;
  --ok: #8fae86;
  --warn: #c9784b;
  --shadow: none;
}

* { box-sizing: border-box; text-transform: lowercase; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  font: 12px/1.5 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 0 0 64px;
  -webkit-font-smoothing: antialiased;
}

body > main { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; }
body > footer { width: 100%; }
.brand-family-bar { min-height: 34px; width:100%; display:flex; align-items:center; justify-content:center; gap:26px; padding:0 16px; margin:0 auto; background:var(--surface); color:var(--muted); font-size:10px; line-height:1; text-transform:lowercase; text-align:center; }
.brand-family-bar a { color:inherit; text-decoration:none; white-space:nowrap; }
.brand-family-bar a:hover,.brand-family-bar a:focus-visible { color:var(--ink); }
.brand-family-bar a.is-current { color:var(--ink); font-weight:600; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1, h2 { line-height: 1.25; letter-spacing: 0; font-weight: 400; }
h1 { margin: 18px 0 28px; font: 300 clamp(1rem, 1.8vw, 2rem)/1.25 'IBM Plex Mono', ui-monospace, monospace; max-width: 30ch; }
h2 { margin: 0 0 32px; font-size: clamp(1rem, 1.8vw, 2rem); }

/* Header */
.site-header {
  position: relative;
  top: 0;
  z-index: 10;
  width: 100%;
  min-height: 58px;
  margin: 0;
  background: var(--bg);
  border-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.brand { display: inline-flex; order: 2; align-items: baseline; justify-content: center; gap: 0; width: auto; margin: 32px auto; padding: 10px 18px 11px; background: var(--bg); color: var(--ink); border-radius: 999px; box-shadow: 0 4px 12px rgba(20,15,12,.2); text-align: center; text-decoration: none; font: 500 14px/1 'IBM Plex Mono',ui-monospace,monospace; letter-spacing: 0; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: var(--accent);
  box-shadow: inset 0 0 0 6px var(--accent), inset 0 0 0 9px var(--bg);
}
.brand-name { display: inline-flex; align-items: baseline; font: inherit; letter-spacing: inherit; }
.brand-name > span:first-child { color: #000; }
.brand-logo { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.brand-accent { color: var(--accent); }
.brand-do { color: #de534c; }
.brand-ma { color: #e2bd45; }
.brand-in { color: #67a85c; }
.brand-s { color: #5486cb; }
.header-right { display: contents; }

.search {
  position: relative;
  flex: 1 1 220px;
  max-width: 340px;
  display: flex;
  align-items: center;
}
.search svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 38px; border-radius: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.status.is-offline .dot { background: var(--warn); box-shadow: none; }

input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
  width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hero */
.hero {
  background: transparent;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  overflow: hidden;
}
.hero-inner { max-width: none; margin: 0 auto; padding: clamp(64px, 10vw, 128px) 0 96px; }
.eyebrow { margin: 0 0 10px; font-size: 10px; font-weight: 600; letter-spacing: 0; color: var(--accent); text-transform: lowercase; }
.lede { margin: 0 auto 22px; color: var(--muted); font-size: 8px; max-width: 48ch; text-align: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0 0; }
.stats div { display: grid; gap: 2px; }
.stats dt { font-size: 12px; text-transform: lowercase; letter-spacing: 0.06em; color: var(--muted); }
.stats dd { margin: 0; font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn, .link-btn, .icon-btn {
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 0;
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover, .icon-btn:hover { border-color: var(--accent); }
.btn-lg { padding: 10px 18px; font-size: 12px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; }
.link-btn { border: none; background: none; color: var(--accent); padding: 4px 0; font-weight: 600; }
.icon-btn { padding: 8px 14px; font-size: 12px; }

/* Sections */
.section { width: min(1180px, calc(100% - 48px)); max-width: none; margin: 0 auto; padding: 64px 0; border-top: 0; background: transparent; text-align: center; }
.section-head { display: flex; flex-wrap: wrap; justify-content: center; align-items: end; gap: 18px; margin-bottom: 34px; text-align: center; }
.fine { margin: 0 0 12px; font-size: 11px; color: var(--muted); }

/* Country row: a horizontal strip on phones, wrapping on desktop */
.country-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.tile {
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 0;
  font: 500 12px/1 'IBM Plex Mono', ui-monospace, monospace;
  padding: 7px 10px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tile:hover { border-color: var(--accent); }
.tile.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tile .n { font-size: 12px; opacity: 0.65; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {
  .country-row { flex-wrap: wrap; overflow: visible; }
}

/* Tabs */
.tabs { display: flex; gap: 4px; background: transparent; padding: 0; border-bottom: 0; }
.tab {
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 7px 14px;
  cursor: pointer;
}
.tab.is-active { background: var(--accent); color: var(--ink); box-shadow: none; }
.count { font-size: 12px; opacity: 0.7; font-variant-numeric: tabular-nums; }

/* Toolbar */
.toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: end;
  margin-bottom: 16px;
}
.toolbar .results-line { grid-column: 1 / -1; margin: 0; }
.toolbar .link-btn { justify-self: start; }
@media (min-width: 760px) {
  .toolbar { grid-template-columns: 200px 200px auto 1fr; }
  .toolbar .results-line { grid-column: auto; text-align: right; }
}
.field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field select { color: var(--ink); font-weight: 400; }
.results-line { font-size: 11px; color: var(--muted); }

/* Station cards: compact, in an auto-fill grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-content: start;
  box-shadow: none;
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card.is-playing { border-color: var(--accent); }
.card-body { min-width: 0; grid-column: 2; }
.card-name { font-weight: 650; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { font-size: 10px; background: transparent; border-bottom: 0; padding: 2px 0; color: var(--muted); }
.card-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; }
.card-actions .btn { flex: 1; padding: 8px 12px; font-size: 11px; }
.btn-save { flex: none !important; }
.btn-save[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.empty {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.empty button { margin-top: 10px; }

/* Avatar: monogram in a colour derived from the station name */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 15px;
  color: #fff;
  grid-row: span 2;
  flex: none;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}
.avatar-sm { width: 40px; height: 40px; font-size: 13px; border-radius: 0; }

/* Footer */
.site-footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; border-top: 0; background: transparent; }
.footer-inner { max-width: none; margin: 0 auto; padding: 24px 28px; display: grid; gap: 12px; }
.footer-about { margin: 0; font-size: 11px; color: var(--muted); max-width: 70ch; }
.footer-links { display: flex; gap: 16px; }

/* Player */
.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 0;
  box-shadow: 0 -6px 24px rgba(29, 27, 24, 0.08);
  z-index: 20;
}
.player-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.play-btn:hover { background: var(--accent-hover); }
.play-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.now { min-width: 0; flex: 1; }
.now-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Equaliser: animates only while audio plays */
.eq { display: none; align-items: flex-end; gap: 3px; height: 18px; }
.player.is-playing .eq { display: inline-flex; }
.eq i { width: 3px; height: 100%; background: var(--accent); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.2s; }
.eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .eq i { animation: none; transform: scaleY(0.7); }
}

@media (max-width: 560px) {
  .player-inner { gap: 8px; padding: 10px 14px; }
  .player .icon-btn { display: none; }
  .eq { display: none !important; }
}

/* Submit modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 30;
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}
#submit-form { display: grid; gap: 12px; }
.checks { border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; margin: 0; }
.checks legend { font-size: 11px; color: var(--muted); padding: 0 4px; font-weight: 600; }
.checks-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { font-size: 11px; display: flex; gap: 6px; align-items: center; }
.form-error { color: var(--accent); margin: 0; font-size: 11px; }
#submit-json { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; }

@media (max-width: 560px) {
  .hero-inner { padding: 36px 16px 30px; }
  .section { padding: 28px 16px 8px; }
  .site-header { padding: 12px 16px; }
  .stats { gap: 20px; }
}

/* Map */
.map-wrap { position: relative; background: transparent; border: 1px solid var(--line); border-radius: 0; padding: 12px; box-shadow: none; }
.map { width: 100%; min-height: 200px; }
.map svg { display: block; width: 100%; height: auto; }
.map path.country { fill: var(--surface-2); stroke: var(--bg); stroke-width: 0.6; transition: fill 0.15s; }
.map path.country.has-stations { fill: color-mix(in srgb, var(--accent) 38%, var(--surface)); cursor: pointer; }
.map path.country.has-stations:hover { fill: color-mix(in srgb, var(--accent) 65%, var(--surface)); }
.map path.country.is-active { fill: var(--accent); }
.map path.country:focus { outline: none; }
.map-status { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.fallback-label { margin: 16px 0 8px; }

/* Station panel under the map */
.country-panel {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.country-panel h3 { margin: 0; font-size: 18px; }
.panel-list { display: grid; gap: 8px; margin-top: 12px; max-height: 420px; overflow-y: auto; }
.prow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.prow.is-playing { border-color: var(--accent); }
.prow-body { min-width: 0; }
.prow-actions { display: flex; gap: 6px; }
.prow-actions .btn { padding: 7px 12px; font-size: 14px; }
@media (max-width: 480px) {
  .prow { grid-template-columns: auto 1fr; }
  .prow-actions { grid-column: 1 / -1; }
  .prow-actions .btn { flex: 1; }
}

/* Radio / TV switch */
.switch { display: flex; order: 1; width: 100%; justify-content: center; background: transparent; padding: 16px max(32px, calc((100% - 1180px) / 2)); border: 0; gap: 10px; }
.switch a { flex: 0 0 auto; min-width: 0; display: grid; place-items: center; font-size: 11px; font-weight: 400; color: var(--ink); text-decoration: none; text-align: center; padding: 0; border: 0; border-radius: 999px; letter-spacing: 0; line-height: 1.25; text-transform: lowercase; white-space: nowrap; cursor: pointer; transition: background .18s ease, color .18s ease; }
.switch a:hover, .switch a:focus-visible { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.switch a:first-child { border: 1px solid var(--line); }
.switch a.is-on { background: transparent; color: var(--accent); box-shadow: none; font-weight: 600; }
.status { display: none; }
.switch a.is-on { background: var(--accent); color: var(--ink); border-color: var(--accent); box-shadow: none; }
.switch a:focus-visible { outline: none; }

/* TV player */
.tv-player { position: sticky; top: 56px; z-index: 15; background: #000; }
.tv-player-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 10px; padding: 0 20px 14px; }
.tv-player video { width: 100%; max-height: 62vh; background: #000; border-radius: 0 0 var(--radius) var(--radius); display: block; }
.tv-now { display: flex; flex-direction: column; color: #fff; }
.tv-now .now-name { color: #fff; }
.tv-now .now-meta { color: #bbb; }
.tv-player .link-btn { color: #fff; justify-self: end; }

/* Offline fallback: network banner, off-air card and status pill */
.net-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--warn);
  color: #1d1b18;
  font-size: 14px;
  font-weight: 600;
}
.net-banner[hidden] { display: none !important; }

.offline-card {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100px;
  width: min(480px, calc(100% - 24px));
  z-index: 25;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: none;
  display: grid;
  gap: 12px;
}
.offline-head { display: flex; gap: 12px; align-items: flex-start; }
.offline-title { font-weight: 750; font-size: 16px; }
.offline-text { font-size: 14px; color: var(--muted); margin-top: 2px; }
.offline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.offline-actions .btn { padding: 8px 14px; font-size: 14px; }

.tv-offline {
  position: static;
  transform: none;
  bottom: auto;
  width: auto;
  margin: 0 0 4px;
  background: #1c1915;
  color: #f3eee6;
  border: 1px solid #34302a;
  border-left: 4px solid #e0b04a;
  box-shadow: none;
}
.tv-offline .offline-text { color: #bdb5a8; }
.tv-offline .btn { background: #26221c; color: #f3eee6; border-color: #34302a; }
.tv-offline .btn-primary { background: #e0703a; color: #12100d; border-color: #e0703a; }

.off-pill {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, #c0392b 16%, transparent);
  color: #b03a2e;
  border: 1px solid color-mix(in srgb, #c0392b 40%, transparent);
}
.offline-count { font-size: 14px; font-weight: 600; color: var(--ink); min-height: 1.2em; }
.tv-offline .offline-count { color: #f3eee6; }

/* Station descriptions */
.card-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prow .card-desc { -webkit-line-clamp: 2; }

/* First-class search */
.search-section { padding-bottom: 4px; }
.search-wrap { position: relative; }
.search-big {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  box-shadow: var(--shadow);
  color: var(--muted);
}
.search-big:focus-within { border-color: var(--accent); }
.search-big input {
  border: none;
  background: transparent;
  padding: 15px 0;
  font-size: 17px;
  box-shadow: none;
}
.search-big input:focus { outline: none; }
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
}
.suggest[hidden] { display: none; }
.sug {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
}
button.sug:hover, .sug:hover { background: var(--surface-2); }
.sug-body, .sug-main { min-width: 0; }
.sug-main { display: block; font-weight: 650; }
.sug-meta { display: block; font-size: 13px; color: var(--muted); }
.sug-body { flex: 1; }
.sug-country .sug-main::before { content: ""; }
.sug-all { justify-content: center; color: var(--accent); font-weight: 650; }
.sug-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 14px; }
.btn-sm { padding: 6px 12px; font-size: 13px; flex: none; }

/* Online now carousel */
.carousel { display: flex; align-items: center; gap: 8px; }
.car-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-card {
  flex: 0 0 min(370px, 86%);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.car-card:hover,.car-card:focus-within { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 36px rgba(20,15,12,.2); }
.car-art { min-height: 154px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; color: #f7f2e8; background: radial-gradient(circle at 78% 18%, rgba(207,139,152,.6), transparent 32%), linear-gradient(145deg, #3a2f2f, #201c1a 78%); border-radius: 10px; overflow: hidden; }
.car-art-label,.car-kicker { font: 400 9px/1.2 'IBM Plex Mono',ui-monospace,monospace; text-transform: uppercase; letter-spacing: .08em; }
.car-art .flag { width: 42px; height: 30px; border: 1px solid rgba(255,255,255,.5); box-shadow: 0 5px 12px rgba(0,0,0,.22); }
.car-art-rule { width: 30px; height: 2px; background: var(--accent); }
.car-art-country { max-width: 10ch; font: 600 13px/1.1 Georgia,serif; }
.car-top { display: flex; align-items: center; gap: 8px; }
.car-card-body { min-width: 0; padding: 4px 4px 4px 0; display: grid; align-content: center; gap: 9px; }
.car-kicker { color: var(--accent); }
.car-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #b45e5b; box-shadow: 0 0 0 4px rgba(180,94,91,.13); }
.car-name { margin: 0; font: 600 clamp(16px,2vw,20px)/1.16 Georgia,serif; letter-spacing: -.01em; }
.car-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.4em;
}
.car-card .btn { justify-self: start; }
.car-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 560px) {
  .car-card { grid-template-columns: 96px minmax(0,1fr); gap: 12px; padding: 10px; }
  .car-art { min-height: 142px; padding: 10px; }
  .car-art-country { font-size: 12px; }
}
.car-btn:hover { border-color: var(--accent); }
.car-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
}
.car-dot.is-on { background: var(--accent); }
@media (max-width: 560px) { .car-btn { display: none; } }

/* Listener fixes */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.quick-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.chip {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.map-legend { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.swatch { width: 14px; height: 14px; border-radius: 0; background: color-mix(in srgb, var(--accent) 60%, var(--surface)); flex: none; }
.map path.country.has-stations { fill: color-mix(in srgb, var(--accent) 60%, var(--surface)); }
.map path.country.has-stations:hover { fill: color-mix(in srgb, var(--accent) 85%, var(--surface)); }
@media (max-width: 560px) {
  .status { display: none; }
}

/* Donor pages */
.give .lede, .legal .lede { color: var(--muted); }
.give-form { display: grid; gap: 18px; width: 100%; box-sizing: border-box; margin: 24px 0; max-width: 560px; }
.give-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; background: var(--surface); }
.give-block legend { font-weight: 650; padding: 0 6px; font-size: 14px; }
.seg, .amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.seg label, .amounts label { cursor: pointer; }
.seg input, .amounts input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.seg span, .amounts span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 650;
  background: var(--bg);
}
.seg input:checked + span, .amounts input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span, .amounts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.trust { margin-top: 28px; padding-top: 18px; border-top: 0; }
.trust h2 { font-size: 18px; }

/* Landing page */
.product-grid { width: min(560px, 100%); margin: 0 auto; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; }
.product-card {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
  min-height: 180px;
  height: 180px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 15, 12, .16);
  animation: panel-float 7s ease-in-out infinite;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.product-card:nth-child(2) { animation-delay: -1.5s; }
.product-card:nth-child(3) { animation-delay: -3s; }
.product-card:nth-child(4) { animation-delay: -4.5s; }
.product-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 16px 30px rgba(20, 15, 12, .24); }
.product-card h2 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0; }
.product-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.product-link { font-weight: 650; color: var(--accent); }
@keyframes panel-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.home main { display: flex; flex-direction: column; align-items: center; text-align: center; }
.home .hero, .home main > .section { width: min(900px, calc(100% - 48px)); }
.home .hero-inner { display: grid; place-items: center; min-height: 24vh; padding: 48px 0 40px; }
.home .hero h1 { margin-left: auto; margin-right: auto; }
.home-map-wrap { width: min(760px, 100%); margin: 22px auto 0; }
.home-map-wrap .map { width: 100%; }
.home-map-wrap .map-status { text-align: center; }
.directory-flag-regions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 20px; width:min(900px,calc(100% - 48px)); margin:18px auto 0; color:var(--muted); font-size:10px; line-height:1.3; letter-spacing:.04em; text-transform:lowercase; }
.directory-flag-regions b { color:var(--ink); font-weight:400; }
.directory-flag-regions a { color:inherit; text-decoration:none; }
.directory-flag-regions a:hover { color:var(--ink); }

.directory-flag-marquee {
  width: min(900px, calc(100% - 48px));
  margin: 4px auto 0;
  padding: 18px 0 4px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.directory-flag-track { display:flex; flex-direction:column; gap:18px; width:100%; }
.directory-flag-row { display:flex; width:max-content; will-change:transform; animation:directory-flags-flow 480s linear infinite; }
.directory-flag-row.row-1 { animation-direction:reverse; animation-duration:520s; }
.directory-flag-row.row-2 { animation-duration:560s; }
.directory-flag-set { display:flex; align-items:center; gap:14px; padding-right:14px; }
.directory-flag-link { display:flex; align-items:center; justify-content:center; gap:7px; width:124px; min-height:34px; padding:5px 9px; border-radius:999px; background:rgba(201,184,115,.1); color:inherit; text-decoration:none; animation:directory-flag-float 5.8s ease-in-out infinite; animation-delay:calc(var(--flag-index) * -.17s); transition:background .18s ease, box-shadow .18s ease; }
.directory-flag-link:hover,.directory-flag-link:focus-visible { background:rgba(201,184,115,.22); box-shadow:0 8px 18px rgba(15,10,7,.18); outline:none; }
.directory-flag-set img { display:block; flex:0 0 auto; width:24px; height:17px; border-radius:2px; object-fit:cover; box-shadow:0 5px 12px rgba(15,10,7,.2); }
.directory-flag-set small { display:flex; align-items:center; justify-content:center; width:auto; max-width:76px; min-height:0; padding:0; color:var(--muted); font-size:7px; letter-spacing:.04em; line-height:1.2; text-align:center; text-transform:lowercase; white-space:normal; }
.directory-flag-marquee:hover .directory-flag-row { animation-play-state:paused; }
@keyframes directory-flags-flow { to { transform:translateX(-50%); } }
@keyframes directory-flag-float { 0%,100% { transform:translateY(2px); } 50% { transform:translateY(-4px); } }
@media (prefers-reduced-motion:reduce) { .directory-flag-row,.directory-flag-link { animation:none!important; transform:none!important; } .directory-flag-set[aria-hidden="true"] { display:none; } }
.home .section-head { justify-content: center; }
.home-radio-player { position:fixed; z-index:8; right:20px; bottom:20px; width:300px; padding:15px; border:1px solid rgba(245,239,231,.18); border-radius:18px; background:#171411; color:var(--ink); box-shadow:0 22px 60px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.08); }
.home-radio-top,.home-radio-controls,.home-radio-regions { display:flex; align-items:center; gap:8px; }
.home-radio-top { justify-content:space-between; color:var(--accent); font-size:9px; letter-spacing:.08em; text-transform:lowercase; }
.home-radio-kicker { display:flex; align-items:center; gap:7px; }.home-radio-kicker i { width:7px; height:7px; display:block; border-radius:50%; background:#d75852; box-shadow:0 0 0 4px rgba(215,88,82,.16); }
.home-radio-dismiss { border:0; background:transparent; color:var(--muted); font:400 18px/1 'IBM Plex Mono',monospace; cursor:pointer; }
.home-radio-size { width:24px; height:24px; border:1px solid #51463e; border-radius:50%; background:transparent; color:var(--muted); font:400 15px/1 'IBM Plex Mono',monospace; cursor:pointer; }
.home-radio-showcase { display:flex; align-items:center; gap:12px; margin:18px 0 14px; }.home-radio-art { position:relative; display:grid; place-items:center; width:62px; height:62px; flex:0 0 62px; overflow:hidden; border-radius:11px; background:linear-gradient(135deg,#875f50,#27201c 70%); color:#f5efe7; box-shadow:inset 0 1px 0 rgba(255,255,255,.18); }.home-radio-art span { position:relative; z-index:1; font:600 18px/1 'IBM Plex Mono',monospace; letter-spacing:-.1em; }.home-radio-art i { position:absolute; width:42px; height:42px; right:-9px; top:-9px; border-radius:50%; background:rgba(220,138,151,.55); filter:blur(10px); }.home-radio-details { min-width:0; }.home-radio-state,.home-radio-meta { display:block; color:var(--muted); font-size:9px; }.home-radio-name { margin:5px 0 3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; line-height:1.25; }
.home-radio-signal { display:flex; align-items:center; gap:4px; height:28px; padding:0 2px; }.home-radio-signal b { display:block; width:3px; height:8px; border-radius:3px 3px 0 0; background:var(--accent); opacity:.8; animation:home-radio-wave 1.25s ease-in-out infinite alternate; }.home-radio-signal b:nth-child(2n) { height:16px; animation-delay:-.4s; }.home-radio-signal b:nth-child(3n) { height:25px; animation-delay:-.8s; }
.home-radio-progress { height:3px; margin:4px 0 15px; border-radius:3px; background:#3c332d; overflow:hidden; }.home-radio-progress span { display:block; width:38%; height:100%; border-radius:inherit; background:var(--accent); animation:home-radio-progress 6s linear infinite; }
.home-radio-controls { justify-content:center; margin:0 0 13px; }.home-radio-controls button { display:grid; place-items:center; width:34px; height:34px; border:1px solid #51463e; border-radius:50%; padding:0; background:transparent; color:var(--ink); font:400 12px 'IBM Plex Mono',monospace; cursor:pointer; transition:background .18s ease,border-color .18s ease,transform .18s ease; }.home-radio-controls .home-radio-play { width:84px; border-radius:999px; border-color:var(--accent); background:var(--accent); color:var(--bg); font-size:10px; font-weight:600; }.home-radio-controls button:hover { border-color:var(--accent); transform:translateY(-1px); }.home-radio-controls .home-radio-play:hover { background:var(--ink); border-color:var(--ink); }
.home-radio-region-picker { color:var(--muted); font-size:9px; border-top:1px solid #3c332d; padding-top:10px; }.home-radio-region-picker summary { cursor:pointer; color:var(--muted); }.home-radio-regions { flex-wrap:wrap; margin-top:8px; color:var(--muted); font-size:8px; }
.home-radio-regions label { display:flex; align-items:center; gap:3px; }
.home-radio-regions input { accent-color:var(--accent); }
@media(max-width:640px){.home-radio-player{right:12px;bottom:12px;width:calc(100% - 24px);padding:14px;border-radius:14px}}
.home-radio-player.is-minimized { width:178px; padding:10px 12px; border-radius:999px; }
.home-radio-player.is-minimized .home-radio-showcase { margin:0; gap:8px; }
.home-radio-player.is-minimized .home-radio-art { width:28px; height:28px; flex-basis:28px; border-radius:50%; }
.home-radio-player.is-minimized .home-radio-art span { font-size:9px; }
.home-radio-player.is-minimized .home-radio-art i,.home-radio-player.is-minimized .home-radio-signal,.home-radio-player.is-minimized .home-radio-progress,.home-radio-player.is-minimized .home-radio-region-picker,.home-radio-player.is-minimized .home-radio-meta { display:none; }
.home-radio-player.is-minimized .home-radio-name { margin:0; font-size:10px; }
.home-radio-player.is-minimized .home-radio-controls { position:absolute; right:36px; top:7px; margin:0; }.home-radio-player.is-minimized .home-radio-controls .home-radio-next { display:none; }.home-radio-player.is-minimized .home-radio-controls .home-radio-play { width:28px; height:28px; min-width:0; padding:0; font-size:0; }.home-radio-player.is-minimized .home-radio-controls .home-radio-play::after { content:'▶'; font-size:8px; }.home-radio-player.is-minimized .home-radio-controls .home-radio-play[aria-label*='pause']::after { content:'Ⅱ'; }.home-radio-player.is-minimized .home-radio-top { position:absolute; right:8px; top:9px; }.home-radio-player.is-minimized .home-radio-kicker { display:none; }
@keyframes home-radio-wave { from { transform:scaleY(.5); opacity:.35; } to { transform:scaleY(1); opacity:.9; } }
@keyframes home-radio-progress { from { transform:translateX(-110%); } to { transform:translateX(290%); } }
@media(prefers-reduced-motion:reduce){.home-radio-signal b,.home-radio-progress span{animation:none}}
.hero-shelves { width:min(900px,calc(100% - 48px)); }
.hero-shelf { padding:28px 0 34px; overflow:hidden; }
.hero-shelf + .hero-shelf { border-top:1px solid var(--line); }
.hero-shelf > header { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:18px; text-align:left; }
.hero-shelf > header h2 { margin:4px 0 0; color:var(--muted); font:400 11px/1.35 'IBM Plex Mono',ui-monospace,monospace; letter-spacing:0; }
.hero-shelf-link { flex:none; color:var(--accent); font-size:11px; font-weight:650; text-decoration:none; }
.hero-shelf-link:hover { color:var(--ink); }
@media (prefers-reduced-motion: reduce) { .product-card { animation: none; } }

/* Landing-page featured shelf */
.feature-section { overflow: hidden; }
.feature-window { overflow: hidden; margin: 0 -36px; padding: 10px 36px 20px; display: grid; gap: 12px; }
.feature-window { margin: 0; padding: 0; }
.feature-rows { display: grid; gap: 24px; }
.feature-row { overflow: hidden; }
.feature-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.feature-card { width: 220px; flex: 0 0 220px; background: transparent; border: 0; color: var(--ink); overflow: hidden; transition: transform .25s ease; }
.feature-card:hover, .feature-card:focus-within { transform: translateY(-4px); }
.feature-card a { display: block; color: inherit; text-decoration: none; }
.feature-cover { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.feature-image, .feature-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.feature-placeholder { box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; color: var(--ink); background: radial-gradient(circle at 84% 18%, rgba(207,139,152,.58), transparent 28%), linear-gradient(145deg, #3b3030 0%, #242220 72%); text-transform: lowercase; overflow: hidden; }
.feature-placeholder-brand { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); font: 400 10px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: -.05em; }
.feature-placeholder-kind { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.feature-placeholder-title { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 400 9px/1.2 'IBM Plex Mono', ui-monospace, monospace; }
.feature-card-copy { display: grid; gap: 10px; padding: 16px; background: transparent; }
.feature-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.feature-meta > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-flag { width: 14px; height: 10px; object-fit: cover; border: 1px solid var(--line); }
.feature-kind { color: var(--accent); text-transform: lowercase; letter-spacing: .06em; }
.feature-card-copy small { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 10px; line-height: 1.25; letter-spacing: 0; text-transform: uppercase; }
.feature-card h3 { margin: 0; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font: 400 14px/1.35 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0; }
.feature-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .feature-track { transform: none !important; } }

/* Library and gallery feeds */
.gallerette-collection { margin: 56px 0 80px; }
.gallerette-collection > header { display:flex; justify-content:space-between; align-items:baseline; gap:20px; margin-bottom:22px; border-bottom:1px solid var(--line); padding-bottom:10px; }
.gallerette-collection > header h2 { margin:0; font:400 1.5rem/1.2 'IBM Plex Mono',ui-monospace,monospace; }
.gallerette-collection > header span { color:var(--muted); font-size:11px; }
.gallerette-card { min-width:0; }
.gallerette-frame { aspect-ratio:4/5; padding:16px; background:#f8f6f0; border:1px solid #d6d2ca; box-shadow:inset 0 0 0 4px #fff, inset 0 0 0 5px #c9c5bd; display:grid; place-items:center; }
.gallerette-frame img { width:100%; height:100%; object-fit:contain; }
.gallerette-frame.frame-black { background:#171411; border-color:#171411; box-shadow:inset 0 0 0 4px #fff, inset 0 0 0 5px #29251f; }
.gallerette-frame.frame-walnut { background:#76543d; border-color:#5b3824; box-shadow:inset 0 0 0 4px #f3eadc, inset 0 0 0 5px #5b3824; }
.gallerette-card h3 { margin:14px 0 5px; font:400 14px/1.35 'IBM Plex Mono',ui-monospace,monospace; }
.gallerette-card p { margin:0 0 12px; color:var(--muted); font-size:11px; line-height:1.4; }
.gallerette-frames,.gallerette-sizes { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.gallerette-frames button,.gallerette-size { border:1px solid var(--line); background:var(--bg); color:var(--ink); padding:6px 8px; font:400 10px 'IBM Plex Mono',ui-monospace,monospace; cursor:pointer; }
.gallerette-frames button.is-selected,.gallerette-size.is-selected { background:var(--ink); color:var(--bg); }
.gallerette-buy { margin-top:12px; width:100%; font-size:11px; }
.feed-intro { margin-bottom: 24px; }
.feed-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; }
.feed-toolbar input { max-width: 360px; }
.feed-status { margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.feed-status.is-error { color: var(--warn); }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); gap: 16px; align-items: start; }
.feed-card { display: grid; gap: 10px; padding: 18px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.feed-card h2 { font-size: 14px; letter-spacing: 0; }
.feed-card p { margin: 0; color: var(--muted); }
.feed-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; background: var(--surface-2); }
.feed-card .btn { justify-self: start; }
.feed-empty { padding: 24px; border: 1px dashed var(--line); border-radius: 0; color: var(--muted); max-width: 620px; }
.library-page-title { font: 400 clamp(1rem, 1.8vw, 2rem)/1.25 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0; }
.library-page-title span { color: var(--accent); font: inherit; }
.library-card { padding: 0; overflow: hidden; }
.library-card-link { display: block; color: inherit; }
.library-cover { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface); border-bottom: 0; }
.library-cover-empty { display: flex; flex-direction: column; justify-content: space-between; padding: 18px; color: var(--ink); background: radial-gradient(circle at 84% 18%, rgba(207,139,152,.58), transparent 28%), linear-gradient(145deg, #3b3030 0%, #242220 72%); }
.library-cover-empty span { color: var(--accent); font: 400 24px/.95 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: -.05em; }
.library-cover-empty small { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.library-cover-empty b { max-width: 18ch; font: 400 16px/1.2 'IBM Plex Mono', ui-monospace, monospace; }
.library-card-copy { padding: 16px; }
.library-card-copy small { display: block; margin: 0 0 7px; color: var(--accent); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.library-card-copy h2 { margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font: 400 14px/1.35 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0; }
.library-card-copy p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.feature-book .feature-image, .feature-story .feature-image { height: 100%; aspect-ratio: 1 / 1; }
.feature-artwork .feature-card-cover { aspect-ratio: 4 / 5; padding: 10px; background: #f7f5ef; }
.feature-artwork .library-cover { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; padding: 0; background: #f7f5ef; }

@media (max-width: 759px) {
  .brand-family-bar { min-height:30px; gap:14px; overflow-x:auto; justify-content:flex-start; padding-left:12px; font-size:9px; }
  body { padding-top: 8px; }
  .site-header { width: 100%; min-height: 54px; margin-bottom: 0; border-radius: 0; }
  .hero, .section, .site-footer { width: calc(100% - 24px); }
  .hero { margin-bottom: 0; border-radius: 0; }
  .hero-inner { padding: 34px 22px 30px; }
  .section { margin: 0 auto; padding: 70px 0; border-radius: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-window { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .site-footer { margin-top: 0; border-radius: 0; }
  .switch { padding: 0 8px; }
  .switch a { font-size: 9px; padding: 0; letter-spacing: 0; }
}

/* Archive */
.archive-toolbar { display: grid; gap: 10px 12px; grid-template-columns: 1fr; align-items: end; margin: 8px auto 22px; max-width: 980px; }
@media (min-width: 760px) { .archive-toolbar { grid-template-columns: 2fr 1fr 1fr auto; } }
.archive-toolbar .results-line { margin: 0; text-align: right; }
.archive-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); max-width: 1120px; margin: 0 auto; }
.archive-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; align-content: start; }
.archive-thumb { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; text-decoration: none; color: var(--muted); font-size: 10px; text-transform: lowercase; }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-body { padding: 10px 12px 12px; display: grid; gap: 6px; }
.archive-title { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.archive-title a { color: inherit; text-decoration: none; }
.archive-meta { margin: 0; min-height: 1.35em; font-size: 11px; line-height: 1.4; color: var(--muted); }
.archive-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.archive-rights { margin: 0; color: var(--accent); font-size: 10px; line-height: 1.3; }
.archive-source { margin: 0; font-size: 10px; line-height: 1.4; color: var(--muted); }
.archive-source a { color: var(--accent); }
.archive-more { display: grid; place-items: center; padding: 24px 0 8px; }
.archive-more .btn { cursor: pointer; }
.archive-thumb-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg,var(--surface-2),var(--surface)); color: var(--accent); }
.feed-empty { color: var(--muted); padding: 24px 0; }
.region-shell { width:min(960px,calc(100% - 48px)); text-align:center; }
.back-link { color:var(--accent); font-size:11px; text-decoration:none; }
.region-shell h1 { margin:18px 0 8px; }
.region-stats { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; margin:24px auto 40px; color:var(--muted); font-size:10px; }
.region-block { margin:42px 0; }
.region-block h2 { margin-bottom:18px; font-size:1.5rem; }
.region-country-grid,.region-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; text-align:left; }
.region-country,.region-item { display:grid; gap:6px; min-width:0; padding:12px; border:1px solid var(--line); color:var(--ink); text-decoration:none; background:var(--surface); }
.region-country:hover,.region-item:hover { border-color:var(--accent); }
.region-country small,.region-item small { color:var(--muted); font-size:10px; }
.region-item strong,.region-country strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:400; }
@media(max-width:640px){.region-shell{width:calc(100% - 24px)}.region-country-grid,.region-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Shared 54colleges map treatment. */
.network-map-section{position:relative;width:100%;aspect-ratio:1000/513;overflow:hidden;border-radius:18px;background:#191711;line-height:0;margin:0 auto;box-shadow:0 34px 100px rgba(0,0,0,.28),0 1px 0 rgba(244,237,225,.08) inset}
.network-map-section .osmosis-frame,.network-map-section .network-markers{position:absolute;inset:0;width:100%;height:100%}
.network-map-section .osmosis-frame{display:block;border:0;pointer-events:none;z-index:1}
.network-map-section .network-markers{z-index:5;pointer-events:none}
.network-map-section .network-marker{position:absolute;left:calc(var(--x) * 1%);top:calc(var(--y) * 1%);display:block;width:28px;height:28px;transform:translate(-50%,-50%);pointer-events:auto;border:0;outline:0;cursor:pointer;background:transparent;padding:0}
.network-map-section .marker-dot{position:absolute;z-index:2;left:50%;top:50%;width:5px;height:5px;border:0;border-radius:999px;transform:translate(-50%,-50%);box-shadow:0 0 0 0 currentColor;background:#592B2F;color:rgba(89,43,47,.64);animation:radio-marker-wave 9.2s linear infinite;animation-delay:var(--wave-delay,0s)}
.network-map-section .marker-card{position:absolute;z-index:3;left:calc(100% + 10px);top:50%;width:154px;min-height:46px;display:grid;place-items:center;padding:10px 12px;background:rgba(5,4,3,.94);color:#faf6ed;line-height:1;opacity:0;transform:translateY(-50%) translateX(-4px) scale(.96);pointer-events:none;transition:opacity .15s ease,transform .15s ease;border-radius:15px;box-shadow:0 20px 56px rgba(0,0,0,.48),inset 0 1px 0 rgba(244,237,225,.08)}
.network-map-section .network-marker.card-left .marker-card{left:auto;right:calc(100% + 10px);transform:translateY(-50%) translateX(4px)}
.network-map-section .network-marker:hover .marker-card,.network-map-section .network-marker:focus-visible .marker-card{opacity:1;transform:translateY(-50%) translateX(0) scale(1)}
.network-map-section .school-name-pop strong{display:block;color:#f4ede1;font-size:10px;font-weight:500;letter-spacing:.09em;line-height:1.18;text-align:center;text-transform:uppercase;white-space:normal;overflow-wrap:anywhere}
@keyframes radio-marker-wave{0%,100%{background:#592B2F;color:rgba(89,43,47,.68);box-shadow:0 0 0 0 currentColor}8%{box-shadow:0 0 0 7px transparent}20%{background:#4E5B43;color:rgba(78,91,67,.68);box-shadow:0 0 0 0 currentColor}28%{box-shadow:0 0 0 7px transparent}40%{background:#5A4638;color:rgba(90,70,56,.68);box-shadow:0 0 0 0 currentColor}48%{box-shadow:0 0 0 7px transparent}60%{background:#B9852B;color:rgba(185,133,43,.7);box-shadow:0 0 0 0 currentColor}68%{box-shadow:0 0 0 7px transparent}80%{background:#004466;color:rgba(0,68,102,.7);box-shadow:0 0 0 0 currentColor}88%{box-shadow:0 0 0 7px transparent}}
.network-map-section .map-status{position:absolute;left:16px;bottom:12px;z-index:6;color:rgba(244,237,225,.68);font-size:9px;line-height:1;letter-spacing:.04em;background:rgba(20,17,13,.54);border-radius:999px;padding:7px 10px;box-shadow:0 10px 26px rgba(0,0,0,.22)}
.network-map-section .map-search{position:absolute;left:24px;top:22px;z-index:9999;display:flex !important;align-items:center;min-height:42px;height:42px;width:min(430px,calc(100% - 48px));background:rgba(5,4,3,.96);border:0;border-radius:999px;box-shadow:0 16px 42px rgba(0,0,0,.32);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);line-height:1;animation:map-search-drift 48s ease-in-out infinite alternate;will-change:left;visibility:visible;opacity:1;overflow:visible}
.network-map-section .map-search:hover,.network-map-section .map-search:focus-within{animation-play-state:paused}
.network-map-section .map-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#faf6ed;padding:12px 15px;border-radius:999px;font:11px var(--mono);letter-spacing:.04em;appearance:none;-webkit-appearance:none}
.network-map-section .map-search input::placeholder{color:rgba(244,237,225,.58)}
.network-map-section .map-search button{border:0;background:transparent;color:#faf6ed;padding:0 16px;font:11px var(--mono);cursor:pointer}
.network-map-section .map-search-results{position:absolute;left:0;right:0;top:calc(100% + 8px);display:grid;gap:2px;padding:7px;background:rgba(5,4,3,.94);border:1px solid rgba(244,237,225,.14);border-radius:14px;box-shadow:0 16px 42px rgba(0,0,0,.36)}
.network-map-section .map-search-results[hidden]{display:none}
.network-map-section .map-search-results button{display:flex;justify-content:space-between;gap:12px;width:100%;padding:9px 10px;text-align:left;border-radius:9px}
.network-map-section .map-search-results button:hover{background:rgba(244,237,225,.1)}
.network-map-section .map-search-results small{color:rgba(244,237,225,.55)}
.network-map-section .map-search-empty{padding:9px 10px;color:rgba(244,237,225,.58);font-size:11px}
@keyframes map-search-drift{from{left:24px}to{left:calc(100% - min(454px, calc(100% - 24px)))}}
@media (max-width:560px){.network-map-section .map-search{left:14px;top:14px;width:calc(100% - 28px);animation:none}.network-map-section .map-search:hover,.network-map-section .map-search:focus-within{animation-play-state:paused}}
@media (prefers-reduced-motion:reduce){.network-map-section .marker-dot{animation:none}}
