/* Forager Forecast. Palette, type and chart language from the locked design (DESIGN.md). Light only, by design. */
:root {
  --bg: #eae9e3; --ink: #22201c; --muted: #57534b; --card: #f3f2ed; --fruit: #4a6741; --fruit-soft: #7f9a62; --rain: #5b8fb0;
  --rain-ink: #315a74; --moist: #2c6e86; --temp: #a35f2a; --line: #22201c2e; --ok: #3d6b3a; --off: #8f531b;
  --serif: "Spectral", Georgia, serif; --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@property --t { syntax: "<number>"; inherits: true; initial-value: 0; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); }
a { color: inherit; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--fruit); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--fruit); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- site header and footer ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-top: 10px; padding-bottom: 8px; }
.brand { font-family: var(--serif); font-size: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: 2px 16px; overflow-x: auto; scrollbar-width: none; font-size: 14px; white-space: nowrap; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 420px) { .brand { font-size: 18px; } .site-head .wrap { gap: 4px 12px; } .site-nav { gap: 2px 12px; } }
.site-foot { border-top: 1px solid var(--line); margin-top: 32px; padding: 18px 0 28px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: grid; gap: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; }
.foot-cols h2 { font: 600 13px var(--sans); color: var(--ink); margin-bottom: 4px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.foot-cols a { text-decoration: none; } .foot-cols a:hover { text-decoration: underline; }
.foot-note { font-family: var(--serif); font-size: 14px; }

/* ---------- the forecast app (locked almanac + map page) ---------- */
.fx { max-width: 1040px; margin: 0 auto; color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; }
.fx svg { display: block; width: 100%; height: auto; overflow: visible; }
.fx a { color: inherit; }
[data-k] { transition: all 0.65s cubic-bezier(0.2, 0.75, 0.25, 1); }
@media (prefers-reduced-motion: reduce) { [data-k] { transition: none; } }
.fx-top { padding: 16px 18px 14px; display: grid; gap: 10px; background: linear-gradient(180deg, color-mix(in oklab, #d6dee0, #eadbb0 calc(var(--t) * 100%)), var(--bg)); min-height: 118px; }
.fx-mast { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; font-family: var(--serif); }
.fx-mast span { font-size: 14px; color: var(--muted); }
.fx-loc { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs button { font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink); background: color-mix(in srgb, var(--card) 72%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; white-space: nowrap; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fx-body { padding: 6px 18px 22px; display: grid; gap: 16px; }
.fx-c1, .fx-c2 { display: grid; gap: 12px; align-content: start; min-width: 0; }
.fx .spn { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.1; }
.fx .spn i { display: block; font-size: 16px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.dialbox { display: grid; gap: 8px; }
.big { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 12px; align-items: end; }
.big b { font-family: var(--serif); font-size: 84px; font-weight: 600; line-height: 0.78; font-variant-numeric: lining-nums tabular-nums; }
.big span { font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.big em { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); font-style: normal; }
.leg { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.leg span { white-space: nowrap; }
.leg i { display: inline-block; width: 18px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.leg i.k-last { height: 3px; background: var(--muted); opacity: 0.7; }
.leg i.k-now { height: 5px; background: var(--ink); }
.leg i.k-next { height: 8px; border: 1.5px solid var(--fruit); background: color-mix(in srgb, var(--fruit) 24%, transparent); }
.leg b { color: var(--ink); font-weight: 600; }
.note { font-family: var(--serif); font-size: 16px; line-height: 1.45; }
.ph { margin: 0; display: grid; gap: 5px; }
.ph img { display: block; width: 100%; height: auto; border-radius: 14px; }
.ph figcaption { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); }
.lbl { font-family: "Spectral SC", var(--serif); font-size: 15px; letter-spacing: 0.04em; border-top: 1px solid var(--line); padding-top: 8px; }
.cap { font-size: 12px; color: var(--muted); margin-top: -4px; }
.fx table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.fx th { font-weight: 500; color: var(--muted); font-size: 12px; padding: 3px 1px; }
.fx th:first-child { width: 84px; text-align: left; }
.fx thead th { border-bottom: 1px solid var(--line); }
.fx thead th small { display: block; font-size: 11px; }
.fx td, .fx tbody th { padding: 7px 1px 6px; }
.fx tr[data-m="rain-pop"] td { font-weight: 600; color: var(--rain-ink); }
.acc { font-family: var(--serif); font-size: 15.5px; }
.acc b { font-family: var(--sans); font-weight: 600; }
.linkbtn { font: inherit; color: var(--fruit); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.about { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; border-top: 1px solid var(--line); padding-top: 12px; }
.about img { display: block; width: 100%; height: auto; border-radius: 4px; }
.about h3 { font: 600 13px var(--sans); color: var(--muted); margin-bottom: 4px; }
.about p { font-family: var(--serif); font-size: 14px; color: var(--muted); }
.fx.desk .fx-top { padding: 22px 32px 16px; }
.fx.desk .fx-body { padding: 0; }
.fx .tx { fill: var(--muted); } .fx .ti { fill: var(--ink); } .fx .tb { font-weight: 600; } .fx .tp { fill: var(--rain-ink); }
.fx .tf { fill: var(--fruit); } .fx .tok { fill: var(--ok); } .fx .toff { fill: var(--off); }
.fx .gl { stroke: var(--line); stroke-width: 1; }
.fx .dt { stroke: var(--ink); stroke-width: 1; opacity: 0.22; } .fx .dt.wk { opacity: 0.45; }
.fx .tl { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.fx .fl { fill: none; stroke: var(--fruit); stroke-width: 2.5; stroke-linecap: round; }
.fx .ln { fill: none; stroke-width: 2; stroke-linecap: round; }
.fx .dash { stroke-dasharray: 5 4; }
.fx .c-rain { stroke: var(--rain); } .fx .c-moist { stroke: var(--moist); } .fx .c-temp { stroke: var(--temp); }
.fx .c-norm { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 4; }
.fx .bd { fill: var(--fruit); opacity: 0.16; }
.fx .dot { fill: var(--rain); } .fx .fdot { fill: var(--fruit); } .fx .mdot { fill: var(--moist); } .fx .tdot { fill: var(--temp); }
.fx .sd { stroke: var(--bg); stroke-width: 1.5; }
.fx .s1 { stop-color: var(--fruit-soft); stop-opacity: 0.42; } .fx .s2 { stop-color: var(--fruit-soft); stop-opacity: 0; }
.fx .dl-tk { stroke: var(--ink); stroke-width: 1; } .fx .dl-mj { stroke-width: 1.8; }
.fx .rot { transform-box: view-box; transform-origin: 160px 160px; }
.fx .nd-now { fill: var(--ink); }
.fx .nd-next { fill: color-mix(in srgb, var(--fruit) 24%, transparent); stroke: var(--fruit); stroke-width: 1.8; stroke-linejoin: round; }
.fx .nd-last { stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; opacity: 0.7; }
.fx .hub { fill: var(--ink); } .fx .hubin { fill: var(--bg); }
/* phone: map, pick column, graphs, in one column up to 600 px wide. desktop: map + graphs left (560), pick column right (388) */
.fx-mid { display: grid; max-width: 600px; margin: 0 auto; }
.fx-left { display: contents; }
.fx-map { order: 0; } .fx-pick { order: 1; } #body { order: 2; }
.fx.desk .fx-mid { max-width: none; grid-template-columns: 560px 388px; gap: 28px; padding: 4px 32px 28px; align-items: start; }
.fx.desk .fx-left { display: grid; gap: 22px; align-content: start; }
.mapbox { position: relative; background: #e2e3dc; }
.fx.desk .mapbox { border-radius: 12px; overflow: hidden; }
.ml { width: 100%; height: 440px; font: inherit; }
.fx.desk .ml { height: 560px; }
.mo { position: absolute; left: 10px; top: 10px; z-index: 2; display: grid; background: color-mix(in srgb, var(--card) 90%, transparent); border-radius: 10px; padding: 5px 10px 6px; pointer-events: none; }
.mo b { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.1; }
.mo span { font-size: 12px; color: var(--muted); }
.zb { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; gap: 4px; }
.zb button { min-width: 32px; height: 32px; padding: 0 9px; font: 600 14px var(--sans); color: var(--ink); background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.maplibregl-ctrl-attrib { font-size: 10.5px; }
.radar { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 18px 0; }
.fx.desk .radar { padding-inline: 0; }
.playbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; padding: 0; }
.playbtn svg { width: 15px; height: 15px; }
.tline input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.tline input::-webkit-slider-runnable-track { height: 3px; background: var(--line); border-radius: 2px; }
.tline input::-moz-range-track { height: 3px; background: var(--line); border-radius: 2px; }
.tline input::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; background: var(--ink); border: 2px solid var(--bg); }
.tline input::-moz-range-thumb { box-sizing: border-box; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--bg); }
.notch, .tlab { position: relative; margin: 0 8px; }
.notch { height: 6px; }
.notch i { position: absolute; top: 0; width: 1px; height: 3px; background: var(--muted); opacity: 0.5; }
.notch i.mj { height: 6px; opacity: 1; }
.tlab { height: 15px; font-size: 11px; line-height: 15px; color: var(--muted); }
.tlab span { position: absolute; transform: translateX(-50%); }
.tlab span.now { transform: none; left: -8px !important; color: var(--ink); font-weight: 600; }
.mleg { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; color: var(--muted); padding: 8px 18px 0; }
.fx.desk .mleg { padding-inline: 0; }
.ramp { display: inline-flex; align-items: center; gap: 2px; }
.ramp i { display: inline-block; width: 16px; height: 10px; border-radius: 1px; }
.ramp span { margin: 0 4px; }
.maperr { font-size: 12.5px; color: var(--off); padding: 6px 18px 0; }
.fx-pick { padding: 16px 18px 6px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.fx.desk .fx-pick { padding: 0; }
.fx-pick .fx-c1 { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.ladbox { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.pk-h { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.pk-s { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-n { font-family: var(--serif); font-size: 15px; line-height: 1.45; }
.pk-n b { font-family: var(--sans); font-weight: 600; }
.rads { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rads span { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.rads button { font: 500 13px var(--sans); color: var(--ink); background: color-mix(in srgb, var(--card) 72%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.rads button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ladder .row { cursor: pointer; }
.ladder .row:focus { outline: none; }
.ladder .row:focus-visible .hit { stroke: var(--fruit); stroke-width: 2; }
.ladder .fr { stroke: var(--ink); stroke-width: 1.5; }
.ladder .nohab { fill: var(--line); opacity: 0.35; }
.mk-pin { display: grid; grid-template-columns: 14px auto; gap: 6px; align-items: center; cursor: grab; }
.mk-pin i { width: 14px; height: 14px; border-radius: 50%; background: #22201c; box-shadow: 0 0 0 3px #f3f2ed; }
.mk-pin span { font: 600 12px var(--sans); color: #22201c; background: #f3f2edee; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.boot { min-height: 900px; }
.fx.desk.boot, .fx[aria-busy="true"] .fx-pick:empty { min-height: 560px; }

/* ---------- content pages ---------- */
.page { padding-top: 18px; display: grid; gap: 22px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-h { display: grid; gap: 6px; }
.page-h h1 { font-size: clamp(28px, 5vw, 40px); }
.page-h .sub { font-size: 14px; color: var(--muted); }
.lede { font-family: var(--serif); font-size: 18px; line-height: 1.5; max-width: 68ch; }
.num { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.sec { display: grid; gap: 12px; }
.sec > h2 { font-size: 25px; border-top: 1px solid var(--line); padding-top: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 12px; display: grid; gap: 8px; align-content: start; }
.card h3 { font-size: 20px; }
.card h3 a { text-decoration: none; } .card h3 a:hover { text-decoration: underline; }
.card .st { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card .pc { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.card .sw { font-family: var(--serif); font-size: 17px; }
.card .meta { font-size: 13px; color: var(--muted); }
.card .note { font-size: 15px; }
.card svg { display: block; width: 100%; height: auto; }
.card .go { font-size: 13.5px; font-weight: 600; }
.chip { display: inline-block; font: 600 12px var(--sans); border-radius: 999px; padding: 2px 9px; border: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.chip.s-fruiting { background: #4a6741; color: #f3f2ed; border-color: #4a6741; }
.chip.s-building { background: #a2aa5c; color: #22201c; border-color: #a2aa5c; }
.chip.s-possible { background: #e3cf8c; color: #22201c; border-color: #cdbd67; }
.chip.s-quiet, .chip.s-too-early, .chip.s-off-season { color: var(--muted); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.dt-tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dt-tbl th, .dt-tbl td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dt-tbl thead th { font-weight: 600; font-size: 12.5px; color: var(--muted); background: var(--bg); position: sticky; top: 0; }
.dt-tbl tbody tr:last-child td, .dt-tbl tbody tr:last-child th { border-bottom: 0; }
.dt-tbl td.n, .dt-tbl th.n { text-align: right; }
.dt-tbl th[scope="row"] { font-weight: 500; }
.aside { display: grid; gap: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14.5px; }
.cols { columns: 3 200px; column-gap: 24px; font-size: 14.5px; }
.cols a { display: block; padding: 2px 0; break-inside: avoid; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.faq summary { font-family: var(--serif); font-size: 17px; font-weight: 600; cursor: pointer; }
.faq details p { font-family: var(--serif); font-size: 16px; margin-top: 6px; }
.home-seo { padding-top: 22px; display: grid; gap: 22px; }
.home-seo h1 { font-size: clamp(26px, 4.4vw, 36px); }
.sp-hero { display: grid; gap: 14px; }
@media (min-width: 860px) { .sp-hero { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; } }

/* ---------- Oct 23 edits: tip asks, plain lists ---------- */
.tipbtn { font: 600 14px var(--sans); text-decoration: none; color: var(--bg); background: var(--ink); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.tipbtn:hover { color: var(--bg); background: var(--fruit); }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--serif); font-size: 17px; }
ul.plain b { font-family: var(--sans); font-weight: 600; font-size: 15px; }
.num-list { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14.5px; }
.site-head .brand { color: var(--ink); }
.site-head .brand:hover { text-decoration: underline; }
.site-nav { align-items: center; }
.site-nav .tipbtn { font-size: 13px; padding: 5px 12px; color: var(--bg); }
.site-nav .tipbtn:hover { color: var(--bg); text-decoration: none; }

/* ---------- How it works ---------- */
.how-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .how-grid { grid-template-columns: 1fr 1fr; } }
.how-step { margin: 0; }
.how-step h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.stepn { font: 600 13px var(--sans); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-grid; place-items: center; flex: none; }
.how-map { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; }
.mini-row { display: grid; gap: 0; }
svg.mini, svg.chart { display: block; width: 100%; height: auto; }
svg.chart { max-width: 600px; }
svg.mini { max-width: 420px; }
.page svg .tx { fill: var(--muted); } .page svg .ti { fill: var(--ink); } .page svg .tb { font-weight: 600; }
.page svg .gl { stroke: var(--line); stroke-width: 1; }
.page svg .fl { stroke: var(--fruit); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.page svg .c-norm { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 4; }
.page svg .db-bar { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.page svg .db-find { fill: var(--fruit); stroke: var(--card); stroke-width: 2; }
.page svg .db-other { fill: var(--card); stroke: var(--muted); stroke-width: 2; }
.leg2 { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.leg2 i { display: inline-block; width: 18px; vertical-align: middle; margin-right: 6px; }
.leg2 .k-fl { height: 3px; background: var(--fruit); } .leg2 .k-norm { border-top: 2px dashed var(--muted); }
.leg2 .k-find { width: 12px; height: 12px; border-radius: 50%; background: var(--fruit); }
.leg2 .k-other { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; }
.tblview summary { font-size: 14px; cursor: pointer; color: var(--muted); }

/* the tip popup (static/tip.js): once, after 5 minutes on the site */
.tippop { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: 320px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 6px 24px rgba(34, 32, 28, .18); font-size: 15px; }
.tippop p { margin: 0 0 10px; }
.tippop div { display: flex; gap: 10px; align-items: center; }
.tippop button { font: 500 14px var(--sans); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 4px; }
@media (max-width: 400px) { .tippop { left: 16px; right: 16px; max-width: none; } }
.tippop button.tipbtn { background: var(--ink); color: var(--bg); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
