/* venusbet.org, design "atlas": the site as a survey sheet */

@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/alegreya-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/alegreya-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/alegreya-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/alegreya-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/alegreya-sans-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/alegreya-sans-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/alegreya-sans-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/alegreya-sans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* metric-matched fallback so the address keeps its width before (or without) the web font */
@font-face {
  font-family: "Alegreya Fallback";
  src: local("Georgia");
  size-adjust: 86%;
}

:root {
  --paper: #E4EDEA;       /* chart paper, pale sea green */
  --sheet: #F4F8F6;       /* lighter sheet for plates */
  --ink: #17292D;         /* body ink */
  --ink-soft: #2F4648;    /* secondary text, about 9:1 on paper */
  --teal: #0F4B52;        /* deep teal, headings and lines */
  --teal-deep: #0B3338;   /* footer collar */
  --contour: #9DBDB8;     /* contour and rule tint */
  --rust: #A3421C;        /* hazards only */
  --gold: #E5AC00;        /* today's route, primary action */
  --serif: "Alegreya", "Alegreya Fallback", "Iowan Old Style", Georgia, "Segoe UI Symbol", serif;
  --sans: "Alegreya Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 3px;
  --ticks:
    repeating-linear-gradient(90deg, var(--teal) 0 1px, transparent 1px 24px) 0 0 / 100% 6px repeat-x,
    repeating-linear-gradient(90deg, var(--teal) 0 2px, transparent 2px 120px) 0 0 / 100% 12px repeat-x;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.1875rem/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}

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

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--teal);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 1.2rem + 1.9vw, 2.6rem); letter-spacing: -.005em; text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.3rem; font-family: var(--sans); font-weight: 700; color: var(--ink); }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--teal); color: #fff;
  padding: 10px 16px; z-index: 10;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- header ---------- */

.site-header {
  background: var(--sheet);
  position: relative;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal);
  font: 700 1.35rem/1 var(--serif);
  min-height: 44px;
  margin-right: auto;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span span { color: var(--ink-soft); font-weight: 500; }

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font: 700 1rem var(--sans);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--teal); border-bottom-color: var(--contour); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 700; border-bottom-color: var(--gold); }
.nav .extra { display: none; }
.header-go { white-space: nowrap; }

/* independence notice, directly under the header */
.notice-bar {
  background: var(--sheet);
  border-top: 1px solid var(--contour);
  border-bottom: 1px solid var(--contour);
}
.notice-bar p {
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: 8px;
  font: 500 .9375rem/1.4 var(--sans);
  color: var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  font: 700 1.125rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-go { background: var(--gold); color: #10201F; border-color: #C99600; }
.btn-go:hover { background: #F2BC14; color: #10201F; }
.btn-line { background: var(--sheet); color: var(--teal); border-color: var(--teal); }
.btn-line:hover { background: var(--teal); color: #fff; }
.btn-plain { background: var(--sheet); color: var(--teal); border-color: var(--teal); }
.btn-plain:hover { background: #E9F1EE; color: var(--teal); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 1rem; }

/* ---------- hero: the survey sheet ---------- */

.sheet-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--contour);
}
.sheet-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("atlas/contours.svg") 62% 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(100deg, transparent 14%, #000 58%);
          mask-image: linear-gradient(100deg, transparent 14%, #000 58%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "copy  inset"
    "plate inset"
    "fixed fixed";
  column-gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-copy { grid-area: copy; max-width: 40em; }
.plate { grid-area: plate; }
.inset { grid-area: inset; align-self: end; }
.benchmarks { grid-area: fixed; }

.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 0; }

/* the address plate: a sheet with a graduated neatline on all four sides */
.plate {
  --seg-x: 2.5%;          /* 20 dark + 20 light segments across */
  --seg-y: 6.25%;         /* 8 + 8 segments down */
  position: relative;
  container-type: inline-size;
  margin: 40px 6px 6px;
  padding: 34px clamp(18px, 3vw, 34px) 24px;
  background: var(--sheet);
  border: 1px solid var(--teal);
  box-shadow: 0 0 0 5px var(--sheet);
}
.plate::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--teal);
  pointer-events: none;
  background:
    linear-gradient(var(--teal), var(--teal)) 0 0 / 5px 5px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 100% 0 / 5px 5px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 0 100% / 5px 5px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 100% 100% / 5px 5px no-repeat,
    repeating-linear-gradient(90deg, var(--teal) 0 var(--seg-x), transparent 0 calc(var(--seg-x) * 2)) 5px 0 / calc(100% - 10px) 5px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 var(--seg-x), var(--teal) 0 calc(var(--seg-x) * 2)) 5px 100% / calc(100% - 10px) 5px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 var(--seg-y), var(--teal) 0 calc(var(--seg-y) * 2)) 0 5px / 5px calc(100% - 10px) no-repeat,
    repeating-linear-gradient(180deg, var(--teal) 0 var(--seg-y), transparent 0 calc(var(--seg-y) * 2)) 100% 5px / 5px calc(100% - 10px) no-repeat;
}

