/* Server-rendered disclosure styles also support the card before hydration. */
#primary #hhx-home-pulse .hhx-fan-glance:has(> .hhx-scoring-switch) {
  display: block; container: hhx-playoff / inline-size; overflow: visible;
  touch-action: pan-y pinch-zoom; overscroll-behavior-x: contain;
  border: 1px solid #385161; background: #10222f; color: #f4f0e7;
}
#primary #hhx-home-pulse .hhx-scoring-switch { padding: 0; margin: 0; border: 0; color: inherit; background: transparent; }
#primary #hhx-home-pulse .hhx-scoring-switch > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  box-sizing: border-box; min-height: 64px; gap: 8px; margin: 0; padding: 10px clamp(10px,3cqi,20px);
  border: 0; border-bottom: 1px solid #415669; color: #f6f1e6; cursor: pointer;
  background: linear-gradient(116deg,#1c3444 0%,#182b3a 59%,#172433 100%);
}
#primary #hhx-home-pulse .hhx-scoring-switch > summary::-webkit-details-marker { display: none; }
#primary #hhx-home-pulse .hhx-scoring-switch[open] + .hhx-sc-front,
#primary #hhx-home-pulse .hhx-fan-glance [hidden] { display:none!important; }
#primary #hhx-home-pulse .hhx-sc-fr, html:lang(fr) #primary #hhx-home-pulse .hhx-sc-en { display: none !important; }
html:lang(fr) #primary #hhx-home-pulse .hhx-sc-fr { display: inline !important; }
body.hhx-enabled #primary #hhx-home-pulse .hhx-fan-glance .hhx-sc-front > .hhx-fan-record { margin: 0; padding: 15px clamp(10px,3cqi,20px); }
#primary #hhx-home-pulse .hhx-sc-glimpse { margin: 0; padding: 8px clamp(10px,3cqi,20px) 14px; }
#primary #hhx-home-pulse .hhx-sc-glimpse h4, #primary #hhx-home-pulse .hhx-sc-season { margin: 0 0 8px; color: #afc6d1; font: 750 11px/1.4 var(--hhb-sans,Arial,sans-serif); letter-spacing: .075em; text-transform: uppercase; }
#primary #hhx-home-pulse .hhx-sc-glimpse ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
#primary #hhx-home-pulse .hhx-sc-glimpse li { display: flex; flex-direction: column; align-items: start; justify-content: space-between; min-width: 0; margin: 0; padding: 2px 6px 0; border-left: 1px solid #486072; }
#primary #hhx-home-pulse .hhx-sc-glimpse li:first-child { border: 0; padding-left: 0; }
#primary #hhx-home-pulse .hhx-sc-glimpse .hhx-sc-name { display: block; color: #e6eced; font: 700 clamp(12px,3cqi,15px)/1.18 var(--hhb-sans,Arial,sans-serif); overflow-wrap: anywhere; }
#primary #hhx-home-pulse .hhx-sc-tally { display: flex; align-items: baseline; gap: 4px; padding-top: 6px; }
#primary #hhx-home-pulse .hhx-sc-tally b { color: #f6f1e6; font: 900 clamp(22px,6cqi,31px)/1 var(--hhb-display,Arial,sans-serif); }
#primary #hhx-home-pulse .hhx-sc-tally small { color: #bacad2; font: 750 10px/1 var(--hhb-sans,sans-serif); }
#primary #hhx-home-pulse .hhx-sc-front .hhx-fan-standing-footer { margin: 0; padding: 8px clamp(10px,3cqi,20px) 0; }
#primary #hhx-home-pulse .hhx-sc-reverse { margin: 0; padding: 14px clamp(10px,3cqi,20px) 0; color: #f0eeea; }
#primary #hhx-home-pulse .hhx-sc-table { width: 100%; margin: 0; border-collapse: collapse; border: 0; table-layout: fixed; background: transparent; font-variant-numeric: tabular-nums; }
#primary #hhx-home-pulse .hhx-sc-table :is(th,td) { margin: 0; padding: 0 2px; border: 0; border-bottom: 1px solid #3a4e5c; text-align: right; line-height: 1.2; vertical-align: middle; background: transparent; color: inherit; }
#primary #hhx-home-pulse .hhx-sc-table thead th { height: 28px; color: #b4c8d4; font-size: 10px; }
#primary #hhx-home-pulse .hhx-sc-table tr > :first-child { width: 51%; text-align: left; }
#primary #hhx-home-pulse .hhx-sc-table td { font-size: clamp(13px,3cqi,17px); }
#primary #hhx-home-pulse .hhx-sc-table td:last-child { color: #ff8ba2; font-weight: 850; }
#primary #hhx-home-pulse .hhx-sc-table a { display: flex; align-items: center; min-height: 44px; gap: 6px; padding: 4px 2px 4px 0; color: #f4f0e8; text-decoration: none; font: 750 clamp(12px,3cqi,15px)/1.18 var(--hhb-sans,Arial,sans-serif); overflow-wrap: anywhere; }
#primary #hhx-home-pulse .hhx-sc-rank { min-width: 2ch; color: #a9bdc9; font-size: 11px; }
#primary #hhx-home-pulse .hhx-sc-all { display: inline-flex; align-items: center; min-height: 44px; gap: .25em; margin: 0; padding: 3px 0; color: #d5e5ed; font: 700 12px/1.3 var(--hhb-sans,sans-serif); text-decoration: underline; text-underline-offset: .2em; }
#primary #hhx-home-pulse .hhx-sc-front > .hhx-sc-all { margin-inline: clamp(10px,3cqi,20px); }
#primary #hhx-home-pulse .hhx-sc-message { margin: 7px 0 2px; color: #c1cfd6; font: 500 12px/1.35 var(--hhb-sans,sans-serif); }
#primary #hhx-home-pulse .hhx-fan-glance :is(summary,a):is(:hover,:active) { color: #ff9caf; }
#primary #hhx-home-pulse .hhx-fan-glance :is(summary,a):focus-visible { outline: 2px solid #f9b0bd; outline-offset: -2px; }
@media (prefers-reduced-motion:no-preference) {
  #primary #hhx-home-pulse .hhx-scoring-switch[open] > .hhx-sc-reverse,
  #primary #hhx-home-pulse .hhx-scoring-switch:not([open]) + .hhx-sc-front { animation: hhx-sc-face 210ms ease-out; transform-origin: 50% 20%; }
  @keyframes hhx-sc-face { from { opacity: .6; transform: perspective(900px) rotateY(-9deg); } to { opacity: 1; transform: none; } }
}

