:root {
  --ink: #0B1F3A;
  --ink-2: #16325C;
  --hivis: #F2C618;
  --hivis-deep: #D9AE00;
  --paper: #F4F6F8;
  --white: #FFFFFF;
  --text: #1B2430;
  --muted: #546070;
  --line: #D5DCE4;
  --alert: #B3261E;

  --r-sm: 3px;
  --r-md: 8px;
  --r-lg: 18px;

  --logo-red: #E4002B;
  --logo: "Exo 2", "Arial", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}
img { display: block; }
a { color: var(--ink-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--hivis); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }

/* Emergency bar */
.emergency { background: var(--alert); color: var(--white); font-size: .98rem; }
.emergency__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.emergency p { margin: 0; }
.emergency a { color: var(--white); font-weight: 700; }
.emergency .num { font-family: var(--display); font-size: 1.35rem; letter-spacing: .02em; text-decoration: none; border-bottom: 2px solid currentColor; }
.emergency__secondary { opacity: .92; }

/* Header */
.site-header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; --emblem-accent: var(--logo-red); }
.brand__emblem { width: 46px; height: 58px; }
.brand__rule { width: 3px; height: 54px; background: var(--logo-red); border-radius: 2px; transform: skewX(-12deg); position: relative; }
.brand__rule::before { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--logo-red); }
.brand__text { display: flex; flex-direction: column; font-family: var(--logo); font-style: italic; line-height: 1; }
.brand__top { font-weight: 500; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; }
.brand__name { font-weight: 800; font-size: 1.85rem; text-transform: uppercase; letter-spacing: .01em; margin: 2px 0 3px; }
.brand__reo { font-weight: 500; font-size: .8rem; color: #C9D3E0; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--white); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; transition: background-color .15s var(--ease); }
.nav a:hover { background: var(--ink-2); }
.nav .nav__cta { background: var(--hivis); color: var(--ink); margin-left: 8px; }
.nav .nav__cta:hover { background: var(--hivis-deep); }

.nav-toggle { display: none; align-items: center; gap: 6px; background: none; border: 1px solid #ffffff55; color: var(--white); padding: 6px 10px; border-radius: var(--r-sm); font: inherit; cursor: pointer; }

.nav a[aria-current="page"]:not(.nav__cta) { box-shadow: inset 0 -3px 0 var(--hivis); border-radius: 0; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-top: 1px solid var(--ink-2); }
  .nav.is-open { display: flex; }
  .nav .nav__cta { margin: 8px 0 0; text-align: center; }
  .brand { gap: 10px; }
  .brand__emblem { width: 36px; height: 46px; }
  .brand__rule { height: 42px; }
  .brand__top { font-size: .58rem; letter-spacing: .22em; }
  .brand__name { font-size: 1.4rem; }
  .brand__reo { font-size: .68rem; }
}

/* Battenburg-style chequer band */
.chequer {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--hivis) 0 28px, var(--ink-2) 28px 56px) top / 100% 50% no-repeat,
    repeating-linear-gradient(90deg, var(--ink-2) 0 28px, var(--hivis) 28px 56px) bottom / 100% 50% no-repeat;
}
.chequer--thin { height: 8px; }

