/* CRYSTAL BRAWL — Phase 2 additions (rankings page + profile extras).
   New classes only (.rk-* rankings, .px-* profile extras); base look stays in
   style.css. Uses the existing command-center CSS variables throughout. */

/* ---------- /rankings ---------- */
.rk-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-tabs a {
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--dim); font: 600 11px var(--mono);
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.rk-tabs a:hover { color: var(--text); background: var(--panel2); }
.rk-tabs a.active {
  color: var(--accent); border-color: var(--accent); background: var(--accent-dim);
}
/* Phone: ONE swipeable row, not an eleven-row wall of pills. Thirteen
   divisions wrapped is a full screen of navigation before a single number
   (owner rule 2026-08-06: the data stays above the fold). */
@media (max-width: 860px) {
  .rk-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
             scroll-snap-type: x proximity; padding-bottom: 4px;
             /* Scroll affordance: the hidden scrollbar means nothing else on
                screen shows this row keeps going, so fade the trailing edge
                to signal it (audit finding, 2026-08-14). Both prefixes: no
                mask support == no fade, strip still scrolls fine either way. */
             -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
             mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .rk-tabs::-webkit-scrollbar { display: none; }
  .rk-tabs a { flex: 0 0 auto; scroll-snap-align: start; }
}

.rk-head { display: flex; align-items: baseline; justify-content: space-between;
           gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rk-updated { color: var(--dim); font: 11px var(--mono); }
.rk-rank { color: var(--dim); font-weight: 700; }
.rk-power { color: var(--accent); font-weight: 700; }
tr.rk-top td { background: var(--accent-dim); }
tr.rk-top .rk-rank { color: var(--accent); }

.rk-mv { font: 700 11px var(--mono); white-space: nowrap; }
.rk-mv.up { color: var(--accent); }
.rk-mv.down { color: var(--red); }
.rk-mv.flat { color: var(--dim); }
.rk-mv.new { color: var(--amber); border: 1px solid var(--amber);
             border-radius: 4px; padding: 1px 5px; font-size: 10px; }

.rk-empty p { color: var(--dim); margin-top: 8px; }

/* ---------- profile extras: record breakdown ---------- */
.px-recmeta { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 10px; }
.px-gym { font-size: 13.5px; line-height: 1.35; font-weight: 600; max-width: 520px; }

.px-mrow { display: grid; grid-template-columns: 92px 1fr 30px; gap: 8px;
           align-items: center; padding: 4px 0; }
.px-mlabel { color: var(--dim); font: 600 10.5px var(--mono);
             text-transform: uppercase; letter-spacing: .06em;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-mtrack { display: block; height: 6px; background: var(--panel2);
             border-radius: 3px; overflow: hidden; }
.px-mfill { display: block; height: 100%; border-radius: 3px; }
.px-mfill.win { background: var(--accent); }
.px-mfill.loss { background: var(--red); }
.px-mfill.org { background: var(--blue); }
.px-mnum { text-align: right; font-weight: 700; font-size: 13px; }

.px-careerlist { max-height: 430px; overflow-y: auto; margin-top: 6px; }
.px-careerlist th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.pill.px-ufc { color: var(--accent); border-color: var(--accent); }

/* ---------- profile extras: division context bars ---------- */
.px-bars { margin-top: 8px; }
.px-brow { display: grid; grid-template-columns: 170px 1fr 150px; gap: 12px;
           align-items: center; padding: 6px 0; border-bottom: 1px solid #161e2b; }
.px-brow:last-child { border-bottom: 0; }
.px-blabel { color: var(--dim); font: 600 10.5px var(--mono);
             text-transform: uppercase; letter-spacing: .08em; }
.px-btrack { position: relative; display: block; height: 8px;
             background: var(--panel2); border-radius: 4px; }
.px-bfill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 4px; }
.px-bfill.good { background: linear-gradient(90deg, #5ec9ff55, var(--accent)); }
.px-bfill.bad { background: linear-gradient(90deg, #ff3b5c55, var(--red)); }
.px-btick { position: absolute; top: -3px; width: 2px; height: 14px;
            background: var(--text); opacity: .55; border-radius: 1px; }
.px-bval { text-align: right; font-weight: 700; font-size: 13px; white-space: nowrap; }
.px-bavg { color: var(--dim); font: 400 11px var(--mono); margin-left: 4px; }

@media (max-width: 640px) {
  .px-brow { grid-template-columns: 110px 1fr 108px; gap: 8px; }
  .px-blabel { font-size: 9.5px; }
}

/* pro record leads; UFC record beside it, slightly smaller (owner rule 2026-08-05) */
.rec-ufc { font-size: .78em; color: var(--dim); font-weight: 600; letter-spacing: .02em; }

/* =====================================================================
   Fighter profile + search, restyled on the bs- band system (Group A).
   New .px-* additions only — everything above stays untouched so the
   rankings/prospects pages keep rendering exactly as before. Palette and
   type come from the existing vars; accent-glow literals match the ones
   already baked into theme.css. */

/* ---------- identity hero (fighter + search): the bs-hero, trimmed ---- */
/* Tightened 2026-08-06: the identity block is data (record, frame, finish
   rate) — it should not need most of a screen to say it. */
.px-hero { min-height: 0; padding: 40px 20px 34px; }
.px-hero .bs-ctarow { display: flex; justify-content: center; align-items: center;
                      gap: 12px; flex-wrap: wrap; }
.px-hero .bs-statstrip { margin-top: 30px; margin-bottom: 6px; }
.px-hero-rec {
  margin-top: 14px; color: var(--accent); text-shadow: 0 0 26px #5ec9ff33;
  font: 800 clamp(24px, 4vw, 40px)/1.25 var(--mono);
  font-variant-numeric: tabular-nums;
}
.px-hero .bs-herosearch { margin-top: 26px; }

/* ---------- the hero backdrop (owner ask 2026-08-09: "a photo of that
   fighter in the background, same style as the Contender Series") ----------
   Deliberately the SAME numbers as .dw-hero-photos: grayscale, ~16% opacity,
   masked so it dissolves downward into the page. It is atmosphere, never
   content — .bs-hero-shade sits above it and .bs-hero-inner above that, so
   the name, record and stat strip stay at full contrast on a phone outdoors.
   The photo is a ~1100px derivative (scripts/build_photo_derivatives.py), not
   the multi-megabyte Commons master. */
/* THE MASK LIVES ON THE LAYER, NOT THE IMAGE. The layer is inset -6% and the
   hero clips with overflow:hidden, so a fade measured against the image's own
   box lands off-screen and the portrait gets guillotined at the nav. Measured
   against the layer, the fade happens exactly across what the visitor sees. */
/* ONE mask, deliberately. A two-layer mask with mask-composite:intersect was
   rejected outright by the browser (computed mask-image resolved to `none`,
   so the portrait rendered with a hard crop at the nav). A single elliptical
   gradient does both jobs — dissolves the portrait's edges AND fades the top
   and bottom — and it is supported everywhere. */
.px-shot {
  display: flex; justify-content: center; align-items: flex-start;
  -webkit-mask-image: radial-gradient(58% 62% at 50% 52%, #000 22%, transparent 92%);
  mask-image: radial-gradient(58% 62% at 50% 52%, #000 22%, transparent 92%);
}
.px-shot img {
  height: 128%; width: min(540px, 82%); object-fit: cover; object-position: center 16%;
  opacity: .17; filter: grayscale(1) contrast(1.12) brightness(.92);
}
/* No lawful photo: a silhouette of how this fighter actually fights. Kept a
   touch fainter than a photo — flat vector art reads heavier than a
   photograph at the same opacity. */
.px-silhouette {
  opacity: .085; background-repeat: no-repeat; background-position: center 52%;
  background-size: min(380px, 58%) auto;
  /* same single-gradient mask as the photo — see the note on .px-shot for why
     a composited two-layer mask is not used here */
  -webkit-mask-image: radial-gradient(58% 62% at 50% 52%, #000 22%, transparent 92%);
  mask-image: radial-gradient(58% 62% at 50% 52%, #000 22%, transparent 92%);
}
/* ?v= is manual: CSS cannot call url_for, so unlike every other asset these
   three are not auto-cache-busted. BUMP IT whenever the artwork changes or
   returning visitors keep the old silhouette. v2 = the filled-pictogram
   redraw (the original linework read as scribble at hero opacity). */
.px-grappler { background-image: url("/static/img/style/grappler.svg?v=2"); }
.px-striker  { background-image: url("/static/img/style/striker.svg?v=2"); }
.px-balanced { background-image: url("/static/img/style/balanced.svg?v=2"); }
/* THE HEADSHOT (owner ask 2026-11-02): full colour and full contrast — unlike
   the faint backdrop it is content, the quickest way to know whose page this
   is. Square crop from scripts/find_photo_sets.py, shown as a circle. */
.px-headshot {
  display: block; width: 112px; height: 112px; margin: 0 auto 16px;
  border-radius: 50%; object-fit: cover; object-position: center 30%;
  border: 2px solid #5ec9ff55; box-shadow: 0 0 0 6px #5ec9ff10, 0 8px 28px #0008;
  background: var(--panel, #10151d);
}
/* the photographer's credit — mandatory for CC BY, kept out of the hero and
   parked with the rest of the fine print (owner's choice) */
.px-credit { max-width: 1000px; margin: 0 auto; padding: 0 16px;
             font: 500 11px var(--mono); color: #3f4a59; text-align: center; }
.px-credit a { color: #566476; border-bottom: 1px solid #232d3b; }
.px-credit a:hover { color: var(--dim); }
@media (max-width: 640px) {
  .px-headshot { width: 92px; height: 92px; margin-bottom: 12px; }
  .px-shot img { width: 92%; height: 112%; opacity: .14; }
  .px-silhouette { background-size: 76% auto; }
}

/* ---------- statistical profile: radar + career rates, side by side --- */
.px-duo { display: grid; gap: 14px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 860px) { .px-duo { grid-template-columns: 1fr 1fr; } }
.px-chartcard > .bs-kicker, .px-ratecard > .bs-kicker {
  display: block; color: var(--accent); margin-bottom: 16px; }
.px-chartcard svg { display: block; width: 100%; height: auto; }

/* ---------- identity chips in the hero --------------------------------
   Owner ask (2026-08-09): what kind of fighter this is must be visible before
   the visitor scrolls. Labels only up here; the numbers are one band down.
   Risk flags wear amber and sit at the same size as the strengths — a chin is
   the input to a KO prop and a profile that hid it would be advertising. */
.px-chiprow {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
  margin-top: 16px;
}
.px-chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent-dim);
  color: var(--accent); white-space: nowrap;
  font: 700 10.5px/1.25 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.px-chip.risk { border-color: var(--amber); background: #ffb02e18; color: var(--amber); }
/* neutral tone: a fighter with no earned trait still gets his best area named,
   and "Striker" beside a 46-of-100 rating is a description of where his game
   lives, not a compliment. Green would make it a claim it has not earned. */
.px-chip.base { border-color: var(--line); background: #131a26; color: var(--dim); }

/* ---------- the skill profile: chart first, list beside it ------------
   The radar used to be one of two equal half-width cards, which made the most
   informative object on the page the smaller of a pair. It is now the card. */
.px-dna { max-width: 1000px; margin: 0 auto; padding: 22px 20px 20px; }
.px-dnagrid { display: grid; gap: 6px 26px; align-items: center; }
@media (min-width: 800px) { .px-dnagrid { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); } }
.px-radarwrap svg { display: block; width: 100%; height: auto; }
.px-radar .shape { fill: url(#pxRadarFill); stroke-width: 2.2;
                   filter: drop-shadow(0 0 10px #5ec9ff38); }

.px-axes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.px-ax {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) 62px 38px;
  align-items: center; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid #141c28;
}
.px-ax:last-child { border-bottom: 0; }
.px-axname { font: 600 11px var(--mono); letter-spacing: .06em;
             text-transform: uppercase; color: var(--text); }
.px-axbar { height: 6px; border-radius: 3px; background: #16202d; overflow: hidden; }
.px-axbar i { display: block; height: 100%; border-radius: 3px;
              background: var(--dim); transition: width .5s ease; }
.px-axtier { font: 600 10px var(--mono); letter-spacing: .06em;
             text-transform: uppercase; color: var(--dim); text-align: right; }
.px-axpct { font: 700 13px var(--mono); font-variant-numeric: tabular-nums;
            color: var(--dim); text-align: right; }
.px-axpct sup { font-size: 8px; }
/* One colour ramp for the bar, the tier word and the radar vertex, so the eye
   learns it once. Green is earned, amber is a hole, grey is the middle. */
.px-ax[data-tier="Elite"]     .px-axbar i,
.px-ax[data-tier="Strong"]    .px-axbar i { background: var(--accent); }
.px-ax[data-tier="Above avg"] .px-axbar i { background: var(--blue); }
.px-ax[data-tier="Below avg"] .px-axbar i { background: var(--amber); }
.px-ax[data-tier="Weak"]      .px-axbar i { background: var(--red); }
.px-ax[data-tier="Elite"]     .px-axtier,
.px-ax[data-tier="Elite"]     .px-axpct  { color: var(--accent); }
.px-ax[data-tier="Strong"]    .px-axtier { color: var(--accent); opacity: .85; }
.px-ax[data-tier="Above avg"] .px-axtier { color: var(--blue); }
.px-ax[data-tier="Below avg"] .px-axtier { color: var(--amber); }
.px-ax[data-tier="Weak"]      .px-axtier { color: var(--red); }

/* ---------- analyst-tier skill bars — replaces px-axes when the fighter has
   analyst reads (radar stays the model's own numeric read either way; this
   is only ever the second column, never the chart itself). Same 4-column
   rhythm as .px-ax (name | bar | tier word | trailing control) so the two
   states don't visually jump when a fighter gains analyst coverage. ---------- */
.px-skillbars { display: flex; flex-direction: column; gap: 2px; }
.px-skillbar { border-bottom: 1px solid #141c28; }
.px-skillbar:last-child { border-bottom: 0; }
.px-skillbar summary {
  display: grid; grid-template-columns: 86px minmax(0, 1fr) 90px 16px;
  align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; list-style: none;
}
.px-skillbar summary::-webkit-details-marker { display: none; }
.px-skillbar summary .px-fchev { transition: transform .15s ease; color: var(--dim); font-size: 13px; }
.px-skillbar[open] summary .px-fchev { transform: rotate(90deg); }
.px-sbname { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.px-sbtrack { height: 6px; border-radius: 3px; background: #16202d; overflow: hidden; }
.px-sbtrack i { display: block; height: 100%; border-radius: 3px; background: var(--dim); transition: width .5s ease; }
.px-sbtierlbl { font: 700 11px var(--mono); letter-spacing: .05em; text-transform: uppercase;
                color: var(--dim); text-align: right; }

/* poor = red, decent/solid = neutral (no highlight), good = blue,
   very good/great = green, elite = accent — the accent stays reserved for
   the ceiling, same rule the rest of the site already follows. */
.px-skillbar[data-tier="not_good"] .px-sbtrack i,
.px-skillbar[data-tier="poor"]      .px-sbtrack i { background: var(--red); }
.px-skillbar[data-tier="good"]      .px-sbtrack i { background: var(--blue); }
.px-skillbar[data-tier="solid"]     .px-sbtrack i,
.px-skillbar[data-tier="very_good"] .px-sbtrack i,
.px-skillbar[data-tier="great"]     .px-sbtrack i { background: var(--green); }
.px-skillbar[data-tier="elite"]     .px-sbtrack i { background: var(--accent); }
.px-skillbar[data-tier="not_good"] .px-sbtierlbl,
.px-skillbar[data-tier="poor"]      .px-sbtierlbl { color: var(--red); }
.px-skillbar[data-tier="good"]      .px-sbtierlbl { color: var(--blue); }
.px-skillbar[data-tier="solid"]     .px-sbtierlbl,
.px-skillbar[data-tier="very_good"] .px-sbtierlbl,
.px-skillbar[data-tier="great"]     .px-sbtierlbl { color: var(--green); }
.px-skillbar[data-tier="elite"]     .px-sbtierlbl { color: var(--accent); }

.px-sbnone { display: grid; grid-template-columns: 86px minmax(0, 1fr) 90px 16px;
             align-items: center; gap: 10px; padding: 9px 0; opacity: .55; }
.px-sbnonelbl { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .05em;
                color: var(--dim); text-align: right; }

.px-sbbody { padding: 4px 0 12px 96px; }
.px-sbcaption { display: block; font-size: 11.5px; color: var(--dim); margin-bottom: 8px; }
.px-sbreads { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.px-sbreads li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; flex-wrap: wrap; }
.px-sbrtier { font: 700 10px var(--mono); text-transform: uppercase; letter-spacing: .04em;
              padding: 3px 7px; border-radius: 4px; background: #16202d; color: var(--dim); }
.px-sbrtier[data-tier="poor"], .px-sbrtier[data-tier="not_good"] { color: var(--red); }
.px-sbrtier[data-tier="good"] { color: var(--blue); }
.px-sbrtier[data-tier="solid"], .px-sbrtier[data-tier="very_good"], .px-sbrtier[data-tier="great"] { color: var(--green); }
.px-sbrtier[data-tier="elite"] { color: var(--accent); }
.px-sbrmeta { color: var(--dim); }
.px-sbrlink { color: var(--accent); text-decoration: none; font: 600 11px var(--mono); }
.px-sbrlink:hover { text-decoration: underline; }

/* ---------- phase tiles — the compact "little section underneath" ---------- */
.px-phasetiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px; margin-top: 16px; grid-column: 1 / -1;
}
.px-phasetile { border-radius: 8px; padding: 10px 12px; background: #131a26; border: 1px solid var(--line); }
.px-pt-name { display: block; font: 700 10px var(--mono); text-transform: uppercase;
              letter-spacing: .05em; color: var(--dim); margin-bottom: 5px; }
.px-pt-tier { display: block; font: 800 13px -apple-system, sans-serif; text-transform: capitalize; color: var(--text); }
.px-pt-reads { display: block; font: 600 10px var(--mono); color: var(--dim); margin-top: 3px; }
.px-pt-none { color: var(--dim); font-weight: 600; font-size: 11px; text-transform: none; }
.px-phasetile[data-tier="poor"], .px-phasetile[data-tier="not_good"] {
  background: linear-gradient(160deg, #ff3b5c1c, #131a26 70%); border-color: #ff3b5c44; }
.px-phasetile[data-tier="poor"] .px-pt-tier, .px-phasetile[data-tier="not_good"] .px-pt-tier { color: var(--red); }
.px-phasetile[data-tier="good"] { background: linear-gradient(160deg, #6b7dff18, #131a26 70%); border-color: #6b7dff44; }
.px-phasetile[data-tier="good"] .px-pt-tier { color: var(--blue); }
.px-phasetile[data-tier="solid"], .px-phasetile[data-tier="very_good"], .px-phasetile[data-tier="great"] {
  background: linear-gradient(160deg, #2ecc8420, #131a26 70%); border-color: #2ecc8444; }
.px-phasetile[data-tier="solid"] .px-pt-tier, .px-phasetile[data-tier="very_good"] .px-pt-tier, .px-phasetile[data-tier="great"] .px-pt-tier { color: var(--green); }
.px-phasetile[data-tier="elite"] { background: linear-gradient(160deg, #5ec9ff1c, #131a26 70%); border-color: #5ec9ff55; }
.px-phasetile[data-tier="elite"] .px-pt-tier { color: var(--accent); }

@media (max-width: 640px) {
  .px-skillbar summary, .px-sbnone { grid-template-columns: 62px minmax(0, 1fr) 72px 14px; gap: 6px; }
  .px-sbname { font-size: 10px; }
  .px-sbtierlbl, .px-sbnonelbl { font-size: 9.5px; }
  .px-sbbody { padding-left: 0; }
  .px-phasetiles { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
}

/* thin-tape caveat: amber, because it qualifies everything above it */
/* who is speaking on each spoke: one calm line under the chart, same
   voice as the rest of the card's captions */
.px-axsrc { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--dim); }
.px-trait.insider { border-left-style: double; }

.px-thin {
  margin-top: 18px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid #ffb02e33; background: #ffb02e0f;
  color: var(--amber); font-size: 12.5px; line-height: 1.5;
}

/* the chips again, this time with the number that earned them */
.px-traits {
  display: grid; gap: 10px; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.px-trait { padding: 10px 13px; border-radius: 10px;
            border: 1px solid var(--line); background: #0c121b;
            border-left: 3px solid var(--accent); }
.px-trait.risk { border-left-color: var(--amber); }
.px-trait.base { border-left-color: var(--line); }
.px-trait.base b { color: var(--dim); }
.px-trait b { display: block; color: var(--accent);
              font: 700 10.5px var(--mono); letter-spacing: .1em;
              text-transform: uppercase; }
.px-trait.risk b { color: var(--amber); }
.px-trait span { display: block; margin-top: 5px; color: var(--dim);
                 font-size: 12.5px; line-height: 1.45; }

/* career rates, demoted to a disclosure: evidence, not headline */
.px-ratesdrop { max-width: 1000px; margin: 14px auto 0; padding: 0; }
.px-ratesdrop > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; min-height: 44px; cursor: pointer; list-style: none;
}
.px-ratesdrop > summary::-webkit-details-marker { display: none; }
.px-ratesdrop > summary .bs-kicker { color: var(--accent); margin: 0; }
.px-ratesdrop > summary:hover, .px-ratesdrop > summary:focus-visible { background: #0f1720; }
.px-ratesdrop[open] > summary { border-bottom: 1px solid var(--line); }
.px-ratesdrop[open] > summary .px-fchev { transform: rotate(90deg); }
.px-ratesdrop .px-rates { padding: 6px 20px 16px; }
.px-rates { display: grid; }
.px-rate {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; padding: 10px 0; border-bottom: 1px solid #161e2b;
}
.px-rate:last-child { border-bottom: 0; }
.px-rate span { color: var(--dim); font-size: 13.5px; line-height: 1.4; }
.px-rate b { font: 700 16px var(--mono); font-variant-numeric: tabular-nums;
             white-space: nowrap; }

/* ---------- fight history: summary-first expandable rows -------------- */
.px-fights { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.px-fight { background: var(--panel); border: 1px solid var(--line);
            border-radius: 12px; overflow: hidden; }
.px-fight > summary {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px;
  align-items: center; padding: 18px 20px; min-height: 44px;
  cursor: pointer; list-style: none;
}
.px-fight > summary::-webkit-details-marker { display: none; }
.px-fight > summary:hover, .px-fight > summary:focus-visible { background: #0f1720; }
.px-fight[open] { border-color: var(--accent); }
.px-fight[open] > summary { border-bottom: 1px solid var(--line); }
.px-fmain { display: grid; gap: 5px; min-width: 0; }
.px-fopp { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.px-fopp a { font-size: clamp(16px, 2.4vw, 19px); font-weight: 650; line-height: 1.25; }
.px-fopp a:hover, .px-fopp a:focus-visible { color: var(--accent); }
.px-fsub { color: var(--dim); font: 12.5px var(--mono); line-height: 1.5; }
.px-fsub a { border-bottom: 1px dashed var(--line); }
.px-fsub a:hover, .px-fsub a:focus-visible { color: var(--text); border-bottom-color: var(--accent); }
.px-fchev { color: var(--dim); font: 700 22px/1 var(--mono); }
.px-fight[open] > summary .px-fchev { color: var(--accent); transform: rotate(90deg); }
.px-fight > summary:hover .px-fchev { color: var(--accent); }
.px-fbody { padding: 18px 20px 20px; }
.px-fstats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 14px 10px; text-align: center;
}
.px-fstat b { display: block; font: 700 18px/1.2 var(--mono);
              font-variant-numeric: tabular-nums; }
.px-fstat span { display: block; margin-top: 5px; color: var(--dim);
  font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.px-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; }
.px-act {
  display: inline-flex; align-items: center; min-height: 34px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--dim);
  font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .09em;
}
.px-act:hover, .px-act:focus-visible { color: var(--text); background: var(--panel2); }
.px-act.accent { color: var(--accent); border-color: var(--accent); }
.px-act.accent:hover, .px-act.accent:focus-visible { background: var(--accent-dim); color: var(--accent); }

/* ---------- insider info: dated analyst reads -------------------------
   Reuses .px-fight's own summary/body shell (same collapsible-row grammar as
   fight history) rather than a parallel card system. The only genuinely new
   pieces are the pick+confidence line, the tier chips, and the strength/
   weakness list — which itself reuses .px-trait from the skill profile so
   the amber-is-a-weakness convention stays a single rule on the whole page. */
.px-insiders { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.px-insider > summary { grid-template-columns: 1fr auto; }
.px-inshead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.px-inspick { font-size: clamp(16px, 2.4vw, 19px); font-weight: 650; line-height: 1.25; }
.px-inspick.win { color: var(--accent); }
.px-insover { font-weight: 500; color: var(--dim); }
.px-inconf {
  font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim);
}
.px-inconf.clear { color: var(--accent); border-color: #5ec9ff44; background: var(--accent-dim); }
.px-inconf.lean { color: var(--blue); border-color: #6b7dff44; background: #6b7dff14; }
.px-inconf.coinflip { color: var(--amber); border-color: #ffb02e44; background: #ffb02e14; }

.px-instiers { display: flex; gap: 8px; flex-wrap: wrap; }
.px-instier {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #0c121b;
  font: 12px var(--mono); text-transform: capitalize; color: var(--text);
}
.px-instier b {
  font: 700 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim);
}
.px-instier[data-tier="elite"], .px-instier[data-tier="great"] { color: var(--accent); }
.px-instier[data-tier="poor"], .px-instier[data-tier="not_good"] { color: var(--red); }
.px-instier.stale { opacity: .55; border-style: dashed; cursor: help; }
.px-instier.stale::after { content: "· carried over"; color: var(--dim); font-size: 10px; text-transform: none; }

/* ---- gap-fill reads: a SECOND analyst, kept visibly subordinate -----------
   138 MMA is the primary source. This band must never read as an equal second
   opinion, so it is quieter than the insider band above it: dimmer chrome, an
   explicit source name on every read, and a "deferred" state for the grades we
   threw away because he had already graded that phase. Recognition speed is a
   ranked priority here -- a reader must be able to tell in one glance which
   line came from whom. */
.px-instier.deferred { opacity: .45; border-style: dashed; cursor: help; }
.px-instier.deferred::after {
  content: "· deferred to 138"; color: var(--dim); font-size: 10px; text-transform: none;
}
.px-gapfill { border-left: 2px solid var(--line); }
.px-gapfill > summary .px-fsub { color: var(--dim); }
.px-insconflict {
  font: 700 10px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; cursor: help;
  color: var(--amber); border: 1px solid #ffb02e44; background: #ffb02e14;
}
.px-inssource { margin-top: 16px; font-size: 12.5px; }
.px-inssource a { color: var(--blue); text-decoration: none; }
.px-inssource a:hover { text-decoration: underline; }
/* Corroboration reads as SUPPORT, never as a competing value: the tier text it
   sits beside is still 138 MMA's grade, unchanged. Green because it strengthens;
   the contested marker is muted, not alarming, because the primary still wins. */
.px-sbconf {
  font: 700 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; margin-left: 8px; cursor: help;
  color: var(--accent); border: 1px solid #5ec9ff44; background: var(--accent-dim);
}
.px-sbdisp {
  font: 700 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; margin-left: 8px; cursor: help;
  color: var(--dim); border: 1px dashed var(--line);
}
.px-instier.confirms { border-color: #5ec9ff44; background: var(--accent-dim); cursor: help; }
.px-instier.confirms::after {
  content: "· supports 138"; color: var(--accent); font-size: 10px; text-transform: none;
}
/* One step apart is NOT agreement. "poor" next to "decent" badged as "2 sources
   agree" fails the ten-second test — a reader would take it as independent
   confirmation of a grade the two men did not actually both give. Muted, and
   worded as proximity rather than assent. */
.px-sbconf.near { color: var(--dim); border-color: var(--line); background: transparent; }
.px-insagree {
  font: 700 10px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; cursor: help;
  color: var(--accent); border: 1px solid #5ec9ff44; background: var(--accent-dim);
}
.px-sbsrc {
  font: 700 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; margin-left: 8px; cursor: help;
  color: var(--dim); border: 1px dashed var(--line);
}

.px-insevidence {
  margin-top: 14px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #0c121b;
  color: var(--dim); font-size: 12.5px; line-height: 1.55; font-style: italic;
}
.px-inssummary { margin-top: 14px; font-size: 14px; line-height: 1.68; color: var(--text); }
.px-instraits { margin-top: 16px; padding-top: 16px; }

.px-instags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.px-instag {
  font: 600 10px var(--mono); letter-spacing: .05em; text-transform: capitalize;
  color: var(--dim); background: #0c121b; border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 6px;
}

/* ---------- band footnotes + record-breakdown band -------------------- */
.px-note { max-width: 640px; margin: 34px auto 0; text-align: center;
           color: var(--dim); font-size: 12.5px; line-height: 1.7; }
.px-cardnote { color: var(--dim); font-size: 12px; margin-top: 10px; }
.bs-statstrip .bs-stat b.px-gym {
  font: 600 15px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); text-shadow: none; max-width: 420px; }
.px-methods { display: grid; gap: 14px; max-width: 1000px; margin: 34px auto 0; }
@media (min-width: 800px) { .px-methods { grid-template-columns: repeat(3, 1fr); } }
.px-methods .bs-kicker { display: block; color: var(--accent); margin-bottom: 12px; }
.px-careerfold { max-width: 1000px; margin: 14px auto 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.px-careerfold > summary {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  min-height: 44px; cursor: pointer; list-style: none;
  font: 700 11.5px var(--mono); text-transform: uppercase;
  letter-spacing: .16em; color: var(--dim);
}
.px-careerfold > summary::-webkit-details-marker { display: none; }
.px-careerfold > summary:hover, .px-careerfold > summary:focus-visible { color: var(--accent); }
.px-careerfold[open] { border-color: var(--accent); }
.px-careerfold[open] > summary { border-bottom: 1px solid var(--line); color: var(--accent); }
.px-careerfold[open] > summary .px-fchev { transform: rotate(90deg); color: var(--accent); }
.px-careerfold .px-careerlist { margin: 0; padding: 0 12px 12px; }

/* ---------- division context band ------------------------------------- */
.px-divcard { max-width: 860px; margin: 0 auto; padding: 26px 28px; }
.px-divcard .px-brow { padding: 9px 0; }

/* motion, gated exactly like the theme engine */
@media (prefers-reduced-motion: no-preference) {
  .px-fight, .px-fight > summary, .px-fchev, .px-act, .px-fopp a, .px-fsub a,
  .px-careerfold, .px-careerfold > summary {
    transition: border-color .25s, background .25s, color .25s, transform .25s; }
}

@media (max-width: 640px) {
  .px-hero { min-height: 0; padding: 28px 16px 26px; }
  .px-fight > summary { padding: 15px 14px; }
  .px-fbody { padding: 15px 14px 16px; }
  .px-fstats { grid-template-columns: repeat(3, 1fr); }
  .px-inshead { gap: 6px 10px; }
  .px-rate span { font-size: 12.5px; }
}
