/* ==========================================================================
   Snowdon View celebration weekend
   Palette from an Ordnance Survey 1:50,000 sheet — this audience's native
   document. Hierarchy never depends on hue alone: anything distinguished by
   colour also differs in weight, size or fill. The bed grid must read in
   greyscale.
   Mobile first. Designed at 360px and worked up.
   ========================================================================== */

:root {
  --sheet:       #F2EDE2;
  --sheet-deep:  #E7DFCF;
  --slate:       #2E4038;
  --slate-soft:  #5A6960;
  /* Forest greens and burgundy. Shades and tints of each, no third hue
     except the OS lake blue, which is kept for the count figure alone. */
  --forest:      #35683F;  /* the accent: links, buttons, focus, current nav */
  --forest-deep: #274E30;  /* button hover, and the darker of the two rules */
  --forest-pale: #DEE6DA;  /* tint, for washes behind small blocks */
  /* The middle step of the three-part bars on the dashboard. Chosen by
     lightness, not by eye: forest 0.11, this 0.51, sheet-deep 0.74 — even
     steps, so the parts separate in greyscale and for a colourblind reader
     without needing a texture. Slate type on it clears 5.8:1. */
  --forest-mid:  #AEC2B2;
  --water:       #345B72;  /* OS lake blue, darkened to clear 4.5:1 */
  /* The money line on the dashboard chart. The lake blue was too close to
     the green bars and the paper to follow across a chart; this reads
     against both. Two weights because they answer to different rules: the
     line is a graphic and needs 3:1, the axis figures are 11px text and
     need 4.5:1. */
  --gold:        #B07D18;
  --gold-deep:   #8A5E14;
  --rule:        #CCC2AF;
  --flag:        #F6E7B8;
  /* The newsletter's own yellow, straight out of the MailerLite template.
     Used on the future page's section strip so it reads as the same
     piece of furniture hosts have already met in the email. */
  --letter:      #FFD145;
  --letter-deep: #D9A800;
  /* A deep burgundy, after the fascia around Snowdon View's guttering.
     Reserved for the 36-place threshold and for things wanting attention;
     never for links, so it is never mistaken for something to click. */
  --maroon:      #5E1F2D;
  --maroon-pale: #EFDDE0;  /* tint */

  /* Type for the dark footer. Both clear 4.5:1 on --slate: 6.7:1 and 4.8:1. */
  --on-slate:      #C3CCC6;
  --on-slate-soft: #9FAEA6;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
           Helvetica, Arial, sans-serif;

  --measure: 34rem;   /* body text line length */
  --gutter:  1.25rem;
}

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

html { -webkit-text-size-adjust: 100%; }

/* Column flex with a growing main keeps the footer on the bottom of the
   window on short sections like Questions, rather than floating halfway up. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------- TYPE */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

/* balance keeps "A Snowdon View Celebration" from leaving a word stranded
   on its own line at narrow widths. */
h1 { font-size: 1.875rem; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 1.3125rem; margin-top: 2.25rem; }
h3 { font-size: 1.0625rem; margin-top: 1.75rem; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }

.lede { font-size: 1.1875rem; line-height: 1.5; color: var(--slate); }
.small { font-size: 0.9375rem; color: var(--slate-soft); }
.aside { font-size: 0.9375rem; color: var(--slate-soft); font-style: italic; }

/* Visible keyboard focus, everywhere, on the paper not the ink. */
:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter); top: 0.5rem;
  z-index: 100;
  background: var(--sheet);
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate);
}

/* ------------------------------------------------------------ MASTHEAD */

/* The masthead takes the light middle tone so it reads as furniture rather
   than page, without becoming a heavy band. It is sticky and sits directly
   above the hero's contour field, so anything darker would cut the drawing
   off at the top of every scroll. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sheet-deep);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem var(--gutter);
  max-width: 60rem;
  margin: 0 auto;
}

.wordmark {
  display: block;
  text-decoration: none;
  color: var(--slate);
  padding: 0.25rem 0;
}
.wordmark-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.1;
}
.wordmark-sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--slate-soft);
  letter-spacing: 0.02em;
}

/* A menu button that reads as a menu button: bars AND the word. */
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.75rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 0.9375rem;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--slate-soft); }

.menu-bars { display: block; width: 18px; }
.menu-bars i {
  display: block;
  height: 2px;
  background: var(--slate);
  margin: 3px 0;
}

.menu-word::after { content: ""; }
.menu-toggle[aria-expanded="true"] .menu-word::after { content: ""; }

/* The panel. Real menu, full width, generous rows. */
.menu {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--sheet-deep);
}
.menu.is-open { display: block; }

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 60rem;
  margin-inline: auto;
}
.menu li + li { border-top: 1px solid var(--rule); }

.menu a {
  display: block;
  min-height: 44px;
  padding: 0.75rem var(--gutter);
  color: var(--slate);
  text-decoration: none;
  font-size: 1.0625rem;
}
.menu a:hover { background: var(--sheet); }

/* Current section marked by weight and a rule, not colour alone. */
.menu a[aria-current="page"] {
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--forest);
  background: var(--sheet);
}

/* No JS: the panel is always visible rather than unreachable. */
.no-js .menu { display: block; }
.no-js .menu-toggle { display: none; }

/* ------------------------------------------------------------ LAYOUT */

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 3rem;
}

.footer .wrap { padding-block: 1.5rem; }

section { margin-bottom: 1rem; }

main { flex: 1 0 auto; }

.footer { margin-top: auto; }

/* -------------------------------------------------------------- HERO
   The title sits on the ground it is about: the contours of Nant Gwynant,
   full-bleed behind the words. The drawing is a field, not a diagram — it
   carries no names, so nothing competes with the headline. The map further
   down does the naming.
   ---------------------------------------------------------------------- */

.hero-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--slate-soft);
  opacity: 0.28;
}
.hero-field svg { display: block; width: 100%; height: 100%; }

/* A wash from the paper, heaviest where the text sits, so the contours never
   fight the words. Body text stays well clear of the 4.5:1 floor. */
.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(242, 237, 226, 0.55) 0%,
    rgba(242, 237, 226, 0.86) 38%,
    rgba(242, 237, 226, 0.92) 100%);
}

.hero {
  position: relative;
  padding-top: 2.5rem;
  padding-bottom: 2.25rem;
}

.hero h1 {
  /* Not balanced: balancing evens the lines, which on a phone left "A" alone
     above "Snowdon View". Filling greedily keeps "A Snowdon View" together on
     the first line, and the non-breaking space stops the name being split. */
  text-wrap: pretty;
  font-size: 2.25rem;
  line-height: 1.08;
  margin-bottom: 0.35rem;
}

/* Where and when, each on its own line and each on a green block. These are
   the two facts a host needs before anything else, and on the hero's contour
   field they would otherwise be the quietest thing on the page. Flex column
   with a start alignment shrinks each block to its own text rather than
   running the highlight to the full measure. */
.standfirst {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  max-width: none;
}
.standfirst .key {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.35;
  background: var(--forest);
  color: var(--sheet);
  padding: 0.2em 0.55em;
  border-radius: 2px;
}

.stake {
  border-left: 3px solid var(--forest);
  padding-left: 0.875rem;
}

/* On a narrow screen this fell to its own line anyway; on a wide one it ran
   on and lost the beat between the demand and the count below it. */
.stake-line { display: block; }

/* --------------------------------------------------------- BED GRID
   The signature element. 60 marks for 60 beds; filled = booked; a rule
   across the 36th. Deliberately the loudest thing on the page — everything
   else stays quiet. Must survive being screenshotted without its copy.
   ------------------------------------------------------------------- */

