/* Manchester DAB. One stylesheet, no framework.

   This is the old WordPress site's look, rebuilt from its export of
   27 September 2026: WordPress's Twenty Twenty-Four theme (Inter for text, a
   620px reading column inside a 1280px frame, #f9f9f9 page, #111 ink) with
   the site's own changes on top (Barlow Condensed 600 for every heading, the
   orange #e84a0f, the cream and near-black bands, the dark footer). Sizes and
   colours come from the export; the comments say where.

   The Content-Security-Policy allows no inline styles, so everything the old
   pages set inline lives here as a class. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Twenty Twenty-Four's palette */
  --base: #f9f9f9;
  --contrast: #111111;
  --contrast-2: #636363;
  /* the Manchester DAB pages' own colours */
  --orange: #e84a0f;
  /* White on #e84a0f is 3.9:1, short of the 4.5:1 small text needs, so
     filled buttons and the figures strip use this a shade deeper (4.7:1),
     and orange text on the light page uses the darker one (5.8:1). The
     brand orange stays for text and marks on near-black (5:1). */
  --orange-fill: #d0420a;
  --orange-text: #b33606;
  /* Greys that pass 4.5:1 where the old ones didn't */
  --grey-on-light: #6b6b6b;
  --grey-on-dark: #8c8c8c;
  --ink: #0d0d0d;
  --cream: #f3f0e8;
  --line: #e5e5e5;
  --body: "Inter", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  /* Twenty Twenty-Four's sizes (fluid between 320px and 1600px) */
  --fs-small: clamp(0.875rem, 0.84rem + 0.17vw, 1rem);
  --fs-medium: clamp(1rem, 0.95rem + 0.25vw, 1.2rem);
  --fs-large: clamp(1.4rem, 1.35rem + 0.25vw, 1.6rem);
  --fs-x-large: clamp(1.8rem, 1.6rem + 1vw, 2.6rem);
  --fs-xx-large: clamp(2.15rem, 1.86rem + 1.5vw, 3.4rem);
  --space-30: min(2.5rem, 3vw);
  --space-50: min(6.5rem, 8vw);
  --gap: 1.2rem;
  --content: 620px;
  --wide: 1280px;
  --band-pad: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--contrast); font: 400 var(--fs-medium)/1.55 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
p, ul, ol, figure { margin: 0; }
/* Every heading: the "exact heading CSS from original manchesterdab.org.uk site" */
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; font-style: normal; letter-spacing: 0.02em; line-height: 1.2; }
.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(--contrast); color: #fff; padding: 10px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }
[hidden] { display: none !important; }

/* frames: 1280px wide, 620px for reading, Twenty Twenty-Four's side padding */
.wide { max-width: calc(var(--wide) + 2 * var(--space-50)); margin-inline: auto; padding-inline: var(--space-50); }
.content { max-width: var(--content); margin-inline: auto; }
main > .content { box-sizing: content-box; padding-inline: var(--space-50); }

/* buttons: Twenty Twenty-Four's, with the site's letter-spacing and fade */
.buttons { display: flex; flex-wrap: wrap; gap: 0.5em; }
.btn { display: inline-block; padding: 0.6rem 1rem; border: 2px solid transparent; border-radius: 0.33rem; font: 400 var(--fs-small)/1.6 var(--body); letter-spacing: 0.03em; text-decoration: none; cursor: pointer; transition: opacity 0.18s ease; }
.btn:hover { opacity: 0.82; }
.btn-dark { background: var(--contrast); border-color: var(--contrast); color: var(--base); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--contrast); }
/* the designed sections' buttons: 2px corners, 14px, or 13px when small */
.btn-orange, .btn-outline-light, .band .btn, .split .btn, .cap .btn { border-radius: 2px; font-size: 14px; }
.btn-orange { background: var(--orange-fill); border-color: var(--orange-fill); color: #fff; font-weight: 600; }
.btn-outline-light { background: transparent; border-color: currentColor; color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--contrast); }
.btn.btn-sm { font-size: 13px; }

