.rulebook-hero { padding: 45px 0 65px; color: #fff; background: var(--navy); }
.rulebook-back { display: inline-block; margin-bottom: 40px; color: #c2ccdc; font-size: 13px; }
.rulebook-hero h1 { margin-bottom: 24px; font-family: var(--font-display); font-size: clamp(46px, 6vw, 78px); line-height: 1.03; letter-spacing: -.06em; }
.rulebook-hero h1 span { color: var(--orange); }
.rulebook-intro { max-width: 590px; color: #c2ccdc; font-size: 16px; line-height: 1.8; }
.rulebook-meta { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 28px 0; color: #c2ccdc; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.rulebook-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.rulebook-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 65px; padding-top: 60px; padding-bottom: 80px; }
.rulebook-sidebar nav { position: sticky; top: 108px; max-height: calc(100vh - 130px); overflow-y: auto; padding-bottom: 8px; }
.rulebook-sidebar h2 { margin-bottom: 16px; color: #626c7b; font-size: 10px; letter-spacing: .16em; }
.rulebook-sidebar a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.rulebook-sidebar a span { flex: 0 0 45px; color: #b54724; font-size: 10px; padding-top: 2px; }
.rulebook-sidebar a:hover, .source-page-link:hover { color: #b54724; }
.rulebook-notice { margin-bottom: 40px; padding: 20px 24px; background: var(--cream); border-left: 3px solid var(--orange); color: #546071; font-size: 13px; line-height: 1.8; }
.rule-chapter { padding-bottom: 35px; margin-bottom: 35px; border-bottom: 1px solid var(--line); scroll-margin-top: 105px; }
.rule-chapter h2 { margin-bottom: 20px; font-family: var(--font-display); font-size: clamp(27px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.2; }
.rule-chapter > p:not(.chapter-ref), .rule-chapter li { color: #546071; font-size: 15px; line-height: 1.85; }
.rule-chapter ul { padding-left: 21px; }
.rule-chapter li { padding-left: 5px; margin-bottom: 12px; }
.rule-chapter strong { color: var(--ink); }
.rules-table-wrap { margin: 25px 0; overflow-x: auto; border: 1px solid var(--line); }
.rules-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.rules-table-wrap caption { padding: 14px 16px; color: #fff; background: var(--navy); text-align: left; font-weight: 600; }
.rules-table-wrap th, .rules-table-wrap td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rules-table-wrap thead { background: var(--cream); }
.rules-table-wrap th[scope="row"] { width: 40%; font-weight: 500; }
.source-page-link { display: inline-block; padding: 6px 0; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.original-page { border-top: 1px solid var(--line); padding: 16px 0; scroll-margin-top: 105px; }
.original-page summary { color: var(--ink); cursor: pointer; font-family: var(--font-display); font-weight: 600; }
.original-page pre { white-space: pre-wrap; overflow-wrap: anywhere; color: #546071; font: 14px/1.9 var(--font-body); }
.rulebook-page a:focus-visible, .rulebook-page summary:focus-visible, .rules-resource a:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
@media (max-width: 900px) {
  .rulebook-layout { grid-template-columns: 1fr; gap: 35px; }
  .rulebook-sidebar nav { position: static; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .rulebook-sidebar h2 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .rulebook-hero { padding: 30px 0 45px; }
  .rulebook-back { margin-bottom: 32px; }
  .rulebook-intro { font-size: 14px; }
  .rulebook-meta { flex-direction: column; line-height: 1.6; }
  .rulebook-layout { padding-top: 35px; padding-bottom: 30px; }
  .rulebook-sidebar a { font-size: 11px; gap: 5px; }
  .rulebook-sidebar a span { flex-basis: 43px; }
  .rule-chapter > p:not(.chapter-ref), .rule-chapter li { font-size: 14px; }
  .rules-table-wrap th, .rules-table-wrap td { padding: 10px 8px; font-size: 12px; }
  .rules-resource { padding: 22px; gap: 20px; }
  .rules-resource > div { flex-basis: 100%; }
}


.light-link { color: white; }
.rulebook-hero .button-orange { background: var(--blue); }
.rulebook-hero h1 span { color: #a8c6ff; }
.rulebook-sidebar a { min-height: 44px; align-items: center; }
.rulebook-sidebar a span { color: var(--blue); }
.rulebook-content { min-width: 0; }
.original-page summary { min-height: 44px; padding-block: 10px; }
@media(max-width:640px) { .rulebook-sidebar nav { grid-template-columns:1fr; } .rulebook-hero h1 { font-size:44px; } .rules-table-wrap table { font-size:12px; } }