/* Enhanced faces share their grid track. Native disclosure remains functional
   when JS is unavailable and the live standings renderer can replace its rows. */
body.hhx-enabled #primary #hhx-home-pulse > .hhx-fan-glance.hhx-sc-enhanced,
#primary #hhx-home-pulse .hhx-fan-glance.hhx-sc-enhanced {
  display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto;
  align-content:start; margin:0; padding:0; border:0; background:none; box-shadow:none;
}
#primary #hhx-home-pulse .hhx-sc-enhanced > .hhx-sc-head { grid-area:1/1; margin:0 0 8px; }
#primary #hhx-home-pulse .hhx-sc-head h3 {
  margin:0; color:#f4efe6; font:900 clamp(23px,5.8cqi,31px)/1.1 var(--hhb-display,Arial,sans-serif);
  letter-spacing:-.025em; text-transform:none;
}
#primary #hhx-home-pulse .hhx-sc-picks { display:flex; align-items:stretch; margin:2px 0 0; gap:14px; border-bottom:1px solid #435660; }
#primary #hhx-home-pulse .hhx-sc-picks button {
  position:relative; flex:0 1 auto; min-height:44px; padding:2px 1px 0; margin:0; border:0; border-radius:0;
  color:#b9c8cf; background:none; box-shadow:none; font:650 13px/1.15 var(--hhb-sans,Arial,sans-serif);
  text-transform:none; letter-spacing:normal; cursor:pointer;
}
#primary #hhx-home-pulse .hhx-sc-picks button[aria-pressed="true"] { color:#f4efe6; }
#primary #hhx-home-pulse .hhx-sc-picks button[aria-pressed="true"]::after { content:""; position:absolute; bottom:-1px; left:0; right:0; height:3px; background:#ee345a; transform:skewX(-18deg); }
#primary #hhx-home-pulse .hhx-sc-picks button:is(:hover,:focus-visible) { color:white; text-decoration:underline; text-underline-offset:4px; }
#primary #hhx-home-pulse .hhx-sc-picks button:focus-visible { outline:2px solid #ff98ab; outline-offset:-1px; }
#primary #hhx-home-pulse .hhx-sc-picks svg { align-self:center; margin-inline-start:auto; color:#a8bdc6; }
#primary #hhx-home-pulse .hhx-sc-enhanced > .hhx-scoring-switch { position:absolute; overflow:hidden; clip-path:inset(50%); width:1px; height:1px; margin:0; }
#primary #hhx-home-pulse .hhx-sc-enhanced > :is(.hhx-sc-front,.hhx-sc-reverse) { grid-area:2/1; min-width:0; align-self:stretch; }
#primary #hhx-home-pulse .hhx-sc-enhanced > .hhx-scoring-switch[open] + .hhx-sc-front { display:flex!important; }
#primary #hhx-home-pulse .hhx-sc-enhanced > [aria-hidden="true"] { visibility:hidden; pointer-events:none; }
#primary #hhx-home-pulse .hhx-sc-front { display:flex; flex-direction:column; min-width:0; background:#112735; border-top:2px solid #718792; }
#primary #hhx-home-pulse .hhx-sc-front .hhx-playoff-disclosure { order:1; margin:0; }
body.hhx-enabled #primary #hhx-home-pulse .hhx-sc-front .hhx-playoff-disclosure > summary { min-height:38px; margin:0; padding:6px 10px; background:#162d39; color:#f5f1e8; font:800 18px/1.2 var(--hhb-display,Arial,sans-serif); letter-spacing:normal; }
#primary #hhx-home-pulse .hhx-sc-front > .hhx-fan-record { order:0; }
body.hhx-enabled #primary #hhx-home-pulse .hhx-fan-glance[data-hhx-standings-state="available"] .hhx-sc-front > .hhx-fan-record { display:none; }
#primary #hhx-home-pulse .hhx-sc-front > .hhx-sc-glimpse { order:2; margin:0; padding:7px 10px 0; }
#primary #hhx-home-pulse .hhx-sc-glimpse h4 { margin:0 0 3px; font-size:9px; }
#primary #hhx-home-pulse .hhx-sc-glimpse ol { display:flex; align-items:baseline; flex-wrap:wrap; column-gap:8px; row-gap:2px; }
#primary #hhx-home-pulse .hhx-sc-glimpse li { flex-direction:row; align-items:baseline; justify-content:start; gap:3px; margin:0; padding:0; border:0; }
#primary #hhx-home-pulse .hhx-sc-glimpse .hhx-sc-name { font-size:11px; }
#primary #hhx-home-pulse .hhx-sc-glimpse .hhx-sc-tally { padding:0; }
#primary #hhx-home-pulse .hhx-sc-glimpse .hhx-sc-tally b { font:800 12px/1 var(--hhb-sans,sans-serif); color:#ff9eae; }
#primary #hhx-home-pulse .hhx-sc-glimpse .hhx-sc-tally small { display:none; }
#primary #hhx-home-pulse .hhx-sc-front > .hhx-fan-standing-footer { order:3; padding:7px 10px 0; }
#primary #hhx-home-pulse .hhx-sc-front > .hhx-sc-all { order:5; align-self:start; margin:0 10px; }
#primary #hhx-home-pulse .hhx-sc-front > .hhx-fan-data-note { order:4; }
#primary #hhx-home-pulse .hhx-sc-reverse { display:flex; flex-direction:column; margin:0; padding:0 clamp(7px,2cqi,15px); border-top:3px solid #cf2447; background:#eee8da; color:#142733; }
#primary #hhx-home-pulse .hhx-sc-season { display:flex; flex-wrap:wrap; gap:5px; align-items:baseline; margin:0; padding:9px 0 6px; border-bottom:1px solid #a3b0ae; color:#405762; text-transform:none; letter-spacing:0; }
#primary #hhx-home-pulse .hhx-sc-season b { margin-inline-end:auto; color:#142733; font:900 21px/1.1 var(--hhb-display,sans-serif); }
#primary #hhx-home-pulse .hhx-sc-season small { color:inherit; font:inherit; }
#primary #hhx-home-pulse .hhx-sc-table { flex:auto; }
#primary #hhx-home-pulse .hhx-sc-table :is(th,td) { border-bottom:1px solid #bcc4bc; }
#primary #hhx-home-pulse .hhx-sc-table thead th { color:#425963; font-size:11px; }
#primary #hhx-home-pulse .hhx-sc-table td:last-child { color:#a71d40; font:900 clamp(19px,4.5cqi,26px)/1.1 var(--hhb-display,Arial,sans-serif); }
#primary #hhx-home-pulse .hhx-sc-table a { color:#152e3b; }
#primary #hhx-home-pulse .hhx-sc-rank { color:#49606b; font-size:11px; min-width:2.1ch; }
#primary #hhx-home-pulse .hhx-sc-portrait { display:inline-grid; flex:0 0 auto; align-items:end; justify-items:center; width:clamp(28px,8cqi,38px); height:39px; overflow:hidden; border-radius:42% 42% 0 0; background:#d0d8d0; border-bottom:2px solid #9eafa8; }
#primary #hhx-home-pulse .hhx-sc-portrait > * { grid-area:1/1; }
#primary #hhx-home-pulse .hhx-sc-portrait > span { align-self:center; color:#526772; font-size:11px; }
#primary #hhx-home-pulse .hhx-sc-portrait img { width:100%; height:100%; object-fit:cover; object-position:50% 10%; background:#d0d8d0; }
#primary #hhx-home-pulse .hhx-sc-reverse :is(.hhx-sc-all,.hhx-sc-message) { color:#284953; }
#primary #hhx-home-pulse .hhx-sc-reverse a:is(:hover,:active,:focus-visible) { color:#931c39; }
#primary #hhx-home-pulse .hhx-sc-reverse a:focus-visible { outline-color:#a41337; }
#primary #hhx-home-pulse .hhx-sc-reverse > .hhx-sc-all { align-self:start; }
@media (prefers-reduced-motion:no-preference) {
  #primary #hhx-home-pulse .hhx-sc-enhanced > [aria-hidden="false"] { animation:hhx-sc-face 210ms ease-out; transform-origin:50% 20%; }
}