.beds {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1rem 1rem;
  background: var(--sheet-deep);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.count {
  margin-bottom: 1rem;
  line-height: 1.25;
}
.count-figure {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--water);      /* the one place --water is used */
}
.count-detail {
  display: block;
  font-size: 1.0625rem;
  color: var(--slate-soft);
}

.beds-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px 6px;
  align-items: center;
}

/* Each mark is a bed seen from the side: headboard, mattress, footboard.
   Empty beds are drawn in hairline; booked beds are filled solid. The
   difference is fill and weight, never hue, so the grid reads in greyscale
   and survives being screenshotted. */
.bed-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.bed {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--slate-soft);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

/* The first 36 are the beds that decide whether the weekend happens, and they
   fill in Snowdon View's own maroon. Anything past the threshold fills slate
   instead, so the extras read as room for more rather than as the target.
   The two groups already sit on opposite sides of the threshold rule, so the
   colour reinforces a distinction the layout has already made — nothing here
   depends on telling maroon from slate, which matters for a red/green eye and
   in greyscale. */
.bed.is-booked {
  fill: var(--maroon);
  stroke: var(--maroon);
  stroke-width: 1.6;
}
.beds-grid.is-extra .bed.is-booked {
  fill: var(--slate);
  stroke: var(--slate);
}

.threshold {
  position: relative;
  margin: 0;
  padding: 0;
  max-width: none;   /* must span the grid, not the body measure */
  height: 1.75rem;
  border-top: 2px solid var(--maroon);
  margin-top: 6px;
  padding-top: 0.25rem;
}
.threshold-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--maroon);
  letter-spacing: 0.01em;
}

.beds-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate-soft);
  max-width: none;
}

/* One short stagger on load, and only if motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .bed.is-booked {
    animation: bed-fill 0.3s ease-out backwards;
    animation-delay: calc(var(--i) * 18ms);
  }
  /* Animate opacity, not paint, so one keyframe serves both fill colours. */
  @keyframes bed-fill {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ------------------------------------------------------------ BUTTONS */

.btn {
  display: inline-block;
  min-height: 44px;
  padding: 0.6875rem 1.25rem;
  background: var(--forest);
  color: var(--sheet);
  border: 1px solid var(--forest);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); }

/* Sending. The ring turns beside the word, so the state is carried by the
   word first and the movement second — and where movement is unwanted, the
   ring simply sits there as a broken circle, which still reads as waiting.
   It keeps full contrast: this is not a button that has been switched off,
   it is one that is busy. */
.btn.is-sending {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  cursor: progress;
}
.btn.is-sending::before {
  content: "";
  display: inline-block;
  width: 0.875em; height: 0.875em;
  margin-right: 0.5em;
  vertical-align: -0.0625em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: sv-spin 0.7s linear infinite;
}
@keyframes sv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn.is-sending::before { animation: none; }
}

.btn-big {
  display: block;
  width: 100%;
  font-size: 1.125rem;
  padding: 0.875rem 1.25rem;
}

.cta-row { margin-bottom: 2.25rem; max-width: var(--measure); }

/* -------------------------------------------------------- FACTS / LISTS */

.facts dl, .programme, .faq { margin: 0; max-width: var(--measure); }

.facts dt, .programme dt {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-top: 1rem;
}
.facts dd, .programme dd { margin: 0.125rem 0 0; }

.facts dt:first-child, .programme dt:first-child { margin-top: 0; }

.programme dt { margin-top: 1.5rem; }

.optional {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.0625rem 0.375rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--slate-soft);
  background: var(--sheet-deep);
}

.faq dt {
  font-family: var(--serif);
  font-size: 1.0625rem;
  margin-top: 1.5rem;
}
.faq dd { margin: 0.375rem 0 0; }

.steps { max-width: var(--measure); padding-left: 1.25rem; }
.steps li { margin-bottom: 0.5rem; }

/* --------------------------------------------------------- CONFIRM FLAG
   Unknown facts render as a visible flag. They are never quietly filled in.
   ---------------------------------------------------------------------- */

.confirm {
  display: inline-block;
  background: var(--flag);
  color: var(--slate);
  padding: 0.25rem 0.5rem;
  border-left: 3px solid var(--maroon);
  border-radius: 0 2px 2px 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.confirm-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-right: 0.25rem;
}

/* ------------------------------------------------------------- ONWARD */

.onward {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.onward a {
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: 2px solid var(--forest);
  padding-bottom: 1px;
  display: inline-block;
  min-height: 32px;
}

/* --------------------------------------------------------------- FORM */

.booking {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--slate);
  scroll-margin-top: 5rem;   /* clears the sticky masthead on #booking */
}

.booking-form { max-width: var(--measure); margin-top: 1.5rem; }

.field { margin: 0 0 1.25rem; max-width: none; }

.field label,
.field legend {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.3125rem;
  padding: 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  background: #FBF8F1;
  border: 1px solid var(--slate-soft);
  border-radius: 3px;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 1.0625rem;   /* ≥16px, or iOS zooms on focus */
  line-height: 1.4;
}
.field textarea { resize: vertical; }

.field input:focus, .field textarea:focus { border-color: var(--forest); }

fieldset.field {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.75rem 0.875rem 0.875rem;
}

/* `.field label` sets 600 and beats a bare `.choice`, so these were coming out
   bold; the selector below is specific enough to win. Aligning on the first
   line's box rather than the whole label keeps the button level with the text
   whatever descenders the words happen to have. */
.field .choice {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-height: 44px;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.field .choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  /* centre the control on the cap-height of the first line */
  margin-top: calc((1.0625rem * 1.5 - 20px) / 2);
  accent-color: var(--forest);
}

.hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--slate-soft);
}

.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.3125rem;
}

/* Name and the under-18 box on one line, stacking on a narrow screen. */
.party-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}
.party-row input[type="text"] {
  flex: 1 1 12rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: #FBF8F1;
  border: 1px solid var(--slate-soft);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1.0625rem;
}
.field .party-u18 { flex: 0 0 auto; min-height: 0; }

/* Dietary boxes wrap along the row rather than stacking one per line, which
   would make a party of four enormous on a phone. Still 44px tall. */
.diet-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  flex: 1 1 100%;
}
.field .diet-set .choice { flex: 0 0 auto; min-height: 44px; }

/* Dietary drops to its own line under the name and the tick box. */
.party-row .party-diet {
  flex: 1 1 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: #FBF8F1;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
}
.party-row { padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule); }
.party-row:last-child { border-bottom: 0; }

/* Nested fieldsets: the inner field should not repeat the outer padding. */
fieldset.field .field { margin: 0.875rem 0 0; }

/* --------------------------------------------- CONFIRMATION (book.php) */

.page { padding-top: 2.5rem; }

.reference-block {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--sheet-deep);
  border: 1px solid var(--rule);
  border-radius: 3px;
  max-width: var(--measure);
}
.reference-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.reference {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.bank {
  max-width: var(--measure);
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: #FBF8F1;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.bank dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-top: 0.75rem;
}
.bank dt:first-child { margin-top: 0; }
.bank dd { margin: 0; font-size: 1.125rem; }

.error {
  background: var(--flag);
  border-left: 3px solid var(--maroon);
  padding: 0.75rem 0.875rem;
  max-width: var(--measure);
}

/* --------------------------------------------------------------- GATE */

/* The gate has no footer, so nothing needs pushing down: main must not grow,
   or justify-content has no free space left to centre with. */
body.gate { justify-content: center; align-items: center; }
body.gate main { flex: 0 1 auto; }
body.gate .wrap { width: 100%; max-width: 26rem; }
body.gate h1 { font-size: 1.875rem; margin-bottom: 0.5rem; }
body.gate form { margin: 1.5rem 0; }
body.gate label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.3125rem;
}
body.gate input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  margin-bottom: 1rem;
  background: #FBF8F1;
  border: 1px solid var(--slate-soft);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1.0625rem;
}
body.gate .btn { width: 100%; }

