/* ═══════════════════════════════════════════════════════════
   TOURISM TEMAGAMI — THE ROUTE MAP
   World: map paper · pine ink · canoe-route red · lake blue
   Voices: Amatic SC (hand-lettered caps) + Alegreya (guidebook serif)
   After the hand-inked Temagami canoe guides.
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper: #F2EFE4;
  --paper-bright: #F8F6EE;
  --paper-deep: #E7E2D2;
  --ink: #22403A;
  --ink-soft: #55685F;
  --red: #9E3B24;
  --red-deep: #7E2E1B;
  --blue: #31536B;
  --hand: "Amatic SC", cursive;
  --serif: "Alegreya", Georgia, serif;
  --rule: color-mix(in srgb, currentColor 40%, transparent);
  --gutter: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  position: relative;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  /* faint contour field across the whole sheet */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='none' stroke='%2322403A' stroke-opacity='0.055' stroke-width='1'%3E%3Cpath d='M-20 80 C 80 40, 180 110, 300 70 S 460 90, 460 90'/%3E%3Cpath d='M-20 190 C 100 150, 200 230, 320 180 S 460 210, 460 210'/%3E%3Cpath d='M-20 310 C 90 270, 190 350, 310 300 S 460 330, 460 330'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

/* ── Browser surfaces ── */
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
body { scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper-deep); }
body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: var(--paper-deep); }
body::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--paper-deep); }
body::-webkit-scrollbar-thumb:hover { background: var(--red); }

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 2000;
  font-family: var(--serif); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--red); color: var(--paper);
  padding: 10px 18px; text-decoration: none;
}
.skip-link:focus-visible { left: 12px; }

/* ═══ RULED ROWS — the survey's margin notes ═══ */
.rule-row {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--serif);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.rule-fill {
  flex: 1 1 2rem; min-width: 2rem;
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-0.3em);
}
.nowrap { white-space: nowrap; }

/* Portage marks: inline form for narrow sheets */
.meta-stamp {
  display: none;
  font-family: var(--hand); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); border: 1.5px solid var(--red);
  padding: 1px 9px;
  transform: rotate(-4deg);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .meta-stamp { display: inline-block; }
}

/* ═══ BLAZE BUTTON — the trail marker ═══ */
.blaze-btn {
  display: inline-block;
  font-family: var(--hand); font-weight: 700;
  font-size: 1.5rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 30px 10px;
  background: var(--red); color: var(--paper);
  border: 2px solid var(--red-deep);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.12s linear, color 0.12s linear;
}
.blaze-btn:hover, .blaze-btn:active { background: var(--red-deep); }

/* ═══ NAVIGATION — the sheet's margin strip ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; gap: 32px;
  padding: 8px 32px 8px calc(var(--gutter) + 8px);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 2px 0 0 var(--paper), 0 3px 0 0 color-mix(in srgb, var(--ink) 35%, transparent);
}
.nav-logo {
  flex: 0 0 auto; display: flex; align-items: center;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  background: var(--paper-bright);
}
.nav-logo img { height: 44px; width: auto; }
.nav-index {
  display: flex; gap: 34px; list-style: none;
  margin-left: auto;
}
.nav-index a {
  font-family: var(--hand); font-weight: 700;
  font-size: 1.3rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.12s linear, border-color 0.12s linear;
}
.nav-index a:hover, .nav-index a:active { color: var(--red); border-bottom-color: var(--red); }
.nav-no { color: var(--red); margin-right: 8px; font-variant-numeric: tabular-nums; }
.nav-burger {
  display: none;
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 2px solid var(--ink);
  padding: 9px 8px; cursor: pointer;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }
.nav-burger:hover { border-color: var(--red); }
.nav-burger:hover span { background: var(--red); }

@media (max-width: 900px) {
  .nav { gap: 16px; padding: 8px 18px; }
  .nav-logo img { height: 38px; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-index {
    position: fixed; inset: var(--navh, 69px) 0 0 0;
    flex-direction: column; gap: 0;
    margin: 0; padding: 28px 24px;
    background: var(--paper);
    border-top: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .nav-index.open { transform: translateX(0); visibility: visible; transition: transform 0.3s var(--ease-out); }
  .nav-index li { border-bottom: 1px dotted color-mix(in srgb, var(--ink) 35%, transparent); }
  .nav-index a {
    display: block; padding: 22px 4px;
    font-size: 2.4rem; letter-spacing: 0.1em;
    border-bottom: none;
  }
  body.nav-open { overflow: hidden; }
}

/* ═══ ROUTE GUTTER — the red route down the whole survey ═══ */
.route-gutter {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: var(--gutter);
  z-index: 40; pointer-events: none;
}
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-path {
  fill: none; stroke: var(--red); stroke-width: 2.5;
  stroke-linejoin: round; stroke-linecap: round;
}
.portage-stamp {
  position: absolute; left: 8px;
  font-family: var(--hand); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); border: 1.5px solid var(--red);
  padding: 0 8px; background: var(--paper);
  transform: rotate(-6deg);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.js .portage-stamp { opacity: 0; transform: rotate(-14deg) scale(1.35); }
