:root {
  --bg: #fff; --ink: #10192b; --muted: #56607a; --line: #d9dde6; --tint: #f1f3f7;
  --navy: #0d1a30; --orange: #d8480f; --link: #1c4f9c; --edge: transparent;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141c; --ink: #e9ecf3; --muted: #a3acbf; --line: #2c3443; --tint: #1a202b;
    --link: #8db8f5; --edge: rgb(255 255 255 / .28);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Libre Franklin", system-ui, sans-serif; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }

/* Header: the double band is the same sleeve stripe the team panels wear. */
.masthead {
  background: var(--navy); color: #fff; padding: 18px max(16px, calc((100% - 1040px) / 2 + 16px)) 34px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px;
  background-image: linear-gradient(var(--orange) 0 6px, transparent 6px 10px, var(--orange) 10px 16px);
  background-size: 100% 16px; background-position: 0 100%; background-repeat: no-repeat;
}
.masthead h1 { margin: 0; font: 800 2rem/1.1 var(--display); }
.masthead h1 a { color: inherit; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.nav a { color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--orange); }
/* Other teams' guides (guide.js sets the colors). Outside the header the accent is neutral,
   because some teams' stripes are unreadable on the page background. */
.team-guide { --orange: var(--ink); }
.team-guide .masthead { --navy: var(--team); --orange: var(--stripe); color: var(--on-team); }
.team-guide .nav a { color: inherit; }
.team-guide .nav a:hover, .team-guide .nav a[aria-current="page"] { border-color: currentColor; }
.team-guide .masthead :focus-visible { outline-color: currentColor; }
/* The team picker (pick.html) */
.picker { --navy: #2b3345; --orange: var(--ink); }
.picker .masthead { --orange: #a3acbf; }
.no-picker .to-picker { display: none; }
.teams { display: grid; gap: 24px 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
.teams h3 { margin: 0 0 8px; font-size: 1rem; }
.teams ul { margin: 0; padding: 0; list-style: none; }
.teams a {
  display: block; margin-bottom: 8px; padding: 10px 26px 10px 12px; text-decoration: none; color: var(--on-team);
  font: 800 1.5rem/1.2 var(--display); box-shadow: inset 0 0 0 1px var(--edge);
  background: linear-gradient(var(--stripe), var(--stripe)) right 8px top / 6px 100% no-repeat var(--team);
}
.teams a:hover { text-decoration: underline; text-underline-offset: 4px; }
main { max-width: 1040px; margin: 0 auto; padding: 24px 16px; }
.banner { background: var(--tint); padding: 12px 16px; margin-bottom: 20px; }
.outlook h2, .prose > h2 { margin: 0; font: 800 2.5rem/1.1 var(--display); }
.outlook-line { margin: 4px 0 20px; color: var(--muted); }
.outlook-line strong { color: var(--ink); }
.stats { display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 5vw, 40px); margin: 8px 0 12px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font: 800 2.5rem/1.1 var(--display); }
.stats div:first-child dd { color: var(--orange); }
.week-tabs { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.week-tab { font: inherit; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 0; margin-bottom: -1px; cursor: pointer; }
.week-tab:hover { color: var(--ink); }
.week-tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-color: var(--orange); }

.plate {
  display: inline-block; flex: none; width: 3.7em; padding: 3px 8px 3px 2px; text-align: center;
  font-weight: 700; font-size: .8rem; line-height: 1.4; color: var(--on-team);
  background: linear-gradient(var(--stripe), var(--stripe)) right 3px top / 3px 100% no-repeat var(--team);
  box-shadow: inset 0 0 0 1px var(--edge);
}

/* A game worth watching: the team you want fills the panel. */
.pick { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; margin-bottom: 16px; }
.pick-side {
  color: var(--on-team); padding: 18px 64px 20px 22px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(90deg, var(--stripe) 0 10px, transparent 10px 16px, var(--stripe) 16px 26px)
    right 18px top / 26px 100% no-repeat var(--team);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.pick-side p { margin: 0; }
.pick-verb { font-weight: 600; }
.pick-team { font: 800 2.5rem/1 var(--display); margin: 2px 0 6px; }
.pick.lean .pick-team { font-size: 3.6rem; }
.pick.hard .pick-team { font-size: clamp(3.5rem, 7.5vw, 6rem); }
.pick.hard .pick-side { padding-block: 30px; }
/* Seeding and rivalry leans are real but small, so they take less room. */
.pick:not(.hard, .lean) { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); }
.pick:not(.hard, .lean) .pick-side { padding-block: 12px; }
.pick-info { align-self: center; }
.kickoff { color: var(--muted); font-size: .9rem; }
.odds-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.odds-bar { display: flex; gap: 2px; height: 8px; margin-top: 6px; }
.odds-bar i { background: var(--team); box-shadow: inset 0 0 0 1px var(--edge); }
.why { margin: 10px 0 0; max-width: 60ch; }
.chip { display: inline-block; margin-top: 8px; font-size: .9rem; font-weight: 600; }

/* Everything else: one line each, reason on request. */
.rest-title { font: 800 1.75rem/1.1 var(--display); margin: 36px 0 8px; }
.rest { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row summary {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 13.5em 1em; gap: 16px; align-items: center;
  padding: 10px 4px; cursor: pointer; list-style: none;
}
.row summary::-webkit-details-marker, .tree summary::-webkit-details-marker { display: none; }
.row summary:hover { background: var(--tint); }
.row summary::after { content: "+"; font-weight: 600; text-align: right; }
.row[open] summary::after { content: "−"; }
.side { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.side .pct { color: var(--muted); }
.side.is-lean .name { font-weight: 700; }
.row .why { margin: 0; padding: 2px 4px 14px; }

.conference h3 { font: 800 1.75rem/1.1 var(--display); margin: 28px 0 12px; }
.divisions { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.standings-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.standings-table caption { text-align: left; font-weight: 700; padding-bottom: 4px; }
.conference-picture caption { font: 800 1.75rem/1.1 var(--display); }
.standings-table th, .standings-table td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.standings-table thead th { color: var(--muted); font-size: .85rem; }
.standings-table th[scope="row"] { padding-left: 61px; }
.standings-table .plate { width: 47px; margin: 0 10px 0 -57px; }
.standings-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.standings-table tr.is-team { background: color-mix(in srgb, var(--orange) 14%, transparent); }
.standings-table tr.is-team .team-name, .standings-table td.seed { font-weight: 700; }
.standings-table .tag { margin-left: 8px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.standings-table tr.divider td { padding-top: 16px; color: var(--muted); font-size: .85rem; border-top: 3px solid var(--ink); }
.meter { display: block; height: 5px; width: 64px; margin: 3px 0 0 auto; background: var(--tint); }
.meter i { display: block; height: 100%; background: var(--team); box-shadow: inset 0 0 0 1px var(--edge); }
.note, .loading, .error { color: var(--muted); }
.note { font-size: .9rem; margin-top: 24px; max-width: 70ch; }

/* FAQ tree: native <details>, joined by branch lines. */
.answer { max-width: 75ch; }
.tree-tools { display: flex; gap: 20px; margin: 12px 0 20px; }
.tree-tools button { font: inherit; color: var(--link); background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tree summary { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; cursor: pointer; list-style: none; }
.tree summary::before {
  content: "+"; flex: none; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center;
  font: 700 16px/1 "Libre Franklin", system-ui, sans-serif; background: var(--bg); border: 2px solid var(--muted);
}
.tree details[open] > summary::before { content: "−"; background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tree summary:hover::before { border-color: var(--orange); }
.tree summary h2, .tree summary h3, .tree summary h4 { margin: 0; font-size: 1rem; line-height: 1.5; font-weight: 600; }
.tree > details { margin-bottom: 20px; }
.tree > details > summary h2 { font: 800 1.75rem/1 var(--display); }
.kids { margin-left: 10px; }
.kids > details { position: relative; padding-left: 30px; }
.kids > details::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid var(--line); }
.kids > details:last-child::before { bottom: auto; height: 18px; }
.kids > details::after { content: ""; position: absolute; left: 0; top: 17px; width: 30px; border-top: 2px solid var(--line); }
.answer { padding: 0 0 12px 34px; }
.answer > p:first-child, .answer > ul:first-child, .answer > ol:first-child { margin-top: 0; }
.answer p, .answer ul, .answer ol { margin: 10px 0; }
.answer ul, .answer ol { padding-left: 1.3em; }
.answer .kids { margin-left: 0; }

.footer { width: min(1008px, 100% - 32px); margin: 24px auto 0; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer p { margin: 4px 0; }
.footer a { color: inherit; }
.staging-bar { background: #b3261e; color: #fff; font-weight: 600; text-align: center; padding: .5rem 1rem; }

@media (max-width: 820px) {
  .masthead { padding-top: 14px; }
  .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .nav { gap: 0 16px; font-size: .95rem; }
  .pick, .pick:not(.hard, .lean) { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 28px; }
  .row summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1em; gap: 4px 10px; }
  .row .kickoff { grid-column: 1 / 3; grid-row: 2; }
  .row summary::after { grid-column: 3; grid-row: 1; }
  .side { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0 8px; line-height: 1.3; }
  .side .plate { grid-row: 1 / 3; }
  .standings-table .tag { display: block; margin-left: 0; }
  .answer { padding-left: 0; }
  .kids > details { padding-left: 20px; }
  .kids > details::after { width: 20px; }
}
@media (max-width: 420px) {
  .side { grid-template-columns: auto; font-size: .9rem; }
  .side .plate { grid-row: auto; width: 47px; margin-bottom: 3px; }
  .pick-side { padding: 16px 44px 18px 16px; background-position: right 8px top; }
  .pick.hard .pick-team { font-size: 14vw; }
  .pick.lean .pick-team { font-size: 12.5vw; }
  .pick .pick-team { font-size: 2.1rem; }
  .week-tabs { gap: 0 14px; }
  .week-tab { font-size: .9rem; }
  .standings-table th[scope="row"] { padding-left: 4px; }
  .standings-table .plate { display: block; margin: 0 0 4px; }
  .meter { width: 44px; }
}
@media (min-width: 821px) and (max-width: 980px) {
  .odds-line .side { display: grid; grid-template-columns: auto auto; gap: 0 8px; line-height: 1.3; }
  .odds-line .plate { grid-row: 1 / 3; }
}
