/* Model ranks charts, rivalry panel, SCOR_EST table, Accuracy.
   One slice of the page's stylesheet. The files load in the order of their numbers (the <link> list in
   web/site_template.html) and several rules rely on that order at equal specificity: never reorder or merge
   them without running tests/layout_check.js. */
button.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
button.linkish:hover { text-decoration: underline; }
.rk-t td.pb { font-weight: 700; }
.hist-scroll { overflow-x: auto; max-width: 100%; }
/* the Model charts' colors are the page's: the closing line --score (blue), this model --turn (orange), other models
   --line-strong; text on a fill is --on-accent (01-tokens.css) */
.mr-cap { margin: 0 0 10px; max-width: 900px; }
.mr-card { padding: 8px 0; }
.mr-svg { display: block; font-family: var(--f-body); }
.mr-svg .mr-h { font: 600 11px var(--f-display); fill: var(--ink); letter-spacing: 0.03em; }
.mr-svg .mr-hs, .mr-svg .mr-n { font-size: 11px; fill: var(--muted); }
.mr-svg .mr-g { stroke: var(--line); stroke-width: 1; }
.mr-svg .mr-l { fill: none; stroke-width: 1.5; cursor: pointer; }
.mr-svg .mr-stub { stroke-dasharray: 2 3; }
.mr-svg .mr-t { font-size: 12.5px; fill: var(--ink); cursor: pointer; }
.mr-svg .mr-d, .mr-svg .mr-a { cursor: pointer; stroke: var(--surface); stroke-width: 1.5; }
.mr-svg .mr-a { fill: var(--surface); stroke-width: 2; }
.mr-svg .mr-dn { font-size: 11px; font-weight: 700; fill: var(--on-accent); pointer-events: none; }
.mr-svg .mr-l.mr-oth { stroke: var(--line-strong); opacity: 0.55; } .mr-svg .mr-d.mr-oth { fill: var(--line-strong); } .mr-svg .mr-a.mr-oth { stroke: var(--line-strong); }
.mr-svg .mr-l.mr-ref { stroke: var(--line-strong); stroke-dasharray: 5 4; opacity: 0.8; } .mr-svg .mr-d.mr-ref { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; } .mr-svg .mr-a.mr-ref { stroke: var(--line-strong); }
.mr-svg .mr-l.mr-line { stroke: var(--score); stroke-width: 3; } .mr-svg .mr-d.mr-line { fill: var(--score); }  .mr-svg .mr-t.mr-line { fill: var(--score); font-weight: 700; }
.mr-svg .mr-dn.mr-sel { fill: var(--surface); }
.mi-m { fill: var(--line-strong); opacity: 0.75; stroke: var(--surface); stroke-width: 1; }
.mi-o { fill: var(--turn); stroke: var(--surface); stroke-width: 2; } .mi-l { fill: var(--score); stroke: var(--surface); stroke-width: 2; }
.mi-mark { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.mi-bins { display: grid; gap: 8px; margin: 6px 0 8px; }
.mi-bin { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.mi-bl { color: var(--ink); font-weight: 600; }
.mi-bars { display: grid; gap: 3px; }
.mi-bar { display: flex; align-items: center; gap: 6px; height: 14px; }
.mi-bar span { display: block; height: 100%; border-radius: 0 3px 3px 0; min-width: 2px; }
.mi-bar span.c-line { background: var(--score); } .mi-bar span.c-model { background: var(--turn); }
.mi-bar em { font-style: normal; font-size: 12px; color: var(--muted); }
.sg-svg { max-width: 560px; margin: 0 auto; }
.sg-wrap { position: relative; max-width: 560px; margin: 0 auto; touch-action: none; cursor: crosshair; }
.sg-lens { position: absolute; width: 190px; height: 190px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); background: var(--surface); box-shadow: 0 6px 18px rgba(0,0,0,0.25); pointer-events: none; z-index: 5; }
.sg-lens > svg { position: absolute; max-width: none; margin: 0; }
.sg-g { stroke: var(--line); stroke-width: 1; }
.sg-dl { fill: none; stroke: var(--score); stroke-width: 0.8; opacity: 0.45; }
.sg-dm { stroke: var(--turn); stroke-width: 0.8; opacity: 0.4; fill: none; }
.sg-line { stroke: var(--score); stroke-width: 2.4; fill: none; }
.sg-ours { stroke: var(--turn); stroke-width: 2.4; fill: none; }
.sg-line, .sg-ours, .sg-beat { paint-order: stroke; filter: drop-shadow(0 0 1.5px var(--surface)) drop-shadow(0 0 1.5px var(--surface)); }
.sg-beat { stroke: var(--ink); stroke-width: 2; fill: none; }
.sg-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 0 0 8px; }
.sg-zero { stroke: var(--ink); stroke-width: 2.2; }
.sg-svg text.sg-z0 { font-weight: 700; fill: var(--ink); font-size: 13px; }
.sg-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin: 2px 0 8px; justify-content: center; }
.sg-key i { display: inline-block; width: 18px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
.sg-key b { font-weight: 700; margin-right: 6px; } .sg-key .k-ring { color: var(--score); } .sg-key .k-plus { color: var(--turn); }
.sg-key .k-line { border-color: var(--score); } .sg-key .k-ours { border-color: var(--turn); } .sg-key .k-beat { border-color: var(--ink); border-top-width: 2.5px; }
.pg { margin-bottom: 14px; }
.pg-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; margin: 8px 0; }
.pg-k { font-size: 13px; font-weight: 600; color: var(--ink); }
.pg-track { position: relative; height: 30px; background: var(--bg); border-radius: 4px; }
.pg-seg { position: absolute; top: 0; height: 100%; display: flex; align-items: center; overflow: hidden; border-radius: 4px; }
.pg-seg b { font-size: 12.5px; padding: 0 8px; white-space: nowrap; color: var(--on-accent); }
.pg-fav { background: var(--score); } .pg-dog { background: var(--muted); }   /* --muted: the fill under text passes with --on-accent */
.pg-miss { background: var(--ink); } .pg-miss b { color: var(--surface); }
.pg-miss.pg-l { border-radius: 4px 0 0 4px; justify-content: flex-start; } .pg-miss.pg-r { border-radius: 0 4px 4px 0; justify-content: flex-end; opacity: 0.8; }
.pg-mid { position: absolute; top: -6px; bottom: -6px; border-left: 3px solid var(--score); z-index: 2; } .pg-ours { background: var(--turn); }
.pg-50 { position: absolute; top: -4px; bottom: -4px; border-left: 2px dashed var(--ink); z-index: 2; }
.pg-be { border-left-style: dotted; }
.pg-half { background: color-mix(in srgb, var(--score) 45%, var(--surface)); } .pg-half b { color: var(--ink); }
.pg-dots { background: var(--bg); }
.pg-dot { position: absolute; top: 9px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line-strong); border: 1.5px solid var(--surface); opacity: 0.85; }
.pg-scale { position: relative; height: 16px; margin: 2px 0 0 160px; font-size: 12px; color: var(--muted); }
.pg-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; } .pg-scale span:first-child { transform: none; } .pg-scale span:last-child { transform: translateX(-100%); }
.pg-note { font-size: 13px; color: var(--ink); margin: 6px 0 0 160px; }
/* rivalry units ("Four parts" panel): each team's color; offense full, defense a lighter shade */
.rv-osu { --tc: #bb0000; } .rv-mich { --tc: #00274c; } .rv-tenn { --tc: #e07000; } .rv-bama { --tc: #9e1b32; } .rv-utah { --tc: #cc0000; } .rv-byu { --tc: #002e5d; } .rv-fsu { --tc: #782f40; } .rv-mia { --tc: #f47321; } .rv-x { --tc: #5a6776; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rv-osu { --tc: #ef4b45; } :root:not([data-theme="light"]) .rv-mich { --tc: #6c9be0; } :root:not([data-theme="light"]) .rv-tenn { --tc: #ff9a33; } :root:not([data-theme="light"]) .rv-bama { --tc: #d75a72; } :root:not([data-theme="light"]) .rv-utah { --tc: #f0574f; } :root:not([data-theme="light"]) .rv-byu { --tc: #6f9ad6; } :root:not([data-theme="light"]) .rv-fsu { --tc: #c2637a; } :root:not([data-theme="light"]) .rv-mia { --tc: #ff8f4d; } }
:root[data-theme="dark"] .rv-osu { --tc: #ef4b45; } :root[data-theme="dark"] .rv-mich { --tc: #6c9be0; } :root[data-theme="dark"] .rv-tenn { --tc: #ff9a33; } :root[data-theme="dark"] .rv-bama { --tc: #d75a72; } :root[data-theme="dark"] .rv-utah { --tc: #f0574f; } :root[data-theme="dark"] .rv-byu { --tc: #6f9ad6; } :root[data-theme="dark"] .rv-fsu { --tc: #c2637a; } :root[data-theme="dark"] .rv-mia { --tc: #ff8f4d; }
.rv-game { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
.rv-game h3 { font: 600 12px var(--f-display); letter-spacing: 0.02em; margin: 0 0 2px; color: var(--ink); }
.rv-row { display: grid; grid-template-columns: 150px 1fr 230px; align-items: center; gap: 10px; margin: 3px 0; }
.rv-k { font-size: 12.5px; color: var(--ink); } .rv-k b { font-weight: 600; }
.rv-tr { position: relative; height: 20px; background: var(--bg); border-radius: 3px; }
.rv-band { position: absolute; top: 4px; bottom: 4px; border-radius: 3px; background: color-mix(in srgb, var(--tc) 30%, var(--surface)); }
.rv-def .rv-band { background: color-mix(in srgb, var(--tc) 14%, var(--surface)); }
.rv-wh { position: absolute; top: 50%; height: 0; border-top: 2px solid var(--tc); opacity: 0.75; }
.rv-wh::before, .rv-wh::after { content: ""; position: absolute; top: -6px; height: 10px; border-left: 2px solid var(--tc); }
.rv-wh::before { left: 0; } .rv-wh::after { right: 0; }
.rv-def .rv-wh, .rv-def .rv-wh::before, .rv-def .rv-wh::after { border-color: color-mix(in srgb, var(--tc) 55%, var(--surface)); }
.rv-tick { position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px; background: var(--ink); border-radius: 1px; z-index: 2; }
.rv-cap { color: var(--score); }
.rv-math { font-variant-numeric: tabular-nums; margin-top: 2px; } .rv-math-k { font-size: 12px; color: var(--muted); margin-top: 6px; }
.rv-key { font-size: 12px; } .rv-v.rv-key { white-space: normal; }   /* the key wraps in its column; it set the page 60 px too wide at 1440 */
.rv-act { position: absolute; top: 50%; width: 11px; height: 11px; margin: -6px 0 0 -6px; background: var(--tc); transform: rotate(45deg); border: 2px solid var(--surface); z-index: 3; }
.rv-v { font-size: 12px; color: var(--muted); white-space: nowrap; }
.rv-axis { position: relative; height: 14px; font-size: 12px; color: var(--muted); }
.rv-axis span { position: absolute; transform: translateX(-50%); }
.rv-zero { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line-strong); }
.rv-margin { font-size: 12.5px; color: var(--ink); margin: 4px 0 0 160px; }
@media (max-width: 760px) { .rv-row { grid-template-columns: 1fr; gap: 1px; } .rv-v { white-space: normal; } .rv-margin { margin-left: 0; } .rv-axis-k { display: none; } }
@media (max-width: 560px) { .rv-lg { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rv-band { background: color-mix(in srgb, var(--tc) 50%, var(--surface)); } :root:not([data-theme="light"]) .rv-def .rv-band { background: color-mix(in srgb, var(--tc) 32%, var(--surface)); } }
:root[data-theme="dark"] .rv-band { background: color-mix(in srgb, var(--tc) 50%, var(--surface)); } :root[data-theme="dark"] .rv-def .rv-band { background: color-mix(in srgb, var(--tc) 32%, var(--surface)); }

@media (max-width: 560px) { .pg-row { grid-template-columns: 1fr; gap: 2px; } .pg-scale, .pg-note { margin-left: 0; } }
.mr-svg .mr-v { font-size: 12px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.mr-svg .mr-v.mr-line { fill: var(--score); font-weight: 700; }
.mr-svg .mr-lrow { fill: var(--score); opacity: 0.07; }
.mr-svg .mr-sep { stroke: var(--line-strong); stroke-width: 1; }
.mr-svg .mr-l.mr-sel { stroke: var(--ink); stroke-width: 3; } .mr-svg .mr-d.mr-sel { fill: var(--ink); } .mr-svg .mr-a.mr-sel { stroke: var(--ink); } .mr-svg .mr-t.mr-sel { font-weight: 700; }
.mr-svg .mr-l.mr-ours { stroke: var(--turn); stroke-width: 3.5; } .mr-svg .mr-d.mr-ours { fill: var(--turn); } .mr-svg .mr-a.mr-ours { stroke: var(--turn); } .mr-svg .mr-t.mr-ours { fill: var(--turn); font-weight: 700; }
.est-t th, .est-t td { padding-left: 6px; padding-right: 6px; }
.est-t td { font-size: 13.5px; }
tr.binh td { background: var(--bg); font-weight: 600; border-top: 2px solid var(--ink); }
.acc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 18px; }
.acc-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.acc-tile .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.acc-tile .v { font: 600 22px var(--f-display); color: var(--ink); line-height: 1.2; }
.acc-tile .s { font-size: 12px; color: var(--muted); }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 14px; margin-bottom: 14px; }
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; min-width: 0; }
.acc-grid .acc-card { margin-bottom: 0; }
.acc-card h2, .acc-card h3 { font: 600 13px var(--f-display); letter-spacing: 0.03em; text-transform: uppercase; margin: 0 0 4px; color: var(--ink); }
.acc-sub { font-size: 0.85rem; color: var(--muted); margin: 2px 0 6px; }
.acc-x { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 0 0 4px; }   /* a chart's x axis title, under it */
.acc-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink); margin: 2px 0 4px; }
.acc-leg span { display: inline-flex; align-items: center; gap: 6px; }
.acc-leg .sw { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.acc-svg.acc-sc { max-width: 680px; margin: 0 auto; }
.acc-svg { width: 100%; height: auto; display: block; font-family: var(--f-body); }
.acc-svg .ag { stroke: var(--line); stroke-width: 1; }
.acc-svg .ag.ag-m { opacity: 0.5; }
.acc-svg .at { font-size: 11px; fill: var(--muted); }
.acc-svg .ae { font-size: 11.5px; fill: var(--ink); font-weight: 600; }
.acc-svg .al { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.acc-svg .ad { stroke: var(--surface); stroke-width: 2; }
.acc-svg .al.c-line, .acc-leg .sw.c-line { stroke: var(--score); background: var(--score); }
.acc-svg .al.c-model, .acc-leg .sw.c-model { stroke: var(--turn); background: var(--turn); }
.acc-leg .sw.c-raw { stroke: var(--line-strong); background: var(--line-strong); }
.acc-svg .ad.c-line { fill: var(--score); } .acc-svg .ad.c-model { fill: var(--turn); }
.acc-svg .apt { fill: var(--score); opacity: 0.18; }
.acc-svg .aband { fill: var(--score); opacity: 0.08; }
.acc-svg .adiag { stroke: var(--ink); stroke-width: 1.5; }
