/* opp-ledger · the booth — one stylesheet, no build (brigade-harness/style; the parent's proposal artifact for
   the neutrals and type; one accent, the parent's brand green — Ryan's teal replaces that one token when it lands).
   Tokens in OKLCH; the hex beside each is the parent's value it was read from. */
:root {
  color-scheme: light;
  --surface:        oklch(0.985 0.004 90);   /* #fbfaf7 — warm paper */
  --surface-raised: oklch(1 0 0);
  --surface-sunken: oklch(0.955 0.008 85);   /* #f2efe9 */
  --border:         oklch(0.87 0.015 85);    /* #ddd7cc */
  --border-strong:  oklch(0.76 0.02 85);     /* #bdb5a6 */
  --text:           oklch(0.24 0.008 70);    /* #23211d */
  --text-muted:     oklch(0.45 0.012 75);    /* #5c574e */
  --text-subtle:    oklch(0.60 0.015 80);    /* #8a8378 */
  --accent:         oklch(0.42 0.05 155);    /* #3d5a45 — the parent's brand green: the one loud thing */
  --accent-hover:   oklch(0.37 0.05 155);
  --accent-contrast:oklch(0.99 0 0);
  --accent-wash:    oklch(0.945 0.012 155);   /* opaque: alpha on a printed mark makes Chrome rasterize soft masks into the PDF (2 MB, measured) */
  --series:         oklch(0.42 0.13 262);    /* #1f4e9c — the one hue the three windows share */
  --series-5:       oklch(0.55 0.11 262);    /* the same hue, lighter — never alpha */
  --series-3:       oklch(0.66 0.08 262);
  --danger:         oklch(0.52 0.16 30);
  --shadow-sm: 0 1px 2px oklch(0.24 0.008 70 / 0.06);
  --shadow-md: 0 2px 8px oklch(0.24 0.008 70 / 0.08);
  --radius-sm: 4px; --radius-md: 8px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 40px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font: 400 16px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased;
}
main { max-width: 1040px; margin: 0 auto; padding: var(--s-4) var(--s-4) var(--s-8); }
header.house { border-bottom: 1px solid var(--border-strong); padding: var(--s-3) var(--s-4); }
header.house .wrap { max-width: 1040px; margin: 0 auto; display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.house-name { font-weight: 600; letter-spacing: .02em; }
.house-sub { color: var(--text-muted); font-size: 14px; }
h1 { font-size: clamp(22px, 4vw, 28px); font-weight: 600; line-height: 1.2; margin: var(--s-4) 0 var(--s-2); }
h2 { font-size: 19px; font-weight: 600; margin: var(--s-6) 0 var(--s-2); }
h3 { font-size: 16px; font-weight: 600; margin: var(--s-4) 0 var(--s-2); }
p { margin: 0 0 var(--s-3); max-width: 70ch; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.num, td.num, th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ── the form ── */
form.booth { display: grid; gap: var(--s-3); max-width: 560px; }
form.booth label { display: grid; gap: var(--s-1); font-size: 14px; color: var(--text-muted); }
form.booth input, form.booth textarea {
  font: inherit; color: var(--text); background: var(--surface-raised);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 44px; width: 100%;
  box-shadow: inset 0 1px 2px oklch(0.24 0.008 70 / 0.04);
}
form.booth textarea { min-height: 88px; resize: vertical; }
form.booth .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); }
button, .button {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-md); border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-contrast); text-decoration: none; display: inline-block;
}
button:hover, .button:hover { background: var(--accent-hover); }
.button.quiet { background: var(--surface-raised); color: var(--text); border-color: var(--border-strong); }
[role="alert"] {
  border: 1px solid var(--danger); border-left-width: 4px; border-radius: var(--radius-sm);
  background: var(--surface-raised); padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-3);
}
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── cards ── */
.card {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: var(--s-4); margin: 0 0 var(--s-4);
}
.card h2, .card h3 { margin-top: 0; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0 0 var(--s-1); }

/* ── the pin-confirm block ── */
.pin .addr { font-weight: 600; }
.pin .edge { border-left: 3px solid var(--accent); padding-left: var(--s-3); color: var(--text-muted); }

