/* ScotSafe Transport website
   Colours, type and components follow the ScotSafe Transport brand guidelines v1.0
   (ink and teal, "The route" logo chosen 21 October 2026) and the Claude Design files
   in "Design from Claude Design". */

:root {
  /* Ink: text, headings, the primary button and the one dark band per page */
  --ink: #101820;
  --ink-hover: #1E2A36;
  --ink-deep: #0A1016;
  --ink-muted: #5C6670;
  /* Teal is the young person half of the symbol: rules, graphics, type 24px and larger,
     and anything on ink. Smaller teal type on light backgrounds uses --teal-text. */
  --teal: #4AACB8;
  --teal-deep: #1A6570;
  --teal-text: #1F7480;
  --teal-soft: #E3F3F4;
  --surface: #F4F5F6;
  --surface-sunk: #EBEEF1;
  --white: #FFFFFF;
  --line: #D7DCE1;
  --control: #8A939C;
  --error: #B42318;
  --error-soft: #FDECEA;
  --amber: #9A5208;
  --amber-soft: #FBF1E4;
  --info: #3A4652;
  --info-soft: #EBEEF1;
  --plate: #FFD400;

  --font-head: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans 3 Fallback", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3.34vw, 48px);
  --section-gap: clamp(48px, 6.67vw, 96px);
  --stack-gap: clamp(24px, 3.34vw, 48px);
  --col-gap: clamp(32px, 4.44vw, 64px);
  --panel-pad: clamp(32px, 4.44vw, 64px);
  --max: 1200px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(3, 45, 92, 0.06), 0 4px 16px rgba(3, 45, 92, 0.06);
  --focus: 2px solid var(--teal-deep);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: var(--focus); outline-offset: 2px; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.mono { font-family: var(--font-mono); font-weight: 500; }
.nowrap { white-space: nowrap; }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-text);
}
.on-ink .eyebrow, .eyebrow--teal { color: var(--teal); }

.display {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(38px, 4.3vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
/* The home H1 says what we do in search terms, so it is longer than a slogan */
.display--topic { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.08; }

.h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 2.78vw, 40px);
  line-height: 1.17;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}

.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 2.08vw, 30px);
  line-height: 1.22;
  color: var(--ink);
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 1.53vw, 22px);
  line-height: 1.28;
  color: var(--ink);
}

.h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: var(--ink);
}

.on-ink .display, .on-ink .h1, .on-ink .h2, .on-ink .h3, .on-ink .h4 { color: var(--white); }

.lead {
  font-size: clamp(18px, 1.32vw, 19px);
  line-height: 1.58;
  max-width: 65ch;
  text-wrap: pretty;
}
.on-ink .lead { color: rgba(255, 255, 255, 0.88); }

.body { font-size: 16px; line-height: 26px; max-width: 65ch; text-wrap: pretty; }
.on-ink .body { color: rgba(255, 255, 255, 0.88); }

.small { font-size: 14px; line-height: 20px; color: var(--ink-muted); max-width: 65ch; }
.on-ink .small { color: rgba(255, 255, 255, 0.8); }

.label { font-weight: 600; font-size: 15px; line-height: 20px; }
.data { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 20px; }

.prose { display: flex; flex-direction: column; gap: 16px; }
.prose > p, .prose > ul, .prose > ol { max-width: 65ch; text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--teal-deep); }

/* ---------- Layout ---------- */

.section { padding: var(--section-gap) var(--gutter) 0; }
.section--last { padding-bottom: var(--section-gap); }
.section--white { background: var(--white); }
.section--flush { padding-top: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 8px; }
.stack--md { gap: 20px; }
.stack--lg { gap: 24px; }
.stack--xl { gap: 32px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--col-gap);
  align-items: center;
}
.split--top { align-items: start; }
.split--340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; }
.split--380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* A paragraph with a short fact card beside it, so no section is a lone block of text */
.split--aside { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 48px; align-items: start; }
.split--center { align-items: center; }
@media (max-width: 860px) { .split--aside { grid-template-columns: 1fr; gap: 24px; } }
.aside-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside-card__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 24px; color: var(--ink); margin: 0; }
.aside-card .tick-list { font-size: 16px; line-height: 24px; color: var(--ink); }
.aside-card ol.tick-list { counter-reset: aside; }
.aside-card ol.tick-list li { counter-increment: aside; }
.aside-card ol.tick-list li::before {
  content: counter(aside, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 14px; line-height: 24px; color: var(--teal-text); flex: none; min-width: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr));
  gap: var(--gap, 24px);
}
.grid--240 { --min: 240px; }
.grid--260 { --min: 260px; }
.grid--280 { --min: 280px; }
.grid--320 { --min: 320px; }
.grid--gap-32 { --gap: 32px; }
.grid--gap-12 { --gap: 12px; }

