/* Ayr guide. Palette from the Firth of Clyde: haar grey, deep firth, Ayr sandstone, sunset gold. */
:root {
  --bg: #edf1f1;
  --surface: #ffffff;
  --surface-2: #e2e9ea;
  --ink: #0d212c;
  --ink-2: #435a66;
  --line: #c8d4d6;
  --firth: #0f4c5c;
  --firth-ink: #ffffff;
  --sand: #a8492f;
  --gold: #c98a1e;
  --gold-soft: #f3d9a4;
  --focus: #c98a1e;
  --ok: #23774a;
  --bad: #b23a48;
  --shadow: 0 1px 2px rgba(13, 33, 44, .06), 0 8px 24px rgba(13, 33, 44, .08);
  --radius: 14px;
  --font-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071319; --surface: #0e1f27; --surface-2: #142c37; --ink: #e4edef; --ink-2: #9db2ba; --line: #23404b;
    --firth: #6cc0cc; --firth-ink: #04161c; --sand: #e48f72; --gold: #f2b65a; --gold-soft: #4a3714; --focus: #f2b65a; --ok: #73d69e; --bad: #ff8a8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071319; --surface: #0e1f27; --surface-2: #142c37; --ink: #e4edef; --ink-2: #9db2ba; --line: #23404b;
  --firth: #6cc0cc; --firth-ink: #04161c; --sand: #e48f72; --gold: #f2b65a; --gold-soft: #4a3714; --focus: #f2b65a; --ok: #73d69e; --bad: #ff8a8a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
}

