/* South Africa map viewer (on top of site.css) */
.viewer-head { padding-top: 40px; }
.intro-help { max-width: 52em; margin: 6px 0 0; }
.viewer-head, .steps { max-width: 1320px; }

/* the four steps */
.steps { display: grid; gap: 14px; padding-top: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.step-h { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.step-h .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--paper); font-size: .85rem; }
.step-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.topic {
  font: inherit; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.topic b { font-size: 1rem; }
.topic span { font-size: .82rem; color: var(--muted); }
.topic:hover { border-color: var(--ochre-bright); }
.topic[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.topic[aria-pressed="true"] span { color: var(--paper); opacity: .85; }
.more { font: inherit; font-size: .88rem; margin: 10px 0 0; background: none; border: 0; padding: 4px 0; color: var(--navy-soft); text-decoration: underline; cursor: pointer; }
.more-list { margin-top: 8px; }
.products[hidden], .more[hidden], .day-note[hidden], .days[hidden] { display: none; }
/* fires seen by satellite: a thin dark ring so the yellow (older) dots show on the pale land */
#spots circle { stroke: #4a1d00; stroke-opacity: .7; }
.days button b { font-weight: 600; }
.day-note { margin: 8px 0 0; }
.where { display: flex; gap: 10px; flex-wrap: wrap; }
.find-town { flex: 1 1 220px; }
.find-town input, .province-pick select {
  width: 100%; font: inherit; font-size: .95rem; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
}
.province-pick { flex: 0 1 220px; }
.legend-strip { margin: 12px 0 0; }
.legend-h { font-size: .95rem; margin: 0 0 8px; }
.legend-strip .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.week-cap { margin: 14px 0 0; }
.linkish { font: inherit; font-size: .88rem; background: none; border: 0; padding: 0; margin: 12px 0 0; color: var(--navy-soft); text-decoration: underline; cursor: pointer; }
.viewer-head, .viewer, .how { max-width: 1320px; }
.viewer-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 8px; }
.lead.small { font-size: 1.02rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 8px; }

.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; padding-top: 12px; }
.panel { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.side { position: sticky; top: 80px; display: grid; gap: 16px; }
.control { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.panel .control:first-child { max-width: 520px; }
.themes { display: flex; flex-wrap: wrap; gap: 6px; }
.themes button, .days button, .units button {
  font: inherit; font-size: .84rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.themes button[aria-pressed="true"], .days button[aria-pressed="true"], .units button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.units { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.units[hidden] { display: none; }
.days button:disabled { opacity: .4; cursor: not-allowed; }
.products { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.products button {
  text-align: left; font: inherit; font-size: .86rem; line-height: 1.3; padding: 5px 11px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer;
}
.products button:hover { background: var(--chip); }
.products button[aria-current="true"] { background: var(--chip); font-weight: 600; border-color: var(--ochre-bright); box-shadow: inset 0 0 0 1px var(--ochre-bright); }

.stage { min-width: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.province-pick select, .town-pick select {
  font: inherit; font-size: .92rem; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); max-width: 100%;
}
.map-box { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; position: relative; background: #c9d3db; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
#map { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 1385; }
#sea { fill: #c9d3db; }
#land path { fill: #f3f1ec; stroke: none; }
#provinces path { fill: none; stroke: #2a2f35; stroke-width: 1; stroke-dasharray: 5 3; opacity: .7; vector-effect: non-scaling-stroke; }
#land path.border { fill: none; stroke: #1f2328; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
#sa-outline { fill: none; stroke: #111; stroke-width: 2; vector-effect: non-scaling-stroke; }
#focus { fill: none; stroke: #0b3d63; stroke-width: 3; vector-effect: non-scaling-stroke; }
/* "My farm" (30 Nov 2026): the finder under "Where?", the marker on the map, the farm in the town card */
.farm-pick { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.farm-h { margin: 0 0 6px; font-weight: 600; font-size: .92rem; }
.farm-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; align-items: center; }
.farm-coords { flex: 1 1 200px; }
.farm-coords input { width: 100%; font: inherit; font-size: .95rem; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
#farm-click[aria-pressed="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.map-box.picking #map { cursor: crosshair; }
.farm-dot { fill: #c98a3d; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.farm-lab { font-family: var(--sans); font-weight: 700; fill: #1c2329; paint-order: stroke; stroke: #fff; stroke-linejoin: round; pointer-events: none; }
.sat .farm-lab { fill: #fff; stroke: #1c2329; }
.farm-out { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.farm-how { margin-top: 8px; }
/* plan item 3.1: the farm's rain against every year since 1981 */
.farm-rain { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.farm-rain-h { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); margin: 0 0 6px; }
.farm-rain p { margin: 0 0 8px; line-height: 1.45; }
.rain-chart { margin: 4px 0 10px; }
.rain-chart svg { width: 100%; height: auto; display: block; }
.rc-bar { fill: var(--navy-soft, #7fb3d5); opacity: .55; }
.rc-now { fill: #c98a3d; }
.rc-med { stroke: var(--ink); stroke-dasharray: 3 3; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.rc-lab { font-size: 9px; fill: var(--muted); }
.rain-chart figcaption { margin-top: 2px; }
.rc-list { columns: 3; padding-left: 16px; margin: 6px 0 0; font-size: .82rem; }
#towns circle { fill: #111; stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; }
#towns circle.on { fill: #c98a3d; }
#towns text { font-family: var(--sans); font-weight: 600; fill: #1c2329; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.sat #towns text { fill: #fff; stroke: #1c2329; }
.map-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; background: rgba(255,255,255,.88); color: #444; padding: 8px 16px; border-radius: 999px; font-style: italic; }
.about-layer { margin-top: 14px; }
.about-layer h2 { font-size: 1.35rem; margin: 0 0 4px; }
.about-layer p { margin: 0 0 8px; max-width: 52em; }

.map-heading { margin: 0 0 12px; }
.map-heading h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--navy); margin: 0 0 4px; }
.map-short { font-size: 1.15rem; margin: 0 0 4px; line-height: 1.45; }
.theme-intro { margin: 10px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.explain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.explain div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.explain dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); font-weight: 700; margin: 0 0 6px; }
.explain dd { margin: 0; font-size: .95rem; line-height: 1.5; }
.tech { margin: 4px 0 0; }
.tech summary { cursor: pointer; color: var(--navy-soft); font-size: .92rem; }
.tech p { margin: 8px 0 0; }
@media (max-width: 900px) { .explain { grid-template-columns: 1fr; } }
.side-h { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 10px; color: var(--navy); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legend li { display: flex; gap: 10px; align-items: center; font-size: .86rem; line-height: 1.3; }
.legend i { flex: 0 0 26px; height: 16px; border-radius: 3px; border: 1px solid rgba(0,0,0,.18); }
.town-card select { width: 100%; margin: 0 0 12px; }
.town-out-name { font-family: var(--serif); font-size: 1.3rem; margin: 0; color: var(--navy); }
.town-out-big { font-size: 2rem; font-weight: 700; line-height: 1.1; margin: 6px 0 2px; }
.town-out-big small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.week { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week li { text-align: center; font-size: .78rem; background: var(--chip); border-radius: 8px; padding: 5px 2px; }
.week li b { display: block; font-size: .92rem; }
.week li.now { outline: 2px solid var(--ochre-bright); }
/* farm weather town card: crop guides to check this week */
.crop-links { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.crop-links-h { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); margin: 0 0 6px; }
.crop-links details { margin: 0 0 8px; }
.crop-links summary { cursor: pointer; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.crop-links ul { margin: 6px 0 0; padding-left: 18px; font-size: .86rem; line-height: 1.4; }
.crop-links ul li { margin: 0 0 4px; }
.crop-links details p { margin: 6px 0 0; line-height: 1.5; }

.guide { padding-top: 56px; }
.guide-theme { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 16px; box-shadow: var(--shadow); }
.guide-theme h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); margin: 0 0 4px; }
.guide-intro { color: var(--muted); margin: 0 0 12px; }
.guide dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 8px 18px; margin: 0; }
.guide dt { font-weight: 600; }
.guide dd { margin: 0; }
.guide .use { color: var(--muted); }
@media (max-width: 700px) { .guide dl { grid-template-columns: 1fr; } .guide dd { margin-bottom: 8px; } }
.how { padding-top: 56px; }
.product-page { padding-top: 40px; max-width: 900px; }
.product-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.product-page .eyebrow a { color: inherit; text-decoration: none; }
.product-page .explain { grid-template-columns: 1fr; }
.open-map { display: inline-block; background: var(--navy); color: var(--paper); text-decoration: none; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.open-map:hover { color: var(--paper); background: var(--navy-soft); }
.related { padding-left: 1.1em; }
.product-page.wide { max-width: 1180px; }
.catch-map { margin: 18px 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.catch-map svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.catch-map .prov { fill: none; stroke: #2a2f35; stroke-width: 1; stroke-dasharray: 5 3; opacity: .6; }
.catch-map .catch path { stroke: #111; stroke-width: 1.2; }
.catch-map .sa { fill: none; stroke: #111; stroke-width: 2; }
.catch-labels text { font: 600 12px var(--sans); fill: #1c2329; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.catch-map .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 0; }
.catch-map .legend li { display: flex; gap: 8px; align-items: center; font-size: .86rem; }
.catch-map .legend i { width: 24px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.18); }
.table-wrap { overflow-x: auto; }
.catch-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--card); }
.catch-table th, .catch-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.catch-table thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; background: var(--chip); color: var(--ochre); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.dl-group { margin: 0 0 22px; }
.dl-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.dl-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.dl-list .links { display: flex; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.sa-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; max-width: 1180px; padding-top: 18px; }
.sa-tile {
  display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease;
}
.sa-tile b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); }
.sa-tile span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.sa-tile:hover { border-color: var(--ochre-bright); transform: translateY(-2px); color: var(--ink); }
.sa-tile.quiet { background: var(--paper); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .sa-tile:hover { transform: none; } }
.sa-note { max-width: 52em; margin-top: 22px; }
/* the two parts of each region: Weather and climate, Crops (build_sections.region_switch) */
.region-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; margin: 10px 0 18px; }
.rs-tab { display: grid; align-content: start; gap: 4px; padding: 14px 18px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); }
.rs-tab b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.rs-tab span { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.rs-tab:hover { border-color: var(--ochre-bright); color: var(--ink); }
.rs-tab[aria-current="page"] { background: var(--navy); border-color: var(--navy); }
.rs-tab[aria-current="page"] b, .rs-tab[aria-current="page"] span { color: var(--paper); }
@media (max-width: 520px) { .rs-tab { padding: 12px 14px; } .rs-tab b { font-size: 1.1rem; } }
.hub .sa-tiles { padding-top: 6px; }
.hub-h { font-family: var(--serif); color: var(--navy); font-size: 1.35rem; margin: 26px 0 2px; }
.hub-sub { margin: 0 0 6px; }
.hub-more { margin-top: 22px; }
/* "What changed since yesterday?" on the starting pages (tools/changes.py) */
.changes-list { margin: 8px 0 0; padding: 14px 18px 14px 34px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; max-width: 60em; }
.changes-list li { margin: 0 0 8px; line-height: 1.55; }
.changes-list > li:last-child { margin-bottom: 0; }
.changes-towns { margin: 2px 0 6px; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.changes-towns li { margin: 0 0 2px; }
.changes-more { margin-top: 8px; max-width: 60em; }
.changes-more summary { cursor: pointer; font-weight: 600; color: var(--navy-soft); padding: 6px 0; }
.changes-more summary:focus-visible { outline: 3px solid var(--ochre-bright); outline-offset: 2px; }
.mt-since { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--navy-soft); background: var(--card);
  border-radius: 0 10px 10px 0; }
.sa-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 0; }
.sa-tabs a { font-size: .86rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.sa-tabs a:hover { border-color: var(--ochre-bright); }
.sa-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.sa-tabs-m { display: none; }                   /* the phone version of the map pages (see the 640px block) */
/* South Africa overview: the farming pages in one row (a farmer, 30 Nov 2026: "hard to find the farming parts") */
.farm-start { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.farm-start-h { font-weight: 700; color: var(--ochre); margin-right: 2px; }
.farm-start a { font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--navy);
  color: var(--navy); text-decoration: none; }
.farm-start a:first-of-type { background: var(--navy); color: var(--paper); }
.farm-start a:hover { border-color: var(--ochre-bright); }
.viewer-head .eyebrow a { color: inherit; text-decoration: none; }
.sub-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.sub-nav a { font-size: .92rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; color: var(--ink); }
.sub-nav a:hover { border-color: var(--ochre-bright); }
.related li { margin: 0 0 6px; }
.how .card p { margin: 0; }

/* ---------- photographs (js/photos.js) ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.ph-grid.two { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ph-item { margin: 0; }
.ph-item a { display: block; border-radius: 12px; overflow: hidden; background: var(--card); }
.ph-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; transition: transform .2s ease; }
.ph-item a:hover img { transform: scale(1.03); }
.ph-item a:focus-visible { outline: 3px solid var(--ochre-bright); outline-offset: 2px; }
.ph-item figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .ph-item a:hover img { transform: none; } }
.ph-dialog { border: none; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; }
.ph-dialog::backdrop { background: rgba(5, 12, 18, .88); }
.ph-dialog figure { margin: 0; }
.ph-dialog img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 8px; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.ph-dialog figcaption { color: #e9e5dd; text-align: center; padding: 10px 6px 4px; font-size: .95rem; }
/* Two homes: following one photograph, and what the records say (16 Nov 2026) */
.story-lead { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 10px 0 18px; }
.story-lead .ph-grid.lead { grid-template-columns: 1fr; margin-top: 0; }
.story-text p { font-size: 1.08rem; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 18px; }
.story-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.story-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.story-card p { margin: 0; font-size: .95rem; line-height: 1.5; }
.rec-table td.v-clear { font-weight: 700; color: var(--ink); }
.rec-table td.v-hint { color: var(--ink); }
.rec-table td.v-none { color: var(--muted); }
.rec-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0; }
.rec-fig { margin: 0; }
.rec-fig figcaption { font-size: .9rem; margin-bottom: 4px; }
.rec-chart { width: 100%; height: auto; display: block; background: var(--card); border-radius: 10px; }
.rec-chart .grid { stroke: var(--line); stroke-width: 1; }
.rec-chart .ax { font-size: 11px; fill: var(--muted); }
.rec-chart .trend { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 4; }
@media (max-width: 760px) { .story-lead { grid-template-columns: 1fr; } }
.rec-answer { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ochre-bright);
              border-radius: 12px; padding: 14px 18px; margin: 8px 0 14px; max-width: 60em; }
.rec-answer h3 { margin: 0 0 8px; color: var(--navy); }
.rec-answer p { margin: 0 0 10px; }
/* forecast freshness on the starting pages (feedback, 16 Nov 2026) */
.fresh { margin: 6px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
         max-width: 52em; }
.fresh-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3fa34d; margin-right: 8px;
             vertical-align: 1px; }
.fresh.stale .fresh-dot { background: var(--ochre-bright); }
.fresh-age { color: var(--muted); }
/* photography shortcuts (feedback, 16 Nov 2026) */
.ph-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.ph-jump a { font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
             color: var(--ink); text-decoration: none; }
.ph-jump a:hover { border-color: var(--ochre-bright); }
.ph-jump a.dogs { border-color: var(--ochre-bright); }
/* shortcut targets land below the sticky header with room to spare (feedback, 16 Nov 2026: the heading went under it) */
.ph-group, .ph-group h2, main h2[id], main section[id] { scroll-margin-top: 84px; }
/* the Big Five: one row of five on wide screens (feedback, 16 Nov 2026) */
@media (min-width: 1000px) { .ph-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
/* the huskies tribute (16 Nov 2026) */
.dog h2 { font-family: var(--serif); color: var(--navy); margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.dog .eyebrow { margin-bottom: 2px; }
.dog-text { max-width: 44em; margin-bottom: 14px; }
.dog-text p { margin: 0 0 12px; }
.dog-end { padding-top: 10px; }
.dog-last { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.dogs-link { display: inline-block; margin-top: 4px; }
.dogs-intro { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin: 0 0 12px; }
.ph-nav { display: flex; justify-content: center; gap: 8px; margin: 6px 0 0; flex-wrap: wrap; }
.ph-close, .ph-prev, .ph-next { font: inherit; padding: 6px 16px; border-radius: 999px; border: 1px solid #e9e5dd; background: transparent; color: #e9e5dd; cursor: pointer; min-height: 36px; }
.ph-prev[hidden], .ph-next[hidden] { display: none; }
.ph-close:hover, .ph-prev:hover, .ph-next:hover { background: rgba(233, 229, 221, .12); }
.ph-close:focus-visible, .ph-prev:focus-visible, .ph-next:focus-visible { outline: 3px solid var(--ochre-bright); outline-offset: 2px; }
.ph-dialog .ph-count { color: #b9b4aa; font-size: .85rem; }
.ph-note { max-width: 52em; }

/* ---------- Two homes ---------- */
:root { --th-pre: #c46a12; --th-bos: #0b3d63; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --th-pre: #e3a660; --th-bos: #7fb3d5; } }
:root[data-theme="dark"] { --th-pre: #e3a660; --th-bos: #7fb3d5; }
.th-bar { opacity: .9; } .th-bar.pretoria { fill: var(--th-pre); } .th-bar.boston { fill: var(--th-bos); }
.th-key i.pretoria { background: var(--th-pre); } .th-key i.boston { background: var(--th-bos); }
.th-card.pretoria { border-top-color: var(--th-pre) !important; } .th-card.boston { border-top-color: var(--th-bos) !important; }
.th-section { margin-top: 26px; }
.th-section h2 { font-family: var(--serif); color: var(--navy); margin: 0 0 8px; }
.th-h3 { font-family: var(--serif); color: var(--navy); font-size: 1.15rem; margin: 22px 0 2px; }
.th-controls { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 4px; }
.th-key { display: flex; gap: 18px; list-style: none; padding: 0; margin: 8px 0 0; }
.th-key span { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }
.th-key i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.th-chart { margin: 6px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.th-chart svg { display: block; width: 100%; height: auto; }
.th-chart .grid { stroke: var(--line); stroke-width: 1; }
.th-chart .freeze { stroke: #4292c6; stroke-width: 1.2; stroke-dasharray: 5 4; }
.th-chart .ax { font-size: 12px; fill: var(--muted); }
.th-chart .ax.small { font-size: 10.5px; font-style: italic; }
.th-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.th-card { background: var(--card); border: 1px solid var(--line); border-top: 5px solid; border-radius: 14px; padding: 14px 16px; }
.th-card.pretoria { border-top-color: #c46a12; } .th-card.boston { border-top-color: #0b3d63; }
.th-card h3 { font-family: var(--serif); color: var(--navy); margin: 0; }
.th-card dl { margin: 8px 0 0; } .th-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.th-card dt { color: var(--muted); font-size: .9rem; } .th-card dd { margin: 0; text-align: right; font-size: .92rem; }
.th-year td.chip { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.th-year td.warm, .th-year td.dry { background: rgba(230, 120, 30, .16); }
.th-year td.cool, .th-year td.wet { background: rgba(33, 102, 172, .16); }
.th-limits li { margin: 0 0 6px; }
.th-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 14px 0 0; }
.th-note { margin: 0; padding: 12px 16px 6px; border-left: 4px solid var(--ochre-bright); background: var(--card); border-radius: 0 12px 12px 0; }
.th-note.pretoria { border-left-color: var(--th-pre); } .th-note.boston { border-left-color: var(--th-bos); }
.th-note-h { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.th-note p:not(.th-note-h) { margin: 0 0 8px; font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; }

/* ---------- "Your town this week" on the start pages ---------- */
.my-town { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.my-town h2 { font-family: var(--serif); color: var(--navy); margin: 0 0 10px; font-size: 1.4rem; }
.mt-find-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.mt-find-row .find-town input { min-width: min(22em, 80vw); }
.mt-town { font-family: var(--serif); color: var(--navy); font-size: 1.25rem; margin: 14px 0 4px; }
.mt-sum { margin: 0 0 10px; font-size: 1.02rem; }
.mt-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.mt-table th, .mt-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.mt-table th[scope="row"], .mt-table thead th:first-child { text-align: left; }
.mt-table thead th { font-size: .82rem; color: var(--muted); font-weight: 600; }
.mt-table td.rain { position: relative; }
.mt-table td.rain .bar { position: absolute; left: 6px; top: 50%; height: 6px; transform: translateY(-50%); background: #74add1; border-radius: 3px; opacity: .55; max-width: calc(100% - 52px); }
.mt-more { margin: 0 0 10px; }
/* forecast confidence in the town box (Nov 2026) */
.mt-table td.range { color: var(--muted); }
.mt-sure { margin: 12px 0 4px; padding: 10px 14px; border-left: 3px solid var(--ochre-bright); background: var(--card);
  border-radius: 0 10px 10px 0; line-height: 1.55; }
.mt-sure-h { font-weight: 700; color: var(--navy); }
/* where a number comes from (F4) */
.num-kind { display: inline-block; font-size: .8rem; line-height: 1.35; padding: 1px 9px; border: 1px solid currentColor; border-radius: 10px;
  color: var(--muted); font-weight: 400; }
.mt-stale { margin: 4px 0 10px; padding: 8px 12px; border-radius: 10px; background: #fff3cd; color: #5c4400;
  border: 1px solid #e0c36b; font-weight: 600; }
:root[data-theme="dark"] .mt-stale { background: #3a2f12; color: #f3dc9b; border-color: #6b5a2a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mt-stale { background: #3a2f12; color: #f3dc9b; border-color: #6b5a2a; } }
.mt-past { margin: 6px 0 0; }
/* official weather alerts in the town box (Nov 2026): colours pass WCAG AA in both themes */
.mt-alerts { margin: 0 0 8px; }
.mt-alert-none { margin: 0 0 8px; font-size: .92rem; color: var(--muted); }
.mt-alert-h { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.mt-alert { margin: 0 0 6px; padding: 8px 12px; border-radius: 10px; border-left: 5px solid; line-height: 1.5; }
.mt-alert b { margin-right: 2px; }
.mt-alert-d { display: block; font-size: .9rem; margin-top: 2px; }
.mt-alert.sev-extreme, .mt-alert.sev-severe { background: #fde2e1; color: #5f0d0b; border-color: #b3261e; }
.mt-alert.sev-moderate { background: #fff0d6; color: #4d3200; border-color: #c77700; }
.mt-alert.sev-minor, .mt-alert.sev-unknown { background: #e8eef7; color: #1d3554; border-color: #4a6fa5; }
:root[data-theme="dark"] .mt-alert.sev-extreme, :root[data-theme="dark"] .mt-alert.sev-severe { background: #3d1513; color: #ffd9d6; }
:root[data-theme="dark"] .mt-alert.sev-moderate { background: #3a2a0c; color: #ffe2b0; }
:root[data-theme="dark"] .mt-alert.sev-minor, :root[data-theme="dark"] .mt-alert.sev-unknown { background: #18263a; color: #d6e4f7; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mt-alert.sev-extreme, :root:not([data-theme="light"]) .mt-alert.sev-severe { background: #3d1513; color: #ffd9d6; }
  :root:not([data-theme="light"]) .mt-alert.sev-moderate { background: #3a2a0c; color: #ffe2b0; }
  :root:not([data-theme="light"]) .mt-alert.sev-minor, :root:not([data-theme="light"]) .mt-alert.sev-unknown { background: #18263a; color: #d6e4f7; }
}
.mt-alert-more { margin: 0 0 8px; font-size: .92rem; }
.mt-past summary { cursor: pointer; color: var(--muted); font-size: .92rem; padding: 4px 0; }
/* the 12-month greenness and rain chart (town box, South Africa) */
.mt-year summary { color: var(--navy); font-weight: 600; }
.yc-wrap { max-width: 680px; }
.year-chart { width: 100%; height: auto; display: block; }
.year-chart .yc-title { font: 600 13px var(--sans); fill: var(--ink); }
.year-chart .yc-ax { font: 11px var(--sans); fill: var(--muted); }
.year-chart .yc-grid { stroke: var(--line); stroke-width: 1; }
.year-chart .yc-month { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.year-chart .yc-band { fill: var(--sage); fill-opacity: .22; stroke: none; }
.year-chart .yc-avg { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.year-chart .yc-now { fill: none; stroke: var(--sage); stroke-width: 2.2; }
.year-chart .yc-dot { fill: var(--sage); stroke: var(--card); stroke-width: 1.2; }
.year-chart .yc-dot.low { fill: var(--ochre); }
.year-chart .yc-dot.high { fill: var(--navy); }
.year-chart .yc-bar { fill: var(--navy-soft); fill-opacity: .85; }
.year-chart .yc-range { stroke: var(--muted); stroke-width: 1.5; stroke-opacity: .6; }
.year-chart .yc-norm { stroke: var(--ink); stroke-width: 2; }
.yc-key span { display: inline-block; width: 18px; height: 10px; vertical-align: middle; margin-right: 2px; }
.yc-key .k-now { height: 3px; background: var(--sage); }
.yc-key .k-band { background: var(--sage); opacity: .3; }
.yc-key .k-avg { height: 0; border-top: 2px dashed var(--muted); }
.yc-key .k-bar { background: var(--navy-soft); }
.yc-key .k-norm { height: 0; border-top: 2px solid var(--ink); }
.mt-past table { opacity: .8; }
/* climate history (Nov 2026) */
.ch-pick { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 4px 0 12px; }
.ch-pick label { font-weight: 600; }
.ch-pick select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--muted);
  border-radius: 10px; padding: 8px 10px; max-width: 100%; }
.ch-summary { margin: 0 0 14px; padding: 14px 18px 14px 34px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; max-width: 62em; }
.ch-summary li { margin: 0 0 8px; line-height: 1.55; }
.ch-fig { margin: 0 0 14px; }
.ch-cap { font-size: .92rem; font-weight: 600; color: var(--navy); margin: 4px 6px 2px; }
.th-chart .ch-bar { fill: #74add1; }
.th-chart .ch-bar.dot { fill: var(--ochre); }
.th-chart .ch-avg { stroke-width: 2.4; }
.th-chart .ch-avg.early { stroke: var(--muted); stroke-dasharray: 6 4; }
.th-chart .ch-avg.recent { stroke: var(--ochre); }
@media (max-width: 600px) {                       /* phones: the whole week fits without sideways scrolling */
  .my-town { padding: 14px 12px; }
  .mt-table th, .mt-table td { padding: 5px 4px; font-size: .9rem; }
  .mt-table thead th { white-space: normal; font-size: .74rem; line-height: 1.2; vertical-align: bottom; }
  .mt-table td.rain .bar { display: none; }
}
.mt-more a { font-weight: 600; }

/* ---------- beside the map: quick day / area, copy this view, freshness ---------- */
.map-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0 10px; font-size: .9rem; }
.map-tools label { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.map-tools select { font: inherit; font-size: .9rem; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); max-width: 15em; }
.copy-view { font: inherit; font-size: .88rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; }
.copy-view:focus-visible, .map-tools select:focus-visible { outline: 3px solid var(--ochre-bright); outline-offset: 2px; }
.expired { margin: 6px 0; padding: 8px 12px; border-radius: 10px; background: #fff4e5; color: #7a4b00; border: 1px solid #f0c27b; font-size: .92rem; }
.expired[hidden] { display: none; }

/* ---------- credits ---------- */
.map-mark { position: absolute; right: 8px; bottom: 8px; background: rgba(11,61,99,.88); color: #fff; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; pointer-events: none; }
.map-credit { font-size: .82rem; color: var(--muted); margin: 8px 0 0; max-width: 60em; }
.credits-page { max-width: 52em; }
.credits-h { margin: 34px 0 10px; }
.how-credit { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--ochre-bright); border-radius: 14px; padding: 18px 22px; margin-top: 22px; }
.how-credit h2 { margin-top: 0; }
.credit-line { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0 10px; }
.copy-btn { font: inherit; font-size: .9rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--navy); background: var(--navy); color: var(--paper); cursor: pointer; }
.copy-btn:focus-visible { outline: 3px solid var(--ochre-bright); outline-offset: 2px; }
.credit { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.credit h2 { font-size: 1.2rem; margin: 2px 0 6px; }
.credit .cite { font-size: .9rem; color: var(--muted); }
.methods li { margin: 0 0 8px; }

/* ---------- coast: tide charts ---------- */
.coast-panel { margin-top: 30px; }
.coast-panel h2 { font-family: var(--serif); color: var(--navy); margin: 0 0 6px; }
.tide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.tide-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.tide-card p { margin: 4px 0 0; }
.tide { display: block; width: 100%; height: auto; margin-top: 6px; }
.tide .bg { fill: #f6f8fa; }
.tide .grid { stroke: #dde3e8; stroke-width: 1; }
.tide .day { stroke: #c7cfd6; stroke-width: 1; }
.tide .ax { font-size: 11px; fill: #5b6670; }
.tide .astro { fill: none; stroke: #9aa5ae; stroke-width: 1.4; }
.tide .fcst { fill: none; stroke: #0b3d63; stroke-width: 2.2; }
.tide .obs { fill: #111; }
.tide-card .tide-live { margin: 6px 0 0; font-weight: 600; color: var(--ink); }
.tide-card .tide-live:empty { display: none; }
/* rivers now (Nov 2026) */
.river-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 8px 0; }
.river-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.river-card p { margin: 4px 0 0; }
.river-chart { display: block; width: 100%; height: auto; margin-top: 6px; }
.river-chart .band { fill: #74add1; opacity: .18; }
.river-chart .median { stroke: #74add1; stroke-dasharray: 4 3; stroke-width: 1; }
.river-chart .flow { fill: none; stroke: var(--navy-soft); stroke-width: 2; }
.river-chart .now { fill: var(--ochre); }
.river-class { font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.river-class.lo2 { background: #8c510a; color: #fff; } .river-class.lo1 { background: #f6e8c3; color: #4d3200; }
.river-class.mid { background: #e5f2e5; color: #1b4d1b; } .river-class.hi1 { background: #c7eae5; color: #0c4a44; }
.river-class.hi2 { background: #01665e; color: #fff; }
.tide .now { stroke: #b23a2b; stroke-width: 1.2; stroke-dasharray: 3 3; }
.tide .fl1 { stroke: #e08a00; stroke-width: 1.4; stroke-dasharray: 6 4; fill: #b86e00; }
.tide .fl2 { stroke: #d1452b; stroke-width: 1.4; stroke-dasharray: 6 4; fill: #b23a2b; }
.tide .fl3 { stroke: #7b1fa2; stroke-width: 1.4; stroke-dasharray: 6 4; fill: #7b1fa2; }
.tide line.fl1, .tide line.fl2, .tide line.fl3 { fill: none; }
.tide .fl-lab { font-size: 10.5px; stroke: none; }
.flood-minor { color: #b86e00; } .flood-moderate { color: #b23a2b; } .flood-major { color: #7b1fa2; }

/* ---------- nor'easter tracker ---------- */
.storm-panel { margin-top: 22px; }
.storm-panel h2 { font-family: var(--serif); color: var(--navy); margin: 0 0 6px; }
.storm-fig { margin: 12px 0 0; }
.storm-map { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: #c9d3db; }
.storm-map .sea { fill: #c9d3db; }
.storm-map .land { fill: #f3f1ec; stroke: #8a8f96; stroke-width: .6; }
.storm-map .zone { fill: rgba(11,61,99,.07); stroke: #0b3d63; stroke-width: 1.2; stroke-dasharray: 6 4; }
.storm-map .zone-label { font-size: 12px; fill: #0b3d63; font-style: italic; }
.storm-map .boston { fill: #b23a2b; stroke: #fff; stroke-width: 1.5; }
.storm-map .place { font-size: 12px; font-weight: 600; fill: #1d2733; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.storm-map .track { fill: none; stroke-width: 2; }
.storm-map .track.ne { stroke-width: 4.5; }
.storm-map .track.ec { stroke: #0b3d63; }
.storm-map .track.gfs { stroke: #d9822b; stroke-dasharray: 7 4; }
.storm-map .pt.ec { fill: #0b3d63; }
.storm-map .pt.gfs { fill: #d9822b; }
.storm-map .lab { font-size: 11px; fill: #1d2733; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.storm-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: .86rem; color: var(--muted); list-style: none; padding: 0; }
.storm-key .k { display: inline-block; width: 26px; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: 6px; }
.storm-key .k.ec { border-color: #0b3d63; }
.storm-key .k.gfs { border-color: #d9822b; border-top-style: dashed; }
.storm-key .k.ne { border-top-width: 6px; border-color: #1d2733; }
.storm-map .cone { fill: rgba(255, 255, 255, .55); stroke: #b23a2b; stroke-width: 1.5; }
.storm-map .track.nhc { stroke: #1d2733; stroke-width: 2.5; }
.storm-map .pt.nhc { fill: #b23a2b; stroke: #fff; stroke-width: 1; }
.storm-map .pt.nhc.H, .storm-map .pt.nhc.M { fill: #7a0f3a; }
.storm-key .k.cone { height: 10px; border: 1.5px solid #b23a2b; background: rgba(255, 255, 255, .55); }
.storm-key .k.nhc { border-color: #1d2733; }
.storm-key .k.zone { height: 10px; border: 1.5px dashed #0b3d63; background: rgba(11,61,99,.07); }

@media (max-width: 900px) {
  .step-row { grid-template-columns: 1fr; }
  .viewer { grid-template-columns: 1fr; }
  .side { position: static; }
}
/* the map closer to the choices (feedback, 16 Nov 2026): wide screens put steps 1 and 2 side by side */
.viewer-head { padding-top: 28px; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
  .step-row { grid-column: 1 / -1; }
  .topics { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 640px) {
  .viewer-head { padding-top: 14px; }
  .viewer-title { font-size: 1.7rem; margin-bottom: 4px; }
  .viewer-head:has(.sa-tabs) .intro-help { display: none; }   /* map pages on phones: the title and tabs say it */
  .viewer-head .lead { font-size: .9rem; margin-bottom: 0; }
  /* phones: the map pages as a labelled list that opens with a tap, not a sideways-scrolling row (reviewer, 30 Nov 2026) */
  .sa-tabs { display: none; }
  .sa-tabs-m { display: block; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
  .sa-tabs-m summary { cursor: pointer; padding: 10px 14px; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
  .sa-tabs-m summary::-webkit-details-marker { display: none; }
  .sa-tabs-m summary::after { content: "▾"; color: var(--ochre); }
  .sa-tabs-m[open] summary::after { content: "▴"; }
  .sa-tabs-m nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px 10px; }
  .sa-tabs-m a { font-size: .86rem; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.25; }
  .sa-tabs-m a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
  .steps { gap: 10px; padding-top: 12px; }
  .step-row { gap: 10px; }
  .step-h { font-size: .95rem; margin-bottom: 8px; }
  .map-heading { scroll-margin-top: 58px; }     /* below the sticky header when the page scrolls to the map */
  .step-day { display: none; }                  /* phones: the day is chosen in the "Day" box right above the map */
}
@media (max-width: 600px) {
  .topics { grid-template-columns: 1fr 1fr; }
  .topic { padding: 8px 10px; }
  .topic span { display: none; }               /* phones: short question buttons */
  .step { padding: 12px; }
  .days button { padding: 5px 9px; }
}

/* ---------------------------------------------------------------- crop guide (24 Nov 2026) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.crop-glance { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 28px; }
.crop-here { background: var(--chip); border-left: 4px solid var(--sage); padding: 10px 14px; border-radius: 6px; }
.crop-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; }
.crop-facts dt { font-weight: 700; color: var(--navy); }
.crop-facts dd { margin: 0; }
.crop-fig { margin: 0; }
.crop-fig img { width: 100%; height: auto; border-radius: 8px; display: block; background: var(--chip); }
.crop-fig figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.crop-sec { margin: 0 auto 30px; }
.crop-sec > p, .crop-sec li { max-width: 46em; }
.refs { font-size: .78em; margin-left: 3px; white-space: nowrap; }
.ref { text-decoration: none; }
.crop-town { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 30px; }
.crop-town h2 { margin-top: 0; }
.crop-town input { width: min(100%, 380px); padding: 9px 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.ct-town { font-weight: 700; color: var(--navy); margin: 14px 0 4px; }
.crop-map { max-width: 420px; margin: 0 0 12px; }
.crop-map svg { width: 100%; height: auto; display: block; }
.crop-map path { fill: var(--chip); stroke: var(--paper); stroke-width: 3; }
.crop-map path.on { fill: var(--sage); }
.crop-map path.outline { fill: none; stroke: var(--navy); stroke-width: 2.5; }
.crop-map figcaption { font-size: .85rem; color: var(--muted); }
.crop-refer { background: var(--chip); border-left: 4px solid var(--ochre-bright); padding: 10px 14px; border-radius: 6px; }
.crop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.crop-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.crop-card h4 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.crop-card ul { padding-left: 1.2em; margin: 4px 0 10px; }
.crop-card-imgs { display: grid; gap: 10px; margin: 10px 0; }
.crop-nophoto { border: 1px dashed var(--line); border-radius: 8px; padding: 10px; }
.what-to-do { background: var(--chip); padding: 8px 10px; border-radius: 6px; font-size: .95rem; }
.crop-report { border-left: 4px solid var(--ochre); padding-left: 10px; }
.crop-contacts { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.crop-contacts dt { font-weight: 700; margin-top: 8px; }
.crop-contacts dd { margin: 0; }
.crop-sources li { margin-bottom: 6px; font-size: .92rem; }
.crop-list li { margin-bottom: 6px; }
.crop-jump { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; margin: 14px 0; }
.crop-jump p { margin: 0; line-height: 1.9; }
.crop-group-maps { margin-top: -4px; }
.crop-list + .crop-group-maps, .crop-maplinks { color: var(--muted, inherit); }
.crop-back { margin: 24px auto 8px; }
h3[id^="g-"], #recent { scroll-margin-top: 80px; }
@media (max-width: 760px) {
  .crop-glance { grid-template-columns: 1fr; }
  .crop-facts { grid-template-columns: 1fr; gap: 2px; }
  .crop-facts dd { margin-bottom: 8px; }
}

/* the shared town finder (js/town-find.js, 27 Nov 2026): a Show button, matches as buttons, a plain message when
   nothing fits, and the town being shown on its own line */
.tf-go { font: inherit; font-size: .95rem; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--navy);
  background: var(--navy); color: var(--paper); cursor: pointer; align-self: flex-end; }
.tf-go:hover { filter: brightness(1.12); }
.tf-go:focus-visible, .tf-pick:focus-visible { outline: 3px solid var(--ochre-bright); outline-offset: 2px; }
.crop-town .tf-go { margin-left: 8px; vertical-align: middle; }
.tf { margin: 8px 0 0; }
.tf-msg p { margin: 0 0 6px; font-size: .92rem; }
.tf-msg.tf-none p { color: var(--ochre); font-weight: 600; }
.tf-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tf-pick { font: inherit; font-size: .9rem; padding: 6px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--navy); cursor: pointer; }
.tf-pick:hover { border-color: var(--navy-soft); }
.tf-active { margin: 6px 0 0; font-size: .95rem; }
.tf-active b { color: var(--navy); }
@media print { .tf-go, .tf-msg { display: none; } }

/* A guide to every map: the filter, and one entry per map (js/guide-filter.js, 27 Nov 2026) */
.gf { margin-top: 18px; }
.gf-label { display: block; font-weight: 600; margin: 0 0 6px; }
.gf input { width: min(100%, 460px); font: inherit; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); }
.gf input:focus-visible { outline: 3px solid var(--ochre-bright); outline-offset: 2px; }
.gf-count { margin: 6px 0 0; }
.gf-count.gf-none { color: var(--ochre); font-weight: 600; }
.gf + .guide { padding-top: 22px; }
.guide dl > .g-item { display: contents; }
.guide dl > .g-item[hidden], .guide-theme[hidden] { display: none; }
.guide-h { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0 0 4px; }
.guide-h a { color: var(--navy); text-decoration: none; }
.guide-h a:hover { text-decoration: underline; }
.g-more { margin: 4px 0 2px; font-size: .92rem; }
.g-more summary { cursor: pointer; color: var(--navy-soft); }
.g-more p { margin: 6px 0; }
@media print { .gf { display: none; } }

/* the short lead on a map page that says who the maps are for (Livestock weather; reviewer, 27 Nov 2026) */
.section-lead { max-width: 52em; margin: 8px 0 0; }
.section-lead:first-of-type { font-weight: 500; }

/* My farm: what setting a farm gives, and the highlight when a "My farm" link brings you here */
.farm-gives { margin: .2rem 0 .6rem; }
.farm-pick.farm-flash { outline: 3px solid #f2a541; outline-offset: 4px; border-radius: .4rem; transition: outline-color 2s; }
.farm-start a.farm-key { background: var(--ochre-bright, #f2a541); border-color: var(--ochre-bright, #f2a541); color: #12324a; }
.farm-start a.farm-key + a { background: transparent; color: inherit; }

/* My farm report (plan 3.8a, 1 Dec 2026): choices on screen, a clean document on paper */
.report-page { max-width: 60rem; }
.rep-pick { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: .6rem; padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; }
.rep-opts { border: 0; padding: 0; margin: .8rem 0; }
.rep-opts legend { font-weight: 700; margin-bottom: .3rem; }
.rep-opts label { display: block; margin: .3rem 0; cursor: pointer; }
.rep-maps { columns: 2 18rem; }
.rep-group { break-inside: avoid; margin-bottom: .6rem; }
.rep-group-h { font-weight: 600; margin: .4rem 0 .1rem; opacity: .85; }
.rep-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: .7rem 0 0; }
.rep-print { border: 0; cursor: pointer; font-size: 1rem; }
.rep-empty { font-size: 1.1rem; }
.rep-doc { background: #fff; color: #1c2329; border-radius: .6rem; padding: 1.6rem 1.8rem; }
.rep-doc a { color: #12324a; }
.rep-doc .muted { color: #4a545e; }
.rep-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: #8a5a1f; margin: 0; }
.rep-doc h2 { color: #12324a; margin: .2rem 0 .6rem; }
.rep-doc h3 { color: #12324a; border-bottom: 2px solid #f2a541; padding-bottom: .2rem; margin-top: 1.6rem; }
.rep-info { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: 0 0 .6rem; }
.rep-info div { display: contents; }
.rep-info dt { font-weight: 700; }
.rep-info dd { margin: 0; }
.rep-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rep-table th, .rep-table td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid #dde2e6; vertical-align: top; }
.rep-table td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.rep-doc .farm-rain { background: none; border: 0; padding: 0; }
.rep-doc .farm-rain-h { font-size: 1.1rem; font-weight: 700; color: #12324a; margin-top: 1.4rem; }
.rep-doc .rain-chart { max-width: 34rem; }
.rep-map-fig { break-inside: avoid; margin: 1.2rem 0; max-width: 34rem; }
.rep-map { width: 100%; height: auto; border: 1px solid #cfd6dc; border-radius: .3rem; background: #dfe9f1; }
.rep-sea { fill: #dfe9f1; }
.rep-land path { fill: #f3f1ec; }
.rep-prov path { fill: none; stroke: #2a2f35; stroke-width: 1; stroke-dasharray: 5 3; opacity: .6; vector-effect: non-scaling-stroke; }
.rep-border path { fill: none; stroke: #1f2328; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.rep-outline { fill: none; stroke: #111; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rep-town { fill: #1c2329; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rep-town-lab { font-family: var(--sans, sans-serif); fill: #1c2329; paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
.rep-cap { font-size: .92rem; margin: .4rem 0; }
.rep-key { list-style: none; padding: 0; margin: .2rem 0; display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .85rem; }
.rep-sw { display: inline-block; width: .9rem; height: .9rem; border: 1px solid #8a949c; vertical-align: -.1rem; margin-right: .3rem; }
.rep-foot { margin-top: 1.6rem; }
@media print {
  body { background: #fff !important; color: #000 !important; }
  .site-head, .region-nav, .site-foot, .crumbs, .no-print, .skip, .site-updated { display: none !important; }
  .report-page h1 { display: none; }
  .rep-doc { padding: 0; border-radius: 0; }
  .rep-doc details.rep-closed { display: none; }
  .rep-doc details[open] summary { display: none; }
  .rep-sec, .rep-map-fig, .rain-chart { break-inside: avoid; }
  .rep-doc h3 { break-after: avoid; }
}
.farm-report-link { margin: 1rem 0 .6rem; }
.farm-report-link a.farm-key { display: inline-block; font-weight: 700; background: #f2a541; color: #12324a; padding: .35rem .8rem; border-radius: .4rem; text-decoration: none; }
.farm-report-link a.farm-key + a.farm-key { margin-top: .4rem; }
/* This month on one page (plan 3.8): one row per topic; on a phone each topic becomes its own block */
.rep-month-t th[scope="row"] { font-weight: 600; width: 22%; }
.rep-month-t td:nth-child(2) { white-space: normal; width: 22%; }
@media (max-width: 640px) {
  .rep-month-t thead { display: none; }
  .rep-month-t tr { display: block; border-bottom: 1px solid #dde2e6; padding: .5rem 0; }
  .rep-month-t th[scope="row"], .rep-month-t td { display: block; width: auto; border: 0; padding: .1rem 0; }
  .rep-month-t td:nth-child(2) { width: auto; font-size: 1.1rem; }
}
@media print {
  /* the whole month fits one sheet; the data credits start on the next */
  .rep-doc.rep-month-doc { font-size: 9pt; line-height: 1.3; }
  .rep-month-doc p { margin: .25rem 0; }
  .rep-month-doc h2 { font-size: 15pt; margin: .1rem 0 .3rem; }
  .rep-month-doc h3 { font-size: 11pt; margin: .5rem 0 .2rem; padding: 0; }
  .rep-month-doc .small, .rep-month-doc .rep-info { font-size: 8.5pt; line-height: 1.3; }
  .rep-month-doc .rep-sec { padding: 0; margin: 0; }
  .rep-month-doc .rep-month-t { font-size: 8.5pt; line-height: 1.3; }
  .rep-month-t th, .rep-month-t td { padding: .12rem .3rem; }
  .rep-month-doc .rep-credits { break-before: page; }
}
/* reports, batch 1 (R1, R4, R5): day by day, large print, choosers */
.rep-daily-pick { margin: .8rem 0; }
.rep-daily-pick > summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }
.rep-scroll { overflow-x: auto; }
.rep-days th, .rep-days td { white-space: nowrap; }
.rep-days tbody th { text-align: left; font-weight: 600; white-space: normal; min-width: 10rem; }
.rep-days td { font-weight: 700; }
.rep-doc.rep-big { font-size: 1.25rem; line-height: 1.6; }
.rep-doc.rep-big .rep-table { font-size: 1.15rem; }
.rep-doc.rep-big h2 { font-size: 2rem; }
.rep-pick h2 { font-size: 1.25rem; margin: .6rem 0 .3rem; }
.rep-pick select { font-size: 1rem; padding: .25rem .4rem; max-width: 100%; }
/* on paper nothing scrolls: wide tables wrap their words and fit the page (Jua, 2 Dec 2026: the printed table was cut off) */
@media print {
  .rep-scroll { overflow: visible; }
  .rep-doc .rep-days { table-layout: fixed; width: 100%; font-size: 7.5pt; }
  .rep-doc.rep-big .rep-days { font-size: 8.5pt; }
  .rep-doc .rep-days th, .rep-doc .rep-days td { white-space: normal; overflow-wrap: anywhere; hyphens: auto; padding: .2rem .2rem; }
  .rep-doc .rep-days tbody th { min-width: 0; }
  .rep-doc .rep-days th:first-child { width: 22%; }
  .rep-doc .rep-days tr, .rep-doc .rep-table tr { break-inside: avoid; }
  .rep-doc thead { display: table-header-group; }
  .rep-doc .rep-table td:nth-child(2) { white-space: normal; }
  .rep-doc .rep-sec:has(.rep-table) { break-inside: auto; }
  .rep-doc svg, .rep-doc img { max-width: 100%; }
}

/* province table (R3, R6) */
.rep-prov th, .rep-prov td { text-align: right; white-space: nowrap; }
.rep-prov th[scope=row], .rep-prov thead th:first-child { text-align: left; }
.rep-prov thead th { white-space: normal; font-size: .8rem; vertical-align: bottom; }
.rep-prov .rep-total { background: #fdf3e3; font-weight: 700; }
.rg-sort thead button { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: .3rem 0; min-height: 2.75rem; text-align: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.rg-sort thead th[aria-sort] button::after { content: " \25B2"; }
.rg-sort thead th[aria-sort=descending] button::after { content: " \25BC"; }
.rep-doc button.copy-view { color: #12324a; border-color: #12324a; }
.rg-sort { border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.rep-prov.rg-sort th, .rep-prov.rg-sort td { padding-left: .35rem; padding-right: .35rem; }
.rep-prov.rg-sort thead th { font-size: .76rem; }
@media (max-width: 700px) { .rep-prov.rg-sort th:first-child { white-space: normal; min-width: 6.5rem; max-width: 6.5rem; } }
.rg-sort th:first-child { position: sticky; left: 0; background: #fff; }
.rg-sort tbody tr:nth-child(even) th { background: #f6f8fa; }
.rg-sort tbody tr:nth-child(even) { background: #f6f8fa; }
.rep-prov td.rg-t { text-align: left; }
.rg-sort thead th:nth-child(2), .rg-sort thead th:last-child { text-align: left; }
.rg-sort td:nth-child(2) { font-weight: 400; }
@media print { .rg-sort th:first-child { position: static; } .rg-sort thead button { text-decoration: none; min-height: 0; } .rg-sort thead th button::after { content: "" !important; } }
@media print { .rep-doc .rep-prov { font-size: 7.5pt; } .rep-doc .rep-prov th, .rep-doc .rep-prov td { white-space: normal; padding: .2rem .25rem; } }
.rep-jump { display: inline-block; font-weight: 700; background: #f2a541; color: #12324a !important; padding: .35rem .8rem; border-radius: .4rem; text-decoration: none; }
#rep-doc { scroll-margin-top: 1rem; }

/* planting rain chart (I1, 1 Dec 2026) */
.pl-grid { stroke: currentColor; opacity: .15; stroke-width: .6; }
.pl-held { fill: #4caf50; stroke: #fff; stroke-width: .6; }
.pl-false { fill: #f2a541; stroke: #8a4b00; stroke-width: .8; }
.pl-none { fill: currentColor; font-size: 9px; font-weight: 700; }

/* Fires by province (plan 3.11): one small chart per area */
.fire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .8rem 1.4rem; }
.fire-fig { margin: 0; break-inside: avoid; }
.fire-fig figcaption { font-weight: 700; }
.fire-months .rep-table .rep-total td, .fire-months .rep-table td:nth-child(2) { font-weight: 400; }   /* bold marks only the busiest months */
.fire-months .rep-table td b { font-weight: 700; }
.fire-bars { width: 100%; height: auto; }
.fire-bars text { font-size: 11px; fill: #3a444d; }
@media print { .fire-grid { grid-template-columns: repeat(3, 1fr); } }

/* Rain and greenness by area (plan 3.4j); the year chart on white report paper uses its own colours */
.rep-doc .yc-wrap, .rep-doc .yc-key, .rep-doc .rain-chart { --ink: #1c2329; --muted: #4a545e; --line: #d5dbe0; --sage: #2f7d4f; --ochre: #c2570c; --navy: #12508a; --navy-soft: #7fa6c9; --card: #fff; }
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 1rem 1.6rem; }
.rg-fig { break-inside: avoid; }
.rg-first { grid-column: 1 / -1; max-width: 680px; }
.rep-doc .rg-fig h3 { margin-top: .6rem; }
#rg-area { font: inherit; padding: .35rem .5rem; max-width: 100%; }
@media print { .rg-grid { grid-template-columns: 1fr 1fr; } .rg-first { max-width: 14cm; } }
/* Fires by province: now against earlier years, and month by month */
.fire-now { max-width: 44rem; width: 100%; height: auto; }
.fire-now text { font-size: 12px; fill: #1c2329; }
.fire-note { display: inline-block; width: 14px; height: 10px; margin: 0 4px 0 10px; vertical-align: middle; }
