/*
 * Buckland Community Minibus — visual system.
 *
 * The reference object is a bus-stop timetable case: an enamelled frame, a printed
 * panel behind glass, square corners, hairline rules. Hence no rounded cards, no drop
 * shadows and no gradients anywhere. The tables are not a fallback for a nicer
 * layout — they are the design, and they happen to be what screen readers and
 * printers handle best.
 *
 * Typeface is Atkinson Hyperlegible, drawn by the Braille Institute so that
 * similar-looking characters stay distinguishable at low visual acuity. The people
 * reading this site are mostly over seventy. It is self-hosted rather than loaded
 * from Google's CDN: fewer round trips on patchy rural mobile data, and no visitor
 * IP addresses handed to a third party for a charity to have to explain.
 */

/* Self-hosted so there is one round trip, no third-party CDN, and no visitor IP
   addresses handed to Google for the trustees to have to account for.
   Licence: SIL Open Font License, see /fonts/LICENSE.txt */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2');
}

:root {
  /* Enamel signage, not farmhouse cream. */
  --enamel: #0e3b32;
  --enamel-dark: #072520;
  --paper: #fcfbf7;
  --chalk: #e7e2d6;
  --chalk-deep: #d6cfbe;
  --ink: #17201c;
  --ink-soft: #4a554f;
  /* Used only where something is unavailable or required. Never decoration. */
  --signal: #a8321c;

  --measure: 62ch;
  --rule: 1px solid var(--chalk-deep);

  /* Taken or partly taken days. The strong version is for the small cells of the
     phone calendar, where the fainter stripes all but vanish. */
  --hatch: repeating-linear-gradient(45deg, var(--chalk) 0 6px, var(--chalk-deep) 6px 12px);
  --hatch-strong: repeating-linear-gradient(45deg, var(--chalk) 0 5px, #b3a98f 5px 9px);

  /* 18px base: this audience should not have to zoom. */
  font-size: 18px;
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  background: var(--enamel);
  color: var(--paper);
  border-bottom: 6px solid var(--enamel-dark);
}

.masthead__inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
  /* The Menu button is placed against this box. */
  position: relative;
}

/*
 * Set like the destination blind on the front of the bus: condensed by tracking
 * rather than by a second typeface, reversed out of the enamel. This is the one
 * place the design raises its voice.
 */
.masthead__name {
  margin: 0;
  /* Kept clear of the Menu button to its right. Where the button is hidden (see
     .menu below) the space is given back. */
  padding-right: 8rem;
  /* Sized so the whole name stays on one line at any width above a phone's. */
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
}

/* The name is the way home, as visitors expect of the name at the top of a site. */
.masthead__name a {
  color: inherit;
  text-decoration: none;
}

.masthead__name a:hover,
.masthead__name a:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.15em;
}

.masthead__line {
  margin: 0.4rem 0 1rem;
  font-size: 1rem;
  color: var(--chalk);
  max-width: var(--measure);
}

/*
 * The Menu button, which is the <summary> of a <details> (see src/site-shell.ts for
 * why). It sits level with the name on the right. When it is opened the links drop
 * down beneath and push the page down, with nothing laid over the top of it.
 */