/* ============================================================== TERRAIN
   Three uses of the same OS Terrain 50 data: a slice of ground under the
   masthead, the map of the valley, and the climb in section. All hairline,
   all currentColor — the bed grid is the loud thing and these stay quiet.
   ====================================================================== */

/* The per-section slice. Full bleed, cropped by its own box. */
.section-rule {
  height: 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  color: var(--slate-soft);
  opacity: 0.75;
}
.section-rule svg { display: block; width: 100%; height: 100%; }

/* --- The future page's own nav --------------------------------------
   That page is long, and people arrive at it from the newsletter wanting
   one particular part of it. Sits under the OS band, scrolls away with
   the page: the masthead is already sticky and two fixed strips on a
   360px screen would leave nothing to read.

   Chips rather than a strip of small links, because an earlier draft of
   the main menu read as decoration rather than navigation. Each one is a
   44px target, and hover and focus change the border and underline the
   word as well as the colour. */

.subnav {
  position: sticky;
  top: var(--masthead-h, 3.25rem);
  z-index: 40;                    /* under the masthead: its menu panel wins */
  background: var(--letter);
  border-bottom: 1px solid var(--letter-deep);
}
.subnav .wrap {
  padding-block: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* Says what the row is. Without it the chips are eight boxes that happen to
   carry words, and a reader who has never met them has no reason to touch
   one. */
.subnav-label {
  flex: none;
  margin: 0;
  max-width: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* The chips run in one scrolling row on a phone: wrapped, they stack three
   deep, and a sticky strip that tall leaves almost nothing of a 360px screen
   to read. The nav keeps aria-label="On this page" for screen readers. */
.subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;                   /* so the row scrolls rather than pushing */
  display: flex;
  flex-wrap: nowrap;
  gap: 0.375rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.subnav li { flex: 0 0 auto; }

.subnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  background: var(--sheet);
  border: 1px solid var(--slate);
  border-radius: 2px;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.subnav a:hover,
.subnav a:focus-visible {
  border-color: var(--forest);
  color: var(--forest);
  text-decoration: underline;
}

/* The section you are in. Filled rather than tinted, and bolder, so it reads
   as the selected one by weight and fill and not by hue alone. Set by
   site.js as you scroll; after the hover rules so it wins over them. */
.subnav a[aria-current] {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--sheet);            /* brighter than --on-slate: small bold type */
  font-weight: 600;
  text-decoration: none;
}

/* Clears both sticky strips when the nav jumps to a heading. Both heights
   are measured in site.js; the fallbacks are what they come out at on a
   phone with JavaScript off. */
.future-h2 {
  scroll-margin-top: calc(var(--masthead-h, 3.25rem)
                        + var(--subnav-h, 3.5rem) + 0.75rem);
}

/* Room to breathe: the label comes back and the chips are allowed to wrap. */
@media (min-width: 40em) {
  .subnav .wrap { padding-block: 0.875rem; }
  .subnav ul { flex-wrap: wrap; overflow-x: visible; }
}

/* --- The map -------------------------------------------------------- */

.map-figure {
  margin: 2rem 0 0;
  padding: 1rem 1rem 0.875rem;
  background: var(--sheet-deep);
  border: 1px solid var(--rule);
  border-radius: 3px;
  max-width: 44rem;
}
.map-figure svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--slate-soft);
}
.map-figure figcaption,
.profile-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--slate-soft);
}

/* Labels are set in the site's own faces because the SVG is inlined. The
   viewBox is in metres, so these sizes are metres too. */
.map-label {
  font-family: var(--sans);
  font-size: 118px;
  font-weight: 600;
  fill: var(--slate);
}
.map-height {
  font-family: var(--sans);
  font-size: 96px;
  fill: var(--slate-soft);
}
.map-transect { color: var(--forest); }

/* --- The climb in section ------------------------------------------- */

.profile-figure {
  margin: 2rem 0;
  max-width: 44rem;
}
.profile-figure svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--slate);
  overflow: visible;
}
.profile-fill { fill: var(--sheet-deep); }
.profile-grid { opacity: 0.4; }
.profile-base { opacity: 0.5; }

/* Text inside an SVG is measured in the viewBox's user units, so it shrinks
   with the drawing. These sizes are therefore set per breakpoint: large in
   user units on a narrow screen, small on a wide one, which lands both at
   roughly the same number of actual pixels. */
.profile-tick {
  font-family: var(--sans);
  font-size: 34px;
  fill: var(--slate-soft);
}
.profile-label {
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 600;
  fill: var(--slate);
}

@media (min-width: 40em) {
  .section-rule { height: 46px; }
  .map-figure { padding: 1.25rem 1.25rem 1rem; }
  .profile-tick  { font-size: 16px; }
  .profile-label { font-size: 19px; }
}

/* -------------------------------------------------------------- PHOTO */

.photo {
  margin: 1.5rem 0 1.75rem;
  max-width: 44rem;
}
.photo--tall { max-width: 26rem; }

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.photo .credit { display: block; font-size: 0.8125rem; }

.photo figcaption {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--slate-soft);
}

/* -------------------------------------------------------------- VIDEO */

.video {
  margin: 1.5rem 0 2rem;
  max-width: 44rem;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--sheet-deep);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video figcaption {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--slate-soft);
}

/* --- The chapters --------------------------------------------------- */

/* A numbered list with its numbers turned off: nine of the twenty-two rows
   carry a group number of their own, and two sets of numerals down one
   margin is one set too many. The time is the marker. */
.chapters {
  list-style: none;
  margin: 0.75rem 0 2rem;
  padding: 0;
  max-width: 44rem;
  border-top: 1px solid var(--rule);
}
.chapters li { border-bottom: 1px solid var(--rule); }

.chapters a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.6875rem 0.25rem;
  text-decoration: none;
  color: var(--forest);
}
.chapters a:hover .chapter-what,
.chapters a:focus-visible .chapter-what { text-decoration: underline; }

.chapter-what { flex: 1 1 auto; font-size: 0.9375rem; line-height: 1.4; }

/* Tabular figures so the times line up as a column, and the slate colour
   because they are a label and not a second thing to click. */
.chapter-at {
  flex: 0 0 auto;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--slate-soft);
}

/* --- The slides ----------------------------------------------------- */

/* One tappable block rather than a link in a sentence: the deck is the other
   half of the recording, and a bare "download the slides" reads like a
   footnote. Stacked on a phone, side by side once there is room. */
.slides-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 1.5rem 0 2rem;
  padding: 0.875rem;
  max-width: 44rem;
  background: var(--sheet-deep);
  border: 1px solid var(--rule);
  border-radius: 3px;
  text-decoration: none;
  color: var(--slate);
}
.slides-card:hover,
.slides-card:focus-visible { border-color: var(--forest); }

/* The cover sits on the paper with a hairline of its own, so it reads as a
   page rather than as a picture bled into the panel behind it. */
.slides-card picture { display: block; flex: 0 0 auto; }
.slides-card img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.slides-text { display: flex; flex-direction: column; gap: 0.25rem; }

.slides-title {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--forest);
}
.slides-card:hover .slides-title,
.slides-card:focus-visible .slides-title { text-decoration: underline; }

.slides-meta {
  font-size: 0.875rem;
  color: var(--slate-soft);
  font-variant-numeric: tabular-nums;
}
.slides-more { font-size: 0.9375rem; line-height: 1.45; color: var(--slate); }
/* A correction to what the slides say, which are left as the record of
   the day. Quieter than the card's own copy, and not a link of its own. */
