/* Kings Mail: dressed in its own livery.
   Crown blue fields cut by the gold speed stripes from the logo, slab
   headlines that echo the wordmark, and postal things (stamps, labels, a
   week of collections) doing the work of the interface. */
:root {
  --blue: #080c8e;          /* Crown blue, from the logo */
  --blue-night: #050862;
  --blue-tint: #e3e5f4;
  --gold: #d8a200;          /* livery gold, from the logo */
  --gold-bright: #f2c63a;
  --gold-ink: #6f5300;      /* gold that passes as text on white */
  --ink: #121212;
  --slate: #3b4050;
  --sorting: #eceef6;       /* the cool grey of a sorting office floor */
  --line: #c4c8d8;
  --white: #ffffff;
  --red: #a4161a;
  --red-tint: #f9e1e1;
  --green: #1c5e33;
  --green-tint: #e0f0e5;
  --mourning: #1b1b1b;

  /* stamp colours, taken from the official Kings Mail stamp artwork.
     The -ink shades are for small text, where the artwork colour is too
     light to read on white. */
  --st-personal: #045bac;       --st-personal-ink: #045bac;
  --st-business: #1c833c;       --st-business-ink: #1c833c;
  --st-legal: #f53115;          --st-legal-ink: #b3200c;
  --st-international: #148e9f;  --st-international-ink: #0d6874;
  --st-royal: #fcc60c;          --st-royal-ink: #6f5300;

  --f-display: 'Zilla Slab', 'Rockwell', Georgia, serif;
  --f-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', 'Segoe UI', Arial, sans-serif;
  --f-mono: 'Atkinson Hyperlegible Mono', Consolas, 'Courier New', monospace;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }

.top-strip {
  height: 6px;
  background: linear-gradient(to right, var(--blue) 0 70%, var(--gold) 70% 100%);
}
body.mourning .top-strip { background: var(--mourning); }