/* sheet number sits on the top neatline, like a map sheet label */
.sheet-number {
  position: absolute;
  top: -19px;
  right: 28px;
  margin: 0;
  padding: 2px 12px;
  background: var(--teal);
  color: #fff;
  font: italic 700 1rem/1.4 var(--serif);
  z-index: 1;
}

.plate-title {
  font: 700 1.0625rem/1.3 var(--sans);
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.address {
  margin: 0;
  font: 800 clamp(1.9rem, 12.2cqi, 5.5rem)/1.05 var(--serif);
  color: var(--ink);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.address .part { padding-bottom: 8px; background-repeat: no-repeat; background-position: 0 100%; }
.address .part-name { background-image: linear-gradient(var(--teal), var(--teal)); background-size: 100% 4px; }
.address .part-number {
  color: var(--teal);
  background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold));
  background-size: 100% 4px, 100% 4px;
  background-position: 0 100%, 0 calc(100% - 8px);
  padding-bottom: 14px;
}
.address .part-tld { background-image: radial-gradient(circle, var(--teal) 2px, transparent 2.5px); background-size: 10px 5px; background-repeat: repeat-x; }

.legend {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--contour);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
  font-size: 1rem;
  line-height: 1.4;
  color: #2A4245;
}
.legend li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.legend b { display: block; color: var(--ink); font-weight: 700; }
.key { display: block; width: 26px; height: 10px; margin-top: 7px; }
.key-name { border-bottom: 4px solid var(--teal); }
.key-number { border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.key-tld { background: radial-gradient(circle, var(--teal) 2px, transparent 2.5px) 0 50% / 9px 5px repeat-x; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.checked { margin: 14px 0 0; font-size: 1rem; color: var(--ink-soft); }
.checked strong { color: var(--ink); }

.copy-status:empty { margin: 0; }
.copy-status { margin: 6px 0 0; font-size: 1rem; color: var(--teal); font-weight: 700; }

/* fixed addresses band */
.benchmarks {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: rgba(244, 248, 246, .92);
  border-top: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  position: relative;
}
.benchmarks::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 12px;
  background: var(--ticks);
  pointer-events: none;
}
.benchmarks h2 {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px 24px 0;
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem);
}
.benchmark {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 18px 24px 26px;
}
.benchmark + .benchmark { border-left: 1px solid var(--contour); }
.benchmark svg { width: 54px; height: 54px; }
.benchmark h3 { margin: 0 0 2px; font-size: 1.0625rem; color: var(--ink-soft); }
.benchmark .point {
  display: block;
  font: 800 clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem)/1.1 var(--serif);
  color: var(--teal);
  margin-bottom: 8px;
}
.benchmark p { margin: 0; }

