@font-face {
  font-family: "DM Sans";
  src: url(assets/sans.ttf) format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --page: #f7f7f3;
  --paper: #fff;
  --ink: #1c2220;
  --muted: #565e59;
  --line: #d1d5ce;
  --soft: #e9ece6;
  --hover: #ecf0ea;
  --green: #294e41;
  --accent: #f36e50;
  --focus: #236aaa;
  font: 16px/1.46 "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #161a19;
    --paper: #202523;
    --ink: #f0f2ec;
    --muted: #b5bdb6;
    --line: #404842;
    --soft: #313a34;
    --hover: #2a332e;
    --green: #b1dcc3;
    --focus: #8dceff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, summary { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .65; cursor: wait; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: min(1440px, 93%); margin-inline: auto; }
svg { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; top: -70px; left: 10px; padding: 10px 16px; background: var(--paper); z-index: 3; }
.skip:focus { top: 8px; }
.top { background: #1b2421; color: #f3f4ee; }
.bar { min-height: 70px; display: flex; align-items: center; gap: clamp(28px, 5vw, 72px); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 730; font-size: 27px; letter-spacing: -.055em; }
.brand b { font-weight: inherit; }
.brand svg { width: 29px; height: 29px; color: var(--accent); }
nav { display: flex; align-self: stretch; gap: clamp(16px, 2vw, 30px); }
nav a { display: flex; align-items: center; border-bottom: 3px solid transparent; padding-top: 3px; font-size: 15px; color: #c7ceca; font-weight: 540; }
nav a:hover, nav a[aria-current] { color: white; }
nav a[aria-current] { border-color: var(--accent); }
.screen-btn { display: flex; gap: 8px; align-items: center; min-height: 44px; margin-left: auto; border: 0; padding: 8px 0 8px 10px; background: transparent; color: #e0e7e0; font-size: 14px; }
.screen-btn:hover { color: white; }
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(285px, 25vw, 352px);
  grid-template-areas: "picks rail" "catalogue rail";
  column-gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding-top: clamp(28px, 3.7vw, 56px);
}
.picks { grid-area: picks; min-width: 0; }
.rail { grid-area: rail; min-width: 0; }
.catalogue { grid-area: catalogue; min-width: 0; margin-top: 32px; }
.heading, .stop-head, .footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.heading { margin-bottom: 14px; }
h1, h2, h3 { line-height: 1.14; }
h1 { font-size: clamp(32px, 3.1vw, 46px); font-weight: 630; letter-spacing: -.055em; }
h2 { font-size: clamp(25px, 2.2vw, 32px); font-weight: 625; letter-spacing: -.045em; }
h3 { font-size: 19px; font-weight: 630; letter-spacing: -.027em; }
.text-link { display: inline-flex; align-items: center; gap: 7px; border: 0; min-height: 42px; padding: 5px 0; color: var(--muted); background: transparent; font-weight: 560; font-size: 14px; }
.text-link:hover { color: var(--ink); text-decoration: underline; }
.featured { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.poster {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
  padding: clamp(12px, 1.25vw, 20px); min-height: 138px;
}
.poster:hover { background: var(--hover); border-color: var(--muted); }
.poster strong { font-size: clamp(15px, 1.15vw, 19px); font-weight: 640; letter-spacing: -.035em; overflow-wrap: anywhere; }
.poster small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.icon { width: 34px; height: 34px; border-radius: 5px; flex: none; display: grid; place-items: center; background: var(--soft); color: var(--ink); font-weight: 680; }
.icon img { width: 24px; height: 24px; object-fit: contain; }
.poster .icon { width: 43px; height: 43px; margin-bottom: 19px; color: #303833; background: #e8eae4; font-size: 17px; }
.poster .icon:has(img) { background: transparent; }
.poster .icon img { width: 43px; height: 43px; }
.catalogue .heading { border-top: 2px solid var(--ink); padding-top: 19px; }
.search, input { border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); }
input { font: inherit; min-width: 0; padding: 10px 12px; }
input::placeholder { color: var(--muted); }
.search { display: flex; align-items: center; gap: 7px; padding-left: 12px; color: var(--muted); }
.search:focus-within { outline: 2px solid var(--focus); }
.search input { width: clamp(160px, 17vw, 245px); padding-left: 0; font-size: 14px; border: 0; min-height: 42px; background: transparent; outline: 0; }
.catalogue-body { display: grid; grid-template-columns: minmax(116px, 16.5%) minmax(0, 1fr); gap: clamp(14px, 2vw, 28px); }
.tabs { display: flex; flex-direction: column; align-items: stretch; align-self: start; padding-top: 1px; }
.tab { text-align: left; border: 0; background: transparent; border-radius: 4px; padding: 9px 10px; font-size: 14px; min-height: 40px; color: var(--muted); }
.tab:hover { color: var(--ink); background: var(--hover); }
.tab[aria-pressed=true] { background: var(--soft); color: var(--ink); font-weight: 680; }
#grid { min-width: 0; }
.grid { display: grid; column-gap: clamp(12px, 1.6vw, 24px); grid-template-columns: repeat(auto-fit,minmax(min(210px,100%),1fr)); }
.cat-head { margin: 23px 0 4px; font-size: 16px; letter-spacing: -.02em; }
.cat-head:first-child { margin-top: 6px; }
.tile { display: flex; align-items: center; gap: 3px; min-width: 0; border-bottom: 1px solid var(--line); }
.tile:hover { background: var(--hover); }
.tile a { display: flex; align-items: center; flex: 1; min-width: 0; gap: 10px; padding: 11px 3px; min-height: 56px; }
.info { min-width: 0; }
.info strong, .info small { display: block; overflow-wrap: anywhere; }
.info strong { font-size: 15px; font-weight: 620; line-height: 1.25; }
.info small, .panel small, .footer p, .help p { font-size: 13px; color: var(--muted); }
.tile button { font-size: 20px; border: 0; padding: 0; background: transparent; color: var(--muted); min-width: 36px; min-height: 44px; }
.tile button:hover, .tile button[aria-pressed=true] { color: var(--green); }
.stream-links { flex: 1; min-width: 0; }
.tile .stream-links > a:first-child { padding-bottom: 2px; }
.tile a.stream-alternative { min-height: 28px; padding: 0 5px 6px 47px; font-size: 12px; color: var(--muted); text-decoration: underline; }
.empty { color: var(--muted); padding: 12px 0; }
.random { margin-top: 15px; }
.stop { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 0 0 6px 6px; overflow: hidden; }
.stop-intro, #stop-results { padding: 21px; }
.stop h2 { font-size: 27px; }
.stop-intro > p:first-of-type { color: var(--muted); margin: 6px 0 14px; font-size: 14px; }
.area-map { position: relative; margin-inline: -21px; }
.stop:has(#stop-results:not([hidden])) .area-map { display: none; }
.area-map img { display: block; width: 100%; height: auto; }
.area-map figcaption { position: absolute; bottom: 1px; right: 4px; background: #e3ece9; color: #385349; font-size: 9px; }
.stop-actions { display: flex; flex-direction: column; gap: 3px; margin-top: 17px; }
.button, .stop-tabs button, #stop-choices button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper);
  padding: 9px 14px; font-size: 14px; font-weight: 580;
}
.button:hover, .stop-tabs button:hover, #stop-choices button:hover { background: var(--hover); }
.button.primary, .button.stop-primary { background: #284c40; color: #fff; border-color: #284c40; }
.button.primary:hover, .button.stop-primary:hover { background: #396450; }
#stop-manual { border-color: transparent; color: var(--green); background: transparent; }
#stop-manual:hover { text-decoration: underline; }
.stop-primary span { font-size: 20px; line-height: 1; }
.stop-note, #stop-status, .stop-source { color: var(--muted); font-size: 12px; line-height: 1.5; }
.stop-note, #stop-status { margin-top: 10px; }
#stop-status:empty { display: none; }
#stop-form { margin-top: 10px; }
.stop-search, #stop-choices, .stop-tabs, .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.stop-search input { flex: 1 1 110px; width: 110px; }
#stop-choices:not(:empty) { margin-top: 8px; }
#stop-choices button { padding-inline: 9px; }
#stop-results { border-top: 1px solid var(--line); }
.stop-head { flex-wrap: wrap; gap: 0 10px; }
.stop-head h3::first-letter { text-transform: uppercase; }
.stop-head .text-link { color: var(--green); }
.stop-tabs { margin: 6px 0 12px; }
.stop-tabs button { flex: 1; font-size: 13px; padding: 6px; min-height: 38px; }
.stop-tabs button[aria-pressed=true] { background: var(--soft); border-color: var(--muted); }
.stop-scope { display: flex; align-items: center; gap: 14px; }
.stop-dial { position: relative; width: 104px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #739685; background: repeating-radial-gradient(circle,transparent 0 20%,#94aa9c70 21% 22%,transparent 23% 44%); }
.stop-origin, .stop-dot { position: absolute; transform: translate(-50%,-50%); border-radius: 50%; }
.stop-origin { top: 50%; left: 50%; width: 7px; height: 7px; background: #be503a; }
.stop-north { position: absolute; top: 1px; left: calc(50% - 3px); font-size: 9px; }
.stop-dot { display: grid; place-items: center; width: 13px; height: 13px; font: 650 9px Arial,sans-serif; background: #284c40; color: white; }
.stop-scale { font-size: 12px; color: var(--muted); }
#stop-list { padding: 0; margin: 10px 0; list-style: none; }
#stop-list a { display: flex; align-items: center; gap: 8px; padding: 8px 0; min-height: 46px; border-top: 1px solid var(--line); font-size: 14px; }
#stop-list a:hover { background: var(--hover); }
.stop-index, .stop-dist, .stop-place small { color: var(--muted); font-size: 12px; }
.stop-index { min-width: 10px; }
.stop-index { display: inline-grid; place-items: center; align-self: center; width: 19px; height: 19px; border-radius: 50%; background: #284c40; color: white; }
.stop-dot.tesla, .stop-index.tesla { background: #b62338; }
.stop-place { min-width: 0; overflow-wrap: anywhere; }
.stop-place small { display: block; }
.stop-dist { white-space: nowrap; margin-left: auto; }
.stop-source a { text-decoration: underline; text-underline-offset: 2px; }
#vaerktoejer { margin-top: 42px; border-top: 2px solid var(--ink); padding-top: 20px; }
.tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 15px 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 20px; }
.panel h3 { margin-bottom: 16px; }
.panel label, #stop-form label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 7px; }
.panel input { display: block; width: 100%; margin-top: 3px; }
.panel .actions { margin-top: 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
output { display: block; color: var(--green); font-weight: 650; margin-top: 8px; }
.timer { font-size: 32px; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
#urlstatus { font-size: 13px; margin-top: 6px; }
.help { margin: 25px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.help summary { font-weight: 580; }
.help p { margin-top: 10px; max-width: 82ch; }
.footer { padding: 0 0 30px; }
.footer .brand { font-size: 20px; }
.footer .brand svg { width: 22px; }
dialog { border: 0; color: #efeee9; background: #090b0a; padding: 20px; max-width: none; max-height: none; width: 100%; height: 100%; inset: 0; margin: 0; }
dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
dialog::backdrop { background: #090b0a; }
dialog time { font-size: clamp(70px,17vw,230px); line-height: 1; letter-spacing: -.055em; }
dialog p { color: #bcc1ba; margin-bottom: 16px; }
dialog button { color: var(--ink); }
@media (max-width: 1080px) {
  .catalogue-body { display: block; }
  .tabs { flex-direction: row; overflow-x: auto; margin-bottom: 10px; }
  .tab { white-space: nowrap; flex: none; }
}
@media (max-width: 850px) {
  .workspace { display: flex; flex-direction: column; gap: 25px; }
  .picks, .catalogue, .rail { width: 100%; }
  .catalogue { order: 2; margin-top: 0; }
  .rail { order: 1; }
  .stop-intro { display: grid; grid-template-columns: minmax(0,1fr) 210px; column-gap: 20px; }
  .stop:has(#stop-results:not([hidden])) .stop-intro { display: block; }
  .stop-intro > * { grid-column: 1; }
  .stop-intro .area-map { grid-column: 2; grid-row: 1 / span 5; margin: 0; align-self: center; }
  .stop-actions { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
  .tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 740px) {
  .bar { min-height: 0; flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .brand { font-size: 25px; }
  .bar nav { order: 3; width: 100%; justify-content: space-between; gap: 0; }
  nav a { min-height: 43px; font-size: 13px; }
}
@media (max-width: 640px) {
  .wrap { width: 92%; }
  .workspace { padding-top: 22px; gap: 24px; }
  .heading { margin-bottom: 10px; }
  h1 { font-size: 30px; }
  .favorite-link { font-size: 13px; gap: 5px; }
  .featured { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
  .poster { padding: 8px 1px; align-items: center; min-height: 78px; border: 0; background: transparent; text-align: center; }
  .poster .icon { width: 36px; height: 36px; margin-bottom: 8px; }
  .poster .icon img { width: 36px; height: 36px; }
  .poster strong { font-size: 12px; letter-spacing: -.03em; }
  .poster small { display: none; }
  .catalogue .heading { flex-wrap: wrap; }
  .search { width: 100%; }
  .search input { flex: 1; width: 100%; }
  .stop-intro { display: block; padding: 16px; }
  .stop-intro .area-map { display: none; }
  .stop h2 { font-size: 23px; }
  .stop-intro > p:first-of-type { margin: 3px 0 9px; }
  .stop-actions { gap: 2px; }
  .stop-actions .button { font-size: 13px; padding-inline: 9px; }
  .tools { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}
.stop-wishes { border: 0; margin: 12px 0 3px; padding: 0; color: var(--ink); }
.stop-wishes legend { color: var(--muted); font-size: 13px; }
.stop-wishes label { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; font-size: 14px; margin-right: 12px; cursor: pointer; }
.stop-wishes input { accent-color: #325e4d; width: 17px; height: 17px; }