/* category colours, light then dark */
.c-see-do { --cat: #7a4e8c; } .c-history { --cat: #a8492f; } .c-outdoors { --cat: #3f7a4a; } .c-eat-drink { --cat: #a86d12; }
.c-stay { --cat: #0f6e7a; } .c-shops { --cat: #2f5ea8; } .c-services { --cat: #56606b; } .c-health { --cat: #b23a48; }
.c-sport { --cat: #2a7f6a; } .c-community { --cat: #8a6a2e; } .c-transport { --cat: #3a4f86; } .c-public { --cat: #6b4a3a; }
.c-event { --cat: var(--firth); } /* events in search results; the accent follows the theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .c-see-do { --cat: #c79be0; } :root:not([data-theme="light"]) .c-history { --cat: #e8907a; }
  :root:not([data-theme="light"]) .c-outdoors { --cat: #84c890; } :root:not([data-theme="light"]) .c-eat-drink { --cat: #f0b45a; }
  :root:not([data-theme="light"]) .c-stay { --cat: #5fc6d2; } :root:not([data-theme="light"]) .c-shops { --cat: #93b6f2; }
  :root:not([data-theme="light"]) .c-services { --cat: #b0bcc8; } :root:not([data-theme="light"]) .c-health { --cat: #f2919c; }
  :root:not([data-theme="light"]) .c-sport { --cat: #76d6bc; } :root:not([data-theme="light"]) .c-community { --cat: #dcbb7c; }
  :root:not([data-theme="light"]) .c-transport { --cat: #a5b5ee; } :root:not([data-theme="light"]) .c-public { --cat: #d2a995; }
}
:root[data-theme="dark"] .c-see-do { --cat: #c79be0; } :root[data-theme="dark"] .c-history { --cat: #e8907a; }
:root[data-theme="dark"] .c-outdoors { --cat: #84c890; } :root[data-theme="dark"] .c-eat-drink { --cat: #f0b45a; }
:root[data-theme="dark"] .c-stay { --cat: #5fc6d2; } :root[data-theme="dark"] .c-shops { --cat: #93b6f2; }
:root[data-theme="dark"] .c-services { --cat: #b0bcc8; } :root[data-theme="dark"] .c-health { --cat: #f2919c; }
:root[data-theme="dark"] .c-sport { --cat: #76d6bc; } :root[data-theme="dark"] .c-community { --cat: #dcbb7c; }
:root[data-theme="dark"] .c-transport { --cat: #a5b5ee; } :root[data-theme="dark"] .c-public { --cat: #d2a995; }

@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--firth); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: #1b1203; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .9em; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.small { font-size: .875rem; color: var(--ink-2); }
.center { text-align: center; }
.pad { padding: var(--gutter); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .55em 1.15em; border-radius: 999px;
  background: var(--firth); color: var(--firth-ink); border: 1px solid transparent; font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.home .top { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.home .top.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: color-mix(in srgb, var(--line) 70%, transparent); color: var(--ink); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.nav a[aria-current="page"] { background: color-mix(in srgb, currentColor 14%, transparent); }
.nav-toggle { display: none; }
.theme { width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
/* the icon shows the mode that is on: a moon in light mode, a sun in dark mode */
.theme span { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 70% 30%, transparent 0 42%, currentColor 43%); box-shadow: inset 0 0 0 2px currentColor; }
.theme[aria-pressed="true"] span { width: 10px; height: 10px; background: currentColor; box-shadow: 0 -8px 0 -3px currentColor, 0 8px 0 -3px currentColor, 8px 0 0 -3px currentColor, -8px 0 0 -3px currentColor, 6px 6px 0 -3.5px currentColor, -6px -6px 0 -3.5px currentColor, 6px -6px 0 -3.5px currentColor, -6px 6px 0 -3.5px currentColor; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; font: 600 .95rem var(--font-body); align-items: center; }
  .nav ul { display: none; position: absolute; left: 12px; right: 12px; top: 64px; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
  .nav ul.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* hero */
.hero { position: relative; min-height: max(620px, 100svh); max-height: 1100px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; overflow: visible; color: #fff; /* search suggestions may hang below it */
  background: linear-gradient(#21365d 0%, #c7706a 55%, #f2b170 62%, #1d3b52 63%, #0b2230 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the middle shade keeps the centred text readable over a bright sunset */
.hero-scrim { position: absolute; inset: 0; background: radial-gradient(ellipse 52% 42% at 50% 47%, rgba(4, 14, 20, .5), rgba(4, 14, 20, 0) 72%), linear-gradient(to top, rgba(4, 14, 20, .72) 0%, rgba(4, 14, 20, .32) 38%, rgba(4, 14, 20, 0) 62%), linear-gradient(to bottom, rgba(4, 14, 20, .38), rgba(4, 14, 20, 0) 22%); pointer-events: none; }
/* the title, the text and the search sit in the middle of the hero */
/* a little above the middle of the screen, clear of the sun caption at the bottom */
.hero-copy { position: relative; z-index: 3; padding: 65px var(--gutter) 12vh; max-width: 1000px; margin-inline: auto; text-align: center; }
.hero .eyebrow { color: rgba(255, 255, 255, .85); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hero h1 { font-size: clamp(2.1rem, 11vw, 5.2rem); line-height: 1; margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero .lede { color: #fff; font-size: clamp(1.05rem, 1.7vw, 1.25rem); margin-inline: auto; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.hero .search { margin-inline: auto; }
.hero .suggest { text-align: left; }
.search { position: relative; display: flex; gap: 8px; max-width: 620px; margin-top: 22px; }
.search input { flex: 1; min-width: 0; width: 0; /* no built-in width, so the box shrinks on narrow phones */ min-height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 1.05rem var(--font-body); box-shadow: var(--shadow); }
.search button { min-height: 54px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--gold); color: #1d1404; font: 700 1rem var(--font-body); cursor: pointer; }
.hero .search input { border-color: transparent; }
.suggest { position: absolute; z-index: 10; left: 0; right: 0; top: 62px; list-style: none; margin: 0; padding: 6px; background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); max-height: 60vh; overflow: auto; }
.suggest li a { display: grid; grid-template-columns: 10px 1fr; gap: 2px 12px; padding: 10px 12px; border-radius: 12px; color: inherit; text-decoration: none; }
.suggest li a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--firth)); grid-row: span 2; margin-top: 8px; }
.suggest li a[aria-selected="true"], .suggest li a:hover { background: var(--surface-2); }
.suggest li a.has-ph { grid-template-columns: 40px 1fr; }
.suggest li a.has-ph::before { display: none; }
.s-ph { grid-row: span 2; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.suggest .s-name { font-weight: 700; }
.suggest .s-sub { font-size: .85rem; color: var(--ink-2); }
.hero-cap { position: absolute; z-index: 2; right: var(--gutter); bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 14px; max-width: min(560px, calc(100% - 2 * var(--gutter))); font-family: var(--font-mono); font-size: .8rem; color: rgba(255, 255, 255, .86); text-align: right; }
.hero-cap p { margin: 0; }
.cap-live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.cap-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff7a59; box-shadow: 0 0 0 0 rgba(255, 122, 89, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 122, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0); } }
.cap-modes { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(4, 14, 20, .45); backdrop-filter: blur(6px); }
.cap-modes button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 500 .8rem var(--font-mono); cursor: pointer; }
.cap-modes button[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: #0d212c; }
.no-webgl .hero-canvas { display: none; }
@media (max-width: 640px) {
  .hero-copy { padding-bottom: 150px; }
  .hero-cap { left: var(--gutter); right: var(--gutter); justify-content: flex-start; text-align: left; bottom: 16px; }
}

/* bands */
.band { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 0; }
.band:last-child { padding-bottom: clamp(48px, 8vw, 96px); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 24px; }
.band-head h2 { margin: 0; }
.band-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* category tiles: the count is the information */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.tile a { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; height: 100%; padding: 18px 18px 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.tile a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cat); }
.tile a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--cat) 50%, var(--line)); }
.tile-n { grid-row: span 2; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--cat); min-width: 2.2ch; }
.tile-label { font-weight: 700; font-size: 1.1rem; }
.tile-blurb { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--surface-2); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; border-top: 4px solid var(--cat); }
.card:not(.has-img) .card-body { border-top: 0; border-left: 5px solid var(--cat); }
.card-meta { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cat); }
.card-title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.12; }
.card-text { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.card-badges:empty { display: none; }
.badge { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.badge.gem { background: var(--gold-soft); border-color: transparent; color: var(--ink); }
.badge.nhs { background: #005eb8; border-color: #005eb8; color: #fff; }
.badge.biz { color: var(--ink); border-color: var(--ink-2); vertical-align: .1em; }
.scroller { grid-auto-flow: column; grid-auto-columns: minmax(min(85%, 260px), 300px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 8px; scrollbar-width: none; scroll-behavior: smooth; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > li { scroll-snap-align: start; }
/* a side-scrolling row: arrows on both edges, added by site.js */
.carousel { position: relative; }
.car-btn { position: absolute; top: 40%; z-index: 2; translate: 0 -50%; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(8px); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; transition: opacity .2s, scale .2s; }
.car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-btn:hover { scale: 1.07; }
.car-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-btn.prev { left: -12px; }
.car-btn.next { right: -12px; }
@media (max-width: 640px) {
  .car-btn { width: 40px; height: 40px; }
  .car-btn.prev { left: 6px; }
  .car-btn.next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .scroller { scroll-behavior: auto; } }

/* story band */
/* two days in Ayr's history side by side: St John's Tower and Robert Burns */
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.story-item .ph { margin-bottom: 20px; }
.story .eyebrow { font-size: 1rem; color: var(--sand); letter-spacing: .12em; }
.story h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.ph { margin: 0; }
.ph img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.story-ph img { aspect-ratio: 4 / 3.2; }
.ph figcaption { font-size: .78rem; color: var(--ink-2); margin-top: 8px; }
.ph figcaption a { color: inherit; }
.mini-tl { list-style: none; margin: 48px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.mini-tl li { padding: 14px 16px 0 0; position: relative; }
.mini-tl li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.tl-year { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.tl-text { display: block; font-size: .92rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 900px) {
  .stories { grid-template-columns: 1fr; }
  .mini-tl { grid-template-columns: 1fr 1fr; row-gap: 18px; border-top: 0; }
  .mini-tl li { border-top: 2px solid var(--ink); }
}

/* maps */
.home-map, .ex-map, .mini-map { position: relative; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; }
.home-map { height: min(68vh, 620px); border: 1px solid var(--line); margin-bottom: 20px; }
.mini-map { height: 300px; border: 1px solid var(--line); margin-top: 16px; }
.map-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--ink-2); font-size: .95rem; text-align: center; padding: 16px; }
/* the map's own stylesheet loads after this one and sets a white popup, so these rules name the map too to win in dark mode */
.maplibregl-map .maplibregl-popup-content { font-family: var(--font-body); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 12px 30px 12px 14px; box-shadow: var(--shadow); }
.maplibregl-popup-tip { border-top-color: var(--surface) !important; border-bottom-color: var(--surface) !important; }
.maplibregl-popup-close-button { color: var(--ink); font-size: 18px; padding: 2px 8px; }
.pop-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; display: block; }
.pop-sub { font-size: .82rem; color: var(--ink-2); display: block; margin: 2px 0 6px; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* events */
.events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.event { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
/* the whole card opens the event's page */
.event, .plain-list li { position: relative; transition: border-color .15s; }
.event .ev-title a::after, .plain-list .ev-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.event:hover, .plain-list li:hover { border-color: var(--firth); }
.event time { display: grid; place-content: center; text-align: center; background: var(--firth); color: var(--firth-ink); border-radius: 12px; aspect-ratio: 1; }
.ev-day { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.ev-mon { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.ev-title { font-weight: 700; margin: 0 0 2px; }
.ev-title a { color: inherit; }
.ev-when { font-size: .9rem; color: var(--ink-2); margin: 0 0 4px; }
.orgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.org { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.org h3 { margin: 0 0 6px; font-size: 1.15rem; }
.org p { margin: 0 0 12px; color: var(--ink-2); }
.org .org-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.event p:last-child { margin-bottom: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plain-list li { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.plain-list p { margin: 0; }

/* phone numbers */
.phones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 10px; }
.phones a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.phones a:hover { border-color: var(--firth); }
.ph-n { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.15rem, 1.7vw, 1.6rem); color: var(--firth); letter-spacing: -.01em; white-space: nowrap; } /* a number never breaks across lines */
.phones li:first-child .ph-n { color: var(--bad); }
.phones span:last-child { font-size: .92rem; color: var(--ink-2); line-height: 1.4; }

/* no website band */
.noweb-grid { display: grid; grid-template-columns: minmax(200px, .7fr) 1.3fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); background: var(--firth); color: var(--firth-ink); border-radius: calc(var(--radius) * 1.5); }
.noweb-grid a.btn { background: var(--gold); color: #1d1404; }
.big { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); line-height: .9; margin: 0; }
@media (max-width: 760px) { .noweb-grid { grid-template-columns: 1fr; } }

/* category and section heads */
.cat-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(36px, 7vw, 80px) var(--gutter) 24px; }
.cat-head h1 { color: var(--ink); }
.cat-head.c-history .eyebrow, .cat-head[class*="c-"] .eyebrow { color: var(--cat); }
.cat-head + .cards, .cat-head + .timeline { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.toc { max-width: var(--maxw); margin: 32px auto 0; padding: 0 var(--gutter); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-flex; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); font-size: .92rem; }
.toc a span { color: var(--ink-2); font-family: var(--font-mono); }
.group { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--gutter) 0; }
.group:last-child { padding-bottom: 72px; }
.group h2 { font-size: 1.8rem; display: flex; align-items: baseline; gap: 12px; }
.count { font-family: var(--font-mono); font-size: .95rem; color: var(--ink-2); }

/* directory rows */
.rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 8px; }
.row a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 12px 14px 12px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cat); border-radius: 10px; color: inherit; text-decoration: none; height: 100%; }
.row a:hover { border-color: var(--cat); }
.row-name { font-weight: 700; overflow-wrap: anywhere; }
.row-sub { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cat); align-self: center; text-align: right; max-width: 18ch; overflow-wrap: anywhere; }
.row-addr { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }
.row-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); }
.row-extra:empty { display: none; }
.row a.has-ph, .results .row a.has-ph { grid-template-columns: 64px minmax(0, 1fr) auto; }
.row-ph { grid-row: 1 / span 3; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.row a.has-ph .row-addr, .row a.has-ph .row-extra { grid-column: 2 / -1; }
/* on a phone the kind of place sits above the name, so the name gets the whole width */
@media (max-width: 520px) {
  .row a, .results .row a { grid-template-columns: minmax(0, 1fr); }
  .row a.has-ph, .results .row a.has-ph { grid-template-columns: 64px minmax(0, 1fr); }
  .row-sub { grid-row: 1; text-align: left; max-width: none; align-self: start; }
  .row-name { grid-row: 2; }
  .row a.has-ph .row-ph { grid-row: 1 / span 4; }
  .row a.has-ph .row-sub, .row a.has-ph .row-name { grid-column: 2; }
}
.links { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* timeline page */
.timeline { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 860px !important; position: relative; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline .tl-year { font-size: 1.6rem; color: var(--sand); }
.timeline .tl-text { font-size: 1.02rem; color: var(--ink); }
.src { font-family: var(--font-mono); font-size: .75rem; margin-left: 6px; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* place page */
.place { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 72px; }
.crumbs { font-size: .92rem; color: var(--ink-2); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); }
.place-head .eyebrow { color: var(--cat); }
.place-head { max-width: 900px; border-left: 6px solid var(--cat); padding-left: clamp(14px, 3vw, 28px); margin-bottom: 28px; }
.place-head h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.hero-ph { margin-bottom: 32px; }
.hero-ph img { max-height: 560px; aspect-ratio: 16 / 9; }
.place-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.place-main > p { font-size: 1.1rem; max-width: 68ch; }
.plain { color: var(--ink-2); }
.visit { padding: 14px 18px; border-radius: 12px; background: var(--surface-2); }
.place-side { position: sticky; top: 90px; }
.info, .facts { margin: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info > div, .facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.info > div:last-child, .facts > div:last-child { border-bottom: 0; }
.info dt, .facts dt { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding-top: 3px; }
.info dd, .facts dd { margin: 0; overflow-wrap: anywhere; }
.facts { margin: 24px 0; }
.place-side .actions { margin: 16px 0 0; }
.hours { margin-top: 28px; }
.hours h2 { font-size: 1.6rem; }
.hours table { border-collapse: collapse; width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hours th, .hours td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { width: 45%; color: var(--ink-2); }
.open-now { font-weight: 700; }
.open-now.is-open { color: var(--ok); }
.open-now.is-closed { color: var(--bad); }
.nearby, .here { margin-top: 56px; }
.nearby h2, .here h2 { font-size: 1.8rem; }
.nearby ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.nearby a { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--cat); border-radius: 10px; background: var(--surface); color: inherit; text-decoration: none; }
.nearby small { color: var(--ink-2); }
.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); }
.sources h2 { font-size: 1.3rem; color: var(--ink); }
.sources ul { padding-left: 1.2em; }
@media (max-width: 860px) { .place-grid { grid-template-columns: 1fr; } .place-side { position: static; } }

/* prose sections */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.4em; }
.credits { font-size: .88rem; color: var(--ink-2); padding-left: 1.2em; }
.credits li { margin-bottom: 6px; }

/* explore */
.explore-page .foot { display: none; }
.explore { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; height: calc(100svh - 65px); }
.ex-bar { padding: 14px var(--gutter) 12px; border-bottom: 1px solid var(--line); background: var(--bg); display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
/* the search box and the filters share one line; the categories sit under them, with the count at the end */
.ex-bar > *, .ex-row > * { min-width: 0; }
.ex-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.ex-search { flex: 1 1 auto; margin: 0; max-width: none; }
.ex-search input { min-height: 48px; padding-left: 48px; box-shadow: none; }
.ex-search input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.s-icon { position: absolute; left: 18px; top: 50%; width: 19px; height: 19px; translate: 0 -50%; fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.ex-filters { display: flex; gap: 6px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .88rem var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: border-color .15s, background-color .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip[class*="c-"]::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cat); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[class*="c-"][aria-pressed="true"] { background: var(--cat); border-color: var(--cat); color: #fff; }
.chip[class*="c-"][aria-pressed="true"]::before { background: #fff; }
.ex-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; align-self: end; min-height: 36px; }
.ex-count { margin: 0 auto 0 0; color: var(--ink-2); font-size: .9rem; }
.ex-tools .btn { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.view-toggle { display: none !important; }
.ex-body { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; min-height: 0; }
.results { list-style: none; margin: 0; padding: 10px; overflow-y: auto; display: grid; align-content: start; gap: 8px; border-right: 1px solid var(--line); }
.results .row a { grid-template-columns: minmax(0, 1fr) auto; }
.results .row.hl a { border-color: var(--cat); box-shadow: var(--shadow); }
.results .more { display: flex; justify-content: center; padding: 12px; }
.results .empty { padding: 24px 12px; color: var(--ink-2); }
.ex-map { border-radius: 0; }
.dist { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .explore { height: auto; min-height: calc(100svh - 65px); }
  .view-toggle { display: inline-flex !important; }
  /* on a phone the filters and the categories each scroll sideways on one line, with no scrollbar */
  .ex-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
  .ex-scroll::-webkit-scrollbar { display: none; }
  .ex-row { flex-wrap: wrap; gap: 10px; }
  .ex-search { flex-basis: 100%; }
  .ex-filters { flex: 1 1 100%; }
  .ex-bar { grid-template-columns: minmax(0, 1fr); }
  .ex-tools { align-self: auto; }
  .ex-body { grid-template-columns: 1fr; }
  .results { border-right: 0; overflow: visible; }
  .ex-map { display: none; height: calc(100svh - 230px); }
  .explore.show-map .ex-map { display: block; }
  .explore.show-map .results { display: none; }
}

/* footer */
.foot { margin-top: 40px; padding: 48px var(--gutter) 28px; background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); font-size: .93rem; }
.foot-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); margin-bottom: .3em; }
.foot-h { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin-bottom: .6em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink); }
.foot-legal { max-width: var(--maxw); margin: 32px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* live data: the weather line in the hero, the "Ayr right now" cards, the Live page and its map */
.cap-wx { flex-basis: 100%; text-align: right; }
@media (max-width: 640px) { .cap-wx { text-align: left; } }
/* the Live page opens on the map: the full width of the screen and the height under the menu. On a phone it leaves
   room above and below, since a map filling the screen would catch every swipe meant to scroll the page. */
.live-full { padding: 10px clamp(8px, 1.4vw, 20px) 0; }
.live-full .live-map { height: calc(100svh - 92px); max-height: 1100px; }
.live-full .map-key { padding: 0 6px; }
@media (max-width: 640px) { .live-full .live-map { height: 70svh; } }
.now-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 12px; }
.now { position: relative; padding: 18px 20px 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.now::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cat, var(--firth)); }
.now a { color: inherit; text-decoration: none; }
.now a::after { content: ""; position: absolute; inset: 0; }
.now a:focus-visible { outline: none; }
.now:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.now-k { margin: 0 0 8px; font: 500 .76rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.now-v { margin: 0 0 6px; font: 400 clamp(2rem, 5vw, 2.6rem)/1.05 var(--font-display); }
.now-s { margin: 0; color: var(--ink-2); }
.c-wx { --cat: #c98a1e; } .c-sea { --cat: #12808d; } .c-air { --cat: #3a6cbc; } .c-space { --cat: #8a5aa0; } .c-ship { --cat: #a8492f; }
.hour-strip { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.hour-strip li { padding: 10px 6px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font: .82rem/1.5 var(--font-mono); }
.hour-strip b { display: block; font: 400 1.25rem var(--font-display); }
.hour-strip .h-rain { color: var(--firth); }
.live-wrap { position: relative; }
.map-tools { position: absolute; z-index: 3; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; }
.map-tools button { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink-2); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: pointer; }
.map-tools svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-tools svg .fill { fill: currentColor; stroke: none; }
.map-tools button[aria-pressed="true"] { background: var(--cat); border-color: var(--cat); color: #fff; }
.map-tools button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the layer's name beside its button, on hover or keyboard focus */
.map-tools button::after { content: attr(data-label); position: absolute; left: calc(100% + 8px); top: 50%; translate: 0 -50%; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font: 600 .78rem var(--font-body); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.map-tools button:hover::after, .map-tools button:focus-visible::after { opacity: 1; }
.c-bld { --cat: #66717d; } .c-pl { --cat: var(--firth); }
/* the live map's light or dark switch, under the zoom buttons and compass */
.map-theme button { display: grid; place-items: center; }
.map-theme svg { width: 18px; height: 18px; fill: none; stroke: #333; stroke-width: 2; }
.map-theme svg .fill { fill: #333; stroke: none; }
.live-map { height: clamp(440px, 74vh, 760px); border: 1px solid var(--line); margin-bottom: 12px; }
@media (min-width: 641px) { .live-map { min-height: 580px; } } /* room for the buttons above the space station chart */
.map-key { margin: 0; color: var(--ink-2); font-size: .92rem; max-width: 80ch; }
.pin { padding: 2px 8px; border-radius: 999px; background: var(--firth); color: var(--firth-ink); font: 600 .72rem var(--font-mono); white-space: nowrap; box-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.pin-air { background: #2f5ea8; color: #fff; }
.map-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: #1d1405; font: 700 .78rem var(--font-mono); white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.map-badge svg { width: 16px; height: 16px; fill: currentColor; }
.sea-badge { background: #12808d; color: #fff; }
/* the home page's band for the live map: what it shows, each layer with the icon and colour of its switch on the map */
.live-teaser { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); align-items: center; padding: clamp(22px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.live-teaser h2 { margin: .15em 0 .35em; }
.live-teaser p { max-width: 58ch; }
.live-teaser .actions { margin-bottom: 0; }
.teaser-layers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.teaser-layers li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.teaser-layers svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--cat); color: #fff; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.teaser-layers svg .fill { fill: currentColor; stroke: none; }
@media (max-width: 760px) { .live-teaser { grid-template-columns: 1fr; } }
/* the weather and sea badges sit together in the map's top corner, beside the zoom buttons */
.map-now { position: absolute; z-index: 2; top: 10px; right: 50px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.sky-card { position: absolute; z-index: 2; left: 10px; bottom: 10px; width: 176px; padding: 8px 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.sky-card p { margin: 0; }
.sky-h { font: 600 .68rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.sky-card svg { display: block; width: 100%; height: auto; }
.sky-card text { font: 600 9px var(--font-mono); fill: var(--ink-2); text-anchor: middle; }
.sky-hz { fill: color-mix(in srgb, var(--firth) 10%, transparent); stroke: var(--ink-2); stroke-width: 1.2; }
.sky-45 { fill: none; stroke: var(--line); stroke-dasharray: 3 3; }
.sky-path { fill: none; stroke: #8a5aa0; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sky-dot { fill: #8a5aa0; stroke: #fff; stroke-width: 1.5; } .sky-end { fill: none; stroke: #8a5aa0; stroke-width: 1.5; }
.sky-t { font: .74rem/1.35 var(--font-mono); text-align: center; color: var(--ink); }
@media (max-width: 640px) {
  .sky-card { position: static; width: auto; margin: 0 0 12px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 4px 12px; }
  .sky-h { grid-column: 1 / -1; }
  .sky-t { text-align: left; }
}
.plane-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.plane-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.plane-rows li.empty { display: block; color: var(--ink-2); }
.plane-rows b { font-family: var(--font-mono); overflow-wrap: anywhere; }
.plane-rows span { color: var(--ink-2); font-size: .9rem; }
.plane-rows .alt { grid-row: span 2; align-self: center; text-align: right; font: 600 .95rem var(--font-mono); color: var(--ink); }
.passes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.passes li { display: grid; grid-template-columns: 11ch minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.passes .p-day { font: 600 .9rem var(--font-mono); }
.passes .p-max { font: 600 .9rem var(--font-mono); color: var(--firth); }
@media (max-width: 560px) { .passes li { grid-template-columns: minmax(0, 1fr) auto; } .passes .p-day { grid-column: 1 / -1; } }
.live-note { margin: 16px 0 0; color: var(--ink-2); font-size: .9rem; max-width: 72ch; }
.route { margin: 0 0 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.route p { margin: 0 0 10px; }
.route-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.route-btns button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 600 .85rem var(--font-body); cursor: pointer; }
.route-btns button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.route-btns button[aria-pressed="true"] { background: var(--firth); color: var(--firth-ink); border-color: var(--firth); }
.route-out { margin: 10px 0 0; font: 600 .95rem var(--font-mono); }
.route-out:empty { display: none; }

/* alerts: the bar under the header on every page and the list on the Live page, coloured by level as the Met Office colours its warnings */
.lv-yellow { --lv-bg: #ffe066; --lv-ink: #1d1a05; --lv: #e0b400; }
.lv-amber { --lv-bg: #ffb347; --lv-ink: #1f1203; --lv: #e0860b; }
.lv-red { --lv-bg: #c8102e; --lv-ink: #ffffff; --lv: #c8102e; }
.lv-road { --lv-bg: #f6c28f; --lv-ink: #2a1503; --lv: #e8770e; } /* roadworks, in the orange of their dots on the live map */
.c-road { --cat: #d9650b; }
.alert-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 6px var(--gutter); background: var(--lv-bg); color: var(--lv-ink); font-size: .92rem; line-height: 1.35; }
.alert-bar[hidden] { display: none; }
.home .alert-bar { position: absolute; z-index: 29; top: 65px; left: 0; right: 0; } /* over the hero, under the see-through header */
.ab-icon svg, .ab-x svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ab-what { font-weight: 700; color: inherit; text-underline-offset: 3px; }
.ab-by { font: 600 .72rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.ab-more { margin-left: auto; color: inherit; font-weight: 600; text-underline-offset: 3px; }
.ab-x { display: grid; place-items: center; width: 40px; height: 40px; margin: -4px -10px -4px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.ab-x:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.alert-bar a:focus-visible, .ab-x:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alert { position: relative; padding: 14px 16px 14px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.alert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--lv, var(--line)); }
.alert-wait, .alert.none { color: var(--ink-2); }
.al-kind { display: block; margin-bottom: 6px; font: 600 .72rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.alert[class*="lv-"] .al-kind { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--lv-bg); color: var(--lv-ink); }
.al-title { display: block; font-weight: 700; }
a.al-title { color: inherit; text-underline-offset: 3px; }
.al-text { margin: 6px 0 0; color: var(--ink-2); max-width: 80ch; }
.al-link { display: inline-block; margin-top: 8px; font-weight: 600; }

/* getting around: how to travel, with each operator's live page and where to buy tickets */
.c-rail { --cat: #3a4f86; } .c-bus { --cat: #2a7f6a; } .c-ferry { --cat: #1b5f86; }
.go-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.go { position: relative; padding: 18px 20px 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.go::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cat, var(--firth)); }
.go h3 { margin: 0 0 8px; font: 400 1.45rem/1.15 var(--font-display); }
.go p { margin: 0 0 12px; }
.go p:last-child { margin-bottom: 0; }
.go-live, .go-tix { font-size: .95rem; }
.go-live b, .go-tix b { display: block; margin-bottom: 2px; font: 600 .72rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

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