/* LNER Route Guide — independent travel guide.
   Modern railway styling: white and light-grey pages, railway red, charcoal, amber-on-black departure boards.
   Font: Barlow (SIL Open Font Licence, see ../fonts/OFL.txt). Mobile-first. */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --red: #c8102e;
  --red-dark: #a00d25;
  --red-on-dark: #ff4d5e;
  --ink: #1d1d1b;
  --ink-2: #4a4a48;
  --grey: #f2f2f2;
  --grey-2: #e6e6e6;
  --line: #d6d6d6;
  --board: #0d0d0c;
  --board-line: #2c2c2a;
  --amber: #ffb000;
  --board-dim: #a8a8a8;
  --focus: #0a58ca;
  --font: "Barlow", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 60px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px -10px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .08), 0 18px 36px -16px rgba(0, 0, 0, .35);
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.5vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
}
@media (min-width: 1100px) { :root { --header-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (min-width: 700px) { html:has(.page-station) { scroll-padding-top: calc(var(--header-h) + 72px); } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 var(--step-0)/1.6 var(--font); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4, .h4 { font-family: var(--font); font-weight: 700; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
.h4, h4 { font-size: 1.125rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
abbr[title] { text-decoration: none; }
strong { font-weight: 700; }
code { font-size: .9em; background: var(--grey); padding: .1em .35em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.small { font-size: var(--step--1); color: var(--ink-2); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
main { display: block; outline: none; }
main > :last-child { margin-bottom: 3rem; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: .7em 1em; font-weight: 700; }
.skip:focus { top: 8px; color: #fff; outline-color: var(--amber); }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.ico-sm { width: .95em; height: .95em; vertical-align: -.12em; }

/* ---------- labels ---------- */
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; margin: 0 0 .7em; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.kicker::before { content: ""; width: 24px; height: 3px; background: currentColor; flex: none; }
.kicker a { color: inherit; }
.kicker-light { color: #fff; }
.kicker-light::before { background: var(--red-on-dark); }
.swatch { display: inline-block; width: .8em; height: .8em; margin-right: .45em; vertical-align: -.05em; box-shadow: 0 0 0 2px #fff; flex: none; }
.crs { font-weight: 700; font-size: .78em; letter-spacing: .1em; background: var(--ink); color: #fff; padding: .12em .45em; }
.kicker-light .crs, .hero .crs { background: #fff; color: var(--ink); }

/* ---------- independence strip & header ---------- */
.indie-bar { background: var(--grey); color: var(--ink); border-bottom: 1px solid var(--line); font-size: .8125rem; line-height: 1.3; }
.indie-bar .wrap { display: flex; align-items: center; gap: .15rem .5rem; min-height: 44px; }
.indie-bar .ico { color: var(--red); }
.indie-bar strong { font-weight: 700; flex: 1 1 auto; min-width: 0; }
.indie-bar a { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; color: var(--ink); font-weight: 600; white-space: nowrap; }
.indie-bar a:hover { color: var(--red); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; border-bottom: 3px solid var(--red); --focus: var(--amber); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; min-height: 44px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1.3rem; letter-spacing: .005em; white-space: nowrap; }
.brand-sub { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #c9c9c9; margin-top: .25em; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.site-nav a:not(.btn) { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 .7rem; color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 4px; height: 3px; background: var(--red-on-dark); }
.site-nav .nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: .55em; min-height: 44px; min-width: 44px; padding: 0 .8rem; background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .5); font: 700 .95rem var(--font); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.nav-toggle:hover { border-color: #fff; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1099px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin-top: 3px; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .6); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; max-width: 1240px; margin-inline: auto; padding: .4rem var(--gutter) 1.1rem; }
  .js .site-nav a:not(.btn) { min-height: 50px; padding: 0 .25rem; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1.0625rem; }
  .js .site-nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; }
  .js .site-nav a[aria-current="page"] { padding-left: .9rem; }
  .js .site-nav .nav-cta { margin: .9rem 0 0; }
  .js .site-nav .nav-cta .btn { width: 100%; min-height: 50px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .3rem; }
  html:not(.js) .site-nav { width: 100%; margin: 0; overflow-x: auto; }
  html:not(.js) .site-nav ul { padding-bottom: .4rem; }
}
@media (max-width: 480px) {
  .brand { gap: .5rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.12rem; }
  .brand-sub { display: none; }
  .nav-toggle { padding: 0 .6rem; }
  .indie-bar { font-size: .78rem; }
  .indie-bar .wrap { gap: .1rem .4rem; }
  .why-more { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 359px) { .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } }

/* ---------- breadcrumbs ---------- */
.crumbs { border-bottom: 1px solid var(--line); background: #fff; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0 auto; font-size: .875rem; color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 .6em 0 .5em; border-top: 1.5px solid #8c8c8a; border-right: 1.5px solid #8c8c8a; transform: rotate(45deg); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; padding-block: .75rem; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .55em 1.2em; font: 700 1rem/1.15 var(--font); letter-spacing: .01em; text-align: center; text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lg { min-height: 52px; padding: .7em 1.45em; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: .45em 1em; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: rgba(0, 0, 0, .2); color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0 .95rem; font: 600 .95rem/1.1 var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); text-decoration: none; cursor: pointer; }
.chip span { font-size: .85em; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span, .chip[aria-pressed="true"] span { color: #d9d9d9; }
.btn-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.btn-icon:hover { border-color: var(--ink); }
.link-pill { display: inline-flex; align-items: center; min-height: 44px; margin: 0 .4em .4em 0; padding: 0 .9em; background: var(--grey); border-left: 3px solid var(--red); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink); }
.link-pill:hover { background: var(--grey-2); }
.link-pill::after { content: "\2197"; margin-left: .35em; color: var(--red); }

/* ---------- photo heroes ---------- */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(440px, 72vh, 660px); overflow: hidden; background: var(--ink); color: #fff; --focus: var(--amber); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img, .hero-media > svg { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .56) 100%); }
@media (min-width: 900px) {
  .hero::before { background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .62) 42%, rgba(0, 0, 0, .18) 78%, rgba(0, 0, 0, .1) 100%), linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 55%); }
}
.hero-inner { position: relative; padding-block: 3rem 2.4rem; }
.hero-inner > * { max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem); line-height: 1; letter-spacing: -.02em; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero h1::after { content: ""; display: block; width: 72px; height: 6px; margin-top: .3em; background: var(--red); }
.hero-home h1 span { display: block; }
.hero-lead { font-size: var(--step-1); line-height: 1.5; max-width: 58ch; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.hero a:not(.btn) { color: #fff; }
.hero .kicker a, .hero-facts a { display: inline-flex; align-items: center; min-height: 44px; }
.hero a:not(.btn):hover { color: var(--amber); }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; margin: 0 0 1.2rem; padding: 0; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.hero-facts li { display: inline-flex; align-items: center; gap: .4em; }
.hero-facts .ico { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.3rem 0 .7rem; }
.hero-note { font-size: .875rem; color: #ececec; margin: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.hero-credit { position: relative; z-index: 1; align-self: flex-end; max-width: min(100%, 760px); margin: 0; padding: .4rem .8rem; font-size: .75rem; line-height: 1.4; color: #f2f2f2; background: rgba(0, 0, 0, .66); text-align: right; }
.hero-credit a { color: #fff; }
.hero-caption { font-weight: 600; }
.hero-caption::after { content: " · "; font-weight: 400; }
.hero-caption:last-child::after { content: none; }
@media (max-width: 599px) {
  .hero { min-height: 420px; }
  .hero-inner { padding-block: 2.2rem 1.8rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-credit { align-self: stretch; max-width: none; text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-train { animation: roll 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes roll { from { transform: translateX(-320px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- departure boards ---------- */
.board { background-color: var(--board); background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1.3px); background-size: 5px 5px; color: var(--amber); font-variant-numeric: tabular-nums; --focus: #fff; }
.board a { color: var(--amber); text-decoration: none; }
.board a:hover { color: #fff; text-decoration: underline; }
.board-strip { background: var(--board); border-bottom: 3px solid var(--red); --focus: #fff; }
.board-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-stats a { display: flex; flex-direction: column; justify-content: center; min-height: 88px; padding: .9rem .75rem; color: var(--amber); text-decoration: none; border-left: 1px solid var(--board-line); border-top: 1px solid var(--board-line); font-variant-numeric: tabular-nums; }
.board-stats a:nth-child(-n+2) { border-top: 0; }
.board-stats a:nth-child(odd) { border-left: 0; }
.board-stats strong { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1; letter-spacing: .03em; }
.board-stats span { margin-top: .3rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d9d9d9; }
.board-stats a:hover span { color: #fff; text-decoration: underline; }
@media (min-width: 760px) {
  .board-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .board-stats a { border-top: 0; padding-inline: 1.2rem; }
  .board-stats a:nth-child(odd) { border-left: 1px solid var(--board-line); }
  .board-stats a:first-child { border-left: 0; }
}
.journey { margin-bottom: 2.6rem; }
.journey .board { border-top: 4px solid var(--red); padding: 1rem 1.1rem .9rem; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .65rem; margin-bottom: .9rem; border-bottom: 1px solid var(--board-line); }
.board-title { display: flex; align-items: center; gap: .55em; margin: 0; color: #fff; font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; }
.board .board-title .ico { color: var(--amber); }
.board-code { font-weight: 700; letter-spacing: .22em; border: 1px solid #3d3d3a; padding: .1em .5em .1em .72em; }
.board-main { display: grid; gap: .9rem 1.5rem; margin: 0 0 .9rem; }
.board-main dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #bdbdbd; }
.board-main dd { margin: .2em 0 0; }
.board-big { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; line-height: 1.1; letter-spacing: .02em; color: var(--amber); }
@media (min-width: 560px) { .board-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.board-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.board-table th, .board-table td { padding: .3rem .5rem .3rem 0; border-top: 1px solid var(--board-line); text-align: left; vertical-align: middle; }
.board-table thead th { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #bdbdbd; }
.board-table tbody th { font-weight: 600; }
.board-table tbody th a { color: #fff; }
.board-table .swatch { box-shadow: none; }
.board-table a { display: inline-flex; align-items: center; min-height: 44px; }
.board-dim { color: var(--board-dim); font-size: .82rem; font-weight: 400; white-space: nowrap; }
.board-foot { margin: .8rem 0 0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--board-dim); }
@media (max-width: 559px) {
  .board-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .board-table, .board-table tbody, .board-table tr, .board-table th, .board-table td { display: block; }
  .board-table tr { border-top: 1px solid var(--board-line); padding: .45rem 0 .5rem; }
  .board-table th, .board-table td { border: 0; padding: .05rem 0; }
  .board-table td { display: flex; gap: .5rem; align-items: baseline; }
  .board-table td::before { content: attr(data-label); min-width: 5.2rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #bdbdbd; }
}
.journey-notes { padding: .9rem 0 0; }
.journey-notes > :last-child { margin-bottom: 0; }
.route-facts { margin-bottom: 1rem; }
.board-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 0; border-top: 4px solid var(--red); }
.board-inline > div { padding: .85rem 1.1rem .9rem; border-left: 1px solid var(--board-line); border-top: 1px solid var(--board-line); margin-top: -1px; margin-left: -1px; }
.board-inline dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #bdbdbd; }
.board-inline dd { margin: .2em 0 0; font-size: 1.2rem; font-weight: 700; color: var(--amber); line-height: 1.25; }
.board-inline .board-note { display: block; margin-top: .25rem; font-size: .8rem; font-weight: 400; line-height: 1.4; color: var(--board-dim); }

/* ---------- sections ---------- */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-tight { padding-block: .5rem 2rem; }
.band-grey { background: var(--grey); }
.band-dark { background: var(--ink); color: #fff; --focus: var(--amber); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a { color: #fff; }
.band-dark a:hover { color: var(--amber); }
.band-dark .small, .light { color: #cfcfcf; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.6rem; }
.section-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.more-light { color: #fff; }
.page-head { background: var(--grey); border-bottom: 1px solid var(--line); padding-block: 2rem 1.8rem; margin-bottom: 1.6rem; }
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-bottom: 0; }
.page-head .intro-more { max-width: 62ch; margin: .8em 0 0; color: var(--ink-2); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.section-intro { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-2); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.region-card .card-media { aspect-ratio: 16 / 9; }
.card-credit { position: absolute; right: 0; bottom: 0; z-index: 2; max-width: 100%; margin: 0; padding: .15rem .45rem; font-size: .6875rem; line-height: 1.4; color: #fff; background: rgba(0, 0, 0, .7); }
.card-credit a { color: #fff; }
.card-credit a:hover { color: var(--amber); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.15rem; }
.card-kicker { display: flex; align-items: center; gap: .5em; margin: 0 0 .4em; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.card-title { font-size: 1.3rem; margin: 0 0 .35em; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.card-link:focus-visible { outline: none; }
.card-text { margin: 0 0 .9em; font-size: .98rem; color: var(--ink-2); }
.card-meta { display: flex; flex-wrap: wrap; gap: .3em 1em; margin: auto 0 0; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.card-meta span { display: inline-flex; align-items: center; gap: .3em; }
.route-flag { position: absolute; left: 0; top: 0; z-index: 2; padding: .35em .75em; background: var(--route, var(--ink)); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.strip { display: block; width: 100%; height: auto; margin: .1rem 0 .8rem; }
.card-compact .card-meta { gap: .2em .8em; }
@media (max-width: 599px) {
  .card-compact { flex-direction: row; }
  .card-compact .card-media { flex: none; width: 38%; max-width: 150px; aspect-ratio: auto; min-height: 112px; }
  .card-compact .card-body { padding: .75rem .85rem .8rem; }
  .card-compact .card-title { font-size: 1.15rem; }
  .card-compact .card-kicker { font-size: .7rem; flex-wrap: wrap; }
  .card-compact .card-credit { font-size: .625rem; padding: .1rem .3rem; }
}
.guide-card { border-top-color: var(--ink); }
.guide-card .card-body { padding: 1.3rem 1.3rem 1.4rem; }

/* ---------- map ---------- */
.map-card { margin: 0; }
.map-card figcaption { margin-top: .6rem; font-size: var(--step--1); color: var(--ink-2); }
.map-frame { overflow: auto; background: #e8edf0; border: 1px solid var(--line); border-top: 3px solid var(--ink); -webkit-overflow-scrolling: touch; }
.map-frame:focus-visible { outline-offset: 3px; }
.netmap { display: block; width: 100%; height: auto; font-family: var(--font); }
.map-frame-full { max-height: min(84vh, 1200px); }
.map-frame-full .netmap { min-width: 720px; max-width: 980px; margin-inline: auto; }
.map-frame-full.is-zoomed .netmap { max-width: none; }
.map-frame-teaser .netmap { max-height: 780px; }
.map-frame-route .netmap, .map-frame-region .netmap { min-width: 540px; }
.map-frame-route, .map-frame-region { max-height: 90vh; }
.m-sea { fill: #e8edf0; }
.m-land path { fill: #fff; stroke: #b9c0c6; stroke-width: .9; stroke-linejoin: round; }
.m-land .m-scotland { fill: #fafafa; }
.m-land .m-wales { fill: #f7f7f7; }
.m-country { font-size: 20px; font-weight: 700; letter-spacing: .45em; fill: #a9afb4; }
.m-lines path { fill: none; stroke: var(--ink); stroke-linecap: round; }
.m-trunk { stroke-width: 6.5; }
.m-main { stroke-width: 4.5; }
.m-branch { stroke-width: 3; }
.m-lines.is-muted path { stroke: #b8bcc0; }
.m-hl-casing { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.m-hl { fill: none; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.m-dot { fill: #fff; stroke: var(--ink); stroke-width: 2.2; }
.m-st.is-major .m-dot { stroke-width: 3; }
.m-st.is-mark .m-dot { fill: var(--red); stroke: var(--ink); stroke-width: 3; }
.m-st.is-call .m-dot { stroke-width: 3; }
.m-st text { fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3.6px; stroke-linejoin: round; }
.m-st.is-major text, .m-st.is-mark text { font-weight: 700; }
.m-st.is-mark text { fill: var(--red-dark); }
.m-st.is-muted text { fill: #62625f; font-weight: 600; }
.m-st.is-muted .m-dot { stroke: #a9adb1; }
.m-st:hover text, .m-st:focus text { fill: var(--red); text-decoration: underline; }
.m-st:hover .m-dot { fill: var(--red); }
.m-st:focus { outline: none; }
.m-st:focus-visible .m-dot { stroke: var(--focus); stroke-width: 4; }
.m-leader { stroke: #8c8c8a; stroke-width: 1; fill: none; }
.map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: .9rem; }
.map-zoom { display: flex; gap: .4rem; }
.map-regions { display: flex; flex-wrap: wrap; gap: .4rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1rem 0 .4rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.map-legend span { display: inline-flex; align-items: center; gap: .5em; }
.lg-trunk, .lg-main, .lg-branch { stroke: var(--ink); stroke-linecap: round; }
.lg-trunk { stroke-width: 6.5; }
.lg-main { stroke-width: 4.5; }
.lg-branch { stroke-width: 3; }
.lg-major { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.lg-stop { fill: #fff; stroke: var(--ink); stroke-width: 2.2; }
.route-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.5rem 2rem; margin-top: 1.4rem; }
.route-list h3 { font-size: 1.05rem; padding-top: .3rem; border-top: 5px solid var(--route); }
.route-list h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.route-list h3 a { color: var(--ink); }
.mini-line { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 4px solid var(--route); }
.mini-line li { position: relative; }
.mini-line li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #fff; border: 2px solid var(--route); }
.mini-line a { display: inline-flex; align-items: center; min-height: 44px; font-size: .98rem; }

/* ---------- region pills, type tiles ---------- */
.region-pills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.4rem; padding: 0; }
.region-pills a { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: 0 .95rem; background: #fff; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.region-pills a span { min-width: 1.7em; padding: .1em .45em; background: var(--red); color: #fff; font-size: .8em; text-align: center; }
.region-pills a:hover { background: var(--ink); color: #fff; }
.type-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .75rem; margin: 0; padding: 0; }
.type-tiles a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; min-height: 64px; padding: .7rem .9rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); color: var(--ink); font-weight: 700; text-decoration: none; }
.type-tiles a:hover { border-color: var(--ink); border-left-color: var(--red); background: var(--grey); }
.tt-icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--ink); color: #fff; }
.tt-icon .ico { width: 22px; height: 22px; }
.tt-count { font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- tips ---------- */
.tip { display: flex; flex-direction: column; padding: 1.2rem 1.2rem 1rem; background: #2a2a28; border-top: 3px solid var(--red); }
.tip h3 { font-size: 1.15rem; }
.tip p { font-size: .98rem; color: #dcdcdc; }
.tip-num { margin-bottom: .5rem; font-size: 1.6rem; font-weight: 700; line-height: 1; letter-spacing: .06em; color: var(--amber); font-variant-numeric: tabular-nums; }
.tip-links { display: flex; flex-wrap: wrap; gap: 0 1.1em; margin: auto 0 0; font-weight: 600; font-size: .95rem; }
.tip-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; margin: 2.5rem 0 1rem; background: var(--ink); color: #fff; border-left: 6px solid var(--red); --focus: var(--amber); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 14px, transparent 14px 28px); pointer-events: none; }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem 2rem; padding: clamp(1.3rem, 3vw, 2.2rem) clamp(1.1rem, 3vw, 2.4rem); }
.cta-title { color: #fff; font-size: var(--step-2); margin-bottom: .3em; }
.cta-inner p { margin: 0; max-width: 56ch; color: #dcdcdc; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (max-width: 599px) { .cta-actions .btn { flex: 1 1 auto; } }

/* ---------- layouts & panels ---------- */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-top: 1.6rem; }
@media (min-width: 1000px) { .layout-2 { grid-template-columns: minmax(0, 1fr) 330px; } }
.main-col > section, .main-col > details { margin-bottom: 2.6rem; }
.side-col { display: flex; flex-direction: column; gap: 1.2rem; }
.side-box { padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.side-box > :last-child { margin-bottom: 0; }
.side-tickets { border-top-color: var(--red); background: var(--grey); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; align-items: center; gap: .1em .4em; min-height: 44px; padding: .2rem 0; border-bottom: 1px solid var(--grey-2); }
.plain-list .swatch { margin-right: 0; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list a { display: inline-flex; align-items: center; min-height: 44px; }
.prose { max-width: 72ch; }
.prose a, .page-text a, .contact-card a { overflow-wrap: anywhere; }
.prose h3 { margin-top: 1.4em; }
.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding: .3rem 0 .3rem 1.7rem; }
.tick-list li::before { content: ""; position: absolute; left: .2rem; top: .78em; width: .7rem; height: .38rem; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.info-panel, .tips-panel, .notice { padding: 1.2rem 1.4rem .4rem; background: var(--grey); border-left: 4px solid var(--ink); }
.info-panel h2, .tips-panel h2, .notice h2 { display: flex; align-items: center; gap: .45em; font-size: var(--step-2); }
.tips-panel { border-left-color: var(--red); }
.tips-panel ul { padding-left: 1.2em; }
.tips-panel li { margin-bottom: .5em; }
.tips-panel li::marker { color: var(--red); }
.notice { margin: 1.6rem 0; }
.facts { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0 .4rem; }

/* ---------- station page ---------- */
.section-nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 12px -12px rgba(0, 0, 0, .35); }
.section-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0 auto; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.section-nav li { flex: none; }
@media (max-width: 1239px) { .section-nav ul { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-right: 40px; } }
.section-nav a { display: flex; align-items: center; min-height: 50px; padding: 0 .75rem; border-bottom: 3px solid transparent; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.section-nav a:hover { border-bottom-color: var(--line); color: var(--ink); }
.section-nav a[aria-current="true"] { border-bottom-color: var(--red); color: var(--red-dark); }
@media (min-width: 700px) { .section-nav { position: sticky; top: calc(var(--header-h) + 3px); z-index: 40; } }
@media (min-width: 1000px) { .section-nav a { padding: 0 .55rem; font-size: .92rem; } }
.station-page h2 .ico, .facts-panel h2 .ico { color: var(--red); }
.facts-panel { padding: 1.2rem 1.25rem .6rem; border: 1px solid var(--line); border-top: 3px solid var(--red); }
.facts-panel h2 { display: flex; align-items: center; gap: .45em; font-size: var(--step-2); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); column-gap: 1.5rem; margin: 0 0 1rem; }
.facts-grid > div { padding: .65rem 0; border-top: 1px solid var(--line); }
.facts-grid dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.facts-grid dd { margin: .15em 0 0; font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.facts-grid .fact-wide { grid-column: 1 / -1; }
.fact-note { font-size: .95rem; font-weight: 400; color: var(--ink-2); }
.fact-src { display: inline-flex; align-items: center; min-height: 44px; margin-left: .3em; font-size: .875rem; font-weight: 600; }
.dyk { margin-bottom: .9rem; padding: 1rem 1.1rem .3rem; background: var(--grey); border-left: 4px solid var(--red); }
.dyk h3 { font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-dark); }
.dyk ul { padding-left: 1.1em; }
.dyk li { margin-bottom: .5em; }
.dyk li::marker { color: var(--red); }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; margin: 0; padding: 0; }
.gallery figure { margin: 0; }
.gallery-link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-2); }
.gallery-link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-link:hover img { transform: scale(1.03); }
.gallery-zoom { position: absolute; right: .5rem; top: .5rem; display: grid; place-items: center; width: 32px; height: 32px; background: rgba(0, 0, 0, .65); color: #fff; }
.gallery figcaption { padding-top: .45rem; font-size: .85rem; line-height: 1.4; color: var(--ink-2); }
.gallery-cap { display: block; margin-bottom: .1rem; font-weight: 600; color: var(--ink); }
.credit a { color: inherit; }
.credit a:hover { color: var(--red); }
.arrive-lead { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; background: var(--grey); border-left: 4px solid var(--ink); font-size: 1.08rem; }
.arrive-lead .ico { width: 1.5rem; height: 1.5rem; margin-top: .1rem; color: var(--red); }
.fac-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); gap: .6rem; margin: 0 0 .9rem; padding: 0; }
.fac-grid li { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem .8rem; background: var(--grey); }
.fac-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.fac-icon .ico { width: 24px; height: 24px; }
.fac-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.fac-text span { font-size: .92rem; color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.5rem 2.3rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: .2rem; width: 18px; height: 18px; background: #fff; border: 4px solid var(--red); border-radius: 50%; }
.timeline li::after { content: ""; position: absolute; left: 11.5px; top: 1.45rem; bottom: .15rem; width: 3px; background: var(--red); }
.timeline li:last-child { padding-bottom: .2rem; }
.timeline li:last-child::after { content: none; }
.tl-when { display: inline-block; margin: 0 0 .35rem; padding: .15em .6em; background: var(--board); color: var(--amber); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tl-title { margin: 0 0 .25em; font-size: 1.2rem; }
.timeline p { max-width: 64ch; }
.tl-link { margin-top: -.4rem; }
.tl-link a { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font-weight: 600; }
.eat-grid, .trip-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin: 0; padding: 0; }
.eat-card { display: flex; gap: .9rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); }
.eat-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--red); color: #fff; }
.eat-icon .ico { width: 24px; height: 24px; }
.eat-card > div { min-width: 0; display: flex; flex-direction: column; }
.eat-type { margin: 0 0 .2em; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-dark); }
.eat-card h3, .trip-card h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.eat-card p, .trip-card p { font-size: .96rem; }
.eat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1em; margin: auto 0 0; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.eat-meta span, .eat-meta a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.trip-card { padding: 1rem 1.1rem .4rem; background: var(--grey); border-top: 3px solid var(--ink); }
.trip-how { display: flex; gap: .45em; align-items: baseline; font-weight: 600; font-size: .92rem; }
.trip-how .ico { color: var(--red); }
.event-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .8rem; }
.event-list li { padding: .9rem 1.1rem .3rem; border: 1px solid var(--line); border-left: 4px solid var(--red); }
.event-when { display: inline-flex; align-items: center; gap: .4em; margin: 0 0 .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); }
.event-list h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.event-link a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; font-weight: 600; }
.stay-panel { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding: 1.3rem 1.4rem; background: var(--grey); border-left: 4px solid var(--ink); }
.stay-panel h2 { display: flex; align-items: center; gap: .4em; font-size: var(--step-2); }
.stay-panel p { max-width: 56ch; margin: 0; }
.faq details { margin-bottom: .6rem; background: #fff; border: 1px solid var(--line); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 52px; padding: .6rem 3rem .6rem 1rem; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details[open] summary { border-bottom: 1px solid var(--grey-2); }
.faq details > p { padding: .8rem 1rem .2rem; margin: 0 0 .6rem; }
.link-row { margin-top: .6rem; }
.sources { margin-top: 1rem; padding-top: .3rem; border-top: 1px solid var(--line); font-size: .9rem; }
.sources summary { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.sources ul { columns: 2 280px; column-gap: 2rem; padding-left: 1.1em; color: var(--ink-2); word-break: break-word; }

/* ---------- highlight cards ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.hl-grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.hl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); }
.hl-card[hidden] { display: none; }
.hl-card:target { outline: 3px solid var(--red); outline-offset: 2px; }
.hl-media { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-2); }
.hl-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hl-inner { display: flex; gap: .9rem; flex: 1; padding: 1rem 1rem .75rem; }
.hl-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; background: var(--ink); color: #fff; }
.hl-icon .ico { width: 22px; height: 22px; }
.has-photo .hl-icon { position: relative; z-index: 3; margin-top: -1.9rem; box-shadow: 0 0 0 3px #fff; }
.hl-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hl-type { margin: 0 0 .25em; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hl-type a { color: var(--red-dark); text-decoration: none; }
.hl-type a:hover { text-decoration: underline; }
.hl-title { margin: 0 0 .4em; font-size: 1.15rem; }
.hl-body p { font-size: .96rem; }
.hl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1em; margin: auto 0 0; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.hl-meta span, .hl-meta a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.hl-meta span { min-height: 32px; }
.hl-ext { margin-left: auto; }
.along-list { list-style: none; margin: 0; padding: 0; counter-reset: along; }
.along-list li { position: relative; padding: 0 0 1.2rem 3.2rem; counter-increment: along; }
.along-list li::before { content: counter(along, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; background: var(--board); color: var(--amber); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.along-list li::after { content: ""; position: absolute; left: 1.1rem; top: 2.5rem; bottom: .2rem; width: 2px; background: var(--line); }
.along-list li:last-child::after { display: none; }
.along-list h3 { margin-bottom: .3em; }
.station-hls { margin-bottom: .8rem; padding: 0 1rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); }
.station-hls summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 52px; font-weight: 700; font-size: 1.12rem; cursor: pointer; }
.station-hls .count { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.station-hls[open] summary { border-bottom: 1px solid var(--grey-2); margin-bottom: 1rem; }

/* ---------- route page ---------- */
.line-diagram { padding: 1.1rem 1.2rem .6rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--route, var(--ink)); }
.line-diagram h2 { font-size: 1.15rem; }
.line-diagram ol { list-style: none; margin: 0; padding: 0; }
.line-diagram li { position: relative; padding: 0 0 .35rem 2rem; }
.line-diagram li::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 6px; background: var(--route); }
.line-diagram li:first-child::before { top: 1rem; }
.line-diagram li:last-child::before { bottom: calc(100% - 1rem); }
.line-diagram li::after { content: ""; position: absolute; left: 4px; top: .6rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--route); }
.line-diagram li.is-end::after { left: 1px; top: .45rem; width: 20px; height: 20px; border-width: 4px; }
.line-diagram a { display: block; min-height: 44px; padding-block: .2rem; text-decoration: none; color: var(--ink); }
.ld-name { display: block; font-weight: 700; }
.line-diagram li.is-end .ld-name { font-size: 1.1rem; }
.ld-meta { display: block; font-size: .8rem; color: var(--ink-2); }
.line-diagram a:hover .ld-name { color: var(--red); text-decoration: underline; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .96rem; }
.data-table caption { padding: .9rem 1rem .3rem; text-align: left; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.data-table th, .data-table td { padding: .7rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.data-table thead th { background: var(--grey); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.data-table tbody th { font-weight: 700; white-space: nowrap; }
.td-wrap { min-width: 240px; }

/* ---------- lists & filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; padding-block: .2rem 1rem; }
.search-field { display: flex; align-items: center; gap: .5rem; flex: 1 1 320px; min-height: 50px; padding: 0 .3rem 0 1rem; background: #fff; border: 2px solid var(--ink); color: var(--ink); }
.search-field input { flex: 1; min-width: 0; min-height: 46px; padding: .5rem .4rem; border: 0; background: transparent; font: 1.0625rem var(--font); color: var(--ink); }
.search-field input:focus { outline: none; }
.search-field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-count { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.letters { display: flex; flex-wrap: wrap; gap: .3rem; padding-block: .2rem 1rem; }
.letters a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .5rem; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.letters a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.letter-group { margin-bottom: 2rem; }
.letter-group[hidden] { display: none; }
.letter { padding-bottom: .15em; border-bottom: 3px solid var(--ink); font-size: 2rem; color: var(--red); }
.card[hidden] { display: none; }
.region-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1.4rem 2rem; }
.region-columns h3 { padding-bottom: .3em; border-bottom: 3px solid var(--red); font-size: 1.1rem; }
.region-columns h3 a { color: var(--ink); text-decoration: none; }
.region-columns h3 a:hover { color: var(--red); text-decoration: underline; }
.empty-note { padding: 1rem; background: var(--grey); border-left: 4px solid var(--ink); }
.type-nav { display: flex; flex-wrap: wrap; gap: .45rem; padding-bottom: 1rem; }

/* ---------- guides ---------- */
.guide-list { display: grid; gap: 1rem; }
.guide-row { display: flex; gap: 1.1rem; padding: 1.3rem 1.4rem .6rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); }
.guide-row h2 { margin-bottom: .3em; font-size: var(--step-2); }
.guide-row h2 a { color: var(--ink); text-decoration: none; }
.guide-row h2 a:hover { color: var(--red); text-decoration: underline; }
.guide-icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; background: var(--ink); color: #fff; }
.guide-icon .ico { width: 26px; height: 26px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { padding: .1rem 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- photo credits ---------- */
.credits-page .prose { margin-bottom: 1.5rem; }
.credits-summary { font-weight: 600; color: var(--ink-2); }
.credits-jump a { min-width: 0; padding: 0 .75rem; font-weight: 600; font-size: .95rem; }
.credit-group { margin-bottom: 2.2rem; }
.credit-group h2 { padding-bottom: .25em; border-bottom: 3px solid var(--ink); font-size: var(--step-2); }
.credit-group h2 a { color: var(--ink); text-decoration: none; }
.credit-group h2 a:hover { color: var(--red); text-decoration: underline; }
.credit-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1rem; margin: 0; padding: 0; }
.credit-item { display: flex; gap: 1rem; padding: .75rem; border: 1px solid var(--line); border-top: 3px solid var(--red); }
.credit-thumb { flex: none; width: clamp(96px, 28vw, 150px); }
.credit-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--grey-2); }
.credit-body { min-width: 0; font-size: .92rem; line-height: 1.45; }
.credit-body p { margin: 0 0 .35rem; }
.credit-cap { font-weight: 700; color: var(--ink); }
.credit-where { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.credit-file { overflow-wrap: anywhere; color: var(--ink-2); }
.credit-line .credit a, .credit-file a { color: var(--red); }

/* ---------- plain pages ---------- */
.page-text { padding-block: 1.6rem 2rem; }
.contact-card { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.2rem; border: 2px solid var(--ink); border-left: 6px solid var(--red); font-size: 1.3rem; font-weight: 700; word-break: break-word; }
.notfound h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); }
.page-text .hero-actions, .notfound .hero-actions { margin-bottom: 2rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 3rem; background: var(--ink); color: #cfcfcf; border-top: 4px solid var(--red); --focus: var(--amber); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem 2rem; padding-block: 2.6rem 1.4rem; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
.footer-h { margin-bottom: .4rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #bdbdbd; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.brand-footer { margin-bottom: 1rem; }
.brand-footer .brand-sub { display: block; }
.disclaimer { padding: .85rem 1rem; background: rgba(255, 255, 255, .05); border-left: 4px solid var(--red); color: #f2f2f2; }
.site-footer .small { color: #bdbdbd; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; padding-block: 1.1rem 1.6rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.footer-base p { margin: 0; }
.footer-base a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- lightbox ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 8, .97); color: #fff; --focus: var(--amber); }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
html.lb-open { overflow: hidden; }
.lb-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem; }
.lb-count { margin: 0; padding-left: .5rem; color: var(--amber); font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lb-tools { display: flex; gap: .4rem; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-btn[disabled] { opacity: .35; cursor: default; }
.lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 .5rem; }
.lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-caption { max-width: 900px; margin: 0 auto; padding: .7rem 1rem 1rem; font-size: .95rem; line-height: 1.45; text-align: center; color: #e6e6e6; }
.lb-caption .gallery-cap { color: #fff; }
.lb-caption a { color: #fff; }
.lb-caption a:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover, .gallery-link:hover img { transform: none; }
}
@media print {
  .site-header, .indie-bar, .site-footer .footer-grid nav, .cta-band, .map-tools, .filter-bar, .section-nav, .hero-media { display: none !important; }
  .hero { min-height: 0; background: #fff; color: #000; }
  .hero h1, .hero-lead, .hero a:not(.btn) { color: #000; text-shadow: none; }
  body { background: #fff; }
}

/* Highlighted guide section (e.g. the LNER Perks referral post) */
.guide-callout { margin: 1.5rem 0 2rem; padding: 1.25rem 1.4rem 1.4rem; background: var(--grey); border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.guide-callout h2 { margin-top: 0; }
.guide-callout .callout-action { margin: 1.1rem 0 0; }
@media (max-width: 480px) { .guide-callout { padding: 1rem; } .guide-callout .btn { width: 100%; justify-content: center; } }

/* Hotel links in "Where to stay" (one button per booking site, from data/hotels.json) */
.hotel-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.hotel-links .btn { min-height: 44px; }
@media (max-width: 480px) { .hotel-links, .hotel-links li, .hotel-links .btn { width: 100%; } .hotel-links .btn { justify-content: center; } }
