/* T1Days: "Ground you know" (1 Nov 2026, Jamie chose option A).
   The site is an Irish hill-walking map. Cara is a hiking psychotherapist (Hike Psych) and the app's
   look is a trail map, so a day with type 1 is a walk: glucose is height, 3.9–10 is "the good ground",
   moments are numbered waypoints, the programme is a route card. Map paper with the Irish Grid,
   condensed map lettering (Archivo), italic place-name lettering (Source Serif 4) for annotations,
   magenta for the route and actions, contour brown, water blue, and the yellow arrow on a black
   post from Ireland's waymarked trails. Fonts are served from this site (no Google request). */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-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: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-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: 'Source Serif 4'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url(/fonts/source-serif-4-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: 'Source Serif 4'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url(/fonts/source-serif-4-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; }

:root {
  --paper: #FBFBF7;
  --paper-map: #FDFDF9;
  --paper-2: #F1F2EA;
  --paper-3: #C9CCC2;
  --ink: #1D2321;
  --ink-2: #444E49;
  --ink-3: #636C67;
  --night-ink: #EEF0EA;
  --night-2: #CDD3CD;
  --night-3: #B9C0BA;
  --mag: #C3155B;
  --mag-deep: #8C0D40;
  --mag-soft: #FFD9E6;
  --contour: #B9692C;
  --water: #2377B4;
  --wood: #DDEBCC;
  --good: #E3EFD3;
  --good-edge: #8FB06C;
  --good-ink: #4F7A30;
  --waymark: #F4C431;
  --grid: rgba(35, 119, 180, 0.11);
  --rule: rgba(29, 35, 33, 0.2);
  --sans: 'Archivo', system-ui, sans-serif;
  --it: 'Source Serif 4', Georgia, serif;
  --max: 1260px;
  --gutter: clamp(16px, 4vw, 56px);
  /* Older names, still used by the practice pages. */
  --moss: var(--ink);
  --orange: var(--mag);
  --blue: var(--water);
  --band: var(--good);
  --serif: var(--sans);
  --hand: var(--it);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 17.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  /* The Irish Grid: 1 km squares across the whole sheet. */
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px; background-position: -1px -1px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden, .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Lettering ---------- */
h1, h2 { font-family: var(--sans); font-stretch: 62%; font-weight: 800; line-height: 0.95; letter-spacing: -0.005em; }
h2 { font-size: clamp(40px, 5.6vw, 78px); }
h3 { font-stretch: 85%; font-weight: 700; font-size: 22px; line-height: 1.2; }
/* Section labels are grid references: "O 162 228  Route notes". */
.ref, .label { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font: 600 13px/1.2 var(--sans); font-stretch: 75%; letter-spacing: 0.06em; color: var(--mag); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.ref b { color: var(--ink); font-weight: 700; letter-spacing: 0.02em; }
.label.orange { color: var(--mag); }
.it, .hand { font-family: var(--it); font-style: italic; font-weight: 400; }
.trail { text-decoration: underline dashed var(--mag); text-decoration-thickness: 0.07em; text-underline-offset: 0.14em; text-decoration-skip-ink: none; }

/* ---------- Waymarker and buttons ---------- */
.wm { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--ink); flex: none; }
.wm svg { width: 16px; height: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; font: 650 16px/1 var(--sans); text-decoration: none; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn:has(.wm) { padding-left: 14px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.go, .btn.solid { background: var(--mag); border-color: var(--mag); color: #fff; }
.btn.go:hover, .btn.solid:hover { background: var(--mag-deep); border-color: var(--mag-deep); color: #fff; }
.btn.line { background: var(--paper); color: var(--ink); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
@media (hover: none) { .btn.line:hover, .btn:not(.go):not(.solid):hover { background: var(--paper); color: var(--ink); } }

/* ---------- Header: the cover of the sheet ---------- */
.site-head { border-bottom: 2px solid var(--ink); background: var(--paper); position: relative; z-index: 5; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.sheet { display: grid; place-items: center; width: 52px; height: 52px; background: var(--mag); color: #fff; font: 800 25px/1 var(--sans); font-stretch: 62%; flex: none; }
.brand .word { display: grid; line-height: 1; }
.brand .word b { font: 800 30px/1 var(--sans); font-stretch: 70%; }
.brand .word small { font: 600 11.5px/1 var(--sans); font-stretch: 80%; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 5px; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; font-size: 15px; font-weight: 550; }
.nav a:not(.btn) { text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { text-decoration: underline dashed var(--mag); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
.nav .btn:has(.wm) { padding-left: 10px; }
.who { font: 500 14px/1.3 var(--sans); color: var(--ink-3); }

/* ---------- Hero: the day as a walk ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 6vw, 80px); }
.hero-top { display: grid; grid-template-columns: 1.45fr 0.75fr; gap: 32px 56px; align-items: end; }
.hero h1 { font-size: clamp(44px, 7.2vw, 108px); }
/* "not a leaflet." keeps its own line on wider screens, so the last word never sits alone. */
@media (min-width: 900px) { .hero h1 .tail { display: block; } }
.cover { border: 2px solid var(--ink); background: var(--paper); }
.cover .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font: 600 13px/1.3 var(--sans); font-stretch: 80%; letter-spacing: 0.04em; }
.cover .row span:last-child { color: var(--mag); text-align: right; }
.cover p { padding: 16px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.cover p + p { padding-top: 0; }

.guide { margin-top: clamp(32px, 5vw, 56px); border: 2px solid var(--ink); background: var(--paper); position: relative; }
.guide .map { position: relative; border-bottom: 2px solid var(--ink); background: var(--paper-map); }
.guide .map svg { width: 100%; height: auto; }
.guide .profile { padding: 16px 18px 8px 54px; position: relative; }
.guide .profile svg { width: 100%; height: auto; overflow: visible; }
.guide .yaxis { position: absolute; left: 10px; top: 16px; bottom: 30px; display: flex; flex-direction: column; justify-content: space-between; font: 600 11px/1 var(--sans); font-stretch: 75%; color: var(--ink-3); }
.guide .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 10px 18px 14px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
.key-row { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.key-row i { display: inline-block; width: 26px; height: 10px; vertical-align: -1px; margin-right: 7px; }
.k-good { background: var(--good); border: 1px solid #b9cfa1; }
.k-route { background: repeating-linear-gradient(90deg, var(--mag) 0 6px, transparent 6px 10px); height: 3px !important; vertical-align: 3px !important; }
.k-height { background: repeating-linear-gradient(135deg, var(--contour) 0 1px, transparent 1px 5px); border-top: 2px solid var(--ink); }
.corner { position: absolute; font: 600 11px/1 var(--sans); font-stretch: 75%; color: var(--water); letter-spacing: 0.04em; }
.map .lbl { font-family: var(--it); font-style: italic; font-size: 19px; fill: var(--ink); paint-order: stroke; stroke: var(--paper-map); stroke-width: 6px; stroke-linejoin: round; }
.map .lbl .t { font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 14px; fill: var(--mag); letter-spacing: 0.04em; }
.waypoints { display: none; list-style: none; border-top: 2px solid var(--ink); }
.waypoints li { display: grid; grid-template-columns: 34px 52px 1fr; gap: 8px; align-items: baseline; padding: 9px 14px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.waypoints li:last-child { border-bottom: 0; }
.waypoints b { color: var(--mag); font-size: 14px; font-variant-numeric: tabular-nums; }
.waypoints .it { font-size: 17px; }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--mag); background: #fff; color: var(--mag); font: 800 12.5px/1 var(--sans); flex: none; }
/* Without the script there's no map: show the waypoints as a list. */
html:not(.js) .guide .map, html:not(.js) .guide .profile { display: none; }
html:not(.js) .waypoints { display: block; border-top: 0; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.caveat { max-width: 540px; font-size: 14.5px; color: var(--ink-3); }

/* ---------- Route notes: where it gets hard ---------- */
.notes { padding-block: clamp(56px, 8vw, 112px); }
.notes .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px 72px; }
.notes .side { position: sticky; top: 24px; align-self: start; }
.notes ol { list-style: none; border-top: 2px solid var(--ink); }
.notes li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.sym { width: 64px; height: 64px; border: 1.5px solid var(--ink); background: #fff; display: grid; place-items: center; }
.sym svg { width: 58px; height: 58px; }
.notes li p { color: var(--ink-2); margin-top: 6px; }
.notes .after { grid-column: 1 / -1; font-family: var(--sans); font-stretch: 75%; font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; max-width: 1040px; }
.notes .after .trail { text-decoration-thickness: 3px; }

/* ---------- Ninety days: the ridgeline as contour lines ---------- */
.days { padding-block: 0 clamp(56px, 8vw, 112px); }
.days .frame { border: 2px solid var(--ink); background: var(--paper-map); }
.days .bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; padding: 22px 22px 18px; border-bottom: 2px solid var(--ink); }
.days .bar .ref { margin-bottom: 10px; }
.days-sub { color: var(--ink-2); max-width: 520px; font-size: 16.5px; }
.days-figure { margin: 0; }
.days-canvas { position: relative; width: 100%; height: clamp(300px, 36vw, 500px); overflow: hidden; }
.days-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.days-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.days-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 12px/1 var(--sans); font-stretch: 80%; color: var(--ink-3); padding: 12px 18px 0; }
.days-cap .hand { font-size: 18px; color: var(--mag); }
.days-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 14px 18px 18px; border-top: 1px solid var(--rule); margin-top: 12px; }
.days-note { font-size: 13.5px; color: var(--ink-3); }
.ridge-notes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ridge-note { position: absolute; transform: translate(-50%, calc(-100% - 14px)); font: italic 400 18px/1.1 var(--it); color: var(--ink); white-space: nowrap; background: rgba(253, 253, 249, 0.9); padding: 2px 7px 4px; border: 1px solid var(--rule); }
.ridge-note::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 12px; background: repeating-linear-gradient(var(--mag) 0 3px, transparent 3px 6px); }
.ridge-note.below { transform: translate(-50%, 14px); }
.ridge-note.below::after { top: auto; bottom: 100%; }
.ridge-day { position: absolute; left: 18px; top: 12px; margin: 0; font: italic 400 21px/1.1 var(--it); color: var(--mag); pointer-events: none; max-width: calc(100% - 36px); }
.days.live .days-canvas { cursor: crosshair; }
.days:not(.live) .ridge-pick, .days:not(.live) .days-cap .on-hover, .days:not(.live) .days-cap .on-touch { display: none; }
.on-touch { display: none; }
@media (hover: none) { .on-hover { display: none; } .on-touch { display: inline; } }
.ridge-list { display: none; margin: 12px 18px 0; list-style: none; flex-direction: column; gap: 4px; font: italic 400 18px/1.2 var(--it); color: var(--ink); }

/* ---------- Your guides: Cara's words (ink, the night sheet) ---------- */
.guides { padding-block: clamp(64px, 9vw, 120px); background: var(--ink); color: var(--night-ink);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 120px 120px; }
.guides .ref { color: var(--waymark); }
.guides .ref b { color: #fff; }
.guides .top-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px 72px; align-items: center; }
.photo-frame { position: relative; border: 2px solid currentColor; padding: 10px; }
.guides .photo-frame { max-width: 440px; }
.photo-frame img { width: 100%; height: auto; }
.photo-frame figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font: 600 12.5px/1.2 var(--sans); font-stretch: 80%; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; }
.photo-frame .pin { position: absolute; top: -14px; right: -14px; width: 30px; height: 30px; font-size: 14px; }
.guides blockquote p { font: 700 clamp(34px, 4.4vw, 62px)/1.02 var(--sans); font-stretch: 62%; }
.guides blockquote p::before { content: '“'; color: var(--mag); }
.guides blockquote p::after { content: '”'; color: var(--mag); }
.guides blockquote footer { margin-top: 18px; color: var(--night-3); font-size: 15.5px; }
.guides blockquote footer b { color: #fff; font-weight: 700; margin-right: 8px; }

/* ---------- The legend: what's different ---------- */
.legend { padding-block: clamp(56px, 8vw, 112px); }
.legend .box { border: 2px solid var(--ink); background: var(--paper); }
.legend .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; background: var(--ink); color: var(--paper); }
.legend .bar h2 { font-size: clamp(30px, 3.6vw, 48px); }
.legend .bar span { font: 600 13px/1.2 var(--sans); font-stretch: 80%; letter-spacing: 0.06em; color: var(--waymark); text-align: right; text-transform: uppercase; }
.legend .three { display: grid; grid-template-columns: repeat(3, 1fr); }
.legend .three > div { padding: 28px 24px 30px; border-right: 1px solid var(--rule); }
.legend .three > div:last-child { border-right: 0; }
.legend .sw { height: 92px; margin-bottom: 18px; border: 1.5px solid var(--ink); background: #fff; }
.legend .sw svg { width: 100%; height: 100%; }
.legend .three .big { display: block; font: 800 46px/1 var(--sans); font-stretch: 62%; margin-bottom: 6px; }
.legend .three p { color: var(--ink-2); margin-top: 8px; font-size: 16.5px; }
.legend .look { border-top: 2px solid var(--ink); padding: 24px 22px 26px; display: grid; grid-template-columns: 220px 1fr; gap: 20px 32px; }
.legend .look h3 { font-size: 20px; }
.legend .look ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 28px; }
.legend .look li { display: flex; align-items: center; gap: 14px; font-size: 16.5px; }
.legend .look li svg { width: 40px; height: 22px; flex: none; }
.legend .look .small { grid-column: 2; font-size: 14.5px; color: var(--ink-3); }

/* ---------- Not another list of rules: the signpost and your map ---------- */
.spread { padding-block: 0 clamp(56px, 8vw, 112px); }
.spread .head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; align-items: end; margin-bottom: 32px; }
.spread .head p { color: var(--ink-2); max-width: 520px; }
.pairs { border: 2px solid var(--ink); background: var(--paper); }
.pairs .cols { display: grid; grid-template-columns: 1fr 90px 1.3fr; background: var(--ink); color: var(--paper); font: 600 12.5px/1 var(--sans); font-stretch: 80%; letter-spacing: 0.07em; text-transform: uppercase; }
.pairs .cols span { padding: 12px 20px; }
.pair { display: grid; grid-template-columns: 1fr 90px 1.3fr; align-items: center; border-bottom: 1px solid var(--rule); }
.pair:last-child { border-bottom: 0; }
.pair .leaflet { padding: 22px 20px; color: var(--ink-3); font-size: 17px; }
.pair .leaflet small, .pair .life small { display: none; }
.pair svg { width: 70px; height: 24px; justify-self: center; }
.pair svg path { fill: none; stroke: var(--mag); stroke-width: 2.5; stroke-dasharray: 5 4; }
.pair .life { padding: 22px 20px; font: 700 clamp(20px, 2vw, 26px)/1.2 var(--sans); font-stretch: 75%; }
.spread .foot { margin-top: 18px; color: var(--ink-3); font-size: 15px; max-width: 760px; }

/* ---------- Our story: the kitchen table ---------- */
.story { padding-block: clamp(56px, 8vw, 112px); border-top: 2px solid var(--ink); }
.story .grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px 72px; align-items: start; }
.story .lede { font: 600 clamp(22px, 2.2vw, 28px)/1.3 var(--sans); font-stretch: 80%; margin: 20px 0 16px; }
.story .copy p:not(.lede):not(.ref) { color: var(--ink-2); }
.fieldbook { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.fieldbook .photo-frame { grid-column: 1 / -1; background: #fff; color: var(--ink); }
.notebook { border: 2px solid var(--ink); background: #fff;
  background-image: linear-gradient(rgba(35,119,180,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(35,119,180,.16) 1px, transparent 1px); background-size: 20px 20px;
  padding: 16px 18px; font: italic 400 19px/1.55 var(--it); }
.notebook .top { font: 600 12px/1 var(--sans); font-style: normal; font-stretch: 80%; letter-spacing: 0.06em; color: var(--mag); margin-bottom: 8px; text-transform: uppercase; }
.notebook .crossed { text-decoration: line-through; text-decoration-color: var(--mag); color: var(--ink-3); }
.notebook .circled { border: 2px solid var(--mag); border-radius: 50%; padding: 0 6px; }
.printout { border: 2px solid var(--ink); background: #fff; padding: 12px 12px 10px; }
.printout .cap { display: flex; justify-content: space-between; font: 600 11px/1 var(--sans); font-stretch: 80%; color: var(--ink-3); margin-top: 6px; }
.printout .title { font: 600 12px/1 var(--sans); font-stretch: 80%; letter-spacing: 0.06em; color: var(--mag); margin-bottom: 8px; text-transform: uppercase; }
.tag-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--ink); color: #fff; font: 700 19px/1.25 var(--sans); font-stretch: 80%; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; margin-top: clamp(48px, 7vw, 88px); border-top: 2px solid var(--ink); padding-top: 36px; }
.person { display: grid; grid-template-columns: 64px 1fr; gap: 20px; }
.person .initial { width: 64px; height: 64px; background: var(--mag); color: #fff; display: grid; place-items: center; font: 800 30px/1 var(--sans); font-stretch: 62%; }
.person .initial.j { background: var(--ink); }
.person h3 { font-size: 34px; font-stretch: 62%; font-weight: 800; line-height: 1; }
.person .role { font: 600 13px/1.3 var(--sans); font-stretch: 80%; letter-spacing: 0.05em; color: var(--mag); margin: 6px 0 14px; text-transform: uppercase; }
.person p { color: var(--ink-2); font-size: 16.5px; }
.person p + p { margin-top: 12px; }
.person a { text-decoration-color: var(--mag); text-underline-offset: 3px; }

/* ---------- For the people beside you: the companion ---------- */
.beside { padding-block: clamp(56px, 8vw, 112px); background: var(--paper-2); border-block: 2px solid var(--ink); }
.beside .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px 72px; align-items: center; }
.beside .lede { margin: 20px 0 22px; color: var(--ink-2); font-size: 18px; max-width: 600px; }
.beside ul { list-style: none; border-top: 2px solid var(--ink); }
.beside li { display: grid; grid-template-columns: 170px 1fr; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.beside li b { font-weight: 700; font-stretch: 85%; }
.beside li span { color: var(--ink-2); font-size: 16.5px; }
.beside .honest { margin-top: 18px; padding: 14px 16px; border: 2px solid var(--ink); background: var(--paper); font-size: 15.5px; }
.night { justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 17; border-radius: 40px; border: 10px solid var(--ink); background: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px;
  color: #fff; padding: 46px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.night .clock { text-align: center; font: 800 64px/1 var(--sans); font-stretch: 62%; font-variant-numeric: tabular-nums; }
.night .date { text-align: center; font-size: 15px; color: var(--night-3); margin-bottom: 14px; }
.ping { display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 10px; padding: 12px; background: rgba(253,253,249,0.94); color: var(--ink); border-left: 4px solid var(--mag); }
.ping .ico img { width: 34px; height: 34px; }
.ping .ico { grid-row: 1 / span 2; }
.ping strong { font-size: 14.5px; font-stretch: 90%; }
.ping time { font-size: 12px; color: var(--ink-3); }
.ping p { grid-column: 2 / -1; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.ping .ts { font-weight: 700; color: var(--mag); margin-right: 4px; }
.night .ex { margin-top: auto; text-align: center; font: italic 400 15px/1 var(--it); color: var(--night-3); }

/* ---------- Route card: how it works ---------- */
.route { padding-block: clamp(56px, 8vw, 112px); }
.route .head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; align-items: end; margin-bottom: 36px; }
.route .head p { color: var(--ink-2); max-width: 520px; }
.climb { border: 2px solid var(--ink); border-bottom: 0; background: #fff; }
.climb svg { width: 100%; height: auto; }
.card { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); background: var(--paper); }
.card th, .card td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.card thead th { background: var(--ink); color: var(--paper); font: 600 12.5px/1 var(--sans); font-stretch: 80%; letter-spacing: 0.07em; padding-block: 12px; text-transform: uppercase; }
.card td:first-child { width: 72px; }
.card td.when { width: 180px; font-weight: 700; color: var(--mag); font-variant-numeric: tabular-nums; }
.card td h3 { margin-bottom: 4px; }
.card td p { color: var(--ink-2); font-size: 16.5px; max-width: 680px; }

/* ---------- Results, with consent (hidden until a real, consented report) ---------- */
.results { padding-block: clamp(56px, 8vw, 112px); }
.results .head { margin-bottom: 24px; }
.results .head .sub { color: var(--ink-2); max-width: 720px; margin-top: 14px; }
.placeholder-note { border: 2px dashed var(--mag); padding: 12px 16px; margin-bottom: 18px; font-size: 15px; }
.report { margin: 0; background: #fff; border: 2px solid var(--ink); padding: clamp(18px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.report-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
.report-top .label { margin: 0; color: var(--ink-3); }
.periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.period { display: flex; flex-direction: column; gap: 14px; padding-right: clamp(16px, 3vw, 40px); }
.period + .period { padding-right: 0; padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--rule); }
.period .when { font: 600 18px/1.35 var(--sans); font-stretch: 85%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tag { font: 700 12px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; background: var(--ink); color: #fff; }
.tag.after { background: var(--mag); }
.agp { width: 100%; height: 180px; }
.agp .target { fill: var(--good); }
.agp .iqr { fill: rgba(185, 105, 44, 0.18); }
.agp .median { fill: none; stroke: var(--ink); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.axis { display: flex; justify-content: space-between; font: 600 11.5px/1 var(--sans); color: var(--ink-3); }
.stats { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr; gap: 12px 14px; border-top: 1px solid var(--rule); padding-top: 16px; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats dt { font: 600 12px/1.3 var(--sans); font-stretch: 80%; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { font: 800 clamp(28px, 3vw, 40px)/1 var(--sans); font-stretch: 62%; white-space: nowrap; }
.stats dd small { font: 500 12px/1 var(--sans); color: var(--ink-3); margin-left: 3px; }
.stats .tir dd { font-size: clamp(46px, 5vw, 68px); color: var(--good-ink); }
.report .bar { display: flex; height: 14px; overflow: hidden; border: 1px solid var(--ink); }
.report .bar i { display: block; height: 100%; }
.report .bar .vh, .key .k-vh { background: #C9762F; }
.report .bar .h, .key .k-h { background: #E9B872; }
.report .bar .in, .key .k-in { background: #4E8A5E; }
.report .bar .lo, .key .k-lo { background: #C24A3A; }
.report .bar .vlo { background: #7E1F17; }
.key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--ink-3); }
.key span { display: inline-flex; align-items: center; gap: 8px; }
.key i { width: 14px; height: 10px; display: inline-block; }
.key .k-band { background: rgba(185, 105, 44, 0.3); }
.key .k-med { height: 2.5px; background: var(--ink); }
.key .k-day { height: 1.5px; background: var(--contour); }
.key .ridge-only { display: none; }
.report:has(.ridge-mini.live) .key .agp-only { display: none; }
.report:has(.ridge-mini.live) .key .ridge-only { display: inline-flex; }
.ridge-mini { position: relative; height: 200px; }
.ridge-mini .agp { width: 100%; height: 100%; }
.ridge-mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ridge-mini.live .agp { visibility: hidden; }
.report-cap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; border-top: 1px solid var(--rule); padding-top: 18px; }
.report-cap .hand { font-size: 22px; line-height: 1.25; }
.report-cap p:last-child { font-size: 15px; color: var(--ink-3); }

/* ---------- Programmes: choose your route ---------- */
.listing { padding-block: clamp(56px, 8vw, 112px); border-top: 2px solid var(--ink); }
.listing .head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; align-items: end; margin-bottom: 32px; }
.listing .head .sub { color: var(--ink-2); max-width: 520px; }
.routes { border: 2px solid var(--ink); background: var(--paper); }
.offer { display: grid; grid-template-columns: 0.9fr 1.4fr 0.7fr; gap: 16px 32px; padding: 26px 22px; border-bottom: 1px solid var(--rule); align-items: start; }
.offer:last-child { border-bottom: 0; }
.offer .name { font: 800 clamp(30px, 3vw, 40px)/1 var(--sans); font-stretch: 62%; display: flex; flex-direction: column; gap: 10px; }
.offer .name small { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.2 var(--sans); font-stretch: 80%; letter-spacing: 0.05em; color: var(--mag); text-transform: uppercase; }
.offer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.offer li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-2); font-size: 16.5px; }
.offer li::before { content: ''; width: 18px; height: 3px; margin-top: 11px; background: repeating-linear-gradient(90deg, var(--mag) 0 5px, transparent 5px 8px); }
.offer .price { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.offer .price strong { font: 800 34px/1 var(--sans); font-stretch: 62%; }
.offer.featured { background: var(--ink); color: var(--paper);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 60px 60px; }
.offer.featured .name small { color: var(--waymark); }
.offer.featured li { color: var(--night-2); }
.offer.featured .btn { border-color: var(--mag); }
.listing .foot { margin-top: 16px; color: var(--ink-3); font-size: 15px; }

/* ---------- Plain answers ---------- */
.answers { padding-block: clamp(56px, 8vw, 112px); border-top: 2px solid var(--ink); }
.answers .grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px 72px; }
.answers .side { position: sticky; top: 24px; align-self: start; }
.rule-card { margin-top: 28px; border: 2px solid var(--ink); background: var(--paper); }
.rule-card p:first-child { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: #fff; font: 800 22px/1 var(--sans); font-stretch: 62%; }
.rule-card p:last-child { padding: 16px; font-size: 17px; }
.qa { border-top: 2px solid var(--ink); }
.qa article { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.qa h3 { font-size: 22px; margin-bottom: 6px; }
.qa p { color: var(--ink-2); }

/* ---------- Talk to us: the cover colour ---------- */
.talk { background: var(--mag); color: #fff; padding-block: clamp(64px, 9vw, 112px); }
.talk .grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px 72px; }
.talk .ref { color: var(--mag-soft); }
.talk .ref b { color: #fff; }
.talk h2 { font-size: clamp(44px, 6vw, 88px); }
.talk .intro p:not(.ref) { margin-top: 18px; font-size: 18px; max-width: 420px; color: #FFE6EE; }
.talk .sign { font: italic 400 24px/1 var(--it) !important; color: #fff !important; }
.talk form { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; align-content: start; }
.talk label { display: grid; gap: 8px; font-weight: 650; font-size: 16px; }
.talk label small { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.talk textarea, .talk input[type=text], .talk input[type=email] { font: 400 17px/1.5 var(--sans); padding: 12px 14px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; width: 100%; }
.talk textarea:focus, .talk input:focus { outline: 3px solid var(--water); outline-offset: 0; }
.talk .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.talk .consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--ink-2); }
.talk .consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--mag); flex: none; }
.talk .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.talk .send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { font: 600 15.5px/1.4 var(--sans); color: var(--good-ink); }
.form-note.bad { color: var(--mag); }

/* ---------- Footer: scale bar and north point ---------- */
.site-foot { padding-block: 44px 56px; background: var(--paper); border-top: 2px solid var(--ink); }
.site-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.scale { display: grid; gap: 6px; font: 600 12px/1 var(--sans); font-stretch: 80%; color: var(--ink-3); }
.scale .bars { display: flex; border: 1.5px solid var(--ink); width: min(420px, 80vw); height: 10px; }
.scale .bars i { flex: 1; }
.scale .bars i:nth-child(odd) { background: var(--ink); }
.scale .ticks { display: flex; justify-content: space-between; width: min(420px, 80vw); font-variant-numeric: tabular-nums; }
.north svg { width: 34px; height: 54px; }
.site-foot .legal { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px 48px; padding-top: 20px; font-size: 14px; color: var(--ink-3); }
.site-foot .legal p + p { margin-top: 8px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; align-content: start; font-weight: 600; color: var(--ink); }

/* ---------- Motion (all of it stops under reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
.draw { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); }
.draw.in, .drawn .draw { animation: draw 2.6s cubic-bezier(.5,0,.2,1) forwards; }
html:not(.js) .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pop { opacity: 0; transition: opacity .5s; }
.drawn .pop { opacity: 1; }

/* ---------- Narrower screens ---------- */
@media (max-width: 960px) {
  .hero-top, .notes .wrap, .guides .top-row, .route .head, .talk .grid, .story .grid, .beside .grid, .answers .grid, .spread .head, .listing .head { grid-template-columns: 1fr; }
  .notes .side, .answers .side { position: static; }
  .legend .three { grid-template-columns: 1fr; }
  .legend .three > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .legend .look { grid-template-columns: 1fr; }
  .legend .look .small { grid-column: 1; }
  .people { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .site-foot .legal { grid-template-columns: 1fr; }
  .site-foot nav { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; background-size: 80px 80px; }
  body:not(.practice) .nav a:not(.btn) { display: none; }
  .map .lbl { display: none; }
  .waypoints { display: block; }
  .guide .profile { padding-left: 40px; }
  .corner { display: none; }
  .card thead { display: none; }
  .card tr { display: grid; grid-template-columns: 52px 1fr; padding: 14px 12px; border-bottom: 1px solid var(--rule); }
  .card td { border: 0; padding: 0; }
  .card td.when { grid-column: 2; width: auto; padding-bottom: 4px; }
  .card td:first-child { grid-row: 1 / span 2; width: auto; }
  .card td:last-child { grid-column: 2; }
  .talk .two { grid-template-columns: 1fr; }
  .legend .bar, .days .bar { flex-direction: column; align-items: flex-start; }
  .legend .bar span { text-align: left; }
  .pairs .cols { display: none; }
  .pair { grid-template-columns: 1fr; }
  .pair .leaflet { padding: 16px 16px 4px; }
  .pair .leaflet small, .pair .life small { display: block; font: 600 11.5px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; color: var(--mag); }
  .pair svg { justify-self: start; margin-left: 16px; transform: rotate(90deg); width: 40px; }
  .pair .life { padding: 4px 16px 18px; }
  .fieldbook { grid-template-columns: 1fr; }
  .beside li { grid-template-columns: 1fr; }
  .days-canvas { height: 78vw; }
  .ridge-notes { display: none; }
  .ridge-list:not(:empty) { display: flex; }
  .days-cap { flex-wrap: wrap; }
  .days-cap .hand { order: 3; flex-basis: 100%; text-align: center; }
  .periods { grid-template-columns: 1fr; gap: 28px; }
  .period, .period + .period { padding: 0; border-left: 0; }
  .period + .period { border-top: 1px solid var(--rule); padding-top: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .tir { grid-column: 1 / -1; }
  .report-cap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .draw.in, .drawn .draw { animation: none; }
  .pop { opacity: 1; transition: none; }
  .btn { transition: none; }
}

/* Grid-reference labels keep their colour inside section heads. */
.head p.ref { color: var(--mag); max-width: none; }
