@import url("https://fonts.googleapis.com/css2?family=Overpass:wght@400;600;800;900&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap");

:root {
  --petrol: #0e3b43;
  --petrol-deep: #082a30;
  --signal: #f2c230;
  --stamp: #c8372d;
  --paper: #f5f7f6;
  --ink: #16202a;
  --slate: #5d6b73;
  --line: #d5dddd;
  --white: #ffffff;
  --sans: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.075rem;
  line-height: 1.7;
}

a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
main.wrap > p, main.wrap > ul, main.wrap > ol, main.wrap > h2, main.wrap > h3, .lede, .prose { max-width: 68ch; }

h1, h2, h3, .brand, nav.site, .cta, .cta-secondary, th, dt, .disclosure-bar, footer.site, .stop-name, .chip { font-family: var(--sans); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; color: var(--petrol-deep); margin: 0 0 1rem; }
h2 { font-size: 1.75rem; font-weight: 800; line-height: 1.15; color: var(--petrol-deep); margin: 3.2rem 0 0.8rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 800; color: var(--petrol); margin: 1.6rem 0 0.4rem; }
.lede { font-size: 1.25rem; color: var(--slate); }

/* disclosure + header: the "road sign" band */
.disclosure-bar {
  max-width: none;
  background: var(--signal);
  color: var(--ink);
  font-size: 0.85rem;
  padding: 7px 24px;
  text-align: center;
}
.disclosure-bar a { color: var(--ink); font-weight: 600; }

