/* 東京イーストリーグ 公式サイト（計画書 §5.0 案B「スコアボード」: 紺 × 黄） */
:root {
  --bg: #0E1A2B; --surface: #13243A; --surface-2: #0A1422; --line: #2A3F59; --line-soft: #1C2D42;
  --text: #E8EEF4; --muted: #C3CFDB; --dim: #8FA3B8; --white: #FFFFFF;
  --gold: #F2B233; --gold-hi: #FFD27A; --silver: #C9D4DD; --bronze: #D49A68;
  --red: #F7A3A3; --rain: #7FB7E8; --red-bg: rgba(240, 123, 123, .16); --orange: #F5A25B;
  --sans: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Segoe UI', system-ui, sans-serif;
  --num: 'Oswald', 'Zen Kaku Gothic New', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.8; font-size: 16px; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
img { max-width: 100%; display: block; }
.num { font-family: var(--num); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--gold); color: var(--bg); padding: 8px 12px; }

/* ヘッダー・フッター */
.site-header { border-bottom: 1px solid #22344B; background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 900; font-size: 20px; }
.brand:hover { color: var(--white); }
.brand img { width: 38px; height: 38px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 10px 14px; font-weight: 700; border-radius: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a.nav-cta { color: var(--bg); background: var(--gold); padding: 10px 18px; font-weight: 900; }
.site-nav a.nav-cta:hover { background: var(--gold-hi); color: var(--bg); }
.site-footer { border-top: 1px solid #22344B; padding: 32px 0; color: var(--dim); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }

/* ボタン */
.btn { display: inline-block; text-decoration: none; font-weight: 900; padding: 14px 26px; border-radius: 6px; border: 2px solid var(--gold); background: var(--gold); color: var(--bg); font: inherit; font-weight: 900; cursor: pointer; }
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--bg); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: rgba(242, 178, 51, .12); color: var(--gold-hi); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 中のページ（成績表・規約・チームなど） */
main.page { max-width: 1180px; margin: 0 auto; padding: 40px 32px 80px; }
.page h1 { font-size: 34px; font-weight: 900; color: var(--white); line-height: 1.4; }
.page h2 { font-size: 22px; font-weight: 900; color: var(--white); margin: 40px 0 12px; }
.eyebrow { font-family: var(--num); color: var(--gold); letter-spacing: .2em; font-size: 14px; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.years { display: flex; flex-wrap: wrap; gap: 4px; }
.years a { font-family: var(--num); text-decoration: none; padding: 4px 12px; border-radius: 6px; color: var(--muted); border: 1px solid var(--line); }
.years a[aria-current="page"] { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.muted, .note, .legend { color: var(--dim); font-size: 14px; }
.note { margin-top: 10px; }
.legend { margin-bottom: 8px; }
.updated { font-size: 13px; color: var(--dim); margin: -4px 0 10px; }
.updated time { font-family: var(--num); color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: center; white-space: nowrap; }
thead th { color: var(--dim); font-size: 12px; font-weight: 500; background: var(--surface-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
.team-col { text-align: left; font-weight: 700; }
.standings td, .standings th { font-size: 15px; }
.standings .rank { font-family: var(--num); font-size: 18px; }
.standings .pt { font-family: var(--num); font-size: 20px; color: var(--gold); }
.withdrawn { opacity: .55; }
.tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 700; background: var(--line); color: var(--muted); vertical-align: middle; }

/* 王冠と決勝進出（トップ・成績表） */
.crown { width: 20px; height: 15px; vertical-align: -1px; margin-right: 4px; }
.crown.gold path { fill: var(--gold); }
.crown.silver path { fill: var(--silver); }
.crown.bronze path { fill: var(--bronze); }
.finalist .rank, .finalist .pt { color: var(--gold); }
.cutline td { padding: 2px 4px 0; border-top: 2px dashed var(--gold); border-bottom: none; font-size: 11px; color: var(--gold); text-align: right; }

/* 対戦表: 勝ちは黄色の塗りつぶし、負け・引分は薄い色、予定・中止は点線 */
.matrix th.opp { font-family: var(--num); font-size: 12px; }
.matrix td { min-width: 3.6rem; vertical-align: top; padding: 6px 5px; }
.matrix td.self { background: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--surface-2) 6px 12px); }
.g { display: block; margin: 3px auto; padding: 2px 5px; border-radius: 5px; line-height: 1.3; font-size: 13px; border: 1px solid transparent; }
button.g { font: inherit; font-size: 14px; font-weight: 700; min-width: 2.6rem; min-height: 2rem; cursor: pointer; -webkit-appearance: none; appearance: none; }
button.g:hover { filter: brightness(1.1); }
button.g:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.g.win { background: var(--gold); color: var(--bg); }
.g.lose { background: var(--red-bg); color: var(--red); }
.g.draw { background: rgba(195, 207, 219, .14); color: var(--muted); }
.g.fix, .g.cancelled { background: transparent; color: var(--dim); border: 1px dashed var(--line); }
.g.expired { background: transparent; color: var(--orange); border: 1px dashed var(--orange); }
.legend .g { display: inline-block; margin: 0 6px 6px 0; }
.match-pop { margin: auto; padding: 16px 20px 12px; min-width: 15rem; max-width: calc(100vw - 32px); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); text-align: left; white-space: normal; line-height: 1.6; }
.match-pop::backdrop { background: rgba(0, 0, 0, .45); }
.pop-date { font-weight: 700; font-size: 17px; }
.pop-kind { font-size: 13px; color: var(--dim); }
.pop-vs { margin-top: 4px; }
.pop-result { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 5px; font-weight: 700; }
.pop-result.win { background: var(--gold); color: var(--bg); }
.pop-result.lose { background: var(--red-bg); color: var(--red); }
.pop-result.draw { background: rgba(195, 207, 219, .14); color: var(--muted); }
.pop-result.fix, .pop-result.cancelled { border: 1px dashed var(--line); color: var(--dim); }
.pop-result.expired { border: 1px dashed var(--orange); color: var(--orange); }
.pop-score { margin-left: 4px; font-family: var(--num); }
.pop-close { display: block; margin: 14px 0 0 auto; padding: 6px 14px; font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text); cursor: pointer; }

/* ── トップページ ── */
.hero { background-image: url(/static/img/bg-batting-blur-1600.jpg); background-image: image-set(url(/static/img/bg-batting-blur-1600.webp) type("image/webp"), url(/static/img/bg-batting-blur-1600.jpg) type("image/jpeg")); background-size: cover; background-position: center; }
.hero-shade { background: rgba(14, 26, 43, .86); }
.hero .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 420px; min-width: 0; }
.hero h1 { margin-top: 12px; font-size: clamp(32px, 4vw, 54px); line-height: 1.3; font-weight: 900; color: var(--white); }
/* キャッチコピーは行の途中で折り返さない（文字の大きさを画面の幅に合わせる） */
.hero h1 span { white-space: nowrap; }
.hero-lead { margin: 20px 0 28px; color: var(--muted); font-size: 17px; }
/* PC ではちょうど2行（文ごとに折り返さない）。スマホでは自然に折り返す */
@media (min-width: 721px) { .hero-lead span { white-space: nowrap; } }
@media (max-width: 720px) { .hero-lead br.pc { display: none; } }
/* 天気（ファーストビューのボタンの下。次の日曜の2時間ごと・1週間） */
.weather-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.weather { margin-top: 28px; max-width: 460px; background: rgba(10, 20, 34, .72); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 10px; }
.weather-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.weather-head p { font-weight: 900; color: var(--white); }
.weather-tabs { display: flex; gap: 6px; }
.weather-tabs button { font: inherit; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.weather-tabs button:hover { border-color: var(--gold); color: var(--gold-hi); }
.weather-tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.weather-tabs button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.weather-panel[hidden] { display: none; }
.weather-sub { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.weather table { width: 100%; table-layout: fixed; margin-top: 4px; }
.weather th, .weather td { padding: 4px 1px; border: none; text-align: center; vertical-align: middle; }
.weather thead th { font-family: var(--num); font-weight: 400; color: var(--dim); font-size: 12px; line-height: 1.3; }
.weather thead th span { display: block; font-family: var(--sans); font-size: 11px; }
.weather td span { display: block; font-family: var(--num); line-height: 1.3; }
.weather .wx { width: 26px; height: 26px; display: block; margin: 0 auto 2px; }
.weather .t { color: var(--white); font-size: 15px; }
.weather .lo { color: var(--dim); font-size: 12px; }
.weather .p { color: var(--rain); font-size: 12px; }
.weather td.wet .p { color: var(--gold); font-weight: 700; }
.weather .w { color: var(--dim); font-size: 11px; }
.weather-week th.sun { color: var(--gold); font-weight: 700; }
.weather-week td.sun, .weather-week th.sun { background: rgba(242, 178, 51, .1); }
.weather-week th.sun { border-radius: 6px 6px 0 0; }
.weather-week td.sun { border-radius: 0 0 6px 6px; }
.weather-note { margin-top: 2px; color: var(--dim); font-size: 11px; }
.weather-foot { margin-top: 8px; color: var(--dim); font-size: 11px; text-align: right; }
.weather-foot a { color: var(--muted); }
@media (max-width: 720px) {
  .weather { padding: 10px 8px 8px; }
  .weather .wx { width: 22px; height: 22px; }
  .weather .t { font-size: 14px; }
}
.board { flex: 1 1 480px; min-width: 0; background: var(--surface-2); border: 2px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.board-head p:first-child { font-weight: 900; color: var(--white); }
.board-head .num { color: var(--dim); font-size: 13px; }
.board table th, .board table td { padding: 7px 4px; border-bottom: none; border-top: 1px solid var(--line-soft); }
.board table thead th { border-top: none; text-align: left; }
.board .team-col { font-family: var(--sans); }
.board td.r { text-align: right; font-family: var(--num); }
.board td.rank { text-align: left; font-family: var(--num); font-size: 20px; }
.board td.pt { text-align: right; font-family: var(--num); font-size: 22px; }
.board-foot { margin-top: 10px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--dim); }
/* チーム名は枠の中で折り返す（「篠崎ゴールデンギャラクシー」など長い名前でスマホの枠からはみ出さないように） */
.board table { table-layout: auto; }
.board .team-col { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
@media (max-width: 720px) {
  .board { padding: 14px 12px; }
  .board table th, .board table td { padding: 7px 3px; }
  .board td.rank { font-size: 17px; white-space: nowrap; }
  .board td.pt { font-size: 19px; }
  .board td.r { font-size: 13px; }
  .board .team-col { font-size: 14px; }
  .crown { width: 16px; height: 12px; margin-right: 2px; }
}

/* トーナメント表 */
.bracket { overflow-x: auto; margin-top: 18px; }
.bracket-grid { display: flex; align-items: center; gap: 0; min-width: 540px; }
.bracket-col { flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-around; gap: 28px; min-width: 0; }
.bracket-arrow { flex: 0 0 34px; align-self: stretch; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.round-label { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.match-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.match-card.final { border: 2px solid var(--gold); }
.match-card.third { border-style: dashed; }
.team-line { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--surface); }
.team-line + .team-line { border-top: 1px solid var(--line); }
.team-line .seed { width: 22px; height: 22px; flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--bg); border-radius: 4px; font-family: var(--num); font-size: 13px; }
.team-line .name { flex: 1 1 auto; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-line .score { font-family: var(--num); color: var(--dim); }
.team-line.placeholder .name { color: var(--dim); font-weight: 500; }
.team-line.won { background: rgba(242, 178, 51, .14); }
.team-line.won .name, .team-line.won .score { color: var(--gold); }
.team-line.lost .name { color: var(--dim); }
.champion { margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: var(--gold); color: var(--bg); font-weight: 900; text-align: center; }

.band { background: var(--gold); color: var(--bg); }
.band .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.band p { font-weight: 900; font-size: 18px; }
.band a { color: var(--bg); font-weight: 900; }
.band.closed { background: var(--surface); color: var(--muted); }
.band.closed p { font-weight: 700; font-size: 16px; }
.band.closed a { color: var(--gold); }

.section { padding: 96px 0 64px; }
.section h2 { margin: 8px 0 32px; font-size: 40px; font-weight: 900; color: var(--white); line-height: 1.35; }
.section .lead { margin: -16px 0 28px; color: var(--muted); max-width: 760px; }
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.reason { background: var(--surface); border-radius: 10px; padding: 28px; }
.reason .num { color: var(--gold); font-size: 28px; }
.reason h3 { margin: 6px 0 10px; font-size: 22px; color: var(--white); line-height: 1.5; }
.reason p { color: var(--muted); }

.motto { background-image: url(/static/img/detail-bats-1000.jpg); background-image: image-set(url(/static/img/detail-bats-1000.webp) type("image/webp"), url(/static/img/detail-bats-1000.jpg) type("image/jpeg")); background-size: cover; background-position: center; }
.motto-shade { background: rgba(14, 26, 43, .78); }
.motto .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.motto-quote { flex: 1 1 460px; min-width: 0; }
.motto-quote p:first-child { color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.motto-quote blockquote { font-size: 32px; line-height: 1.6; font-weight: 900; color: var(--white); }
.motto-text { flex: 1 1 420px; min-width: 0; }
.motto-text p + p { margin-top: 16px; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.points div { background: var(--surface); border-radius: 10px; padding: 20px; text-align: center; }
.points .num { font-size: 48px; color: var(--gold); line-height: 1.3; }

.season-scroll { overflow-x: auto; }
.season-bar { min-width: 1080px; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); row-gap: 10px; }
/* 1か月 = 2列（前半・後半）。中旬で区切れるように */
.season-bar .month { grid-column: span 2; text-align: center; color: var(--dim); font-size: 14px; font-family: var(--num); }
.arrow { padding: 14px 28px; font-weight: 900; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); line-height: 1.6; }
.arrow small { display: block; font-weight: 500; font-size: 13px; }
.arrow.first { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); padding-left: 16px; }
.arrow.recruit { grid-column: 1 / span 3; background: #3B5878; color: var(--white); }
.arrow.meeting { grid-column: 4 / span 2; background: #6B86A8; color: var(--white); padding: 12px 16px 12px 24px; font-size: 14px; line-height: 1.45; }
.arrow.meeting small { font-size: 12px; }
.arrow.prelim { grid-column: 6 / span 15; background: var(--gold); color: var(--bg); }
.arrow.finals { grid-column: 21 / span 4; background: var(--white); color: var(--bg); }

.join { background: var(--surface); }
.join .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px; }
.join-cond { flex: 1 1 420px; min-width: 0; }
.join-cond h2, .join-contact h2 { margin: 0 0 16px; font-size: 30px; font-weight: 900; color: var(--white); }
.join-cond ul { padding-left: 1.2em; color: var(--muted); }
.notice-line { margin-top: 16px; padding: 14px 16px; border: 1px solid #3B5878; border-radius: 8px; color: var(--muted); font-size: 15px; }
.notice-line strong { color: var(--white); }
.join-contact { flex: 1 1 360px; min-width: 0; background: var(--bg); border-radius: 10px; padding: 28px; }
.join-contact h2 { font-size: 24px; margin-bottom: 8px; }
.join-contact p { color: var(--muted); margin-bottom: 20px; }

/* 参加チーム */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.team-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; color: var(--text); text-decoration: none; }
.team-card:hover { border-color: var(--gold); color: var(--text); }
.team-card .code { font-family: var(--num); color: var(--gold); letter-spacing: .1em; font-size: 13px; }
.team-card h2 { margin: 2px 0 8px; font-size: 21px; }
.team-card dl { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 2px 10px; font-size: 14px; color: var(--muted); }
.team-card dt { color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 20px; }
.facts div { background: var(--surface); border-radius: 10px; padding: 16px 18px; }
.facts dt { color: var(--dim); font-size: 13px; }
.facts dd { font-weight: 700; font-size: 18px; color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { font-family: var(--num); padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.chips span.withdrawn { text-decoration: line-through; }

/* 問い合わせ */
.form { display: grid; gap: 18px; max-width: 720px; margin-top: 24px; }
.form label, .form fieldset > legend { font-weight: 700; color: var(--white); }
.form label { display: grid; gap: 6px; }
.form .req { color: var(--gold); font-size: 13px; margin-left: 6px; }
.form input[type=text], .form input[type=email], .form textarea { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form textarea { min-height: 200px; resize: vertical; }
.form fieldset { border: none; display: grid; gap: 8px; }
.form .choice { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); }
.form .choice input { width: 20px; height: 20px; accent-color: var(--gold); }
.form .choice.disabled { color: var(--dim); }
.form .hint { color: var(--dim); font-size: 13px; font-weight: 500; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 年末アンケート（views/survey.ejs） */
.survey-deadline { margin-top: 12px; padding: 12px 16px; border: 1px solid var(--gold); border-radius: 8px; color: var(--text); }
.survey-deadline strong { color: var(--gold); }
.survey [hidden] { display: none !important; }
.survey-section { display: grid; gap: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.survey-section h2 { margin: 16px 0 0; font-size: 20px; }
.survey-note { color: var(--muted); font-size: 14px; line-height: 1.8; padding: 12px 16px; border-radius: 8px; background: var(--surface-2); }
.survey .scale { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.survey .choices { display: grid; gap: 8px; }
.survey select, .survey input[type=number] { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; max-width: 100%; }
.survey input[type=number] { width: 8em; }
.survey textarea { min-height: 120px; }
.errors { margin-top: 20px; padding: 14px 18px; border-radius: 8px; background: var(--red-bg); color: var(--red); }
.errors ul { padding-left: 1.2em; }
.consent { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }

/* 規約（/rules）。印刷すると会議資料になる */
.rules { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 28px 36px; line-height: 1.95; margin-top: 16px; }
.rules h1 { font-size: 24px; margin: 0 0 16px; color: var(--white); }
.rules h2 { margin: 32px 0 10px; font-size: 19px; color: var(--white); padding-left: 10px; border-left: 4px solid var(--gold); }
.rules h3 { font-size: 16px; margin: 20px 0 6px; color: var(--gold); }
.rules p, .rules ul, .rules ol, .rules table, .rules blockquote { margin: 8px 0; }
.rules ul, .rules ol { padding-left: 1.6rem; }
.rules blockquote { border-left: 3px solid var(--line); padding: 2px 12px; color: var(--dim); }
.rules table { width: auto; }
.rules th, .rules td { border: 1px solid var(--line); white-space: normal; text-align: left; }
.rules hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

@media (max-width: 720px) {
  .wrap, main.page { padding-left: 16px; padding-right: 16px; }
  .section h2 { font-size: 30px; }
  .motto-quote blockquote { font-size: 24px; }
  .page h1 { font-size: 26px; }
  .rules { padding: 16px; }
  th, td { padding: 8px 8px; }
  .site-nav a { padding: 8px 10px; }
}
@media print {
  :root { color-scheme: light; }
  .site-header, .site-footer, .years, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  main.page { max-width: none; padding: 0; }
  .rules { border: none; padding: 0; background: #fff; }
  .rules h1, .rules h2 { color: #000; }
  .rules h3 { color: #333; }
  .rules h2 { break-after: avoid; border-left-color: #999; }
  .rules table, .rules tr { break-inside: avoid; }
  .rules th, .rules td { border-color: #999; }
}