/* inset route map */
.inset {
  margin: 40px 0 6px;
  background: var(--sheet);
  border: 1px solid var(--teal);
  padding: 14px 14px 16px;
}
.inset-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
}
#inset-title { font: 700 1.3rem/1.2 var(--serif); color: var(--teal); }
.inset-sub { font: 500 1rem var(--sans); color: #2A4245; }
.inset svg { width: 100%; height: auto; background: #EAF2EF; border: 1px solid var(--contour); }
.route-line { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2.4s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.route-key {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 1rem;
  line-height: 1.35;
}
.route-key li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.route-key svg { width: 22px; height: 22px; background: none; border: 0; }
.route-key b { font-weight: 700; color: var(--ink); }
.route-key .old { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(163, 66, 28, .8); }

/* ---------- sections: each one a sheet with a graduated top edge ---------- */

.section {
  position: relative;
  padding: clamp(52px, 7vw, 96px) 0;
  border-top: 1px solid var(--teal);
}
.section::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 12px;
  background: var(--ticks);
  background-position: 50% 0, 50% 0;
  pointer-events: none;
}
.section-grid {
  background: var(--sheet) url("atlas/graticule.svg") 50% 0 / 120px 120px repeat;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: baseline;
  max-width: 860px;
  margin-bottom: clamp(26px, 4vw, 40px);
}
.section-head h2 { margin: 0 0 .35em; }
.section-head .section-lead { grid-column: 1 / -1; color: var(--ink-soft); font-size: 1.1875rem; margin: 0; max-width: 42em; }

/* sheet reference: a tab hanging from the section's graduated top edge */
.grid-ref {
  position: absolute;
  top: -1px;
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  z-index: 1;
  margin: 0;
  padding: 16px 14px 6px;
  font: italic 500 1rem/1.3 var(--serif);
  color: #fff;
  background: var(--teal);
  white-space: nowrap;
}
.prose .section-head { margin-bottom: 18px; }
.prose { max-width: 720px; }

/* identity record */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.record {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--teal);
  border-left: 5px solid var(--teal);
}
.record div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 4px 16px;
  padding: 14px 20px;
}
.record div + div { border-top: 1px dashed var(--contour); }
.record dt { font-weight: 700; color: var(--ink-soft); }
.record dd { margin: 0; color: var(--ink); }
.record .warn { background: rgba(163, 66, 28, .07); }
.record .warn dd { color: var(--rust); font-weight: 700; }

.note {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--contour);
  max-width: 46em;
}

/* bonuses: one legend sheet, the 250 lira bonus leads */
.bonus-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  background: var(--sheet);
  border: 1px solid var(--teal);
  border-top: 5px solid var(--teal);
}
.bonus { padding: clamp(22px, 3vw, 36px); }
.bonus-side { border-left: 1px solid var(--contour); background: var(--paper); }
.bonus .amount { margin: 0 0 6px; font-family: var(--serif); line-height: 1; }
.bonus-main .amount {
  font-size: clamp(3.6rem, 2.4rem + 4.4vw, 6rem);
  font-weight: 800;
  color: var(--ink);
  display: inline-block;
  padding-bottom: 10px;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 6px no-repeat;
}
.bonus-side .amount { font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.8rem); font-weight: 700; color: var(--teal); }
.bonus h3 { margin: 14px 0 12px; }
.bonus-side h3 { margin-top: 6px; font-size: 1.15rem; }
.terms { margin: 0; padding: 0; list-style: none; }
.terms li { position: relative; padding: 8px 0 8px 26px; border-top: 1px dotted var(--contour); }
.bonus-side .terms li { font-size: 1.0625rem; }
.terms li::before {
  content: "";
  position: absolute;
  left: 2px; top: 18px;
  width: 9px; height: 9px;
  border: 2px solid var(--teal);
  transform: rotate(45deg);
}
.row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 20px; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* deposit limits: one series, linear axis */
.limits { margin: 0; max-width: 980px; }
.limits figcaption { font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.axis, .bars li {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr) 6.5rem;
  gap: 16px;
  align-items: center;
}
.axis {
  position: relative;
  height: 26px;
  color: var(--ink-soft);
}
.axis span { font: 500 .9375rem/1 var(--sans); }
.axis::before { content: ""; grid-column: 1; }
.axis span {
  position: absolute;
  left: calc(12.5rem + 16px + (100% - 19rem - 32px) * var(--at));
  transform: translateX(-50%);
  top: 0;
}
.axis span:first-child { transform: none; }
.axis span:last-child { transform: translateX(-100%); }
.bars { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--teal); }
.bars li { padding: 10px 0; border-bottom: 1px solid var(--contour); }
.bars .method { font-weight: 500; }
.bars .bar {
  height: 14px;
  position: relative;
  background:
    linear-gradient(90deg, var(--contour) 1px, transparent 1px) 0 0 / 25% 100% repeat-x;
}
.bars .bar::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: max(4px, var(--v));
  background: var(--teal);
  border-radius: 0 3px 3px 0;
}
.bars .lowest .bar::before { background: var(--gold); box-shadow: inset 0 0 0 1px #C99600; }
.bars .lowest .method, .bars .lowest .value { font-weight: 700; }
.bars .intermittent .bar::before {
  background: repeating-linear-gradient(135deg, var(--teal) 0 4px, var(--sheet) 4px 7px);
  box-shadow: inset 0 0 0 1.5px var(--teal);
}
.bars .value { font: 700 1.125rem/1 var(--serif); text-align: right; }

/* official accounts: gazetteer index */
.gazetteer { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--teal); max-width: 980px; }
.gazetteer li {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--contour);
}
.gazetteer .place { font: 700 1.25rem/1.2 var(--serif); color: var(--teal); }
.gazetteer .desc { color: var(--ink-soft); }
.gazetteer a { font: 700 1.15rem var(--serif); min-height: 44px; display: inline-flex; align-items: center; }

