:root {
  --green: #00734A;
  --green-dark: #005A3A;
  --green-light: #4CC38A;
  --loss: #C62828;
  --ink: #141414;
  --muted: #555555;
  --line: #DADADA;
  --black: #000000;
  --bg: #FFFFFF;
  --rule: #111111;
  --panel: #F3F4F3;
  --panel-2: #E6E8E6;
  --card: #FFFFFF;
  --card-shadow: rgba(0,0,0,.12);
  --green-text: #00734A;
  --green-hover: #005A3A;
  --loss-text: #C62828;
  --next-row: #F1F6F3;
  --flash: #DCEFE5;
  --ink-2: #333333;
  --watch-bg: #111111;
  --head: 'Big Shoulders Display', sans-serif;
}
/* Dark mode: follows the device setting unless someone picks light or dark with the button (saved in the rw_theme cookie) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121413;
  --ink: #ECEDEC;
  --ink-2: #C9CCCA;
  --muted: #A3A8A5;
  --line: #2E322F;
  --rule: #D6D9D7;
  --panel: #1B1E1C;
  --panel-2: #262A27;
  --card: #1B1E1C;
  --card-shadow: rgba(0,0,0,.5);
  --green-text: #00B273;
  --green-hover: #4CC38A;
  --loss-text: #EF5350;
  --next-row: #16271F;
  --flash: #1F4634;
  --watch-bg: #1B1E1C;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121413;
    --ink: #ECEDEC;
    --ink-2: #C9CCCA;
    --muted: #A3A8A5;
    --line: #2E322F;
    --rule: #D6D9D7;
    --panel: #1B1E1C;
    --panel-2: #262A27;
    --card: #1B1E1C;
    --card-shadow: rgba(0,0,0,.5);
    --green-text: #00B273;
  --green-hover: #4CC38A;
    --loss-text: #EF5350;
    --next-row: #16271F;
    --flash: #1F4634;
    --watch-bg: #1B1E1C;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Public Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
a { color: var(--green-text); }
a:hover { color: var(--green-hover); }
table { border-collapse: collapse; }
h1, h2, h3, h4 { margin: 0; }
.muted { color: var(--muted); }
.quiet { color: var(--muted); font-size: 15px; margin: 0; }
.inner { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 48px; padding-bottom: 32px; }

/* Masthead */
.masthead { background: var(--black); color: #fff; }
.masthead > .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img { height: 60px; width: auto; display: block; }
.brand span { font-family: var(--head); font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: 0.01em; }
.brand em { font-style: normal; color: #00B273; }
.brand:hover, .brand:hover span { color: #fff; }
.brand.small img { height: 40px; }
.brand.small span { font-size: 26px; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.masthead nav a { color: #fff; text-decoration: none; padding: 10px 0; }
.masthead nav a:hover { color: var(--green-light); }
.strip { background: var(--green); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.theme-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; margin: 0 -8px 0 0; display: inline-flex; align-items: center; }
.theme-btn:hover { color: var(--green-light); }
.theme-btn svg { width: 20px; height: 20px; display: block; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.strip .inner { padding-top: 8px; padding-bottom: 8px; }

/* Section heads */
.head-rule { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; border-top: 4px solid var(--rule); padding-top: 10px; margin-bottom: 18px; }
.head-rule h2 { font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.head-rule > span { font-size: 14px; color: var(--muted); }
.head-rule.big { align-items: flex-end; }
.head-rule.big h2 { font-weight: 900; font-size: 48px; line-height: 1; letter-spacing: 0; }
.head-rule.big h2 small { font-size: 24px; color: var(--muted); font-weight: 800; margin-left: 6px; }
.head-rule.light { border-top-color: #fff; }
.head-rule.light > span { color: #BDBDBD; }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 2px; border: 2px solid var(--green); }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--bg); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Team picker */
.picker { background: var(--panel); border-bottom: 1px solid var(--line); }
.picker .inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.pk-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-right: 4px; }
.chip { display: inline-block; font-size: 14px; font-weight: 700; padding: 7px 12px; border: 2px solid var(--rule); border-radius: 2px; color: var(--ink); background: var(--bg); text-decoration: none; }
.chip:hover { background: var(--panel-2); color: var(--ink); }
.chip.on { background: var(--rule); color: var(--bg); }
.copy { margin-left: auto; font: inherit; font-size: 13px; font-weight: 600; color: var(--green-text); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 6px 0; }

/* Scoreboard (several teams) */
.col.full { flex: 1 1 100%; }
.sb { width: 100%; font-size: 15px; }
.sb th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; padding: 8px 12px; border-bottom: 2px solid var(--rule); }
.sb td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sb th:first-child, .sb td:first-child { padding-left: 0; }
.sb td.t a { font-weight: 700; color: var(--ink); text-decoration: none; }
.sb td.t a:hover { color: var(--green-text); text-decoration: underline; }
.sb td.rec { font-family: var(--head); font-weight: 800; font-size: 22px; line-height: 1.1; color: var(--green-text); white-space: nowrap; }

/* Match day */
.live { background: #0B0C0B; color: #fff; }
.live .inner { display: flex; flex-wrap: wrap; gap: 28px 40px; padding-top: 32px; padding-bottom: 36px; }
.player { flex: 999 1 560px; min-width: 0; aspect-ratio: 16 / 9; background: #1A1C1B; border: 1px solid #2E322F; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player > div { width: 100%; height: 100%; }
.today { flex: 1 1 300px; min-width: 0; }
.today ul { list-style: none; margin: 0 0 20px; padding: 0; }
.today li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #2E322F; }
.today .when { width: 88px; flex: none; white-space: nowrap; font-family: var(--head); font-weight: 800; font-size: 20px; }
.today .what { flex: 1; color: #D6D9D7; font-size: 15px; }
.today .what strong { color: #fff; }
.today .res { flex: none; font-size: 14px; color: #BDBDBD; text-align: right; }

/* Scoreboard */
.every { padding-top: 36px; }
.nw { white-space: nowrap; }
.form { display: inline-flex; gap: 4px; vertical-align: middle; }
.form .fx { position: static; }
.form .sq { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #fff; border-radius: 2px; cursor: pointer; list-style: none; position: relative; user-select: none; }
.form .sq::-webkit-details-marker { display: none; }
.form .sq.w { background: var(--green); }
.form .sq.l { background: var(--loss); }
.form .sq:hover, .form .fx[open] .sq { filter: brightness(1.15); }
.form .sq:focus-visible { outline: 2px solid var(--rule); outline-offset: 2px; }
.form .fx:last-child .sq::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: -6px; height: 2px; border-radius: 1px; background: var(--rule); }
.form { position: relative; }
.fx-card { position: absolute; left: 0; top: calc(100% + 14px); z-index: 20; width: min(300px, 82vw); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--rule); box-shadow: 0 8px 24px var(--card-shadow); padding: 12px 14px; font-size: 14px; line-height: 1.4; white-space: normal; text-align: left; }
.fx-card p { margin: 0; }
.fx-score { font-weight: 600; font-size: 15px; }
.fx-meta { color: var(--muted); margin-top: 2px !important; }
.fx-recap { margin-top: 8px !important; }
.fx-links { margin-top: 10px !important; font-weight: 600; }
.sched tr:target { animation: rowflash 2.4s ease-out; }
@keyframes rowflash { 0%, 40% { background: var(--flash); } 100% { background: transparent; } }
#schedule tr { scroll-margin-top: 90px; }
.sb td.fm { white-space: nowrap; }
.po-rec { display: block; font-family: 'Public Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.champs { color: var(--green-text); font-weight: 700; }
.po-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-text); border: 1.5px solid currentColor; border-radius: 2px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }
.seed { font-size: 0.55em; color: var(--muted); vertical-align: 0.35em; margin-right: 2px; }
.sd { color: var(--muted); font-weight: 600; }
.loc { display: block; font-size: 13px; color: var(--muted); }
.board { border-bottom: 1px solid var(--line); }
.board .inner { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 40px; padding-bottom: 40px; }
.col { flex: 1 1 420px; min-width: 0; }
.bigscore { width: 100%; font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1.1; }
.bigscore td { padding: 6px 0; }
.bigscore tr:first-child { border-bottom: 1px solid var(--line); }
.bigscore .n { text-align: right; width: 120px; }
.bigscore .us { color: var(--green-text); }
.bigscore .them { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.tag { background: var(--rule); color: var(--bg); font-weight: 700; padding: 2px 8px; letter-spacing: 0.04em; }
.tag.win { background: var(--green); color: #fff; }
.recap { margin: 14px 0 0; font-size: 16px; }
.bigline { margin: 0; font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1.1; }
.when { margin: 8px 0 4px; font-size: 18px; font-weight: 600; }

/* Schedule */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 14px; border: 2px solid var(--rule); background: var(--bg); color: var(--ink); border-radius: 2px; cursor: pointer; }
.filters button.on { background: var(--rule); color: var(--bg); }
.scroll { overflow-x: auto; }
.sched { width: 100%; min-width: 720px; font-size: 15px; }
.sched th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--rule); }
.sched td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.sched th:first-child, .sched td:first-child { padding-left: 0; }
.sched th.r, .sched td.r { text-align: right; padding-right: 0; }
.sched td.d { font-weight: 600; white-space: nowrap; }
.sched .mob { display: none; }
.sched tr.next { background: var(--next-row); }
.sched tr.bye td { color: var(--muted); font-style: italic; }
.sched tr.bye td.d { font-style: normal; }
.wl { font-weight: 700; }
.wl.w { color: var(--green-text); }
.wl.l { color: var(--loss-text); }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Teams */
.games { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.game { flex: 1 1 440px; min-width: 0; }
.game h3 { font-family: var(--head); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1.1; }
.game > .quiet { margin: 4px 0 18px; font-size: 14px; }
.rosters { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.roster { flex: 1 1 160px; min-width: 0; }
.roster-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--rule); padding-bottom: 6px; }
.roster-head h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.roster-head span { font-size: 14px; font-weight: 700; color: var(--green-text); }
.coach { font-size: 13px; color: var(--muted); padding-top: 6px; }
.roster ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.roster a.trk { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green-light); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.roster a.trk:hover { color: var(--green-text); }
.roster li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }

/* Watch */
.watch { background: var(--watch-bg); color: #fff; }
.watch .inner { padding-top: 40px; padding-bottom: 44px; max-width: 760px; margin-left: max(0px, calc((100% - 1200px) / 2)); }
.watch p { color: #E6E6E6; margin: 0 0 20px; }
.watch strong { color: #fff; }

/* Join / parents */
.join { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-bottom: 64px; }
.join .col { flex: 1 1 380px; }
.join p { font-size: 17px; margin: 0 0 12px; }
.join dl { margin: 0; }
.join dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.join dt { font-weight: 700; }
.join dd { margin: 4px 0 0; color: var(--ink-2); }

/* Footer */
.foot { background: var(--black); color: #BDBDBD; font-size: 14px; }
.foot .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 24px; padding-bottom: 24px; }
.foot a { color: #fff; font-weight: 600; }

@media (max-width: 640px) {
  .inner { padding-left: 16px; padding-right: 16px; }
  .brand img { height: 46px; }
  .brand span { font-size: 32px; }
  .masthead nav { gap: 2px 20px; font-size: 14px; }
  .head-rule.big h2 { font-size: 38px; }
  .bigscore, .bigline { font-size: 36px; }
  .board .inner { padding-top: 28px; padding-bottom: 28px; }
  .section { padding-top: 36px; }
  .copy { margin-left: 0; }
  .sb thead { display: none; }
  .sb, .sb tbody { display: block; }
  .sb tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sb td { border: 0; padding: 0 !important; }
  .sb td.t { grid-column: 1; grid-row: 1; }
  .sb td.rec { grid-column: 2; grid-row: 1; }
  .sb td.fm { grid-column: 1 / -1; padding: 6px 0 4px 4px !important; }
  .sb td.last { grid-column: 1 / -1; font-size: 14px; }
  .sb td.last::before { content: 'Last: '; color: var(--muted); }
  .sb td.next { grid-column: 1 / -1; font-size: 14px; }
  .sb td.next::before { content: 'Next: '; color: var(--muted); }
  .sched { min-width: 0; }
  .sched thead, .sched td:nth-child(2), .sched td:nth-child(3) { display: none; }
  .sched tbody, .sched tr { display: block; }
  .sched tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sched tr[hidden] { display: none; }
  .sched td { border: 0; padding: 0 !important; }
  .sched td.d { grid-column: 1; grid-row: 1; }
  .sched .mob { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
  .sched td:nth-child(5) { grid-column: 2; grid-row: 1; text-align: right; font-weight: 600; }
  .sched td:nth-child(4) { grid-column: 1; grid-row: 2; }
  .sched td.r { grid-column: 2; grid-row: 2; }
}
