/* MLB uses the same layout, typography and navigation as the other ledgers. */
.hero {
  background: linear-gradient(90deg, #101923 24%, #101923bd 62%, #10192344), url("/mlb/ballpark.webp") right 59% / cover;
  border-bottom-color: #b98564;
}
.hero small { color: #edbb96; }
.fml-rail-heading { background: #1b2633 url("/mlb/ballpark.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) {
  #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; }
[data-club="ANA"], #team:has(option[value="ANA"]:checked) { --club-fill: #a32136; }
[data-club="ARI"], #team:has(option[value="ARI"]:checked) { --club-fill: #913349; }
[data-club="ATL"], #team:has(option[value="ATL"]:checked) { --club-fill: #253e64; }
[data-club="BAL"], #team:has(option[value="BAL"]:checked) { --club-fill: #973f14; }
[data-club="BOS"], #team:has(option[value="BOS"]:checked) { --club-fill: #95303c; }
[data-club="CHA"], #team:has(option[value="CHA"]:checked) { --club-fill: #25282c; }
[data-club="CHN"], #team:has(option[value="CHN"]:checked) { --club-fill: var(--cubs-control-blue); --club-ink: #fff; }
[data-club="CIN"], #team:has(option[value="CIN"]:checked) { --club-fill: #ad283c; }
[data-club="CLE"], #team:has(option[value="CLE"]:checked) { --club-fill: #20375b; }
[data-club="COL"], #team:has(option[value="COL"]:checked) { --club-fill: #55426e; }
[data-club="DET"], #team:has(option[value="DET"]:checked) { --club-fill: #233950; }
[data-club="HOU"], #team:has(option[value="HOU"]:checked) { --club-fill: #283e62; }
[data-club="KCA"], #team:has(option[value="KCA"]:checked) { --club-fill: #285490; }
[data-club="LAN"], #team:has(option[value="LAN"]:checked) { --club-fill: #235694; }
[data-club="MIA"], #team:has(option[value="MIA"]:checked) { --club-fill: #24667a; }
[data-club="MIL"], #team:has(option[value="MIL"]:checked) { --club-fill: #273c58; }
[data-club="MIN"], #team:has(option[value="MIN"]:checked) { --club-fill: #293b5d; }
[data-club="NYA"], #team:has(option[value="NYA"]:checked) { --club-fill: #28384d; }
[data-club="NYN"], #team:has(option[value="NYN"]:checked) { --club-fill: #28528c; }
[data-club="OAK"], #team:has(option[value="OAK"]:checked) { --club-fill: #225844; }
[data-club="PHI"], #team:has(option[value="PHI"]:checked) { --club-fill: #ac3042; }
[data-club="PIT"], #team:has(option[value="PIT"]:checked) { --club-fill: #e2b849; --club-ink: #171c23; }
[data-club="SDN"], #team:has(option[value="SDN"]:checked) { --club-fill: #61452e; }
[data-club="SEA"], #team:has(option[value="SEA"]:checked) { --club-fill: #215562; }
[data-club="SFN"], #team:has(option[value="SFN"]:checked) { --club-fill: #984b23; }
[data-club="SLN"], #team:has(option[value="SLN"]:checked) { --club-fill: #a52c3c; }
[data-club="TBA"], #team:has(option[value="TBA"]:checked) { --club-fill: #214b67; }
[data-club="TEX"], #team:has(option[value="TEX"]:checked) { --club-fill: #264a80; }
[data-club="TOR"], #team:has(option[value="TOR"]:checked) { --club-fill: #275594; }
[data-club="WAS"], #team:has(option[value="WAS"]:checked) { --club-fill: #99324b; }

.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;
  }
}
