:root { --ink: #1b1e26; --paper: #faf7f0; --wood: #e9d8b4; --accent: #6b4a1f; --bad: #a3273f; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--ink); background: var(--paper); }
.top { padding: 20px 16px 8px; max-width: 900px; margin: 0 auto; }
.top h1 { margin: 0; font-size: 1.8rem; color: var(--accent); }
main { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid #ddd3bd; border-radius: 8px; padding: 14px 16px; margin: 12px 0; }
.card.good { border-left: 6px solid var(--accent); }
.card.bad { border-left: 6px solid var(--bad); }
.card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
.pair { display: flex; align-items: center; gap: 6px; font-weight: 400; }
input[type=number] { width: 100%; }
h2.sub { margin-top: 14px; }
.table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.table td, .table th { border-bottom: 1px solid #eee4cf; padding: 5px 6px; text-align: left; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
input, select, button { font: inherit; padding: 6px 8px; }
button { background: var(--accent); color: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.note { color: var(--bad); font-weight: 600; }
.small { font-size: .88rem; }
.adslot { max-width: 900px; margin: 12px auto; padding: 18px; text-align: center; border: 2px dashed #c9bfa8; color: #7a705c; font-size: .85rem; }
footer { max-width: 900px; margin: 12px auto; padding: 8px 16px; font-size: .85rem; color: #555; }

/* PUBLISH-READY (2026-10-24). A card in a row of cards, and a fieldset, will not
   shrink below the widest thing inside them, so a wide table pushed the whole page
   sideways on a phone instead of scrolling in its own box. */
.card, fieldset { min-width: 0; }

/* QC 2026-10-25: a wide results table scrolls in its own box on a phone instead of pushing the page sideways */
.table { display: block; max-width: 100%; overflow-x: auto; }
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
