@font-face {
  font-family: Barlow;
  src: url("barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --petrol: #123b3d;
  --teal: #386b6b;
  --copper: #a87c52;
  --graphite: #21292b;
  --chalk: #f3f3ee;
  --dark: #102d2e;
  --deep: #142425;
  --soft-dark: #c2d2cd;
  --soft-light: #495a57;
  --line-light: #a9b9b1;
  --line-dark: #537977;
  --focus: #a4d7cf;
  --heading: Barlow, "Arial Narrow", sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--chalk);
  font: 400 1.0625rem/1.55 var(--body);
}
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.paper :focus-visible, .check-section :focus-visible { outline-color: var(--petrol); }
.skip {
  position: fixed;
  z-index: 10;
  top: .5rem;
  left: .5rem;
  padding: .6rem 1rem;
  background: var(--chalk);
  color: var(--petrol);
  transform: translateY(-180%);
}
.skip:focus { transform: translateY(0); }
.wrap { width: min(83rem, calc(100% - 2 * clamp(1.15rem, 5vw, 5rem))); margin-inline: auto; }
h1, h2, h3 { font-family: var(--heading); color: inherit; margin: 0; }
h1 { font-size: clamp(2.65rem, 4.8vw, 5.35rem); line-height: .99; letter-spacing: -.047em; font-weight: 700; }
h2 { font-size: clamp(2rem, 3.35vw, 3.6rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
h3 { font-size: clamp(1.32rem, 2.2vw, 1.9rem); line-height: 1.16; font-weight: 600; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.dark { background: var(--dark); color: var(--chalk); }
.paper { background: var(--chalk); color: var(--graphite); }
.paper h2, .paper h3 { color: var(--petrol); }
.label {
  font-size: .875rem;
  letter-spacing: .115em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 .8rem;
}
.paper .label { color: var(--teal); }
.intro { font-size: clamp(1.15rem, 1.7vw, 1.38rem); line-height: 1.42; max-width: 37rem; }
.dark .intro { color: var(--soft-dark); }
.site-header { background: var(--deep); border-bottom: 1px solid var(--line-dark); }
.header-inner { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; width: min(25vw, 20rem); flex: none; }
.brand img { width: 100%; }
.site-header nav { display: flex; gap: clamp(.75rem, 2.2vw, 2rem); align-items: center; }
.site-header nav a {
  display: block;
  color: var(--soft-dark);
  padding: .63rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--chalk); border-bottom-color: var(--copper); }
.home-opening {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100vh - 5.5rem);
  min-height: calc(100dvh - 5.5rem);
}
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(25rem, min(38vw, 60svh), 47rem);
  background: #202223;
  color: var(--chalk);
}
.hero-photo, .hero-photo img, .home-hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo { z-index: -2; }
.hero-photo picture { display: block; }
.hero-photo .fleet-links { object-fit: fill; pointer-events: none; }
.hero-photo picture img { object-fit: cover; object-position: right top; }
.home-hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgb(13 16 19 / 89%), rgb(13 16 19 / 75%) 28%, rgb(13 16 19 / 39%) 45%, transparent 64%);
}
.hero-copy { padding-block: clamp(3rem, 5vw, 6rem); }
.hero-copy h1 {
  max-width: min(10em, 44vw);
  font-size: clamp(3.2rem, 5.1vw, 5.8rem);
  line-height: 1.01;
  text-wrap: balance;
}
.hero-copy p {
  max-width: min(37vw, 26rem);
  margin: 1.2rem 0 1.6rem;
  font-size: clamp(1.125rem, 1.48vw, 1.35rem);
  line-height: 1.45;
}
.home-hero .button-primary { position: relative; background: var(--chalk); color: var(--graphite); border-bottom: 3px solid transparent; }
.hero-actions .button-primary::after {
  content: "";
  position: absolute;
  inset: auto -1px -3px;
  height: 3px;
  background: var(--copper);
  transform-origin: right center;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-actions .button-primary::after { transition: transform 200ms ease-out; }
}
@media (hover: hover) {
  .hero-actions .button-primary:hover::after { transform: scaleX(.35); }
}
.hero-actions .button-primary:focus-visible::after { transform: scaleX(.35); }
.home-hero .button-primary:hover { background: #fff; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .65rem 1.1rem;
  border: 1px solid transparent;
  color: var(--graphite);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--petrol); color: var(--chalk); }
