/* Seaweed Radar: shared sheet for every page.
   Idea: a pilot book (sailing directions) printed on chart paper. Navy chart ink,
   chart magenta for notices and the one action, land in roman type, water in italic
   (the chart-maker's rule). Phone first (390), desktop from 900 px (designed at 1280).
   No JavaScript anywhere; the offer swaps state with :target or a server-side class. */

@font-face {
  font-family: "Brygada 1918";
  src: url("/fixed/type/Brygada1918-Variable.e5f15ca62e.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brygada 1918";
  src: url("/fixed/type/Brygada1918-VariableItalic.a0de27c9ce.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Mono";
  src: url("/fixed/type/RedHatMono-Variable.f4bef0a36d.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* page */
  --paper: #F6F5EF;      /* chart paper */
  --ink: #142A47;        /* chart navy: text, outlines */
  --ink-2: #4A5A70;      /* secondary text, 6.6:1 on paper */
  --rule: #B9C1CC;       /* hairlines only, never text */
  --sea: #DCEAF0;        /* water in drawings */
  --sea-line: #6F95AE;   /* depth contours */
  --sea-ink: #2B5877;    /* water names, 6.9:1 on --sea */
  --land: #EDE3C8;       /* land in drawings only */
  --magenta: #9E1F63;    /* notices, limits, the one action: 7.1:1 on paper */

  /* the four levels: a light-to-dark ramp, so they read in greyscale too */
  --low: #DDEEF1;
  --warning: #E8C23A;
  --medium: #E39046;
  --high: #6E2A12;

  --serif: "Brygada 1918", Georgia, "Times New Roman", serif;
  --mono: "Red Hat Mono", ui-monospace, Menlo, Consolas, monospace;

  /* 4/8 spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px;

  --step: 17px;          /* one level of height in the gauge and the 14-day strip */
}

[data-level="low"]     { --lvl: var(--low);     --on-lvl: var(--ink);   --n: 1; }
[data-level="warning"] { --lvl: var(--warning); --on-lvl: var(--ink);   --n: 2; }
[data-level="medium"]  { --lvl: var(--medium);  --on-lvl: var(--ink);   --n: 3; }
[data-level="high"]    { --lvl: var(--high);    --on-lvl: var(--paper); --n: 4; }

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-text-size-adjust: 100%;
  font-kerning: normal;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1.125rem;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p, dd, li { text-wrap: pretty; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.quiet {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- the sheet: one grid per page ---------- */

.sheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--s4);
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}
.sheet > * { grid-column: 1 / -1; min-width: 0; }

.pilot-head, .reading, .wrackline, .almanac, .bearing, .notice-row, .soundings, .datum,
.landfall, .coasts, .key, .tideline-body {
  display: grid;
  grid-template-columns: subgrid;
  align-content: start;
}
.reading > *, .wrackline > *, .almanac > *, .bearing > *, .notice-row > *, .soundings > *,
.datum > *, .landfall > *, .coasts > *, .key > *, .tideline-body > * {
  grid-column: 1 / -1; min-width: 0;
}

/* section heads: a real heading, set like a pilot book's paragraph head */
.leg-title {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.leg-sub {
  margin-top: var(--s1);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

/* ---------- neatline: the graduated border of a chart ---------- */

.neatline {
  height: 10px;
  border-block: 1.5px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 48px, var(--paper) 48px 96px);
}
.neatline--on-ink {
  border-color: var(--paper);
  background: repeating-linear-gradient(90deg, var(--paper) 0 48px, var(--ink) 48px 96px);
}

/* ---------- pilot-head: the site's masthead ---------- */

.pilot-head {
  padding-block: 14px;
  border-bottom: 1px solid var(--ink);
}
.pilot-head-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.pilot-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.pilot-mark i { font-weight: 500; }
.pilot-weed { width: 30px; height: 22px; flex: none; }
.pilot-nav {
  display: flex;
  gap: var(--s5);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- buoy: a level, always colour + letter + word ---------- */

.buoy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.buoy-letter {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--lvl);
  color: var(--on-lvl);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.8125rem;
}

/* ================= beach page ================= */

/* ---------- reading: the answer, the level, the age ---------- */

.reading { padding-block: 28px 40px; row-gap: 0; }
.reading-title {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.reading-place {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.reading-answer {
  margin-top: var(--s4);
  font-size: 1.625rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.reading-level {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--high);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}
.reading-gloss {
  margin-top: var(--s3);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.45;
  max-width: 34em;
}

/* gauge: the tide staff. Four steps, the current one solid, the rest hatched. */
.gauge { margin-top: var(--s5); }
.gauge-staff {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 6px;
  align-items: end;
}
.gauge-step { display: grid; row-gap: 6px; }
.gauge-bar {
  display: grid;
  align-items: end;
  justify-items: start;
  height: calc(var(--n) * var(--step));
  padding: 0 6px 2px;
  border: 1px solid var(--ink-2);
  border-radius: 2px 2px 0 0;
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(20, 42, 71, 0.16) 5px 6px);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--ink-2);
}
.gauge-word {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 16px;
  color: var(--ink-2);
}
.gauge-step[aria-current] .gauge-bar {
  background: var(--lvl);
  color: var(--on-lvl);
  border: 2px solid var(--ink);
  font-size: 1.75rem;
  font-weight: 700;
  padding: 0 8px 4px;
}
.gauge-step[aria-current] .gauge-word {
  color: var(--ink);
  font-weight: 700;
}
.gauge-age {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 22px;
}
.gauge-age strong { font-weight: 700; }

/* ---------- wrackline: the last 14 days ---------- */

.wrackline { padding-block: 32px 40px; border-top: 1px solid var(--ink); }
.wrack {
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  column-gap: 3px;
  align-items: end;
  /* the strand line under the bars */
  background: linear-gradient(var(--ink), var(--ink)) left bottom 24px / 100% 2px no-repeat;
}
.wrack-day { display: grid; row-gap: 8px; justify-items: stretch; }
.wrack-bar {
  display: grid;
  align-items: end;
  justify-items: center;
  height: calc(var(--n) * 18px);
  padding-bottom: 3px;
  background: var(--lvl);
  color: var(--on-lvl);
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.wrack-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 16px;
  text-align: center;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.wrack-note {
  margin-top: var(--s4);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- almanac: month by month, as a tide table ---------- */

.almanac { padding-block: 32px 40px; border-top: 1px solid var(--ink); }
.almanac-key {
  margin-top: var(--s4);
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px var(--s5);
}
.almanac-table {
  margin-top: var(--s5);
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.almanac-table col.almanac-c-month { width: 52px; }
.almanac-table col.almanac-c-count { width: 30px; }
.almanac-table thead th {
  height: 34px;
  padding: 0 0 6px;
  vertical-align: bottom;
  font-weight: 500;
  color: var(--ink-2);
  text-align: left;
  border-bottom: 2px solid var(--ink);
}
.almanac-table thead th.almanac-count { text-align: right; }
.almanac-table thead .buoy-letter { width: 22px; height: 22px; font-size: 0.75rem; }
.almanac-year th {
  height: 34px;
  padding: 10px 0 4px;
  vertical-align: bottom;
  text-align: left;
  font-family: var(--serif);
  font-style: normal;
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
}
.almanac-month th, .almanac-month td {
  height: 30px;
  padding: 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.almanac-month th { text-align: left; font-weight: 500; }
.almanac-month th small { display: block; margin-top: 2px; font-size: 0.6875rem; color: var(--ink-2); font-weight: 400; }
.almanac-month .almanac-bar { padding-inline: 6px 10px; }
.almanac-table abbr { text-decoration: none; }
.almanac-track {
  display: flex;
  height: 16px;
  width: calc(var(--days) / 31 * 100%);
  outline: 1.5px solid var(--ink);
  outline-offset: -0.75px;
}
.almanac-seg {
  flex: 0 0 calc(var(--d) / var(--days) * 100%);
  background: var(--lvl);
}
.almanac-seg + .almanac-seg { box-shadow: inset 1px 0 0 var(--paper); }
/* A month's bar takes its day counts from data-days and data-d (not style attributes, which the
   content policy refuses). Same widths as before. */
.almanac-track[data-days="1"] { --days: 1; } .almanac-track[data-days="2"] { --days: 2; }
.almanac-track[data-days="3"] { --days: 3; } .almanac-track[data-days="4"] { --days: 4; }
.almanac-track[data-days="5"] { --days: 5; } .almanac-track[data-days="6"] { --days: 6; }
.almanac-track[data-days="7"] { --days: 7; } .almanac-track[data-days="8"] { --days: 8; }
.almanac-track[data-days="9"] { --days: 9; } .almanac-track[data-days="10"] { --days: 10; }
.almanac-track[data-days="11"] { --days: 11; } .almanac-track[data-days="12"] { --days: 12; }
.almanac-track[data-days="13"] { --days: 13; } .almanac-track[data-days="14"] { --days: 14; }
.almanac-track[data-days="15"] { --days: 15; } .almanac-track[data-days="16"] { --days: 16; }
.almanac-track[data-days="17"] { --days: 17; } .almanac-track[data-days="18"] { --days: 18; }
.almanac-track[data-days="19"] { --days: 19; } .almanac-track[data-days="20"] { --days: 20; }
.almanac-track[data-days="21"] { --days: 21; } .almanac-track[data-days="22"] { --days: 22; }
.almanac-track[data-days="23"] { --days: 23; } .almanac-track[data-days="24"] { --days: 24; }
.almanac-track[data-days="25"] { --days: 25; } .almanac-track[data-days="26"] { --days: 26; }
.almanac-track[data-days="27"] { --days: 27; } .almanac-track[data-days="28"] { --days: 28; }
.almanac-track[data-days="29"] { --days: 29; } .almanac-track[data-days="30"] { --days: 30; }
.almanac-track[data-days="31"] { --days: 31; }
.almanac-seg[data-d="1"] { --d: 1; } .almanac-seg[data-d="2"] { --d: 2; }
.almanac-seg[data-d="3"] { --d: 3; } .almanac-seg[data-d="4"] { --d: 4; }
.almanac-seg[data-d="5"] { --d: 5; } .almanac-seg[data-d="6"] { --d: 6; }
.almanac-seg[data-d="7"] { --d: 7; } .almanac-seg[data-d="8"] { --d: 8; }
.almanac-seg[data-d="9"] { --d: 9; } .almanac-seg[data-d="10"] { --d: 10; }
.almanac-seg[data-d="11"] { --d: 11; } .almanac-seg[data-d="12"] { --d: 12; }
.almanac-seg[data-d="13"] { --d: 13; } .almanac-seg[data-d="14"] { --d: 14; }
.almanac-seg[data-d="15"] { --d: 15; } .almanac-seg[data-d="16"] { --d: 16; }
.almanac-seg[data-d="17"] { --d: 17; } .almanac-seg[data-d="18"] { --d: 18; }
.almanac-seg[data-d="19"] { --d: 19; } .almanac-seg[data-d="20"] { --d: 20; }
.almanac-seg[data-d="21"] { --d: 21; } .almanac-seg[data-d="22"] { --d: 22; }
.almanac-seg[data-d="23"] { --d: 23; } .almanac-seg[data-d="24"] { --d: 24; }
.almanac-seg[data-d="25"] { --d: 25; } .almanac-seg[data-d="26"] { --d: 26; }
.almanac-seg[data-d="27"] { --d: 27; } .almanac-seg[data-d="28"] { --d: 28; }
.almanac-seg[data-d="29"] { --d: 29; } .almanac-seg[data-d="30"] { --d: 30; }
.almanac-seg[data-d="31"] { --d: 31; }
.almanac-count { text-align: right; }
.almanac-count.is-nil { color: var(--ink-2); }

/* ---------- bearing: which way the beach faces, and the sheltered neighbour ---------- */

.bearing { padding-block: 32px 40px; border-top: 1px solid var(--ink); }
.bearing-facing {
  margin-top: var(--s3);
  font-size: 1.625rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.bearing-facing i { font-weight: 500; }
.bearing-why { margin-top: var(--s3); font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }
.bearing-chart { margin-top: var(--s5); }
.bearing-chart svg { display: block; width: 100%; height: auto; }
.bearing-chart figcaption {
  margin-top: var(--s2);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 18px;
  color: var(--ink-2);
}
.lee {
  margin-top: var(--s5);
  padding-left: var(--s4);
  border-left: 3px solid var(--ink);
}
.lee-title { font-size: 1.125rem; line-height: 1.3; }
.lee-where { margin-top: var(--s1); font-size: 1.25rem; line-height: 1.35; }
.lee-where a { font-weight: 600; }
.lee-same { margin-top: var(--s2); font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }

/* chart drawing */
.chart-sea { fill: var(--sea); }
.chart-face { fill: none; stroke: var(--ink); stroke-width: 2; }
.chart-face-head { fill: var(--ink); }
.chart-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.chart-frame { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.chart-name { font-family: var(--serif); font-size: 16px; font-weight: 600; fill: var(--ink); }
.chart-note { font-family: var(--mono); font-size: 14px; fill: var(--ink); }
.chart-north { font-family: var(--serif); font-size: 15px; font-weight: 700; fill: var(--ink); }
.chart-halo { paint-order: stroke; stroke: var(--sea); stroke-width: 4px; stroke-linejoin: round; }

/* ---------- notice: the offer, set as a notice to mariners in chart magenta ---------- */

.notice-row { padding-block: 32px 40px; border-top: 1px solid var(--ink); }
.notice {
  border: 2px solid var(--magenta);
  border-radius: 2px;
  padding: 20px;
  background: var(--paper);
}
.notice-label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--magenta);
}
.notice-text {
  margin-top: 10px;
  font-size: 1.25rem;
  line-height: 1.4;
}
.notice-price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1;
}
.notice-figure {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.notice-take {
  margin-top: var(--s4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s5);
  border: 0;
  border-radius: 2px;
  background: var(--magenta);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}
.notice-take:hover { background: #821950; text-decoration: none; }
.notice-fine {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
  color: var(--ink-2);
}
.notice-field { margin-top: var(--s4); display: grid; row-gap: 6px; }
.notice-field-name {
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 20px;
  font-weight: 600;
}
.notice-field-name span { font-weight: 400; color: var(--ink-2); }
.notice-input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: #FFFFFF;
  font-family: var(--mono);
  font-size: 1rem;
}
.notice-input::placeholder { color: var(--ink-2); }
select.notice-input {
  appearance: none;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23142A47' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 40px;
}

/* the two states. Default: the offer. After the tap (#notice-list is the target), the sign-up replaces it. */
.notice-list { display: none; }
.notice-list:target { display: block; }
.notice:has(.notice-list:target) .notice-offer { display: none; }

/* ---------- soundings: questions and answers ---------- */

.soundings { padding-block: 32px 40px; border-top: 1px solid var(--ink); }
.soundings-list { margin-top: var(--s5); display: grid; row-gap: var(--s5); }
.sounding dt { font-size: 1.1875rem; line-height: 1.35; font-weight: 600; }
.sounding dd { margin-top: 6px; font-size: 1.0625rem; line-height: 1.5; }

/* ---------- datum: sources and limits ---------- */

.datum { padding-block: 32px 48px; border-top: 1px solid var(--ink); }
.datum-credit {
  margin-top: var(--s4);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 600;
}
.datum-text { margin-top: var(--s3); font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.datum-text em { font-style: italic; color: var(--ink); }

/* ---------- tideline: the footer, which grows to the bottom of the window ---------- */

.tideline {
  flex: 1 0 auto;
  background: var(--ink);
  color: var(--paper);
}
.tideline-body { padding-block: 32px 40px; row-gap: var(--s5); }
.tideline-title {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C4CDD9;
}
.tideline-list { margin-top: var(--s2); display: grid; row-gap: 2px; }
.tideline-list a { display: inline-block; padding-block: 4px; font-size: 1.0625rem; line-height: 24px; }
.tideline-list--site { grid-template-columns: repeat(2, max-content); column-gap: var(--s6); }
.tideline-list--site a { font-family: var(--mono); font-size: 0.9375rem; }
.tideline-maker {
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 22px;
  color: #C4CDD9;
}

/* ================= home page ================= */

.landfall { padding-block: 28px 40px; }
.landfall-title {
  font-size: 1.625rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.landfall-title i { font-weight: 500; }
.landfall-date {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 22px;
}

.coasts { border-top: 1px solid var(--ink); }
.coast { padding-block: 28px 8px; }
.coast + .coast { border-top: 1px solid var(--rule); }
.coast-name { font-size: 1.5rem; line-height: 1.2; }
.coast-where {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
  color: var(--ink-2);
}
.coast-beaches { margin-top: var(--s3); }
.coast-beach + .coast-beach { border-top: 1px solid var(--rule); }
.coast-beach a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--s3);
  min-height: 60px;
  padding-block: 8px;
  text-decoration: none;
}
.coast-beach-name { font-size: 1.1875rem; line-height: 24px; font-weight: 600; }
.coast-beach a:hover .coast-beach-name { text-decoration: underline; text-underline-offset: 0.18em; }
.coast-beach-date {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 18px;
  color: var(--ink-2);
}
.coast-beach .buoy { grid-column: 2; grid-row: 1 / span 2; }
.coast-beach .buoy-word { min-width: 4.4em; }

.key { padding-block: 32px 48px; border-top: 1px solid var(--ink); }
.key-points { margin-top: var(--s5); display: grid; row-gap: var(--s4); counter-reset: key; }
.key-point {
  position: relative;
  padding-left: 40px;
  font-size: 1.0625rem;
  line-height: 1.5;
  counter-increment: key;
}
.key-point::before {
  content: counter(key);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}
.key-legend {
  margin-top: var(--s6);
  padding-top: var(--s3);
  border-top: 2px solid var(--ink);
}
.key-legend-list {
  margin-top: var(--s3);
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px var(--s6);
}
.key-legend-note {
  margin-top: var(--s4);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
  color: var(--ink-2);
}
.key-legend-title {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ================= desktop: 12 columns from 900 px ================= */

@media (min-width: 900px) {
  :root { --step: 30px; }
  body { font-size: 1.1875rem; }

  .sheet {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--s5);
    padding-inline: 40px;
  }

  .pilot-head { padding-block: 18px; }
  .pilot-mark { font-size: 1.375rem; }

  .leg-title { font-size: 1.75rem; }

  .reading { padding-block: 56px 64px; }
  .reading-title, .reading-place, .reading-answer, .reading-gloss { grid-column: 1 / 9; }
  .reading-title { font-size: 1.625rem; }
  .reading-answer { margin-top: var(--s5); font-size: 3rem; line-height: 1.1; letter-spacing: -0.02em; }
  .reading-gloss { margin-top: var(--s4); font-size: 1.3125rem; }
  .gauge { grid-column: 9 / -1; grid-row: 1 / span 4; align-self: end; margin-top: 0; }
  .gauge-staff { column-gap: 8px; }
  .gauge-bar { padding: 0 8px 4px; font-size: 0.875rem; }
  .gauge-step[aria-current] .gauge-bar { font-size: 2.75rem; padding: 0 10px 6px; }
  .gauge-word { font-size: 0.875rem; }

  .wrackline { padding-block: 56px 64px; }
  .wrackline .leg-title, .wrackline .leg-sub, .wrack { grid-column: 1 / 9; }
  .wrack { column-gap: 6px; margin-top: var(--s6); }
  .wrack-bar { height: calc(var(--n) * 24px); font-size: 0.875rem; padding-bottom: 5px; }
  .wrack-date { font-size: 0.8125rem; }
  .wrack-note { grid-column: 9 / -1; grid-row: 1 / span 3; align-self: end; margin-top: 0; font-size: 1.0625rem; }

  .almanac { padding-block: 56px 64px; }
  .almanac .leg-title, .almanac .leg-sub, .almanac-table { grid-column: 1 / 10; }
  .almanac-key {
    grid-column: 10 / -1; grid-row: 1 / span 3; align-self: start;
    grid-template-columns: max-content; margin-top: 6px; padding-left: var(--s5);
    border-left: 1px solid var(--ink);
  }
  .almanac-table { margin-top: var(--s6); font-size: 0.875rem; }
  .almanac-table col.almanac-c-month { width: 102px; }
  .almanac-table col.almanac-c-count { width: 54px; }
  .almanac-month th, .almanac-month td { height: 32px; }
  .almanac-month th small { display: inline; margin: 0 0 0 6px; }
  .almanac-month .almanac-bar { padding-inline: 12px 24px; }
  .almanac-track { height: 18px; }

  .bearing { padding-block: 56px 64px; }
  .bearing .leg-title, .bearing-facing, .bearing-why, .lee { grid-column: 1 / 7; }
  .bearing-facing { font-size: 2.25rem; line-height: 1.15; }
  .bearing-chart { grid-column: 8 / -1; grid-row: 1 / span 4; margin-top: 0; }
  .lee { margin-top: var(--s6); }

  .notice-row { padding-block: 56px 64px; }
  .notice {
    grid-column: 1 / 10;
    display: grid;
    grid-template-columns: subgrid;
    padding: 32px 0;
  }
  .notice-offer, .notice-list { grid-column: 1 / -1; }
  .notice-offer { display: grid; grid-template-columns: subgrid; align-items: end; }
  .notice:has(.notice-list:target) .notice-offer { display: none; }
  .notice-offer-words { grid-column: 1 / 6; padding-left: 32px; }
  .notice-offer-act { grid-column: 6 / -1; padding-right: 32px; }
  .notice-list:target { display: grid; grid-template-columns: subgrid; }
  .notice-list-words { grid-column: 1 / 6; padding-left: 32px; }
  .notice-list-fields { grid-column: 6 / -1; padding-right: 32px; }
  .notice-text { font-size: 1.5rem; line-height: 1.35; }
  .notice-price { margin-top: 0; }
  .notice-figure { font-size: 3rem; line-height: 52px; }

  .soundings { padding-block: 56px 64px; }
  .soundings .leg-title { grid-column: 1 / 4; }
  .soundings-list { grid-column: 4 / 11; grid-row: 1; margin-top: 0; row-gap: var(--s6); }
  .sounding dt { font-size: 1.375rem; }
  .sounding dd { font-size: 1.1875rem; }

  .datum { padding-block: 56px 72px; }
  .datum .leg-title { grid-column: 1 / 4; }
  .datum-credit, .datum-text { grid-column: 4 / 11; }
  .datum-credit { grid-row: 1; margin-top: 4px; }

  .tideline-body { padding-block: 48px 56px; }
  .tideline-beaches { grid-column: 1 / 5; }
  .tideline-site { grid-column: 5 / 9; }
  .tideline-maker { grid-column: 9 / -1; align-self: end; text-align: right; }
  .tideline-beaches, .tideline-site, .tideline-maker { grid-row: 1; }

  /* home */
  .landfall { padding-block: 56px 64px; }
  .landfall-title { grid-column: 1 / 10; font-size: 3rem; line-height: 1.1; letter-spacing: -0.02em; }
  .landfall-date { grid-column: 1 / 7; margin-top: var(--s6); }

  /* two columns of destinations; "dense" stacks each column in page order, however many there are */
  .coasts { padding-block: 8px 48px; grid-auto-flow: row dense; }
  .coast { padding-block: 40px 8px; }
  .coast + .coast { border-top: 0; }
  .coast--first { grid-column: 1 / 7; }
  .coast--second { grid-column: 7 / -1; }
  .coast-name { font-size: 1.75rem; }
  .coast-beaches { border-top: 2px solid var(--ink); }
  .coast-beach a { min-height: 56px; grid-template-columns: minmax(0, 1fr) 132px auto; }
  .coast-beach-date { grid-column: 2; grid-row: 1; text-align: right; }
  .coast-beach .buoy { grid-column: 3; grid-row: 1; }

  .key { padding-block: 56px 72px; }
  .key .leg-title { grid-column: 1 / 4; }
  .key-points { grid-column: 4 / 9; grid-row: 1; margin-top: 0; }
  .key-legend { grid-column: 10 / -1; grid-row: 1; margin-top: 0; }
  .key-legend-list { grid-template-columns: max-content; }
  .key-point { font-size: 1.1875rem; }
}

/* ---- added when the design was ported (2026-11-14) ---- */

/* the shoreline as traced from NOAA's map: a sand-coloured band with an ink edge */
.chart-shore-edge { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.chart-shore { fill: none; stroke: var(--land); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* a day NOAA did not publish: an empty mark, never a low one */
.wrack-day[data-level="none"] .wrack-bar { background: var(--white); border-style: dashed; color: var(--ink-2); }

/* long text pages: how it works, privacy, terms, contact */
.longread { grid-column: 1 / -1; padding-block: 28px 56px; max-width: 42rem; }
.longread h1 { font-size: 2rem; line-height: 1.12; letter-spacing: -0.015em; font-weight: 500; }
.longread-lead { margin-top: var(--s4); font-size: 1.1875rem; line-height: 1.5; }
.longread h2 { margin-top: var(--s7, 40px); padding-top: var(--s3); border-top: 1.5px solid var(--ink); font-size: 1.3125rem; line-height: 1.25; font-weight: 600; }
.longread p + p, .longread h2 + p { margin-top: var(--s3); }
.longread p { line-height: 1.6; }
.longread a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* a long address in code (the data page) breaks rather than widening a phone's page */
.longread code { overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .longread { grid-column: 1 / 9; padding-block: 56px 88px; }
  .longread h1 { font-size: 3rem; }
}

/* the offer after an email is kept, or when the list is not open yet */
.notice-kept { display: none; }
.notice--kept .notice-kept { display: block; }
.notice--kept .notice-offer, .notice--kept .notice-list { display: none !important; }
.notice-trap { position: absolute; left: -200vw; }
/* the marketing-email tick at every email field (owner, 2026-11-16): a real checkbox with its label, the
   "Disclaimer" link last on the same line; the label and the link reach 44 px tall with their padding (inline padding widens the tap area, not the line) */
.aboard {
  margin-top: var(--s3);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: var(--s3);
  align-items: start;
  padding-block: 10px;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 24px;
}
.aboard-box { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.aboard-tick { padding-block: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.aboard-more { padding-block: 14px; }  /* inline: 16 px of text + 28 px = 44 px to tap */

/* ---- blog (2026-11-14): articles reuse the long-read page and the beach-list rows ---- */

.notice-body { margin-top: var(--s5); }
.notice-body h3 { margin-top: var(--s5); font-size: 1.125rem; line-height: 1.3; font-weight: 600; }
.notice-body p, .notice-body ul, .notice-body ol, .notice-body table, .notice-body blockquote { margin-top: var(--s3); line-height: 1.6; }
.notice-body ul, .notice-body ol { padding-left: 1.25em; }
.notice-body li + li { margin-top: var(--s1); }
.notice-body blockquote { padding-left: var(--s4); border-left: 3px solid var(--ink); font-style: italic; }
.notice-body table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.875rem; }
.notice-body th, .notice-body td { padding: 6px 8px 6px 0; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.notice-body th { border-bottom: 1.5px solid var(--ink); font-weight: 600; }
.notice-body code { font-family: var(--mono); font-size: 0.9em; }
.notice-page .soundings-list { margin-top: var(--s3); }
.notice-sources { margin-top: var(--s3); padding-left: 1.25em; line-height: 1.6; }
.notice-onward { margin-top: var(--s7); padding-top: var(--s3); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { }

/* =====================================================================================
   SECOND LOOK (2026-11-14): more colour, the new header, home, plans, report, icons.
   Everything above still works as before. Below: new tokens, new classes, and a few
   overrides (marked "override"). Rule of the two colour systems:
     · a LEVEL is always a square with its letter (L W M H) in a level colour, with its
       ink outline, and sits only on paper, white or the land tint (never on the sea tint,
       which is close to Low, and never on a region colour);
     · a REGION is always a pennant, a rule or a panel head in a region colour, never a
       square, never with a letter, and never directly behind a level mark.
   ===================================================================================== */

:root {
  /* the sea by depth, as charts tint it: the shallower, the bluer */
  --shoal: #C5DDE8;          /* 0–20 m, drawings only; ink on it 10.3:1 */
  /* --sea (#DCEAF0) is 20–200 m and the ground of the sea bands; deep water is paper */
  --land-ground: #EFE6CD;    /* land tint as a section ground: ink 11.6:1, ink-2 5.7:1, magenta 6.0:1 */
  --notice-ground: #F3E4EB;  /* magenta tint, the ground of every offer: ink 11.8:1, magenta 6.1:1 */
  --white: #FFFFFF;          /* inputs, the email picture */
  --magenta-deep: #821950;   /* button hover */

  /* regions: one colour each, from buoys and code flags. Paper text on each, and each as
     text on paper, passes AA (5.7 to 7.5:1). None is yellow, orange, brown or pale cyan:
     those belong to the levels. */
  --r-west: #0E6B6E;         /* Mexico & the western Caribbean: Yucatán channel teal, 5.7:1 */
  --r-florida: #1F4E9C;      /* Florida & the Bahamas: code-flag blue, 7.3:1 */
  --r-hispaniola: #2C6633;   /* Jamaica & Hispaniola: buoy green, 6.3:1 */
  --r-prvi: #B0232E;         /* Puerto Rico & the Virgin Islands: buoy red, 6.2:1 */
  --r-east: #5A3E94;         /* Eastern Caribbean: chart-light violet, 7.5:1 */
}

[data-region="west"]       { --reg: var(--r-west); }
[data-region="florida"]    { --reg: var(--r-florida); }
[data-region="hispaniola"] { --reg: var(--r-hispaniola); }
[data-region="prvi"]       { --reg: var(--r-prvi); }
[data-region="east"]       { --reg: var(--r-east); }

/* no data yet: a white square with a dashed outline and a dash */
[data-level="none"] { --lvl: var(--white); --on-lvl: var(--ink); --n: 0; }
[data-level="none"] .buoy-letter, .buoy-letter[data-level="none"] { border-style: dashed; }

html { overflow-x: clip; }

/* ---------- icons: inline sprite (one <svg class="sprite"> per page), used as <svg class="ico"><use href="#i-name"/></svg> ---------- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.ico--32 { width: 32px; height: 32px; }
.i-f { fill: currentColor; stroke: none; }
.i-reg { fill: var(--reg, none); }

/* ---------- bands: a section takes a chart tint, full bleed, still on the sheet's grid ---------- */

.band {
  border-top: 0;
  border-image: conic-gradient(var(--band) 0 0) fill 0 // 0 100vw;
}
.band--sea    { --band: var(--sea); }
.band--land   { --band: var(--land-ground); }
.band--notice { --band: var(--notice-ground); }

/* ---------- pennant: a region's mark (CSS shape; the SVG is the destination-pin icon) ---------- */

.pennant {
  display: inline-block;
  width: 14px; height: 12px; flex: none;
  background: var(--reg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.pennant--big { width: 22px; height: 18px; }

/* ---------- margin: the chart's top margin, above the neatline: data date and language ---------- */

.margin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 40px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
  color: var(--ink-2);
}
.margin-date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.margin-wide { display: none; }

.tongue { display: flex; align-items: center; gap: 2px; flex: none; }
.tongue .ico { width: 20px; height: 20px; margin-right: 4px; }
.tongue a {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 30px;
  padding: 0 6px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.tongue a[aria-current] { background: var(--ink); color: var(--paper); }
.tongue a:not([aria-current]):hover { background: var(--white); }

/* ---------- pilot-head: override, the button joins the masthead ---------- */

.pilot-head-row { gap: var(--s3); }
.pilot-nav { display: none; }
.pilot-take {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 2px;
  background: var(--magenta);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.pilot-take:hover { background: var(--magenta-deep); }

/* ---------- shared bits ---------- */

.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}
.go .ico { width: 20px; height: 20px; }
.go:hover span { text-decoration: underline; text-underline-offset: 0.2em; }

/* ================= home, second look ================= */

/* landfall: what the site is, find your beach, get the report */
.landfall { padding-block: 28px 40px; }
.landfall-title { font-size: 1.875rem; line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; }
.landfall-sub { margin-top: var(--s3); font-size: 1.125rem; line-height: 1.5; max-width: 34em; }

.finder { margin-top: var(--s5); }
.finder-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 20px;
  font-weight: 600;
}
.finder-row { display: flex; gap: var(--s2); }
.finder-field { position: relative; flex: 1; min-width: 0; }
.finder-field .ico { position: absolute; left: 14px; top: 14px; pointer-events: none; }
.finder-input {
  width: 100%;
  min-height: 52px;
  padding: 0 12px 0 46px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--mono);
  font-size: 1rem;
}
.finder-input::placeholder { color: var(--ink-2); }
.finder-go {
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.finder-hint { margin-top: var(--s2); font-family: var(--mono); font-size: 0.8125rem; line-height: 20px; color: var(--ink-2); }
.finder-hint a { color: var(--ink); }

.landfall-offer {
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--sea-line);
  display: grid;
  row-gap: var(--s3);
}
.landfall-offer-note { font-family: var(--mono); font-size: 0.875rem; line-height: 22px; }
.landfall-offer-note b { font-weight: 700; }
.landfall .landfall-date { margin-top: var(--s5); }

/* dispatch: the picture of the 7 AM email (HTML, not an image) */
.dispatch { margin-top: var(--s6); }
.dispatch-sheet {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-top: 6px solid var(--magenta);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--ink);
}
.dispatch-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px var(--s3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
}
.dispatch-meta dt { color: var(--ink-2); }
.dispatch-meta dd { min-width: 0; }
.dispatch-meta .dispatch-subject { font-weight: 700; }
.dispatch-body { padding: 16px 16px 18px; }
.dispatch-level { display: flex; align-items: center; gap: var(--s3); }
.dispatch-level .buoy-letter { width: 48px; height: 48px; font-size: 1.5rem; border-width: 2px; }
.dispatch-word { font-size: 1.75rem; line-height: 1.1; font-weight: 600; }
.dispatch-word small { display: block; font-family: var(--mono); font-size: 0.8125rem; line-height: 18px; font-weight: 500; color: var(--ink-2); }
.dispatch-text { margin-top: var(--s3); font-size: 1.0625rem; line-height: 1.45; }
.dispatch-gloss { margin-top: var(--s2); font-size: 1rem; line-height: 1.45; font-style: italic; }
.dispatch-pdf {
  margin-top: var(--s4);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1.5px dashed var(--ink-2);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 18px;
}
.dispatch figcaption, .dispatch-cap {
  margin-top: var(--s4);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
  color: var(--ink-2);
}

/* basin: the drawn chart of the whole basin (inline SVG, .bs-* inside) */
.basin { padding-block: 32px 40px; display: grid; grid-template-columns: subgrid; }
.basin > * { grid-column: 1 / -1; min-width: 0; }
.basin-chart { margin-top: var(--s5); }
.basin-scroll {
  overflow-x: auto;
  margin-inline: -20px;
  padding: 0 20px 8px;
  overscroll-behavior-x: contain;
}
.basin-svg { display: block; width: 1210px; max-width: none; height: auto; }  /* 98° W to 54° W at the designer's scale */
.basin-chart figcaption {
  margin-top: var(--s2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 20px;
  color: var(--ink-2);
}
.basin-swipe { display: inline; }

.bs-deep { fill: var(--paper); }
.bs-bank path { fill: var(--sea); stroke: var(--sea-line); stroke-width: 1; stroke-dasharray: 1 3; }
.bs-shelf { fill: none; stroke: var(--sea); stroke-width: 10; stroke-linejoin: round; }
.bs-grat { fill: none; stroke: var(--rule); stroke-width: 0.75; }
.bs-land { fill: var(--land); stroke: var(--ink); stroke-width: 0.9; stroke-linejoin: round; }
.bs-keys-edge { fill: none; stroke: var(--ink); stroke-width: 3.6; stroke-linecap: round; }
.bs-keys { fill: none; stroke: var(--land); stroke-width: 1.8; stroke-linecap: round; }
.bs-water { font-family: var(--serif); font-style: italic; font-size: 19px; fill: var(--sea-ink); letter-spacing: 0.06em; }
.bs-water--big { font-size: 24px; letter-spacing: 0.14em; }
.bs-halo { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.bs-deg { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); }
.bs-leader { fill: none; stroke: var(--reg); stroke-width: 1.2; }
.bs-dot { fill: var(--reg); stroke: var(--paper); stroke-width: 2; }
.bs-buoy { fill: var(--lvl); stroke: var(--ink); stroke-width: 1.4; }
.bs-buoy-halo { fill: var(--paper); }  /* a level never sits on the sea tint */
.bs-pin[data-level="none"] .bs-buoy { stroke-dasharray: 3 2; }
.bs-letter { font-family: var(--mono); font-weight: 700; font-size: 12px; fill: var(--on-lvl); }
.bs-name { font-family: var(--serif); font-weight: 600; font-size: 15px; fill: var(--ink); }
.bs-pin:hover .bs-name { text-decoration: underline; }
.bs-cart-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.bs-cart-title { font-family: var(--serif); font-weight: 600; font-size: 21px; fill: var(--ink); }
.bs-cart-sub, .bs-cart-note { font-family: var(--mono); font-size: 12px; fill: var(--ink-2); }
.bs-cart-row { font-family: var(--serif); font-size: 15px; fill: var(--ink); }
.bs-pennant { fill: var(--reg); }
.bs-frame { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.bs-grad { fill: var(--ink); }

/* coasts, second look: destinations grouped by region, each a coloured panel */
.coasts--regions { border-top: 1px solid var(--ink); padding-block: 32px 48px; }
.hoist { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2); }
.hoist a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 10px;
  border: 1.5px solid var(--reg);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
}
.hoist a:hover { background: var(--paper); text-decoration: underline; }
.hoist-long { display: none; }
@media (max-width: 899px) { .hoist { gap: 6px; } .hoist a { padding: 0 10px 0 8px; font-size: 0.75rem; } }

.region { padding-top: var(--s7); display: grid; grid-template-columns: subgrid; row-gap: var(--s4); align-items: start; }
.region > * { grid-column: 1 / -1; min-width: 0; }
.region-head { padding-bottom: var(--s3); border-bottom: 3px solid var(--reg); }
.region-name { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; line-height: 1.2; color: var(--reg); }
.region-count { margin-top: 4px; font-family: var(--mono); font-size: 0.8125rem; line-height: 20px; color: var(--ink-2); }

.region .coast {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1.5px solid var(--reg);
  border-radius: 2px;
  background: var(--paper);
}
.region .coast + .coast { border-top: 1.5px solid var(--reg); }
.coast-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--s3);
  align-items: center;
  padding: 10px 14px 11px;
  background: var(--reg);
  color: var(--paper);
}
.coast-head > .coast-name, .coast-head > .coast-where { grid-column: 1; }
.coast-head .coast-name { margin: 0; font-weight: 600; }
.region .coast-name { font-size: 1.3125rem; line-height: 1.2; }
.region .coast-where { margin-top: 1px; color: var(--paper); font-size: 0.8125rem; line-height: 18px; }
.region .coast-beaches { margin-top: 0; padding: 2px 14px 0; border-top: 0; }
.region .coast-beach a { min-height: 50px; padding-block: 6px; grid-template-columns: minmax(0, 1fr) auto; }
.region .coast-beach-name { font-size: 1.0625rem; line-height: 22px; }
.region .coast-beach .buoy { grid-column: 2; grid-row: 1; }
/* phones: each region's panels form one sideways row that snaps; the next panel peeks in */
.region-coasts {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: -20px;
  padding: 0 20px 8px;
  scroll-padding-inline: 20px;
  overscroll-behavior-x: contain;
  /* the containing block of the panels' hidden words (.quiet is absolute): without it they sat outside
     the scroll row and widened the page to 3,400 px, so a phone opened the front page zoomed out */
  position: relative;
}
.region-coasts > .coast { flex: 0 0 86%; scroll-snap-align: start; }
.coast-all { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; color: var(--paper); white-space: nowrap; }

/* key, second look: icons instead of numbers, and the two kinds of mark */
.key-point--drawn { padding-left: 44px; }
.key-point--drawn::before { content: none; }
.key-point--drawn .ico { position: absolute; left: 0; top: -2px; width: 32px; height: 32px; }
.key-signs { margin-top: var(--s5); padding-top: var(--s3); border-top: 2px solid var(--ink); }
.key-signs-list { margin-top: var(--s3); display: grid; row-gap: var(--s3); }
.key-sign {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: var(--s3);
  align-items: start;
  font-size: 1rem;
  line-height: 1.45;
}
.key-sign .buoy-letter { margin-top: 1px; }
.key-sign .pennant { width: 22px; height: 18px; margin-top: 3px; }

/* tariff: the three report plans, set as a timetable */
.tariff { padding-block: 32px 48px; }
.tariff-lead { margin-top: var(--s3); font-size: 1.125rem; line-height: 1.5; max-width: 36em; }
.tariff-list { margin-top: var(--s5); border-top: 2px solid var(--ink); }
.tariff-plan { border-bottom: 1px solid var(--ink-2); }
.tariff-plan > a, .tariff-plan > label {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  grid-template-areas: "ico name price" "ico when price" "ico week week";
  column-gap: var(--s3);
  align-items: center;
  padding-block: 14px 16px;
  color: inherit;
  text-decoration: none;
}
.tariff-plan .ico { grid-area: ico; align-self: start; width: 32px; height: 32px; margin-top: 2px; }
.tariff-name { grid-area: name; font-size: 1.3125rem; line-height: 1.2; font-weight: 600; }
.tariff-plan > a:hover .tariff-name { text-decoration: underline; text-underline-offset: 0.18em; }
.tariff-when { grid-area: when; margin-top: 2px; font-family: var(--mono); font-size: 0.8125rem; line-height: 20px; color: var(--ink-2); }
.tariff-price { grid-area: price; align-self: start; text-align: right; font-family: var(--mono); font-size: 0.8125rem; line-height: 18px; }
.tariff-price b {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
/* the week: seven circles, one per morning; filled = a report that morning */
.tariff-week { grid-area: week; margin-top: 10px; display: flex; gap: 6px; }
.tariff-day {
  display: grid;
  justify-items: center;
  row-gap: 3px;
  width: 26px;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 14px;
  font-style: normal;
  color: var(--ink-2);
}
.tariff-day::before {
  content: "";
  width: 14px; height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.tariff-day.is-on { color: var(--ink); font-weight: 700; }
.tariff-day.is-on::before { background: var(--ink); }
.tariff-also { margin-top: var(--s4); display: flex; gap: 10px; align-items: center; font-size: 1rem; line-height: 1.45; }
.tariff-take { margin-top: var(--s5); }
.tariff-fine { margin-top: 10px; font-family: var(--mono); font-size: 0.8125rem; line-height: 20px; color: var(--ink-2); }

/* the plans, small: on the beach page's notice */
.tariff-mini { display: grid; row-gap: 0; border-top: 1px solid var(--rule); }
.tariff-mini li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 20px;
}
.tariff-mini b { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tariff-mini .tariff-mini-price { text-align: right; white-space: nowrap; }
.notice-offer-act { margin-top: var(--s4); }
.notice-plain { margin-top: var(--s3); font-size: 1rem; line-height: 1.45; font-style: italic; }
.notice-row.band .notice { background: var(--white); }

/* log: the newest blog articles */
.log { padding-block: 32px 48px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: subgrid; }
.log > * { grid-column: 1 / -1; min-width: 0; }
.log-list { margin-top: var(--s5); display: grid; row-gap: 0; border-top: 2px solid var(--ink); }
.log-entry { border-bottom: 1px solid var(--rule); }
.log-entry a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: var(--s3);
  padding-block: 16px;
  text-decoration: none;
}
.log-entry .ico { margin-top: 2px; }
.log-date { font-family: var(--mono); font-size: 0.8125rem; line-height: 20px; color: var(--ink-2); }
.log-title { grid-column: 2; margin-top: 4px; font-size: 1.25rem; line-height: 1.3; font-weight: 600; text-wrap: balance; }
.log-entry a:hover .log-title { text-decoration: underline; text-underline-offset: 0.18em; }
.log-all { margin-top: var(--s4); }

/* tideline, second look: the regions as a hoist of pennants */
.tideline-regions .tideline-list a { display: inline-flex; align-items: center; gap: 10px; }

/* ================= beach page, second look ================= */

.reading-region { display: flex; align-items: center; gap: 8px; color: var(--reg); font-weight: 600; }
.reading-region .pennant { width: 12px; height: 10px; }
/* when the line wraps, the pennant stays on its first line (the line is 20 px tall) */
.reading-place.reading-region { align-items: flex-start; }
.reading-place.reading-region .pennant { flex: none; margin-top: 5px; }
.bearing-facing .ico, .lee-title .ico { width: 28px; height: 28px; margin-right: 6px; vertical-align: -4px; }
.ico--east { rotate: 90deg; }
.soundings.band .sounding dt, .soundings.band .sounding dd { color: var(--ink); }
.leg-title .ico { width: 28px; height: 28px; margin-right: 8px; vertical-align: -5px; }

/* ================= report page: passage ================= */

.tariff { display: grid; grid-template-columns: subgrid; }
.tariff > * { grid-column: 1 / -1; min-width: 0; }

.passage { padding-block: 28px 48px; display: grid; grid-template-columns: subgrid; align-items: start; }
.passage > * { grid-column: 1 / -1; min-width: 0; }
.passage-title { font-size: 1.875rem; line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; }
.passage-lede { margin-top: var(--s3); font-size: 1.125rem; line-height: 1.5; max-width: 34em; }
.passage-aside { margin-top: var(--s5); }
.passage-aside .dispatch { margin-top: 0; }
.passage-form { margin-top: var(--s6); }

.passage-step { margin: 0; padding: 0 0 var(--s6); border: 0; min-width: 0; }
.passage-step + .passage-step { padding-top: var(--s5); border-top: 1px solid var(--ink); }
.passage-q {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 0;
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 600;
}
.passage-num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 700;
  flex: none;
}
.passage-hint { margin-top: 6px; font-family: var(--mono); font-size: 0.8125rem; line-height: 20px; color: var(--ink-2); }
.passage-step .finder-field { margin-top: var(--s4); }

/* the chosen beach */
.passage-beach {
  margin-top: var(--s3);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--s3);
  align-items: center;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-left: 6px solid var(--reg);
  border-radius: 2px;
  background: var(--white);
}
.passage-beach-name { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; }
.passage-beach-coast { font-family: var(--mono); font-size: 0.8125rem; line-height: 20px; color: var(--ink-2); }
.passage-beach .buoy { grid-column: 2; grid-row: 1 / span 2; }

/* plans as radios: the timetable rows become choices */
.tariff--pick { margin-top: var(--s4); }
.tariff--pick .tariff-plan > label { cursor: pointer; grid-template-columns: 32px minmax(0, 1fr) auto; padding-inline: 12px; }
.tariff--pick .tariff-plan { position: relative; border: 1.5px solid var(--ink-2); border-radius: 2px; background: var(--white); }
.tariff--pick .tariff-plan + .tariff-plan { margin-top: var(--s2); }
.tariff--pick.tariff-list { border-top: 0; }
.tariff-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tariff--pick .tariff-plan:has(.tariff-radio:checked) { border: 2px solid var(--magenta); box-shadow: inset 6px 0 0 var(--magenta); }
.tariff--pick .tariff-plan:has(.tariff-radio:checked) .tariff-name::after {
  content: attr(data-chosen);  /* the word is in the phrase book (report.chosen), on the element */
  margin-left: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--magenta);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 3px;
}
.tariff--pick .tariff-plan:has(.tariff-radio:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 3px; }

/* step 3: one block per plan; CSS shows the one for the chosen plan (no script) */
.passage-option { display: none; margin-top: var(--s4); row-gap: 6px; }
.passage-form:has(#plan-every-morning:checked) .passage-option--every-morning,
.passage-form:has(#plan-once-a-week:checked) .passage-option--once-a-week,
.passage-form:has(#plan-one-weekend:checked) .passage-option--one-weekend { display: grid; }
@supports not selector(:has(*)) { .passage-option { display: grid; } }

/* the weekday: seven choices, the week's circles made big enough to tap */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.day input:checked + span { background: var(--ink); color: var(--paper); }
.day input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }

/* language: two choices */
.tongue-pick { margin-top: var(--s4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.tongue-pick label { position: relative; }
.tongue-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tongue-pick span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.tongue-pick input:checked + span { background: var(--ink); color: var(--paper); }
.tongue-pick input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }

/* the close: plain words, the price, the button */
.passage-sum { padding: 20px; border: 2px solid var(--magenta); border-radius: 2px; background: var(--notice-ground); }
.passage-plain { font-size: 1.125rem; line-height: 1.45; }
.passage-plain b { font-weight: 700; }
.passage-total { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--magenta); }
.passage-choice { font-family: var(--mono); font-size: 0.875rem; line-height: 22px; }
.passage-price { display: none; align-items: baseline; gap: 10px; margin-top: 4px; font-family: var(--mono); font-size: 0.9375rem; }
.passage-form:has(#plan-every-morning:checked) .passage-price--every-morning,
.passage-form:has(#plan-once-a-week:checked) .passage-price--once-a-week,
.passage-form:has(#plan-one-weekend:checked) .passage-price--one-weekend { display: flex; }
@supports not selector(:has(*)) { .passage-price { display: flex; } }
.passage-sum .notice-fine a { color: var(--ink); }
.passage-sum .notice-fine .ico { width: 16px; height: 16px; vertical-align: -2px; }

/* ================= desktop, second look ================= */

@media (min-width: 900px) {
  .margin-wide { display: inline; }
  .pilot-nav { display: flex; margin-left: auto; margin-right: var(--s3); }
  .pilot-take { min-height: 46px; padding: 0 18px; font-size: 0.9375rem; }

  /* landfall: words left, the email right */
  .landfall { padding-block: 56px 64px; }
  .landfall-title { grid-column: 1 / 8; font-size: 3.5rem; line-height: 1.04; letter-spacing: -0.025em; }
  .landfall-sub, .finder, .landfall-offer, .landfall .landfall-date { grid-column: 1 / 7; }
  .landfall-sub { font-size: 1.3125rem; }
  .finder { margin-top: var(--s6); }
  .landfall-offer { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--s5); }
  .landfall .landfall-date { margin-top: var(--s6); }
  .landfall .dispatch { grid-column: 8 / -1; grid-row: 1 / span 6; align-self: start; margin-top: 8px; }

  .hoist-long { display: inline; }
  .hoist-short { display: none; }
  .basin { padding-block: 56px 64px; }
  .basin .leg-title { grid-column: 1 / 7; }
  .basin .leg-sub { grid-column: 1 / 9; }
  .basin-scroll { overflow: visible; margin-inline: 0; padding: 0; }
  .basin-svg { width: 100%; }
  .basin-swipe { display: none; }

  .coasts--regions { padding-block: 56px 72px; }
  .coasts--regions > .leg-title { grid-column: 1 / 7; }
  .coasts--regions > .leg-sub { grid-column: 1 / 9; }
  .region { padding-top: var(--s7); row-gap: var(--s5); }
  .region-head { grid-column: 1 / 4; grid-row: 1; border-bottom: 0; border-top: 3px solid var(--reg); padding: var(--s3) 0 0; }
  .region-name { font-size: 1.625rem; align-items: baseline; }
  .region-name .pennant { translate: 0 1px; }
  .region .coast:nth-of-type(3n+1) { grid-column: 4 / 7; }
  .region .coast:nth-of-type(3n+2) { grid-column: 7 / 10; }
  .region .coast:nth-of-type(3n)   { grid-column: 10 / 13; }
  .region .coast { align-self: stretch; }
  .region-coasts { display: contents; }
  

  .key .key-legend .key-signs { margin-top: var(--s6); }
  .key-point--drawn { font-size: 1.1875rem; }

  .tariff { padding-block: 56px 72px; }
  .tariff .leg-title, .tariff-lead { grid-column: 1 / 4; }
  .tariff-lead { grid-row: 2; font-size: 1.0625rem; }
  .tariff-list, .tariff-also, .tariff-take, .tariff-fine { grid-column: 4 / -1; }
  .tariff-list { grid-row: 1 / span 3; margin-top: 0; }
  .tariff-plan > a { grid-template-columns: 32px minmax(0, 1fr) 220px 150px; grid-template-areas: "ico name week price" "ico when week price"; padding-block: 20px; }
  .tariff-week { margin-top: 0; align-self: center; }
  .tariff-name { font-size: 1.5rem; }
  .tariff-price b { font-size: 2.25rem; line-height: 40px; }
  .tariff-take { justify-self: start; width: auto; padding-inline: 40px; }

  .log { padding-block: 56px 72px; }
  .log .leg-title { grid-column: 1 / 4; }
  .log-list { grid-column: 4 / -1; grid-row: 1 / span 2; margin-top: 0; grid-template-columns: subgrid; border-top: 0; }
  .log-entry { border-bottom: 0; border-top: 2px solid var(--ink); }
  .log-entry:nth-child(3n+1) { grid-column: 1 / 4; }
  .log-entry:nth-child(3n+2) { grid-column: 4 / 7; }
  .log-entry:nth-child(3n) { grid-column: 7 / 10; }
  .log-entry a { grid-template-columns: minmax(0, 1fr); padding-block: 14px 0; row-gap: 8px; }
  .log-title { grid-column: 1; margin-top: 0; font-size: 1.375rem; }
  .log-all { grid-column: 1 / 4; grid-row: 2; align-self: end; }

  .tideline-regions { grid-column: 1 / 5; grid-row: 1; }
  .tideline-body:not(.tideline-body--strand) .tideline-site { grid-column: 5 / 9; }
  .tideline-body--strand .tideline-beaches { grid-column: 1 / 4; }
  .tideline-body--strand .tideline-regions { grid-column: 4 / 7; }
  .tideline-body--strand .tideline-site { grid-column: 7 / 10; }
  .tideline-body--strand .tideline-maker { grid-column: 10 / -1; }

  /* beach page */
  .notice-offer-act { display: grid; row-gap: 0; margin-top: 0; }
  .notice-offer { align-items: start; }
  .notice-plain { font-size: 1.0625rem; }

  /* report page */
  .passage { padding-block: 56px 72px; }
  .passage-intro { grid-column: 1 / 8; }
  .passage-title { font-size: 3rem; line-height: 1.06; letter-spacing: -0.02em; }
  .passage-lede { font-size: 1.3125rem; }
  .passage-form { grid-column: 1 / 8; grid-row: 2; margin-top: var(--s6); }
  .passage-aside { grid-column: 9 / -1; grid-row: 1 / span 2; margin-top: 8px; position: sticky; top: 24px; }
  .passage-step { padding-bottom: var(--s7); }
  .passage-step + .passage-step { padding-top: var(--s6); }
  .passage-q { font-size: 1.625rem; }
  .tariff--pick .tariff-plan > label { grid-template-columns: 32px minmax(0, 1fr) 200px 130px; grid-template-areas: "ico name week price" "ico when week price"; padding: 16px 16px 16px 18px; }
  .tariff--pick .tariff-week { margin-top: 0; }
  .days { max-width: 520px; }
  .tongue-pick { max-width: 520px; }
  .passage-sum { padding: 28px 32px 32px; }
  .passage-sum .notice-take { width: auto; padding-inline: 40px; }
}

/* =====================================================================================
   PORTED (2026-11-14, wave D): what the real site needs that the design pages did not show.
   Built from the design's own pieces; no new colours.
   ===================================================================================== */

/* skip link, seen only when it has focus */
.skip {
  position: absolute;
  left: 20px;
  top: -200px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 8px; }

/* focus rings: magenta on the light grounds (paper 6.8:1, white 7.4, sea 6.0, land 6.0, notice 6.0);
   paper where the ground is ink or a region colour (13.2:1 on ink, 5.7 to 7.5 on the regions) */
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
.tideline :focus-visible, .coast-head :focus-visible, .skip:focus-visible { outline-color: var(--paper); }
.skip:focus-visible { outline-offset: -5px; }
main:focus { outline: none; }

/* a day with no data keeps a one-step dashed mark in the 14 days */
.wrack-day[data-level="none"] { --n: 1; }

/* the facing arrow turned to each bearing (the design shows east) */
.ico--northeast { rotate: 45deg; }
.ico--southeast { rotate: 135deg; }
.ico--south { rotate: 180deg; }
.ico--southwest { rotate: 225deg; }
.ico--west { rotate: 270deg; }
.ico--northwest { rotate: 315deg; }

/* hidden by the finder script */
[hidden] { display: none !important; }

/* destination pages: the beach lists carry their region's rule */
.coasts[data-region] .coast-beaches { border-top: 3px solid var(--reg); }
.landfall .reading-region { margin-top: var(--s3); }

/* region pages: the title takes its region's pennant and colour */
.landfall-title .pennant { margin-right: 12px; vertical-align: 0.12em; }

/* the search page: each region a block of two columns, as the first look's front page */
.coasts--found { display: grid; grid-template-columns: subgrid; padding-block: 24px 8px; }
.coasts--found > * { grid-column: 1 / -1; min-width: 0; }
.coasts--found .region-head { margin-top: var(--s6); }
.finder-count { margin-top: var(--s3); font-family: var(--mono); font-size: 0.875rem; line-height: 22px; }

/* blog listings use the front page's blog list; a category is a head over its articles */
.log--shelf { border-top: 0; padding-top: 8px; }
.log--shelf + .log--shelf { border-top: 1px solid var(--ink); }
.log-blurb { margin-top: var(--s2); font-size: 1rem; line-height: 1.45; color: var(--ink-2); }

/* long text pages open on the sea band, as the front page does */
.longread-head { margin-top: -28px; padding-block: 28px 32px; }
.longread-head .reading-place { margin-bottom: var(--s3); }
@media (min-width: 900px) {
  .longread-head { margin-top: -56px; padding-block: 56px 48px; }
  .log--shelf { padding-block: 40px 48px; }
  .log .log-blurb { grid-column: 1 / 4; grid-row: 2; }
}

/* the plans page (wave D, part 2): what the design's report.html left to the script */
.passage-finds { margin-top: var(--s2); border: 1.5px solid var(--ink); border-radius: 2px; background: var(--white); }
.passage-finds li + li { border-top: 1px solid var(--rule); }
.passage-find {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.passage-find:hover { background: var(--sea); }
.passage-find:focus-visible { outline-offset: -3px; }
.passage-find-name { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }
.passage-find-where, .passage-find-none { font-family: var(--mono); font-size: 0.8125rem; line-height: 20px; color: var(--ink-2); }
.passage-find-none { display: block; padding: 10px 14px; }
.passage-warn { color: var(--magenta); font-weight: 600; }
.passage-warn:empty { display: none; }
.passage-links { margin-top: var(--s2); display: grid; gap: 6px; }
.passage-closed { font-size: 0.875rem; font-weight: 600; color: var(--ink); }

/* review of wave D (2026-11-14): the gauge's lowest step is one --step tall (17 px, 30 px from 900 px),
   too short for the current level's big letter, which hung out over the word "Low" on every beach at
   Low. The letter keeps its weight and colours and takes a size that fits inside the step. */
.gauge-step[aria-current][data-level="low"] .gauge-bar { font-size: 0.75rem; padding: 0 6px 0; }
@media (min-width: 900px) {
  .gauge-step[aria-current][data-level="low"] .gauge-bar { font-size: 1.25rem; padding: 0 10px 2px; }
}

/* PRINT (wave E, the report sender, 2026-11-14): a beach page printed is the "page to print" every
   report email links to (courier/letter.py, PRINT_AT): one sheet with what a report says. Kept: the
   name, NOAA's level and the date of its data, the last 14 days, which way it faces and the beach
   nearby, the sources and limits with NOAA's credit. Left off paper: the header and footer, the offer,
   the month table, the questions and the shoreline drawing. Level marks keep their colours. */
@media print {
  @page { margin: 12mm 14mm; }
  html { background: #fff; font-size: 13px; }
  body { min-height: 0; display: block; }
  .skip, .margin, .neatline, header.sheet, .notice-row, .soundings, .almanac, .bearing-chart, .tideline,
  .datum-text ~ .datum-text { display: none !important; }
  .sheet { max-width: none; padding-inline: 0; }
  .band { border-image: none !important; background: none !important; }
  .reading { padding-block: 0 14px; }
  .wrackline, .bearing, .datum { padding-block: 12px; }
  .wrackline, .bearing { break-inside: avoid; }
  :root { --step: 12px; }
  .reading-answer { font-size: 1.375rem; }
  .bearing-facing { font-size: 1.25rem; }
  .gauge, .wrack, .lee { margin-top: 10px; }
  .wrack-bar { height: calc(var(--n) * 12px); }
  .wrack-note, .bearing-why, .lee-same, .datum-text { margin-top: 6px; }
  [data-level], .gauge-bar, .wrack-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; }
}

/* the manage page (wave E, part 2): /manage/ and /es/gestionar/, filled in by steward.js */
.steward-said { margin-top: var(--s5); font-weight: 600; }
.steward-said:empty { display: none; }
.steward-note { margin-top: var(--s3); }
.steward-facts { margin-top: var(--s4); display: grid; gap: var(--s2); }
.steward-facts div { display: grid; grid-template-columns: minmax(7rem, 9rem) 1fr; gap: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--rule); }
.steward-facts dt { font-family: var(--mono); font-size: 0.875rem; line-height: 24px; font-weight: 600; }
.steward-form { margin-top: var(--s4); }
.steward-form + .steward-form { margin-top: var(--s5); }
.steward-form .days, .steward-form .tongue-pick { max-width: 520px; }
.steward-form .notice-take { width: auto; padding-inline: 40px; }
.steward-form .notice-take:disabled { opacity: 0.45; cursor: default; }
/* ---- the report card beside long reading pages (2026-11-14) ----
   Built from the offer's own pieces (.notice and its children), narrowed to one column.
   Phone: under the text. From 900 px: in the four empty columns beside it, staying in view. */
.notice-aside { grid-column: 1 / -1; padding-block: 0 48px; }
.notice-aside .notice { max-width: 26rem; }
.notice-aside .notice-offer { display: block; }
.notice-aside .notice-offer-act { margin-top: var(--s4); }
@media (min-width: 900px) {
  .notice-aside { grid-column: 9 / -1; grid-row: 1; align-self: start; position: sticky; top: 24px; padding-block: 56px 88px; z-index: 1; }
  /* the wide offer lays its two halves out on the page grid; the card is one plain column */
  .notice-aside .notice { max-width: none; display: block; padding: 28px 24px; }
  .notice-aside .notice-offer-words, .notice-aside .notice-offer-act { padding-inline: 0; }
  .notice-aside .notice-offer-act { display: block; margin-top: var(--s4); }
  .notice-aside .notice-text { font-size: 1.125rem; line-height: 1.45; }
}
@media print { .notice-aside { display: none; } }

/* ---- the language switch beside the report button (2026-11-14, owner) ----
   Phones keep it in the top margin: the masthead there holds only the mark and the button. */
.tongue--mast { display: none; }
@media (min-width: 900px) {
  .tongue--margin { display: none; }
  .tongue--mast { display: flex; margin-left: var(--s4); }
}

/* ---- the keel: the report button at the bottom of a phone's screen (2026-11-14, owner) ----
   Phones only. The masthead button steps aside there (two of the same button, a thumb apart, read as
   clutter); from 900 px the masthead keeps it and the keel is not shown. */
.keel { display: none; }
@media (max-width: 899px) {
  html { scroll-padding-bottom: 96px; }  /* a focused or jumped-to line never sits under the keel */
  .pilot-take { display: none; }  /* every phone page: the keel has the button, and the plans page is the button's own page */
  .keel {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ink);
    color: var(--paper);
    border-top: 2px solid var(--paper);
    box-shadow: 0 -1px 0 var(--ink);
  }
  .keel-line {
    flex: 1;
    min-width: 0;
    font-family: var(--mono);
    font-size: 0.75rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }
  .keel-line b { font-weight: 700; white-space: nowrap; }
  .keel-take {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 2px;
    background: var(--magenta);
    color: var(--paper);
    border: 1.5px solid var(--paper);
    font-family: var(--mono);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
  }
  .keel-take:active { background: var(--magenta-deep); }
  .keel-take:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
  .keel + .tideline { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

  /* phone comfort, same day: the language links were 30 px tall; a thumb wants 44 */
  .tongue a { min-width: 44px; min-height: 44px; }
  /* with the masthead button gone, the language switch takes its place, and the data's date above
     gets the whole line (it was cut to "Satellite data from Nov 1…") */
  .tongue--margin { display: none; }
  .tongue--mast { display: flex; }
  /* the search field cut its own hint short ("Beach, town or isla") */
  .finder-input { padding-left: 42px; padding-right: 8px; }
  .finder-input::placeholder { font-size: 0.875rem; letter-spacing: -0.01em; }
}
@media (max-width: 359px) { .keel-line { display: none; } .keel-take { flex: 1; justify-content: center; } }
@media print { .keel { display: none; } }

/* ---- the plans page, one step at a time (2026-11-14, owner) ----
   passage.js adds .passage--stepped and shows one step; without it nothing here applies. */
.passage-progress { font-family: var(--mono); font-size: 0.8125rem; line-height: 20px; letter-spacing: 0.02em; color: var(--ink-2); }
.passage-track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 8px 0 var(--s5); }
.passage-track li { height: 6px; border: 1.5px solid var(--ink); border-radius: 1px; background: var(--white); }
.passage-track li.is-on { background: var(--ink); }
.passage--stepped { scroll-margin-top: 12px; }
.passage--stepped .passage-step { padding: 0; border-top: 0; }
.passage--stepped .passage-q:focus { outline: none; }
.passage-q--sum { margin-bottom: var(--s4); }
.passage-way { display: flex; gap: var(--s3); margin-top: var(--s5); }
.passage-next, .passage-back {
  min-height: 52px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.passage-next { flex: 1; background: var(--ink); color: var(--paper); }
.passage-back { background: var(--white); color: var(--ink); }
.passage-next:hover { background: var(--magenta-deep); border-color: var(--magenta-deep); }
.passage-back:hover { background: var(--sea); }
.passage-sum .passage-way { margin-top: var(--s4); }
.passage-sum .passage-back { min-height: 44px; border: 0; padding: 0; background: none; text-decoration: underline; font-weight: 500; font-size: 0.875rem; }
@media (max-width: 899px) {
  /* phones: the first step right under the title; the sample email after the steps */
  .passage { padding-top: 20px; }
  .passage-title { font-size: 1.625rem; }
  .passage-lede { font-size: 1rem; margin-top: var(--s2); }
  .passage-form { margin-top: var(--s5); }
  .passage-aside { order: 3; margin-top: var(--s7); }
}
@media (min-width: 900px) { .passage-next { flex: none; min-width: 200px; } }

/* ---- plans without a price column (2026-11-14, owner: the price waits for the last step) ----
   The week takes the room the price had: across the whole card on a phone, at the right from 900 px. */
.tariff-plan > a, .tariff-plan > label,
.tariff--pick .tariff-plan > label {
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-areas: "ico name" "ico when" "week week";
}
.tariff-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.tariff-week .tariff-day { width: auto; }
@media (min-width: 900px) {
  .tariff-plan > a, .tariff-plan > label,
  .tariff--pick .tariff-plan > label {
    grid-template-columns: 32px minmax(0, 1fr) 260px;
    grid-template-areas: "ico name week" "ico when week";
  }
  .tariff-week { margin-top: 0; align-self: center; }
}

/* the name and email steps (2026-11-15, owner) */
.passage-step .notice-field-name { display: block; margin-top: var(--s4); }
.passage-step--scripted .notice-input { width: 100%; margin-top: 6px; }
.passage-step--scripted { position: relative; }

/* the email-permission line and the privacy page's list of what is stored (2026-11-15, owner) */
.signup-family a { color: inherit; }
.longread-list { margin-top: var(--s3); padding-left: 1.25rem; list-style: disc; }
.longread-list li + li { margin-top: var(--s2); }
.longread-list li { line-height: 1.6; }

/* ---- the counting banner (muster), its footer button and the unsubscribe page (ashore) ----
   2026-11-15 (owner), drawn by KOTT Designer (runs/seaweed-radar/consent-unsub-2026-11-15). No new
   colours, no new fonts: the neatline, the notice label, the almanac key's margin rule, the long-read
   title and the outlined button.

   The banner is a chart-correction slip pasted on the foot of the page. It is the last child of <body>,
   after the footer. Sticky, not fixed: it rides the bottom of the screen while the page scrolls and at
   the very end takes its own room, so it never hides the footer for good. On phones it rides above the
   keel, never over it. Not a dialog: no overlay, no trap. Its two buttons are one class: same size,
   weight and colours, neither filled, neither magenta. */
.muster {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
}
.muster-sheet { padding-block: 12px 14px; align-items: start; }
.muster-words { grid-column: 1 / -1; font-size: 1rem; line-height: 1.4; }
.muster-title {                                /* run in, like a pilot book's paragraph head */
  display: inline;
  margin-right: 0.5em;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--magenta);
}
.muster-text { display: inline; }
.muster-text a { white-space: nowrap; }
.muster-choices {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: var(--s3);
}
.muster-choice {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 6px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
}
.muster-choice:hover { background: var(--sea); }
.muster-choice:active { background: var(--shoal); }

@media (prefers-reduced-motion: no-preference) {
  .muster { animation: muster-in 180ms ease-out; }   /* the one motion: a short fade in */
}
@keyframes muster-in { from { opacity: 0; } }

@media (max-width: 899px) {
  .keeled .muster { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }  /* the keel's height */
}
/* short phone screens: keel and banner together would hide the answer, so the keel waits until the
   reader has chosen, and the banner tightens. CSS only: the keel shows again as soon as tally.js sets
   the banner hidden. Delete this block to keep the keel always. */
@media (max-width: 899px) and (max-height: 640px) {
  .keeled:has(.muster:not([hidden])) .keel { display: none; }
  .keeled .muster { bottom: 0; }
  .muster-sheet { padding-block: 8px 10px; }
  .muster-words { font-size: 0.9375rem; line-height: 1.35; }
  .muster-choices { margin-top: var(--s2); }
  .muster-choice { min-height: 44px; }
}
@media (min-width: 900px) {
  .muster-sheet { padding-block: 20px 22px; }
  .muster-words { display: contents; }
  .muster-title {
    grid-column: 1 / 4;
    align-self: stretch;
    position: relative;
    margin: 0;
    font-size: 0.875rem;
    line-height: 26px;
  }
  .muster-title::after {                       /* the banner's margin rule, in the gutter */
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(var(--s5) / -2);
    border-right: 1px solid var(--magenta);
  }
  .muster-text { display: block; grid-column: 4 / 9; font-size: 1.0625rem; line-height: 26px; }
  .muster-choices { grid-column: 9 / -1; margin-top: 0; align-self: center; }
  .muster-choice { font-size: 0.875rem; }      /* the longer answer stays on one line in its two columns */
}
@media print { .muster, .muster-again-row { display: none !important; } }

/* the footer's "Cookie choices": a button that reopens the banner, set as its neighbours' links */
.muster-again {
  display: inline-block;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 24px;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.muster-again:hover { text-decoration-thickness: 2px; }
/* with it the site list's longer column (Spanish "Opciones de cookies") outgrew a 375 px phone by
   a pixel: the columns may now shrink, and the longest item wraps instead */
.tideline-list--site { grid-template-columns: repeat(2, minmax(0, max-content)); }

/* going ashore: the unsubscribe page. The long-read frame: the sea band holds the title and what
   happened (each part's first line continues the band), the paper holds what to do next. Five parts,
   one skeleton; gangplank.js shows one. The two stop buttons are one class, as on the banner. */
.ashore, .ashore-head, .ashore-ask, .ashore-outcome, section.ashore-said { display: grid; grid-template-columns: subgrid; align-content: start; }
.ashore { grid-column: 1 / -1; padding-bottom: 48px; }
.ashore > *, .ashore-head > *, .ashore-ask > *, .ashore-outcome > *, .ashore-said > * { grid-column: 1 / -1; min-width: 0; }
.ashore-head { padding-top: 28px; }
.ashore-head h1 { font-size: 2rem; line-height: 1.12; letter-spacing: -0.015em; font-weight: 500; }  /* as .longread h1 */
.ashore-lead { padding-block: var(--s3) 32px; font-size: 1.1875rem; line-height: 1.5; }
.ashore-lead a { overflow-wrap: anywhere; }
.ashore-choices { margin-top: var(--s5); display: grid; grid-auto-rows: 1fr; row-gap: var(--s3); }  /* one wraps, both grow */
.ashore-form { display: grid; }
.ashore-stop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
  min-height: 64px;
  padding: 12px 16px 12px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 600;
  text-align: left;
  text-wrap: balance;
  cursor: pointer;
}
.ashore-stop::after {                          /* the chevron, drawn: no icon inside the button's words */
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.ashore-stop:hover:not(:disabled) { background: var(--sea); }
.ashore-stop:disabled { opacity: 0.45; cursor: default; }
.ashore-note {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.ashore-next { margin-top: var(--s5); font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }
.ashore-next a { color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .ashore { padding-bottom: 88px; }
  .ashore-head { padding-top: 56px; }
  .ashore-head > *, .ashore-lead { grid-column: 1 / 9; }
  .ashore-head h1 { font-size: 3rem; }
  .ashore-lead { padding-bottom: 48px; font-size: 1.3125rem; }
  .ashore-ask > .ashore-lead { grid-row: 1; }
  .ashore-choices, .ashore-next { grid-column: 1 / 8; margin-top: var(--s7); }
  .ashore-choices { grid-row: 2; }
  .ashore-note {                               /* a margin note, ruled as the almanac's key */
    grid-column: 9 / -1;
    grid-row: 2;
    align-self: start;
    margin-top: var(--s7);
    padding: 2px 0 2px var(--s5);
    border-top: 0;
    border-left: 1px solid var(--ink);
  }
}
