/* =====================================================================================================================
   CERTY LOOK A ("Broadcast") — 00-base.css (lane L0): the shared primitives every lane builds with.
   docs/look/APP_LOOK.md §4-§8; the reference layer is look_ref.css (design scratch). LZ concatenates app/look/NN-*.css,
   in name order, into app/look.css, which app.html links after its inline <style> (so a look rule wins by order).
   RULES FOR EVERY PART
   - Every class is lk- (or a short child class INSIDE an lk- block, e.g. .lk-row .nm). No bare element selectors, no
     resets: the parts restyle the app one component at a time and must never touch markup that is not theirs.
   - TOKENS ONLY: no colour literal outside app.html's :root (team grounds arrive inline as --tc/--td, --ac/--ad/--hc/--hd
     from lkTeam()/lkPair()). mask-image alpha gradients are exempt (nobody sees their colour).
   - Corners are 0. The one shaped end is the lower third's diagonal cut, and a lower third is never a control.
   - Green = Certy (its own pre-game %, ONE green lower third per story card, a graded hit, coins won, brand chrome).
     Red = OUT / injury (a white cross on a red square + OUT) and a graded MISS (a white × on a red square + MISSED, C3
     11/09), never anything live. No yellow, no pills, no text you tap (icon controls carry a one-word caption).
   - Unbounded (--f-num, .lk-num) only at 24 px and up; smaller figures are .lk-fig. Text never under 11 px.
   - Motion = look.js (Web Animations, transform + opacity). A part's own CSS transition must be named in the reduced-motion
     block at the end of this file (pseudo-elements included: the app's global `*` reduced rule does not match them).
   ===================================================================================================================== */