.list-reset { list-style: none; margin: 0; padding: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions--center { justify-content: center; }

.max-28 { max-width: 28ch; }
.max-30 { max-width: 30ch; }
.max-560 { max-width: 560px; }
.max-600 { max-width: 600px; }
.max-760 { max-width: 760px; }
.max-860 { max-width: 860px; }
.center { text-align: center; align-items: center; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.self-start { align-self: flex-start; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { flex: none; }
.btn:focus-visible { outline: var(--focus); outline-offset: 2px; }

.btn--lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink-hover); color: var(--white); }

.btn--secondary { background: transparent; color: var(--ink); border: 2px solid var(--control); }
.btn--secondary:hover { background: var(--surface-sunk); color: var(--ink); }

.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--teal-soft); color: var(--ink); }
.btn--white:focus-visible, .btn--ghost-white:focus-visible { outline-color: var(--teal); }

.btn--ghost-white { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.7); }
.btn--ghost-white:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: var(--white); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  font-size: 16px;
  color: var(--teal-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  align-self: flex-start;
}
.text-link:hover { color: var(--ink); }
.on-ink .text-link { color: var(--teal); }
.on-ink .text-link:hover { color: var(--white); }

/* ---------- Icons ---------- */

.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--teal-deep { color: var(--teal-deep); }
.icon--teal-text { color: var(--teal-text); }
.icon--teal { color: var(--teal); }
.icon--ink { color: var(--ink); }

.icon-tile {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-text);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--gutter);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* One line logo at 28px tall, as the brand guidelines ask for the website header */
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 28px; width: auto; }
.brand__icon { display: none; }

.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.main-nav__link {
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.main-nav__link:hover { color: var(--teal-text); }
/* Five links: closer together where the header is narrow, never wrapping */
.main-nav__link { white-space: nowrap; }
@media (max-width: 1120px) {
  .main-nav { gap: 20px; }
  .header-actions { margin-left: 20px; }
}
.main-nav__link[aria-current="page"] { border-bottom-color: var(--teal-deep); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: 32px; }

/* The phone number in the header on every page. Icon only where the number will not fit. */
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 8px;
  color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none;
  border-radius: var(--radius-sm);
}
.header-phone .icon { color: var(--teal-deep); }
.header-phone:hover { color: var(--teal-text); }
@media (max-width: 1180px) and (min-width: 961px), (max-width: 640px) {
  .header-phone { border: 2px solid var(--control); padding: 0; width: 44px; }
  .header-phone__num { display: none; }
}

.menu-button {
  width: 44px; height: 44px;
  display: none; align-items: center; justify-content: center;
  background: transparent;
  border: 2px solid var(--control);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: 73px 0 0 0;
  z-index: 29;
  background: var(--white);
  overflow-y: auto;
  padding: 8px var(--gutter) 32px;
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.mobile-menu a[aria-current="page"] { color: var(--teal-text); }
.mobile-menu__contact { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-button { display: flex; }
}
/* Phones: the one line logo at 22px tall (186px wide, above its 160px minimum), and the
   header button shortened to "Book" where "Book a journey" will not fit beside it */
@media (max-width: 520px) {
  .brand img.brand__logo { height: 22px; }
  .site-header__inner { gap: 12px; }
}
@media (max-width: 440px) {
  .header-actions .btn { padding: 0 14px; }
  .btn__more { display: none; }
}
/* Below the one line logo's 160px minimum, use the icon */
@media (max-width: 359px) {
  .brand__logo { display: none; }
  .brand__icon { display: block; width: 32px; height: 32px; }
}

/* ---------- Heroes ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 0 var(--gutter);
  color: var(--white);
}
.hero__road {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(46%, 520px);
  opacity: 0.28;
  pointer-events: none;
}
.road { stroke: var(--teal); }
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: clamp(240px, 22.2vw, 320px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 48px 0;
}

/* Home hero: the route fades in from behind the copy */
.hero--home .hero__road { width: 58%; opacity: 1; }
.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 48%, rgba(16, 24, 32, 0) 72%);
  pointer-events: none;
}
.hero--home .hero__inner { z-index: 1; }
.hero--home .hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--col-gap);
  align-items: center;
  min-height: 0;
  padding: clamp(40px, 4.44vw, 72px) 0 clamp(40px, 4.44vw, 80px);
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 600px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; line-height: 20px; color: var(--white); }
.ticks .icon { color: var(--teal); }
.hero__phone-actions { display: none; }

