/* ===========================================================================
   BOUT SCOUT — ODDS BOARD (redesign, 2026-08-23)
   Ported from the Claude Design project "Redesigning Bout-Scout.com",
   file "Bout Scout Odds Board - Live.dc.html".

   THREE DELIBERATE DEPARTURES FROM THE MOCKUP, each with a reason:

   1. MOBILE FIRST. The mockup is a fixed 1480px desktop canvas with a static
      178px sidebar. Standing owner rule: most visitors are on a phone and
      every screen is checked at 375px before it ships. So this file is built
      the other way up — the phone layout is the base, and the mockup's canvas
      is what it grows into at >=1080px. Nothing about the design is lost;
      it is reached by media query instead of being the starting point.

   2. TIER COLOURS COME FROM config/tiers.json, NOT FROM THIS FILE. The mockup
      hardcodes amber/purple/blue/steel, which happens to be the real ramp
      shifted one step (its T4 amber is the config's T3). Standing brand rule:
      the ramp lives in config and reaches CSS only as --tc / --tcd, so a
      retune moves every surface at once. Never reintroduce a colour ramp here.

   3. SYSTEM FONTS, NO CDN. The mockup pulls Archivo + JetBrains Mono from
      Google Fonts. The site's rule is system stacks only (no third-party
      requests, and load time here has been fought for). --mono already
      prefers a local JetBrains Mono when the visitor has it, so the mono
      texture the design leans on survives wherever it actually exists.

   Green (--accent) still only ever means OUR number; the book is --booknum
   grey. The one sanctioned exception is the wordmark, where green is the
   brand signature — see templates/_brand.html.
   =========================================================================== */

