:root{--bg:#faf8f5;--surface:#fff;--text:#1f1c1a;--muted:#5f5853;--border:#e3ddd6;--row-alt:#f6f2ed;--accent:#7a1f2b;--accent-soft:#f4e9ea;--focus:#1f5fbf;--serif:Georgia, "Times New Roman", serif;--sans:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);font-family:var(--sans);margin:0;font-size:1rem;line-height:1.5}#root{flex-direction:column;min-height:100vh;display:flex}.container{width:100%;max-width:52rem;margin:0 auto;padding:0 1rem}main.container{flex:1;padding-top:1.5rem;padding-bottom:2.5rem}a{color:var(--accent)}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}h1{font-family:var(--serif);margin:0;font-size:1.6rem;line-height:1.25}.site-header{background:var(--accent);color:#fff;padding:.9rem 0}.header-inner{align-items:center;gap:.9rem;display:flex}.logo-link{background:#fff;border-radius:6px;flex-shrink:0;padding:4px 6px;line-height:0;display:block}.logo{width:auto;height:44px;display:block}.brand{color:#fff;font-family:var(--serif);font-size:1.25rem;font-weight:700;text-decoration:none}.header-text{flex:1;min-width:0}.race-name{opacity:.9;margin:.15rem 0 0;font-size:.9rem}.year-select{color:#fff;opacity:.95;flex-direction:column;flex-shrink:0;align-items:flex-start;gap:.1rem;font-size:.8rem;display:flex}.year-select select{color:#fff;background:#ffffff1f;border:1px solid #fff9;min-height:2.75rem;padding:.3rem .5rem;font-size:1rem;font-weight:600}.year-select select option{color:var(--text);background:var(--surface)}.year-select select:focus-visible{outline-color:#fff}@media (width<=30rem){.header-inner{gap:.6rem}.logo{height:34px}.brand{white-space:nowrap;font-size:1.05rem}.race-name{font-size:.8rem}.year-select span{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}.site-footer{border-top:1px solid var(--border);color:var(--muted);padding:1.25rem 0;font-size:.9rem}.page-head{margin-bottom:1.25rem}.date{color:var(--muted);margin:.25rem 0 0}select,input,button{font:inherit;color:inherit}select,input[type=search]{border:1px solid var(--border);background:var(--surface);border-radius:6px;min-height:2.75rem;padding:.4rem .6rem}button{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:6px;min-height:2.75rem;padding:.4rem 1.1rem}.view-switch{border:1px solid var(--accent);border-radius:6px;margin-bottom:1rem;display:flex;overflow:hidden}.view-switch button{background:var(--surface);color:var(--accent);border-radius:0;flex:1;font-weight:600}.view-switch button+button{border-left:1px solid var(--accent)}.view-switch button[aria-pressed=true]{background:var(--accent);color:#fff}.view-switch button:focus-visible{outline-offset:-4px}.note{color:var(--muted);margin:0 0 1rem;font-size:.9rem}.search{flex-direction:column;gap:.3rem;margin-bottom:1.25rem;display:flex}.search label{font-weight:600}.search input{width:100%}.message{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1rem 1.25rem}.message h1{margin-bottom:.5rem}.message p{margin:0 0 .75rem}.message p:last-child{margin-bottom:0}.category{background:var(--surface);border:1px solid var(--border);border-radius:8px;margin-bottom:.75rem;overflow:hidden}.category summary{cursor:pointer;justify-content:space-between;align-items:baseline;gap:1rem;min-height:2.75rem;padding:.7rem 1rem;list-style:none;display:flex}.category summary::-webkit-details-marker{display:none}.category summary:before{content:"▸";color:var(--accent);margin-right:-.5rem}.category[open] summary:before{content:"▾"}.category[open] summary{background:var(--accent-soft);border-bottom:1px solid var(--border)}.category-name{font-family:var(--serif);flex:1;font-size:1.1rem;font-weight:700}.distance{color:var(--muted);white-space:nowrap}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.95rem}th,td{text-align:left;vertical-align:top;padding:.55rem .75rem}th{color:var(--muted);text-transform:uppercase;letter-spacing:.03em;border-bottom:1px solid var(--border);font-size:.8rem;font-weight:600}tbody tr:nth-child(2n){background:var(--row-alt)}.place{white-space:nowrap;text-align:center;width:3rem}.time{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.time .gap{text-align:left;min-width:10ch;color:var(--muted);padding-left:.4em;font-size:.85em;display:inline-block}@media (width<=30rem){.time{white-space:normal}.time .gap{text-align:right;white-space:nowrap;min-width:0;padding-left:0;display:block}}tbody tr.match{background:var(--accent-soft);box-shadow:inset 4px 0 0 var(--accent)}td.name{font-weight:600}td.name .row-category{color:var(--muted);white-space:nowrap;font-size:.8em;font-weight:400;display:block}td.name .bib{border:1px solid var(--border);background:var(--surface);min-width:1.9em;color:var(--muted);text-align:center;font-variant-numeric:tabular-nums;vertical-align:.1em;border-radius:4px;padding:0 .3em;font-size:.75em;font-weight:600;line-height:1.5;display:inline-block}td.club{color:var(--muted)}@media (width<=30rem){h1{font-size:1.35rem}th,td{padding:.5rem .45rem}table{font-size:.9rem}}
