/* =====================================================================
   PRESSBOX GUIDE STYLE: BROADCAST (the default)
   Game-night TV graphics. The look itself lives in guide.css; this file only
   refines it, loaded when <html data-style="broadcast">.
   ===================================================================== */

/* The quietest label tone still passes 4.5:1 on the darkest and the lightest team grounds. */
:root[data-style=broadcast]{--text-3:rgba(238,235,227,.6)}

/* Section numbers sit above the headline on phones instead of behind it. */
@media (max-width:899px){
  [data-style=broadcast] .sec-no{font-size:104px;top:-66px;right:-2px}
}

/* Computer: a long heading stops short of the big section number instead of running under it. */
@media (min-width:900px){[data-style=broadcast] .sec>.sec-head h2{padding-right:200px}}

/* Cover: a tall headline never slides under the badge and issue label at the top of the card. */
[data-style=broadcast] .cv-card{padding-top:96px}
@media (min-width:900px){[data-style=broadcast] .cv-card{padding-top:112px}}

/* Cover with no presenting sponsor: the text is the card's last child, so it carries the bottom room itself and the
   dek never runs onto the frame line. A two-line headline gets air between its lines. */
[data-style=broadcast] .cv-txt:last-child{padding-bottom:34px}
[data-style=broadcast] .cv-h{line-height:.88}
[data-style=broadcast] .cv-dek{margin-top:16px}
/* Below 900px the headline grows with the screen (20.5vw a line), so the logo art keeps a matching room clear above it. */
@media (max-width:899px){[data-style=broadcast] .cv-art{--art-pb:calc(150px + 36vw)}}
/* Tablets: a smaller headline cap leaves the logo, the mascot outline and the season pill room to stand apart. */
@media (min-width:600px) and (max-width:899px){
  [data-style=broadcast] .cv-h{font-size:clamp(4.1rem,15vw,8rem)}
  [data-style=broadcast] .cv-art{--art-pb:calc(170px + 27vw);--art-wt:30%}
  [data-style=broadcast] .cv-art-w{font-size:calc(150cqw / var(--t-mascot-len))}
}
@media (min-width:900px){
  [data-style=broadcast] .cv-txt:last-child{padding-bottom:54px}
  /* No cover photo: the mascot outline sits over the logo column on the right, not behind the headline. */
  [data-style=broadcast] .cv-art-w{left:73%;font-size:calc(72cqw / var(--t-mascot-len))}
}

/* Phones: the Chapters button keeps its name for screen readers but shows only the icon, so the team name in the
   top bar is not cut short. */
@media (max-width:480px){
  [data-style=broadcast] .tb-menu{width:44px;height:44px;padding:0;justify-content:center;flex:none}
  [data-style=broadcast] .tb-menu span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  [data-style=broadcast] .tb-team{min-width:0}
}
@media (max-width:374px){[data-style=broadcast] .tb-team b{font-size:17px}}

/* Sponsor labels: readable on the dark ground and on a team-color flood. */
[data-style=broadcast] .ad-tag{color:var(--text-2)}
[data-style=broadcast] .sec-team .ad-tag{color:color-mix(in srgb,var(--on-tm) 78%,transparent)}