.slides-note { font-size: 0.875rem; line-height: 1.45; color: var(--slate-soft); }

@media (min-width: 36em) {
  .slides-card { flex-direction: row; align-items: flex-start; gap: 1.125rem; }
  .slides-card picture { width: 16rem; }
  .slides-text { padding-top: 0.125rem; }
}

/* ------------------------------------------------------------- FOOTER */

/* The darkest tone, so the page has a base to sit on. This matters more now
   the footer is pinned to the bottom on short sections: against paper it read
   as an accident, against slate it reads as the end of the document. */
.footer {
  background: var(--slate);
  font-size: 0.9375rem;
  color: var(--on-slate-soft);
}
.footer p { margin: 0 0 0.5rem; max-width: none; }
.footer-name { color: var(--on-slate); }
.footer-os { font-size: 0.8125rem; margin-bottom: 0; }
.footer a { color: var(--on-slate); }

/* ==========================================================================
   WIDER SCREENS — the secondary case. Nothing here changes the order or
   the emphasis; it only lets the page breathe.
   ========================================================================== */

@media (min-width: 40em) {
  body { font-size: 1.125rem; }

  h1 { font-size: 2.375rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 3.25rem; }
  .hero { padding-top: 3.5rem; padding-bottom: 3rem; }

  :root { --gutter: 2rem; }

  .beds { padding: 1.5rem 1.5rem 1.25rem; }
  .beds-grid { grid-template-columns: repeat(12, 1fr); gap: 8px; }
  .count-figure { font-size: 2.25rem; }

  .btn-big { display: inline-block; width: auto; min-width: 16rem; }

  .facts dl {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 0.5rem 1.5rem;
    max-width: 44rem;
  }
  .facts dt, .facts dd { margin: 0; }
  .facts dt { padding-top: 0.15rem; }
}

@media (min-width: 56em) {
  /* Desktop: the menu is always shown, laid out as a horizontal bar. */
  .menu-toggle { display: none; }
  .menu { display: block; border-top: 0; }
  .menu ul { display: flex; flex-wrap: wrap; }
  .menu li + li { border-top: 0; }

  /* The nav is a separate box from the masthead, so it is brought out to the
     same gutter. Every link keeps symmetric padding, including the first:
     that way each underline straddles its own label evenly, and the first
     one's underline starts on the gutter, level with the wordmark. */
  .menu ul { padding-inline: var(--gutter); }

  .menu a {
    min-height: 0;
    padding: 0.5rem 0.875rem 0.75rem;
    font-size: 0.9375rem;
  }
  .menu a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--forest);
    background: transparent;
  }

  .masthead-inner { padding-bottom: 0.25rem; }

  .beds { max-width: 44rem; }
  .hero { padding-top: 5rem; padding-bottom: 4rem; }
  .hero h1, .hero .standfirst, .hero .lede, .hero .stake { max-width: 40rem; }
}

/* ==========================================================================
   THE ACCOUNTS — stat tiles, the income-against-spending chart, the table.

   Published so hosts can see the position for themselves. The palette is the
   sheet's, which is deliberately low in chroma, so the two series are
   separated by fill and texture as well as hue: income solid in OS lake
   blue, spending hatched in contour brown. Checked in greyscale.
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- The two readings the bottom line hides ------------------------- */

.stats {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.stats li {
  background: var(--sheet-deep);
  border-left: 3px solid var(--water);
  border-radius: 0 2px 2px 0;
  padding: 0.875rem 1rem;
}
.stat-figure {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--slate);
}
.stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--slate-soft);
  max-width: 34em;
}

/* --- Income against spending ---------------------------------------- */

.chart { margin: 0 0 1.5rem; }
.chart svg { display: block; width: 100%; height: auto; }

.chart .grid {
  stroke: var(--rule);
  stroke-width: 1;
}
.chart .grid-base { stroke: var(--slate-soft); }

.chart .axis {
  font-size: 11px;
  fill: var(--slate-soft);
}
.chart .axis-year { font-size: 12px; fill: var(--slate); }

/* Each bar is in two parts: the ordinary year solid, the one-off a flat
   tint of the same colour. Hue says income or spending; fill says ordinary
   or one-off. Nothing here is carried by hue alone, and the hatch on the
   running costs survives a greyscale print.
   Spending is the burgundy. It used to ask for var(--contour), the OS brown
   from the first palette, which this stylesheet has not defined since the
   palette became forest and burgundy — so the spending bars had been
   falling back to plain black, and the two brown keys to nothing at all. */
.seg-trade   { fill: var(--water); }
.seg-refund  { fill: var(--water); fill-opacity: 0.3;
               stroke: var(--water); stroke-width: 1; }
.seg-running { fill: url(#hatch); stroke: var(--maroon); stroke-width: 1; }
.seg-works   { fill: var(--maroon); fill-opacity: 0.55;
               stroke: var(--maroon); stroke-width: 1; }

/* The figure appears on hover or keyboard focus. Never on all ten at once:
   the table underneath is the place for every number. */
.bar-value {
  font-size: 11px;
  font-weight: 600;
  fill: var(--slate);
  /* A figure for the lower part of a bar has to sit inside the part above
     it, and a figure is wider than the 34px bar, so it can fall across its
     neighbour. The halo of paper under the letters keeps it legible over a
     solid fill, a tint or a hatch alike. */
  paint-order: stroke;
  stroke: var(--sheet);
  stroke-width: 3;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
}
.bar:hover .bar-value,
.bar:focus .bar-value,
.bar:focus-visible .bar-value { opacity: 1; }
.bar:focus { outline: none; }
.bar:focus-visible path {
  stroke: var(--slate);
  stroke-width: 2;
}

.chart figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-soft);
}
/* The key is two keys: which bar, then what the bar is made of. Each group
   is a column so the heading owns the two beneath it, and the caption still
   wraps them under each other on a narrow screen. */
.legend-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.legend-head {
  font-weight: 600;
  color: var(--slate);
}
.legend { display: flex; align-items: center; color: var(--slate); }
.legend::before {
  content: "";
  width: 0.875rem; height: 0.875rem;
  margin-right: 0.375rem;
  border-radius: 2px;
}
.legend-in::before { background: var(--water); }
.legend-refund::before {
  background: var(--water);
  opacity: 0.3;
  border: 1px solid var(--water);
}
/* The running-costs swatch is hatched like the bar it stands for, so the
   two brown parts of the legend are told apart the same way the two brown
   parts of the bar are. */
.legend-out::before {
  background: repeating-linear-gradient(45deg,
      var(--maroon) 0 2px, transparent 2px 5px), var(--sheet);
  border: 1px solid var(--maroon);
}
.legend-works::before {
  background: var(--maroon);
  opacity: 0.55;
  border: 1px solid var(--maroon);
}
.chart-hint { font-style: italic; }

/* --- The table ------------------------------------------------------
   Seven columns will not fit 360px, so it scrolls sideways inside its own
   box rather than pushing the page out. The row labels stay put. */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--sheet);
}

