/* Ultra OV NL — website styles. Colours follow the Ultra OV NL brand guide (November 2026). */

:root {
  color-scheme: light dark;
  --gold: #eea614;
  --navy: #0b1530;
  --peach: #fad8ba;

  --bg: #f6f4f1;
  --surface: #ffffff;
  --surface-2: #efebe6;
  --text: #141a2b;
  --text-2: #586579; /* brand #64748B, darkened slightly for 4.5:1 on the page background */
  --accent: #b97800; /* graphics and large text only */
  --link: #8a5a00; /* 5.4:1 on the page background */
  --border: #e4dfd8;
  --on-time: #15803d;
  --late: #dc2626;
  --shadow: 0 1px 2px rgb(11 21 48 / 0.06), 0 8px 24px rgb(11 21 48 / 0.06);

  --radius: 18px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1530;
    --surface: #1a2a4e;
    --surface-2: #13213f;
    --text: #eef2fa;
    --text-2: #97a6bf;
    --accent: #f2b230;
    --link: #f2b230;
    --border: #26375e;
    --on-time: #4ade80;
    --late: #f87171;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 8px 24px rgb(0 0 0 / 0.2);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

figure {
  margin: 0;
}

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

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.1rem;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: var(--surface-2);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    padding: 12px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: #f2b230;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

/* Hero */
.hero {
  padding: 64px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}

.hero h1 .gold {
  color: var(--accent);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-2);
}

@media (max-width: 860px) {
  .hero {
    padding: 40px 0 56px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Example board (illustrative only) */
.board {
  background: var(--navy);
  color: #eef2fa;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 50px rgb(11 21 48 / 0.25);
  border: 1px solid #26375e;
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 6px 14px;
}

.board-head strong {
  font-size: 1.1rem;
}

.board-head span {
  color: #97a6bf;
  font-size: 0.85rem;
}

.dep {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: #1a2a4e;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.line {
  min-width: 46px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.line-gold {
  background: #eea614;
  color: #0b1530;
}

.line-peach {
  background: #fad8ba;
  color: #0b1530;
}

.line-light {
  background: #eef2fa;
  color: #0b1530;
}

.dep-main {
  min-width: 0;
}

.dep-main b {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.dep-main small {
  color: #97a6bf;
  font-size: 0.82rem;
}

.dep-time {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dep-time b {
  display: block;
  font-size: 1.05rem;
}

.dep-time small {
  font-size: 0.8rem;
  font-weight: 600;
}

.ok {
  color: #4ade80;
}

.late {
  color: #f87171;
}

.sample-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 6px;
  font-size: 0.8rem;
  color: #97a6bf;
}

.sample-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #97a6bf;
}

@media (max-width: 400px) {
  .board {
    padding: 14px;
  }

  .dep {
    gap: 10px;
    padding: 10px 12px;
  }
}

/* Sections */
section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface-2);
}

.section-head {
  max-width: 40em;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--text-2);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--text-2);
  margin: 0;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--peach);
  color: var(--navy);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

/* Enthusiasts */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vehicle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.vehicle-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.vehicle-head h3 {
  margin: 0;
}

.vehicle-head p {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}

.facts div {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.facts dt {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 600;
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vehicle .sample {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--text-2);
}

.glossary {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.glossary li {
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.glossary b {
  display: block;
}

.glossary span {
  color: var(--text-2);
}

.trains {
  margin-top: 40px;
  background: #eef0f3;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
}

.trains figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #4b5567;
}

/* States */
.states {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.states li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.dot-live {
  background: var(--on-time);
}

.dot-plan {
  background: var(--accent);
}

.dot-est {
  background: transparent;
  border: 2px solid var(--accent);
}

.dot-unknown {
  background: transparent;
  border: 2px dashed var(--text-2);
}

/* Platforms */
.platforms .card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.platforms .card .card-icon {
  margin: 0;
  flex: none;
}

/* FAQ */
.faq {
  max-width: 820px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-2);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--text-2);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c9d2e3;
  padding: 48px 0 32px;
  font-size: 0.95rem;
}

.site-footer a {
  color: #eef2fa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer .brand {
  color: #eef2fa;
  margin-bottom: 12px;
}

.site-footer h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #97a6bf;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #26375e;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: #97a6bf;
  font-size: 0.85rem;
}

/* Legal / text pages */
.page-head {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 24px;
}

.page-head p {
  color: var(--text-2);
}

.prose {
  max-width: 760px;
  padding-bottom: 72px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.prose h3 {
  margin-top: 1.5em;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.5em;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.prose th {
  background: var(--surface-2);
}

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 24px;
}

.lang-switch {
  font-size: 0.9rem;
}