/* The losing side of a scorebug stays dimmed but readable; sold-out tiers read on the dark ground. */
[data-style=broadcast] .bug-row{opacity:.66}
[data-style=broadcast] .bug-row.win{opacity:1}
[data-style=broadcast] .bug-name small{color:var(--text-2)}
[data-style=broadcast] .tier-left.out{color:#ffb3b3}

/* Roster cards: long last names (CASTELLANOS) stay on one line; the text may run over the faded edge of
   the photo, so it carries a soft shadow. The card is a size container for that. */
[data-style=broadcast] .rc a{container-type:inline-size}
[data-style=broadcast] .rc-txt{grid-column:1/-1;grid-row:1;padding-right:30%}
[data-style=broadcast] .rc-last{font-size:min(2.75rem,10cqi);overflow-wrap:normal;text-shadow:0 2px 14px rgba(0,0,0,.45)}

/* ---------- any school colors: light primaries (gold, white) keep readable floods ----------
   --tm-dk is the primary darkened until white type reads on it; --tm-night is a dark team surface;
   --tm2-on-tm / --tm2-on-night are the secondary adjusted for those surfaces (server/render/util.js). */
[data-style=broadcast] .rc a{background:linear-gradient(112deg,var(--tm-night) 0 57%,color-mix(in srgb,var(--tm-night) 55%,var(--tm-dk)) 57.3%)}
[data-style=broadcast] .rc-first{color:var(--tm2-on-night)}
[data-style=broadcast] .rc-num{-webkit-text-stroke-color:var(--tm2-on-night)}
[data-style=broadcast] .ld{background:var(--tm-dk)}
[data-style=broadcast] .ld-top{background:radial-gradient(90% 90% at 80% 20%,color-mix(in srgb,var(--tm-dk) 82%,#fff),transparent 70%)}
[data-style=broadcast] .ld-v,[data-style=broadcast] .ld-n,[data-style=broadcast] .ld-rest{color:#fff}
[data-style=broadcast] .ld-k{color:var(--tm2-on-night)}
[data-style=broadcast] .ld-k small{color:rgba(255,255,255,.72);opacity:1}
[data-style=broadcast] .ld-no{-webkit-text-stroke-color:var(--tm2-on-night)}
[data-style=broadcast] .spot{background:linear-gradient(160deg,var(--tm-dk),var(--tm-night))}
[data-style=broadcast] .spot-num{-webkit-text-stroke-color:var(--tm2-on-night)}
[data-style=broadcast] .nextg{background:radial-gradient(120% 120% at 50% 0%,var(--tm-dk),var(--tm-night))}
[data-style=broadcast] .ng-vs,[data-style=broadcast] .ng-count,[data-style=broadcast] .nextg .kicker{color:var(--tm2-on-night)}
[data-style=broadcast] .sen-ph{background:linear-gradient(180deg,var(--tm-dk),var(--tm-night))}
[data-style=broadcast] .sen-no{-webkit-text-stroke-color:var(--tm2-on-night)}
[data-style=broadcast] .pl-hero{background:radial-gradient(120% 80% at 70% 25%,color-mix(in srgb,var(--tm-dk) 86%,#fff),var(--tm-dk) 42%,var(--tm-night))}
[data-style=broadcast] .pl-num{-webkit-text-stroke-color:var(--tm2-on-night)}
[data-style=broadcast] .pl-name h1 span{color:var(--tm2-on-night)}
[data-style=broadcast] .bn-y{color:var(--tm2-on-tm)}
[data-style=broadcast] .tier-presenting,[data-style=broadcast] .tier-presenting .tier-p b{color:var(--on-tm)}
[data-style=broadcast] .tier-presenting .kicker{color:var(--on-tm)}
[data-style=broadcast] .tier-presenting .tier-p span{color:color-mix(in srgb,var(--on-tm) 70%,transparent)}
[data-style=broadcast] .tier-presenting li::before{background:var(--tm2-on-tm)}
[data-style=broadcast] .po-top span,[data-style=broadcast] .po-url{color:var(--on-tm)}
[data-style=broadcast] .sub-f input,[data-style=broadcast] .sub-f select{color:var(--on-tm);border-color:color-mix(in srgb,var(--on-tm) 30%,transparent)}
[data-style=broadcast] .sub-f input::placeholder{color:color-mix(in srgb,var(--on-tm) 66%,transparent)}
[data-style=broadcast] .sub-f select option{color:#111}

/* Player hero: the name and the fact strip sit in the flow at the bottom of the hero, so a long strip wraps to a second
   line on a phone (it used to run off the screen) and the name always clears it. */
[data-style=broadcast] .pl-hero{display:flex;flex-direction:column;justify-content:flex-end}
[data-style=broadcast] .pl-name{position:relative;left:auto;right:auto;bottom:auto;margin:0 var(--edge) 22px}
[data-style=broadcast] .lower3{position:relative;left:auto;right:auto;bottom:auto;flex-wrap:wrap;row-gap:8px;white-space:normal;overflow:visible}
/* Player page on desktop: the name lines up with the stats and bio column below it. */
@media (min-width:900px){
  [data-style=broadcast] .pl-name{margin:0 48% 40px calc(max(0px,(100% - 1080px) / 2) + var(--edge))}
  [data-style=broadcast] .lower3{padding-left:calc(max(0px,(100% - 1080px) / 2) + var(--edge))}
}

/* ---------- print: on white paper, light-on-dark text turns ink, accents turn the readable primary ---------- */
@media print{
  [data-style=broadcast] .sec-head .kicker,[data-style=broadcast] .sec-team .sec-head .kicker,[data-style=broadcast] .leaders>.kicker,[data-style=broadcast] .res-top .kicker,
  [data-style=broadcast] .sched-m,[data-style=broadcast] .quote figcaption b,[data-style=broadcast] .res-rec span,[data-style=broadcast] .hist-top b,[data-style=broadcast] .rec .rec-v,
  [data-style=broadcast] .wall-h,[data-style=broadcast] .rl caption,[data-style=broadcast] .rl .rl-n,[data-style=broadcast] .box-t .bn,[data-style=broadcast] .link-go{color:var(--tm-text)}
  [data-style=broadcast] .quote blockquote,[data-style=broadcast] .final-hl,[data-style=broadcast] .sched-rec b,[data-style=broadcast] .sg.home .sg-o b,[data-style=broadcast] .res-rec,
  [data-style=broadcast] .box-t td b,[data-style=broadcast] .wall-cta b,[data-style=broadcast] .pl-stats b{color:#111}
  [data-style=broadcast] .co .kicker,[data-style=broadcast] .co-more summary,[data-style=broadcast] .nums-v{color:var(--tm-text)}
  [data-style=broadcast] .nums-g{background:#ccc}
  [data-style=broadcast] .nums-g li{background:#fff!important}
  [data-style=broadcast] .res-l li.w .res-s,[data-style=broadcast] .box-t td.w,[data-style=broadcast] .sg-r.w{color:#1d6b3c}
  [data-style=broadcast] .res-l li.l .res-s,[data-style=broadcast] .box-t td.l{color:#a3261e}
  [data-style=broadcast] .fl,[data-style=broadcast] .sg-next,[data-style=broadcast] .sg-r,[data-style=broadcast] .chip,[data-style=broadcast] .bug-final,
  [data-style=broadcast] .lib-badge,[data-style=broadcast] .honors li,[data-style=broadcast] .rc-c{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ---------- sponsor ad styles (server/render/ads.js, guide.css "SPONSOR AD STYLES") ----------
   Broadcast is the base look for the ad styles (guide.css); on a team-color flood the coupon and the
   scoreboard keep a clean edge. */
[data-style=broadcast] .sec-team :is(.ad-cp,.ad-sb){box-shadow:0 0 0 1px rgba(0,0,0,.25),0 18px 32px -26px #000}

/* =====================================================================
   D-135 refresh: big screens, the section rail, covers shown whole
   ===================================================================== */
/* A big monitor: the cover card grows to the photo's own sharp size (1,600 px photos) instead of a 1280 px card
   floating in a wide field, and the headline, words and corner marks grow with it. */
@media (min-width:1700px){
  [data-style=broadcast] .cv-card{max-width:1720px;min-height:min(980px,calc(100svh - var(--topbar) - 110px));padding-top:150px}
  [data-style=broadcast] .cv-card::after{inset:12px;border-width:2px;border-radius:16px}
  [data-style=broadcast] .cv-top{top:44px;left:56px;right:56px}
  [data-style=broadcast] .cv-top .badge{width:72px;height:72px}
  [data-style=broadcast] .cv-issue b{font-size:38px}
  [data-style=broadcast] .cv-issue small{font-size:15px}
  [data-style=broadcast] .cv-txt{padding:0 38% 0 80px}
  [data-style=broadcast] .cv-k{font-size:15px}
  [data-style=broadcast] .cv-h{font-size:clamp(9rem,8vw,14.5rem)}
  [data-style=broadcast] .cv-dek{font-size:23px;max-width:34ch;margin-top:22px}
  [data-style=broadcast] .cv-pres{margin:34px 80px 56px}
  [data-style=broadcast] .cv-tick{font-size:14px;padding:12px 0}
}
/* A cover shown whole: on a phone the graphic takes a band under the badge, and the card keeps that band free so
   the headline never runs over it. */
@media (max-width:899px){
  [data-style=broadcast] .cv-ph.cv-whole .cv-fitbox{align-items:flex-start;padding:100px 22px 0}
  [data-style=broadcast] .cv-ph.cv-whole .cv-fitbox img{max-height:min(46vw,calc(var(--nh) * 1.5))}
  [data-style=broadcast] .cover-whole .cv-card{padding-top:calc(100px + 46vw + 24px)}
}
@media (min-width:900px){
  [data-style=broadcast] .cv-ph.cv-whole .cv-fitbox{padding:clamp(110px,13%,190px) 6% clamp(120px,22%,260px) 50%}
  [data-style=broadcast] .cv-ph.cv-whole .cv-fitbox img{border-radius:10px;box-shadow:0 0 0 1.5px color-mix(in srgb,var(--tm2) 70%,transparent)}
}

/* The section rail (guide.css D-135): a lower-third. The outline number, the mono kicker on a gold rule, the title,
   then a short gold bar, like a TV graphic waiting for the next shot. */
@media (min-width:1200px){
  :root[data-style=broadcast] .sec.sec-rail>.sec-head>.sec-no{margin:0 0 4px -4px;font-size:clamp(120px,calc(var(--rail) * .5),210px);-webkit-text-stroke-width:1.5px}
  :root[data-style=broadcast] .sec.sec-rail>.sec-head .kicker{display:block;padding-top:12px;border-top:2px solid var(--tm2)}
  :root[data-style=broadcast] .sec.sec-rail>.sec-head h2{margin-top:14px;line-height:.88}
  :root[data-style=broadcast] .sec.sec-rail>.sec-head h2::after{content:"";display:block;width:56px;height:5px;margin-top:22px;background:var(--tm2)}
  :root[data-style=broadcast] .sec-team.sec-rail>.sec-head h2::after{background:var(--on-tm)}
}
/* Big screens: bigger reading type in the paper cards, Q&A and stories. */
@media (min-width:1600px){
  [data-style=broadcast] :is(.page-sheet p:not([class]),.qa-i dd,.spot-b p){font-size:18.5px;line-height:1.62}
  [data-style=broadcast] .page-sheet{padding:60px 64px 56px}
  [data-style=broadcast] .toc a{font-size:17px;padding:12px 16px}
}
/* Sized ads: every ad in a row keeps the card's rounded corners and the same tag line. */
[data-style=broadcast] .ad-row>.adp>.ad>.ad-tag{margin-bottom:12px}
