:root{color-scheme:light;--ink:#102b26;--green:#075843;--cream:#f6f7ed;--edge:#cddad0;--lime:#d9f46a;--white:#fff;font-family:system-ui,sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}
body{margin:0}
.shell{width:min(1020px,calc(100% - 36px));margin-inline:auto}
.hero{color:white;background:#0b3d32}
.hero-content{padding:28px 0 62px;position:relative;overflow:hidden}
.hero-content::after{content:"";position:absolute;right:-52px;top:30px;width:380px;height:250px;border:2px solid #77a180;border-radius:24px;transform:rotate(-19deg);box-shadow:inset 0 0 0 37px #0b3d32,inset 0 0 0 39px #77a180;pointer-events:none}
.brand{display:inline-flex;align-items:center;gap:11px;color:white;text-decoration:none;font-weight:760}
.brand span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:var(--ink);background:var(--lime);font-size:.82rem}
.kicker{text-transform:uppercase;font-weight:800;font-size:.75rem;letter-spacing:.12em;margin:0 0 9px;color:var(--green)}
.hero .kicker{margin-top:42px;color:var(--lime)}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(3rem,10vw,6.6rem);line-height:.9;letter-spacing:-.085em;margin-bottom:20px}
h2{font-size:clamp(1.45rem,3vw,2.2rem);letter-spacing:-.045em;margin-bottom:12px}
h3{margin-bottom:6px}
.intro{max-width:44ch;margin-bottom:0;line-height:1.6;color:#ebf4eb}
.hero-content>*{position:relative;z-index:1}
main{padding:30px 0 36px}
.setup-card,.notes{background:white;border:1px solid var(--edge);border-radius:20px;padding:clamp(18px,4vw,34px)}
.setup-card{display:grid;grid-template-columns:.9fr 1.1fr;gap:30px}
.setup-card p,.notes dd{line-height:1.55}
label{display:block;font-size:.86rem;font-weight:720}
input,textarea{display:block;width:100%;margin-top:6px;border:1px solid var(--edge);border-radius:9px;padding:10px;color:var(--ink);background:#fbfcfa;font:inherit}
textarea{resize:vertical}
.settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}
button{padding:10px 14px;font:inherit;font-size:.85rem;font-weight:740;border:1px solid var(--edge);border-radius:9px;background:white;color:var(--green);cursor:pointer}
button:disabled{opacity:.45;cursor:default}
button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #0c865e;outline-offset:3px}
.primary{border-color:var(--green);background:var(--green);color:white}
#message{margin:10px 0 0;min-height:1.4em;font-size:.85rem}
#event,.notes{margin-top:28px}
.section-head,.round-nav{display:flex;align-items:center;justify-content:space-between;gap:9px}
.section-head h2{margin:0}
#sitting,#scored{margin:10px 0 14px;color:#305248;font-size:.94rem}
.courts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px}
.court{border:1px solid var(--edge);border-radius:16px;background:white;padding:16px}
.court h3{font-size:.78rem;letter-spacing:.07em;text-transform:uppercase;color:var(--green)}
.court p{font-weight:730}
.court input{max-width:130px}
.other-score{display:block;margin-top:7px;color:#305248;font-size:.86rem}
.standings{margin-top:28px}
.table-wrap{overflow:auto;background:white;border:1px solid var(--edge);border-radius:12px}
table{width:100%;min-width:430px;border-collapse:collapse;text-align:left;font-size:.9rem}
th,td{padding:9px 12px;border-bottom:1px solid var(--edge)}
tr:last-child td{border-bottom:0}
.notes dl{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:0}
.notes dt{font-weight:750;margin-bottom:6px}
.notes dd{margin:0}
footer{padding:0 0 25px;font-size:.85rem}
@media(max-width:700px){.setup-card,.notes dl{grid-template-columns:1fr}.hero-content::after{opacity:.22}.section-head{align-items:flex-start}.round-nav{flex-wrap:wrap;justify-content:flex-end}}
@media print{.hero,.setup-card,.round-nav,.notes,footer,#print{display:none}main,#event{margin:0;padding:0}.court,.table-wrap{break-inside:avoid}body{background:white}.shell{width:100%}}
