/* Wheel & Bid. Direction A, "site plan": the site is drawn like a landscape plan sheet.
   Written for this site only. One self-hosted family (Overpass, OFL), no external requests.
   Devices, used consistently:
   - Dimension lines (orange, end ticks) show a measured quantity: every monthly price is one, on a shared scale.
   - Survey-flag orange marks measured quantities and the live controls, nothing else.
   - Planting green appears only in the drawing and on "included" marks.
   - The title block (two ruled cells) is the logo, and the label panel on tool pages uses the same ink rules. */

@font-face { font-family: "Overpass"; src: url("overpass-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f4f6f3;   /* plan sheet: cool, faintly green white */
  --sheet: #ffffff;
  --ink: #1e2528;     /* graphite */
  --ink-2: #4a5357;   /* secondary text, 7:1 on paper */
  --hatch: #a9b1ac;   /* hatching, dashed leaders */
  --rule: #cfd5d1;
  --flag: #e8590c;    /* survey flagging tape: dimension lines and controls only */
  --flag-ink: #a63d00;/* flag colour when it has to carry text */
  --plant: #2f6b4e;   /* planting symbols */
  --font: "Overpass", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.5rem; --step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  --gap: 1rem; --measure: 40rem; --wrap: 70rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.55 var(--font); font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
a { color: var(--ink); text-decoration-color: var(--flag); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -.018em; }
h2 { font-size: var(--step-2); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: var(--step-1); font-weight: 700; }
p, li { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2rem; }
li + li { margin-top: .45rem; }
.small { font-size: var(--step--1); color: var(--ink-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 9; }
.skip:focus { left: .5rem; top: .5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right)); }

/* header: title-block logo + plain nav */
.top { border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: .6rem; }
.tb { display: inline-grid; grid-template-columns: auto auto; border: 1.5px solid var(--ink); text-decoration: none; color: var(--ink); line-height: 1; }
.tb-mark { display: grid; place-items: center; padding: .3rem .4rem; border-right: 1.5px solid var(--ink); }
.tb-mark svg circle:last-of-type { fill: var(--flag); }
.tb-name { padding: .42rem .55rem .32rem; font-weight: 800; font-size: .9375rem; letter-spacing: -.005em; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: var(--step--1); font-weight: 600; }
.nav a { text-decoration: none; padding-block: .25rem; }
.nav a[aria-current="page"], .nav a:hover { text-decoration: underline; text-decoration-color: var(--flag); text-decoration-thickness: 2px; }
.strip { margin: 0; border-bottom: 1px solid var(--rule); font-size: .8125rem; color: var(--ink-2); }
.strip .wrap { display: block; padding-block: .4rem; }

main { display: grid; gap: 2.75rem; padding-block: 2rem 4rem; }
main > *, section { min-width: 0; }
main:not(.wide) > :is(h1, .lede, p, section > p, section > ul) { max-width: var(--measure); }
section { display: grid; gap: .9rem; }
section > p, section > ul { max-width: var(--measure); }
.crumbs { font-size: var(--step--1); color: var(--ink-2); margin-bottom: -1.75rem; }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: var(--measure); }
.rule { font-size: var(--step--1); color: var(--ink-2); max-width: var(--measure); }
.verdict { font-size: var(--step-1); font-weight: 600; line-height: 1.4; max-width: var(--measure); border-left: 3px solid var(--flag); padding-left: .9rem; }

/* inline sources: small, after the claim */
.src { font-size: .75rem; color: var(--ink-2); white-space: nowrap; text-decoration-color: var(--hatch); text-decoration-thickness: 1px; }

