:root { color-scheme: light; --ink: #142b2d; --muted: #465c5e; --line: #e2e8e5; --green: #12523f; --paper: #fff; --accent: #a34e1d; }
* { box-sizing: border-box; }
body { margin: 0; background: #f3f5f1; color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #309b7e; outline-offset: 3px; }
.page { max-width: 1536px; margin: auto; padding: 28px 32px 24px; }
.event-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid #dce3dc; }
.event-brand { display: flex; align-items: center; gap: 13px; font-size: 18px; letter-spacing: -.2px; }
.event-brand b { font-weight: 500; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--green); color: white; font-size: 15px; font-weight: 750; letter-spacing: -.8px; }
.event-date { color: var(--muted); font-size: 14px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 34px 0 25px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 13px; font-weight: 650; letter-spacing: .7px; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(27px, 3.2vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -1.25px; }
.intro-text { margin: 12px 0 0; color: var(--muted); }
.print-button { flex-shrink: 0; border: 1px solid #c9d5ce; border-radius: 8px; background: transparent; color: var(--ink); padding: 10px 14px; margin-bottom: 2px; font-size: 14px; }
.print-button span { margin-left: 8px; }
.print-button:hover { background: #e8eee8; }
.rules { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 14px; margin-bottom: 28px; }
.rule-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 17px 20px; }
.rule-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.rule-card strong { display: block; font-weight: 650; font-size: 23px; letter-spacing: -.5px; }
.rule-card strong span { padding: 0 8px; color: #60736a; }
.rule-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.formula-card { background: #e7efe8; border-color: #d7e3d9; }
.formula-card strong { color: var(--green); font-size: 21px; }
.protocol { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 3px 15px #213f2c03; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 18px; gap: 20px; }
h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.35px; }
.table-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.table-toolbar p b { color: var(--ink); font-weight: 550; }
.table-toolbar p span { padding: 0 6px; }
.search-box { position: relative; width: 320px; }
.search-box > span { position: absolute; left: 13px; top: 4px; font-size: 26px; line-height: 30px; color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; border: 1px solid #d9e2dc; border-radius: 8px; padding: 10px 12px 10px 38px; background: #f9fbf9; color: var(--ink); font-size: 15px; }
.search-box input::placeholder { color: #506562; opacity: 1; }
.filter-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 24px 17px; gap: 15px; }
.group-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.group-filters button { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 7px; padding: 7px 12px; font-size: 13px; }
.group-filters button[aria-pressed="true"] { color: var(--green); background: #eaf3ec; font-weight: 650; }
.group-filters button:hover { background: #f0f4f1; }
.visible-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.team-details-help { margin: 0 24px 18px; padding: 11px 14px; border-left: 3px solid #427a9e; border-radius: 0 6px 6px 0; background: #f0f6fb; color: #314f62; font-size: 14px; line-height: 1.6; }
.team-details-help strong { color: #135681; font-weight: 650; }
.day-key { margin: 0; padding: 12px 24px; background: #f8faf7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.day-key b { color: #435753; font-weight: 550; }
.scroll-hint { display: none; margin: 0; padding: 9px 16px; color: var(--green); font-size: 13px; border-bottom: 1px solid var(--line); }
.scroll-hint span { margin-left: 7px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 1130px; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.col-place { width: 5%; } .col-number { width: 5%; } .col-group { width: 6%; } .col-team { width: 16.5%; } .col-city { width: 10.5%; } .col-members { width: 15%; } .col-details { width: 23%; } .col-result { width: 12%; } .col-group-place { width: 7%; }
th { padding: 14px 10px; font-size: 13px; font-weight: 650; text-align: left; color: #374e44; background: #f2f6f2; border-bottom: 1px solid #dbe4dc; vertical-align: middle; }
th span { font-weight: 400; font-size: 11px; color: var(--muted); }
th:first-child, th:nth-child(2), th:nth-child(3), th:last-child { text-align: center; }
td { padding: 14px 10px; border-bottom: 1px solid #edf0eb; vertical-align: middle; overflow-wrap: anywhere; }
.team-row:nth-of-type(even) { background: #fcfdfb; }
.team-row:hover { background: #f4f8f3; }
.team-row:last-child td { border-bottom: 0; }
.place, .team-number, .group-place { text-align: center; font-variant-numeric: tabular-nums; }
.place-number { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; font-size: 16px; font-weight: 600; }
.rank-1 .place-number { background: #fff0cb; color: #865e15; }
.rank-2 .place-number { background: #e9edf0; color: #54606b; }
.rank-3 .place-number { background: #f4e5d8; color: #93552e; }
.team-number { font-weight: 650; color: #3e564a; }
.group-badge { display: grid; place-items: center; width: 27px; height: 27px; margin: auto; border-radius: 6px; font-weight: 650; font-size: 12px; }
.group-men { color: #385e76; background: #edf3f8; }
.group-women { color: #885466; background: #f6edf2; }
.group-mixed { color: #65712b; background: #f0f3df; }
.team-name { font-size: 15px; font-weight: 600; line-height: 1.5; }
.team-name a { color: #175b89; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.team-name a:hover, .team-name a:focus-visible { color: #0d3c63; text-decoration-thickness: 2px; }
.team-name a:visited { color: #514183; }
.team-link-icon { display: inline-block; width: 1em; height: 1em; margin-left: .35em; vertical-align: -.1em; background: url("click.jpg") center / 185% 185% no-repeat; mix-blend-mode: multiply; }
.city { color: var(--muted); line-height: 1.55; }
.members { color: #344a40; font-size: 13px; line-height: 1.7; }
.calculation { margin: 0; font-size: 13px; line-height: 1.7; }
.calculation div { display: flex; justify-content: space-between; gap: 6px; }
.calculation dt { color: #43584c; white-space: nowrap; }
.calculation dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calculation dd span { color: #536b5b; padding: 0 3px; }
.clean-time { font-weight: 600; }
.calculation .day-times { font-size: 12px; }
.calculation .clean-days { color: var(--green); font-weight: 500; }
.calculation .clean-days .day1-time, .calculation .clean-days .day2-time { color: inherit; padding: 0; }
.penalty-time { color: #874319; }
.result { white-space: nowrap; }
.result-time { font-weight: 750; font-size: 18px; letter-spacing: -.35px; font-variant-numeric: tabular-nums; color: var(--green); }
.group-place-number { font-size: 15px; font-weight: 650; }
.podium-1 { color: #7b5911; } .podium-2 { color: #4d5e6a; } .podium-3 { color: #874f27; }
.status-badge { display: table; margin-top: 7px; background: #f2efeb; color: #5e5140; font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 5px; }
.unclassified .result-time { font-size: 16px; font-weight: 600; color: #3f5749; }
.unclassified-label { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.no-data { color: #596b60; font-size: 13px; }
.section-row { background: #eaf0e9; }
.section-row td { padding: 15px 24px; color: #364f3f; font-size: 14px; font-weight: 650; }
.section-row span { margin-left: 10px; font-weight: 400; font-size: 13px; color: var(--muted); }
.empty-state { padding: 35px 24px; text-align: center; color: var(--muted); }
.protocol-note { border-top: 1px solid var(--line); padding: 13px 24px; background: #fafbf9; }
.protocol-note p { margin: 3px 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; color: #586b62; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 1200px) { .scroll-hint { display: block; } }
@media (max-width: 800px) {
  .page { padding: 18px 16px; }
  .event-header { padding-bottom: 18px; gap: 12px; }
  .event-brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
  .event-date { font-size: 12px; text-align: right; max-width: 95px; }
  .intro { margin: 26px 0 20px; align-items: flex-start; }
  h1 { font-size: 29px; letter-spacing: -.85px; }
  .intro-text { font-size: 14px; }
  .print-button { display: none; }
  .eyebrow { font-size: 12px; letter-spacing: .25px; }
  .rules { grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 20px; }
  .rule-card { padding: 13px 14px; border-radius: 9px; }
  .rule-card strong { font-size: 17px; }
  .rule-card strong span { padding: 0 2px; }
  .rule-card p { font-size: 12px; }
  .formula-card { grid-column: 1 / -1; }
  .formula-card strong { font-size: 18px; }
  .table-toolbar { flex-direction: column; align-items: stretch; padding: 18px 16px 14px; gap: 14px; }
  .search-box { width: 100%; }
  .filter-toolbar { flex-direction: column; align-items: flex-start; padding: 0 16px 12px; gap: 8px; }
  .group-filters { gap: 1px; }
  .group-filters button { padding: 7px 9px; font-size: 12px; }
  .day-key { padding: 10px 16px; font-size: 12px; }
  .team-details-help { margin: 0 16px 14px; padding: 10px 12px; }
  .protocol-note { padding: 12px 16px; }
  footer { font-size: 12px; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: white; font-size: 11px; }
  .page { max-width: none; padding: 0; }
  .event-header { padding-bottom: 8px; }
  .brand-mark { width: 27px; height: 27px; }
  .intro { margin: 12px 0; }
  h1 { font-size: 25px; }
  .intro-text { font-size: 11px; }
  .print-button, .search-box, .filter-toolbar, .scroll-hint { display: none; }
  .rules { gap: 7px; margin-bottom: 12px; }
  .rule-card { padding: 7px 12px; }
  .rule-card strong, .formula-card strong { font-size: 15px; }
  .rule-card p { font-size: 10px; }
  .protocol { border: 0; border-radius: 0; box-shadow: none; }
  .table-toolbar { padding: 8px 0; }
  .day-key { padding: 7px 0; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; font-size: 10px; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  th, td { padding: 7px 5px; }
  th, th span, .members, .calculation, .city, .no-data { font-size: 10px; }
  .team-name, .result-time, .unclassified .result-time { font-size: 11px; }
  .place-number { width: 20px; height: 20px; font-size: 11px; }
  .calculation dt { white-space: normal; }
  .calculation dd span { padding: 0; }
  .calculation .day-times { font-size: 10px; }
  .group-badge { width: 20px; height: 20px; }
  a { text-decoration: none; }
  footer { padding-top: 10px; }
}
