/* Additions to the bio page that the design files did not have. Hand written;
   nsb-bio.css is generated from the design and must not be edited. */
.nsb .name-nick { margin: 14px 0 0; font: 500 15px var(--heading); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.nsb .hold-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.nsb .hold-pills span { padding: 6px 12px; border: 1px solid #9b6d24; background: #2d2110; color: #f3c76a; font: 600 11px var(--heading); letter-spacing: 1.6px; text-transform: uppercase; }
.nsb .face-dot, .nsb .tweener-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.nsb .face-dot { background: #8a9bb0; }
.nsb .tweener-dot { background: var(--gold); }
.nsb .result.draw { background: #1e1a26; border: 1px solid #5a4d66; color: #cbbfd6; }
.nsb .empty-note { padding: 26px 30px; color: var(--muted); font: 500 13px var(--heading); letter-spacing: 1.4px; text-transform: uppercase; }
.nsb .aff-row a, .nsb .legacy-track a { color: var(--pink); }
.nsb a.promo-card h3 { overflow-wrap: anywhere; }

.nsb .dossier { padding: 10px 0 70px; }
.nsb .dossier-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .nsb .dossier-grid { grid-template-columns: 1.2fr 1fr; } }
.nsb .dossier-card { border: 1px solid var(--line); background: #0c0812; padding: 26px 28px; }
.nsb .dossier-card .mini-heading { margin-bottom: 14px; }
.nsb .dossier-card .bio-text { color: #d6cbd9; line-height: 1.75; font-size: 16px; }
.nsb .dossier-card .bio-text p { margin: 0 0 1em; }
.nsb .dossier-card .bio-text a { color: var(--pink); }
.nsb .move-list { list-style: none; margin: 0; padding: 0; }
.nsb .move-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.nsb .move-list li:first-child { border-top: 0; padding-top: 0; }
.nsb .move-list strong { display: block; font: 600 17px var(--heading); letter-spacing: 1.4px; text-transform: uppercase; }
.nsb .move-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.nsb .move-group { margin: 22px 0 10px; font: 500 11px var(--heading); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.nsb .move-group:first-of-type { margin-top: 0; }
.nsb .redacted { display: inline; padding: 2px 6px; border: 0; background: #e9e0ec; color: #e9e0ec; font: inherit; line-height: 1.7; cursor: pointer; border-radius: 2px; text-align: left; }
.nsb .redacted.is-revealed { background: transparent; color: var(--white); cursor: default; padding: 0; }
.nsb .classified-note { margin: 0; font-size: 16px; line-height: 1.7; }
.nsb .track-list { display: grid; gap: 22px; }
.nsb .reign-list { margin: 8px 0 0; padding: 0; list-style: none; }
.nsb .reign-list li { padding: 5px 0; color: #cfc4d6; font-size: 14px; }
.nsb .reign-list li b { color: var(--white); font-weight: 600; }
.nsb .dossier .dossier-grid { margin-top: 34px; }
.nsb .dossier-grid > :only-child { grid-column: 1 / -1; }
.nsb .dossier-card .bio-text img { max-width: 100%; height: auto; }

/* The old site stylesheet gives every ".wrap" padding (2rem top, 4rem bottom, sides). The design's ".wrap" has none,
   so the bars and rows built on it came out far too thick. This puts it back to none. (:where keeps it from
   overriding the padding the design sets on specific blocks, such as the stats and promos.) */
:where(.nsb) .wrap { padding: 0; }

/* The pink band: the character's catchphrase, set large and spaced, between quotation marks. */
.nsb .band-quote { max-width: min(70%, 900px); text-align: center; font: 600 clamp(15px, 1.7vw, 22px)/1.25 var(--heading); letter-spacing: 0.16em; text-wrap: balance; }
.nsb .band-quote i { font-style: normal; font-size: 1.9em; line-height: 0; vertical-align: -0.26em; opacity: 0.55; margin: 0 0.12em; }
@media (max-width: 780px) { .nsb .band-content strong.band-quote { max-width: 100%; font-size: 14px; letter-spacing: 0.1em; } }

/* Basic Offense in the arsenal: plain text under the Signature Moves, line breaks kept. */
.nsb .basic-offense { margin: 0; white-space: pre-line; color: #cdbfcc; font-size: 15px; line-height: 1.7; }


/* IN-RING PROFILE: the compact classification block under the Official Profile list (ring_style_bio_html in includes/ring_style.php).
   Primary style gets the weight; secondary styles and specialties are small labels; the philosophy reads as a short scouting note. */
.nsb-ring { display: block; margin-top: 16px; padding: 14px 16px 16px; border: 1px solid #3a2236; border-left: 3px solid #ff2faf; background: rgba(255, 47, 175, .04); }
.nsb-ring-eyebrow { display: block; margin-bottom: 8px; font: 500 11px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .24em; color: #b79bb4; }
.nsb-ring-k { display: block; margin: 12px 0 5px; font: 500 10px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .22em; color: #8f7a8c; }
.nsb-ring-primary { display: block; font: 700 clamp(24px, 4vw, 32px)/1.05 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .06em; color: #ff2faf; }
.nsb-ring-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nsb-tag { display: inline-block; padding: 4px 9px; border: 1px solid #6b2b5e; color: #ffd0ea; font: 500 11px/1.2 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.nsb-tag.is-gold { border-color: #7d6428; color: #e4b84a; }
.nsb-ring-phil { margin: 0; padding-left: 12px; border-left: 2px solid #4b2b48; color: #e8dce6; font-style: italic; line-height: 1.55; }
.nsb-ring.is-pending { border-left-color: #6d5a2a; background: transparent; }
.nsb-ring-pend { display: block; font: 600 13px/1.2 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .2em; color: #e4b84a; }

/* TITANTRON ENTRANCE MONITOR + CINEMATIC EXPAND (markup: entrance_monitor_html() in includes/entrance.php, behaviour: assets/js/bio-entrance.js).
   A 16:9 monitor in the LEFT column of the biography header, with an EXPAND ENTRANCE button that opens a custom lightbox. For a biography that
   has one, the header carries only the file line, the name, any championship pills and the monitor (wrestler.php leaves out the role box, the
   nickname, "The Network Presents", the two buttons and the cast-id line; the nickname moves into the Official Profile card).
   WIDE SCREENS: the monitor sits under the name (up to 420px wide). The header's height follows its content and the portrait follows the header
   height, exactly as it does in every header: with this shorter set of items the monitor reaches the foot of the portrait and there is no gap under it.
   PHONES: the portrait is a faded backdrop anchored to the header's bottom edge, so there the header stacks text, portrait, monitor (slot b). The script
   measures the text and sets --tt-gap (how far under the text the monitor starts, i.e. just below where the portrait ends) and --tt-lift (everything
   that sits under the portrait: gap, monitor, bottom padding), which raises the portrait to the right place. The header is exactly as tall as that
   stack; nothing is added to it. */
.nsb .hero-inner.has-tt { --tt-lift: 270px; --tt-gap: 30px; }
/* the nickname sits ABOVE the name in a header that carries the Titantron. It adds about 31px (22px line + 18px above - the name's top margin
   going from 19px to 10px), so on wide screens the empty space under the monitor (the header's bottom padding) gives back the same 31px: the header
   does not get taller and the portrait does not change. */
.nsb .hero-copy .name-nick.is-above { margin: 18px 0 0; }
.nsb .hero-copy .name-nick.is-above + h1 { margin-top: 10px; }
@media (min-width: 781px) { .nsb .hero-inner.has-tt.has-nick .hero-copy { padding-bottom: 44px; } }
.nsb .nsb-tt { --tt-pink: #ff2faf; --tt-gold: #e4b84a; width: 420px; max-width: 100%; margin-top: 30px; box-sizing: border-box; }
.nsb .nsb-tt[data-slot="b"] { display: none; }
.nsb .nsb-tt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 22px; margin-bottom: 6px; font: 500 10px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .22em; color: #b79bb4; text-transform: uppercase; white-space: nowrap; }
.nsb .nsb-tt-id b { display: inline-block; margin-right: 6px; padding: 2px 5px; background: var(--tt-pink); color: #18061a; font-weight: 700; letter-spacing: .04em; }
.nsb .nsb-tt-live { display: inline-flex; align-items: center; gap: 6px; color: var(--tt-gold); }
.nsb .nsb-tt-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--tt-gold); animation: nsb-tt-pulse 2.6s ease-in-out infinite; }
@keyframes nsb-tt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.nsb .nsb-tt-frame { box-sizing: border-box; padding: 6px; border: 1px solid #6b2b5e; border-top: 2px solid var(--tt-pink); background: linear-gradient(180deg, #140a18, #0a050c); transition: border-color .25s ease, box-shadow .25s ease; }
.nsb .nsb-tt:hover .nsb-tt-frame, .nsb .nsb-tt:focus-within .nsb-tt-frame { border-color: var(--tt-gold); box-shadow: 0 0 0 1px rgba(228, 184, 74, .35); }
.nsb .nsb-tt-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #050205; cursor: pointer; }
.nsb .nsb-tt-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 34px rgba(0, 0, 0, .45); }
.nsb .nsb-tt-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; pointer-events: none; background: #000; }
.nsb .nsb-tt.is-live .nsb-tt-screen video, .nsb .nsb-tt.is-frame .nsb-tt-screen video { opacity: 1; }
.nsb .nsb-tt-standby { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 600 12px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .32em; color: #7a6479; text-align: center; background: radial-gradient(ellipse at 50% 60%, rgba(120, 30, 96, .22), transparent 70%); }
.nsb .nsb-tt-standby small { font-size: 9px; letter-spacing: .3em; color: #5d4a5c; }
.nsb .nsb-tt.is-live .nsb-tt-standby, .nsb .nsb-tt.is-frame .nsb-tt-standby { display: none; }
.nsb .nsb-tt-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 36px; padding-top: 6px; }
.nsb .nsb-tt-cap { font: 500 10px/1.2 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .2em; color: #a28ea0; text-transform: uppercase; }
.nsb .nsb-tt-expand { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 11px; height: 30px; border: 1px solid var(--tt-gold); border-radius: 0; background: transparent; color: var(--tt-gold); font: 600 11px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease; }
.nsb .nsb-tt-expand[hidden] { display: none; }
.nsb .nsb-tt-expand:hover { background: var(--tt-gold); color: #18061a; }
.nsb .nsb-tt-expand:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* phones: monitor under the buttons, full width of the column, portrait lifted by the monitor's height */
@media (max-width: 780px) {
  .nsb .nsb-tt[data-slot="a"] { display: none; }
  .nsb .nsb-tt[data-slot="b"] { display: block; width: 100%; max-width: 420px; margin-top: var(--tt-gap); }
  .nsb .hero-inner.has-tt .hero-art { bottom: var(--tt-lift); }
  .nsb .nsb-tt-foot { height: 48px; }
  .nsb .nsb-tt-expand { height: 40px; padding: 0 14px; }
  .nsb .nsb-tt-cap { font-size: 9px; }
}

/* the lightbox (built by the script the first time EXPAND ENTRANCE is used; it lives inside .nsb and is fixed over the whole page) */
html.nsb-tt-lock { overflow: hidden; }
.nsb .nsb-ttbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; overscroll-behavior: contain;
  background: radial-gradient(ellipse at 50% 28%, rgba(64, 20, 58, .55), rgba(6, 3, 6, .96) 68%), #060306; animation: nsb-ttbox-in .18s ease-out; }
.nsb .nsb-ttbox[hidden] { display: none; }
@keyframes nsb-ttbox-in { from { opacity: 0; } to { opacity: 1; } }
.nsb .nsb-ttbox-panel { width: min(100%, calc((100vh - 230px) * 16 / 9), 1280px); width: min(100%, calc((100dvh - 230px) * 16 / 9), 1280px); min-width: 0; }
.nsb .nsb-ttbox-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.nsb .nsb-ttbox-tag { font: 500 11px/1.2 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .26em; color: #b79bb4; text-transform: uppercase; }
.nsb .nsb-ttbox-tag b { display: inline-block; margin-right: 8px; padding: 2px 6px; background: #ff2faf; color: #18061a; font-weight: 700; letter-spacing: .04em; }
.nsb .nsb-ttbox-close { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; padding: 0 16px; border: 1px solid #e4b84a; border-radius: 0; background: rgba(6, 3, 6, .6); color: #e4b84a; font: 600 12px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease; }
.nsb .nsb-ttbox-close:hover { background: #e4b84a; color: #18061a; }
.nsb .nsb-ttbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.nsb .nsb-ttbox-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #000; border: 1px solid #6b2b5e; border-top: 2px solid #e4b84a; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.nsb .nsb-ttbox-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; background: #000; }
.nsb .nsb-ttbox-bottom { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.nsb .nsb-ttbox-name { margin: 0; font: 700 clamp(22px, 3.4vw, 40px)/1.05 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.nsb .nsb-ttbox-nick { margin: 4px 0 0; font: italic 400 15px/1.3 "DM Sans", system-ui, sans-serif; color: #e4b84a; }
.nsb .nsb-ttbox-ctl { display: flex; gap: 10px; }
.nsb .nsb-ttbox-ctl button { margin: 0; min-height: 44px; padding: 0 16px; border: 1px solid #6b2b5e; border-radius: 0; background: transparent; color: #f4eaf3; font: 500 12px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.nsb .nsb-ttbox-ctl button:hover { border-color: #ff2faf; background: rgba(255, 47, 175, .12); }
@media (max-width: 640px) {
  .nsb .nsb-ttbox { padding: 10px; align-items: center; }
  .nsb .nsb-ttbox-panel { width: 100%; }
  .nsb .nsb-ttbox-tag { font-size: 10px; letter-spacing: .18em; }
  .nsb .nsb-ttbox-ctl { width: 100%; } .nsb .nsb-ttbox-ctl button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .nsb .nsb-tt-live i, .nsb .nsb-ttbox { animation: none; }
  .nsb .nsb-tt-frame, .nsb .nsb-tt-screen video, .nsb .nsb-tt-expand, .nsb .nsb-ttbox-close, .nsb .nsb-ttbox-ctl button { transition: none; }
}

/* PROMO OF THE WEEK on a biography: a pill beside any championship pills, with a multiplier (x2, x3...) once they have won it more than once. */
.nsb .hold-pills .potw-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid #ff2faf; background: linear-gradient(135deg, rgba(255, 47, 175, .18), rgba(228, 184, 74, .14)); color: #ffe9a8; font: 600 11px var(--heading); letter-spacing: 1.6px; text-transform: uppercase; text-decoration: none; box-shadow: 0 0 18px rgba(255, 47, 175, .2); transition: border-color .2s, box-shadow .2s; }
.nsb .hold-pills .potw-pill .potw-trophy { flex: 0 0 auto; color: #e4b84a; }
.nsb .hold-pills .potw-pill b { font-weight: 600; }
.nsb .hold-pills .potw-pill i { font-style: normal; padding: 1px 7px; background: #e4b84a; color: #1b1304; font-weight: 700; letter-spacing: 1px; text-transform: none; }
.nsb .hold-pills .potw-pill:hover { border-color: #e4b84a; box-shadow: 0 0 22px rgba(228, 184, 74, .3); }
.nsb .hold-pills .potw-pill:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .nsb .hold-pills .potw-pill { transition: none; } }

/* MARKERS on a biography, under the championship / Promo of the Week pills: win or losing streak, comeback, defending, new arrival. Two to a row, up to four. */
.nsb .bio-marks { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; margin: 10px 0 0; max-width: 100%; }
.nsb .bio-mark { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid; font: 600 11px var(--heading); letter-spacing: 1.6px; text-transform: uppercase; cursor: default; }
.nsb .bio-mark .bio-mark-ico { flex: 0 0 auto; }
.nsb .bio-mark b { font-weight: 600; }
.nsb .bio-mark i { font-style: normal; padding: 1px 7px; font-weight: 700; letter-spacing: 1px; margin-left: auto; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsb .bio-mark.is-hot { border-color: #ff7a1a; background: linear-gradient(135deg, rgba(255, 122, 26, .22), rgba(255, 47, 47, .14)); color: #ffd2a8; box-shadow: 0 0 18px rgba(255, 122, 26, .25); }
.nsb .bio-mark.is-hot .bio-mark-ico { color: #ff9a3c; }
.nsb .bio-mark.is-hot i { background: #ff7a1a; color: #1b0c02; }
.nsb .bio-mark.is-cold { border-color: #5fb8ea; background: linear-gradient(135deg, rgba(95, 184, 234, .2), rgba(150, 120, 255, .12)); color: #cfeeff; box-shadow: 0 0 18px rgba(95, 184, 234, .22); }
.nsb .bio-mark.is-cold .bio-mark-ico { color: #8fd3ff; }
.nsb .bio-mark.is-cold i { background: #5fb8ea; color: #04131d; }
.nsb .bio-mark.is-comeback { border-color: #a78bfa; background: linear-gradient(135deg, rgba(167, 139, 250, .22), rgba(255, 47, 175, .12)); color: #e6dcff; box-shadow: 0 0 18px rgba(167, 139, 250, .25); }
.nsb .bio-mark.is-comeback .bio-mark-ico { color: #c4b0ff; }
.nsb .bio-mark.is-comeback i { background: #a78bfa; color: #120a26; }
.nsb .bio-mark.is-defend { border-color: #e4b84a; background: linear-gradient(135deg, rgba(228, 184, 74, .2), rgba(155, 109, 36, .16)); color: #ffe9a8; box-shadow: 0 0 18px rgba(228, 184, 74, .22); }
.nsb .bio-mark.is-defend .bio-mark-ico { color: #e4b84a; }
.nsb .bio-mark.is-defend i { background: #e4b84a; color: #1b1304; }
.nsb .bio-mark.is-new { border-color: #2dd4bf; background: linear-gradient(135deg, rgba(45, 212, 191, .2), rgba(95, 184, 234, .12)); color: #c9fbf3; box-shadow: 0 0 18px rgba(45, 212, 191, .22); }
.nsb .bio-mark.is-new .bio-mark-ico { color: #5eead4; }
.nsb .bio-mark.is-new i { background: #2dd4bf; color: #03211c; }
.nsb .bio-mark.is-giant { border-color: #ff3b4e; background: linear-gradient(135deg, rgba(255, 59, 78, .22), rgba(155, 20, 40, .18)); color: #ffd0d5; box-shadow: 0 0 18px rgba(255, 59, 78, .25); }
.nsb .bio-mark.is-giant .bio-mark-ico { color: #ff6b7a; }
.nsb .bio-mark.is-giant i { background: #ff3b4e; color: #200308; }
.nsb .bio-mark.is-breaker { border-color: #a3e635; background: linear-gradient(135deg, rgba(163, 230, 53, .18), rgba(45, 212, 191, .1)); color: #e6fbb8; box-shadow: 0 0 18px rgba(163, 230, 53, .2); }
.nsb .bio-mark.is-breaker .bio-mark-ico { color: #bef264; }
.nsb .bio-mark.is-breaker i { background: #a3e635; color: #121c02; }
.nsb .bio-mark { cursor: pointer; }
.nsb .bio-mark:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nsb .bio-mark-tip { grid-column: 1 / -1; margin: 2px 0 0; padding: 8px 10px; border-left: 2px solid var(--pink); background: #ffffff0a; color: #e6d6e8; font: 500 12px/1.45 var(--body); letter-spacing: .2px; text-transform: none; }
.nsb .bio-mark-tip[hidden] { display: none; }

/* PHONE HERO (640px and narrower). One calm column: name, title pills, a compact two-column marker grid, the portrait as its own full-width block
   (it used to sit behind the text and the buttons), the two buttons side by side, one small caption line. The "THE NETWORK PRESENTS" line is hidden.
   Everything is scoped to :not(.has-tt), so the Titantron (entrance video) layout keeps its own arrangement. Wider screens are untouched. */
@media (max-width: 640px) {
  .nsb .hero { min-height: 0; }
  .nsb .hero-inner:not(.has-tt) { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: start; min-height: 0; padding-bottom: 6px; }
  .nsb .hero-inner:not(.has-tt) .hero-copy { display: contents; }
  .nsb .hero-inner:not(.has-tt) .eyebrow { order: 1; margin: 24px 0 0; }
  .nsb .hero-inner:not(.has-tt) .role-pill { order: 2; margin: 12px 0 0; padding: 8px 12px; font-size: 10px; }
  .nsb .hero-inner:not(.has-tt) h1 { order: 3; justify-self: stretch; margin: 12px 0 8px; }
  .nsb .hero-inner:not(.has-tt) .name-nick { order: 4; margin: 0; }
  .nsb .hero-inner:not(.has-tt) .hold-pills { order: 5; justify-self: stretch; margin: 12px 0 0; }
  .nsb .hero-inner:not(.has-tt) .bio-marks { order: 6; justify-self: stretch; margin: 12px 0 0; }
  .nsb .hero-inner:not(.has-tt) .hero-deck { display: none; }
  .nsb .hero-inner:not(.has-tt) .hero-art { order: 7; justify-self: stretch; position: relative; right: auto; bottom: auto; left: auto; width: 100%; height: min(86vw, 360px); opacity: 1; margin: 4px 0 0; pointer-events: auto; }
  .nsb .hero-inner:not(.has-tt) .hero-cta { order: 8; justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: none; margin: 6px 0 0; }
  .nsb .hero-inner:not(.has-tt) .hero-cta .btn-primary,
  .nsb .hero-inner:not(.has-tt) .hero-cta .btn-outline { min-height: 46px; padding: 12px 8px; justify-content: center; text-align: center; font-size: 11px; letter-spacing: 1px; gap: 0; }
  .nsb .hero-inner:not(.has-tt) .hero-cta span { display: none; }
  .nsb .hero-inner:not(.has-tt) .hero-caption { order: 9; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 0; font-size: 8px; }
  .nsb .hero-inner:not(.has-tt) .hero-caption span { display: inline; margin: 0; }

  /* markers: compact, two to a row, equal width. The long name chip on Giant Killer is left for the tap caption. */
  .nsb .bio-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .nsb .bio-mark { padding: 5px 8px; gap: 6px; font-size: 9px; letter-spacing: 1.1px; min-width: 0; }
  .nsb .bio-mark .bio-mark-ico { width: 12px; height: 12px; }
  .nsb .bio-mark b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nsb .bio-mark i { padding: 1px 5px; font-size: 9px; letter-spacing: .6px; max-width: 8ch; }
  .nsb .bio-mark.is-giant i { display: none; }
}
@media (max-width: 340px) { .nsb .bio-mark { padding: 5px 6px; gap: 4px; letter-spacing: .5px; } .nsb .bio-mark i { padding: 1px 4px; } }

/* ===== NETWORK HEAT BANNER (includes/heat_banner.php) =====================================================================
   Sits in the gap between the line under the stats strip and the line above "01 / TALENT INTELLIGENCE", equal space above and below.
   Colours come in as variables from the PHP (blue face, red heel, purple tweener, gold otherwise): --hl / --hm / --hd are the light, mid
   and dark of the number's fill, --hglow the glow, and each meter block carries its own --c (dark blocks low, light blocks high). */
.nsb .heat-banner { position: relative; isolation: isolate; padding: 50px 0; }
.nsb .heat-banner + .profile-content { padding-top: 0; }                       /* the banner's own padding is the space above the second line */
.nsb .heat-banner::before { content: ""; position: absolute; inset: 0 -3%; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 58% 90% at 22% 52%, var(--hglow) 0%, var(--hglow2) 40%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 48%, transparent 100%); mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 48%, transparent 100%); }   /* fades out before any edge, so the glow has no visible box */
.nsb .hb-top { display: flex; justify-content: space-between; gap: 16px; font: 500 11px var(--heading); letter-spacing: 3px; }
.nsb .hb-top span:first-child { color: var(--hm); }
.nsb .hb-top span:last-child { color: #8f7992; }
.nsb .hb-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 84px); margin-top: 6px; }
.nsb .hb-number { display: flex; align-items: baseline; gap: 12px; }
.nsb .hb-number strong { display: block; font: 700 clamp(120px, 19vw, 250px)/1.04 var(--heading); letter-spacing: -2px; margin: -0.09em 0 -0.07em;   /* the box is as tall as the glyphs, so the gradient fill reaches all of them */
    background: linear-gradient(180deg, var(--hl) 6%, var(--hm) 50%, var(--hd) 100%); -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 calc(10px + var(--hlevel) * 3px) var(--hglow)); }
.nsb .hb-number span { font: 500 clamp(28px, 3.6vw, 54px) var(--heading); color: var(--hm); opacity: .55; }
.nsb .hb-tier { font: 700 clamp(22px, 2.7vw, 40px)/1 var(--heading); letter-spacing: .14em; color: var(--hm); text-shadow: 0 0 20px var(--hglow); }
.nsb .hb-meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(5px, 0.8vw, 10px); margin: 16px 0 18px; padding-right: 14px; }   /* room for the slant of the last block */
.nsb .hb-meter i { display: block; height: clamp(46px, 6.4vw, 94px); transform: skewX(-14deg); border-radius: 2px; }
.nsb .hb-meter i.off { background: #150d16; border: 1px solid #2c1d2e; }
.nsb .hb-meter i.on { background-color: var(--c); box-shadow: 0 0 18px var(--cg), inset 0 0 0 1px rgba(255, 255, 255, .13);
    background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
    background-size: 260% 100%; background-repeat: no-repeat; background-position: 130% 0;
    animation: hb-sheen 3.6s ease-in-out var(--d) infinite; }
.nsb .hb-meter i.tip { animation: hb-sheen 3.6s ease-in-out var(--d) infinite, hb-tip 1.8s ease-in-out infinite; }
.nsb .hb-note { margin: 0; font-size: 11px; line-height: 1.7; color: #8d7b8f; }
.nsb .heat-banner.is-hot .hb-number strong { animation: hb-pulse 3.2s ease-in-out infinite; }
@keyframes hb-sheen { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes hb-tip { 0%, 100% { box-shadow: 0 0 14px var(--cg), inset 0 0 0 1px rgba(255, 255, 255, .13); } 50% { box-shadow: 0 0 36px var(--cg), 0 0 8px var(--c), inset 0 0 0 1px rgba(255, 255, 255, .2); } }
@keyframes hb-pulse { 0%, 100% { filter: drop-shadow(0 0 calc(10px + var(--hlevel) * 3px) var(--hglow)); } 50% { filter: drop-shadow(0 0 calc(20px + var(--hlevel) * 5px) var(--hglow)); } }
/* never rated: a quieter, shorter banner that says so */
.nsb .heat-banner.is-unrated { padding: 32px 0 36px; }
.nsb .heat-banner.is-unrated::before { display: none; }
.nsb .heat-banner.is-unrated .hb-number strong { font-size: clamp(60px, 9vw, 110px); background: none; color: #4b3a4d; -webkit-text-fill-color: currentColor; filter: none; }
.nsb .heat-banner.is-unrated .hb-tier { color: #8d7b8f; text-shadow: none; }
.nsb .heat-banner.is-unrated .hb-top span:first-child { color: #8f7992; }
@media (max-width: 780px) {
  .nsb .hb-main { grid-template-columns: 1fr; gap: 14px; }
  .nsb .hb-number strong { font-size: clamp(110px, 32vw, 200px); }
}
@media (max-width: 520px) {
  .nsb .heat-banner { padding: 34px 0 38px; }
  .nsb .hb-top { font-size: 9px; letter-spacing: 2px; }
  .nsb .hb-meter i { height: 40px; transform: skewX(-10deg); }
}
@media (prefers-reduced-motion: reduce) { .nsb .heat-banner *, .nsb .heat-banner { animation: none !important; } }

/* The top strip has three figures now (the heat has its own banner below it). */
@media (min-width: 781px) { .nsb .stats { grid-template-columns: repeat(3, 1fr); } }

/* THE ARSENAL sits beside the Official Profile now, where the heat card was. */
.nsb .arsenal-card { border: 1px solid #422b44; background: #100a12; padding: 25px; }
.nsb .arsenal-card .mini-heading { margin-bottom: 14px; }

/* The Profile card is the whole width of the page. Its four sections run two across when there is room (one alone takes the whole row). */
.nsb .bio-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 26px 48px; }
.nsb .bio-secs .bio-text p:last-child { margin-bottom: 0; }

/* Portrait gallery: arrows under the main picture to flip through Upper Body and Full Body pictures (wrestler.php) */
.nsb .hero-gal { position: absolute; left: 50%; transform: translateX(-50%); bottom: 46px; z-index: 6; display: flex; align-items: center; gap: 10px; pointer-events: auto; white-space: nowrap; }
.nsb .hero-gal button { width: 40px; height: 40px; border: 1px solid #ff2faf88; background: #0b0710cc; color: #fff; font: 700 24px/1 var(--heading); border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.nsb .hero-gal button:hover, .nsb .hero-gal button:focus-visible { background: #ff2faf; border-color: #ff2faf; outline: none; }
.nsb .hero-gal .hg-count { font: 500 11px var(--heading); letter-spacing: 2px; color: #cdbfcc; text-transform: uppercase; min-width: 110px; text-align: center; }
.nsb .hero-gal .hg-count b { color: #fff; font-weight: 600; }
.nsb .hero-gal .hg-count i { display: block; font-style: normal; color: #ff2faf; margin-top: 2px; }
.nsb .hero-art img.is-swapping { opacity: 0; transition: opacity .12s; }
.nsb .hero-art img { transition: opacity .2s; }
/* Portrait gallery: the picture takes a sideways swipe at EVERY width (a folded-out phone sits between the phone and desktop layouts); up and down still scrolls the page. */
.nsb .hero-art[data-gallery] { pointer-events: auto; touch-action: pan-y; }
/* Portrait gallery arrows must sit ABOVE the text block (and the Titantron monitor) on a folded-out phone. A faded picture box becomes its own
   layer and traps the arrows underneath the text, so the fade is put on the picture's own parts instead of the box. */
.nsb .hero-art[data-gallery] { opacity: 1 !important; }
@media (max-width: 780px) { .nsb .hero-art[data-gallery] > :not(.hero-gal) { opacity: .73; } }
@media (max-width: 520px) { .nsb .hero-art[data-gallery] > :not(.hero-gal) { opacity: .65; } }
.nsb .hero-inner:not(.has-tt) .hero-art[data-gallery] > :not(.hero-gal) { opacity: 1; }
.nsb .hero-art[data-gallery] > img.is-swapping { opacity: 0; }
.nsb .hero-art[data-gallery] .hero-gal { z-index: 9; }