@media (max-width: 899px) {
  .hero--home .hero__road { width: 100%; opacity: 0.35; }
  .hero--home::after { display: none; }
  .hero--home .quick-start { display: none; }
  .hero__phone-actions { display: flex; }
}

/* Breadcrumbs, in the hero of pages two levels down */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.crumbs a { color: var(--teal); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs a[aria-current="page"] { color: rgba(255, 255, 255, 0.8); }
.crumbs a:focus-visible { outline-color: var(--teal); }

/* ---------- Cards and panels ---------- */

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card::before { content: ""; display: block; flex: none; width: 32px; height: 3px; border-radius: 2px; background: var(--teal); }
.card--24 { padding: 24px; }
.card--lg { border-radius: var(--radius-lg); padding: 32px; gap: 20px; }

.panel { border-radius: var(--radius-lg); padding: var(--panel-pad); position: relative; overflow: hidden; }
.panel--white { background: var(--white); box-shadow: var(--shadow); }
.panel--teal { background: var(--teal-soft); }
.panel--ink { background: var(--ink); color: var(--white); }
.panel--sunk { background: var(--surface-sunk); }
.panel > * { position: relative; }
.panel > .watermark, .panel > .panel__road { position: absolute; }

.watermark {
  position: absolute;
  right: -42px;
  bottom: -57px;
  width: 260px;
  opacity: 0.14;
  pointer-events: none;
}
.watermark--sm { right: -32px; bottom: -44px; width: 200px; }

.panel__road {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(46%, 520px);
  opacity: 0.3;
  pointer-events: none;
}

.big-number {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.big-number > *:not(.watermark) { position: relative; }
.big-number__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(72px, 6.67vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bands { display: flex; flex-direction: column; }
.bands span { height: 6px; }
.bands span:nth-child(1) { background: var(--ink); }
.bands span:nth-child(2) { background: var(--teal-deep); }
.bands span:nth-child(3) { background: var(--teal); }

/* Fact card on the home page: teal rule, one big word or number, an icon, then the text */
.fact-card { border: 1px solid var(--line); box-shadow: none; position: relative; overflow: hidden; }
.fact-card__rule { display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--teal); }
.fact-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fact-card__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--teal-text);
}
.fact-card__top .icon { color: var(--ink); }

/* UK number plate in the example email */
.plate {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--plate);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 2px 8px;
  vertical-align: middle;
}
.bands--8 span { height: 8px; }
.bands--rounded { border-radius: var(--radius-sm); overflow: hidden; max-width: 480px; }

/* ---------- Quotes ---------- */