table.accounts {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
table.accounts caption {
  caption-side: top;
  text-align: left;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  color: var(--slate-soft);
  border-bottom: 1px solid var(--rule);
}
table.accounts th,
table.accounts td {
  padding: 0.5rem 0.625rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
}
table.accounts tbody th[scope="row"] {
  text-align: left;
  font-weight: 400;
  position: sticky;
  left: 0;
  background: var(--sheet);
  border-right: 1px solid var(--rule);
}
table.accounts thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-soft);
  border-bottom: 1px solid var(--slate-soft);
}
.row-head th {
  background: var(--sheet-deep) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
/* These two headings span the whole table, so a cell that is already as wide
   as the scroller has nowhere to stick to and they slid away while every
   other row label stayed put. Sticking the word instead of the cell lines
   them up with the labels underneath them. The offset matches the cell
   padding, so nothing moves until the scroll reaches it. */
.row-head th > span {
  position: sticky;
  left: 0.625rem;
  display: inline-block;
}
.row-sum td,
.row-sum th { font-weight: 600; }
.row-balance td,
.row-balance th {
  font-weight: 600;
  border-top: 1px solid var(--slate-soft);
  border-bottom: 0;
}
.col-total {
  border-left: 1px solid var(--rule);
  background: var(--sheet-deep);
}

/* A deficit is set in maroon AND carries a minus sign and a bracketed note
   for a screen reader, so it never depends on the colour. */
.is-down { color: var(--maroon); }

.notes {
  font-size: 0.8125rem;
  color: var(--slate-soft);
  margin: 0.75rem 0 0;
  max-width: 44em;
}

@media (min-width: 40em) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat-figure { font-size: 1.625rem; }
}

/* The holding. Same treatment as the valley map: the drawing takes its
   colour from the page, so the contours and the boundary are one family. */
.holding-figure svg { display: block; width: 100%; height: auto;
                      color: var(--slate-soft); }
.holding-label { font-size: 11px; fill: var(--slate); font-weight: 600; }
.holding-figure .holding-contours { color: var(--slate-soft); }
/* The three parts that are freehold but inside the NRW lease. Dashed and
   unfilled against the solid, tinted rest: a difference of line and fill,
   never of hue alone. */
/* Road and river, from OpenStreetMap: what tells a reader where they are.
   The road reads as the heavier line, the river as the thinner one in OS
   lake blue — they differ in weight as well as hue. */
.holding-road  { color: var(--slate-soft); }
.holding-water { color: var(--water); }
.holding-road-label  { fill: var(--slate-soft); }
.holding-water-label { fill: var(--water); }


/* --- The holding map: pan and zoom ---------------------------------- */

.zoomer { position: relative; overflow: hidden; border-radius: 2px; }
.zoomer svg { display: block; width: 100%; height: auto; }
/* At rest a finger on the map scrolls the page past it. pan-y hands the
   browser the one gesture a reader needs to get past the map and leaves
   every other gesture to us, so a pinch still zooms the drawing rather than
   the page. Once the map is zoomed in the finger belongs to the map. */
.zoomer svg { touch-action: pan-y; }
.zoomer.is-zoomed svg { touch-action: none; }
.zoomer.is-ready svg { cursor: grab; }
.zoomer.is-panning svg { cursor: grabbing; }

/* Stacked, not strung out across the top: three buttons in a row reach
   half way across a phone and sit over the drawing they are meant to let
   you see. In a column they take one corner and nothing else. */
.zoomer-controls {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

/* The key, the north point and the scale: page furniture, not part of the
   drawing, so they keep their size whatever the zoom. pointer-events are
   off throughout, or they would swallow a drag of the map underneath. */
.map-key {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--slate);
  background: var(--sheet-deep);
  border: 1px solid var(--rule);
  border-radius: 2px;
  pointer-events: none;
}
.key-row { display: flex; align-items: center; gap: 0.4rem; }
.key-mark { flex: 0 0 1.25rem; width: 1.25rem; }
/* The plan's own two conventions: the boundary in red, and the parts under
   the NRW lease banded in blue. */
.key-edge   { height: 0; border-top: 2px solid #CC0000; }
.key-leased { height: 0; border-top: 3px solid #0033FF; }
.key-north .key-mark { height: 1.1rem; }

.map-scale {
  position: absolute;
  right: 0.5rem; bottom: 0.5rem;
  /* 100 m of the 665 m across the drawing. Exact, and exact without any
     script, because without script the map cannot leave this zoom. The box
     is sized by its content for once, so the padding and the backing can be
     added without shortening the bar and making the scale a lie. */
  box-sizing: content-box;
  width: 15.04%;
  padding: 0.375rem 0.5rem;
  color: var(--slate);
  background: var(--sheet-deep);
  border: 1px solid var(--rule);
  border-radius: 2px;
  pointer-events: none;
}
.map-scale-bar {
  display: block;
  height: 0.4rem;
  border: 1px solid currentColor;
  border-top: 0;
}
.map-scale-label { display: block; font-size: 0.75rem; line-height: 1.6; }
.zoomer-btn {
  min-width: 44px; min-height: 44px;
  padding: 0 0.5rem;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--slate);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
}
.zoomer-reset { font-size: 0.875rem; }
.zoomer-btn:hover:not(:disabled) { border-color: var(--forest); color: var(--forest); }
.zoomer-btn:disabled { opacity: 0.4; cursor: default; }

.zoomer-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate-soft);
}
/* No JavaScript, no controls to offer. */
.no-js .zoomer-controls, .no-js .zoomer-hint { display: none; }

.holding-track    { color: var(--slate-soft); }
.holding-wall     { color: var(--slate-soft); }
.holding-building { color: var(--slate); }
/* Field divisions and outbuildings, from the title plan's own linework. */
.holding-detail { color: var(--slate-soft); }
.holding-plan-building { color: var(--slate); }

/* The holding map keeps the title plan's own convention: the boundary in
   red, and the parts under the NRW lease with a blue band wrapped round the
   red, as the Land Registry draws them. Red against red-inside-blue differs
   by the band, not by hue alone. */