.js .portage-stamp.stamped {
  opacity: 1; transform: rotate(-6deg) scale(1);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
@media (max-width: 900px) {
  :root { --gutter: 18px; }
  .portage-stamp { display: none; }
}

/* ═══ SHEETS — shared section anatomy ═══ */
.entry { position: relative; padding: 96px 48px 104px calc(var(--gutter) + 48px); }
.entry-inner {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
  background: var(--paper-bright);
  border: 1.5px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--paper-bright), inset 0 0 0 6px color-mix(in srgb, var(--ink) 45%, transparent);
  padding: 64px 64px 72px;
}
.entry-inner.wide { max-width: 1260px; }

.entry-title {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(3.2rem, 6.5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-wrap: balance;
  margin-bottom: 14px;
}
.entry-meta { margin-bottom: 56px; color: var(--ink-soft); }

/* ═══ MARGINALIA — organic wear (kept from the field) ═══ */
.mark {
  position: absolute; z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.mark-coffee { top: 90px; right: 9%; width: 170px; transform: rotate(8deg); }
.mark-hook { top: 130px; right: 8%; width: 64px; transform: rotate(-24deg); }
.mark-dirt { bottom: 44px; left: 6%; width: 210px; transform: rotate(-3deg); }
.mark-coffee-sm { top: 39%; left: 4%; width: 116px; transform: rotate(-11deg); }
.mark-scuff { bottom: 150px; right: 8%; width: 190px; transform: rotate(6deg); }
@media (max-width: 900px) {
  .mark-coffee { width: 120px; top: 30px; right: 4%; }
  .mark-hook { width: 46px; top: 78px; right: 5%; }
  .mark-dirt { width: 150px; bottom: 22px; }
  .mark-coffee-sm, .mark-scuff { display: none; }
}

/* ═══ EPHEMERA — objects left on the map (cast shadows, not stains) ═══ */
.object {
  position: absolute; z-index: 2;
  pointer-events: none;
}
.patch-round {
  top: 108px; right: 5%; width: 128px;
  transform: rotate(9deg);
  filter: drop-shadow(0 6px 10px rgba(34, 64, 58, 0.35));
}
.patch-rocker {
  bottom: 44px; right: 6%; width: 168px;
  transform: rotate(-7deg);
  filter: drop-shadow(0 5px 8px rgba(34, 64, 58, 0.3));
}
.bolt-set {
  bottom: 40px; right: 7%; width: 120px;
}
.order-sheet {
  bottom: 90px; left: 3%; width: 216px;
  transform: rotate(-4.5deg);
  background: #FCFBF5;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--ink) 50%, transparent);
  padding: 14px 16px 16px;
}
.order-title {
  font-family: var(--hand); font-weight: 700;
  font-size: 1.15rem; letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.1;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 5px; margin-bottom: 3px;
}
.order-sub {
  font-family: var(--serif); font-style: italic;
  font-size: 0.68rem; color: var(--ink-soft);
  margin-bottom: 8px;
}
.order-rows { list-style: none; }
.order-rows li {
  display: flex; align-items: baseline; gap: 8px;
  border-bottom: 1px dotted color-mix(in srgb, var(--ink) 35%, transparent);
  padding: 3px 0 2px;
}
.order-label {
  flex: 0 0 62px;
  font-family: var(--serif);
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.order-hand {
  font-family: var(--hand); font-weight: 700;
  font-size: 1rem; line-height: 1.1;
  color: var(--ink);
}
.order-stamp {
  position: absolute; right: 10px; bottom: 34px;
  font-family: var(--hand); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); border: 2px solid var(--red);
  padding: 1px 8px;
  transform: rotate(-11deg);
  opacity: 0.85;
}
.matchbook {
  bottom: 64px; right: 7%; width: 94px;
  transform: rotate(7deg);
  filter: drop-shadow(0 6px 9px rgba(34, 64, 58, 0.32));
}
.lure {
  bottom: 64px; right: 5%; width: 158px;
  transform: rotate(-9deg);
  filter: drop-shadow(0 4px 6px rgba(34, 64, 58, 0.28));
}
@media (max-width: 1200px) {
  .order-sheet { left: 1%; width: 190px; }
}
@media (max-width: 900px) {
  .patch-round { width: 92px; top: 30px; right: 4%; }
  .patch-rocker, .order-sheet { display: none; }
  .bolt-set { width: 84px; bottom: 16px; right: 4%; }
  .matchbook { width: 66px; bottom: 24px; right: 5%; }
  .lure { width: 112px; bottom: 20px; right: 4%; }
}

/* ═══ HERO — the chart ═══ */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
  /* title block and cartouche flow in a column: apart when there is room, stacked with a gap when there is not */
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  padding: 112px 4% 6% calc(var(--gutter) + 4%);
}
.chart {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-overlay {
  position: relative; z-index: 1;
  align-self: flex-start;
}
.hero-title {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(4.5rem, 11vw, 11rem);
  line-height: 0.85;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ink);
  transform: rotate(-2deg);
  text-shadow:
    -1px -1px 0 var(--paper), 1px -1px 0 var(--paper),
    -1px 1px 0 var(--paper), 1px 1px 0 var(--paper);
}
.hero-tag {
  margin-top: 14px;
  font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; line-height: 1.6;
  color: var(--ink);
  max-width: 34ch;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  width: fit-content; padding: 2px 6px;
}
.chart-key {
  position: absolute;
  right: 3.5%; bottom: 15%;
  background: var(--paper-bright);
  border: 1.5px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--paper-bright), inset 0 0 0 4px color-mix(in srgb, var(--ink) 50%, transparent);
  padding: 12px 18px 14px;
}
.chart-key-title {
  font-family: var(--hand); font-weight: 700;
  font-size: 1.3rem; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  padding-bottom: 4px; margin-bottom: 8px;
}
.chart-key ul { list-style: none; }
.chart-key li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-style: italic;
  font-size: 0.88rem; line-height: 2;
  color: var(--ink);
}
.chart-key li svg { width: 44px; height: 12px; flex: 0 0 auto; }
@media (max-width: 900px) {
  .chart-key { display: none; }
}

