/* Layout: single readable column; stand code and scores are the anchors, as on fair signage */
:root {
  --bg: #f3f5f7; --surface: #ffffff; --ink: #14202c; --muted: #566474; --line: #d8dee5;
  --accent: #0b6b67; --accent-soft: #e2f1ef;
  --good: #0c7c3f; --mid: #b45f06; --bad: #c0262d; --na: #8a96a3;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e141a; --surface: #172029; --ink: #e5ebf1; --muted: #9eabb9; --line: #2a3542;
  --accent: #43c0b6; --accent-soft: #123330; --good: #3fcf7d; --mid: #f0a24a; --bad: #ff6b6b; --na: #7d8a97; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0e141a; --surface: #172029; --ink: #e5ebf1; --muted: #9eabb9; --line: #2a3542;
  --accent: #43c0b6; --accent-soft: #123330; --good: #3fcf7d; --mid: #f0a24a; --bad: #ff6b6b; --na: #7d8a97; color-scheme: dark }
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); padding-inline: 16px; padding-block: 0 32px }
.wrap { max-width: 1040px; margin: 0 auto }
a { color: var(--accent) } a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0 }
h1 { font-size: clamp(2rem, 5vw, 3.1rem) } h2 { font-size: 1.6rem; margin-top: 36px } h3 { font-size: 1.25rem }
.eyebrow { font: 600 .78rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
header.hero { padding-block: 28px 8px; display: flex; flex-direction: column; gap: 8px }
.lede { color: var(--muted); max-width: 65ch; margin: 0 }
.crumbs { font-size: .9rem; padding-top: 16px } .crumbs a { text-decoration: none }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 18px }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0 }
.tile b { display: block; font: 700 2.4rem/1 var(--display); font-variant-numeric: tabular-nums }
.tile span { color: var(--muted); font-size: .92rem }
.tile.bad b { color: var(--bad) } .tile.mid b { color: var(--mid) } .tile.good b { color: var(--good) }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 14px; min-width: 0 }
.hist { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; align-items: end; height: 170px; margin-top: 12px; border-bottom: 1px solid var(--line) }
.hist div { border-radius: 4px 4px 0 0; min-height: 2px; position: relative }
.hist div.bad { background: var(--bad) } .hist div.mid { background: var(--mid) } .hist div.good { background: var(--good) }
.hist div:hover { filter: brightness(1.15) }
.hist i { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font: 600 .8rem var(--body); color: var(--ink); font-style: normal; font-variant-numeric: tabular-nums }
.hist-x { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; font-size: .75rem; color: var(--muted); text-align: center; margin-top: 4px; font-variant-numeric: tabular-nums }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 10px }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--c) }
.controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: sticky; top: env(safe-area-inset-top, 0px); background: var(--bg); padding-block: 10px; z-index: 3 }
.controls input { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 .85rem var(--body); cursor: pointer }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface) }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 6px }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; gap: 12px; text-decoration: none; color: inherit; min-width: 0 }
.card:hover { border-color: var(--accent) }
.card .t { min-width: 0; display: flex; flex-direction: column; gap: 3px; flex: 1 }
.card .nm { font-weight: 600; overflow-wrap: anywhere; line-height: 1.25 }
.card .st { font: 700 1.2rem/1 var(--display) } .card .ws { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere }
.pill { display: inline-block; font: 600 .72rem var(--body); letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; width: fit-content }
.pill.hot { color: var(--bad) } .pill.warm { color: var(--mid) } .pill.cold { color: var(--na) }
.score { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 1.3rem var(--display); font-variant-numeric: tabular-nums;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line) 0); position: relative }
.score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface) }
.score span { position: relative }
.score.good { --c: var(--good) } .score.mid { --c: var(--mid) } .score.bad { --c: var(--bad) } .score.na { --c: var(--na) }
.dials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px }
.dial { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center }
.dial .ring { width: 92px; height: 92px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line) 0) }
.dial .ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface) }
.dial .ring span { position: relative; font: 700 2rem var(--display); font-variant-numeric: tabular-nums }
.dial.good { --c: var(--good) } .dial.mid { --c: var(--mid) } .dial.bad { --c: var(--bad) } .dial.na { --c: var(--na) }
.dial figcaption { font-weight: 600; font-size: .92rem } .dial small { display: block; color: var(--muted); font-weight: 500 }
.bars { display: flex; flex-direction: column; gap: 12px }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; font-size: .9rem }
.bar-row .track { height: 12px; background: var(--line); border-radius: 0 4px 4px 0; overflow: hidden }
.bar-row .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--muted) }
.bar-row .fill.you { background: var(--accent) }
.bar-row b { font-variant-numeric: tabular-nums; text-align: right }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px }
.shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 12px; align-items: start }
.shots img { width: 100%; max-width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block }
.shots figure { margin: 0 } .shots figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px }
.checks li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .92rem }
.checks .y::before { content: "✓"; color: var(--good); font-weight: 700 } .checks .n::before { content: "✗"; color: var(--bad); font-weight: 700 }
.checks .u::before { content: "?"; color: var(--na); font-weight: 700 }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px }
.actions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: a }
.actions li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; counter-increment: a; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px }
.actions li::before { content: counter(a); font: 700 1.6rem/1 var(--display); color: var(--accent); grid-row: span 2 }
.actions b { font-weight: 600 } .actions p { margin: 0; color: var(--muted); font-size: .94rem }
.imp { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-left: 6px; color: var(--muted) }
.say { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; font-size: 1.08rem; font-weight: 500; margin: 0 }
.hooks { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none }
.hooks li { background: var(--accent-soft); border-radius: 8px; padding: 10px 12px }
.hooks small { display: block; color: var(--muted); margin-top: 3px }
.md { font-size: .95rem } .md h2 { font-size: 1.3rem; margin-top: 22px } .md h3 { font-size: 1.1rem; margin-top: 14px } .md ul { padding-left: 20px }
.md pre, .md code { font-size: .85rem; background: var(--bg); border-radius: 4px } .md pre { padding: 10px; overflow-x: auto }
.md p, .md li { overflow-wrap: anywhere }
.cta { background: var(--accent); color: var(--surface); border-radius: 12px; padding: 20px; margin-top: 24px; display: flex; flex-direction: column; gap: 6px }
.cta h2 { margin: 0; color: inherit } .cta p { margin: 0 }
.tablewrap { overflow-x: auto } table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line) } th { color: var(--muted); font-weight: 600 }
.foot { color: var(--muted); font-size: .8rem; padding-top: 28px }
.done { opacity: .5 }
.hide { display: none !important }
@media (max-width: 640px) {
  .dials { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .shots { grid-template-columns: 1fr }
  .bar-row { grid-template-columns: 110px 1fr 58px }
}
@media (prefers-reduced-motion: no-preference) { .card { transition: border-color .15s } }