.quote {
  border-top: 3px solid var(--teal-deep);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
}
.quote blockquote {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 1.81vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: pretty;
}
.quote--lg blockquote { font-size: clamp(24px, 2.08vw, 30px); }
.quote figcaption { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.on-ink .quote blockquote { color: var(--white); }
.on-ink .quote figcaption { color: rgba(255, 255, 255, 0.8); }

/* ---------- Steps ---------- */

.step-num {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  color: var(--teal-text);
}

.steps-row {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
}
.steps-row > li { display: flex; flex-direction: column; gap: 16px; }
.steps-row__top { display: flex; align-items: center; gap: 12px; }
.steps-row__line { flex: 1; height: 2px; background: var(--line); }
.steps-row > li:last-child .steps-row__line { background: transparent; }
.steps-row__when { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 20px; color: var(--teal-text); }

.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.steps-list > li { display: flex; gap: 16px; align-items: flex-start; }
.steps-list__body { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; min-width: 0; }

/* ---------- At a glance strip ---------- */

.glance { background: var(--white); border-bottom: 1px solid var(--line); padding: 0 var(--gutter); }
.glance ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.glance li { display: flex; gap: 14px; align-items: flex-start; padding: 24px; border-left: 1px solid var(--line); }
.glance li:first-child { padding-left: 0; border-left: 0; }
.glance .icon { color: var(--teal-deep); margin-top: 2px; }
.glance__title { display: block; font-weight: 600; font-size: 16px; line-height: 22px; color: var(--ink); }
.glance__text { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

@media (max-width: 1080px) {
  .glance ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance li:nth-child(3) { padding-left: 0; border-left: 0; }
  .glance li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .glance ul { grid-template-columns: 1fr; }
  .glance li { padding: 18px 0; border-left: 0; }
  .glance li + li { border-top: 1px solid var(--line); }
}

/* ---------- Chips and lists ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip--confirmed { background: var(--teal-soft); color: var(--teal-text); }
.chip--confirmed::before { background: var(--teal-deep); }
.chip--attention { background: var(--amber-soft); color: var(--amber); }
.chip--requested { background: var(--info-soft); color: var(--info); }
.chip--requested::before { background: transparent; border: 1.5px solid currentColor; }
.chip--progress { background: var(--info-soft); color: var(--info); }

.tick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list .icon { color: var(--teal-deep); margin-top: 4px; }

.check-tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.check-tiles li {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600; font-size: 15px; line-height: 20px;
  color: var(--white);
}
.check-tiles .icon { color: var(--teal); }
@media (max-width: 480px) { .check-tiles { grid-template-columns: 1fr; } }

/* Confirmation email example on the home page */
.email-example {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
  width: 100%;
}
.email-example__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.people { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.people li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
}
.people__icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-sunk); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 15px;
  line-height: 22px;
}
.facts dt { color: var(--ink-muted); }
.facts .mono { font-size: 15px; }

/* Definition table used on councils, privacy, etc. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
  background: var(--white);
}
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; color: var(--ink); background: var(--surface-sunk); }

/* ---------- Pre-launch notes (only shown when config show_confirm_notes is on) ---------- */

.confirm-note {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  vertical-align: middle;
  display: inline-block;
}

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 32px; }
.form--tight { gap: 20px; }

.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fieldset + .fieldset { padding-top: 32px; border-top: 1px solid var(--line); }
.fieldset > legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 1.53vw, 22px);
  line-height: 1.28;
  color: var(--ink);
}
.fieldset > legend + * { clear: both; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px; }
.field-row--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.field__label { font-weight: 600; font-size: 15px; line-height: 20px; color: var(--ink); }
.field__optional { font-weight: 400; color: var(--ink-muted); }
.age-box { margin: 0; padding: 8px 12px; border-radius: var(--radius); background: var(--surface-sunk); font-weight: 600; width: fit-content; }
.field__help { font-size: 14px; line-height: 20px; color: var(--ink-muted); max-width: 65ch; }
.field__error { font-size: 14px; line-height: 20px; color: var(--error); font-weight: 600; max-width: 65ch; }

.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--control);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
}
.textarea { min-height: 112px; padding: 10px 12px; line-height: 24px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: var(--focus); outline-offset: 2px; }
.field--error .input, .field--error .select, .field--error .textarea, .field--error .file-drop { border: 2px solid var(--error); }
input[type="date"].input, input[type="time"].input { appearance: none; -webkit-appearance: none; line-height: 40px; }