/* ---------- type roles (CertyWide = Archivo with the wdth axis; CertyNum = Unbounded 900, digits only) ---------- */
.lk-cond{font-family:var(--f-disp);font-variation-settings:'wdth' 62;font-weight:900;text-transform:uppercase;line-height:.88;letter-spacing:-.004em}
.lk-std{font-family:var(--f-disp);font-variation-settings:'wdth' 100;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.lk-lab{font-family:var(--f-disp);font-variation-settings:'wdth' 112;font-weight:700;text-transform:uppercase;letter-spacing:.11em;font-size:11px;line-height:1.3}
.lk-wide{font-family:var(--f-disp);font-variation-settings:'wdth' 125;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.lk-num{font-family:var(--f-num);font-weight:900;letter-spacing:-.045em;line-height:.8;font-variant-numeric:tabular-nums;white-space:nowrap}
.lk-num .pc{font-size:.46em;letter-spacing:-.02em;vertical-align:.86em;margin-left:.04em}
.lk-num .pl{margin-left:.08em}
.lk-fig{font-family:var(--f-disp);font-variation-settings:'wdth' 100;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap}
.lk-body{font:450 13px/1.4 var(--f-body);letter-spacing:0;text-transform:none}
.lk-pct{color:var(--green)}                       /* Certy's own pre-game % only */
.lk-pct.q1no{color:var(--tx)}                     /* owner Q1 = no: Certy's % is white, green stays chrome-only */
.lk-dim{color:var(--tx2)}
.lk-green{color:var(--green)}

/* ---------- the one fitter (§5.1): look.js lkFit(), called from app.html's fitRows(). A .lk-fit box is one line; a run
   that does not fit shrinks (to 62%, never under 11 px), then wraps at a space or a hyphen. Never an ellipsis. ---------- */
.lk-fit{white-space:nowrap;overflow-wrap:normal;min-width:0}
.lk-nw{white-space:nowrap}                           /* look.js lkKeep(): a clock time or the helpline, kept on one line */
.lk-fit.lk-wrap{white-space:normal;overflow-wrap:break-word}

/* ---------- textures: stripes, the light sweep, grain (a baked PNG, no blend), vignette. Static; drift = lkDrift() ---------- */
.lk-tex{position:absolute;inset:0;pointer-events:none}
.lk-tex.st{background:var(--stripes)}
.lk-tex.sw{background:var(--sweep)}
.lk-tex.gr{background-image:var(--grain);background-size:160px 160px;opacity:.06}
.lk-tex.vg{background:var(--vign)}
.lk-tex.st.dr{left:-16px;right:-16px}            /* a stripes layer lkDrift() moves: 16 px wider, so no edge ever shows */

/* ---------- the lower third: a SQUARE tab butted to a WHITE bar with a diagonal cut end. Never a control, never inside one.
   Tab variants: green (Certy's story, ONE per story card) and black .t.k (format and section tags). ---------- */
.lk-l3{display:flex;align-items:stretch;min-height:28px;width:max-content;max-width:100%}
.lk-l3 .t{flex:none;display:flex;align-items:center;gap:6px;padding:0 9px 0 10px;background:var(--green);color:var(--ink);transform-origin:left center;
  font:900 12px/1 var(--f-disp);font-variation-settings:'wdth' 100;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.lk-l3 .t.k{background:var(--black);color:var(--tx)}
.lk-l3 .b{display:flex;align-items:center;gap:7px;min-width:0;padding:5px 22px 5px 10px;background:var(--paper);color:var(--on-paper);transform-origin:left center;
  clip-path:polygon(0 0,100% 0,calc(100% - 12px) 100%,0 100%);
  font:800 12px/1.15 var(--f-disp);font-variation-settings:'wdth' 112;letter-spacing:.09em;text-transform:uppercase}
.lk-l3 .b > span{min-width:0}
.lk-l3 .b img{height:18px;width:18px;object-fit:contain}
.lk-l3.lg{min-height:36px} .lk-l3.lg .t{font-size:15px;padding:0 12px} .lk-l3.lg .b{font-size:14px;padding:6px 28px 6px 12px;clip-path:polygon(0 0,100% 0,calc(100% - 15px) 100%,0 100%)}
.lk-l3.sm{min-height:24px} .lk-l3.sm .t,.lk-l3.sm .b{font-size:11px} .lk-l3.sm .b{padding:4px 18px 4px 9px}

/* ---------- section header: a 4 x 14 white marker, a wide label, a hairline, the count; wraps at narrow widths. No green. */
.lk-sec{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:24px 0 10px}
.lk-sec .h{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;margin:0;color:var(--tx);
  font:800 12px/1.2 var(--f-disp);font-variation-settings:'wdth' 112;letter-spacing:.1em;text-transform:uppercase}
.lk-sec .h::before{content:"";flex:none;width:4px;height:14px;background:var(--tx)}
.lk-sec .h::after{content:"";flex:1 1 12px;min-width:12px;height:1px;background:var(--edge)}
.lk-sec .n{flex:none;color:var(--tx2)}

/* ---------- team panels: a team colour deepened until white reads (lkTeam), stripes, the sweep, grain ---------- */
.lk-pan{--tc:var(--slate);--td:var(--slate-deep);position:relative;overflow:hidden;background:linear-gradient(160deg,var(--tc) 0%,var(--td) 72%,var(--ink) 100%);color:var(--on-panel)}

/* ---------- the matchup band (Home's hero, Today's game card, the landing): away | white edge | black time chip | white edge
   | home. The cut IS the chip's two white edges, so the time never covers it. Grounds from lkPair().style. ---------- */
.lk-band{--ac:var(--slate);--ad:var(--slate-deep);--hc:var(--slate);--hd:var(--slate-deep);position:relative;height:52px;overflow:hidden;background:var(--black)}
.lk-band .a,.lk-band .h{position:absolute;top:0;bottom:0;width:50%}
.lk-band .a{left:0;background:linear-gradient(100deg,var(--ac),var(--ad))}
.lk-band .h{right:0;background:linear-gradient(100deg,var(--hd),var(--hc))}
.lk-band .lg{position:absolute;top:50%;width:36px;height:36px;margin-top:-18px;object-fit:contain}
.lk-band .lg.l{left:12px} .lk-band .lg.r{right:12px}
/* .chip is ALSO the app's old rounded filter chip (border-radius:100px, a border, a fill, a press scale): inside a band
   every one of those is reset here, so the frames' markup can be used as it is and nothing reads as a pill */
.lk-band .chip,.lk-band .chip:active{position:absolute;left:50%;top:0;transform:translateX(-50%);display:grid;gap:0;padding:0;margin:0;
  align-items:stretch;justify-items:stretch;flex:none;
  border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;letter-spacing:normal;white-space:nowrap;transition:none;opacity:1}
.lk-band .chip > *{grid-area:1/1}
.lk-band .edge{background:var(--paper);clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%);margin:0 -3px}
.lk-band .mid{position:relative;z-index:1;display:flex;align-items:center;gap:8px;height:52px;padding:0 20px;background:var(--black);color:var(--tx);
  clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%);white-space:nowrap}
.lk-band .mid .k{font-size:21px;line-height:1;margin-top:2px}
.lk-band::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--band-rule)}

