/* NHL uses the same layout, typography and navigation as the other ledgers. */
.hall-video-context { display: block; margin-top: .25rem; color: var(--muted, #b9c5ce); font-size: .82rem; font-weight: 500; }
.hero {
  background-color: #101923;
  background-image: linear-gradient(90deg, #101923 14%, #101923ed 45%, var(--rink-shade, #101923a8) 72%, var(--rink-edge, transparent) 96%), url("/nhl/arena.webp?v=ice-rink");
  background-position: center, right center;
  background-size: 100% 100%, auto 100%;
  background-repeat: no-repeat;
  border-bottom-color: #75abc4;
}
.hero small { color: #a2d6ea; }
.fml-rail-heading { background: #1b2633 url("/nhl/arena.webp") 78% 50% / cover; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.mlb-timeline { max-width: 100%; margin: 1rem 0; }
.mlb-timeline svg,svg.mlb-timeline { display: block; width: 100%; height: auto; }
.mlb-timeline svg text,svg.mlb-timeline text { fill: #ccd5e1; }
.mlb-shortlist { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .8rem; }
#content .duo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#content .duo > div { border-top: 3px solid var(--points-negative); }
#content .duo > div:nth-child(2) { border-top-color: var(--points-positive); }
#content .duo > div, #content .hall-event { border-radius: 7px; padding: 14px; background: #223040; }
#content .hall-event + .hall-event { margin-top: .75rem; }
#content .duo .hall-event { padding: .25rem 0 0; }
#content .hall-event h3 { margin: .35rem 0 0; line-height: 1.25; }
#content .hall-event p { margin: .45rem 0; }
#content .table-scroll :is(th,td):last-child { text-align: right; }
#content .table-scroll :is(th,td):nth-child(3) { min-width: 6rem; }
@media(max-width:740px) {
  .hero { --rink-shade: #101923c4; --rink-edge: #10192347; }
  #content .duo { grid-template-columns: 1fr; }
  #content .table-scroll :is(th,td) { padding-inline: .22rem; }
}
body,.hero h1,.fml-select,.fml-foot,.directory { font-family: system-ui, Arial, sans-serif; }
#content .duo .hall-event { border: 0; }
#content button.team,#rail button[data-club],#team {
  background: var(--club-fill,#293c51);
  color: var(--club-ink,#fff);
  border: 1px solid #8694a4;
  border-radius: 5px; padding: .35em .55em; font-weight: 700;
}
#team option { background: #24303e; color: #f5f3ee; }

.team-picker-control summary, .team-picker-options button { background: var(--palette-background); color: var(--palette-text); }
#timeline-panel { scroll-margin-top: 8rem; }

@media (prefers-reduced-motion: no-preference) {
  .draw-timeline[open] .chart-score { stroke-dasharray: 1; animation: draw-ledger-line .48s ease-out; }
  @keyframes draw-ledger-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
@media (max-width: 1199px) { .fml-left-slot { display: none; } }

@media (min-width: 741px) {
  .layout > aside {
    position: sticky;
    top: var(--sidebar-top);
    max-height: calc(100dvh - var(--sidebar-top) - 12px);
    overflow-y: auto;
  }
  .layout > aside .team-picker-options {
    position: static;
    max-height: min(35dvh, 18rem);
  }
  .layout > aside:not(.sidebar-fits) + .fml-left-slot {
    visibility: hidden;
  }
}

[data-club="F01"] { --club-fill: #AF1E2D; --club-ink: #fff; }
[data-club="F02"] { --club-fill: #B52231; --club-ink: #fff; }
[data-club="F03"] { --club-fill: #841C31; --club-ink: #fff; }
[data-club="F04"] { --club-fill: #EDBB32; --club-ink: #111; }
[data-club="F05"] { --club-fill: #00205B; --club-ink: #fff; }
[data-club="F06"] { --club-fill: #FAC729; --club-ink: #111; }
[data-club="F07"] { --club-fill: #6C192C; --club-ink: #fff; }
[data-club="F08"] { --club-fill: #183867; --club-ink: #fff; }
[data-club="F09"] { --club-fill: #E77722; --club-ink: #111; }
[data-club="F10"] { --club-fill: #0038A8; --club-ink: #fff; }
[data-club="F11"] { --club-fill: #CF0A2C; --club-ink: #fff; }
[data-club="F12"] { --club-fill: #CE1126; --club-ink: #fff; }
[data-club="F13"] { --club-fill: #5C2635; --club-ink: #fff; }
[data-club="F14"] { --club-fill: #111820; --club-ink: #fff; }
[data-club="F15"] { --club-fill: #006847; --club-ink: #fff; }
[data-club="F16"] { --club-fill: #D84908; --club-ink: #111; }
[data-club="F17"] { --club-fill: #FCB514; --club-ink: #111; }
[data-club="F18"] { --club-fill: #002F87; --club-ink: #fff; }
[data-club="F19"] { --club-fill: #003087; --club-ink: #fff; }
[data-club="F20"] { --club-fill: #00205B; --club-ink: #fff; }
[data-club="F21"] { --club-fill: #C8102E; --club-ink: #fff; }
[data-club="F22"] { --club-fill: #00539B; --club-ink: #fff; }
[data-club="F23"] { --club-fill: #CE1126; --club-ink: #fff; }
[data-club="F24"] { --club-fill: #041E42; --club-ink: #fff; }
[data-club="F25"] { --club-fill: #00205B; --club-ink: #fff; }
[data-club="F26"] { --club-fill: #CC0000; --club-ink: #fff; }
[data-club="F27"] { --club-fill: #6F263D; --club-ink: #fff; }
[data-club="F28"] { --club-fill: #8C2633; --club-ink: #fff; }
[data-club="F29"] { --club-fill: #006D75; --club-ink: #fff; }
[data-club="F30"] { --club-fill: #A01928; --club-ink: #fff; }
[data-club="F31"] { --club-fill: #002868; --club-ink: #fff; }
[data-club="F32"] { --club-fill: #DD6412; --club-ink: #111; }
[data-club="F33"] { --club-fill: #041E42; --club-ink: #fff; }
[data-club="F34"] { --club-fill: #FFB81C; --club-ink: #111; }
[data-club="F35"] { --club-fill: #041E42; --club-ink: #fff; }
[data-club="F36"] { --club-fill: #002654; --club-ink: #fff; }
[data-club="F37"] { --club-fill: #154734; --club-ink: #fff; }
[data-club="F38"] { --club-fill: #B4975A; --club-ink: #111; }
[data-club="F39"] { --club-fill: #001C2B; --club-ink: #fff; }
[data-club="F40"] { --club-fill: #69B3E7; --club-ink: #111; }