.select-wrap { position: relative; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.select-wrap .icon { position: absolute; right: 12px; top: 12px; pointer-events: none; color: var(--ink); }

.choices-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices-field > legend { padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.choices-field > legend + * { clear: both; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 6px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--control);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
}
.choice:hover { background: var(--surface); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.choice:has(input:focus-visible) { outline: var(--focus); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.field--error .choice { border-color: var(--error); }

.declaration {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--control);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  max-width: 70ch;
}
.declaration input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.declaration:has(input:focus-visible) { outline: var(--focus); outline-offset: 2px; }
.declaration:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.field--error .declaration { border: 2px solid var(--error); }

.file-drop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1.5px dashed var(--control);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}
.file-drop:hover, .file-drop.is-dragover { background: var(--surface); }
.file-drop__cta { font-weight: 600; font-size: 15px; color: var(--ink); }
.file-drop__hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.file-drop__name { flex-basis: 100%; font-size: 14px; line-height: 20px; color: var(--teal-text); font-weight: 600; word-break: break-all; }
.file-drop__name:empty { display: none; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-input:focus-visible + .file-drop { outline: var(--focus); outline-offset: 2px; }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error-summary {
  border: 2px solid var(--error);
  border-radius: var(--radius);
  background: var(--error-soft);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.error-summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }
.error-summary__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 24px; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; }
.error-summary a { color: var(--error); font-weight: 600; }

.form-footer { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding-top: 24px; border-top: 1px solid var(--line); }
.form-footer--plain { padding-top: 0; border-top: 0; }
@media (max-width: 600px) { .form-footer .btn { width: 100%; } }

.success-panel {
  background: var(--teal-soft);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--teal-deep);
  padding: clamp(28px, 3.34vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.success-panel:focus { outline: var(--focus); outline-offset: 2px; }
.success-panel .reference {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.success-panel .reference .mono { font-size: 22px; line-height: 28px; color: var(--ink); }
.success-panel .reference .small { color: var(--ink-muted); }

.notice {
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
}

/* Quick start booking card on the home hero */
.quick-start {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--ink);
}
.quick-start__phone { display: flex; align-items: center; gap: 8px; }
.on-ink .quick-start .h3 { color: var(--ink); }
.on-ink .quick-start .small { color: var(--ink-muted); }
.quick-start__phone .icon { color: var(--teal-text); }

/* Turnstile widget spacing */
.cf-turnstile { min-height: 65px; }

/* ---------- Book a journey layout ---------- */

.booking-layout {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(24px, 4.44vw, 64px);
  align-items: flex-start;
}
.booking-aside { flex: 1 1 300px; max-width: 100%; min-width: 0; }
.booking-main { flex: 0 1 680px; max-width: 680px; width: 100%; min-width: 0; }
.booking-aside__desktop { max-width: 400px; display: flex; flex-direction: column; }
.booking-aside__mobile { display: none; }
.help-block { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); }
.help-block ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 65ch; }
.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(24px, 1.95vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.big-phone:hover { color: var(--teal-text); }
.big-phone .icon { color: var(--teal-deep); }
.urgent-box { background: var(--teal-soft); border-radius: var(--radius); padding: 16px; flex-direction: column; gap: 4px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.78vw, 40px);
}
@media (max-width: 899px) {
  .booking-aside__desktop { display: none; }
  .booking-aside__mobile { display: flex; }
}

.contact-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--col-gap);
  align-items: flex-start;
}
.contact-layout > form { flex: 0 1 680px; width: 100%; min-width: 0; }
.contact-layout__aside { flex: 1 1 300px; max-width: 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.contact-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 40px; }
.contact-list .mono { font-size: 16px; }
.contact-list .icon { color: var(--teal-deep); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-deep); color: var(--white); }
.site-footer__inner { padding: clamp(48px, 4.44vw, 64px) var(--gutter) 32px; }
.site-footer__wrap { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 20px; }
.site-footer__brand img { width: 168px; }
.site-footer__tagline { font-size: 16px; line-height: 26px; color: var(--teal); max-width: 28ch; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.site-footer .eyebrow { color: var(--teal); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--teal); }
.footer-contact { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 16px; }
.footer-contact .icon { color: var(--teal); }
.footer-contact.mono { font-size: 15px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: 16px; }
.site-footer__legal { font-size: 14px; line-height: 20px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.site-footer__legal p { margin: 0; }
.site-footer__credit { color: rgba(255, 255, 255, 0.72); }
.site-footer .site-footer__credit a { color: inherit; }


/* Sticky phone call bar (small screens) */
.call-bar { display: none; }
@media (max-width: 899px) {
  .call-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .call-bar .btn { padding: 0 12px; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .call-bar, .mobile-menu, .site-footer, .hero__road, .watermark { display: none !important; }
  .hero { background: none; color: var(--ink); }
  .on-ink .h1, .on-ink .display, .on-ink .lead { color: var(--ink); }
}

/* Links inside ink heroes */
.hero .lead a { color: var(--white); }
.hero .lead a:hover { color: var(--teal); }
.hero a:focus-visible { outline-color: var(--teal); }
.card--24 { gap: 8px; }
.apply-form { max-width: 680px; width: 100%; }

/* Tap targets: grow the hit area of small links to at least 44px tall without moving the layout */
.brand,
.site-footer a,
.contact-list a,
.quick-start__phone a { position: relative; }
.brand::after,
.site-footer a::after,
.contact-list a::after,
.quick-start__phone a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

/* Contact page: three routes in */
.contact-route { gap: 10px; }
.contact-route .h3 { margin-top: 4px; }
.contact-route .text-link { margin-top: auto; }

/* Check tiles on a light (teal) panel */
.panel--teal .check-tiles li { background: var(--white); border-color: var(--line); color: var(--ink); }
.panel--teal .check-tiles .icon { color: var(--teal-deep); }

/* Booking form: step marker on each section. The help column stays in view only once it sits beside
   the form (below about 1120px it wraps above the form, and pinning it there would cover the form). */
.legend-step { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 18px; letter-spacing: 0.04em; color: var(--teal-text); }
@media (min-width: 1120px) and (min-height: 760px) {
  .booking-aside { position: sticky; top: 96px; }
}
.contact-routes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Team photos: full grid on Our approach, overlapping faces elsewhere */
/* Seven across (three on phones). A short last row is centred rather than left hanging. */
.team-grid { --cols: 7; --gap: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-top: 32px; }
@media (max-width: 700px) { .team-grid { --cols: 3; } }
.team-grid li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-sunk); }
.team-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 480px) { .team-grid { --gap: 8px; } }
.team-intro { max-width: 720px; }