/* hazards: a hatched danger-area edge beside the list */
.hazard h2 { color: var(--rust); }
.hazard-zone {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
}
.hazard-zone::before {
  content: "";
  border: 2px solid var(--rust);
  background: repeating-linear-gradient(45deg, var(--rust) 0 3px, transparent 3px 11px);
}
.hazard-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  counter-reset: hz;
}
.hazard-list li {
  counter-increment: hz;
  position: relative;
  padding: 18px 0 18px 54px;
  border-top: 1px solid var(--rust);
}
.hazard-list li::before {
  content: counter(hz);
  position: absolute;
  left: 0; top: 16px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font: 800 1.15rem var(--serif);
  color: #fff;
  background: var(--rust);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  padding-top: 10px;
}
.hazard-list b { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: 2px; }
.hazard-list p { margin: 0; }

/* faq: heading in the margin, questions numbered like index entries */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.faq-layout .section-head { grid-template-columns: 1fr; row-gap: 10px; justify-items: start; }
.faq { border-top: 2px solid var(--teal); counter-reset: q; }
.faq details { border-bottom: 1px solid var(--contour); counter-increment: q; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 2.2em 1fr 30px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 0;
  font: 700 1.2rem/1.3 var(--serif);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: counter(q);
  font: italic 700 1.2rem/1 var(--serif);
  color: var(--teal);
  border-right: 1px solid var(--contour);
  padding: 6px 0;
}
.faq summary::after {
  content: "";
  width: 26px; height: 26px;
  justify-self: end;
  border: 1.5px solid var(--teal);
  background:
    linear-gradient(var(--teal), var(--teal)) 50% 50% / 12px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 50% 50% / 2px 12px no-repeat;
}
.faq details[open] summary::after {
  background: var(--teal) linear-gradient(#fff, #fff) 50% 50% / 12px 2px no-repeat;
}
.faq summary:hover { color: var(--teal); }
.faq .answer { padding: 0 44px 20px calc(2.2em + 12px); }
.faq .answer p:last-child { margin: 0; }

/* ---------- inner page ---------- */

.crumbs { font-size: 1rem; margin: 0 0 6px; color: var(--ink-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-soft); }
.crumbs a, .crumbs [aria-current] { display: inline-flex; min-height: 44px; align-items: center; }

.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("atlas/contours.svg") 90% 20% / 1440px auto no-repeat;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 80%);
          mask-image: linear-gradient(100deg, transparent 35%, #000 80%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; padding-top: 10px; padding-bottom: clamp(36px, 5vw, 60px); }
.page-hero .lead { max-width: 36em; }

.strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 32px;
  align-items: end;
  padding: 22px 26px;
  background: var(--sheet);
  border: 1px solid var(--teal);
  border-left: 8px solid var(--gold);
  max-width: 980px;
}
.strip-address { container-type: inline-size; min-width: 0; }
.strip .plate-title { margin: 0 0 6px; }
.strip .address { font-size: clamp(2.25rem, 12cqi, 4rem); }
.strip .address .part { padding-bottom: 5px; }
.strip .address .part-number { padding-bottom: 5px; background-size: 100% 4px, 0 0; }
.strip .checked { margin-top: 22px; }
.strip .actions { margin: 0; }
.fallback { margin: 16px 0 0; max-width: 980px; color: var(--ink); }
.fallback b { color: var(--teal); font-family: var(--serif); font-size: 1.1em; }