/* ---------- face tiles: the ESPN cut-out bottom-aligned with a fade; OUT greyscale on graphite; monogram fallback.
   C7 (11/09): plain team colour behind the face, no stripes (texture is for the hero story card only) ---------- */
.lk-ft{--tc:var(--slate);--td:var(--slate-deep);position:relative;flex:none;width:54px;height:62px;overflow:hidden;
  background:linear-gradient(165deg,var(--tc),var(--td))}
.lk-ft .f{position:absolute;left:50%;bottom:-1px;width:84px;max-width:none;height:auto;transform:translateX(-50%);
  -webkit-mask-image:linear-gradient(#000 80%,transparent 100%);mask-image:linear-gradient(#000 80%,transparent 100%)}
.lk-ft .mono{position:absolute;inset:0;display:grid;place-items:center;font-size:25px;color:var(--on-panel);padding-bottom:4px}
.lk-ft .tm{position:absolute;right:3px;bottom:3px;width:16px;height:16px;object-fit:contain}
.lk-ft.grey .f{filter:grayscale(1) contrast(1.05) brightness(.82)}
.lk-ft.grey{background:linear-gradient(165deg,var(--graphite),var(--graphite-deep))}
.lk-ft.sm{width:44px;height:50px} .lk-ft.sm .f{width:70px} .lk-ft.sm .mono{font-size:20px}
.lk-ft.xs{width:30px;height:34px} .lk-ft.xs .f{width:48px} .lk-ft.xs .mono{font-size:14px;padding:0} .lk-ft.xs .tm{display:none}

/* ---------- rows: the name in condensed caps; bet and meta in sentence case (read in bulk); short tags in wide caps ---------- */
.lk-row{position:relative;display:flex;align-items:center;gap:12px;min-height:74px;padding:6px 14px 6px 0;background:var(--surface);width:100%;color:var(--tx)}
.lk-row + .lk-row{margin-top:2px}
.lk-row .mid{flex:1;min-width:0}
.lk-row .nm{font-size:22px;line-height:.9;white-space:nowrap}
.lk-row .bet{margin-top:6px;font:650 13px/1.3 var(--f-body);color:var(--tx)}
.lk-row .meta{margin-top:2px;font:450 13px/1.35 var(--f-body);color:var(--tx2)}
.lk-row .rt{flex:none;display:flex;flex-direction:column;align-items:flex-end}
.lk-row .rt .lk-num{font-size:30px}
.lk-row .rt .src{margin-top:7px;line-height:1.35;color:var(--tx2);white-space:nowrap;text-align:right}
.lk-row .rt .src b{color:var(--tx);font-weight:800;margin-left:3px}
/* .rank is also the app's old rounded rank badge: its size, radius, fill and border are reset here */
.lk-row .rank{flex:none;display:block;width:30px;height:auto;margin-right:-4px;padding:0;border:0;border-radius:0;background:none;
  text-align:center;font-size:24px;color:var(--tx2)}
.lk-row.sel{box-shadow:inset 0 0 0 2px var(--tx)}
.lk-row.off .lk-ft,.lk-row.off .rt .lk-num{opacity:.45}          /* OUT: the face and number recede; the words stay AA */
.lk-row .tc{position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--tc)}
button.lk-row{border:0;font:inherit;text-align:left;cursor:pointer}
button.lk-row:focus-visible{outline:2px solid var(--tx);outline-offset:-2px}

/* ---------- marks: OUT = red square + WHITE cross (+ the word OUT in red on dark); hit = green square + ink check + HIT;
   miss = RED square + white × + MISSED, the same size as a hit (C3, 11/09: the × is a graphic, 3.3:1 on --red; the word
   sits on the dark ground); live = white square + LIVE (nothing is red while a game is live). Decorative marks are
   aria-hidden beside their word. ---------- */
.lk-med{display:inline-block;flex:none;width:16px;height:16px;background:var(--red);
  background-image:linear-gradient(var(--paper),var(--paper)),linear-gradient(var(--paper),var(--paper));background-repeat:no-repeat;
  background-size:4px 10px,10px 4px;background-position:center}
.lk-out{display:inline-flex;align-items:center;gap:6px;color:var(--red);font-size:15px;line-height:1}
.lk-out .lk-med{width:18px;height:18px;background-size:4px 11px,11px 4px}
.lk-hit,.lk-miss{display:inline-grid;place-items:center;width:26px;height:26px;flex:none}
.lk-hit{background:var(--green);color:var(--ink)} .lk-miss{background:var(--red);color:var(--paper)}
.lk-hit svg,.lk-miss svg{width:16px;height:16px}
/* a graded result as a pair (C2 / C3): the square over its word, HIT or MISSED, in wide caps on the dark ground */
.lk-res{flex:none;display:inline-flex;flex-direction:column;align-items:center;gap:4px;min-width:44px}
.lk-res .lk-rw{font:700 11px/1.2 var(--f-disp);font-variation-settings:'wdth' 112;letter-spacing:.11em;text-transform:uppercase;color:var(--tx);white-space:nowrap}
.lk-live{display:inline-flex;align-items:center;gap:6px;color:var(--tx)}
.lk-live::before{content:"";width:7px;height:7px;background:var(--tx)}

/* ---------- buttons: primary = a SQUARE white block, ink type, a trailing arrow; never a cut end, never butted to a tab ---------- */
.lk-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;padding:10px 16px;border:0;border-radius:0;
  background:var(--paper);color:var(--on-paper);cursor:pointer;
  font:800 13px/1.15 var(--f-disp);font-variation-settings:'wdth' 112;letter-spacing:.09em;text-transform:uppercase;text-align:left;text-decoration:none}
