/* Mockup C: time-ordered results night. Night board for the season, paper panels for detail. */
:root { --night: #182f43; --night-2: #203a51; --night-line: #2f4c66; --on-night: #f2eee2; --on-night-muted: #a8b6c3; --ivory: #fff4df; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.mast { padding: 26px 0 18px; }
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
h1 { font: 400 42px/1.08 var(--serif); margin: 0 0 12px; max-width: 1060px; letter-spacing: -.01em; }
h2 { font: 400 28px/1.15 var(--serif); margin: 0 0 6px; }
h3 { font: 400 26px/1.15 var(--serif); margin: 0 0 6px; }
.status { font: 400 12.5px/1.5 var(--mono); color: var(--muted); margin: 0; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; max-width: 760px; }

/* Board */
.board { background: var(--night); color: var(--on-night); border-radius: 4px; padding: 22px 22px 16px; margin: 6px 0 28px; position: relative; }
.board h2 { color: var(--on-night); }
.board-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.board-caption { color: var(--on-night-muted); margin: 0; font-size: 15px; max-width: 640px; min-height: 2.9em; }
.board-caption b { color: var(--ivory); font-weight: 600; }
.season-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.season-nav, .season-actions { display: flex; gap: 6px; align-items: center; }
.season-controls button { background: transparent; color: var(--on-night); border: 1px solid var(--night-line); border-radius: 3px; padding: 7px 11px; font-size: 13px; min-height: 36px; }
.season-controls button:hover { border-color: var(--on-night-muted); }
.season-controls .primary { background: var(--ivory); color: var(--night); border-color: var(--ivory); font-weight: 600; }
.season-controls span { font-size: 12px; color: var(--on-night-muted); padding: 0 4px; min-width: 128px; text-align: center; white-space: nowrap; }
.ww-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.ww-label { font: 500 11.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--on-night-muted); }
.ww-select { display: grid; grid-template-columns: repeat(7, minmax(52px, auto)); border: 1px solid var(--night-line); border-radius: 3px; overflow: hidden; }
.ww-select button { background: transparent; color: var(--on-night); border: 0; border-left: 1px solid var(--night-line); padding: 7px 10px; font: 500 12.5px/1.2 var(--sans); min-height: 36px; }
.ww-select button:first-child { border-left: 0; }
.ww-select button[aria-checked="true"] { background: var(--ivory); color: var(--night); font-weight: 700; }
.ww-select button small { display: block; font: 400 10.5px/1.2 var(--mono); opacity: .8; }
.ratings-only { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 22px; align-items: end; margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--night-line); border-radius: 3px; color: var(--on-night-muted); font-size: 12.5px; line-height: 1.5; }
.ratings-only h3 { font: 600 12px/1.3 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--on-night); margin: 0 0 4px; }
.ratings-only p { margin: 0; max-width: 760px; }
.ratings-only .mix { display: grid; grid-template-columns: repeat(7, 38px); gap: 4px; align-items: end; }
.ratings-only .mix div { text-align: center; font: 400 10.5px/1.2 var(--mono); }
.ratings-only .mix i { display: block; margin: 0 auto 3px; width: 14px; background: #7d93a8; border-radius: 1px; }
.board-figure { position: relative; margin-top: 14px; }
#board { display: block; width: 100%; overflow: visible; }
#board text { font-family: var(--mono); fill: var(--on-night-muted); font-size: 11px; }
#board .lane-label { fill: var(--on-night); font-family: var(--sans); font-size: 12px; }
#board .day-label { fill: var(--on-night); font-size: 11px; letter-spacing: .04em; }
#board .anno { fill: var(--ivory); font-size: 11px; }
#board .anno.down { fill: #f3b394; }
#board .anno.up { fill: #a7dcb8; }
#board .end-label { font-size: 12px; font-weight: 600; }
.board-note { color: var(--on-night-muted); font-size: 12.5px; margin: 8px 0 0; }
.board-note i { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin: 0 4px 0 10px; border-radius: 1px; }
.tip { position: absolute; pointer-events: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; width: 250px; box-shadow: 0 6px 18px rgba(10, 20, 30, .25); z-index: 5; }
.tip .mono { font-size: 11px; color: var(--muted); }
.live { display: none; }

/* Games to watch */
.watch { margin: 0 0 30px; }
.watch-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.watch-list li { display: grid; grid-template-columns: minmax(0, 15fr) minmax(0, 20fr) minmax(220px, 12fr); gap: 4px 24px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.watch-list li:hover { background: var(--paper-2); }
.watch-list .gm { font-size: 15px; line-height: 1.3; }
.watch-list .gm small { display: block; font: 400 11.5px/1.4 var(--mono); color: var(--muted); }
.watch-list .say { font-size: 14px; color: var(--ink-2); }
.watch-list .say b { font-weight: 600; color: var(--ink); }
.watch-list svg { width: 100%; height: 26px; display: block; }
.watch-list li.watch-axis { cursor: default; padding: 8px 6px 6px; font: 400 10.5px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.watch-list li.watch-axis:hover { background: none; }
.watch-axis span:last-child { display: flex; justify-content: space-between; padding: 0 2px; }
.watch-axis i { font-style: normal; }
.watch-list li.busy { display: block; cursor: default; }
.watch-list .gm .tm { display: block; }
.watch-list .gm em, .detail .tags b { font: 400 11px/1.3 var(--mono); color: var(--slate); font-style: normal; margin-left: 3px; }
.detail .tags { margin: -2px 0 10px; font-size: 13px; color: var(--ink-2); }

/* Feed and detail */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.feed-panel { position: sticky; top: 12px; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.feed .day { font: 600 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 14px 6px 6px; background: var(--paper); position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line-soft); }
.feed .row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 6px; border-bottom: 1px solid var(--line-soft); cursor: pointer; align-items: baseline; }
.feed .row:hover { background: var(--paper-2); }
.feed .row[aria-current="true"] { background: var(--card); box-shadow: inset 3px 0 var(--ink); }
.feed .row.now { background: var(--gold-soft); }
.feed .t { font: 400 11.5px/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.feed .m { font-size: 14px; line-height: 1.3; }
.feed .m i { font-style: normal; color: var(--muted); }
.feed .rk { font: 500 10.5px/1 var(--mono); color: var(--slate); border: 1px solid var(--slate-soft); border-radius: 2px; padding: 1px 3px; margin-left: 3px; vertical-align: 1px; }
.feed .r { grid-column: 2; font-size: 12.5px; color: var(--ink-2); }
.feed .r.pinned { color: var(--gold); font-weight: 600; }
.feed .r.pending { color: var(--muted); font-style: italic; }
.feed .c { grid-column: 3; grid-row: 1 / span 2; text-align: right; font: 500 13px/1.3 var(--mono); }
.feed .c em { display: block; font-style: normal; font-size: 11px; }
.up { color: var(--green); } .down { color: var(--rust); } .flat { color: var(--muted); }
.feed .ww .m { font-weight: 600; }

.detail { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 22px 24px 24px; min-height: 420px; }
.detail .kicker { margin-bottom: 6px; }
.detail .lede { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.detail figure { margin: 0 0 22px; }
.detail figcaption { font: 600 13px/1.4 var(--sans); margin-bottom: 8px; }
.detail figcaption span { font-weight: 400; color: var(--muted); }
.outcomes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; margin-top: 30px; }
.outcome { display: flex; flex-direction: column; align-items: stretch; background: none; border: 0; padding: 0; text-align: center; }
.outcome .plot { height: 120px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); position: relative; }
.outcome .bar { width: 100%; background: var(--slate-soft); transition: height .35s ease, background .2s; min-height: 2px; position: relative; }
.outcome .bar.helps { background: var(--green-2); }
.outcome .bar.hurts { background: #c98a6c; }
.outcome .val { position: absolute; bottom: calc(100% + 3px); left: 0; right: 0; font: 600 12px/1 var(--mono); }
.outcome .lab { font-size: 11.5px; line-height: 1.25; margin-top: 6px; min-height: 2.5em; }
.outcome .lik { font: 400 10.5px/1.2 var(--mono); color: var(--muted); }
.outcome.in-season .plot::after { content: "this season"; position: absolute; top: -2px; left: 50%; transform: translate(-50%, -100%); font: 400 9.5px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.outcome.in-season .lab { font-weight: 700; }
.outcome[aria-pressed="true"] .bar { outline: 2px solid var(--gold); outline-offset: 1px; }
.outcome[aria-pressed="true"] .lab::before { content: "Pinned · "; color: var(--gold); font-weight: 700; }
.outcomes.ww .outcome .bar { background: var(--slate-soft); }
.outcomes.ww .outcome[aria-pressed="true"] .bar { background: var(--green-2); outline-color: var(--ink); }
.outcomes.ww .outcome[aria-pressed="true"] .lab::before { content: "Selected · "; color: var(--ink); }
.outcome:hover .bar { filter: brightness(.94); }
.live-line { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.movers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.mover { display: grid; grid-template-columns: 26px minmax(0, 180px) minmax(0, 1fr) 58px; gap: 8px; align-items: center; font-size: 12.5px; }
.mover .rk { font: 400 11px/1 var(--mono); color: var(--muted); text-align: right; }
.mover .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mover.ww .nm { font-weight: 700; color: var(--green); }
.mover .track { height: 12px; position: relative; background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat; }
.mover .track i { position: absolute; top: 2px; height: 8px; border-radius: 1px; }
.mover .v { font: 400 11px/1 var(--mono); text-align: right; color: var(--ink-2); }
.cutline { border-top: 1px dashed var(--rust); margin: 2px 0; font: 400 10px/1.6 var(--mono); color: var(--rust); text-align: right; }
.links svg { width: 100%; display: block; }
.links text { font: 400 11.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.links .edge-label { font: 400 10px var(--mono); fill: var(--muted); }
.note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.busy { font: 400 12px/1.4 var(--mono); color: var(--muted); }

/* Slope */
.cutoff { margin: 40px 0 28px; }
#slope { width: 100%; display: block; }
#slope text { font: 400 12px var(--sans); fill: var(--ink); }
#slope .col-label { font: 600 12px var(--mono); fill: var(--muted); letter-spacing: .03em; }
#slope .rk { font: 400 11px var(--mono); fill: var(--muted); }
.slope-table { display: none; width: 100%; border-collapse: collapse; font-size: 13px; }
.slope-table th { font: 600 11px var(--mono); color: var(--muted); text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.slope-table th:first-child, .slope-table td:first-child { text-align: left; }
.slope-table td { padding: 6px 4px; border-bottom: 1px solid var(--line-soft); text-align: right; font-family: var(--mono); font-size: 12px; }
.slope-table td:first-child { font-family: var(--sans); font-size: 13px; }
.slope-table tr.ww td { font-weight: 700; color: var(--green); }
.slope-table tr.cut td { border-bottom: 1px dashed var(--rust); }

.method { border-top: 1px solid var(--line); padding: 26px 0 60px; }
.method .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.method h3 { font: 600 14px/1.4 var(--sans); margin: 0 0 6px; }
.method p { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 31px; }
  h2 { font-size: 24px; }
  .board { padding: 16px 14px 12px; margin: 4px -4px 22px; }
  .board-figure { display: none; }
  .board-note { display: none; }
  .live { display: block; position: sticky; top: 0; margin-top: 12px; }
  .live svg { width: 100%; display: block; }
  .season-controls, .season-nav, .season-actions { width: 100%; }
  .season-controls span { min-width: 0; flex: 1; }
  .season-actions button { flex: 1; }
  .ww-select { width: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .ratings-only { grid-template-columns: minmax(0, 1fr); }
  .ratings-only .mix { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .ww-select button { padding: 7px 2px; font-size: 12px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .watch-list li { grid-template-columns: minmax(0, 1fr); padding: 12px 2px; }
  .watch-list li.watch-axis { display: none; }
  .feed-panel { position: static; }
  .feed { max-height: 460px; }
  .detail { padding: 18px 14px; min-height: 0; }
  .outcomes { gap: 3px; }
  .outcome .plot { height: 96px; }
  .outcome .lab { font-size: 10.5px; }
  .mover { grid-template-columns: 22px minmax(0, 118px) minmax(0, 1fr) 50px; font-size: 12px; gap: 6px; }
  #slope { display: none; }
  .slope-table { display: table; }
  .method .cols { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Narrative-first layout: lede and Holliston selector on paper, the season board lower down. */
.intro { margin: 4px 0 30px; }
.intro .lede { font: 400 21px/1.5 var(--sans); max-width: 860px; margin: 0 0 18px; color: var(--ink); }
.intro .lede b { font-weight: 600; }
.intro .ww-label { color: var(--muted); }
.intro .ww-select { border-color: var(--line); background: var(--card); }
.intro .ww-select button { color: var(--ink); border-left-color: var(--line); min-width: 74px; padding: 9px 12px; font-size: 14px; }
.intro .ww-select button small { font-size: 12px; color: var(--muted); opacity: 1; }
.intro .ww-select button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.intro .ww-select button[aria-checked="true"] small { color: var(--paper); }
.intro .ratings-only { color: var(--muted); border-color: var(--line); max-width: 1000px; }
.intro .ratings-only h3 { color: var(--ink-2); }
.intro .ratings-only .mix i { background: var(--draw); }
.detail { margin: 0 0 40px; max-width: 980px; }
.board-section { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 8px; }
.board-section > .sub { max-width: 860px; }
.board { margin-top: 14px; }
.feed-panel { margin: 22px 0 0; max-width: 760px; }
.feed-panel h3 { font: 400 24px/1.2 var(--serif); margin: 0 0 4px; }
.feed { max-height: 460px; }
@media (max-width: 860px) {
  .intro .lede { font-size: 18px; }
  .intro .ww-select button { min-width: 0; padding: 8px 2px; font-size: 12.5px; }
}
.feed-panel { position: static; }

/* Combined page: the Holliston selector is a sticky bar directly under <main>, so it stays visible
   through every section. */
.ww-bar { position: sticky; top: 0; z-index: 30; background: var(--paper); padding: 8px 0; margin: 0 0 12px; border-bottom: 1px solid var(--line-soft); }
.ww-bar .ww-row { margin: 0; }
.ww-bar .ww-label { color: var(--muted); }
.ww-bar .ww-select { border-color: var(--line); background: var(--card); }
.ww-bar .ww-select button { color: var(--ink); border-left-color: var(--line); min-width: 74px; padding: 8px 12px; font-size: 14px; }
.ww-bar .ww-select button small { font-size: 12px; color: var(--muted); opacity: 1; }
.ww-bar .ww-select button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.ww-bar .ww-select button[aria-checked="true"] small { color: var(--paper); }
main > .ratings-only { color: var(--muted); border-color: var(--line); max-width: 1000px; margin: 0 0 30px; }
main > .ratings-only h3 { color: var(--ink-2); }
main > .ratings-only .mix i { background: var(--draw); }
.figures, .games, .sources { margin: 0 0 40px; }
#standings { margin-top: 26px; }
@media (max-width: 860px) {
  .ww-bar .ww-select button { min-width: 0; padding: 7px 2px; font-size: 12.5px; }
  .ww-bar .ww-label { display: none; }
}

/* Ratings-only panel as a disclosure: open on wide screens, collapsed to its title on phones. */
main > .ratings-only { display: block; padding: 10px 12px; }
.ratings-only summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ratings-only summary::-webkit-details-marker { display: none; }
.ratings-only summary h3 { margin: 0; }
.ratings-only .ro-hint { font: 500 12px/1 var(--mono); color: var(--green); text-decoration: underline; text-underline-offset: 3px; flex-shrink: 0; }
.ratings-only .ro-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 22px; align-items: end; margin-top: 6px; }
@media (max-width: 860px) { .ratings-only .ro-body { grid-template-columns: minmax(0, 1fr); } }

/* The "this season" marker sits under the result label, clear of the bar values. */
.outcome.in-season .plot::after { content: none; }
.outcome.in-season .lik::after { content: "this season"; display: block; font: 600 10px/1.3 var(--mono); color: var(--ink); margin-top: 2px; }

/* Schedule links as sentences. */
.links-list { list-style: none; margin: 0; padding: 0; }
.links-list li { font-size: 14px; line-height: 1.5; padding: 6px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.links-list li b { color: var(--ink); font-weight: 600; }
.links-list .rk2 { font: 400 11px/1 var(--mono); color: var(--slate); margin: 0 4px 0 2px; }

/* table.js draws its own title; the section heading above names it. */
#t-st-title { display: none; }
#slope, .slope-table { display: none; }

.update-banner { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 8px 16px; background: #1c1b18; color: #fff; font-size: 14px; }
.update-banner[hidden] { display: none; }
.update-banner button { font: inherit; padding: 4px 12px; border-radius: 6px; border: 1px solid #fff; background: #fff; color: #1c1b18; cursor: pointer; }
.site-foot { padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: #6b6a64; }
.site-foot a { color: inherit; }
