@font-face { font-family: "Rubik"; src: url("fonts/rubik-var.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  --bg: #f1f3f3;          /* nickel grey */
  --paper: #ffffff;
  --ink: #1d2124;
  --muted: #535b61;
  --line: #d5dadc;
  --line-strong: #858e94;
  --copper: #9a4519;      /* pennies: the accent, things that add */
  --copper-ink: #ffffff;
  --copper-soft: #f7e6da;
  --slate: #3f5466;       /* silver: things that take away */
  --slate-soft: #e3e9ee;
  --mast: #8f3f17;
  --mast-ink: #fff3e8;
  --bad: #a3271b;
  --bad-soft: #fbe5e2;
  --focus: #1b5fa6;
  --chip-copper: #c46a35;
  --chip-silver: #c9ced2;
  --chip-gold: #d6b04a;
  --chip-bill: #9cbf95;
  --head: "Rubik", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16110e; --paper: #201915; --ink: #f2e9e2; --muted: #b9aca3; --line: #3b302a; --line-strong: #7d6f66;
    --copper: #ec9762; --copper-ink: #1d120c; --copper-soft: #3a2519; --slate: #a9c0d4; --slate-soft: #233039;
    --mast: #2a1b13; --mast-ink: #f6dcc9; --bad: #ff9d90; --bad-soft: #3d1f1b; --focus: #8ec0f2;
    --chip-copper: #b8622f; --chip-silver: #9aa3aa; --chip-gold: #b8963c; --chip-bill: #6f9468;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); }
body.has-bar { padding-bottom: 72px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
a { color: var(--focus); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 .5rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 5; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- masthead: a copper band ---------- */
.mast { background: var(--mast); color: var(--mast-ink); }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--mast-ink); text-decoration: none; font: 800 1.3rem var(--head); letter-spacing: -.01em; }
.mast nav { display: flex; gap: 18px; }
.mast nav a { color: var(--mast-ink); opacity: .9; text-decoration: none; font-size: .95rem; padding: 10px 0; }
.mast nav a:hover { opacity: 1; text-decoration: underline; }
.mast :focus-visible { outline-color: #ffd9bd; }

.hero { padding: 22px 0 4px; max-width: 760px; }
h1 { font-size: 2.15rem; font-weight: 800; margin: 0 0 .45rem; letter-spacing: -.02em; }
.lede { margin: 0; color: var(--muted); font-size: 1.04rem; max-width: 64ch; }

/* ---------- tool ---------- */
.tool { max-width: 760px; margin: 14px 0 8px; }
.summary p { margin: 0 0 10px; color: var(--muted); font-size: .97rem; }
.summary b { color: var(--ink); }
.banner { background: var(--copper-soft); border-left: 5px solid var(--copper); padding: 10px 12px; margin: 0 0 12px; border-radius: 4px; }
.banner .btn { margin: 6px 6px 0 0; }
.store-note { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 4px; margin: 0 0 12px; }
.nojs { padding: 12px; background: var(--bad-soft); }

.tabs { display: flex; background: var(--ink); border-radius: 10px 10px 0 0; padding: 4px 4px 0; gap: 2px; scroll-margin-top: 8px; }
.tabs [role=tab] { flex: 1 1 0; font: 600 1rem var(--head); color: var(--bg); opacity: .78; background: transparent; border: 0; border-bottom: 4px solid transparent;
  padding: 10px 4px 8px; min-height: 48px; cursor: pointer; }
.tabs [role=tab]:hover { opacity: 1; }
.tabs [role=tab][aria-selected=true] { opacity: 1; color: #fff; border-bottom-color: var(--chip-copper); }
@media (prefers-color-scheme: dark) { .tabs { background: #0c0907; } .tabs [role=tab] { color: var(--ink); } .tabs [role=tab][aria-selected=true] { color: #fff; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; padding: 16px 16px 18px; }
.examples { color: var(--muted); font-size: .95rem; margin: 10px 0 0; }

input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px 10px; min-height: 44px; width: 100%; min-width: 0; }
textarea { min-height: 0; line-height: 1.45; }
input[aria-invalid] { border-color: var(--bad); background: var(--bad-soft); box-shadow: inset 0 0 0 1px var(--bad); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--copper); flex: none; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: .93rem; font-weight: 600; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 12px; }
.field.inline select { width: auto; max-width: 100%; }
.field.wide { grid-column: 1 / -1; }
.opt { font-weight: 400; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.hint { color: var(--muted); margin: 6px 0 4px; font-size: .95rem; }
.bad { color: var(--bad); }
.hint.bad:empty { display: none; }

.btn { font: 600 1rem var(--head); display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  border-radius: 8px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--bg); }
.btn.primary { background: var(--copper); border-color: var(--copper); color: var(--copper-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.quiet { border-color: var(--line-strong); font-weight: 500; color: var(--muted); }
.btn.small { min-height: 40px; padding: 4px 12px; font-size: .95rem; }
.btn.icon { width: 48px; padding: 0; font-size: 1.6rem; line-height: 1; flex: none; }
.btn:disabled { opacity: .4; cursor: default; }
.link { font: inherit; color: var(--focus); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.toast { min-height: 1.4em; color: var(--muted); margin: 8px 0 0; font-size: .95rem; }
.toast:empty { min-height: 0; margin: 0; }

/* ---------- count ---------- */
.daypick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.daychip { font: 600 .92rem var(--head); display: flex; flex-direction: column; align-items: center; flex: 1 1 0; min-width: 58px; max-width: 96px; min-height: 48px; padding: 4px 4px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; line-height: 1.15; }
.daychip small { font: 500 .78rem var(--body); color: var(--muted); }
.daychip.has { box-shadow: inset 0 -4px 0 var(--chip-copper); }
.daychip[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.daychip[aria-pressed=true] small { color: var(--paper); opacity: .85; }
.jarpick { display: flex; gap: 8px; align-items: center; }
.jarpick select { font: 700 1.1rem var(--head); min-height: 48px; }
.progress { color: var(--muted); margin: 8px 0 6px; font-size: .95rem; }

.rows { border-top: 0; }
.crow { display: grid; grid-template-columns: 46px minmax(0, 1fr) 176px; grid-template-areas: "chip lab in" "chip est est"; column-gap: 12px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line); }
.chip { grid-area: chip; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem/1 var(--head); color: #1d2124;
  background: var(--chip-silver); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), inset 0 0 0 4px rgba(0,0,0,.12); text-align: center; letter-spacing: -.02em; }
.chip.copper { background: var(--chip-copper); color: #fff; }
.chip.gold { background: var(--chip-gold); }
.chip.bill { border-radius: 6px; height: 30px; background: var(--chip-bill); }
.cl { grid-area: lab; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.cl label { font-weight: 600; }
.cp { font-size: .9rem; color: var(--muted); }
.cp.up { color: var(--copper); font-weight: 600; }
.cp.down { color: var(--slate); font-weight: 600; }
.cl .mode { font-size: .88rem; flex-basis: 100%; text-align: left; padding: 6px 0 2px; }
.cin { grid-area: in; display: flex; align-items: center; gap: 6px; }
.cin input { flex: 1 1 auto; width: 0; text-align: right; font: 600 1.1rem var(--head); font-variant-numeric: tabular-nums; }
.cin .unit { flex: none; }
.unit { font-size: .85rem; color: var(--muted); min-width: 3.2em; }
button.unit { font: 600 .85rem var(--body); color: var(--focus); background: none; border: 1px solid var(--line-strong); border-radius: 999px; min-height: 36px; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
button.unit:hover { border-color: var(--focus); }
.crow.weigh button.unit { background: var(--slate-soft); }
.rows-hint { margin: 6px 0 0; padding-bottom: 8px; font-size: .9rem; border-bottom: 1px solid var(--line); }
.est { grid-area: est; text-align: right; margin: 4px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.3; }
.est:empty { display: none; }
.est.bad { color: var(--bad); }
.crow.weigh .cin input { border-style: dashed; }
.mixes { padding: 4px 0 0; }
.mixes summary, details.pts summary, details.coinw summary, details.paste summary, details.bydays summary { cursor: pointer; color: var(--focus); padding: 10px 0; min-height: 44px; font-weight: 600; }
.mixes .hint { margin-top: 0; }

.jar-result { margin: 4px 0 10px; padding: 10px 14px; border-radius: 10px; background: var(--copper-soft); min-height: 78px; }
.jar-result p { margin: 0; }
.jr-name { font-weight: 600; }
.jr-big { font: 800 2rem/1.1 var(--head); margin: 0 0 2px !important; font-variant-numeric: tabular-nums; }
.jr-big .badge { vertical-align: middle; }
.jr-big .pos { color: var(--copper); }
.jr-big .neg { color: var(--slate); }
.jr-money { color: var(--ink); }
.jr-err { color: var(--bad); margin-top: 4px !important; }
.jr-big.muted { color: var(--muted); }
.badge { font: 500 .8rem var(--body); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }

/* ---------- standings ---------- */
.empty { color: var(--muted); }
.raised { font-size: 1.05rem; margin: 0 0 10px; }
.raised b { font: 800 1.6rem var(--head); color: var(--copper); margin-left: 4px; }
.board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.board li { display: grid; grid-template-columns: 3.1em minmax(0, 1fr) 10.5em; grid-template-areas: "place name pts" "place bar money"; column-gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.place { grid-area: place; font: 800 1.15rem var(--head); color: var(--muted); }
.board li:first-child .place { color: var(--copper); }
.tname { grid-area: name; font-weight: 600; overflow-wrap: break-word; min-width: 0; }
.tpts { grid-area: pts; text-align: right; white-space: nowrap; }
.tpts b { font: 800 1.2rem var(--head); font-variant-numeric: tabular-nums; }
.tpts abbr { text-decoration: none; color: var(--muted); font-size: .85rem; }
.tpts small { color: var(--muted); }
.tmoney { grid-area: money; text-align: right; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.bar { grid-area: bar; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--chip-copper); border-radius: 4px; }
.board li.neg .bar i { background: var(--slate); }
.board li.neg .tpts b { color: var(--slate); }
.warn { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 6px; }
.note { color: var(--muted); font-size: .95rem; }
.tablewrap { overflow-x: auto; }
.daytable { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
.daytable th, .daytable td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: right; }
.daytable th:first-child { text-align: left; font-weight: 600; }
.daytable thead th { font: 600 .85rem var(--head); color: var(--muted); }
.dash { color: var(--muted); }
.announce { margin-top: 18px; }
.announce textarea { font-size: 15px; background: var(--bg); }
.inline-sel { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.inline-sel select { width: auto; }

/* ---------- setup ---------- */
.sec { padding: 4px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.sec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.sec h3 .count { color: var(--muted); font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
legend { font-weight: 600; font-size: .93rem; padding: 0; margin-bottom: 6px; }
.preset { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.preset:has(input:checked) { border-color: var(--copper); background: var(--copper-soft); }
.preset input { margin-top: 2px; }
.preset > span { display: flex; flex-direction: column; }
.preset > span > span { color: var(--muted); font-size: .94rem; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.ptable, .wtable { border-collapse: collapse; width: 100%; }
.ptable th, .ptable td, .wtable th, .wtable td { border-bottom: 1px solid var(--line); padding: 6px 6px; text-align: left; vertical-align: middle; }
.ptable thead th, .wtable thead th { font: 600 .85rem var(--head); color: var(--muted); }
.ptable th[scope=row], .wtable th[scope=row] { font-weight: 500; }
.ptin { width: 7em; text-align: right; }
.wlist { list-style: none; margin: 0; padding: 0; }
.wlist li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.wlist p { margin: 0; }
.wl-head span { color: var(--muted); font-size: .92rem; }
.sample { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px !important; }
.sample input { width: 5.2em; padding: 6px; text-align: right; }
.used { font-size: .92rem; color: var(--muted); margin-left: auto; }
.teams { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.teams li { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; counter-increment: t; }
.teams li::before { content: counter(t); width: 2em; text-align: right; color: var(--muted); font: 600 .9rem var(--head); flex: none; }
.addteam { display: flex; gap: 8px; margin-top: 8px; }
.addteam .btn { flex: none; }
.movebox { margin-top: 12px; }
.movebox label { font-size: .95rem; }
.restore { margin-top: 12px; }

/* ---------- print tab ---------- */
.printlist { list-style: none; margin: 0; padding: 0; }
.printlist li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.printlist li:last-child { border-bottom: 0; }
.printlist p { margin: 0 0 6px; color: var(--muted); }
.printlist .btn { flex: none; min-width: 12.5em; }
.printlist .field.inline { margin: 6px 0 0; }

/* ---------- undo bar ---------- */
.undo-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; width: min(560px, calc(100% - 24px)); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; background: var(--ink); color: var(--paper); padding: 8px 8px 8px 16px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.undo-bar .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); flex: none; }

/* ---------- content ---------- */
.content { max-width: 720px; padding-bottom: 30px; }
.content p { max-width: 68ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; }
.faq details p { margin: 0 0 14px; }
.sources { font-size: .92rem; color: var(--muted); margin-top: 26px; }

footer { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: .92rem; }
footer a { color: var(--muted); }
.sb-footer p { margin: 6px 0; }

@media (max-width: 560px) {
  h1 { font-size: 1.75rem; }
  .mast nav { gap: 12px; }
  .mast nav a:nth-child(2) { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .crow { grid-template-columns: 44px minmax(0, 1fr) 158px; column-gap: 8px; }
  .chip { width: 42px; height: 42px; font-size: .75rem; }
  .printlist li { flex-direction: column; }
  .board li { grid-template-columns: 2.7em minmax(0, 1fr) 7.6em; column-gap: 8px; }
  .tpts small { display: none; }
  .printlist .btn { width: 100%; }
  .panel { padding: 14px 12px 16px; }
  .tabs [role=tab] { font-size: .95rem; }
}
@media (max-width: 360px) {
  .crow { grid-template-columns: 40px minmax(0, 1fr) 146px; }
  .unit { min-width: 2.6em; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- print ---------- */
.print-root { display: none; }
@media print {
  body { background: #fff; color: #000; font: 11pt/1.4 var(--body); padding: 0 !important; }
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block; color: #000; }
  .print-root .h1, .print-root .h2 { font-family: var(--head); color: #000; font-weight: 800; line-height: 1.15; }
  .print-root .h2 { font-weight: 700; }
  table { border-collapse: collapse; }

  /* flyer */
  .pf { text-align: center; padding-top: 6mm; }
  .pf-kicker { font: 600 13pt var(--head); text-transform: uppercase; letter-spacing: .08em; color: #8f3f17; margin: 0 0 2mm; }
  .pf .h1 { font-size: 64pt; font-weight: 800; margin: 0; letter-spacing: -.02em; line-height: 1; }
  .pf-dates { font: 600 15pt var(--head); margin: 4mm 0 8mm; }
  .pf-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; text-align: left; align-items: start; }
  .pf-how { margin: 6mm 0 0; padding-left: 6mm; font-size: 12.5pt; }
  .pf-how li { margin-bottom: 2.5mm; }
  .pf-rules.one { grid-template-columns: 1fr; max-width: 120mm; margin: 0 auto; }
  .pf-col { border: 2pt solid #000; border-radius: 4mm; padding: 5mm 6mm; break-inside: avoid; }
  .pf-col.plus { border-color: #8f3f17; }
  .print-root .pf-col .h2 { font-size: 19pt; margin: 0 0 1mm; }
  .print-root .pf-col.plus .h2 { color: #8f3f17; }
  .pf-col p { margin: 0 0 3mm; }
  .pf-col ul { list-style: none; margin: 0; padding: 0; }
  .pf-col li { display: flex; align-items: center; gap: 3mm; padding: 2mm 0; border-bottom: .5pt solid #bbb; font-size: 14pt; }
  .pf-col li:last-child { border-bottom: 0; }
  .pf-col li b { margin-left: auto; font: 800 15pt var(--head); }
  .pchip { width: 11mm; height: 11mm; border-radius: 50%; display: inline-grid; place-items: center; font: 700 7.5pt var(--head); border: 1pt solid #000; flex: none; letter-spacing: -.02em; }
  .pchip.copper { background: #f0d2bd; }
  .pchip.silver { background: #e6e9eb; }
  .pchip.gold { background: #f1e2b3; }
  .pchip.bill { border-radius: 1.5mm; height: 7.5mm; background: #e0eedc; }
  .pf-note { margin: 5mm 0 0; }
  .pf.dense { padding-top: 0; }
  .pf.dense .h1 { font-size: 50pt; }
  .pf.dense .pf-dates { margin: 3mm 0 6mm; }
  .pf.dense .pf-col li { padding: 1.1mm 0; font-size: 12.5pt; }
  .pf.dense .pchip { width: 9mm; height: 9mm; }
  .pf.dense .pchip.bill { height: 6.5mm; }
  .pf.dense .pf-win { margin-top: 7mm; }
  .pf.t-m .h1 { font-size: 46pt; }
  .pf.t-s .h1 { font-size: 36pt; }
  .pf.dense.t-m .h1 { font-size: 40pt; }
  .pf.dense.t-s .h1 { font-size: 32pt; }
  .pf-win { font: 700 19pt var(--head); margin: 12mm auto 4mm; max-width: 160mm; }
  .pf-small { font-size: 11.5pt; margin: 0 auto; max-width: 150mm; }

  /* jar labels: 2 x 2 per page */
  .pl-page { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 120mm; gap: 0; break-after: page; }
  .pl-page:last-child { break-after: auto; }
  .pl { border: 1pt dashed #777; padding: 8mm 6mm; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
  .pl-ev { font: 700 13pt var(--head); text-transform: uppercase; letter-spacing: .1em; color: #8f3f17; margin: 0 0 4mm; }
  .pl-name { font: 800 30pt/1.05 var(--head); margin: 0 0 6mm; overflow-wrap: break-word; max-width: 100%; }
  .pl-name.xl { font-size: 44pt; }
  .pl-name.l { font-size: 34pt; }
  .pl-name.m { font-size: 26pt; }
  .pl-name.s { font-size: 19pt; }
  .pl-rule { font-size: 12pt; margin: 0; max-width: 70mm; }
  .pl-cause { font-size: 10.5pt; margin: 3mm 0 0; color: #333; }

  /* counting sheet (landscape) */
  .ps-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10mm; margin-bottom: 3mm; }
  .ps-head .h1 { font-size: 17pt; margin: 0; flex-basis: 100%; }
  .ps-head p { margin: 1mm 0; font-size: 11pt; }
  .ps-table { width: 100%; table-layout: fixed; font-size: 10.5pt; }
  .ps-table col.c-team { width: 56mm; }
  .ps-table col.c-tot { width: 20mm; }
  .ps-table th, .ps-table td { border: .75pt solid #000; padding: 1.4mm 1.5mm; height: 9mm; }
  .ps-table thead th { background: #eee; font: 700 10.5pt var(--head); text-align: center; height: auto; }
  .ps-table thead th small { display: block; font: 500 8.5pt var(--body); }
  .ps-table tbody th { text-align: left; font-weight: 600; overflow-wrap: break-word; }
  .ps-table thead { display: table-header-group; }
  .ps-table tr { break-inside: avoid; }
  .ps-head .ps-foot { font-size: 9.5pt; margin: 0 0 1mm; flex-basis: 100%; color: #333; }
  .print-root tr.run td { border: 0 !important; height: auto !important; padding: 0 0 1.5mm !important; font: 500 8.5pt var(--body); color: #555; text-align: left !important; background: none; }

  /* results */
  .pr-head .h1 { font-size: 20pt; margin: 0 0 1mm; }
  .pr-head p { margin: 0 0 1mm; }
  .pr-raised { font-size: 13pt; margin: 2mm 0 4mm !important; }
  .pr-raised b { font: 800 16pt var(--head); }
  .pr-table, .print-root .daytable { width: 100%; font-size: 10.5pt; font-variant-numeric: tabular-nums; }
  .pr-table { table-layout: fixed; }
  .pr-table col.c-place { width: 18mm; }
  .pr-table col.c-num { width: 32mm; }
  .pr-table th, .pr-table td, .print-root .daytable th, .print-root .daytable td { border-bottom: .75pt solid #888; padding: 1.6mm 2mm; height: 8mm; text-align: right; }
  .pr-table td:first-child, .pr-table tbody th, .pr-table thead th:nth-child(-n+2), .print-root .daytable th:first-child { text-align: left; }
  .pr-table tbody th { font-weight: 600; overflow-wrap: break-word; }
  .pr-table thead th, .print-root .daytable thead th { border-bottom: 1.5pt solid #000; font: 700 10pt var(--head); color: #000; }
  .pr-table thead, .print-root .daytable thead { display: table-header-group; }
  .pr-table tr, .print-root .daytable tr { break-inside: avoid; }
  .print-root .h2 { font-size: 14pt; margin: 7mm 0 2mm; break-after: avoid; }
  .pr-note { font-size: 10pt; margin: 2mm 0 0; }
  .pr-warn { font-weight: 600; break-inside: avoid; }
  .print-root .dash { color: #666; }
}