/* ── the four lines ── */
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s-2); margin: 0 0 var(--s-3); }
.lines .line { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--s-2) var(--s-3); background: var(--surface-raised); }
.lines .line .w { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.lines .line .v { font-family: var(--font-mono); font-size: clamp(17px, 3.6vw, 22px); font-weight: 600; }
.lines .line.hit { border-color: var(--accent); background: var(--accent-wash); }
.lines .line.hit .w { color: var(--accent); }

/* ── the panels ── */
.legend { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: 13px; color: var(--text-muted); margin: 0 0 var(--s-3); align-items: center; }
.legend .sw { display: inline-block; width: 26px; vertical-align: middle; margin-right: 6px; border-top: 2px solid var(--series); }
.legend .sw.w5 { border-top-width: 1.4px; border-top-color: var(--series-5); }
.legend .sw.w3 { border-top-width: 1px; border-top-color: var(--series-3); }
.legend .sw.rule { border-top: 1.2px solid var(--border-strong); }
.legend .sw.hit { border-top: 1.6px solid var(--accent); }
.legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--accent); vertical-align: middle; margin-right: 6px; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: var(--s-3); }   /* phone 1 · tablet 2 · laptop 2 */
.panel { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--s-2) var(--s-2) var(--s-1); }
.panel svg { width: 100%; height: auto; display: block; }
.panel .cap { display: flex; justify-content: space-between; gap: var(--s-2); font-size: 13px; color: var(--text-muted); padding: 0 var(--s-1); }
.panel .cap b { color: var(--text); font-weight: 600; }
.chart .grid { stroke: var(--border); stroke-width: .5; }
.chart .axis { stroke: var(--border-strong); stroke-width: 1; }
.chart .tick { font-size: 10.5px; fill: var(--text-subtle); font-family: var(--font-mono); }
.chart .month { font-size: 10.5px; fill: var(--text-subtle); }
.chart .rule { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 4 3; }
.chart .rule.hit { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: none; }
.chart .rlabel { font-size: 10px; fill: var(--text-muted); font-family: var(--font-mono); }
.chart .rlabel.hit { fill: var(--accent); font-weight: 600; }
.chart .ser { fill: none; stroke: var(--series); stroke-linejoin: round; stroke-linecap: round; }
.chart .ser.w7 { stroke-width: 2; }
.chart .ser.w5 { stroke-width: 1.4; stroke: var(--series-5); }
.chart .ser.w3 { stroke-width: 1; stroke: var(--series-3); }   /* solid: a dashed 190-point path flattens to ~200 KB of PDF geometry per panel (measured) */
.chart .strike { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.chart .slabel { font-size: 10.5px; fill: var(--text); font-weight: 600; }
.chart .band { fill: var(--accent-wash); }

/* ── Ryan's grid ── */
table.summers { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 var(--s-4); }
table.summers th, table.summers td { text-align: left; padding: var(--s-2) var(--s-2); border-bottom: 0.5px solid var(--border); vertical-align: top; }
table.summers thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }
table.summers th.season { font-family: var(--font-mono); font-weight: 600; }
table.summers td.hit { background: var(--accent-wash); }
table.summers .marks { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
table.summers .dates { display: block; color: var(--text-muted); font-size: 12px; }
table.summers tfoot td, table.summers tfoot th { border-top: 1px solid var(--border-strong); border-bottom: none; font-weight: 600; }
table.summers td.none { color: var(--text-subtle); }

/* ── the progress page ── */
.stepper { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-1); }
.stepper li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; color: var(--text-subtle); }
.stepper li .m { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: inline-grid; place-items: center; font-size: 12px; flex: none; }
.stepper li.done { color: var(--text-muted); }
.stepper li.done .m { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.stepper li.now { color: var(--text); font-weight: 600; }
.stepper li.now .m { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.live { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); background: var(--surface-sunken); border-radius: var(--radius-sm); padding: var(--s-2) var(--s-3); }
.trail { font-size: 13px; color: var(--text-muted); }
.trail ol { padding-left: 1.4em; margin: 0; }
.trail li { margin: 0 0 var(--s-1); }
.trail time { font-family: var(--font-mono); margin-right: var(--s-2); }
details.trail summary { cursor: pointer; color: var(--text-muted); }

footer.house { border-top: 1px solid var(--border-strong); margin-top: var(--s-8); padding: var(--s-4); }
footer.house .wrap { max-width: 1040px; margin: 0 auto; font-size: 13px; color: var(--text-muted); }


/* ── the sheet: management's one-pager, matched to Heat-Lookback_K-Ranch_2016-2025.pdf (Letter 612 × 792 pt; a 96 pt band #234e5c;
      54 pt margins; Helvetica; orange #b4622e checks and numerals; rules .9 pt #2a2a2a over .5 pt #d5d5d5). Its palette is theirs,
      scoped here — the house tokens above dress the form and the full page. Sizes are em on a 10 pt print base. ── */
body.has-sheet header.house, body.has-sheet footer.house { display: none; }
body.has-sheet main { max-width: none; padding: 0; }
/* Jamie, 09-22: the banner a darker grey than the body, to set off the logo — grey, not charcoal: the blue wordmark has to read on it */
.sheet { --s-ink: #1a1a1a; --s-band: #d9dcdf; --s-band-hi: #3a3f44; --s-band-lo: #5c636a; --s-text: #4a4a4a; --s-label: #8e8e8e;
  --s-rule: #2a2a2a; --s-hair: #d5d5d5; --s-accent: #b4622e; --pad: 5.4em;
  font: 400 13.5px/1.35 "Liberation Sans", Helvetica, Arial, sans-serif; color: var(--s-ink); background: #fff;
  max-width: 61.2em; margin: 0 auto; display: flex; flex-direction: column; }
.sheet p { margin: 0; max-width: none; }
.sheet .caps { font-size: .7em; letter-spacing: .34em; text-transform: uppercase; color: var(--s-label); }
.sheet .caps span { margin: 0 .5em; }
.sheet .band { background: var(--s-band); color: var(--s-ink); min-height: 9.6em; padding: 1.7em var(--pad) 1.5em; display: flex;
  justify-content: space-between; gap: 1.5em; flex-wrap: wrap; }
.sheet .band .logo { display: block; height: 2.6em; width: auto; margin: 0 0 .9em; }
.sheet .band h1 { font-size: 1.9em; font-weight: 400; line-height: 1.15; margin: 0 0 .45em; letter-spacing: 0; }
.sheet .band .where { font-size: .92em; color: var(--s-band-hi); text-transform: uppercase; }
.sheet .band .what { text-align: right; margin-left: auto; }
.sheet .band .caps { color: var(--s-band-lo); margin: .55em 0 1.9em; }
.sheet .cta { font-size: .95em; color: var(--s-text); margin: 0 0 1.4em; }
.sheet .cta a { color: var(--s-band-hi); text-decoration: underline; text-underline-offset: .15em; }
.sheet .band .grid-point { font-size: .76em; color: var(--s-band-lo); }
.sheet .body { padding: 2.1em var(--pad) 0; }
.sheet .question { font-size: 1.2em; margin-bottom: 1.5em; }
.sheet .level { margin-bottom: 1.5em; }
.sheet .level .lead { margin-bottom: .55em; }
.sheet .level .thi { letter-spacing: 0; text-transform: none; font-size: 1.08em; }
.sheet .scroll { overflow-x: auto; }
.sheet table.checks { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 1em; }
.sheet table.checks th:first-child { width: 6.4em; text-align: left; }
.sheet table.checks thead th { font-size: .68em; font-weight: 400; letter-spacing: .3em; color: var(--s-label); text-align: left;
  padding: 0 0 .75em; border-bottom: .09em solid var(--s-rule); }
.sheet table.checks thead th:first-child { border-bottom-color: var(--s-rule); }
.sheet table.checks tbody th { font-size: .9em; font-weight: 400; color: var(--s-ink); }
.sheet table.checks tbody th, .sheet table.checks td { height: 1.8em; padding: 0; border-bottom: .05em solid var(--s-hair); vertical-align: middle; }
.sheet table.checks td { text-align: left; padding-left: .45em; white-space: nowrap; }
.sheet .ck { width: .95em; height: .95em; vertical-align: -.12em; margin-right: .05em; fill: none; stroke: var(--s-accent);
  stroke-width: 2.8; stroke-linecap: butt; stroke-linejoin: miter; }
.sheet .note { font-size: .9em; color: var(--s-text); margin: .2em 0 2.7em; }
.sheet .totals .pair { display: grid; grid-template-columns: 1fr 1fr; margin: 1.05em 0 1.3em; }
.sheet .totals .count { font-size: .9em; color: var(--s-text); line-height: 1.1; margin-top: .35em; }
.sheet .totals .count .n { font-size: 2.45em; color: var(--s-accent); margin-right: .12em; }
.sheet .totals .of { font-size: .8em; color: var(--s-text); margin-top: .25em; }
.sheet .versus { font-size: 1.06em; }
.sheet .actions { margin: 2.2em 0 .6em; display: flex; align-items: center; gap: 1.2em; flex-wrap: wrap; }
.sheet .actions .button { background: #234e5c; color: #fff; border-radius: 4px; padding: .7em 1.2em; font-weight: 600; text-decoration: none; }
.sheet .actions .again { font-size: .85em; color: var(--s-text); }
.sheet .edge { color: var(--s-text); max-width: 46em; }
.sheet .fine { padding: 3em var(--pad) 2.4em; margin-top: auto; color: var(--s-label); }
.sheet .fine p { font-size: .66em; line-height: 1.55; }
.sheet .fine .ends { display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; font-size: .68em; border-top: .07em solid var(--s-hair);
  margin-top: 1.1em; padding-top: 1em; }
@media screen and (min-width: 880px) { body.has-sheet { background: var(--surface-2, #efece6); } .sheet { margin: 28px auto; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 8px 28px rgb(0 0 0 / .10); min-height: 79.2em; } }
@media screen and (max-width: 640px) { .sheet { --pad: 16px; font-size: 12.5px; } .sheet .band .what { text-align: left; margin-left: 0; }
  .sheet .band .caps { margin: .2em 0 .5em; }
  /* all ten seasons on a phone, no sideways scroll: a narrow label column, tight years, and a crowded cell wraps its checks */
  .sheet table.checks th:first-child { width: 3.7em; } .sheet table.checks thead th { letter-spacing: 0; font-size: .64em; }
  .sheet table.checks td { white-space: normal; padding-left: 0; line-height: 1; } .sheet table.checks tbody th, .sheet table.checks td { height: 2.2em; }
  .sheet .ck { width: .8em; height: .8em; margin-right: 0; } }

/* ── print: the PDF is this page (C5) ── */
@page { size: Letter; margin: 0; }                  /* the sheet's band bleeds to the edge; every other page pads itself below */
@media print {
  html, body { background: #fff; }
  body { font-size: 10.5pt; line-height: 1.4; }
  main { max-width: none; padding: 14mm 13mm 16mm; }
  body.has-sheet main { padding: 0; }
  .sheet { font-size: 10pt; max-width: none; width: 8.5in; height: 11in; margin: 0; overflow: hidden; box-shadow: none; }
  .sheet .band, .sheet .ck, .sheet .totals .n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet .actions, .sheet .edge { display: none; }      /* `.sheet .actions` outranks `.noprint`; the button is for the screen alone */
  header.house, footer.house { border-color: #bbb; }
  .card { box-shadow: none; break-inside: avoid; }
  .panels { grid-template-columns: repeat(2, 1fr); gap: 6pt; }
  .panel { break-inside: avoid; }
  table.summers { font-size: 9pt; }
  tr, .lines { break-inside: avoid; }
  section.grid { break-inside: avoid; }          /* the heading stays with its table when they fit a page */
  h2 { break-after: avoid; }
  details.trail, .noprint { display: none; }
  a { color: inherit; text-decoration: none; }
}