.holding-edge        { color: #CC0000; }   /* the plan's own red  */
.holding-leased-band { color: #0033FF; fill: none; }  /* and its blue */
/* Road and river names: larger than a spot height, since they name the two
   things that tell you where you are. */
.holding-road-label, .holding-water-label { font-size: 132px; font-weight: 600; }
/* A place off the holding, there to orientate rather than to be read first:
   the same face as the holding's own names, a step quieter. */
.holding-place { fill: var(--slate-soft); }
/* The holding map takes the full measure, like the accounts table: a square
   hole in a column of text is a bad place to pan a map around. */
.holding-figure { max-width: none; }
/* Every line the title plan draws: road casings, river, field boundaries,
   buildings. One source, so nothing can sit in the wrong place relative to
   anything else. */
.holding-ink { color: #3C4A42; }
.holding-river { color: var(--water); }
.holding-way   { color: var(--slate); }
/* The A498 through the holding: the gap between the two red boundary lines,
   which is what the road is here. */
.holding-roadband { color: var(--sheet-deep); }
.holding-roadfill { color: #C9C2B2; }
.holding-river-extra { color: #184181; }
.holding-road-extra { color: #A89E8A; }

/* Already answered: what they did, with the form folded away behind it. */
.survey-done {
  padding: 0.875rem 1rem;
  background: var(--forest-pale);
  border-left: 3px solid var(--forest);
  border-radius: 2px;
}
.survey-again { margin: 0 0 1.5rem; }
.survey-again > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--forest);
  cursor: pointer;
}
.survey-again > summary:hover { text-decoration: underline; }

/* The questionnaire's own prose: the explanation a question needs before it
   can fairly be answered. Set apart from the labels so it reads as context
   rather than as another thing to fill in. */
.survey-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--slate);
}
.survey-note {
  margin: 1.5rem 0 0.75rem;
  color: var(--slate-soft);
}
.survey-note-list {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  color: var(--slate-soft);
}
.survey-note-list li { margin-bottom: 0.35rem; }
.survey-restored {
  margin: 0 0 1rem;
  padding: 0.625rem 0.875rem;
  background: var(--sheet-deep);
  border-left: 3px solid var(--water);
  border-radius: 0 2px 2px 0;
  font-size: 0.9375rem;
  color: var(--slate);
}

/* --- The questionnaire on a wide screen -----------------------------
   Mobile keeps the single column it has. Above 46em the form becomes a
   two-column grid: short fields pair up, prose and anything you write a
   paragraph into still run the full measure. */

@media (min-width: 46em) {
  .survey-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    align-items: start;
    /* The panel is held at the height of its tallest step, so the rows must
       sit at the top. Without this the spare height is shared out between
       them and the content floats in the middle of an empty box. */
    align-content: start;
  }
  /* Everything spans both columns unless it says otherwise. */
  .survey-form > * { grid-column: 1 / -1; }
  .survey-form > .field-half { grid-column: span 1; }

  /* Short answers — Yes / No / Not sure, or 0 to 5 — in a row. */
  .survey-form .choices-row { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  .survey-form .choices-row legend { flex: 0 0 100%; }
  .survey-form .choices-row .hint { flex: 0 0 100%; }

  /* Answers too long to sit in a row go in two columns. */
  .survey-form .choices-grid,
  .survey-step .choices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
  .survey-form .choices-grid legend,
  .survey-form .choices-grid .hint,
  .survey-step .choices-grid legend,
  .survey-step .choices-grid .hint { grid-column: 1 / -1; }

  /* The same for a row of short answers inside a step. */
  .survey-step .choices-row { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  .survey-step .choices-row legend,
  .survey-step .choices-row .hint { flex: 0 0 100%; }

  /* The panel is the measure here. Holding the prose to 34rem inside a
     60rem box was what left the right-hand half empty. */
  .survey-note, .survey-note-list { max-width: none; }
}

/* --- The questionnaire, one step at a time -------------------------- */

.survey-step-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.125rem;
}
/* No JavaScript: every step on the page at once, each one a block of the
   long form, so nothing is hidden behind a button that will never work. */
.no-js .survey-step + .survey-step { margin-top: 2.5rem; }

.survey-progress { margin: 0 0 1.25rem; }
.survey-count {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

.survey-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
}
.btn-quiet {
  background: var(--sheet);
  color: var(--slate);
  border: 1px solid var(--rule);
}
.btn-quiet:hover { border-color: var(--forest); color: var(--forest); }
/* .btn-quiet is a colour, not a size — it needs .btn under it. This is the
   smaller cut, for a control that sits beside a heading rather than at the
   end of a form. It keeps the 44px tap target and loses the width. */
.btn-small {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 400;
}

@media (min-width: 46em) {
  .survey-form > .survey-step { grid-column: 1 / -1; }
  .survey-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    align-items: start;
  }
  .survey-step > * { grid-column: 1 / -1; }
  .survey-step > .field-half { grid-column: span 1; }
}

/* A display rule beats the browser's own [hidden] { display: none }, so any
   element given display: grid or flex here stops being hideable. The steps
   and the conditional questions both rely on hidden, so say it once, last,
   and emphatically. */
[hidden] { display: none !important; }

/* The questionnaire as one contained thing, so stepping through it reads as
   turning a page inside a panel rather than the document rearranging. */
.survey-form {
  /* It borrows .booking-form for the field styling, which caps itself at the
     reading measure — right for a booking form of six fields, wrong for this,
     which was being squeezed into a 34rem column on the left. */
  max-width: none;
  margin-bottom: 2.5rem;
  position: relative;
  background: var(--sheet-deep);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.25rem;
  margin-top: 1rem;
}
.survey-form .survey-progress {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.survey-form .survey-nav {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 46em) {
  .survey-form { padding: 1.75rem 2rem; }
}

/* A step that carries an explanation reads as two columns: what you need to
   know on the left, what you are being asked on the right. Below 46em it
   stays a single stack, explanation first. */
@media (min-width: 46em) {
  .survey-step.with-notes > .step-prose  { grid-column: 1; }
  .survey-step.with-notes > .step-fields { grid-column: 2; }

  /* Half the panel is not room for two columns of answers. */
  .survey-step.with-notes .choices-grid { grid-template-columns: 1fr; }
  .survey-step.with-notes .step-fields .field-half { grid-column: 1 / -1; }
}

/* A question is a question, not an object in a box: the browser's own
   fieldset border collides with a legend of more than one line, and a
   border round every question competes with the panel it sits in. */
.field { border: 0; padding: 0; }
.field legend { width: 100%; }

.step-prose > :first-child,
.step-fields > :first-child { margin-top: 0; }
.step-fields { display: grid; gap: 0; align-content: start; }

/* --- Colour in the questionnaire -----------------------------------
   All of it from the sheet's own palette, and never carrying meaning on
   its own: the bar repeats what the step counter says in words, and a
   chosen answer is marked by its filled control as well as its wash. */

.survey-track {
  height: 6px;
  margin-top: 0.5rem;
  background: var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.survey-fill {
  height: 100%;
  width: 0;
  background: var(--forest);
  border-radius: 3px;
  transition: width 220ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .survey-fill { transition: none; }
}

.survey-step-title { color: var(--forest); }

/* The explanation reads as a quiet aside beside the questions. */
.survey-note {
  padding-left: 0.875rem;
  border-left: 3px solid var(--water);
}
.survey-note-list { margin-left: 1.9rem; }

/* A chosen answer takes a pale wash, on top of its filled control. */
.field .choice {
  padding: 0.25rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: 3px;
}
.field .choice:has(input:checked) { background: var(--forest-pale); }

.survey-form { border-color: var(--forest); border-top-width: 3px; }

/* Where a step's right-hand column is a single box — Skills, Anything else —
   let it take the height of the explanation beside it, instead of a short
   box floating at the top of a tall column. */
@media (min-width: 46em) {
  .survey-step.with-notes { align-items: stretch; }
  .survey-step.with-notes > .step-fields {
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }
  .step-fields > .field:only-child {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }
  .step-fields > .field:only-child textarea {
    flex: 1 1 auto;
    min-height: 9rem;
  }
}

/* Name, address and connection, one person a row. Stacked on a phone, three
   across once there is room. */
.person-row { margin-bottom: 1rem; }
.person-row label { display: block; margin-bottom: 0.5rem; }
.person-row label span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-soft);
  margin-bottom: 0.25rem;
}
.person-row input { width: 100%; }
@media (min-width: 46em) {
  .person-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
  }
  .person-row label:last-child { grid-column: 1 / -1; }
}
.people-add { margin-top: 0.25rem; font-size: 0.9375rem; }

/* A way out of a half-finished draft. Quiet: it undoes work, so it should
   never be the thing the eye lands on. */
.survey-clear {
  justify-self: start;
  margin-top: 1.25rem;
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.875rem;
  color: var(--slate-soft);
  text-decoration: underline;
  cursor: pointer;
}
.survey-clear:hover { color: var(--maroon); }

/* The panel's header: its name on the left, the step controls on the right,
   their outer edge level with the edge of the fields below. The progress bar
   then runs the full width beneath. On a phone the controls drop under the
   title and the bar still spans. */
.survey-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.75rem;
}
.survey-head .survey-title { margin: 0; flex: 1 1 auto; }
.survey-form .survey-head .survey-actions {
  margin: 0;
  max-width: none;
  flex: 0 0 auto;
}
.survey-form .survey-head .survey-nav {
  margin: 0;
  padding: 0;
  border: 0;
  flex: 0 0 auto;
}
.survey-form .survey-head .survey-nav .btn,
.survey-form .survey-actions .btn {
  display: inline-block;
  width: auto;
  /* .btn-big carries min-width: 16rem on wider screens, which is right for a
     submit button at the foot of a form and 256px too much for one that says
     Next. Overriding width alone never touched it. */
  min-width: 0;
  flex: 0 0 auto;
}
.survey-form .survey-progress { width: auto; }
}

