header a { color: #efc883; }
header h1 a { color: inherit; text-decoration: none; }
.rules-page { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  grid-template-areas: "title title" "index text" ". top"; align-items: start; max-width: 70rem; }
.rules-page > h1 { grid-area: title; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.rules-index { grid-area: index; position: sticky; top: 1rem; padding: .8rem 1rem; background: #242e28;
  border: 1px solid #536055; border-radius: .55rem; }
.rules-index summary { cursor: pointer; font-weight: 650; }
.rules-index ol { list-style: none; overflow-y: auto; max-height: min(65svh, 36rem); padding: 0; margin: .65rem 0 0; }
.rules-index li { margin-block: .2rem; }
.rules-index .toc-subsection { padding-inline-start: .75rem; font-size: .9rem; }
.rules-index a { display: block; padding: .25rem 0; }
.rules-text { grid-area: text; min-width: 0; line-height: 1.55; overflow-wrap: anywhere; }
.rules-text h2 { margin: 2rem 0 .65rem; color: #f6edda; font-size: 1.65rem; }
.rules-text h3 { margin: 1.45rem 0 .5rem; font-size: 1.2rem; }
.rules-text p, .rules-text li { margin-block: .55rem; }
.rules-text :is(h2, h3, h4, [id]) { scroll-margin-top: 1rem; }
.rules-text :target { outline: 1px solid #efc883; outline-offset: .3rem; }
.rules-text :is(ul, ol) { padding-inline-start: 1.5rem; }
.rules-text .indented-list { margin-inline-start: 1rem; }
.rules-page a { color: #efc883; }
.rules-top { grid-area: top; justify-self: start; }
.rule-table { overflow-x: auto; margin: .9rem 0 1.25rem; }
.rule-table table { width: 100%; border-collapse: collapse; color: #f6edda; }
.rule-table th, .rule-table td { padding: .45rem .6rem; border: 1px solid #536055; text-align: left; vertical-align: top; }
.rule-table th { background: #34443a; }
.rule-table tbody tr:nth-child(even) { background: #222d27; }
.rule-table :is(th, td) p { margin: .15rem 0; }
.rules-page :is(a, summary, .rule-table):focus-visible { outline: 2px solid #efc883; outline-offset: 3px; }
@media (max-width: 650px) {
  .rules-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "index" "text" "top"; gap: .9rem; }
  .rules-index { position: static; }
  .rules-index ol { max-height: 40svh; }
  .rule-table table { min-width: 19rem; }
}
