/* Shared interactive ink travels with the link on both paper and dark ice. */
body.hhx-enabled {
  --hh-section-ink: #0b1822;
  --hh-section-panel: #142b39;
  --hh-section-ice: #bed6df;
  --hh-section-paper: #f1ede3;
  --hh-section-signal: #ff7794;
  --hh-section-line: #34505f;
}
@media (hover:hover) {
  body.hhx-enabled a[href]:not(:where(#wpadminbar *)):hover {
    text-decoration-line: underline;
    text-decoration-thickness: .11em;
    text-underline-offset: .2em;
    outline: 1px solid currentColor;
    outline-offset: -1px;
  }
  body.hhx-enabled.habs-design-2026 #masthead .site-branding a.brand:hover .site-title {
    text-decoration: underline solid var(--hh-section-signal) .085em;
    text-underline-offset: .11em;
  }
  body.hhx-enabled.habs-design-2026 #masthead .site-branding a.brand:hover .site-title .hh-brand-hockey {
    color: var(--hh-section-signal) !important;
  }
}
body.hhx-enabled a[href]:not(:where(#wpadminbar *)):focus-visible {
  outline: 3px solid #f6c66e !important;
  outline-offset: -3px;
  box-shadow: 0 0 0 2px #0b1822;
}
body.hhx-enabled a[href]:not(:where(#wpadminbar *)):active {
  outline: 2px solid #ed557c !important;
  outline-offset: -2px;
  text-decoration-line: underline;
}
body.hhx-enabled.habs-design-2026 #masthead .site-branding a.brand:is(:focus-visible,:active) .site-title {
  text-decoration: underline solid currentColor .09em;
  text-underline-offset: .11em;
}
body.hhx-enabled.habs-design-2026 #masthead .site-branding a.brand:active .site-title .hh-brand-hockey { color: white !important; }

/* The same six real links move between the visible rail and the native phone disclosure. */
body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready.habs-design-2026 #primary[data-hhx-shell-club="true"] {
  --hhx-scene-action-color: var(--hh-section-paper);
}
body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready.habs-design-2026 #primary[data-hhx-shell-club="true"] > .hhx-unified-club-nav {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--hh-section-paper);
  background: var(--hh-section-ink);
}
body.hhx-enabled #primary .hhx-unified-club-nav :is(.hhx-section-rail-label,.hhx-scene-section-chooser)[hidden] { display: none !important; }
body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready #primary .hhx-unified-club-nav a.hhx-unified-club-link {
  min-height: 46px;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  color: var(--hh-section-ice);
  background: transparent;
  font: 700 .88rem/1.24 var(--hhb-sans,Arial,sans-serif);
  overflow-wrap: break-word;
}
body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready #primary .hhx-unified-club-nav a[aria-current] {
  color: white;
  background: var(--hh-section-panel);
  box-shadow: inset 0 -3px var(--hh-section-signal);
}
@media (hover:hover) {
  body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready #primary .hhx-unified-club-nav :is(a,summary):hover {
    color: white;
    background: #213e4e;
  }
}
body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready #primary .hhx-unified-club-nav :is(a,summary):focus-visible {
  outline: 3px solid #f6c66e;
  outline-offset: -3px;
}
body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready #primary .hhx-unified-club-nav :is(a,summary):active {
  color: white;
  background: #533044;
}
@media (min-width:720px) {
  body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready.habs-design-2026 #primary[data-hhx-shell-club="true"] {
    column-gap: 0;
  }
  body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready.habs-design-2026 #primary[data-hhx-shell-club="true"] > .hhx-unified-club-nav {
    align-self: stretch;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding-inline-start: max(16px,calc((100vw - 1160px)/2));
    border-block: 1px solid var(--hh-section-line);
  }
  body.hhx-enabled #primary .hhx-section-rail-label {
    flex: none;
    align-self: center;
    margin-inline-end: clamp(10px,1.8vw,26px);
    padding-inline-start: 8px;
    border-inline-start: 3px solid var(--hh-section-signal);
    font: 900 clamp(1rem,2vw,1.5rem)/1 var(--hhb-display,Arial,sans-serif);
    text-transform: uppercase;
    letter-spacing: -.03em;
  }
  body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready #primary .hhx-unified-club-nav > .hhx-unified-nav-links {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    min-width: 0;
    gap: 0;
    padding: 0;
  }
  body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready #primary .hhx-unified-club-nav > .hhx-unified-nav-links > a {
    flex: 0 1 auto;
    padding-inline: clamp(8px,1.2vw,16px);
  }
}
body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready.habs-design-2026 #primary[data-hhx-shell-club="true"] > .hhx-utility-bar {
  align-self: stretch;
  align-items: center;
  margin: 0;
  padding: 0 clamp(6px,2vw,24px);
  background: var(--hh-section-ink);
  border-block: 1px solid var(--hh-section-line);
  color: var(--hh-section-paper);
}
@media (max-width:719px) {
  body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready #primary[data-hhx-shell-club="true"] { column-gap: 0; }
  body.hhx-enabled.hhx-scene-shell-ready #primary .hhx-scene-section-summary {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 3px 8px;
    min-height: 60px;
    padding: 8px 12px;
    border-inline-start: 3px solid var(--hh-section-signal);
    background: var(--hh-section-panel);
    color: var(--hh-section-paper);
  }
  body.hhx-enabled.hhx-scene-shell-ready #primary .hhx-scene-section-kicker {
    display: block;
    grid-column: 1;
    color: var(--hh-section-ice);
    font: 650 .72rem/1.2 var(--hhb-sans,Arial,sans-serif);
  }
  body.hhx-enabled.hhx-scene-shell-ready #primary .hhx-scene-section-label { grid-column: 1; font-size: .94rem; }
  body.hhx-enabled.hhx-scene-shell-ready #primary .hhx-scene-section-arrow {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: var(--hh-section-signal);
  }
  body.hhx-enabled.hhx-scene-shell-ready #primary .hhx-scene-section-chooser > .hhx-unified-nav-links {
    top: 100%;
    width: min(318px,calc(100vw - 24px));
    gap: 0;
    padding: 4px;
    border: 1px solid var(--hh-section-line);
    border-radius: 0 0 8px 8px;
    background: var(--hh-section-ink);
    color: var(--hh-section-paper);
    box-shadow: 0 12px 26px #0007;
  }
  body.hhx-enabled.hhx-scene-shell-ready.hhx-navigation-ready #primary .hhx-scene-section-chooser a[aria-current] {
    box-shadow: inset 3px 0 var(--hh-section-signal);
  }
  body.hhx-enabled.hhx-scene-shell-ready #primary .hhx-scene-section-chooser a::after { content: '›'; color: var(--hh-section-ice); }
}
/* A common dark cover and restrained red rule connect the Club data sheets to Pulse. */
body.hhx-enabled:is(.hhx-club-scenes-ready,.hhx-first-paint).hhx-site-context-players.habs-design-2026 #primary .hhc-club-cover,
body.hhx-enabled:is(.hhx-club-scenes-ready,.hhx-first-paint).hhx-site-player.habs-design-2026 #primary .hh-player-masthead,
body.hhx-enabled:is(.hhx-club-scenes-ready,.hhx-first-paint).hhx-site-team.habs-design-2026 #primary .hh-team-header,
body.hhx-enabled.hhx-broadcast-ready[data-hhx-scene="club"] #primary .hhx-broadcast-heading,
body.hhx-enabled:is(.hhx-season-scenes-ready,.hhx-first-paint).habs-design-2026 #primary [data-habs-standings] > .habs-montreal-context {
  background: linear-gradient(105deg,var(--hh-section-ink),var(--hh-section-panel));
  color: var(--hh-section-paper);
  box-shadow: inset 4px 0 var(--hh-section-signal);
}
body.hhx-enabled.hhx-broadcast-ready[data-hhx-scene="club"] #primary .hhx-broadcast-heading {
  padding: 16px clamp(18px,4vw,48px);
}
body.hhx-enabled:is(.hhx-club-scenes-ready,.hhx-first-paint).hhx-site-context-players.habs-design-2026 #primary .hhc-cover-kicker,
body.hhx-enabled:is(.hhx-club-scenes-ready,.hhx-first-paint).hhx-site-context-players.habs-design-2026 #primary .hhc-cover-season {
  color: var(--hh-section-ice);
}