.cartouche {
  position: relative; z-index: 1;
  align-self: flex-start;
  max-width: 480px; width: min(480px, 86vw);
  background: var(--paper-bright);
  border: 1.5px solid var(--ink);
  box-shadow: inset 0 0 0 4px var(--paper-bright), inset 0 0 0 5px color-mix(in srgb, var(--ink) 50%, transparent),
    0 10px 26px -12px color-mix(in srgb, var(--ink) 50%, transparent);
  padding: 26px 30px 28px;
}
.cartouche-kicker {
  font-family: var(--hand); font-weight: 700;
  font-size: 1.5rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  padding-bottom: 8px; margin-bottom: 16px;
}
.cartouche-manifest { margin-bottom: 22px; }
.cartouche-manifest .rule-row { padding: 6px 0; font-size: 0.76rem; color: var(--ink-soft); }
.cartouche-manifest dd { font-weight: 700; color: var(--ink); text-align: right; }

/* ═══ PLATES — field photographs ═══ */
.plate {
  display: flex; flex-direction: column;
  background: #FCFBF5;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  padding: 12px 12px 14px;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--ink) 45%, transparent);
}
.plate-img { order: 1; border: 1px solid var(--ink); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-deep); }
.plate-caption { order: 2; }
.plate-body { order: 3; }
.plate.tilt-l { transform: rotate(-0.7deg); }
.plate.cap-top .plate-caption { order: 0; margin-top: 0; margin-bottom: 10px; }
.plate-img img { width: 100%; height: 100%; object-fit: cover; }
.plate-caption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 10px;
  font-family: var(--hand); font-weight: 700;
  font-size: 1.15rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.plate-no { color: var(--red); }