.reo { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.reo--dark { color: var(--ink); }
.section-head { margin-bottom: 28px; }

/* Tasks */
.tasks { background: var(--paper); padding: 56px 0 64px; }
.tasks__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .tasks__grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } .tasks__intro { position: sticky; top: 120px; } }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.task-list { list-style: none; margin: 0; padding: 0; background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); }
.task-list li + li { border-top: 1px solid var(--line); }
.task { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; color: var(--text); text-decoration: none; transition: background-color .15s var(--ease); }
.task svg { color: var(--ink-2); margin-top: 2px; }
.task strong { display: block; font-size: 1.1rem; color: var(--ink); }
.task small { display: block; color: var(--muted); font-size: .97rem; }
.task:hover { background: #FFF8D6; }
.task:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Stations */
.stations { padding: 64px 0; }
.finder { display: grid; gap: 10px; max-width: 560px; margin-bottom: 28px; }
.finder label { font-weight: 700; }
.finder__field { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 0 12px; background: var(--white); }
.finder__field svg { color: var(--muted); }
.finder input { flex: 1; border: 0; font: inherit; padding: 12px 0; background: transparent; outline: none; min-width: 0; }
.finder__field:focus-within { outline: 3px solid var(--hivis); outline-offset: 2px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: .95rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--text); cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.chip:hover { border-color: var(--ink-2); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.station-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 3px solid var(--ink); }
.station { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.station h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.station p { margin: 4px 0 0; color: var(--muted); font-size: .98rem; }
.badge-24 { font-family: var(--body); font-size: .75rem; font-weight: 700; background: var(--hivis); color: var(--ink); padding: 2px 6px; border-radius: var(--r-sm); letter-spacing: .04em; }
.empty { color: var(--muted); padding: 20px 0; }

/* News */
.news { background: var(--ink); color: #DCE4EE; padding: 64px 0; }
.news h2, .news h3 { color: var(--white); }
.news .reo { color: var(--hivis); }
.news a { color: inherit; text-decoration: none; }
.news a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hivis); }
.news__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .news__grid { grid-template-columns: 7fr 5fr; column-gap: 56px; } .news__grid .section-head { grid-column: 1 / -1; margin-bottom: 0; } }
.news__lead { border-left: 6px solid var(--hivis); padding-left: 24px; }
.news__lead h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 10px 0 12px; }
.news__lead p { font-size: 1.1rem; max-width: 52ch; }
.news__list { list-style: none; margin: 0; padding: 0; }
.news__list li { padding: 16px 0; border-bottom: 1px solid #ffffff22; }
.news__list li:first-child { padding-top: 0; }
.news__list h3 { font-size: 1.25rem; margin: 6px 0 4px; }
.news time { font-size: .9rem; color: #9FB0C6; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hivis); }
.tag--alert { background: var(--hivis); color: var(--ink); padding: 2px 8px; border-radius: var(--r-sm); }

/* Advice */
.advice { padding: 64px 0; }
.advice__body { max-width: 760px; border-top: 3px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--body); font-size: 1.6rem; color: var(--ink-2); transition: transform .2s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; max-width: 62ch; }

/* Careers */
.careers { background: var(--hivis); padding: 56px 0; }
.careers__inner { display: grid; gap: 24px; align-items: end; }
@media (min-width: 820px) { .careers__inner { grid-template-columns: 1fr auto; gap: 48px; } }
.careers p { max-width: 60ch; margin-bottom: 0; }
.button { display: inline-block; font-weight: 700; padding: 14px 24px; border-radius: var(--r-sm); text-decoration: none; transition: background-color .15s var(--ease); }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: var(--ink-2); }

/* Footer */
.site-footer { background: #07152A; color: #C3CEDB; font-size: .97rem; }
.site-footer__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 48px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--white); font-weight: 700; }
.site-footer__title { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--hivis); text-transform: uppercase; letter-spacing: .06em; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer__links a { font-weight: 600; }

/* Section heads with a "more" link */
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; }
.more { font-weight: 700; color: var(--ink-2); text-underline-offset: 3px; }
.more::after { content: " \2192"; }
.more--light { color: var(--hivis); }
.news .more--light { text-decoration: underline; }

/* Inner page header */
.page-head { background: var(--paper); padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 22ch; }
.page-head .lede { max-width: 60ch; margin-bottom: 0; }
.page-head--hivis { background: var(--hivis); border-bottom: 0; }
.page-head--hivis .lede, .page-head--hivis .crumbs, .page-head--hivis .crumbs a { color: var(--ink); }
.page-head--tall { padding: 80px 0 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); }
.byline { color: var(--muted); margin: 14px 0 0; }
.page-body { padding: 48px 0 72px; }
.h-sub { font-size: 1.9rem; margin: 0 0 18px; }
* + .h-sub { margin-top: 48px; }