/* route with waypoints */
.route { list-style: none; margin: 0; padding: 0; position: relative; max-width: 800px; }
.route li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px; top: 50px; bottom: 0;
  border-left: 4px dashed var(--gold);
}
.route li {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding-bottom: 30px;
}
.route li:last-child { padding-bottom: 0; }
.waypoint {
  position: relative;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sheet);
  border: 2px solid var(--teal);
  font: 800 1.3rem var(--serif);
  color: var(--teal);
}
.route li:last-child .waypoint { background: var(--gold); border-color: #C99600; color: #10201F; }
.route h3 { margin: 10px 0 6px; }
.route p { margin: 0; }

.setup {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--teal);
  border-top: 5px solid var(--teal);
  background: var(--sheet);
}
.setup li { padding: 22px; }
.setup li + li { border-left: 1px dashed var(--teal); }
.setup .step-no { font: italic 700 1.0625rem var(--serif); color: var(--teal); display: block; margin-bottom: 6px; }
.setup b { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.setup p { margin: 0; color: var(--ink-soft); }

.trouble { width: 100%; max-width: 980px; border-collapse: collapse; }
.trouble caption { text-align: left; color: var(--ink); font-weight: 700; padding-bottom: 10px; }
.trouble th, .trouble td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--contour); }
.trouble thead th { font: 700 1rem var(--sans); color: var(--ink-soft); border-bottom: 2px solid var(--teal); }
.trouble tbody th { font: 700 1.15rem/1.35 var(--serif); color: var(--ink); width: 36%; }
.trouble td p { margin: 0 0 .5em; }
.trouble td p:last-child { margin: 0; }
.trouble + .more-link { margin-top: 18px; }

.aside-note {
  margin-top: 28px;
  max-width: 800px;
  padding: 16px 20px 16px 56px;
  position: relative;
  border: 1px solid var(--rust);
  border-left: 5px solid var(--rust);
  background: #F6EEEA;
}
.aside-note svg { position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; }
.aside-note p { margin: 0; }

.end-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 24px 48px;
  align-items: center;
}
.end-grid p { margin: 0; max-width: 40em; }
.end .actions { margin: 0; }

/* ---------- footer: the map collar ---------- */