.plate-body { margin-top: 12px; }
.plate-body h3 {
  font-family: var(--hand); font-weight: 700;
  font-size: 2.1rem; line-height: 0.95;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.plate-body p { font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }

.plate-winter .plate-img { border-color: var(--blue); }
.plate-winter .plate-no { color: var(--blue); }

/* Activities layout */
.plate-lead {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px; align-items: end;
  margin-bottom: 64px;
}
.plate-lead .plate-img { aspect-ratio: 3 / 2; }
.plate-lead-text h3 {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 0.9;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.plate-lead-text > p { color: var(--ink-soft); max-width: 44ch; margin-bottom: 26px; font-size: 1.05rem; }
.data-row { color: var(--ink); font-weight: 700; max-width: 34ch; }
.data-row .rule-fill { border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.data-row span:last-child { color: var(--red); }

.plate-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px;
}
.plate-grid > .plate:nth-child(-n+2) { grid-column: span 3; }
.plate-grid > .plate:nth-child(n+3) { grid-column: span 2; }
.plate-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plate-grid.two > .plate { grid-column: auto; }

/* Winter: the ice sheet */
.entry-winter .entry-inner {
  background: #EEF2F2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cline x1='26' y1='0' x2='0' y2='26' stroke='%2331536B' stroke-opacity='0.10' stroke-width='1'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 5px #EEF2F2, inset 0 0 0 6px color-mix(in srgb, var(--blue) 55%, transparent);
  border-color: var(--blue);
}
.entry-winter .entry-title { color: var(--blue); }
.entry-winter .meta-stamp { color: var(--blue); border-color: var(--blue); }

/* ═══ THE LANDINGS — places registers ═══ */
.register { margin-bottom: 84px; }
.register:last-child { margin-bottom: 0; }
.register-title {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 0.95;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.register-note { color: var(--ink-soft); margin-bottom: 24px; }
.register-note span:last-child { color: var(--red); font-weight: 700; }

.widget-well {
  position: relative;
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 3px #FCFBF5, inset 0 0 0 4px color-mix(in srgb, var(--ink) 35%, transparent);
  background: #FCFBF5;
  padding: 24px;
  min-height: 130px;
}

/* Theme bridge into the Whereabouts shadow DOM: the widget's Panda tokens
   live on :host, so host-level custom properties re-ink the whole register.
   Internals stay third-party; only tokens are ours. */
.widget-well whereabouts-operators-widget {
  /* two voices of the survey */
  --wa-fonts-heading: "Alegreya", Georgia, serif;
  --wa-fonts-body: "Alegreya", Georgia, serif;
  --wa-fonts-sans: "Alegreya", Georgia, serif;
  --wa-fonts-mono: "Alegreya", Georgia, serif;
  /* neutral ink scale → pine ink over map paper */
  --wa-colors-ink-0: #FCFBF5;
  --wa-colors-ink-100: #F8F6EE;
  --wa-colors-ink-200: #F0EDDE;
  --wa-colors-ink-300: #E5E1CE;
  --wa-colors-ink-400: #C6C8B4;
  --wa-colors-ink-500: #9CA894;
  --wa-colors-ink-600: #6E8073;
  --wa-colors-ink-700: #55685F;
  --wa-colors-ink-800: #3E564B;
  --wa-colors-ink-900: #2E4840;
  --wa-colors-ink-1000: #22403A;
  --wa-colors-white: #FCFBF5;
  --wa-colors-black: #22403A;
  /* accents → the survey's inks: lake blue, route red, pine green */
  --wa-colors-blue-100: #EAF0F3;
  --wa-colors-blue-200: #D3E0E7;
  --wa-colors-blue-400: #6E93A9;
  --wa-colors-blue-600: #31536B;
  --wa-colors-blue-800: #244054;
  --wa-colors-red-100: #F7E7E2;
  --wa-colors-red-200: #EDCFC6;
  --wa-colors-red-400: #C1664F;
  --wa-colors-red-600: #9E3B24;
  --wa-colors-red-800: #7E2E1B;
  --wa-colors-green-100: #E4EAE4;
  --wa-colors-green-200: #CFDACF;
  --wa-colors-green-400: #6F8B7B;
  --wa-colors-green-600: #3E5F52;
  --wa-colors-green-800: #22403A;
  --wa-colors-cream-100: #FAF8F0;
  --wa-colors-cream-200: #F2EFE4;
  --wa-colors-cream-400: #D9D4C0;
  --wa-colors-cream-600: #8E8871;
  --wa-colors-cream-800: #5E5A48;
  /* square-corner rule */
  --wa-radii-25: 0; --wa-radii-50: 0; --wa-radii-75: 0; --wa-radii-100: 0;
  --wa-radii-150: 0; --wa-radii-200: 0; --wa-radii-250: 0; --wa-radii-300: 0; --wa-radii-400: 0;
  --wa-radii-xs: 0; --wa-radii-sm: 0; --wa-radii-md: 0; --wa-radii-lg: 0;
  --wa-radii-xl: 0; --wa-radii-2xl: 0; --wa-radii-3xl: 0; --wa-radii-4xl: 0;
  --wa-radii-full: 2px;
  /* drawn depth, ink-tinted */
  --wa-shadows-25: 0 2px 6px -2px rgba(34, 64, 58, 0.22);
  --wa-shadows-50: 0 3px 8px -3px rgba(34, 64, 58, 0.24);
  --wa-shadows-100: 0 4px 10px -4px rgba(34, 64, 58, 0.26);
  --wa-shadows-200: 0 6px 14px -5px rgba(34, 64, 58, 0.28);
  --wa-shadows-300: 0 8px 18px -6px rgba(34, 64, 58, 0.3);
  --wa-shadows-400: 0 10px 22px -8px rgba(34, 64, 58, 0.32);
}
.widget-well::before {
  content: "Loading the live register…";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
}
.widget-well.loaded::before { content: none; }
.widget-well.failed::before { content: "Register unavailable — please check back."; }
.widget-well > * { position: relative; }

.ledger-list { list-style: none; border-top: 1.5px solid var(--ink); }
.ledger-list li { border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.ledger-list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 15px 6px;
  text-decoration: none; color: var(--ink);
}
.ledger-list li.no-link { display: flex; align-items: baseline; gap: 16px; padding: 15px 6px; }
.ledger-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.ledger-note {
  font-style: italic; font-size: 0.9rem; color: var(--ink-soft);
  white-space: nowrap;
}
.ledger-go {
  font-family: var(--hand); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
  border: 1.5px solid transparent;
  padding: 0 9px;
  white-space: nowrap;
  transition: background-color 0.12s linear, color 0.12s linear, border-color 0.12s linear;
}
.ledger-list a:hover .ledger-name, .ledger-list a:active .ledger-name { color: var(--red); }
.ledger-list a:hover .ledger-go, .ledger-list a:active .ledger-go {
  background: var(--red); color: var(--paper); border-color: var(--red);
}
.ledger-local { color: var(--ink-soft); border: 1.5px dotted color-mix(in srgb, var(--ink) 50%, transparent); }

/* ═══ ABOUT BODY ═══ */
.entry-body { max-width: 62ch; font-size: 1.08rem; }
.entry-body p + p { margin-top: 24px; }
.ledger-facts { margin-top: 52px; max-width: 52ch; }
.ledger-facts .rule-row { padding: 9px 0; color: var(--ink-soft); }
.ledger-facts dd { font-weight: 700; color: var(--ink); text-align: right; }

/* ═══ TAKE-OUT — the last sheet ═══ */
.entry-close { padding-bottom: 64px; }
.close-inner { text-align: center; max-width: 820px; }
.close-meta { justify-content: center; margin-bottom: 48px; color: var(--ink-soft); }
.close-cartouche { padding: 0 12px; }
.close-rose { width: 74px; margin: 0 auto 20px; }
.close-title {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.9; letter-spacing: 0.03em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.close-text {
  font-style: italic;
  color: var(--ink-soft);
  max-width: 48ch; margin: 0 auto;
  font-size: 1.12rem;
}
.footer { margin-top: 84px; padding-top: 36px; border-top: 1px dotted color-mix(in srgb, var(--ink) 45%, transparent); }
.footer-logo {
  height: 62px; width: auto; margin: 0 auto 20px;
  background: var(--paper-bright); padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
}
.footer-line {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ═══ MOTION — surveyed in, once, on arrival ═══ */
.js .pre { opacity: 0; transform: translateY(16px); }
.js .inked {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1080px) {
  .plate-grid > .plate:nth-child(n) { grid-column: span 3; }
}
@media (max-width: 900px) {
  .entry { padding: 64px 16px 72px calc(var(--gutter) + 10px); }
  .entry-inner { padding: 40px 26px 48px; }
  .entry-meta { margin-bottom: 40px; }
  /* small screens: the chart stays behind; title and cartouche flow in a column so nothing overlaps */
  .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 30px; padding: 110px 5% 28px; }
  .hero-overlay { position: relative; z-index: 1; top: auto; left: auto; }
  .hero-title { font-size: clamp(3.4rem, 17vw, 7rem); }
  .cartouche { position: relative; z-index: 1; left: auto; right: auto; bottom: auto; width: 100%; max-width: none; padding: 20px 20px 22px; }
  .close-title { font-size: clamp(2.7rem, 12vw, 6rem); }
  .plate-lead { grid-template-columns: 1fr; gap: 30px; margin-bottom: 48px; }
  .plate-grid { grid-template-columns: 1fr; gap: 26px; }
  .plate-grid > .plate:nth-child(n) { grid-column: auto; }
  .plate-grid.two { grid-template-columns: 1fr; }
  .register { margin-bottom: 60px; }
  .footer { margin-top: 64px; }
}
@media (max-width: 560px) {
  .rule-row { font-size: 0.7rem; gap: 9px; }
  .entry-meta { flex-wrap: wrap; row-gap: 4px; }
  .entry-meta .rule-fill { min-width: 1rem; }
  .cartouche-manifest .rule-row { flex-wrap: wrap; }
  .cartouche-manifest dd { flex: 0 0 100%; text-align: left; }
  .ledger-facts .rule-row { flex-wrap: wrap; }
  .ledger-facts dd { flex: 0 0 100%; text-align: left; }
  .ledger-list a, .ledger-list li.no-link { flex-wrap: wrap; row-gap: 4px; }
  .ledger-note { white-space: normal; width: 100%; order: 3; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .pre { opacity: 1; transform: none; }
  .js .portage-stamp { opacity: 1; transform: rotate(-6deg); }
  .route-path { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