.button-primary:hover { background: #204f50; }
.dark .button-primary { background: var(--chalk); color: var(--petrol); border-bottom: 3px solid var(--copper); }
.dark .button-primary:hover { background: #daebe4; }
.button-secondary { color: var(--petrol); background: transparent; border-color: var(--teal); }
.button-secondary:hover { background: #dce7e1; }
.text-link, .plain-button { font-weight: 700; }
.plain-button { border: 0; padding: .6rem .2rem; background: transparent; color: var(--petrol); cursor: pointer; text-decoration: underline; text-underline-offset: .22em; }
.rail-figure { min-width: 0; margin: 0; }
.drawing { position: relative; border: 1px solid var(--line-dark); background: #132b2c; color: var(--chalk); }
.drawing img { width: 100%; }
.drawing span {
  position: absolute;
  color: #e1eae2;
  background: #132b2c;
  padding: .08em .35em;
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(.875rem, 1.19vw, 1.05rem);
  line-height: 1.1;
}
.drawing-title { top: 8%; left: 6%; max-width: 48%; }
.drawing-boundary { top: 34%; right: 5.4%; }
.drawing-firmware { top: 88%; left: 49%; transform: translateX(-50%); }
figcaption { margin: .7rem 0 0; color: var(--soft-dark); font-size: .96rem; }
.paper figcaption { color: var(--soft-light); }
.deadline {
  display: grid;
  align-content: center;
  background: var(--petrol);
  border-block: 1px solid var(--line-dark);
}
.deadline-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(20rem);
  align-items: center;
  column-gap: clamp(2rem, 9vw, 11rem);
  row-gap: .65rem;
  padding-block: clamp(.8rem, 1.6vh, 1.15rem);
}
.deadline-copy { grid-column: 1; }
.deadline h2 { font-size: clamp(1.45rem, 2vw, 1.95rem); line-height: 1.13; }
.deadline-copy p { max-width: 65ch; margin: .5rem 0 0; color: var(--soft-dark); line-height: 1.35; }
.deadline-counter { display: flex; grid-column: 1; gap: clamp(.85rem, 1.5vw, 1.45rem); }
.deadline-counter > div { display: grid; gap: .2rem; }
.deadline-counter > div + div { border-left: 1px solid var(--line-dark); padding-left: clamp(.85rem, 1.5vw, 1.45rem); }
.deadline-counter strong { font: 600 clamp(2.05rem, 3.1vw, 3rem)/1 var(--heading); font-variant-numeric: tabular-nums; }
.deadline-counter span { color: var(--soft-dark); font-size: .9rem; }
.deadline-reporting {
  grid-area: 1 / 2 / span 2;
  border-left: 2px solid var(--copper);
  padding-left: clamp(1.1rem, 2.2vw, 2.4rem);
}
.deadline-reporting h3 { font-size: 1.25rem; line-height: 1.2; }
.deadline-reporting p { margin: .4rem 0; line-height: 1.35; }
.deadline-reporting a { color: var(--soft-dark); }
@media (min-width: 70rem) {
  .deadline-inner {
    grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 3.5rem);
  }
  .deadline-copy h2 { font-size: clamp(1.4rem, 1.7vw, 1.75rem); }
  .deadline-counter { grid-area: 1 / 2; gap: .8rem; }
  .deadline-counter > div + div { padding-left: .8rem; }
  .deadline-reporting { grid-area: 1 / 3; justify-self: end; max-width: 18rem; }
}
@media (max-width: 50rem) {
  .home-opening { min-height: calc(100vh - 4.8rem); min-height: calc(100dvh - 4.8rem); }
  .deadline-inner { grid-template-columns: minmax(0, 1fr) minmax(12rem, .55fr); column-gap: 1.75rem; }
}
@media (max-width: 40rem) {
  .home-opening { min-height: calc(100vh - 3rem); min-height: calc(100dvh - 3rem); }
  .deadline-inner { grid-template-columns: 1fr; }
  .deadline-reporting { grid-area: auto; border: 0; border-top: 1px solid var(--line-dark); padding: .65rem 0 0; margin-top: .15rem; }
}
.section { padding-block: clamp(2.9rem, 6.1vw, 6rem); }
.compact-section { padding-block: clamp(2.45rem, 4.4vw, 4rem); }
.editorial { display: grid; gap: clamp(1.4rem, 5.4vw, 6rem); grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; }
.editorial > div:first-child > .intro { margin-top: 1rem; }
.prose, .news { max-width: 44rem; }
.prose p, .news p { max-width: 64ch; }
.prose h3 { margin: 1.65rem 0 .65rem; }
.ruled { border-top: 1px solid var(--line-light); margin-top: clamp(2.6rem, 5vw, 4.6rem); padding-top: clamp(2.5rem, 5vw, 4.6rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.1rem; margin-top: 1rem; }
.page-intro { padding-block: clamp(2.8rem, 6vw, 5.25rem); border-bottom: 1px solid var(--line-dark); }
.page-intro h1 { max-width: 16em; }
.page-intro .intro { margin-top: 1.1rem; }
.jump-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin-top: 1.4rem; }
.jump-links a { font-weight: 600; padding-block: .2rem; }
.scenario-list, .timeline { margin: 1.5rem 0; }
.scenario-list > div, .timeline > div { padding: .9rem 0; border-top: 1px solid var(--line-light); }
.scenario-list > div:last-child { border-bottom: 1px solid var(--line-light); }
.scenario-list dt, .timeline dt { font-weight: 700; }
.scenario-list dd, .timeline dd { margin: .18rem 0 0; }
.timeline { margin-top: 0; }
.timeline > div { border-color: var(--line-dark); }
.timeline > div:last-child { border-bottom: 1px solid var(--line-dark); }
.check-section { background: #dfe8e1; color: var(--graphite); border-block: 1px solid var(--line-light); }
.check-section h2, .check-section h3 { color: var(--petrol); }
.check-panel { border-left: 3px solid var(--teal); padding: clamp(1rem, 3vw, 1.7rem); background: var(--chalk); }
.check-panel .label { margin-bottom: .35rem; color: var(--teal); }
.check-panel fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.check-panel legend { font: 600 1.45rem/1.15 var(--heading); margin-bottom: .75rem; padding: 0; }
.choice { display: flex; align-items: baseline; padding: .54rem .65rem; border-bottom: 1px solid var(--line-light); gap: .58rem; cursor: pointer; }
.choice:hover, .choice:has(input:checked) { background: #dfe8e1; }
.choice input { accent-color: var(--petrol); flex: none; margin: 0; }
.note, .field-note { color: var(--soft-light); }
.note { max-width: 35ch; }
.error { color: #8c3026; font-weight: 700; margin: .55rem 0 0; }
.error:empty { display: none; }
#result-reason { margin-top: .65rem; }
#result-items { margin-top: -.65rem; padding-left: 1.35rem; }
.guide-head .intro { margin-top: 1rem; }
.guide-grid { display: grid; gap: clamp(1.45rem, 4vw, 4.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; margin-top: 2rem; }
.accordion details { border-top: 1px solid var(--line-light); }
.accordion details:last-child { border-bottom: 1px solid var(--line-light); }
.accordion summary { padding: .8rem 0; font: 600 1.22rem/1.25 var(--heading); color: var(--petrol); cursor: pointer; }
.accordion summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.detail-body { padding: 0 0 1.05rem 1.15rem; }
.news article { border-top: 1px solid var(--line-light); padding-top: 1rem; }
.news article + article { margin-top: 1.65rem; }
.news .label { margin-bottom: .4rem; }
.news h3 { margin-bottom: .62rem; }
.contact-grid { display: grid; gap: clamp(2rem, 7vw, 7rem); grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); align-items: start; }
.contact-details h2 { font-size: 1.75rem; margin-bottom: .75rem; }
.contact-details a { overflow-wrap: anywhere; }
.enquiry { max-width: 46rem; }
.enquiry h2 { font-size: clamp(2rem, 3.2vw, 3.05rem); }
.form-notice { border-left: 3px solid var(--copper); padding: .75rem .9rem; background: #e5eae2; margin: 1rem 0 1.5rem; }
.enquiry label { display: block; font-weight: 700; margin-bottom: .25rem; }
.enquiry label span { font-weight: 400; color: var(--soft-light); }
.enquiry input, .enquiry textarea, .enquiry select {
  display: block;
  width: 100%;
  border: 1px solid #758783;
  border-radius: 0;
  background: #fcfcf9;
  color: var(--graphite);
  padding: .56rem .7rem;
}
.enquiry textarea { resize: vertical; }
.select-wrap { position: relative; margin-bottom: 1rem; }
.select-wrap select { appearance: none; padding-right: 2.5rem; }
.select-wrap::after { content: ""; position: absolute; top: 48%; right: 1rem; width: .55rem; height: .55rem; border: solid var(--petrol); border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.field-note { margin: 0 0 .35rem; font-size: .96rem; }
#check-context { margin: -.25rem 0 1rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin: 1rem 0 1.25rem; }
.draft { margin-top: 1.7rem; border-top: 1px solid var(--line-light); padding-top: 1.4rem; }
.draft h3 { margin-bottom: .8rem; }
#copy-status { margin-top: .55rem; }
.site-footer { background: var(--deep); color: var(--soft-dark); border-top: 1px solid var(--line-dark); }
.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(10rem, .65fr) minmax(12rem, .7fr);
  align-items: start;
  gap: 2rem;
  padding-block: clamp(2rem, 3.5vw, 3.3rem);
}
.footer-inner::before { content: ""; position: absolute; top: -1px; width: 3.75rem; height: 3px; background: var(--copper); }
.footer-brand { display: block; width: min(100%, 17rem); }
.site-footer h2 { font: 600 1.05rem/1.3 var(--heading); letter-spacing: 0; color: var(--chalk); margin: 0 0 .65rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: .15rem 1.2rem; }
.footer-links a { padding-block: .15rem; text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current] { text-decoration: underline; text-decoration-color: var(--copper); color: var(--chalk); }
.footer-contact address { display: grid; gap: .25rem; font-style: normal; }
.footer-contact address a { width: fit-content; color: var(--chalk); }
@media (max-width: 48rem) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-links { gap: .2rem 1.8rem; }
}

@media (max-width: 45rem) {
  .home-hero { display: block; min-height: auto; background: #1b1e20; }
  .hero-photo { display: block; position: relative; height: auto; }
  .hero-photo picture img { position: static; width: 100%; height: auto; aspect-ratio: 1.52; }
  .hero-photo::after {
    content: "";
    position: absolute;
    inset: 52% 0 -1px;
    background: linear-gradient(transparent, #1b1e20);
  }
  .home-hero::before { content: none; }
  .hero-copy { position: relative; margin-top: -2.6rem; padding-block: 0 2rem; }
  .hero-copy h1 { max-width: 12em; font-size: clamp(2.65rem, 7.8vw, 3.8rem); }
  .hero-copy p { max-width: 30rem; margin: .85rem 0 1.2rem; }
}
@media (max-width: 50rem) {
  .header-inner { min-height: 4.8rem; }
  .brand { width: min(27vw, 10rem); }
  .editorial, .guide-grid, .contact-grid { grid-template-columns: 1fr; }
  .rail-figure { max-width: 42rem; }
  .editorial { gap: 1rem; }
}
@media (max-width: 35rem) {
  .header-inner { display: grid; justify-content: stretch; gap: .3rem; min-height: auto; padding-top: .7rem; }
  .brand { width: 9.25rem; }
  .site-header nav { justify-content: space-between; }
  .site-header nav a { font-size: .98rem; padding-block: .52rem; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  .site-header nav a[aria-current] { border-bottom-color: currentColor; }
  .select-wrap::after { border-color: ButtonText; }
}


.hero-actions { display: grid; width: fit-content; gap: .65rem; }
.header-inner .brand { margin-right: auto; }
.language-menu { position: relative; z-index: 8; color: var(--chalk); }
.language-menu summary { display: flex; align-items: center; gap: .45rem; list-style: none; border: 1px solid var(--line-dark); padding: .35rem .7rem; cursor: pointer; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::before { content: ""; width: 1.15em; height: 1.15em; background: url("language-globe.svg") center / contain no-repeat; }
.language-options { position: absolute; right: 0; top: 100%; min-width: 8rem; background: var(--deep); border: 1px solid var(--line-dark); box-shadow: 0 .45rem 1rem #0004; }
.language-options a { display: block; padding: .45rem .8rem; text-decoration: none; }
.language-options a:is(:hover,[aria-current]) { background: var(--petrol); text-decoration: underline; text-decoration-color: var(--copper); }
@media (max-width: 48rem) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding-top: .5rem; }
  .header-inner .brand { width: 9.5rem; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; justify-content: space-between; gap: .2rem .5rem; }
  .header-inner .language-menu { grid-row: 1; grid-column: 2; }
}
html:not([lang="en"]) :is(h1,h2,h3,summary) { overflow-wrap: anywhere; hyphens: auto; }
