/* Manchester DAB. One stylesheet, no framework.
   Brand: orange #e84a0f, near-black, Barlow Condensed for headings, Barlow
   for text. White text on the brand orange is only 3.9:1, so filled buttons
   use a deeper orange (5:1) and the brand orange is kept for large type,
   rules and marks. */

@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #141312;
  --paper: #ffffff;
  --stone: #f3f1ee;
  --rule: #e2ded8;
  --grey: #58534d;
  --orange: #e84a0f;
  --orange-btn: #c73c08;
  --orange-btn-hover: #a93306;
  --orange-text: #b33606;
  --green: #17693b;
  --amber: #7f4a00;
  --red: #9b2419;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange-btn); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
.in { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
[hidden] { display: none !important; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 3px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { background: #2c2926; border-color: #2c2926; }
.btn-hot { background: var(--orange-btn); border-color: var(--orange-btn); }
.btn-hot:hover { background: var(--orange-btn-hover); border-color: var(--orange-btn-hover); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #e9e5e0; border-color: #e9e5e0; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* header */
.site-head { background: #fff; border-bottom: 1px solid var(--rule); position: relative; z-index: 3; }
.site-head .in { display: flex; align-items: center; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: block; line-height: 0; padding-block: 8px; }
.brand img { height: 50px; width: auto; }
.menu-btn { margin-left: auto; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 3px; background: none; color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.site-nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: 14px; }
.site-nav.open { display: flex; }
.site-nav a { padding: 12px 0; min-height: 44px; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--stone); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav .btn { margin-top: 10px; border-bottom: 2px solid var(--orange-btn); align-self: flex-start; }
.no-js .site-nav { display: flex; }
.no-js .menu-btn { display: none; }
@media (max-width: 480px) { .brand img { height: 40px; } }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .site-nav { display: flex; flex: 1; flex-basis: auto; flex-direction: row; align-items: center; justify-content: flex-end; gap: 4px; padding: 0; }
  .site-nav a { font-size: 16px; padding: 10px 12px; border: 0; display: inline-flex; align-items: center; }
  .site-nav a:hover { color: var(--orange-text); }
  .site-nav a[aria-current="page"] { font-weight: 500; box-shadow: inset 0 -3px 0 var(--orange); }
  .site-nav .btn { margin: 0 0 0 8px; min-height: 44px; font-size: 15px; padding: 8px 18px; color: #fff; box-shadow: none; }
  .site-nav .btn:hover { color: #fff; }
}

/* hero */
.hero { background: var(--stone); }
.hero::after { content: ""; display: block; height: 4px; background: var(--orange); }
.hero-grid { display: grid; gap: 32px; padding-block: 40px 28px; }
.status { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--grey); font-weight: 500; font-size: 15px; }
.status > span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-open { background: #1f9d55; }
.dot-waitlist { background: #e0900b; }
.dot-closed { background: #d23a2a; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); margin-top: 16px; letter-spacing: -.005em; }
.hero h1 span { color: var(--orange); }
.lede { font-size: 19px; line-height: 1.55; max-width: 48ch; margin-top: 16px; color: #2f2b28; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.skyline { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); line-height: 0; }
.skyline img { width: 100%; display: block; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.3fr 1fr; align-items: center; padding-block: 60px 36px; } }

/* the radio: a colour-screen DAB+ set showing the station's slideshow logo */
.radio { background: #2b2926; border-radius: 16px; padding: 14px; box-shadow: inset 0 1px 0 #48443f, 0 14px 30px rgba(20, 19, 18, .18); max-width: 420px; width: 100%; justify-self: center; }
.radio-screen { background: #0f0f0e; border-radius: 6px; padding: 12px; display: grid; grid-template-columns: 44% 1fr; gap: 12px; align-items: center; color: #f2efe9; font-family: var(--mono); }
.radio-slide { position: relative; aspect-ratio: 4 / 3; background: #fff; border-radius: 3px; display: grid; place-items: center; overflow: hidden; }
.radio-meta { display: grid; gap: 6px; min-width: 0; }
.radio-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; color: #b4ada4; }
.radio-name { font-size: 17px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-sub { font-size: 11px; color: #b4ada4; display: flex; align-items: center; gap: 6px; }
.radio-controls { display: flex; gap: 8px; margin-top: 12px; }
.radio-controls button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 6px; background: #403c38; color: #f2efe9; font: 600 14px var(--body); cursor: pointer; box-shadow: inset 0 -2px 0 #1f1d1b; }
.radio-controls button:hover { background: #4c4843; }
.radio-controls .radio-play { flex: 1; background: var(--orange-btn); color: #fff; box-shadow: inset 0 -2px 0 #8a2a05; }
.radio-controls .radio-play:hover { background: var(--orange-btn-hover); }
.radio-controls .radio-play:disabled { background: #403c38; color: #9d968e; box-shadow: none; cursor: not-allowed; }
.radio-note { font-size: 13px; color: #c3bdb5; margin-top: 10px; text-align: center; }
.radio-note:empty { display: none; }
.eq { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; background: #ffb13d; display: block; height: 4px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.radio.on .eq { display: inline-flex; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* sections */
.sec { padding-block: 56px; }
.stone { background: var(--stone); }
.sec h1, .sec > .in > h2, .sec-head h2 { font-size: clamp(34px, 5vw, 48px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.intro { max-width: 58ch; margin-top: 10px; color: var(--grey); }
.grid2 { display: grid; gap: 16px; margin-top: 26px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* station logos */
.logos { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .logos { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.logo-tile { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--rule); border-radius: 4px; min-width: 0; overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
/* Absolutely placed so a tall logo is shrunk to fit, never cropped. */
.logo-tile img, .st-logo img, .radio-slide img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; display: block; }
a.logo-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.logo-fallback { font: 700 24px var(--display); color: #8a847d; }

/* stations page */
.search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.search input { flex: 1 1 240px; min-height: 46px; padding: 10px 12px; border: 1.5px solid #a9a29a; border-radius: 3px; font: 17px var(--body); color: var(--ink); background: #fff; }
.search span { color: var(--grey); font-size: 15px; }
.stations { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .stations { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .stations { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.st-logo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--rule); overflow: hidden; }
.st-name { font-weight: 600; line-height: 1.25; padding: 10px 12px 2px; }
.soon { font-style: normal; font-size: 13px; font-weight: 500; color: var(--amber); display: block; }
.st-link { font-size: 14px; padding: 0 12px; overflow-wrap: anywhere; }
.st-link a { color: var(--grey); }
.st-acts { margin-top: auto; padding: 10px 12px 12px; }
.listen { min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.listen:hover, .listen[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* capacity */
.cap { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 0 0 4px 4px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cap[data-state="open"] { border-top-color: #1f9d55; }
.cap[data-state="waitlist"] { border-top-color: #e0900b; }
.cap[data-state="closed"] { border-top-color: #d23a2a; }
.cap-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.cap[data-state="open"] .cap-state { color: var(--green); }
.cap[data-state="waitlist"] .cap-state { color: var(--amber); }
.cap[data-state="closed"] .cap-state { color: var(--red); }
.cap h3 { font-size: 30px; }
.cap p { color: var(--grey); }
.cap .btn { align-self: flex-start; margin-top: 6px; }

/* steps: a real sequence */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 22px var(--display); position: relative; z-index: 1; }
.steps b { display: block; font: 700 22px/1.1 var(--display); margin: 9px 0 6px; }
.steps p { color: var(--grey); font-size: 16px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
  .steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: var(--orange); }
  .steps li { grid-template-columns: 1fr; }
  .steps b { margin-top: 4px; }
}

/* listeners */
.in.listeners { display: grid; gap: 22px; }
@media (min-width: 760px) { .in.listeners { grid-template-columns: 1fr 1fr; align-items: center; } }
.tip { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 22px; }
.tip h3 { font-size: 22px; }
.tip ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }

/* text pages */
.two-col { display: grid; gap: 36px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.45fr 1fr; align-items: start; } }
.prose { max-width: 66ch; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 14px; }
.prose h2 { font-size: 28px; margin: 32px 0 10px; }
.prose h3 { font-size: 22px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 4px; }
.prose > :first-child { margin-top: 0; }
.standfirst { font-size: 20px; line-height: 1.5; color: #2f2b28; margin-bottom: 18px; }
.aside { background: var(--stone); border-radius: 4px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.aside h2 { font-size: 24px; margin: 0; }
.aside dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.aside dt { font-weight: 600; color: var(--grey); }
.aside dd { margin: 0; }
.aside .btn { justify-self: start; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs li { background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 12px 14px; }
.docs a { font-weight: 600; }
.docs small { color: var(--grey); margin-left: 6px; }
.docs p { font-size: 15px; color: var(--grey); margin-top: 4px; }
.map { margin: 0; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: #fff; }
.map img { display: block; width: 100%; }
.map figcaption { font-size: 14px; color: var(--grey); padding: 10px 14px; border-top: 1px solid var(--rule); }

/* rates */
.calc { margin-top: 26px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 22px; display: grid; gap: 20px; }
.calc fieldset { border: 0; margin: 0; padding: 0; }
.calc legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid #a9a29a; border-radius: 3px; background: #fff; font-weight: 500; font-size: 15px; cursor: pointer; }
.opts input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opts input:focus-visible + span { outline: 3px solid var(--orange-btn); outline-offset: 2px; }
.opts input:disabled + span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.quote { background: var(--ink); color: #fff; border-radius: 4px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.q-label, .q-alt { font-size: 15px; color: #d6d0c8; }
.q-price { font: 700 52px/1 var(--display); font-variant-numeric: tabular-nums; }
.q-save { font-weight: 600; color: #ffb38d; border-top: 1px solid #3a3632; padding-top: 10px; margin-top: 4px; }
@media (min-width: 760px) { .calc { grid-template-columns: 1fr 1fr; } .calc .quote { grid-column: 2; grid-row: 1 / span 3; } }
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--rule); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: #fff; font-size: 16px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 600; font-size: 14px; color: var(--grey); background: var(--stone); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.na { color: #6f6961; }
.small-print { font-size: 15px; color: var(--grey); margin-top: 14px; max-width: 78ch; }
.small-print p { margin-bottom: 8px; }

/* form */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 22px; margin-top: 22px; }
.form .row { display: grid; gap: 16px; }
@media (min-width: 700px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field small, .form legend small { font-weight: 400; color: var(--grey); }
.form input, .form select, .form textarea { font: 17px var(--body); min-height: 46px; padding: 10px 12px; border: 1.5px solid #a9a29a; border-radius: 3px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { min-height: 0; resize: vertical; }
.form [aria-invalid="true"] { border-color: var(--red); }
.thresholds { border: 1px solid var(--rule); border-radius: 4px; padding: 16px; margin: 0; display: grid; gap: 14px; }
.thresholds legend { font-weight: 600; padding: 0 6px; }
.route { border-left: 4px solid var(--orange); background: var(--stone); padding: 10px 14px; font-size: 16px; }
.route:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red); font-weight: 600; }
.small { font-size: 14px; color: var(--grey); }
.sent { background: #e3f4ea; color: #14532d; border-radius: 4px; padding: 18px 20px; margin-top: 22px; }
.sent h2 { font-size: 26px; margin-bottom: 4px; }
.fallback { margin-top: 18px; color: var(--grey); }

/* player bar, shown while a station plays */
.player { position: sticky; bottom: 0; z-index: 5; background: var(--ink); color: #fff; border-top: 3px solid var(--orange); }
.player .in { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.player-logo { width: 56px; aspect-ratio: 4 / 3; background: #fff; border-radius: 3px; padding: 4px; flex: none; }
.player-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.player-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.player-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-text small { font-size: 13px; color: #cfc9c2; }

/* footer */
.site-foot { background: var(--ink); color: #d8d2ca; font-size: 16px; }
.site-foot .in { display: grid; gap: 28px; padding-block: 40px 28px; }
.foot-brand img { width: 260px; display: block; margin-bottom: 14px; }
.site-foot h2 { font: 700 18px var(--display); color: #fff; margin: 0 0 8px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-foot a { display: inline-block; padding: 6px 0; color: #e8e3dd; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); }
.legal { border-top: 1px solid #34302c; padding-top: 16px; font-size: 14px; color: #aaa39b; grid-column: 1 / -1; }
@media (min-width: 760px) { .site-foot .in { grid-template-columns: 1.5fr 1fr 1fr; } }

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