.site-footer {
  position: relative;
  background: var(--teal-deep);
  color: #D9E7E4;
  padding: 60px 0 28px;
  font-size: 1rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, #8FB5AF 0 1px, transparent 1px 24px) 50% 0 / 100% 6px repeat-x,
    repeating-linear-gradient(90deg, #8FB5AF 0 2px, transparent 2px 120px) 50% 0 / 100% 12px repeat-x;
}
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--gold); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 48px;
}
.foot-brand { font: 700 1.5rem var(--serif); color: #fff; margin: 0 0 14px; }
.colophon { margin: 0; border: 1px solid #3C6A6F; }
.colophon div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 14px; }
.colophon div + div { border-top: 1px solid #3C6A6F; }
.colophon dt { font: italic 500 1rem var(--serif); color: #B9D0CC; }
.colophon dd { margin: 0; color: #fff; }
.foot-nav ul {
  list-style: none; margin: 0; padding: 0;
  columns: 3 11em;
  column-gap: 24px;
}
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #3C6A6F;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: start;
}
.age {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 2px solid #fff;
  border-radius: 50%;
  font: 800 1.1rem var(--serif);
  color: #fff;
}
.foot-legal p { margin: 0 0 .4em; }
.foot-legal .disclaimer { color: #fff; font-weight: 700; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "plate" "fixed" "inset";
  }
  .inset { max-width: 560px; align-self: start; }
  .split, .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { margin-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 1000px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; }
  .js .nav.open {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--sheet);
    border-bottom: 2px solid var(--teal);
    padding: 8px var(--gutter) 16px;
  }
  .nav ul { flex-direction: column; }
  .nav a { border-bottom: 1px solid var(--contour); }
  .menu-toggle { margin-left: auto; }
}

@media (max-width: 600px) {
  .site-header .header-go { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 1.0625rem; }
  .lead { font-size: 1.125rem; }
  .sheet-hero::before { -webkit-mask-image: none; mask-image: none; opacity: .7; background-position: 70% 0; background-size: 1100px auto; }
  .hero-copy {
    background: rgba(228, 237, 234, .88);
    box-shadow: 0 0 0 12px rgba(228, 237, 234, .88);
    margin: 4px 0;
  }
  .plate { --seg-x: 5%; --seg-y: 5%; padding: 32px 16px 20px; margin-top: 34px; }
  .sheet-number { right: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .legend { grid-template-columns: 1fr; gap: 8px; }
  .benchmarks { grid-template-columns: 1fr; }
  .benchmarks h2 { padding: 24px 16px 0; }
  .benchmark { padding: 16px 16px 22px; grid-template-columns: 40px 1fr; gap: 14px; }
  .benchmark svg { width: 40px; height: 40px; }
  .benchmark + .benchmark { border-left: 0; border-top: 1px solid var(--contour); }
  .section-head { grid-template-columns: 1fr; }
  .section-head .section-lead { font-size: 1.0625rem; }
  .record div { grid-template-columns: 1fr; padding: 12px 16px; }
  .bonus-sheet { grid-template-columns: 1fr; }
  .bonus-side { border-left: 0; border-top: 1px solid var(--contour); }
  .bars li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "method value" "bar bar"; gap: 6px 12px; }
  .bars .method { grid-area: method; }
  .bars .value { grid-area: value; }
  .bars .bar { grid-area: bar; }
  .axis { display: block; height: 24px; margin-top: 4px; }
  .axis span { left: calc(100% * var(--at)); }
  .limits figcaption { margin-bottom: 8px; }
  .gazetteer li { grid-template-columns: 1fr; gap: 0; }
  .hazard-zone { grid-template-columns: 20px minmax(0, 1fr); gap: 16px; }
  .hazard-list { grid-template-columns: 1fr; }
  .setup { grid-template-columns: 1fr; }
  .setup li + li { border-left: 0; border-top: 1px dashed var(--teal); }
  .strip { grid-template-columns: 1fr; padding: 18px 14px; border-left-width: 6px; }
  .strip .actions .btn { flex: 1 1 100%; }
  .end-grid { grid-template-columns: 1fr; }
  .end .actions .btn { flex: 1 1 100%; }
  .trouble thead { display: none; }
  .trouble, .trouble tbody, .trouble tr, .trouble th, .trouble td { display: block; width: auto; }
  .trouble tbody th { width: auto; padding: 18px 0 6px; border-bottom: 0; }
  .trouble td { padding: 0 0 18px; }
  .faq summary { grid-template-columns: 1.8em 1fr 28px; font-size: 1.125rem; }
  .faq .answer { padding: 0 0 18px calc(1.8em + 12px); }
  .foot-legal { grid-template-columns: 1fr; }
  .foot-nav ul { columns: 2; }
}

@media (max-width: 400px) {
  .brand { font-size: 1.2rem; }
  .brand svg { width: 30px; height: 30px; }
  .plate { padding: 32px 12px 18px; }
  .btn { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .route-line { stroke-dashoffset: 0; }
}

/* ==========================================================
   generated pages: shared components added for the build
   ========================================================== */

/* "all pages" disclosure in the header */
.nav .all-pages { position: relative; }
.all-pages summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  cursor: pointer;
  color: var(--teal);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.all-pages summary::-webkit-details-marker { display: none; }
.all-pages summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.all-pages[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.all-pages summary:hover { border-bottom-color: var(--contour); }
.nav .all-pages ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(13em, 1fr));
  gap: 0 18px;
  width: max-content;
  max-width: min(36rem, calc(100vw - 2 * var(--gutter)));
  padding: 10px 18px 12px;
  background: var(--sheet);
  border: 1px solid var(--teal);
  border-top: 4px solid var(--teal);
  box-shadow: 0 10px 24px rgba(15, 75, 82, .16);
}
.nav .all-pages li a { border-bottom: 1px dotted var(--contour); padding: 0 4px; }

/* inner page and home: body of a section, prose plus a margin note */
.section-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.section-body.no-margin { grid-template-columns: minmax(0, 1fr); }
.section-body .prose { max-width: 760px; }

.prose h3 { margin: 1.6em 0 .55em; font-size: 1.25rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }

.prose ul { list-style: none; margin: 0 0 1.1em; padding: 0; }
.prose ul > li { position: relative; padding: 6px 0 6px 28px; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 3px; top: 1em;
  width: 9px; height: 9px;
  border: 2px solid var(--teal);
  transform: rotate(45deg);
}

.prose ol { list-style: none; margin: 0 0 1.1em; padding: 0; counter-reset: step; }
.prose ol > li {
  counter-increment: step;
  position: relative;
  padding: 8px 0 14px 52px;
  min-height: 48px;
}
.prose ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 4px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sheet);
  border: 2px solid var(--teal);
  font: 800 1.05rem/1 var(--serif);
  color: var(--teal);
}
.prose ol > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px; top: 42px; bottom: -4px;
  border-left: 2px dashed var(--gold);
}

