/* The roster, running sheet and review have their own reading order. */
.page[data-page="race"] {background:#f2f2e9;color:#193f3a}
.page[data-page="race"] .page-bar {background:#184d47;color:#fffaf0}
.ref-lab {--ink:#1a4540;--body:#354b43;--line:#c5cdbd;--paper:#fffdf5;--rust:#995336; width:min(1120px,calc(100% - 56px));margin:clamp(20px,5vh,52px) auto 64px;font:16px/1.65 "Microsoft YaHei","PingFang SC",sans-serif;color:var(--body)}
.ref-lab *, .ref-lab *::after {box-sizing:border-box}
.ref-lab h1,.ref-lab h2,.ref-lab h3,.ref-lab p{margin:0}
.ref-lab h1,.ref-lab h2,.ref-lab h3 {color:var(--ink);line-height:1.4}
.ref-lab h1 {font:600 clamp(26px,2.6vw,38px)/1.4 "STSong","SimSun",serif;letter-spacing:.035em}
.ref-lab h2 {font:600 clamp(21px,1.9vw,28px)/1.45 "STSong","SimSun",serif}
.ref-lab h3 {font-size:17px}
.ref-lab button {font-family:inherit;cursor:pointer;line-height:1.4}
.ref-lab button:focus-visible,.ref-lab summary:focus-visible {outline:3px solid #ac7046;outline-offset:3px}
.ref-register-title p,.ref-review-title p {margin:.28em 0 0;color:#59685a}
.ref-posts {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;border-block:1px solid #b7c9ba;background:linear-gradient(#faf8eb 0%,#f6f5e7 49%,#d9e7da 50%,#d6e4d7 77%,#ebefe2 78%);padding:4px;margin:24px 0}
.ref-post {display:grid;justify-items:center;align-content:end;gap:5px;min-width:0;padding:6px 6px 10px;color:#34564b;background:transparent;border:1px solid transparent;border-bottom:3px solid transparent;text-align:center;border-radius:4px}
.ref-post strong {font-size:16px;font-weight:650;line-height:1.45;padding:2px 12px;border-radius:20px}
.ref-post:hover {background:#fffdf060}
.ref-post[aria-pressed="true"] {border-color:#abbda7;border-bottom-color:#a57549;background:#fbf8e888}
.ref-post[aria-pressed="true"] strong {background:#2a584c;color:#fffcee}
.ref-station-icon {display:block;width:min(100%,168px);height:auto}
.ref-brief,.ref-sheet {border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.ref-brief {display:grid;grid-template-columns:1.3fr 1fr;overflow:hidden}
.ref-brief>div {padding:clamp(18px,2.8vw,34px)}
.ref-tabs {display:flex;gap:16px;margin:14px 0 12px;border-bottom:1px solid #d6d8c8}
.ref-tabs .ref-button {border:0;border-radius:0;border-bottom:3px solid transparent;margin:0;padding:9px 2px;background:transparent}
.ref-tabs .ref-button[aria-pressed="true"] {color:var(--rust);border-bottom-color:var(--rust)}
.ref-brief-reading p,.ref-start p {line-height:1.85}
.ref-brief-reading ul {padding-left:22px;margin:5px 0}
.ref-job-notes {margin:14px 0 0}
.ref-job-notes div {display:grid;grid-template-columns:4.5em 1fr;align-items:start;gap:7px;border-top:1px solid #d9ddcd;padding:8px 0}
.ref-job-notes dt {font-weight:700;color:#795332}.ref-job-notes dd {margin:0}
.ref-start {background:#eaf0e3;border-left:1px solid #ccd7c4}
.ref-start p {margin:8px 0 15px}
.ref-button {font-size:15px;font-weight:600;color:#2d5148;border:1px solid #a4b6a5;background:#f8f9ee;border-radius:5px;min-height:44px;padding:8px 15px}
.ref-button:hover:not(:disabled) {background:#e2ebdb;border-color:#5e8573}
.ref-button.ref-primary,.ref-field .ref-button[aria-pressed="true"] {background:#22594d;border-color:#22594d;color:#fffdf1}
.ref-button.ref-primary:hover:not(:disabled) {background:#194d43}
.ref-source-note {margin:18px 2px;color:#526456;font-size:14px}
.ref-source-note summary,.ref-review-row summary {cursor:pointer}
.ref-source-note p {margin:6px 0}
.ref-sheet {overflow:hidden;max-width:940px;margin-inline:auto}
.ref-mast {display:flex;gap:12px;justify-content:space-between;align-items:center;background:#28584e;color:#fff9e9;padding:13px clamp(16px,3vw,34px);font-size:15px}
.ref-mast i {font-style:normal;color:#b8c9ad;margin:0 12px}
.ref-mast-tools {display:flex;align-items:center;gap:12px;white-space:nowrap}
.ref-mast-tools .ref-button {min-height:34px;background:transparent;border-color:#9bb9a9;color:white;padding:4px 11px;font-size:14px}
.ref-mast-tools .ref-button:hover:not(:disabled) {background:#326859}
.ref-resume {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 14px;background:#eaf1e7;border-left:3px solid #7e9b7a;margin:-6px 0 14px}
.ref-replace {color:#814827}
.ref-pad {padding:clamp(18px,3.4vw,38px)}
.ref-timing {display:flex;justify-content:space-between;gap:20px;align-items:center}
.ref-call-prefix {color:#426b5a;font-variant-numeric:tabular-nums}
.ref-source-note a {display:inline-block;color:#245e51;text-decoration:underline;text-underline-offset:3px}
.ref-timing>div>span {display:block;font-size:14px;color:#5c6f61}
.ref-timing b {display:block;color:#224c42;font:600 clamp(22px,2.5vw,34px)/1.4 Georgia,"STSong","SimSun",serif;font-variant-numeric:tabular-nums}
.ref-timing .ref-countdown {text-align:right}
.ref-timing .ref-countdown b {color:var(--rust)}
.ref-timing small {font:500 14px/1.4 "Microsoft YaHei",sans-serif}
.ref-meter {height:4px;background:#e5e7d8;margin:12px 0 23px}
.ref-meter i {display:block;width:var(--left,100%);height:100%;background:#648b76;transition:width .08s linear}
.ref-meter.ref-urgent i {background:#b35941}
.ref-lab .ref-event {font:600 clamp(19px,1.85vw,26px)/1.7 "STSong","SimSun",serif;color:#1d4037;margin:10px 0 20px;overflow-wrap:anywhere}
.ref-field {border:0;border-top:1px solid #d9ddce;padding:8px 0 0;margin:14px 0 0;min-width:0}
.ref-field legend {font-size:15px;font-weight:700;padding:0 16px 0 0;color:#395b4b}
.ref-field .ref-button {margin:4px 7px 4px 0}
.ref-field .ref-decisions {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ref-field .ref-decisions button {margin:4px 0;min-height:48px;font-size:17px}
.ref-decisions button:disabled {background:#f1f1e7;color:#777e71;cursor:default;border-color:#d2d8c9}
.ref-carry,.ref-alt {border-left:3px solid #bc9a64;background:#f5efe2;padding:9px 13px;font-size:15px}
.ref-carry p {margin:2px 0 0}
.ref-meta,.ref-citation {color:#685c47;font-size:14px;line-height:1.7}
.ref-result {border-left:4px solid #4e8067;background:#e9f2e7;padding:13px 17px}
.ref-result h3 {margin:0 0 4px}
.ref-result.ref-wrong {background:#faebdf;border-color:#ae6140}
.ref-result.ref-missed {background:#eeeae1;border-color:#7e7561}
.ref-ruling {padding:17px 0}
.ref-ruling h3 {margin:0 0 3px}
.ref-citation {margin-top:6px!important}
.ref-coach {border-top:1px solid #d6dccb;padding-top:12px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:15px}
.ref-actions {display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 0}
.ref-review-title,.ref-review-head {display:flex;align-items:center;justify-content:space-between;gap:15px}
.ref-totals {display:grid;grid-template-columns:repeat(3,1fr);background:#e8eee1;border-block:1px solid #b8c7b1;margin:22px 0 26px}
.ref-totals>div {padding:15px clamp(9px,3vw,34px)}
.ref-totals>div+div {border-left:1px solid #c6d1be}
.ref-totals span {display:block;font-size:15px}
.ref-totals b {font:600 38px/1.35 Georgia,serif;color:var(--ink)}
.ref-totals>div:nth-child(2) b {color:#945433}
.ref-totals>div:nth-child(3) b {color:#6d6557}
.ref-review-head {margin:0 0 9px}
.ref-review-head span,.ref-review-row small {font-size:14px;color:#536658}
.ref-review-row {border-top:1px solid #ccd4c2;background:#fffdf4}
.ref-review-row:last-of-type {border-bottom:1px solid #ccd4c2}
.ref-review-row summary {display:grid;grid-template-columns:55px 119px minmax(0,1fr) 14px;gap:12px;align-items:center;padding:12px 16px}
.ref-review-row summary:after {content:'⌄';color:#657d68;justify-self:end}
.ref-review-row[open] summary:after {transform:rotate(180deg)}
.ref-review-row[open] summary {background:#edf1e5}
.ref-review-row>div {padding:12px clamp(12px,3vw,32px)}
.ref-status {font-size:14px;color:#306b54}
.ref-status.ref-wrong {color:#995638}.ref-status.ref-missed {color:#695e50}
@media(max-width:760px){
  .ref-lab {width:calc(100% - 28px);font-size:15px;margin:17px auto 36px}
  .ref-posts {grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0 12px}
  .ref-post {gap:2px;padding:3px}.ref-post strong {font-size:14px;padding:2px 6px}.ref-station-icon {width:min(100%,110px)}
  .ref-posts {background:#e9eee0}
  .ref-brief {grid-template-columns:1fr}.ref-start {border-left:0;border-top:1px solid #ccd7c4}
  .ref-mast {font-size:14px}.ref-mast i {margin:0 6px}
  .ref-field .ref-decisions {grid-template-columns:repeat(2,minmax(0,1fr))}
  .ref-review-head {align-items:baseline;flex-wrap:wrap;gap:3px}
  .ref-review-row summary {grid-template-columns:50px 1fr 13px;gap:3px;padding:10px}
  .ref-review-row summary span {grid-column:1 / 3}.ref-review-row summary:after {grid-column:3;grid-row:1}
}
@media(prefers-reduced-motion:reduce){.ref-meter i {transition:none}}