/* Keep native cover links, article cards, captions, taxonomy and pagination in their WordPress order. */
body.hhx-enabled:is(.hhx-story-scenes-ready,.hhx-first-paint).hhx-site-archive.habs-design-2026 #primary > .content-container.site-container,
body.hhx-enabled.hhx-broadcast-ready[data-hhx-scene="journal"].habs-design-2026 #primary .hh-editorial {
  box-sizing: border-box;
  width: min(1160px,calc(100% - clamp(24px,5vw,72px)));
  max-width: 1160px;
  margin-inline: auto;
}
body.hhx-enabled:is(.hhx-story-scenes-ready,.hhx-first-paint).hhx-site-archive.habs-design-2026 :is(#wrapper,#inner-wrap,#content,#primary,.content-bg) {
  background: var(--hh-section-ink) !important;
}
body.hhx-enabled:is(.hhx-story-scenes-ready,.hhx-first-paint).hhx-site-archive.habs-design-2026 #archive-container {
  margin-block: clamp(12px,2vw,28px);
  border-top: 3px solid #d70635;
}
body.hhx-enabled:is(.hhx-story-scenes-ready,.hhx-first-paint).hhx-site-archive.habs-design-2026 #archive-container .entry-list-item:first-child .entry-content-wrap {
  background: var(--hh-section-panel) !important;
}
body.hhx-enabled:is(.hhx-story-scenes-ready,.hhx-first-paint).hhx-site-archive.habs-design-2026 #archive-container .entry-list-item:first-child :is(.entry-title a,.entry-footer a) { color: var(--hh-section-paper) !important; }
body.hhx-enabled:is(.hhx-story-scenes-ready,.hhx-first-paint).hhx-site-archive.habs-design-2026 #archive-container .entry-list-item:first-child :is(.entry-meta,.entry-meta a,.entry-summary,.entry-summary p) { color: var(--hh-section-ice) !important; }
body.hhx-enabled:is(.hhx-story-scenes-ready,.hhx-first-paint).hhx-site-archive.habs-design-2026 #archive-container .entry-list-item:first-child :is(.entry-taxonomies,.entry-taxonomies a) { color: var(--hh-section-signal) !important; }
body.hhx-enabled:is(.hhx-story-scenes-ready,.hhx-first-paint).hhx-site-archive.habs-design-2026 #archive-container .loop-entry:not(:has(.post-thumbnail)) { display:block; }
body.hhx-enabled:is(.hhx-story-scenes-ready,.hhx-first-paint).hhx-site-archive.habs-design-2026 #primary .pagination {
  background: var(--hh-section-paper);
}
/* Keep one action row between navigation and the first story, including the
   interval before the client has attached the Back, Saved and Share buttons. */
html.hh-live-js body.hhx-enabled.hhx-first-paint.hhx-site-archive #primary:not(:has(> .hhx-utility-bar))::before {
  content: "";
  display: block;
  block-size: 44px;
}
body.hhx-enabled:is(.hhx-story-scenes-ready,.hhx-first-paint).hhx-site-archive.habs-design-2026 #primary > .hhx-utility-bar {
  --hhx-scene-action-color: var(--hh-section-paper);
  --hhx-scene-action-line: #eeeae14d;
  position: static;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(1160px,calc(100% - 24px));
  min-height: 44px;
  height: 44px;
  margin: 0 auto;
  padding: 0 4px;
  color: var(--hhx-scene-action-color);
  background: transparent;
}
body.hhx-enabled.hhx-story-scenes-ready.hhx-site-article.habs-design-2026 #primary article.single-entry .entry-content { max-width: 70ch; }