/* Render the same title, controls and surface on the first server paint.
   The native summary remains operable while enhancement is unavailable. */
body.hhx-enabled #primary #hhx-home-pulse > .hhx-fan-glance:has(> .hhx-sc-head) { padding:0; border:0; background:none; box-shadow:none; }
#primary #hhx-home-pulse .hhx-fan-glance:not(.hhx-sc-enhanced):has(> .hhx-scoring-switch[open]) [data-hhx-sc-title="leaders"] { display:inline!important; }
#primary #hhx-home-pulse .hhx-fan-glance:not(.hhx-sc-enhanced):has(> .hhx-scoring-switch[open]) [data-hhx-sc-title="standings"] { display:none; }
#primary #hhx-home-pulse .hhx-scoring-switch > summary { align-items:stretch; justify-content:flex-start; gap:14px; min-height:44px; margin:2px 0 8px; padding:0; color:#b9c8cf; border-bottom:1px solid #435660; background:none; font:650 13px/1.15 var(--hhb-sans,Arial,sans-serif); }
#primary #hhx-home-pulse .hhx-scoring-switch > summary > span { display:inline-flex; align-items:center; padding:2px 1px 0; }
#primary #hhx-home-pulse .hhx-scoring-switch > summary > svg { align-self:center; margin-inline-start:auto; color:#a8bdc6; }
#primary #hhx-home-pulse .hhx-scoring-switch:not([open]) .hhx-sc-native-standings,
#primary #hhx-home-pulse .hhx-scoring-switch[open] .hhx-sc-native-leaders { color:#f4efe6; box-shadow:inset 0 -3px #ee345a; }
