/* Error analysis, Accuracy rows, Rank history, Rank gaps.
   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. */
/* Error analysis */
.er-svg { width: 100%; height: auto; display: block; font: 11px var(--f-body, sans-serif); }
.er-wrap { overflow-x: auto; } @media (max-width: 760px) { .er-svg { min-width: 720px; } }
.er-svg .ax { stroke: var(--line-strong); } .er-svg .gr { stroke: var(--line); } .er-svg text { fill: var(--muted); }
.er-svg .ref { stroke: var(--ink); stroke-dasharray: 4 3; } .er-svg .be { stroke: var(--ink); stroke-dasharray: 1 3; }
.er-svg .bm { fill: var(--turn); } .er-svg .dl { fill: var(--score); stroke: var(--surface); stroke-width: 1.5; }
.er-svg text.v { fill: var(--ink); font-weight: 600; } .er-svg text.vi { fill: var(--on-accent); font-weight: 600; } .er-svg text.rl { fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; } .er-svg .bm:hover { opacity: 0.8; }
/* Error analysis: the colors of "Bars" and "Dots" in its notes */
.rb-up { color: var(--score); } .rb-dn { color: var(--turn); }
.acc-vgrp { font: 600 12px var(--f-body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 14px 0 -4px; }
.acc-svg .al.dash { stroke-dasharray: 7 4; }
.acc-leg .sw.c-line.dash { background: repeating-linear-gradient(90deg, var(--score) 0 5px, transparent 5px 8px); } .acc-leg .sw.c-model.dash { background: repeating-linear-gradient(90deg, var(--turn) 0 5px, transparent 5px 8px); }
.acc-vrow { display: grid; grid-template-columns: 150px 1fr 230px; align-items: center; gap: 10px; margin: 10px 0; font-size: 13px; }
@media (max-width: 640px) { .acc-vrow { grid-template-columns: 110px 1fr; gap: 4px 10px; } .acc-vrow .acc-vval { grid-column: 2; } }
.acc-vname { color: var(--ink); } .acc-vval { color: var(--muted); }
.acc-vbar { display: flex; height: 22px; border-radius: 4px; overflow: hidden; background: var(--bg); }
.acc-vbar span { display: block; height: 100%; }
.acc-vbar .un { background: var(--line); margin-left: 2px; }
.acc-vbar .c-line { background: var(--score); } .acc-vbar .c-model { background: var(--turn); }

.hist-svg { display: block; font-family: var(--f-body); }
.hist-svg .hh { font: 600 12px var(--f-display); fill: var(--ink); text-anchor: middle; letter-spacing: 0.02em; }
.hist-svg .hs { font-size: 11px; fill: var(--muted); text-anchor: middle; }
.hist-svg .hr { font-size: 11px; fill: var(--muted); font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.hist-svg .hg { stroke: var(--line); stroke-dasharray: 1 4; }
.hist-svg .hb { fill: var(--bg); stroke: var(--line); }
.hist-svg path { fill: none; }
.hist-svg .hl-in { stroke: var(--score); stroke-width: 2; opacity: 0.55; }
.hist-svg .hl-out { stroke: var(--line-strong); stroke-width: 1; opacity: 0.22; }
.hist-svg .hl-me { stroke: var(--turn); stroke-width: 3.5; }
.hist-svg .hp-in { fill: var(--score); }
.hist-svg .hp-avg { fill: var(--surface); stroke: var(--score); stroke-width: 2; }
.hist-svg .hl-avg { stroke: var(--line-strong); stroke-width: 1; opacity: 0.35; stroke-dasharray: 3 3; }
.hist-svg .hp-out { fill: var(--line-strong); opacity: 0.55; }
.hist-svg .hp-me circle { fill: var(--turn); }
.hist-svg .hp-me text { font: 700 11px var(--f-body); fill: var(--on-accent); text-anchor: middle; }
.hist-svg .hn { font-size: 12px; fill: var(--ink); cursor: pointer; }
.hist-svg .hn.me { font-weight: 700; fill: var(--turn); }
.hist-svg .hn .hc { fill: var(--muted); font-size: 11px; font-weight: 400; }
.hist-svg g.ht { cursor: pointer; }
.hist-svg g.ht:hover .hl-in, .hist-svg g.ht:hover .hl-out { stroke: var(--ink); stroke-width: 2.5; opacity: 0.9; }
/* Rank gaps (Dec 1 evening): Rank history's lines and dots placed by value. Every FBS team: the top 25 of a column (or a
   picked conference's teams) in blue, the rest thin and gray; the chosen line orange. The line under the pointer is
   lifted in ink, its dot ringed, and a small label names it; the average team (0) a little stronger than the other
   guides */
.hist-svg .gp-zero { stroke: var(--line-strong); stroke-width: 1.2; }
.hist-svg .gl-f { stroke: var(--line-strong); stroke-width: 1; opacity: 0.3; }
.hist-svg .gd-f { fill: var(--line-strong); opacity: 0.4; }
.hist-svg .gp-med { fill: var(--turn); }
.hist-svg.gp-conf .hl-in { opacity: 0.9; }
.hist-svg.gp-ph .hn { font-size: 11px; }
.hist-svg g.ht.hov .hl-in, .hist-svg g.ht.hov .gl-f { stroke: var(--ink); stroke-width: 2.5; opacity: 1; }
.hist-svg g.ht.hov .hp-in, .hist-svg g.ht.hov .gd-f { fill: var(--ink); opacity: 1; }
.hist-svg .gp-hv { fill: none; stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.gp-svg { touch-action: pan-x pan-y; }
.gp-wrap { position: relative; }
.gp-tip { position: absolute; z-index: 2; pointer-events: none; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); color: var(--ink); font-size: 12px; line-height: 1.35; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.gp-tip span { color: var(--muted); font-size: 11px; }

/* Rank history and Rank gaps on the selector set (Dec 1, docs/REDESIGN.md): the Model pages' head, tiles and sections.
   A tile whose value is a team's or a conference's name is set smaller than a number, so a long name fits */
#hist, #gap { gap: 20px; min-width: 0; }
.md-tile-v .rk-nm { font-size: 1.6rem; line-height: 1.15; overflow-wrap: anywhere; }
@media (max-width: 640px) { .md-tile-v .rk-nm { font-size: 1.3rem; } }
/* 2020's place in a chart with seasons along it (Dec 3): a faint band, the year greyed (core/skip_calc.js ghostColSVG) */
svg .ygh rect { fill: var(--line); opacity: 0.4; }
svg .ygh text { fill: var(--muted); opacity: 0.75; font-size: 11px; text-anchor: middle; }
svg .ygh.hh-g text { font: 600 12px var(--f-display); letter-spacing: 0.02em; }
.yr-ghost td, .yr-ghost th, .yr-ghost > div { color: var(--muted); opacity: 0.75; font-style: italic; }
.yr-ghost td[colspan] { text-align: left; }