/* tables: a printed index with a heavy top rule */
.table-frame { margin: 0 0 1.4em; }
.prose table { width: 100%; border-collapse: collapse; background: var(--sheet); border-top: 3px solid var(--teal); font-size: 1.0625rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--contour); }
.prose thead th { font: 700 .9375rem/1.3 var(--sans); color: var(--ink-soft); background: #EAF2EF; border-bottom: 2px solid var(--teal); }
.prose tbody td:first-child { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.prose tbody tr:last-child td { border-bottom: 1px solid var(--teal); }

/* margin note: a marginal annotation beside the sheet */
.margin-note {
  position: relative;
  padding: 18px 20px 18px;
  background: var(--sheet);
  border: 1px solid var(--teal);
  border-top: 5px solid var(--teal);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.margin-note .margin-label {
  display: block;
  margin: 0 0 8px;
  font: italic 700 1rem/1.2 var(--serif);
  color: var(--teal);
}
.margin-note p { margin: 0 0 .6em; }
.margin-note p:last-child { margin: 0; }
.hazard .margin-note { border-color: var(--rust); border-top-color: var(--rust); background: #F6EEEA; }
.hazard .margin-note .margin-label { color: var(--rust); }

/* call to action placed inside the text */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 1.2em; }

/* address unavailable: point to the permanent address */
.address-fallback { margin: 12px 0 0; font-size: 1rem; color: var(--ink); max-width: 36em; }
.address-fallback b { color: var(--teal); }

/* related pages: an index of neighbouring sheets */
.related-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0 32px;
  border-top: 2px solid var(--teal);
}
.related-list li { border-bottom: 1px solid var(--contour); }
.related-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 4px 12px;
  align-items: start;
  min-height: 44px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--ink);
}
.related-list .related-title { font: 700 1.25rem/1.2 var(--serif); color: var(--teal); }
.related-list .related-desc { grid-column: 1; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
.related-list a::after {
  content: "";
  grid-column: 2; grid-row: 1;
  width: 12px; height: 12px;
  margin-top: 7px;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  transform: rotate(45deg);
}
.related-list a:hover .related-title { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }

/* blog hub */
.hub-list { columns: 2 16em; column-gap: 32px; }
.hub-list li { break-inside: avoid; }

@media (max-width: 980px) {
  .section-body { grid-template-columns: minmax(0, 1fr); }
  .section-body .margin-note { max-width: 760px; }
}

@media (max-width: 1000px) {
  .js .nav.open { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav .all-pages ul {
    position: static;
    display: block;
    width: auto;
    max-width: none;
    padding: 0 0 0 14px;
    border: 0;
    border-left: 3px solid var(--gold);
    box-shadow: none;
    background: transparent;
  }
  .all-pages summary { border-bottom: 1px solid var(--contour); justify-content: space-between; }
}

@media (max-width: 700px) {
  .prose table { font-size: 1rem; }
  .prose th, .prose td { padding: 10px 10px; }
  /* three or more columns: each row becomes a small record card */
  .stacked table, .stacked tbody, .stacked tr, .stacked td { display: block; width: auto; }
  .stacked thead { display: none; }
  .stacked tr { padding: 10px 14px; border-bottom: 1px solid var(--teal); }
  .stacked td { border: 0; padding: 4px 0; display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 12px; }
  .stacked td::before { content: attr(data-label); font: 700 .875rem/1.4 var(--sans); color: var(--ink-soft); padding-top: 2px; }
  .stacked tbody td:first-child { display: block; font-size: 1.125rem; padding: 2px 0 6px; }
  .stacked tbody td:first-child::before { content: none; }
  .stacked tbody tr.status { background: #F6EEEA; }
  .stacked tbody tr:last-child td { border-bottom: 0; }
  .prose ol > li { padding-left: 46px; }
  .margin-note { padding: 16px; }
}

/* generated sections: the heading sits closer to its text than in the draft's showcase blocks */
.section-body { margin-top: -6px; }
.section .section-head:has(+ .section-body) { margin-bottom: clamp(18px, 2.4vw, 26px); }
@media (min-width: 981px) {
  .section-body .margin-note { position: sticky; top: 24px; }
}

/* ==========================================================
   review fixes: draft components inside generated sections
   ========================================================== */

/* components rendered from JSON blocks sit under the prose, at the draft's width */
.blocks { display: grid; gap: clamp(22px, 3vw, 32px); max-width: 980px; }
.section-body + .blocks { margin-top: clamp(26px, 3.4vw, 40px); }
.blocks .prose { max-width: 760px; }
.blocks .prose > :last-child, .blocks .note { margin-bottom: 0; }
.block-bars .note { margin-top: 16px; }
.blocks .aside-note { margin-top: 0; }
.blocks .trouble td p { margin: 0 0 .5em; }
.block-accounts .gazetteer a { word-break: break-word; }

/* text column next to an identity record instead of a margin note */
.section-body.with-side { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.section-body.with-side .side { min-width: 0; }

/* the legal-status row of a table, highlighted like the draft's record */
.prose tr.status td { background: rgba(163, 66, 28, .07); color: var(--rust); font-weight: 700; }
.prose tbody tr.status td:first-child { color: var(--rust); }

/* readable text on the graticule sheets: a solid backing behind running text */
.section-grid .section-body > .prose,
.section-grid .blocks > .block,
.section-grid .section-lead,
.section-grid .related-list,
.section-grid .faq,
.section-grid .end-grid > div:first-child {
  background: var(--sheet);
  box-shadow: 0 0 0 14px var(--sheet);
}
.section-grid .section-body > .prose:empty { display: none; }

/* end band */
.end h2 { margin-bottom: .4em; }
.end-grid p { margin: 0 0 .6em; }
.end-grid p:last-child { margin: 0; }

/* inner page without an address strip */
.page-hero-plain .wrap { padding-bottom: clamp(30px, 4vw, 48px); }

@media (max-width: 980px) {
  .section-body.with-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  /* keep the contour lines out of the hero text */
  .page-hero::before { opacity: .35; -webkit-mask-image: none; mask-image: none; background-position: right -160px top -40px; background-size: 760px auto; }
  .section-grid .section-body > .prose,
  .section-grid .blocks > .block,
  .section-grid .section-lead,
  .section-grid .related-list,
  .section-grid .faq,
  .section-grid .end-grid > div:first-child { box-shadow: 0 0 0 12px var(--sheet); }
  .trouble tbody tr { border-bottom: 1px solid var(--contour); }
  .blocks { gap: 22px; }
}

.prose .note { margin-bottom: 1.1em; }