header.site { background: var(--petrol-deep); color: var(--white); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.brand { color: var(--white); text-decoration: none; font-weight: 900; font-size: 1.35rem; letter-spacing: -0.01em; display: inline-block; }
.brand::before { content: ""; display: inline-block; vertical-align: -4px; margin-right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--signal); background: var(--petrol-deep); }
.brand span { color: var(--signal); }
.brand:hover { color: var(--white); }
nav.site { display: flex; gap: 4px 20px; flex-wrap: wrap; font-weight: 600; font-size: 0.95rem; }
nav.site a { color: #c9d9db; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--white); border-bottom-color: var(--signal); }

main { padding: 48px 0 72px; }

/* hero with route map */
.hero { background: var(--petrol-deep); color: var(--white); padding: 56px 0 0; overflow: hidden; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { color: #bfd1d3; max-width: 58ch; }
.hero .actions { margin: 28px 0 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.route { display: block; width: 100%; height: auto; margin-top: 36px; }
.route .stop-name { font-size: 15px; font-weight: 800; fill: var(--white); }
.route .stop-note { font-family: var(--serif); font-size: 13px; fill: #9fb8bb; }
.route .stop-num { font-family: var(--sans); font-size: 14px; font-weight: 900; fill: var(--petrol-deep); }
.route-path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s 0.3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* buttons */
.cta, .cta-secondary {
  display: inline-block; font-weight: 800; font-size: 1rem; text-decoration: none;
  padding: 13px 24px; border-radius: 4px; margin-top: 12px;
}
.cta { background: var(--signal); color: var(--ink); }
.cta:hover { background: #ffd455; color: var(--ink); }
.cta-secondary { border: 2px solid currentColor; color: var(--petrol); }
.hero .cta-secondary { color: var(--white); }
.cta-secondary:hover { color: var(--stamp); }
.hero .cta-secondary:hover { color: var(--signal); }
.card .cta-secondary { margin-left: 0; }

/* content blocks — hierarchy, not identical cards */
.card { background: var(--white); border-left: 5px solid var(--petrol); padding: 22px 28px; margin: 24px 0; max-width: 820px; }
.card h2, .card h3 { margin-top: 0; }
.card[style*="fbf3e3"], .card.offer { background: var(--petrol) !important; border: 0 !important; border-left: 5px solid var(--signal) !important; color: #e3eeef; }
.card[style*="fbf3e3"] h2, .card[style*="fbf3e3"] h3, .card.offer h2, .card.offer h3 { color: var(--white); }
.card[style*="fbf3e3"] a:not(.cta), .card.offer a:not(.cta) { color: var(--signal); }
.card[style*="fbf3e3"] .cta-secondary, .card.offer .cta-secondary { color: var(--white); }

.note { border: 2px dashed var(--stamp); color: var(--ink); padding: 16px 20px; margin: 28px 0; max-width: 820px; background: #fff; font-size: 0.98rem; }
.source-line { font-size: 0.85rem; color: var(--slate); font-style: italic; }

/* tables */
table { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--white); font-size: 0.98rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--petrol-deep); color: var(--white); font-weight: 800; font-size: 0.95rem; }
tr.highlight td { background: #fff6d6; }
tr.highlight td:first-child { box-shadow: inset 5px 0 0 var(--signal); }

.checklist { list-style: none; padding: 0; max-width: 820px; counter-reset: none; }
.checklist li { position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 20px; height: 20px; border: 3px solid var(--petrol); border-radius: 3px; }
.checklist li strong { font-family: var(--sans); color: var(--petrol-deep); }

dl.glossary { max-width: 820px; }
dl.glossary dt { font-weight: 900; font-size: 1.25rem; color: var(--petrol-deep); margin-top: 28px; padding-top: 18px; border-top: 3px solid var(--signal); scroll-margin-top: 20px; }
dl.glossary dd { margin: 6px 0 0; }

.faq-item { max-width: 760px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }

/* infographic figures */
figure.infographic { margin: 36px 0; max-width: 900px; }
figure.infographic svg { width: 100%; height: auto; display: block; }
figure.infographic figcaption { font-size: 0.88rem; color: var(--slate); margin-top: 10px; font-style: italic; }

/* video library */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 28px; margin: 28px 0; }
.video h3 { font-size: 1.05rem; margin: 12px 0 4px; }
.video p { margin: 0; font-size: 0.95rem; color: var(--slate); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: var(--petrol-deep) center / cover no-repeat; }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%2316202a'/%3E%3C/svg%3E") center / 34px no-repeat; }
.yt:hover::after { background-color: #ffd455; }
.yt.playing { cursor: default; }
.yt.playing::after { display: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chip { display: inline-block; background: var(--petrol); color: var(--white); font-size: 0.75rem; font-weight: 800; padding: 2px 8px; border-radius: 3px; margin-right: 6px; vertical-align: 2px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }

footer.site { background: var(--petrol-deep); color: #9fb8bb; padding: 40px 0; font-size: 0.9rem; }
footer.site p { max-width: 70ch; margin: 0; }
footer.site a { color: var(--white); }
footer.site .foot-links { margin-top: 14px; display: flex; gap: 8px 22px; flex-wrap: wrap; }

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .split { grid-template-columns: 1fr; }
  header.site .wrap { flex-direction: column; align-items: flex-start; }
  .route .stop-note { display: none; }
  th, td { padding: 10px; }
  table { font-size: 0.9rem; }
}

.route-list { display: none; }
@media (max-width: 760px) {
  .route { display: none; }
  .route-list { display: block; list-style: none; counter-reset: stop; margin: 32px 0 0; padding: 0 0 36px 0; border-left: 4px solid var(--signal); }
  .route-list li { counter-increment: stop; position: relative; padding: 0 0 22px 36px; color: #9fb8bb; font-size: 0.95rem; }
  .route-list li::before { content: counter(stop); position: absolute; left: -18px; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--signal); color: var(--petrol-deep); font: 900 0.95rem/32px var(--sans); text-align: center; }
  .route-list strong { display: block; color: var(--white); font-family: var(--sans); font-size: 1.05rem; }
  nav.site { font-size: 0.88rem; gap: 2px 14px; }
  .disclosure-bar { font-size: 0.78rem; }
  .hero { padding-top: 36px; }
}
main.wrap { padding-top: 56px; padding-bottom: 80px; }

#cbuk-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto; background: var(--white); color: var(--ink); border-top: 5px solid var(--signal); box-shadow: 0 8px 30px rgba(8, 42, 48, 0.25); padding: 18px 22px; display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
#cbuk-consent p { margin: 0; flex: 1 1 320px; }
#cbuk-consent .cbuk-actions { display: flex; gap: 10px; }
#cbuk-consent button { font-family: var(--sans); font-weight: 800; font-size: 0.95rem; padding: 10px 18px; border-radius: 4px; cursor: pointer; border: 2px solid var(--petrol); background: var(--white); color: var(--petrol); }
#cbuk-consent button.cbuk-accept { background: var(--petrol); color: var(--white); }
#cbuk-consent button:hover { border-color: var(--stamp); }

.guide-list { list-style: none; padding: 0; margin: 32px 0; max-width: 820px; }
.guide-list li { border-top: 3px solid var(--signal); padding: 18px 0 8px; }
.guide-list h2, .guide-list h3 { margin: 0 0 6px; font-size: 1.35rem; }
.guide-list h2 a, .guide-list h3 a { color: var(--petrol-deep); text-decoration: none; }
.guide-list h2 a:hover, .guide-list h3 a:hover { color: var(--stamp); text-decoration: underline; }
.guide-list p { margin: 0; color: var(--slate); }

.route-list.route-list-always { display: block; list-style: none; counter-reset: stop; margin: 36px 0 0; padding: 0 0 40px; border-left: 4px solid var(--signal); max-width: 640px; }
.route-list.route-list-always li { counter-increment: stop; position: relative; padding: 0 0 22px 36px; color: #9fb8bb; font-size: 0.98rem; }
.route-list.route-list-always li::before { content: counter(stop); position: absolute; left: -18px; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--signal); color: var(--petrol-deep); font: 900 0.95rem/32px var(--sans); text-align: center; }
.route-list.route-list-always strong { display: block; color: var(--white); font-family: var(--sans); font-size: 1.08rem; }
.lang-alt { font-size: 0.9rem; color: var(--slate); margin-top: -0.5rem; }
.topic-nav { font-family: var(--sans); font-size: 0.95rem; line-height: 1.9; max-width: 820px; }
.topic-nav a { color: var(--petrol-deep); white-space: nowrap; }