.menu > summary {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 0.8rem;
  border: 2px solid var(--paper);
  color: var(--paper);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.menu > summary:hover {
  background: var(--enamel-dark);
}

/* Reversed while open, so it reads as the thing holding the links open. */
.menu[open] > summary {
  background: var(--paper);
  color: var(--enamel);
}

.menu__open,
.menu__icon--open,
.menu[open] .menu__closed,
.menu[open] .menu__icon--closed {
  display: none;
}

.menu[open] .menu__open,
.menu[open] .menu__icon--open {
  display: inline;
}

/* Below 360px the name and the whole button no longer fit on one line. The word
   "Menu" is the part that matters, so the icon goes. */
@media (max-width: 20rem) {
  .menu .menu__icon {
    display: none;
  }
}

/*
 * Wider than a phone there is room for the links, so they are always shown and the
 * button is dropped. ::details-content is what lets CSS show the inside of a closed
 * <details>. A browser without it (Safari before 18.4, for example) keeps the button
 * at every width, which is untidy on a desktop but still works.
 */
@supports selector(::details-content) {
  @media (width > 34rem) {
    .masthead__name {
      padding-right: 0;
    }
    .menu > summary {
      display: none;
    }
    .menu::details-content {
      content-visibility: visible;
    }
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  /* Pulled out by the links' own padding, so the words line up under the name
     while each link keeps its full-size target. */
  margin: 0 -1rem;
  padding: 0;
}

.nav a {
  display: block;
  /* Comfortably past the 24px WCAG 2.2 target minimum, for unsteady hands. */
  padding: 0.85rem 1rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 4px solid transparent;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--enamel-dark);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.nav a[aria-current='page'] {
  border-bottom-color: var(--paper);
  background: var(--enamel-dark);
}

/*
 * On a phone the masthead is just the name, and the Menu button beside it. The
 * tagline goes, since the front page says the same thing, and the links drop down
 * one per full-width row when the menu is opened.
 */
@media (max-width: 34rem) {
  .masthead__inner {
    padding: 0.75rem 1rem;
  }
  /* The name is too long to share a line with the button, so it stacks beside it,
     a word or two to a line like a destination blind. */
  .masthead__name {
    font-size: clamp(1.05rem, 5.4vw, 1.4rem);
    line-height: 1.1;
    letter-spacing: 0.04em;
  }
  .masthead__line {
    display: none;
  }
  .nav {
    display: block;
    margin: 0.75rem -1rem -0.75rem;
    border-top: 1px solid rgb(252 251 247 / 0.25);
  }
  .nav li {
    max-width: none;
    border-bottom: 1px solid rgb(252 251 247 / 0.15);
  }
  .nav li:last-child {
    border-bottom: 0;
  }
  /* The current page is marked down the left edge instead of along the bottom. */
  .nav a {
    border-bottom: 0;
    border-left: 6px solid transparent;
    padding-left: calc(1rem - 6px);
  }
  .nav a[aria-current='page'] {
    border-left-color: var(--paper);
  }
}

/* ------------------------------------------------------------------ layout */

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.prose {
  max-width: var(--measure);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 2.5rem 0 0.75rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  margin-top: 0;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1.15rem;
}

p,
li {
  max-width: var(--measure);
}

a {
  color: var(--enamel);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--signal);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

/* Skip link — visible the moment it is focused, invisible otherwise. */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border: 3px solid var(--signal);
}

/* -------------------------------------------------------- the timetable case */

.case {
  border: 3px solid var(--enamel);
  background: var(--chalk);
  padding: 0;
  margin: 2rem 0;
}

.case__title {
  margin: 0;
  background: var(--enamel);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case__body {
  padding: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

caption {
  text-align: left;
  padding: 0 0 0.6rem;
  color: var(--ink-soft);
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: var(--rule);
  vertical-align: top;
}

thead th {
  border-bottom: 2px solid var(--enamel);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

.note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------ footer */

.footer {
  background: var(--enamel-dark);
  color: var(--chalk);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer__inner {
  max-width: 68rem;
  margin: 0 auto;
}

.footer a {
  color: var(--paper);
}

/* ------------------------------------------------------------------- print */

@media print {
  :root {
    font-size: 12pt;
  }
  .masthead,
  .footer {
    background: none;
    color: #000;
    border-color: #000;
  }
  .nav,
  .skip,
  .menu > summary {
    display: none;
  }
  .case {
    break-inside: avoid;
  }
  .case__title {
    background: none;
    color: #000;
    border-bottom: 2px solid #000;
  }
  a::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------- availability calendar */

.monthnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.monthnav__link {
  display: inline-block;
  padding: 0.75rem 1rem;
  border: 2px solid var(--enamel);
  background: var(--paper);
  color: var(--enamel);
  text-decoration: none;
  font-weight: 700;
}

.monthnav__link:hover,
.monthnav__link:focus-visible {
  background: var(--enamel);
  color: var(--paper);
}

.monthnav__current {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

/* On a phone the three pieces wrapped one per line in no particular shape. The
   month goes on top and the two buttons share the row beneath it. */
@media (max-width: 34rem) {
  .monthnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .monthnav__current {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  /* Equal height even when a larger text size wraps one label and not the other. */
  .monthnav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-inline: 0.5rem;
  }
}

.cal {
  table-layout: fixed;
}

.cal th[scope='col'] {
  width: 14.28%;
}

.cal__day,
.cal__pad {
  height: 5.5rem;
}

.cal__day {
  border: var(--rule);
}

/* The padding moves from the cell to its contents, so a link fills the whole cell
   and a date can be picked by tapping anywhere in its square. */
.cal td.cal__day {
  padding: 0;
}

.cal__cell {
  display: block;
  min-height: 5.5rem;
  padding: 0.7rem 0.75rem;
  color: inherit;
  text-decoration: none;
}

a.cal__cell {
  color: var(--enamel);
}

a.cal__cell:hover,
a.cal__cell:focus-visible {
  background: var(--enamel);
  color: var(--paper);
  /* Inside the cell, where the neighbouring cells cannot cover it. */
  outline-offset: -3px;
}

a.cal__cell:hover .cal__state,
a.cal__cell:focus-visible .cal__state {
  color: var(--paper);
}

/* A day that has gone: greyed, with nothing to pick. */
.cal__day--past .cal__num {
  color: var(--ink-soft);
  font-weight: 400;
}

.calhint {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
}

/* Only needed on a phone, where the cells show a pattern instead of words. */
.calkey {
  display: none;
}

/* Days outside the month take the case's own chalk and no rule, so the month
   reads as a shape, as it does on a printed calendar. They used to share a
   background with partly booked days. */
.cal__pad {
  background: var(--chalk);
  border: 0;
}

.cal__num {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
}

/*
 * The state is spelled out in every cell. Availability is never carried by colour
 * alone: a WCAG requirement, and with this readership there is a fair amount of
 * colour blindness and cataract between them.
 */
.cal__state {
  display: block;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.cal__day--unavailable {
  /* Hatched, so the state survives greyscale printing as well as colour blindness. */
  background-image: var(--hatch);
}

.cal__day--unavailable .cal__state {
  color: var(--signal);
  font-weight: 700;
}

/* A strip of the same hatching along the foot of the cell, so the three states
   read as none, some and all of the day, in greyscale as well as colour. */
.cal__day--partial {
  background:
    var(--hatch) bottom / 100% 0.6rem no-repeat,
    var(--paper);
}

/* A month of free dates is thirty lines. In columns it takes a glance rather
   than a scroll, and columns read top to bottom the way a timetable does. */
.freelist {
  margin: 0;
  padding-left: 1.2rem;
  columns: 15rem;
  column-gap: 2.5rem;
}

.freelist li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

@media (max-width: 34rem) {
  th,
  td {
    padding: 0.4rem 0.3rem;
  }
}

/*
 * The calendar on a phone. Seven columns leave about 44px a day, which cannot hold
 * "Available", so the words ran into one another. Each cell shows its state as a
 * pattern instead: plain, hatched along the bottom half, or hatched all over with
 * the number struck through. A key above says which is which. The words stay in the
 * markup for screen readers, hidden only from sight, so availability is still never
 * carried by colour alone.
 */
@media (max-width: 34rem) {
  .case__body--cal {
    padding: 0.75rem 0 0;
  }
  .calkey {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0 0.75rem;
    font-size: 0.9rem;
  }
  .calkey li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }
  .calkey__swatch {
    width: 1.3rem;
    height: 1.3rem;
    border: 1px solid var(--ink-soft);
    background: var(--paper);
  }
  .calkey__swatch--partial {
    background:
      var(--hatch-strong) bottom / 100% 50% no-repeat,
      var(--paper);
  }
  .calkey__swatch--unavailable {
    background: var(--hatch-strong);
  }
  .calhint {
    margin: 0.35rem 0 0.6rem;
    padding: 0 0.75rem;
    font-size: 0.9rem;
  }
  .cal caption,
  .cal__state {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cal thead th {
    padding: 0.45rem 0;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-align: center;
  }
  .cal td {
    padding: 0;
    text-align: center;
    vertical-align: middle;
  }
  .cal__day,
  .cal__pad {
    height: 3.1rem;
  }
  .cal__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0;
  }
  .cal__day--partial {
    background:
      var(--hatch-strong) bottom / 100% 45% no-repeat,
      var(--paper);
  }
  .cal__day--unavailable {
    background-image: var(--hatch-strong);
  }
  .cal__day--unavailable .cal__num {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
  }
  /* A patch of paper behind the number, so the stripes never run through it. */
  .cal__day--partial .cal__num,
  .cal__day--unavailable .cal__num {
    padding: 0 0.2rem;
    background: var(--paper);
  }
}

/* ------------------------------------------------------------------- photo */

/* Framed in the enamel of the timetable case, and no wider than a column of text. */
.photo {
  max-width: 36rem;
  margin: 2rem 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--enamel);
}

.photo figcaption {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/*
 * On the front page, the photo and the hiring details sit side by side on a wide
 * screen. On anything narrower, or when someone has zoomed in, they stack with the
 * photo first as the markup has them, and the wrapper changes nothing.
 */
@media (min-width: 56rem) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    margin: 2rem 0;
  }
  /* The grid spaces the two now. Left in place, the heading's top margin would
     start the text well below the top of the photo. */
  .split > .photo,
  .split > .prose > :first-child {
    margin-top: 0;
  }
  .split > .photo,
  .split > .prose > :last-child {
    margin-bottom: 0;
  }
}

/* ------------------------------------------------------------ the forms */

form.stack {
  max-width: 34rem;
}

fieldset {
  border: 2px solid var(--enamel);
  padding: 0 1rem 1.25rem;
  margin: 2rem 0 0;
}

legend {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* A group of choices inside a section. Its legend is set as one more question,
   like the labels around it, rather than as a box within a box, which on a phone
   cost two borders' worth of width. */
fieldset.choices {
  border: 0;
  padding: 0;
  margin: 1.1rem 0 0;
  min-width: 0;
}

fieldset.choices legend {
  padding: 0;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

/* :where() holds this to the specificity of a bare `label`, so the .choice and
   .times rules below can override it. Written as `form.stack label` it outranked
   `.choice label` and pushed every radio's words a line below the button. */
:where(form.stack) label {
  display: block;
  margin: 1.1rem 0 0.3rem;
  font-weight: 700;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
input[type='time'],
input[type='number'],
textarea {
  font: inherit;
  /* Never below 16px: iOS zooms the whole page when a smaller field is focused,
     which on a phone leaves the rest of the form off-screen. */
  font-size: max(1rem, 16px);
  width: 100%;
  padding: 0.65rem 0.6rem;
  border: 2px solid var(--ink-soft);
  background: #fff;
  color: var(--ink);
}

/* Each box is sized to the answer it expects, which tells people what goes in it
   before they have finished reading the label. */
input[type='date'] {
  max-width: 12rem;
}
input[type='time'] {
  max-width: 9rem;
}
input[type='number'] {
  max-width: 7rem;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

/*
 * Radio and checkbox rows. Sized well past the 24px WCAG 2.2 minimum, and the
 * label fills the rest of the row so all of it is clickable: this form is filled
 * in by people with arthritis, on a phone, on a bus.
 */
.choice {
  display: flex;
  align-items: flex-start;
}

/*
 * Drawn rather than left to the browser. A native radio is a thin 1px ring at any
 * size, fainter than the 2px ink line of the text boxes beside it, and its size
 * and baseline differ between browsers. 1.6rem is exactly one line of label text,
 * so the control centres on the first line with no nudging.
 */
.choice input[type='radio'],
.choice input[type='checkbox'] {
  appearance: none;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0.55rem 0 0;
  border: 2px solid var(--ink-soft);
  background: #fff;
  cursor: pointer;
}

.choice input[type='radio'] {
  border-radius: 50%;
}

/* The dot is a ring of white inset into an enamel disc. */
.choice input[type='radio']:checked {
  border-color: var(--enamel);
  background: var(--enamel);
  box-shadow: inset 0 0 0 0.3rem #fff;
}

.choice input[type='checkbox']:checked {
  border-color: var(--enamel);
  background: var(--enamel)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fcfbf7' stroke-width='2.2'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.choice:hover input:not(:checked) {
  border-color: var(--enamel);
}

/* Windows high contrast mode drops backgrounds and shadows, which would leave a
   chosen option looking empty. Hand the controls back to the system there. */
@media (forced-colors: active) {
  .choice input[type='radio'],
  .choice input[type='checkbox'] {
    appearance: auto;
  }
}

.choice label {
  flex: 1;
  margin: 0;
  padding: 0.55rem 0 0.55rem 0.75rem;
  font-weight: 400;
  cursor: pointer;
}

/*
 * The start and end boxes belong to "Particular times", so they sit under it,
 * indented to its words and tied to it by a rule centred under the button.
 *
 * Where the browser has :has() they stay hidden until that option is picked, so
 * nobody fills in times against "All day" and gets the whole day held. Without
 * :has() the rule is dropped and they show all the time, as they always used to.
 * Neither way needs JavaScript.
 */
.times {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0 0 0.5rem calc(0.8rem - 2px);
  padding: 0 0 0.25rem calc(1.55rem - 2px);
  border-left: 4px solid var(--chalk-deep);
}

.times > div {
  width: 9rem;
}

.times label {
  margin-top: 0.4rem;
}

.choices:has(#slot-custom:not(:checked)) .times {
  display: none;
}

.choice--terms {
  border: 2px solid var(--enamel);
  background: var(--chalk);
  padding: 0.45rem 1rem;
  margin: 2rem 0 0;
}

.choice--terms label {
  font-weight: 700;
}

.actions {
  margin-top: 1.75rem;
}

button {
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  min-height: 3rem;
  cursor: pointer;
  border: 2px solid var(--enamel);
  background: var(--enamel);
  color: var(--paper);
}

button:hover {
  background: var(--enamel-dark);
  border-color: var(--enamel-dark);
}

/*
 * Errors say what to do next, so they belong at the top of the form where they are
 * read before the fields rather than after them.
 */
.formerror {
  border: 2px solid var(--signal);
  border-left-width: 8px;
  background: #fff;
  padding: 1rem;
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-weight: 700;
}

.cf-turnstile {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------- notice banner */

/*
 * A notice a trustee has put up: "no bus this Tuesday, the driver is away".
 *
 * Above the main content and marked as a status region, so a screen reader reaches
 * it before the page proper. Bordered rather than tinted, so it survives greyscale
 * printing and does not rely on colour to read as important.
 */
.notice {
  /* Full width, like the masthead it hangs from, with the words on the same left
     edge as the page below: 66rem is main's 68rem less its padding. */
  padding: 1rem max(1rem, calc((100% - 66rem) / 2));
  border-bottom: 4px solid var(--signal);
  background: var(--chalk);
  font-weight: 700;
}

.notice > :first-child {
  margin-top: 0;
}
.notice > :last-child {
  margin-bottom: 0;
}