/* ===========================================================================
   TYPOGRAPHY (owner pick, 2026-08-24: Inter Tight, site-wide).

   WHY THIS REPLACED THE HELVETICA NEUE STACK. Helvetica Neue only ships on
   Apple devices — every Windows and Android visitor silently fell through to
   Arial, so the 2026-08-23 "sharper" pick was never seen by most of the
   audience. Inter Tight is SELF-HOSTED, so the face is identical on every
   platform. It is a tighter-fitting Inter: highest x-height of the faces
   trialled, so names and the two headline figures read larger at the same px
   without growing the layout — which is the recognition-speed rule doing the
   choosing, not taste.

   STILL NO CDN. The files are served from bout-scout.com, not Google Fonts —
   no third-party request, no third-party cookie, nothing that can go down
   independently of us. Latin is 44KB and loads always; latin-ext is 88KB and
   is gated by unicode-range, so it is fetched only if a glyph above U+00FF
   actually appears (no fighter name in the DB currently has one). Licensed
   SIL OFL 1.1 — the licence ships beside the fonts in static/fonts/OFL.txt.

   font-display: swap is deliberate: the first paint uses the fallback stack
   rather than showing nothing, because a board that is late is worse than a
   board that reflows once.

   Set on :root and body so the whole site moves together; board.css loads
   after style/theme/phase2, so this wins without touching those files.
   =========================================================================== */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 800;      /* variable — one file covers every weight used */
  font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
                 U+2C60-2C7F, U+A720-A7FF;
}
:root {
  /* Helvetica Neue stays in the stack as the pre-swap fallback and the
     belt-and-braces path if the woff2 ever 404s after a bad deploy. */
  --disp: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* the two headline figures share the display face, tightened further:
     big numerals carry negative tracking better than text does */
  --num: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body { font-family: var(--disp); }

/* ---- board-local palette: the mockup's slightly deeper, cooler ground ---- */
.bd {
  --bd-bg:    #080b11;
  --bd-panel: #0b1017;
  --bd-line:  #16202b;   /* structural hairline */
  --bd-line2: #22303d;   /* emphasis rule (section heads) */
  --bd-line3: #101922;   /* faintest — inside dense tables */
  --bd-text:  #e8edf2;
  --bd-soft:  #9aa7b4;
  --bd-muted: #8b98a6;
  --bd-dim:   #6f7d8b;
  --bd-bright:#cbd4dd;
  --bd-pad: 16px;
  color: var(--bd-text);
}
@media (min-width: 720px)  { .bd { --bd-pad: 22px; } }
@media (min-width: 1080px) { .bd { --bd-pad: 28px; } }

/* =========================================================================
   THE WORDMARK — the name in text, wearing the logo's own letter colours.
   B(light) OUT(green) SC(light) OUT(green). See templates/_brand.html.
   ========================================================================= */
.bs-wm { font-weight: 700; letter-spacing: .06em; white-space: nowrap;
         line-height: 1; }
.bs-wm-l { color: var(--bd-text, #e8edf2); }
.bs-wm-g { color: var(--accent); }
.bs-wm-sp { display: inline-block; width: .28em; }
.bs-wm--mono .bs-wm-l, .bs-wm--mono .bs-wm-g { color: inherit; }
/* on a light/!dark surface the light half must not vanish */
.bs-wm--onbrand .bs-wm-l { color: var(--bd-text, #e8edf2); }

/* =========================================================================
   PAGE FRAME
   ========================================================================= */
/* NO overflow-x here. A `clip`/`visible` pair makes the visible axis compute
   to `auto`, which would silently turn the board into its own scroll
   container. The real fixes are the shrinkable grid tracks and wrapping
   labels above; this element stays a plain block. */
.bd { background: var(--bd-bg); min-height: 100%; max-width: 100%; }
.bd a { color: inherit; text-decoration: none; }
.bd a:hover { color: var(--accent); }
.bd :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px;
                     border-radius: 3px; }

/* =========================================================================
   EVENT SECTIONS
   ========================================================================= */
.bd-body { padding: 0 var(--bd-pad); }
.bd-ev { display: flex; align-items: baseline; justify-content: space-between;
         gap: 10px; flex-wrap: wrap;
         padding: 24px 0 9px; border-bottom: 1px solid var(--bd-line2); }
.bd-ev-n { font-weight: 700; font-size: 18px; letter-spacing: -.022em;
           min-width: 0; overflow-wrap: anywhere; }
/* Wraps between facts, never inside one — see the spans in odds.html. A single
   nowrap run overflowed the viewport once the line-freshness fact was added. */
.bd-ev-m { font: 400 11px var(--mono); color: var(--bd-muted);
           white-space: normal; min-width: 0; }
.bd-ev-m > span { white-space: nowrap; }
.bd-ev-m .on { color: var(--accent); }
@media (min-width: 720px) { .bd-ev-n { font-size: 21px; } }

/* =========================================================================
   THE CALL — the page's hero unit.
   Phone: one column, stacked in priority order (who / the two numbers /
   the chart). Desktop: the mockup's three-part row.
   ========================================================================= */
.bd-call { border-left: 3px solid var(--tc, var(--bd-dim));
           border-bottom: 1px solid var(--bd-line);
           padding: 18px 0 20px 14px;
           display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
/* tablet: who spans the top, the chart and the numbers share the row below */
@media (min-width: 860px) {
  .bd-call { grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
             align-items: end; column-gap: 24px; padding-left: 20px; }
  .bd-who  { grid-column: 1 / -1; }
}
/* the mockup's canvas: who | chart | numbers, one row, bottom-aligned */
@media (min-width: 1440px) {
  .bd-call { grid-template-columns:
               minmax(300px, 1fr) minmax(0, 360px) minmax(0, 400px);
             column-gap: 26px; }
  .bd-who  { grid-column: auto; }
}

/* ---- who ---- */
.bd-who { min-width: 0; }
.bd-tag { display: flex; align-items: baseline; gap: 9px; }
.bd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tc);
          box-shadow: 0 0 9px var(--tc); flex: 0 0 7px;
          position: relative; top: -1px; }
.bd-tag-t { font: 500 11px var(--mono); letter-spacing: .16em; color: var(--tc);
            min-width: 0; overflow-wrap: anywhere; }
.bd-name { font-weight: 700; font-size: 27px; line-height: 1.06;
           letter-spacing: -.025em; margin-top: 6px;
           overflow-wrap: break-word; hyphens: none; }
.bd-over { font-size: 15px; color: #7d8a99; margin-top: 2px; overflow-wrap: anywhere; }
.bd-over a { color: var(--bd-soft); text-decoration: underline;
             text-decoration-color: #3c4652; text-underline-offset: 4px; }
.bd-meta { font-size: 14px; color: #7d8a99; margin-top: 8px; }
.bd-meta b { color: var(--bd-text); font-weight: 600; }
.bd a.bd-see { font: 500 12px var(--mono); letter-spacing: .12em; color: var(--accent);
          white-space: nowrap; }
@media (min-width: 560px) { .bd-name { font-size: 33px; } }

/* ---- the two numbers + the edge chip ---- */
/* TWO HALVES THAT MUST MATCH EXACTLY.
   Grid, not flex: 1fr 1fr guarantees the halves are the same width whatever
   the numbers inside them are, so the edge chip sits on a true centre line.
   Both halves carry the same three rows (value / source / label) at the same
   line-heights and margins, so their baselines align by construction rather
   than by a tuned margin — which is what went wrong before. */
.bd-nums { display: grid; grid-template-columns: 1fr 1fr;
           align-items: stretch;
           border: 1px solid var(--bd-line); border-radius: 12px;
           overflow: hidden; position: relative; background: var(--bd-panel); }

.bd-num { text-align: center; padding: 18px 8px 16px; min-width: 0; }
.bd-num.ours { background: linear-gradient(180deg, rgba(0,229,160,.07), rgba(0,229,160,.015));
               border-right: 1px solid var(--bd-line);
               padding-right: 34px; padding-left: 8px; }
.bd-num.book { padding-left: 34px; padding-right: 8px; }
.bd-num-v { font-family: var(--num); font-weight: 700; font-size: 34px;
            line-height: 1; letter-spacing: -.035em;
            font-variant-numeric: tabular-nums; }
.bd-num.ours .bd-num-v { color: var(--accent); }
.bd-num.book .bd-num-v { color: var(--booknum); }
/* fixed line-height on the source row is what keeps the two labels level */
.bd-num-sig { margin-top: 9px; font-size: 14px; line-height: 1; height: 14px; }
.bd-num-sig--book { font: 700 12px var(--mono); letter-spacing: .1em;
                    color: var(--booknum); }
.bd-num-l { font: 500 10px var(--mono); letter-spacing: .12em; color: var(--bd-dim);
            margin-top: 9px; line-height: 1; }
/* Only the chip clearance needs easing on a phone now. The label tracking used
   to be squeezed here as well, because "BOOK'S % TO WIN" broke onto a ragged
   second line at 375px — both labels are simply "% TO WIN" since the halves
   were made symmetric, so the tracking stays consistent at every width. */
@media (max-width: 559px) {
  .bd-num.ours { padding-right: 26px; }
  .bd-num.book { padding-left: 26px; }
  /* The signal strip wraps on a phone, and a divider that lands at a line
     break is left dangling with nothing after it. Drop the rules and let the
     row gap separate the readings instead. */
  .bd-sep { display: none; }
  .bd-foot { gap: 4px 10px; }
}
@media (min-width: 400px) { .bd-num-v { font-size: 40px; } }

/* the edge chip, floating on the seam */
.bd-edge { position: absolute; left: 50%; top: 50%;
           transform: translate(-50%, -50%);
           background: #101820; border: 1.5px solid var(--tc);
           border-radius: 12px; box-shadow: 0 0 20px var(--tcd, transparent);
           padding: 8px 11px; text-align: center; }
.bd-edge-v { font-family: var(--num); font-weight: 700; font-size: 19px;
             line-height: 1; letter-spacing: -.03em; color: var(--tc);
             font-variant-numeric: tabular-nums; }
.bd-edge-l { font: 500 9px var(--mono); letter-spacing: .16em; color: var(--bd-dim);
             margin-top: 3px; }

/* ---- the move chart ---- */
.bd-track { min-width: 0; }

.bd-track svg { display: block; margin-top: 6px; width: 100%; height: auto;
                max-width: 460px; }
/* the chart is a small-multiple, not a banner: past ~460px it stops
   reading as a trend and starts reading as empty space */
.bd-foot { max-width: 460px; }
.bd-foot { display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
           border-top: 1px solid var(--bd-line2); padding-top: 9px; margin-top: 2px; }
.bd-sig { width: 5px; height: 5px; flex: 0 0 5px; }
.bd-sig-t { font: 700 11px var(--mono); letter-spacing: .14em; white-space: nowrap; }
.bd-sep { width: 1px; height: 11px; background: var(--bd-line2); }
.bd-foot-m { font: 400 11px var(--mono); letter-spacing: .05em; color: var(--bd-muted);
             white-space: nowrap; }
/* line-movement readings — toward us is green, away is neutral, never alarming */
.mv-in  .bd-sig { background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.mv-in  .bd-sig-t { color: var(--accent); }
.mv-out .bd-sig { background: var(--bd-dim); box-shadow: 0 0 7px var(--bd-dim); }
.mv-out .bd-sig-t { color: var(--bd-dim); }
.mv-flat .bd-sig { background: var(--bd-dim); }
.mv-flat .bd-sig-t { color: var(--bd-dim); }

/* =========================================================================
   NO-CALL TABLE — the rest of the card, quiet and dense.
   Phone: name over numbers. Desktop: the mockup's 3-column grid.
   ========================================================================= */
.bd-rest { padding: 16px 0 4px; }
.bd-rest-h { font: 500 10px var(--mono); letter-spacing: .14em; color: var(--bd-muted);
             padding-bottom: 8px; border-bottom: 1px solid var(--bd-line); }
.bd-row { display: grid; grid-template-columns: 1fr auto auto;
          gap: 4px 12px; align-items: baseline;
          padding: 9px 0; border-bottom: 1px solid var(--bd-line3);
          font: 400 13px var(--mono); }
.bd-row:last-child { border-bottom: 0; }
.bd-row-n { color: var(--bd-bright); min-width: 0; overflow-wrap: anywhere;
            font-family: inherit; }
.bd-row-n .vs { color: var(--bd-dim); }
.bd-row-n .nodata { color: var(--bd-dim); font-size: 11px; white-space: nowrap; }
.bd-row-v { text-align: right; white-space: nowrap;
            font-variant-numeric: tabular-nums; }
.bd-row-v .s { color: var(--accent); }
.bd-row-v .b { color: var(--booknum); }
.bd-row-v .x { color: var(--bd-dim); }
.bd-row-go { text-align: right; color: var(--bd-dim); }

/* =========================================================================
   BOTTOM STRIP — record / coming up / how to read
   ========================================================================= */
.bd-strip { display: flex; flex-direction: column;
            border-top: 1px solid var(--bd-line); margin-top: 22px; }
@media (min-width: 900px) { .bd-strip { flex-direction: row; } }
.bd-cell { flex: 1; padding: 18px var(--bd-pad) 20px; min-width: 0;
           border-bottom: 1px solid var(--bd-line); }
@media (min-width: 900px) {
  .bd-cell { border-bottom: 0; border-left: 1px solid var(--bd-line); }
  .bd-cell:first-child { border-left: 0; }
}
.bd-cell-h { font: 500 10px var(--mono); letter-spacing: .14em; color: var(--bd-muted); }
.bd-rec { display: flex; justify-content: space-between; align-items: baseline;
          gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bd-line3);
          font: 400 12px var(--mono); }
.bd-rec:last-of-type { border-bottom: 0; }
.bd-rec-t { color: var(--tc); }
.bd-rec-v { color: var(--bd-bright); text-align: right; }
.bd-rec-v .up { color: var(--accent); }
.bd-rec-v .dn { color: var(--red); }
.bd-rec-v .lv { color: var(--bd-dim); }
.bd a.bd-more { display: inline-block; font: 500 11px var(--mono); letter-spacing: .12em;
           color: var(--accent); margin-top: 12px; }
.bd-next { margin-top: 8px; display: flex; flex-direction: column; font-size: 14px; }
.bd-next a { padding: 9px 0; border-bottom: 1px solid var(--bd-line3);
             color: var(--bd-bright); }
.bd-next a:last-child { border-bottom: 0; }
.bd-next .m { color: var(--bd-dim); font: 400 11px var(--mono); white-space: nowrap; }
.bd-read { font-size: 13px; color: var(--bd-soft); line-height: 1.55; margin-top: 10px; }

/* ---- footer ---- */
.bd-legal { display: flex; justify-content: space-between; align-items: baseline;
            gap: 10px; flex-wrap: wrap;
            padding: 14px var(--bd-pad) 28px;
            border-top: 1px solid var(--bd-line);
            font: 400 10px var(--mono); letter-spacing: .1em; color: var(--bd-dim); }

/* ---- empty state ---- */
.bd-empty { padding: 40px var(--bd-pad); text-align: center; color: var(--bd-muted); }
.bd-empty h2 { font-size: 18px; color: var(--bd-text); margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  .bd * { transition: none !important; animation: none !important; }
}

/* ---- LOW CONFIDENCE (longshot) calls -------------------------------------
   Owner rule: these rest on a sub-30% read, are always staked 1 unit, and are
   kept out of the tier record on purpose. The old board dimmed them; without
   that they are indistinguishable from a real tier call at a glance, which is
   the one thing they must never be. */
.bd-call.is-longshot { border-left-style: dashed; }
.bd-call.is-longshot .bd-dot { box-shadow: none; opacity: .6; }
.bd-call.is-longshot .bd-name { color: var(--bd-bright); }
.bd-lsnote { margin-top: 8px; font-size: 13px; line-height: 1.5;
             color: var(--bd-muted); max-width: 46ch;
             border-left: 2px solid var(--bd-line2); padding-left: 10px; }

/* A broken engine must announce itself, not hide behind an empty board. */
.bd-alert { margin: 14px var(--bd-pad) 0; padding: 12px 14px; border-radius: 10px;
            border: 1px solid #7a4a12; background: rgba(255,176,46,.09);
            color: var(--bd-bright); font-size: 14px; line-height: 1.5; }
.bd-alert b { color: var(--amber); font-weight: 700; }

/* ---- 'while you were away' strip + line-flip tags (2026-08-23) ----------
   Market information, so it wears the book's grey — green stays reserved
   for Bout Scout's own number, per the brand rule. The strip is hidden
   until odds.html's script finds mid-tier-or-better moves updated since
   this browser's last visit. */
.bd-moves { margin: 14px var(--bd-pad) 0; padding: 12px 14px; border-radius: 10px;
            border: 1px solid #22303d; background: rgba(139,152,166,.07); }
.bd-moves-h { font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
              color: #8b98a6; margin-bottom: 6px; }
.bd-moves-row { font-family: var(--mono); font-size: 12px; line-height: 1.7;
                color: var(--bd-bright); }

/* One idea, two sizes: the full chip on a call card, the mini on a rest row.
   A fighter who opened as the dog and is now favoured is worth a label
   wherever the bout appears (owner brief §9.3 — threshold pending owner
   confirmation, config/market_read.json line_flip). */
.bd-flipchip { font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
               color: var(--bd-bright); border: 1px solid #3a4a5c;
               border-radius: 6px; padding: 3px 8px; display: inline-block;
               margin: 6px 0 0; background: rgba(139,152,166,.10); }
.bd-flipmini { font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
               color: #8b98a6; border: 1px solid #3a4a5c; border-radius: 5px;
               padding: 1px 5px; margin-left: 8px; vertical-align: 1px; }

/* =========================================================================
   THE CHART'S HEADER ROW (2026-08-23)

   What used to live here was the identity row and the tier ladder. Both were
   deleted on 2026-08-24 together with the markup that used them: the board
   opens on a fight now, and the header rules from the design before that went
   in the same sweep. The reasoning is at the top of templates/odds.html.
   Do not bring a masthead back.
   ========================================================================= */

/* ---- the chart's own header row: label left, span right, both flush ---- */
.bd-trk-h { display: flex; align-items: baseline; justify-content: space-between;
            gap: 10px; max-width: 460px; margin-bottom: 8px; }
.bd-trk-h span { font: 500 9px/1.3 var(--mono); letter-spacing: .15em;
                 color: var(--bd-muted); text-transform: uppercase;
                 min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bd-trk-h span + span { white-space: nowrap; color: var(--bd-dim); }
/* the header row now owns the space the old margin was making */
.bd-track svg { margin-top: 0; }

/* The book we are actually betting against. Grey, because it is the book's
   number and green may only ever mean ours; the brand name is the only part
   set in a heavier weight, so the eye lands on WHO before WHAT.

   IT IS A BORDERED CHIP, NOT PLAIN TEXT, and that is load-bearing. The strip
   hides its dividers below 560px (a divider stranded at a line break dangles
   with nothing after it), which is right when the readings wrap onto their own
   lines — but when they happen to fit on ONE line the row gap is all that
   separates them, and "32c SINCE OPEN BEST AT BetOnline +200" reads as a
   single run-on. Its own outline separates it at every width without bringing
   the dangling divider back, and it makes the book a distinct object to find
   at a glance rather than more grey text in a row of grey text. */
.bd-foot-book { border: 1px solid var(--bd-line); border-radius: 999px;
                padding: 3px 9px; line-height: 1; white-space: nowrap; }
.bd-foot-book b { font-weight: 700; color: var(--booknum); letter-spacing: .06em; }