/* header: logo 200px, menu on the right, 16px above and below */
.site-head { background: var(--base); }
.head-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 16px; }
.brand { display: block; line-height: 0; }
.brand img { width: 200px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: min(1.5rem, 2vw); row-gap: 0.5rem; }
.nav-links a { font-size: 14px; font-weight: 500; letter-spacing: 0.03em; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; }
.menu-open, .menu-close { display: none; background: none; border: 0; padding: 10px; margin: -4px; color: var(--contrast); cursor: pointer; line-height: 0; }
@media (max-width: 599px) {
  html:not(.no-js) .menu-open { display: block; }
  html:not(.no-js) .site-nav { display: none; }
  html:not(.no-js) .site-nav.open { display: block; position: fixed; inset: 0; z-index: 30; background: #fff; padding: 1.5rem var(--space-50); overflow-y: auto; }
  .site-nav.open .menu-close { display: block; margin-left: auto; }
  .site-nav.open .nav-links { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding-top: 2rem; }
  .site-nav.open .nav-links a { font-size: 1.5rem; }
}

/* plain pages: the title centred, then the reading column */
.page-head { padding-top: var(--space-50); text-align: center; }
.page-title { font-size: var(--fs-xx-large); line-height: 1.15; }
.page-body { padding-top: var(--space-30); padding-bottom: var(--space-50); }
.page-end { padding-bottom: var(--space-50); }
.prose > * + * { margin-top: var(--gap); }
.prose h2 { font-size: var(--fs-x-large); }
.prose h3 { font-size: var(--fs-large); }
.prose > h2, .prose > h3 { margin-top: calc(var(--gap) * 1.5); }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose .lead { font-size: var(--fs-large); line-height: 1.4; }
.prose .updated { color: var(--grey-on-light); font-size: 13px; }
.prose .guide-link a { color: var(--orange-text); }
.figure img { display: block; width: 100%; }
.figure figcaption { margin-top: 0.5em; font-size: 12px; color: var(--grey-on-light); }
.figure-small { max-width: 257px; margin-inline: auto; text-align: center; }
.figure-wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.table table { width: 100%; border-collapse: collapse; }
.table td, .table th { border: 1px solid; padding: 10px 14px; font-size: 14px; font-weight: 400; text-align: left; vertical-align: middle; }
.map-table { margin-top: 0.75rem; }
.map-table caption { caption-side: top; text-align: left; font-style: italic; font-size: 13px; padding-bottom: 0.4rem; }
.map-table thead th { font-weight: 600; }
.map-table tbody th { font-weight: 400; }
.map-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.map-table .swatch-cell { width: 4.5rem; padding: 6px; }
.swatch { display: block; height: 1.4em; }
.swatch-red { background: #ff0100; }
.swatch-green { background: #30ff1f; }
.swatch-blue { background: #1d15ff; }
@media (max-width: 480px) { .map-table td, .map-table th { padding: 8px; font-size: 13px; } .map-table .swatch-cell { width: 2.5rem; } }
.file { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75em; }

/* designed sections: eyebrows, bands, columns */
.eyebrow { font-size: 11px; letter-spacing: 0.2rem; text-transform: uppercase; color: var(--grey-on-light); }
.band-dark .eyebrow { color: #999; }
.eyebrow-orange { color: var(--orange); font-weight: 600; }
.band { padding: 3.5rem var(--band-pad); }
.band-short { padding-block: 2.5rem; }
.band-cream { background: var(--cream); }
.band-dark { background: var(--ink); color: #fff; }
.band-dark .eyebrow-orange + .hero-title { margin-top: 0.5rem; }
.band .content > * + * { margin-top: var(--gap); }
.band-title-lg { font-size: 28px; color: var(--ink); }
.band-title-md { font-size: 1.5rem; color: var(--ink); }
.band-title { font-size: 22px; color: #fff; }
.band-dark .band-title-md { color: #fff; }
.band-dark .muted, .split-text .muted { color: #888; font-size: 15px; line-height: 1.7; }
.band-dark + .content .station-grid { margin-top: 2rem; }
.cols { display: grid; gap: 1rem; }
@media (min-width: 600px) { .cols-2, .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 782px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* covers: a picture with a tinted layer over it */
.cover { position: relative; overflow: hidden; display: flex; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-dim { position: absolute; inset: 0; background: #374044; }
.dim-40 { opacity: 0.4; }
.dim-20 { opacity: 0.2; }
.dim-slate { background: #718092; }
/* the hero: darker behind the words, lighter where the city shows */
.hero-dim { background: rgba(13, 13, 13, 0.62); }
@media (min-width: 782px) { .hero-dim { background: linear-gradient(90deg, rgba(13, 13, 13, 0.8) 0%, rgba(13, 13, 13, 0.6) 45%, rgba(55, 64, 68, 0.3) 100%); } }
.cover-inner { position: relative; z-index: 1; max-width: var(--content); }
.cover-inner > * + * { margin-top: var(--gap); }

/* home: the hero */
.hero { min-height: 480px; align-items: center; padding: 4rem var(--band-pad); }
.hero-img { object-position: 50% 26%; }
.hero-title { font-size: clamp(28px, 4vw, 38px); line-height: 1.22; color: #fff; }
.hero-lede { color: #ddd; font-size: 15px; line-height: 1.7; }
.intro-light { color: #aaa; font-size: 15px; line-height: 1.7; }

/* home: the orange strip of figures */
.strip { background: var(--orange-fill); color: #fff; padding: 0.875rem 1rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 1.5rem; row-gap: 0.25rem; font-size: 14px; }
.strip-dot { color: rgba(255, 255, 255, 0.5); }

/* capacity cards: light when full, dark when there's space */
.cap { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 1.75rem; display: flex; flex-direction: column; gap: var(--gap); }
.cap-label { color: var(--grey-on-light); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.cap h3 { font-size: 20px; color: var(--ink); }
.cap-body { color: #666; font-size: 15px; line-height: 1.7; }
.cap .buttons { margin-top: auto; }
.cap .btn-outline { color: var(--ink); }
.cap-open { background: var(--ink); border-color: var(--ink); }
.cap-open .cap-label { color: var(--orange); }
.cap-open h3 { color: #fff; }
.cap-open .cap-body { color: #888; }
/* the Our Rates page's versions: a shade greyer, a touch smaller */
.cap-rates { padding: 1.5rem; }
.cap-rates:not(.cap-open) { background: #f5f5f5; border-color: #e0e0e0; }
.cap-rates .cap-label { letter-spacing: 0.1em; }
.cap-rates h3 { font-size: 18px; }
.cap-rates .cap-body { font-size: 14px; line-height: 1.65; }
.cap-rates:not(.cap-open) .cap-body { color: #555; }

/* a picture beside a dark panel, edge to edge */
.split { display: grid; }
@media (min-width: 600px) { .split { grid-template-columns: 1fr 1fr; } }
.split-pic { min-height: 300px; }
.split-pic-tall { min-height: 350px; }
.city-img { object-position: 50% 40%; }
.split-text { background: var(--ink); color: #fff; padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.split-text > * + * { margin-top: var(--gap); }
.split-text .band-title { margin-top: 0.75rem; }
.facts { list-style: disc; padding-left: 1.2em; color: #888; font-size: 14px; line-height: 2; }
.facts strong { color: #fff; }

/* home: the logos on the dark band */
.logo-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.logo-grid a { display: block; text-decoration: none; }
.logo-grid .tile { background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 10px; }
.logo-grid img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.all-link { text-align: right; font-size: 13px; }
.all-link a { color: var(--grey-on-dark); }

/* About */
.about-title { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--ink); }
.about-intro { color: #444; font-size: 16px; line-height: 1.75; }
.about-intro > * + * { margin-top: var(--gap); }
.kind { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 1.5rem; }
.kind-title { color: var(--ink); font-size: 14px; font-weight: 600; }
.kind-text { margin-top: var(--gap); color: #666; font-size: 13px; line-height: 1.65; }

/* Services on Air: a card per station */
.station-grid { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.st { display: flex; flex-direction: column; gap: 6px; }
.st-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; color: inherit; transition: box-shadow 0.15s; height: 100%; }
a.st-card:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.st-card img, .st-card .logo-fallback { width: 110px; height: 110px; object-fit: contain; border-radius: 4px; }
.logo-fallback { display: flex; align-items: center; justify-content: center; background: var(--cream); font: 600 28px var(--display); color: var(--ink); }
.st-name { font-size: 11px; font-weight: 600; color: #333; text-align: center; letter-spacing: 0.02em; }
.soon { display: block; font-style: normal; font-weight: 400; color: var(--grey-on-light); }
.listen { font: 600 12px var(--body); padding: 6px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; cursor: pointer; }
.listen[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* the player bar, only once a station streams here */
.player { position: sticky; bottom: 0; z-index: 10; background: var(--ink); color: #fff; }
.player-row { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.player-logo img { width: 40px; height: 40px; object-fit: contain; background: #fff; display: block; }
.player-text { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.player-text small { color: #aaa; }

/* Apply to Broadcast: the form, as the old contact form laid it out */
.form-wrap { margin-top: var(--space-30); }
.form-title { text-align: center; font-size: var(--fs-x-large); margin-bottom: var(--gap); }
.form label, .form legend { display: block; margin-top: 1rem; font-size: var(--fs-small); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 0.35rem; padding: 0.55rem 0.6rem; border: 1px solid #949494; border-radius: 0; background: #fff; color: var(--contrast); font: inherit; font-size: 16px; }
.form textarea { resize: vertical; }
.form [aria-invalid="true"] { border-color: #b3261e; }
/* Red comes only from aria-invalid, which the page's script sets after a
   field is left empty or a send is tried. Browsers' own invalid styling
   (Firefox's red glow on a required field) is switched off. */
.form :invalid, .form :user-invalid { box-shadow: none; outline: none; }
.form :-moz-ui-invalid { box-shadow: none; }
.form [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.form input.short { max-width: 14rem; }
.form .hint { margin: 0.25rem 0 0; font-size: 13px; color: var(--contrast-2); }
.form .privacy-note { font-size: 14px; color: var(--contrast-2); }
.form-error:not([hidden]) { padding: 0.75rem 1rem; background: #fbeaea; }
.sent-big p { font-size: var(--fs-medium, 1.125rem); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { padding: 0; font-weight: 600; margin-top: 1.5rem; }
.form fieldset + fieldset { margin-top: 2rem; }
.form .route { margin-top: 0.4rem; font-size: 13px; color: var(--contrast-2); }
.form #turnstile { margin-top: 1rem; }
.form > p { margin-top: 1rem; }
.form .small { font-size: 13px; color: var(--contrast-2); }
.form-error { color: #b3261e; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.sent p, .fallback p { margin-top: 1rem; }
.sent p { padding: 0.75rem 1rem; border: 2px solid #46b450; }

/* footer: the old site's, near-black with grey text (lightened to be readable) */
.site-foot { background: var(--ink); padding-top: 2.5rem; }
.foot-cols { display: grid; gap: 2rem; padding-inline: clamp(1rem, 4vw, 2rem); padding-bottom: 2.5rem; }
@media (min-width: 782px) { .foot-cols { grid-template-columns: 40fr 30fr 30fr; } }
.foot-brand img { width: 150px; display: block; }
.foot-about { margin-top: var(--gap); color: var(--grey-on-dark); font-size: 13px; line-height: 1.75; }
.foot-legal { margin-top: var(--gap); color: #858585; font-size: 12px; line-height: 1.6; }
.foot-label { color: var(--orange); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.foot-nav { margin-top: var(--gap); display: flex; flex-direction: column; gap: 0.6rem; }
.foot-nav a { color: var(--grey-on-dark); font-size: 13px; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-info { gap: 0; line-height: 2.1; }
.foot-bar { background: #111; padding: 0.875rem clamp(1rem, 4vw, 2rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; color: #808080; font-size: 12px; }
.foot-bar a { color: inherit; }

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