.team-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.team-stack__faces { display: flex; }
.team-stack__faces img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); }
.team-stack__faces img + img { margin-left: -12px; }
.team-stack .text-link { align-self: center; }

/* ---------- Search pages: link cards, FAQ, "what we are not", guides ---------- */

/* A card that is one link: the heading's link stretches over the whole card */
.link-card { position: relative; transition: box-shadow 0.15s ease; }
.link-card:hover { box-shadow: 0 1px 2px rgba(3, 45, 92, 0.08), 0 8px 24px rgba(3, 45, 92, 0.12); }
.link-card a { color: var(--ink); text-decoration: none; }
.link-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.link-card a:focus-visible { outline: none; }
.link-card:has(a:focus-visible) { outline: var(--focus); outline-offset: 2px; }
.link-card:hover a { color: var(--teal-text); }
.link-card .body { color: var(--ink-muted); }
.link-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 15px; color: var(--teal-text); }

.faq { display: flex; flex-direction: column; gap: 24px; max-width: 860px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item .body > * + * { margin-top: 8px; }

.not-block { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.not-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px 24px; }
.not-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 24px; color: var(--ink); }
.not-list .icon { color: var(--error); flex: none; margin-top: 3px; }

.byline { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.on-ink .byline { color: rgba(255, 255, 255, 0.8); }
.on-ink .byline a { color: var(--teal); }

/* Long form pages (guides, journey detail, regions): one reading column with an aside */
.prose > h2 { margin-top: 24px; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 8px; }
.prose a { color: var(--teal-text); }
.prose .table-wrap { max-width: 100%; }

/* Plain text list of councils on /areas */
.council-list { columns: 3 220px; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
.council-list li { break-inside: avoid; padding: 6px 0; font-size: 16px; line-height: 24px; }
.council-list a { color: var(--teal-text); }

/* Glossary */
.glossary { display: flex; flex-direction: column; max-width: 860px; }
.glossary__term { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 96px; }
.glossary__term:target { background: var(--teal-soft); box-shadow: 0 0 0 12px var(--teal-soft); border-radius: 2px; }
.glossary-index { display: flex; flex-wrap: wrap; gap: 8px; }
.glossary-index a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.glossary-index a:hover { border-color: var(--teal-deep); color: var(--teal-text); }

/* Footer: four link groups */
.site-footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px 40px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.site-footer__nav .footer-links { grid-template-columns: 1fr; gap: 0; }
.site-footer__nav .footer-links a { min-height: 32px; font-size: 15px; }
.site-footer__small-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }

/* Narrow phones: room for the logo, phone, Book and menu on one row (logo stays above its 160px minimum) */
@media (max-width: 400px) {
  .brand img.brand__logo { height: 20px; }
  .site-header__inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 0 12px; }
}