/* On a phone the two controls share the row at the foot of the step, rather
   than one filling the width and the other sitting beside it. */
@media (max-width: 45.999em) {
  .survey-form .survey-nav { margin-top: 1.75rem; }
  .survey-form .survey-nav .btn,
  .survey-form .survey-actions .btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}


/* --- The admin page -------------------------------------------------
   Three people reading, on a laptop or a phone, wanting the money first
   and the detail on demand. Deliberately plain: it is a window on the
   replies, not a thing to admire. */

.admin-out { margin: 0; flex: 0 0 auto; }

/* The way in borrows the host gate's card, so the two doors match. */
body.gate .error { margin-bottom: 1rem; }
body.gate input:disabled,
body.gate .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.admin-seeded {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--flag);
  border-left: 3px solid var(--maroon);
  border-radius: 2px;
  font-size: 0.9375rem;
}

.admin-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 1.5rem 0 0.5rem;
}
.admin-figure { display: flex; flex-direction: column; }
.admin-number {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--slate);
}
.admin-of { font-size: 1.25rem; color: var(--slate-soft); }
/* The one figure on the page that is not yet real. Gold marks it as its own
   kind of number without making it louder than the money. */
.admin-number-maybe { color: var(--gold-deep); }
.admin-label { font-size: 0.875rem; color: var(--slate-soft); }

.admin-panel { margin: 0 0 1.75rem; }
.admin-panel > svg { display: block; width: 100%; height: auto; }
.admin-panel-head {
  margin: 0 0 0.375rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
}
.admin-meter > svg { height: 46px; }
/* A 2x2 block. Flex packed the keys by width, so unequal labels wrapped
   them 1 / 2 / 1; two fixed columns keep the swatches aligned down the
   page. One column on a phone, where two would wrap every label. */
.admin-meter figcaption {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-soft);
}
@media (min-width: 22em) {
  .admin-meter figcaption {
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem 0.75rem;
    font-size: 0.8125rem;   /* two keys abreast at 360px without wrapping */
  }
}
@media (min-width: 34em) {
  .admin-meter figcaption { gap: 0.375rem 1.5rem; font-size: 0.875rem; }
}
.admin-meter .legend strong { margin-left: 0.375rem; color: var(--slate); }
/* The two parts of the money differ by hue AND by fill, so the meter reads
   in greyscale and for a colourblind reader. 135deg, not 45: the swatch has
   to lean the same way as the stripes on the bar, or the key looks like a
   third thing rather than the same thing smaller. */
.legend-small::before { background: var(--forest); }
.legend-large::before {
  background: repeating-linear-gradient(135deg,
      var(--water) 0 3px, var(--sheet) 3px 6px);
  border: 1px solid var(--water);
}
.legend-gap::before {
  background: var(--sheet-deep);
  border: 1px solid var(--rule);
}
/* Potential, not money: a dashed edge and an unfilled middle, so it cannot
   be mistaken for a pledge at a glance or in greyscale. */
.legend-maybe::before {
  background: repeating-linear-gradient(135deg,
      var(--gold-deep) 0 2px, var(--sheet) 2px 7px);
  border: 1px dashed var(--gold-deep);
}

/* Chart furniture: recessive, so the bars are the thing you see. */
.admin-grid { stroke: var(--rule); stroke-width: 1; }
.admin-axis-line { stroke: var(--slate-soft); stroke-width: 1; }
.admin-tick {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--slate-soft);
}
.admin-day { fill: var(--forest); }
/* Gold, not the lake blue: against green bars on cream paper the blue
   could not be followed across the chart. It is also a third colour rather
   than either of the meter's two, so it cannot be mistaken for one of the
   meter's parts. */
.admin-money-halo {
  fill: none;
  stroke: var(--sheet);
  stroke-width: 7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.admin-money-halo-dot { fill: var(--sheet); }
.admin-money {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.admin-money-dot { fill: var(--gold-deep); }
/* The same money with the unsures added. Dashed and thinner than the solid
   line, because it is a ceiling rather than a figure — and it shares the
   paper halo, so it stays readable where it crosses a bar. */
.admin-maybe {
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.admin-tick-money { fill: var(--gold-deep); font-weight: 600; }
/* The top of the chart IS the target, so it is drawn as a line and not
   left to be inferred from the scale. */
.admin-target {
  stroke: var(--maroon);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.admin-axis-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--slate-soft);
}
.legend-day::before { background: var(--forest); }
.legend-money::before {
  background: var(--gold);
  height: 0.25rem;
  align-self: center;
  border-radius: 1px;
}
.admin-panel svg g:hover .admin-day { fill: var(--forest-deep); }

/* Two panels abreast where there is room, one where there is not. */
.admin-grid {
  display: grid;
  gap: 0 2rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.admin-bars { margin: 0; padding: 0; list-style: none; }
.admin-bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.75rem;
  align-items: center;
  gap: 0 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
}
.admin-bar-label { grid-column: 1 / -1; color: var(--slate); }
.admin-bar-track {
  height: 0.6rem;
  background: var(--sheet-deep);
  border-radius: 2px;
  overflow: hidden;
}
.admin-bar-fill { display: block; height: 100%; background: var(--forest); }
/* The count, with the share under it. A bare "12" means nothing without
   knowing how many answered; the percentage is what gets quoted. */
.admin-bar-n {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.admin-bar-n small {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--slate-soft);
}
.admin-bars li { grid-template-columns: minmax(0, 1fr) 2.5rem; }

/* A question that is parts of one whole: one bar, divided.
   The three fills differ in weight as much as in tone, and every part is
   named underneath with its count, so the colour is a convenience and
   never the only way to read it. 2px of paper between parts, so the joins
   are visible rather than inferred. */
.admin-split-bar {
  display: flex;
  gap: 2px;
  height: 2rem;
  margin: 0 0 0.5rem;
}
.admin-split-part {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 2px;
  overflow: hidden;
}
.admin-split-part i {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
}
.admin-split-part.part-0 { background: var(--forest); }
.admin-split-part.part-0 i { color: var(--sheet); }
/* Flat, not hatched. Stripes behind a percentage made it unreadable, and
   a halo round the figure would be two fixes for a problem that goes away
   if the fill is plain. */
.admin-split-part.part-1 { background: var(--forest-mid); }
.admin-split-part.part-2 {
  background: var(--sheet-deep);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.admin-split-part.part-1 i,
.admin-split-part.part-2 i { color: var(--slate); }

.admin-split-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--slate-soft);
}
.admin-split-key li { display: flex; align-items: center; gap: 0.375rem; }
.admin-split-key li::before {
  content: "";
  width: 0.75rem; height: 0.75rem;
  border-radius: 2px;
}
.admin-split-key li.part-0::before { background: var(--forest); }
.admin-split-key li.part-1::before { background: var(--forest-mid); }
.admin-split-key li.part-2::before {
  background: var(--sheet-deep);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.admin-split-key strong { color: var(--slate); }

/* What people wrote, gathered under its question.
   Quoted text sets on a measure, so these stay in one column however wide
   the screen: a 120-character line is unreadable whatever is in it. The
   name goes under the words, not over them — you read what was said, then
   see who said it, which is the order you want when you are scanning for
   something that needs an answer. */
.admin-said { margin: 0 0 2rem; }
.admin-said-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
}
.admin-said-n {
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.0625rem 0.375rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--slate-soft);
}
.admin-said-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 42rem;
}
.admin-said-list li {
  padding: 0.625rem 0 0.625rem 0.875rem;
  border-left: 2px solid var(--rule);
  margin-bottom: 0.5rem;
}
.admin-said-text { margin: 0; }
.admin-said-who {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate-soft);
}