/* Layouts */
.layout-aside { display: grid; gap: 40px; }
@media (min-width: 960px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; } }
.roles + .layout-aside { margin-top: 56px; }
.layout-toc { display: grid; gap: 32px; }
@media (min-width: 960px) { .layout-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; } .toc { position: sticky; top: 120px; } }
.toc { display: flex; flex-direction: column; border-left: 3px solid var(--ink); padding-left: 16px; gap: 6px; }
.toc__title { font-weight: 700; margin: 0 0 4px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.aside { display: grid; gap: 16px; }
@media (min-width: 960px) { .aside { position: sticky; top: 120px; } }
[id] { scroll-margin-top: 110px; }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.9rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose--article .lede { max-width: none; color: var(--text); font-size: 1.25rem; }
.back { margin-top: 40px; font-weight: 700; }
.back a::before { content: "\2190  "; }
.small { font-size: .9rem; color: var(--muted); }

/* Callouts */
.callout { background: var(--paper); border-left: 4px solid var(--ink-2); padding: 18px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout ul, .callout ol { margin: 0; padding-left: 1.2em; }
.callout__title { font-weight: 700; color: var(--ink); }
.callout--alert { border-left-color: var(--alert); background: #FCEEEC; }
.callout--real { border-left-color: var(--hivis-deep); background: #FFF8D6; margin-bottom: 32px; }
.callout .contact-list { list-style: none; padding: 0; margin-top: 8px; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; margin: 0; border-top: 1px solid #00000014; flex-wrap: wrap; }
.contact-list a { font-weight: 700; white-space: nowrap; }

/* Steps */
.steps, .prose .steps, .callout .steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--hivis); font-family: var(--display); font-weight: 700; font-size: 1.2rem; border-radius: 50%; }
.steps--compact li { padding: 0 0 10px 36px; }
.steps--compact li::before { width: 24px; height: 24px; font-size: .95rem; top: 0; }

/* Forms */
.form { display: grid; gap: 22px; max-width: 720px; }
.form--narrow { max-width: 560px; }
.form--inline { grid-template-columns: 1fr auto; align-items: end; max-width: 560px; gap: 12px; }
@media (max-width: 520px) { .form--inline { grid-template-columns: 1fr; } }
.form-intro { max-width: 60ch; margin-top: 0; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
legend { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 14px; }
fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 28px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); font-size: .92rem; margin-left: 4px; }
.hint { margin: -2px 0 2px; color: var(--muted); font-size: .95rem; }
.form input[type=text], .form input[type=date], .form input[type=time], .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--white);
  border: 2px solid #8D99A8; border-radius: var(--r-sm); padding: 10px 12px; width: 100%;
  transition: border-color .15s var(--ease);
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--ink-2); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: var(--ink); }
.form textarea { resize: vertical; min-height: 100px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); flex-shrink: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--alert) !important; }
.field.has-error label::after, .check.has-error span::after { content: " (required)"; color: var(--alert); font-weight: 600; }
.button { border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; }
.button--primary { background: var(--ink); color: var(--white); }
.button--primary:hover { background: var(--ink-2); }
.button:disabled { opacity: .5; cursor: default; }
.form-done { background: #E6F4EA; border-left: 4px solid #1E7B3A; padding: 16px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.form-done p { margin: 0; }
.form-done .form-done__title { font-weight: 700; color: #14532A; margin-bottom: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th { text-align: left; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid var(--ink); padding: 10px 12px 10px 0; }
.table td { border-bottom: 1px solid var(--line); padding: 12px 12px 12px 0; vertical-align: top; }
.table td:first-child { font-weight: 600; color: var(--ink); }
.table--compact td { padding: 6px 8px 6px 0; border-bottom-color: #00000014; }
.table--compact td:first-child { font-weight: 400; color: var(--text); }
.table--compact td:last-child { text-align: right; font-weight: 700; padding-right: 0; }

/* Notice lookup */
.notice-result { margin-top: 20px; max-width: 560px; border: 2px solid var(--ink); border-radius: var(--r-md); padding: 4px 20px; }
.notice-result dl { margin: 0; }
.notice-result dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.notice-result dl div:last-child { border-bottom: 0; }
.notice-result dt { color: var(--muted); }
.notice-result dd { margin: 0; font-weight: 700; text-align: right; }
.notice-result--error { border-color: var(--alert); padding: 14px 20px; color: var(--alert); font-weight: 600; }

/* News list page */
.article-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 3px solid var(--ink); max-width: 820px; }
.article-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.article-list h2 { font-size: 1.7rem; margin: 6px 0 8px; }
.article-list h2 a { color: var(--ink); text-decoration: none; }
.article-list h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hivis-deep); }
.article-list p { margin: 0 0 6px; color: var(--muted); }
.article-list time { font-size: .9rem; color: var(--muted); }
.tag--on-light { color: var(--ink-2); border-bottom: 3px solid var(--hivis); margin-bottom: 10px; }

/* Careers */
.roles { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--ink); }
.role { display: grid; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .role { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; } }
.role p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.role dl { margin: 0; display: grid; gap: 6px; align-content: start; }
.role dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .97rem; }
.role dt { color: var(--muted); }
.role dd { margin: 0; font-weight: 600; text-align: right; }

/* About */
.values { display: grid; margin: 0; border-top: 3px solid var(--ink); }
.values div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
@media (min-width: 640px) { .values div { grid-template-columns: 180px 1fr; gap: 20px; } }
.values dt { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.values dd { margin: 0; }

/* Contact */
.contact-grid { list-style: none; padding: 0; margin: 0 0 56px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card { border: 2px solid var(--ink); border-radius: var(--r-md); padding: 20px 22px; }
.contact-card p { margin: 0; }
.contact-card .contact-card__label { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--muted); }
.contact-card .contact-card__num { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1.1; margin: 4px 0 8px; }
.contact-card__num a { color: var(--ink); text-decoration: none; }
.contact-card .contact-card__num--text { font-size: 1.9rem; padding: 10px 0 6px; }
.contact-card__num--text a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hivis-deep); }
.contact-card--alert { border-color: var(--alert); background: #FCEEEC; }
.contact-card--alert .contact-card__num a { color: var(--alert); }

/* Quick exit */
.quick-exit { position: fixed; right: 16px; bottom: 16px; z-index: 20; background: var(--alert); color: var(--white); font-weight: 700; padding: 14px 20px; border-radius: var(--r-sm); text-decoration: none; box-shadow: 0 6px 18px #0B1F3A55; }
.quick-exit:hover { background: #8E1C16; }

.link-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 700; font-size: 1.1rem; }

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