.lk-btn .ar{flex:none;width:18px;height:18px}
.lk-btn.full{display:flex;width:100%}
.lk-btn.ghost{background:transparent;color:var(--tx);box-shadow:inset 0 0 0 1.5px var(--outline)}
.lk-btn[disabled],.lk-btn[aria-disabled="true"]{background:var(--dim-fill);color:var(--tx2)}
.lk-btn:focus-visible{outline:2px solid var(--tx);outline-offset:2px}
.lk-btn .two{display:flex;flex-direction:column;gap:4px}
.lk-btn .two small{font:600 12px/1.2 var(--f-body);letter-spacing:0;text-transform:none;opacity:.78}
.lk-ibtn{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:0;border-radius:0;background:none;color:var(--tx);cursor:pointer}
.lk-ibtn svg{width:20px;height:20px}
.lk-ibtn:focus-visible{outline:2px solid var(--tx);outline-offset:-2px}

/* ---------- segmented control: square segments, a white block slides under the chosen one (--i, --n) ---------- */
.lk-seg{--n:3;--i:0;position:relative;display:flex;box-shadow:inset 0 0 0 1px var(--edge-hi)}
.lk-seg::before{content:"";position:absolute;top:0;bottom:0;left:0;width:calc(100% / var(--n));background:var(--paper);
  transform:translateX(calc(var(--i) * 100%));transition:transform var(--t-base) var(--e-snap)}