/* Focus: always visible, on mouse click as well as keyboard. */
a:focus, button:focus, input:focus, select:focus, textarea:focus, summary:focus, [tabindex]:focus {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.band a:focus, .band button:focus, .band input:focus, .band select:focus, .band summary:focus,
footer.site a:focus, .mourning-banner a:focus {
  outline-color: var(--gold-bright);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: .5rem 1rem; font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.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;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.band a, .band a:visited, footer.site a, footer.site a:visited,
.mourning-banner a, .mourning-banner a:visited { color: #fff; }

/* the postcode, set like a sorting label wherever it appears */
.pc {
  font-family: var(--f-mono); font-weight: 600; letter-spacing: .06em;
  display: inline-block; white-space: nowrap;
  border: 1.5px solid currentColor; border-radius: 2px;
  padding: 0 .35em; line-height: 1.45;
}
.pc--big { font-size: 2rem; padding: .05em .4em; border-width: 3px; }
.mono { font-family: var(--f-mono); }

/* ---------- banners ---------- */
.mourning-banner { background: var(--mourning); color: #f2f2f2; font-size: .9375rem; }
.mourning-banner .wrap { padding-top: 10px; padding-bottom: 10px; }
.mourning-banner p { margin: 0; }
.alert-banner { background: var(--gold); color: var(--ink); }
.alert-banner .wrap { padding-top: 12px; padding-bottom: 12px; }
.alert-banner p { margin: 0; }
.alert-banner a, .alert-banner a:visited { color: var(--ink); font-weight: 700; }

/* ---------- masthead ---------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); flex: 0 0 auto; }
.brand img { display: block; height: 52px; width: auto; }
.brand--text img { height: 48px; width: 48px; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .03em; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
  display: block; padding: 8px 0;
}
.nav a:hover { color: var(--blue); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -4px 0 var(--gold); }

.nav--wide { display: none; }
.nav-menu summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--blue);
  border: 2px solid var(--blue); border-radius: 2px; padding: 8px 14px; min-height: 44px;
  display: flex; align-items: center; gap: 8px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.2rem; line-height: 1; }
.nav-menu[open] summary::after { content: "\2212"; }
.nav-menu[open] summary { background: var(--blue); color: #fff; }
.nav-menu .nav {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: var(--white); border-bottom: 4px solid var(--gold);
  padding: 8px 16px 16px;
}
.nav-menu .nav li + li { border-top: 1px solid var(--line); }
.nav-menu .nav a { padding: 12px 0; font-size: 1.0625rem; }
.masthead { position: relative; }

@media (min-width: 1024px) {
  .nav-menu { display: none; }
  .nav--wide { display: block; }
  .nav--wide ul { display: flex; gap: 22px; }
  .nav--wide a { padding: 26px 0 22px; }
  .brand img { height: 58px; }
}

/* ---------- the livery band: blue field, gold speed stripes ---------- */
.band { position: relative; background: var(--blue); color: #fff; overflow: hidden; }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: var(--gold); pointer-events: none;
}
/* the two stripes of the logo: thick on the left, running out to a point on the right */
.band::before { clip-path: polygon(0 18%, 100% 0, 100% 10%, 0 60%); }
.band::after { clip-path: polygon(0 74%, 100% 26%, 100% 31%, 0 100%); }
body.mourning .band::before, body.mourning .band::after { background: #8a8a8a; }
.band__inner { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 88px; }
.band h1 { color: #fff; }
.band .lead { color: #dfe1f5; }

.breadcrumbs { font-size: .875rem; margin: 0 0 18px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: #c9ccef; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--gold); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0 0 .75rem; max-width: 18em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 2.25rem 0 .75rem; text-wrap: balance; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
h4 { font-size: 1.0625rem; margin: 1.25rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
.lead { font-size: 1.1875rem; max-width: 36em; margin: 0 0 1rem; color: var(--slate); }
.small { font-size: .9375rem; }
.muted { color: var(--slate); }
.prose { max-width: 42em; }
.prose > :first-child { margin-top: 0; }
.flush { margin-top: 0; }

main { display: block; }
.page { padding-top: 36px; padding-bottom: 64px; }
.section { padding: 48px 0; }
.section--sorting { background: var(--sorting); }
.intro { margin: 0 0 1.5rem; color: var(--slate); max-width: 40em; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }

/* ---------- home ---------- */
.hero .band__inner { padding-top: 40px; padding-bottom: 108px; }
.hero__grid { display: grid; gap: 32px; }
.hero__kicker { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.1rem); max-width: 12em; }
.finder {
  background: var(--white); color: var(--ink); padding: 18px; border-radius: 2px;
  max-width: 40rem; margin-top: 24px;
}
.finder label { font-family: var(--f-display); font-size: 1.25rem; margin-bottom: .15rem; }
.finder .hint { margin-bottom: .6rem; }
.hero__stamp { display: none; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 230px; align-items: center; }
  .hero__stamp { display: block; transform: rotate(3deg); justify-self: end; }
}

/* the sentence form: say what you're sending, get a date */
.sentence { font-family: var(--f-display); font-size: clamp(1.35rem, 3.2vw, 2rem); line-height: 1.9; font-weight: 600; margin: 0 0 1.25rem; }
.sentence select {
  font: inherit; font-family: var(--f-body); font-weight: 700; font-size: .72em;
  color: var(--blue); background: var(--white);
  border: 0; border-bottom: 3px solid var(--blue); border-radius: 0;
  padding: 2px 4px; margin: 0 .15em; max-width: 100%; width: auto; min-height: 44px;
  vertical-align: baseline;
}

.two-up { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .two-up { grid-template-columns: 7fr 5fr; gap: 0; }
  .two-up > * + * { border-left: 1px solid var(--line); padding-left: 48px; }
  .two-up > :first-child { padding-right: 48px; }
}
.two-up h2 { margin-top: 0; }

/* ---------- stamps ---------- */
.stamp-sheet {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px;
}
.stamp-sheet > li { margin: 0; }
.stamp {
  --st: var(--st-personal); --st-ink: var(--st-personal-ink);
  --hole: 5px;
  position: relative; color: var(--ink);
  filter: drop-shadow(0 1px 1px rgba(18, 18, 18, .2));
}
/* the perforated edge: holes punched round a solid middle */
.stamp__paper {
  background: var(--white); padding: 11px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at 50% 50%, #0000 var(--hole), #000 calc(var(--hole) + .5px)) 0 0 / 14px 14px round;
          mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at 50% 50%, #0000 var(--hole), #000 calc(var(--hole) + .5px)) 0 0 / 14px 14px round;
}
.stamp__face {
  border: 3px solid var(--st); padding: 12px 12px 10px;
  aspect-ratio: 1 / 1; display: flex; flex-direction: column; position: relative;
}
.stamp__class {
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.1;
  letter-spacing: .02em; text-transform: uppercase; color: var(--st-ink); padding-right: 40px;
  overflow-wrap: normal; hyphens: none;
}
.stamp--international .stamp__class { font-size: .78rem; letter-spacing: 0; }
.stamp__price {
  font-family: var(--f-display); font-weight: 700; font-size: 2.5rem; line-height: 1;
  color: var(--st); margin: auto 0; padding: 10px 0; font-variant-numeric: tabular-nums;
}
.stamp__price--crown { font-size: 1.35rem; line-height: 1.15; color: var(--st-ink); margin-top: 0; padding-top: 4px; }
.stamp__service { font-weight: 700; font-size: .875rem; line-height: 1.3; }
.stamp__detail { font-size: .8125rem; color: var(--slate); line-height: 1.35; margin-top: 4px; }
.stamp__mark { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; }
.stamp__cypher { display: block; width: 58%; max-width: 110px; height: auto; margin: 6px auto 0; }
.stamp--personal { --st: var(--st-personal); --st-ink: var(--st-personal-ink); }
.stamp--business { --st: var(--st-business); --st-ink: var(--st-business-ink); }
.stamp--legal { --st: var(--st-legal); --st-ink: var(--st-legal-ink); }
.stamp--international { --st: var(--st-international); --st-ink: var(--st-international-ink); }
.stamp--royal { --st: var(--st-royal); --st-ink: var(--st-royal-ink); }
.stamp--royal .stamp__face { border-style: double; border-width: 9px; }

/* the official artwork, painted onto a canvas by site.js */
.stamp { margin: 0; }
.stamp__art {
  position: relative; aspect-ratio: 1 / 1; background: var(--white);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.stamp__art canvas { display: block; width: 100%; height: 100%; }
.stamp__fallback { display: block; padding: 16px; font-family: var(--f-display); font-size: 1.5rem; color: var(--st-ink); }
.stamp__art.is-failed::after {
  content: "Stamp artwork unavailable"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .875rem; color: var(--slate); border: 2px solid var(--st);
}
.stamp__caption { display: flex; flex-direction: column; gap: 2px; padding: 10px 2px 0; }
.stamp__caption .stamp__service { font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.stamp__caption .stamp__detail { margin-top: 0; }
.hero__stamp .stamp { width: 240px; }
.hero__stamp .stamp__price { font-size: 3.2rem; }
.hero__stamp .stamp__caption { display: none; }

/* ---------- contact ---------- */
dl.contact { display: grid; grid-template-columns: 12rem minmax(0, 1fr); margin: 0 0 1rem; max-width: 44em; border-top: 2px solid var(--ink); }
dl.contact dt, dl.contact dd { margin: 0; padding: .75rem 0; border-bottom: 1px solid var(--line); }
dl.contact dt { font-weight: 700; }

/* ---------- content blocks ---------- */
.inset { background: var(--sorting); padding: 16px 20px; margin: 0 0 1.25rem; max-width: 42em; }
.inset > :last-child { margin-bottom: 0; }
.warning { display: flex; gap: .75rem; align-items: flex-start; font-weight: 700; max-width: 42em; margin: 0 0 1.25rem; }
.warning .icon {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display);
}
.legal-note { border: 3px double var(--st-legal-ink); padding: 14px 18px; margin: 0 0 1.5rem; max-width: 42em; background: var(--white); }
.legal-note p { margin: 0; }
ol.steps { padding-left: 1.5rem; max-width: 42em; }
ol.steps li { padding-left: .25rem; margin-bottom: .75rem; }
ol.steps li::marker { font-family: var(--f-display); font-weight: 700; color: var(--blue); }
ol.steps li > :last-child { margin-bottom: 0; }
details.details { max-width: 42em; margin: 0 0 1rem; }
details.details summary { cursor: pointer; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
details.details .details-body { border-left: 4px solid var(--line); padding: 8px 0 4px 16px; margin-top: .5rem; }
ul.link-list { list-style: none; padding: 0; max-width: 42em; border-top: 2px solid var(--ink); }
ul.link-list li { border-bottom: 1px solid var(--line); padding: .8rem 0; margin: 0; }
ul.link-list a { font-weight: 700; }
ul.link-list p { margin: .2rem 0 0; color: var(--slate); font-size: .9375rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; max-width: 100%; margin: 0 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .96875rem; }
caption { text-align: left; font-weight: 700; font-family: var(--f-display); font-size: 1.25rem; padding: 0 0 .5rem; }
th, td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { border-bottom: 2px solid var(--ink); font-size: .875rem; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
.tool { background: var(--sorting); padding: 20px; margin: 0 0 2rem; max-width: 44em; }
.tool--plain { background: none; padding: 0; }
.field { margin: 0 0 1.25rem; }
.field:last-child { margin-bottom: 0; }
label, .label, legend { display: block; font-weight: 700; margin: 0 0 .25rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.hint { display: block; color: var(--slate); font-size: .9375rem; margin: 0 0 .4rem; font-weight: 400; }
input[type=text], input[type=email], input[type=search], input[type=date], input[type=number], select, textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--ink); border-radius: 2px; padding: 8px 10px; min-height: 48px;
  width: 100%; max-width: 30em;
}
input.short { max-width: 11em; }
textarea { max-width: 100%; min-height: 7em; }
select { max-width: 24em; }
.radios label, .checkbox label { display: inline; font-weight: 400; }
.radios div, .checkbox { display: flex; gap: .6rem; align-items: center; margin: 0 0 .5rem; }
input[type=radio], input[type=checkbox] { width: 1.35rem; height: 1.35rem; margin: 0; accent-color: var(--blue); }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.search-row input { flex: 1 1 15em; max-width: none; }
.button, button {
  font: inherit; font-weight: 700; cursor: pointer; min-height: 48px;
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
  border-radius: 2px; padding: 8px 22px; display: inline-block; text-decoration: none;
  touch-action: manipulation;
}
.button:hover, button:hover { background: var(--blue-night); border-color: var(--blue-night); color: #fff; }
.button--gold, .band button, .finder button { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button--gold:hover, .band button:hover, .finder button:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.button.secondary, button.secondary { background: var(--white); color: var(--blue); }
.button.secondary:hover, button.secondary:hover { background: var(--blue-tint); color: var(--blue-night); }
.field-error input, .field-error select, .field-error textarea { border-color: var(--red); }
.error-message { display: block; color: var(--red); font-weight: 700; margin: 0 0 .35rem; }
.error-summary { border: 3px solid var(--red); padding: 14px 18px; margin: 0 0 1.5rem; max-width: 44em; background: var(--white); }
.error-summary h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--red); font-weight: 700; }
.trap { position: absolute; left: -9999px; }
.more-link { font-weight: 700; }

/* ---------- results ---------- */
.result-head { max-width: 44em; }
.result-meta { color: var(--slate); margin: 0 0 1.25rem; }
.panel { border: 2px solid var(--ink); background: var(--white); padding: 18px 20px; margin: 0 0 1.5rem; max-width: 44em; }
.panel.good { border-color: var(--green); }
.panel.bad { border-color: var(--red); }
.panel.neutral { border-color: var(--slate); }
.panel > :last-child { margin-bottom: 0; }
.panel h2 { margin-top: .25rem; font-size: 1.5rem; }
.tagline { display: inline-block; font-family: var(--f-mono); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 2px; }
.tagline.good { background: var(--green-tint); color: var(--green); }
.tagline.bad { background: var(--red-tint); color: var(--red); }
.tagline.neutral { background: var(--sorting); color: var(--slate); }

/* addresses as labels you could stick on an envelope */
ul.labels { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
ul.labels > li { margin: 0; background: var(--white); border: 1.5px solid var(--ink); border-radius: 2px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
address.lines { font-style: normal; line-height: 1.45; margin: 0; }
address.lines span { display: block; }
address.lines > span:first-child { font-weight: 700; }
address.lines .pc { display: inline-block; margin-top: 4px; }
.copy { font-size: .875rem; padding: 4px 12px; min-height: 36px; align-self: flex-start; }
.copy[hidden] { display: none; }
.copy-done { font-size: .875rem; color: var(--green); font-weight: 700; }

/* ---------- delivery: a week of collections ---------- */
.week { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); max-width: 44em; }
.day { margin: 0; border: 1.5px solid var(--line); border-radius: 2px; padding: 8px 8px 10px; background: var(--white); min-height: 96px; display: flex; flex-direction: column; }
.day__name { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.day__date { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.day__tag { font-size: .75rem; font-weight: 700; line-height: 1.25; margin-top: auto; }
.day--posted { border-color: var(--ink); border-width: 2px; }
.day--window { background: var(--blue); border-color: var(--blue); color: #fff; }
.day--window .day__name { color: #dfe1f5; }
.day--sunday { background: repeating-linear-gradient(135deg, var(--sorting) 0 6px, var(--white) 6px 12px); color: var(--slate); }
.day--sunday .day__date { text-decoration: line-through; text-decoration-thickness: 2px; }
.day--transit .day__tag { color: var(--slate); font-weight: 400; }

/* ---------- the route, drawn like a line on a map ---------- */
ol.route { list-style: none; padding: 0; margin: 0 0 2rem; max-width: 44em; }
ol.route li { position: relative; padding: 0 0 22px 40px; margin: 0; }
ol.route li::before {
  content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--blue);
}
ol.route li::after { content: ""; position: absolute; left: 14px; top: 26px; bottom: 0; width: 4px; background: var(--blue); }
ol.route li:last-child::after { display: none; }
ol.route li.national::before { border-color: var(--ink); background: var(--gold); width: 22px; height: 22px; left: 1px; top: 1px; }
ol.route li.international::before { border-style: dashed; }
ol.route .stop { font-weight: 700; display: block; }
ol.route .note { color: var(--slate); font-size: .9375rem; }
@media (min-width: 900px) {
  ol.route { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: none; }
  ol.route li { padding: 44px 16px 0 0; }
  ol.route li::before { left: 0; top: 4px; }
  ol.route li.national::before { left: -3px; top: 1px; }
  ol.route li::after { left: 20px; right: 0; top: 14px; bottom: auto; width: auto; height: 4px; }
}

.box-status { font-weight: 700; }
.box-status.out { color: var(--red); }
tr.out-of-service td, tr.out-of-service th { background: var(--red-tint); }

.reference {
  font-family: var(--f-mono); font-size: 1.5rem; font-weight: 600; letter-spacing: .08em;
  display: inline-block; background: var(--white); color: var(--ink); padding: .2rem .7rem; border: 2px solid var(--ink);
}
.confirmation { background: var(--green); color: #fff; padding: 24px; margin: 0 0 2rem; max-width: 44em; }
.confirmation h2 { margin: 0 0 .5rem; color: #fff; }

/* ---------- news ---------- */
ul.news { list-style: none; padding: 0; margin: 0; max-width: 46em; }
ul.news li { padding: 16px 0; border-top: 1px solid var(--line); margin: 0; display: grid; gap: 2px; }
@media (min-width: 760px) { ul.news li { grid-template-columns: 10rem minmax(0, 1fr); column-gap: 24px; } ul.news li > :not(time) { grid-column: 2; } ul.news time { grid-row: 1 / span 2; padding-top: .3rem; } }
ul.news h3, ul.news h2 { margin: 0 0 .15rem; font-size: 1.25rem; }
ul.news time, .dateline { font-family: var(--f-mono); color: var(--slate); font-size: .875rem; }
ul.news p { margin: 0; color: var(--slate); }

/* ---------- laws ---------- */
.law { border-top: 2px solid var(--ink); padding: 18px 0 6px; max-width: 42em; }
.law h2 { font-size: 1.35rem; margin: 0 0 .25rem; }
.law .meta { font-family: var(--f-mono); color: var(--slate); font-size: .875rem; margin: 0 0 .6rem; }

/* ---------- footer ---------- */
footer.site { position: relative; background: var(--blue-night); color: #d6d8f0; font-size: .9375rem; overflow: hidden; }
footer.site::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 12%, 0 100%);
}
body.mourning footer.site::before { background: #8a8a8a; }
footer.site .wrap { position: relative; padding-top: 52px; padding-bottom: 28px; }
.footer-brand { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: #fff; margin: 0 0 4px; letter-spacing: .03em; }
.footer-tag { margin: 0 0 24px; }
footer.site ul.footer-links { list-style: none; margin: 0 0 24px; padding: 0; columns: 12rem 3; column-gap: 32px; }
footer.site ul.footer-links li { break-inside: avoid; margin: 0 0 .5rem; }
footer.site .legal { display: flex; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 16px; font-size: .875rem; }
footer.site p { margin: 0; }
footer.site .footer-tag { margin: 0 0 28px; max-width: 34em; }

@media (max-width: 759px) {
  dl.contact { grid-template-columns: 1fr; }
  dl.contact dt { padding-bottom: 0; border-bottom: 0; }
  dl.contact dd { padding-top: .15rem; }
  .tool { padding: 16px; margin-left: -16px; margin-right: -16px; }
  .brand img { height: 44px; }
  .brand__name { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .skip, .masthead nav, .nav-menu, footer.site ul.footer-links, .copy, .top-strip, .band::before, .band::after { display: none; }
  .band { background: none; color: var(--ink); }
  .band h1 { color: var(--ink); }
}

/* the prices page: stamps laid out on the sorting grey, so the perforations show */
.sheet-bg { background: var(--sorting); }
.sheet-bg .page { padding-bottom: 40px; }
.sheet-bg h2:first-of-type { margin-top: 1rem; }