/* 57 names is three columns, not fifty-seven lines. */
.admin-waiting { columns: 16rem 3; column-gap: 2rem; }
.admin-waiting li { break-inside: avoid; }

/* Section headings with a rule over them. On a page this long the eye
   needs somewhere to land: without them every block had the same weight
   and you had to read to find out where you were. */
.admin-h2 {
  margin: 2.75rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.admin-h2-first { margin-top: 1.5rem; }

.admin-question {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-soft);
}

.admin-tally { border-collapse: collapse; width: 100%; max-width: 34rem; }
.admin-tally th,
.admin-tally td {
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
  text-align: left;
}
.admin-tally td { width: 4rem; text-align: right; font-weight: 600; }

.admin-reply {
  border-bottom: 1px solid var(--rule);
  padding: 0.25rem 0;
}
.admin-reply > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  min-height: 44px;
  padding: 0.5rem 0;
  cursor: pointer;
}
.admin-reply.is-replaced > summary { color: var(--slate-soft); }
.admin-when { font-size: 0.875rem; color: var(--slate-soft); }
.admin-flag {
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--slate-soft);
}
.admin-answers { margin: 0 0 1rem; }
.admin-answers dt {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-soft);
}
.admin-answers dd { margin: 0.125rem 0 0; }

.admin-waiting {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.admin-waiting li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.admin-foot {
  margin: 2rem 0;
  font-size: 0.875rem;
  color: var(--slate-soft);
}

/* The follow-up list carries a name, who named them and a line of
   explanation, so it does not want the three narrow columns the chase
   list uses: a wrapped note in a 16rem column is unreadable. */
.admin-leads { columns: auto; }
.admin-leads li { padding: 0.5rem 0; }

/* Nine sections and several screens of page, so the way about travels with
   you: a header that stays put, carrying the title, a menu and the way out.
   Full width, because a band that stops short of the window edge reads as a
   panel that has come loose rather than as the top of the page.

   Three earlier attempts failed the same way: a row of section names reads
   as a caption whatever it is dressed in, loud or quiet. A button that says
   "Sections" says what it is in a word, and the panel then has room for the
   headings in full rather than one-word stubs. */
.admin-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.admin-bar .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.5rem;
}
.admin-bar h1 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.2;
}

/* The button. Marker off, because the disclosure triangle a browser draws
   is a different promise from the one this makes. */
.admin-menu { flex: 0 0 auto; }
.admin-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--slate);
  border-radius: 3px;
  background: var(--sheet);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  list-style: none;
}
.admin-menu > summary::-webkit-details-marker { display: none; }
.admin-menu > summary svg { width: 16px; height: 12px; flex: 0 0 auto; }
.admin-menu > summary:hover,
.admin-menu > summary:focus-visible { background: var(--sheet-deep); }

/* Open, it fills the dark state so the page behind it is plainly behind. */
.admin-menu[open] > summary { background: var(--slate); color: var(--sheet); }

/* The panel hangs off the bar, the full width of the window, so on a phone
   it is a list down the page rather than nine things in a scrolling row. */
.admin-menu[open] > .admin-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 6px 16px rgba(46, 64, 56, 0.12);
}
.admin-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--gutter);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--slate);
  text-decoration: none;
}
.admin-menu-panel a + a { border-top: 1px solid var(--rule); }
.admin-menu-panel a:hover,
.admin-menu-panel a:focus-visible {
  background: var(--sheet-deep);
  color: var(--contour);
}

/* Or the heading you jumped to sits underneath the bar. */
.admin-h2 { scroll-margin-top: 4.5rem; }
.admin-h2-first { margin-top: 1.25rem; }

/* Every reply opens, and nothing said so: a name and a date in a row look
   like a line of a table, not a thing to press. A chevron pointing right
   says there is more behind it, and turning down when it opens says which
   one is showing. Drawn in CSS from two borders rather than loaded as a
   glyph, so it keeps the stroke weight of the rules around it. */
.admin-reply > summary { list-style: none; }
.admin-reply > summary::-webkit-details-marker { display: none; }
.admin-reply > summary::before {
  content: "";
  flex: 0 0 auto;
  align-self: center;
  width: 0.375rem;
  height: 0.375rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--slate-soft);
  border-bottom: 2px solid var(--slate-soft);
  transform: rotate(-45deg);
}
.admin-reply[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .admin-reply > summary::before { transition: transform 0.15s ease; }
}

/* --- The running total on the future page ---------------------------- */

/* First thing under the lede, so a host sees how it is going before they
   read a word of the detail. Three lengths that differ by fill, not by
   hue: solid for the £2,000s, hatched for the larger offers, the paper
   showing through for what is still to find. */
.pledge {
  margin: 1.75rem 0 2.5rem;
  padding: 1.1rem 1.1rem 1.25rem;
  background: var(--sheet-deep);
  border-top: 2px solid var(--slate);
  max-width: var(--measure);
}

.pledge h2 {
  margin: 0 0 0.4em;
  font-size: 1.0625rem;
}

.pledge-figure {
  margin: 0 0 0.7em;
  font-size: 1.0625rem;
  color: var(--slate-soft);
}

.pledge-figure strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--slate);
  display: block;
  line-height: 1.1;
}

.pledge-bar {
  display: flex;
  height: 1.5rem;
  background: var(--sheet);
  border: 1px solid var(--slate);
}

.pledge-small { background: var(--slate); }

/* 45 degrees, in the same ink: hatching rather than a second colour, so
   the two parts of the total stay apart in greyscale. */
.pledge-large {
  background: repeating-linear-gradient(45deg,
    var(--slate) 0 2px, var(--sheet-deep) 2px 6px);
}

.pledge-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  margin: 0.7em 0 0.4em;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--slate-soft);
}

.pledge-key > span { display: flex; align-items: baseline; gap: 0.4rem; }

.pledge-swatch {
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  border: 1px solid var(--slate);
  transform: translateY(0.05rem);
}

.pledge-note { margin: 0; font-size: 0.875rem; color: var(--slate-soft); }

/* The soft column on the dashboard: offers that live in a comment box, and
   conditions attached to money that is already counted. Quoted rather than
   summarised, because the whole point is that somebody can disagree with the
   reading — so the words have to be there to disagree with. Set smaller and
   indented behind a rule, so it reads as evidence rather than as figures. */
.admin-reserves { margin: 0; padding: 0; list-style: none; }
.admin-reserves li { margin: 0 0 1.25rem; }
.admin-reserve-who {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  align-items: baseline;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
}
.admin-reserve-sum { color: var(--slate-soft); }
.admin-reserves blockquote {
  margin: 0.25rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--slate);
}
.admin-reserve-src {
  margin: 0.25rem 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--slate-soft);
}

/* The soft money sits in the same row as the money, but it is not the same
   kind of fact, and it was setting the height of the row: a label long
   enough to wrap pushed the big figures apart. Smaller, on one line, and
   set at the foot of the row rather than aligned with the others. */
.admin-soft {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--slate-soft);
}
.admin-soft strong { font-weight: 600; color: var(--gold-deep); }
/* Each half whole, with the separator drawn rather than typed, so a wrap
   breaks between the two statements and never inside one. */
.admin-soft span { display: inline-block; }
.admin-soft span + span::before {
  content: '·';
  margin: 0 0.5rem 0 0.25rem;
  color: var(--rule);
}

/* The softest money on the page: offered in a comment box, if it is needed.
   Solid grey on the meter, and nothing at all on the timeline — it was never
   pledged on a day, so it had to be drawn as headroom at today, which was
   one mark too many on a chart already carrying two scales. */
.legend-ifneeded::before { background: var(--slate-soft); }