.lk-seg button{position:relative;flex:1 1 0;min-width:44px;min-height:44px;padding:0 6px;border:0;border-radius:0;background:none;color:var(--tx2);text-align:center;cursor:pointer;
  font:800 12px/1 var(--f-disp);font-variation-settings:'wdth' 112;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.lk-seg button[aria-selected="true"]{color:var(--on-paper)}
.lk-seg button:focus-visible{outline:2px solid var(--tx);outline-offset:-2px}
.lk-seg .s{display:none}
/* TOUCHDOWNS -> TDs (the full word stays in aria-label). look.js lkSegFit() (run by lkFit, so by fitRows after every render,
   on resize and on font loads) MEASURES the long label against its segment and sets .lk-long or .lk-short; the media query is
   only the fallback without look.js (FIX C2: at 360-389 px TOUCHDOWNS was 114 px in a 103 px room and spilled past the white
   block). The long label must leave 2 px of the segment on each side. */
@media (max-width:389px){ .lk-seg .l{display:none} .lk-seg .s{display:inline} }
.lk-seg.lk-long .l{display:inline} .lk-seg.lk-long .s{display:none}
.lk-seg.lk-short .l{display:none} .lk-seg.lk-short .s{display:inline}

/* ---------- the c. mark (end-of-view block, the ticker): Archivo 800, a square green dot ---------- */
.lk-cm{display:flex;align-items:baseline;font:800 30px/1 var(--f-body);letter-spacing:-.02em;color:var(--tx)}
.lk-cm i{display:inline-block;width:.17em;height:.17em;background:var(--green);margin-left:.06em}

/* ---------- empty states, the sandbox line, inputs, the 48 px checkbox row ---------- */
.lk-empty{position:relative;overflow:hidden;padding:26px var(--gut) 22px;background:var(--surface)}
.lk-empty .ghost{position:absolute;right:-10px;top:-14px;font-size:120px;color:var(--ghost)}
.lk-empty h3{margin:0;font-size:30px}
.lk-empty p{margin:8px 0 0;color:var(--tx2)}
.lk-sbx{display:flex;align-items:center;gap:8px;color:var(--tx2);font:500 13px/1.4 var(--f-body)}
.lk-sbx svg{flex:none;width:15px;height:15px}
.lk-in{display:block;width:100%;min-height:48px;padding:0 14px;background:var(--surface-2);color:var(--tx);border:0;border-radius:0;box-shadow:inset 0 0 0 1.5px var(--outline);font:500 16px/1 var(--f-body)}
.lk-in:focus-visible{outline:2px solid var(--tx);outline-offset:2px}
.lk-chk{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer}
.lk-chk input{appearance:none;-webkit-appearance:none;flex:none;width:22px;height:22px;margin:0;border-radius:0;box-shadow:inset 0 0 0 1.5px var(--outline);display:grid;place-items:center;cursor:pointer}
.lk-chk input:checked{background:var(--paper)}
/* checked: the ink check in the white square (an ink square read as indeterminate; critic C8) */
.lk-chk input:checked::after{content:"";width:6px;height:11px;margin-top:-3px;border:solid var(--on-paper);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.lk-chk input:focus-visible{outline:2px solid var(--tx);outline-offset:2px}

/* ---------- motion support (look.js). The odometer keeps the static number's line box: a .8em line, 1em windows pulled in
   by .1em (measured: the same ink box as the static number at 96 px). ---------- */
.lk-odo{display:inline-block;line-height:.8;height:.8em;white-space:nowrap}
.lk-odo-w,.lk-odo .lk-odo-s{display:inline-block;vertical-align:top;height:1em;margin-top:-.1em;line-height:1em}
.lk-odo-w{overflow:hidden}
.lk-odo-c{display:flex;flex-direction:column}
.lk-odo-c i{display:block;height:1em;line-height:1em;font-style:normal;text-align:center}
.lk-odo .pc{display:inline-block;vertical-align:top;font-size:.46em;line-height:1;margin-top:.04em;margin-left:.04em;letter-spacing:-.02em}
.lk-cover{position:absolute;inset:0;z-index:20;background:var(--bg);transform-origin:right center;transform:scaleX(0);pointer-events:none}
.lk-pass{position:absolute;top:-10%;bottom:-10%;left:0;width:34%;z-index:6;pointer-events:none;opacity:0;background:var(--pass)}
.lk-flash{position:absolute;top:0;bottom:0;left:0;width:40%;z-index:1;pointer-events:none;opacity:0;background:var(--flash)}
@keyframes lk-fade{from{opacity:0}to{opacity:1}}

/* ---------- reduced motion (§7.1, R11): every CSS transition the look owns is turned off BY NAME, pseudo-elements included
   (the app's `*{transition-duration:.01ms}` does not match ::before / ::after). A part that adds a transition adds its
   selector to BOTH lists. html.rm is the previews' switch. look.js checks the same two (lkReduced). ---------- */
@media (prefers-reduced-motion:reduce){
  .lk-seg::before,.lk-tabind,.lk-tabind::after,.lk-sports .bar{transition:none}
  .lk-anim{animation:lk-fade 120ms linear both}
}
html.rm .lk-seg::before,html.rm .lk-tabind,html.rm .lk-tabind::after,html.rm .lk-sports .bar{transition:none}
html.rm .lk-anim{animation:lk-fade 120ms linear both}