/* home hero: text beside the drawn lot */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; }
.hero-text { display: grid; gap: .9rem; }
.job { font-size: var(--step--1); color: var(--ink-2); max-width: 34rem; }
.plan { margin: 0; background: var(--sheet); border: 1.5px solid var(--ink); padding: .5rem; }
.plan svg { display: block; width: 100%; height: auto; }
.plan figcaption { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; font-size: .75rem; color: var(--ink-2); border-top: 1px solid var(--ink); margin-top: .4rem; padding-top: .35rem; }
.plan .s-ink { stroke: var(--ink); } .plan .s-plant { stroke: var(--plant); } .plan .p-plant { stroke: var(--plant); } .plan .p-hatch { stroke: var(--hatch); }
.plan .s-flag { stroke: var(--flag); } .plan .f-plant { fill: var(--plant); } .plan .f-sheet { fill: var(--sheet); } .plan .f-paper { fill: var(--sheet); }
.plan rect[fill^="url"], .plan path[fill^="url"] { stroke-linejoin: miter; }
.plan .t { font: 400 10px var(--font); fill: var(--ink); } .plan .t.sm { font-size: 8.5px; } .plan .t.b { font-weight: 700; } .plan .t.flag { font-weight: 800; fill: var(--flag-ink); }

/* controls: B's job switch, A's slider */
.tool { display: grid; gap: 1rem; }
.ctl { display: grid; gap: .9rem; }
.seg { display: grid; grid-template-columns: repeat(3, auto); border: 1.5px solid var(--ink); width: fit-content; max-width: 100%; }
.seg button { font: 600 var(--step--1)/1.2 var(--font); color: var(--ink); background: var(--sheet); border: 0; border-right: 1.5px solid var(--ink); padding: .7rem .95rem .6rem; min-height: 2.75rem; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
html:not(.js) .seg { display: none; }
.sliders { display: grid; grid-template-columns: auto minmax(8rem, 22rem); gap: .5rem 1rem; align-items: center; }
.sliders label { font-weight: 700; font-size: var(--step--1); display: flex; gap: .6rem; align-items: baseline; justify-content: space-between; min-width: 9rem; }
.sliders output { font-weight: 800; font-size: var(--step-1); color: var(--flag-ink); }
.sliders input { accent-color: var(--flag); width: 100%; height: 1.75rem; }
html:not(.js) .sliders { display: none; }
.assume { font-size: var(--step--1); color: var(--ink-2); }
.after { font-size: var(--step--1); }

/* the dimension-line chart */
.dims { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.dims .row { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); grid-template-areas: "who line" "who pdet"; column-gap: 1.25rem; row-gap: .05rem; padding: .6rem 0 .55rem; border-bottom: 1px dashed var(--hatch); margin: 0; }
.dims .who { grid-area: who; font-weight: 700; line-height: 1.25; align-self: center; }
.dims .line { grid-area: line; position: relative; height: 1.9rem; }
.dims .dim { position: absolute; left: 0; bottom: .35rem; width: var(--w); height: 0; border-top: 1.5px solid var(--flag); transition: width .3s ease; }
.dims .dim::before, .dims .dim::after { content: ""; position: absolute; top: -6px; height: 11px; border-left: 1.5px solid var(--flag); }
.dims .dim::before { left: 0; } .dims .dim::after { right: 0; }
.dims .val { position: absolute; left: 0; bottom: .55rem; font-weight: 800; font-size: var(--step-0); line-height: 1; }
.dims .val small { font-weight: 600; font-size: .75rem; color: var(--ink-2); margin-left: .1rem; }
.dims .pdet .src { margin-left: .35rem; }
.dims .pdet { grid-area: pdet; font-size: .8125rem; color: var(--ink-2); display: inline; }
.dims .gated .line em { position: absolute; left: 0; bottom: .45rem; font-style: normal; font-weight: 600; color: var(--flag-ink); font-size: var(--step--1); }
.dims .partial .val { color: var(--ink); }
/* a line longer than the scale cap is cut at the edge: the end tick becomes a double-slash break */
.dims .dim.cut::after { content: "//"; border: 0; top: -.55rem; right: -.2rem; height: auto; padding: 0 .15rem; background: var(--paper); color: var(--flag); font: 800 .8125rem/1 var(--font); letter-spacing: -.08em; }
.dims .zero .dim { width: 0; }
.dims .zero .dim::after { display: none; }
.chart { display: grid; gap: .5rem; }
.scale-note { font-size: .75rem; color: var(--ink-2); }
.teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tz { display: grid; gap: .5rem; align-content: start; }
.tz h3 { font-size: var(--step--1); }
.tz .dims .row { grid-template-columns: 5.5rem minmax(0, 1fr); padding: .45rem 0; }

/* ruled tables */
.scroll { overflow-x: auto; max-width: 100%; }
.sheet { border-collapse: collapse; width: 100%; min-width: 34rem; background: var(--sheet); border: 1.5px solid var(--ink); font-size: var(--step--1); }
.sheet caption { caption-side: bottom; text-align: left; padding-top: .5rem; font-size: .8125rem; color: var(--ink-2); }
.sheet th, .sheet td { padding: .55rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.sheet thead th { border-bottom: 1.5px solid var(--ink); font-weight: 700; white-space: nowrap; }
.sheet tbody th { font-weight: 700; }
.sheet tbody th .src { display: block; font-weight: 400; margin-top: .15rem; }
.sheet td .num { display: block; font-weight: 800; font-size: var(--step-0); }
.sheet .pl { display: block; font-size: .75rem; color: var(--ink-2); }
.sheet td.na { color: var(--flag-ink); font-weight: 600; }
.sheet.facts td .src { display: block; margin-top: .15rem; }
.pair { display: grid; gap: .3rem; }

/* section entries, three-up links */
section > ul.three { max-width: none; } .three { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.three li { margin: 0; border-top: 1.5px solid var(--ink); padding-top: .75rem; display: grid; gap: .4rem; align-content: start; }
.entries { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.entries > li { margin: 0; display: grid; gap: .45rem; border-top: 1px solid var(--rule); padding-top: .9rem; max-width: var(--measure); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.two > div { display: grid; gap: .6rem; align-content: start; border-top: 1.5px solid var(--ink); padding-top: .75rem; }

/* tool pages: the label panel (direction C) beside the review */
.vendor { display: grid; grid-template-columns: minmax(17.5rem, 21rem) minmax(0, 1fr); gap: 2rem 2.5rem; align-items: start; }
.vendor-text { display: grid; gap: 2rem; }
.label { overflow-wrap: normal; hyphens: manual; background: var(--sheet); border: 2px solid var(--ink); padding: .7rem .85rem .8rem; position: sticky; top: 1rem; }
.label h2 { font-size: var(--step-2); font-weight: 900; border-bottom: 8px solid var(--ink); padding-bottom: .35rem; }
.label .kind { font-size: .8125rem; color: var(--ink-2); padding: .35rem 0; border-bottom: 1px solid var(--ink); }
.label .at { font-size: .8125rem; font-weight: 700; padding: .35rem 0; border-bottom: 1px solid var(--ink); }
.label dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.label dt, .label dd { margin: 0; padding: .38rem 0; border-bottom: 1px solid var(--ink); font-size: var(--step--1); }
.label dd { text-align: right; font-weight: 800; padding-left: .75rem; white-space: nowrap; }
.label dt { min-width: 0; }
.label dd.no { color: var(--flag-ink); }
.label dt:nth-of-type(3), .label dd:nth-of-type(3) { border-bottom-width: 4px; }
.label .test { font-size: .75rem; color: var(--ink-2); padding-top: .45rem; }

.out { font-weight: 700; }
.paidnote { font-size: .75rem; color: var(--ink-2); border: 1px solid var(--hatch); padding: .05rem .35rem; white-space: nowrap; }
.log { list-style: none; padding: 0; display: grid; gap: 1.25rem; max-width: var(--measure); }
.log h2 { font-size: var(--step-1); margin-bottom: .5rem; }

.foot { border-top: 1.5px solid var(--ink); font-size: var(--step--1); color: var(--ink-2); }
.foot .wrap { display: grid; gap: .75rem; padding-block: 1.5rem 2.5rem; }
.foot p { max-width: var(--measure); }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.foot a { color: var(--ink); }

@media (max-width: 760px) {
  main { gap: 2.25rem; padding-top: 1.5rem; }
  .hero, .two, .vendor { grid-template-columns: minmax(0, 1fr); }
  .three, .teaser { grid-template-columns: minmax(0, 1fr); }
  .label { position: static; }
  .dims .row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "line" "pdet"; }
  .sliders { grid-template-columns: minmax(0, 1fr); }
  .seg { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg button { padding-inline: .4rem; }
}
@media (prefers-reduced-motion: reduce) { .dims .dim { transition: none; } }
