:root { --gold:#8b6518; --ink:#1c2430; --muted:#5b6573; --bg:#f5f3ee; --line:#d8d3c8; --ok:#2d5a3d; }
* { box-sizing: border-box; }
body { margin:0; font-family:-apple-system,"Helvetica Neue",Helvetica,Arial,sans-serif; background:var(--bg); color:var(--ink); line-height:1.5; }
header { background:#fff; border-bottom:1px solid var(--line); padding:14px 20px; }
header a { color:var(--ink); text-decoration:none; font-weight:800; font-size:20px; letter-spacing:-0.3px; }
main { max-width:720px; margin:0 auto; padding:20px; }
h1 { font-size:26px; margin:8px 0 4px; } h2 { font-size:19px; margin:26px 0 6px; }
p { margin:8px 0; } a { color:#0b5cad; } .muted { color:var(--muted); font-size:14px; }
.tag { display:inline-block; font-size:13px; font-weight:700; padding:2px 10px; border-radius:10px; background:#dfe9e2; color:var(--ok); }
.tag.final { background:#e9e9ee; color:var(--muted); } .tag.setup { background:#fbe9c2; color:#7a5200; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; margin:12px 0; }
th { text-align:left; font-size:13px; color:var(--muted); background:#fafaf7; padding:8px 10px; } td { padding:12px 10px; border-top:1px solid var(--line); font-size:17px; }
td.n, th.n { text-align:right; } td.big { font-weight:800; }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin:14px 0; }
footer { max-width:720px; margin:0 auto; padding:10px 20px 40px; color:var(--muted); font-size:14px; } footer a { margin-right:14px; }
.err { color:#9c1c10; font-weight:600; }

@media (max-width: 480px) { td, th { padding-left: 6px; padding-right: 6px; } td { font-size: 15px; } main { padding: 14px; } h1 { font-size: 22px; } }

/* expandable scorecards on the live board */
button.who { all: unset; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 17px; min-height: 28px; }
button.who:focus-visible { outline: 2px solid #0b5cad; outline-offset: 2px; border-radius: 4px; }
.chev { color: var(--gold); width: 14px; display: inline-block; }
tr.detail > td { background: #fcfbf8; padding: 6px 8px 12px; }
tr.detail[hidden] { display: none; }
.cardwrap { overflow-x: auto; }
table.sc { width: 100%; border: 0; border-radius: 0; margin: 6px 0; font-size: 14px; background: transparent; }
table.sc th, table.sc td { text-align: center; padding: 4px 2px; border: 1px solid var(--line); font-size: 14px; min-width: 26px; background: #fff; }
table.sc th { background: #fafaf7; color: var(--muted); font-weight: 600; }
table.sc td.sum, table.sc th.sum { font-weight: 800; background: #f3efe4; }
table.sc tr.parrow td { color: var(--muted); }
table.sc span { display: inline-block; min-width: 22px; line-height: 22px; font-weight: 700; }
.k-birdie { border: 2px solid var(--ink); border-radius: 50%; }
.k-eagle { border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.k-bogey { border: 2px solid var(--ink); border-radius: 2px; }
.k-double { border: 2px solid var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.k-none { color: var(--line); font-weight: 400; }
.sctotal { margin: 2px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 480px) { table.sc th, table.sc td { font-size: 13px; min-width: 22px; padding: 4px 1px; } button.who { font-size: 16px; } }
