.rb-main {
  --rb-top: 6.5rem;
  padding-block: clamp(1.5rem, 4vw, 3.8rem) 5rem;
}
.rb-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 21%);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.35rem, 4vw, 3.6rem);
  background: linear-gradient(110deg, #182b22 30%, #213c29);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--lime);
  scroll-margin-top: var(--rb-top);
}
.rb-cover h1 {
  max-width: 24ch;
  margin: 0;
  font: 800 clamp(2.15rem, 5.3vw, 4.8rem)/1.02 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: -.025em;
  text-transform: none;
}
.rb-cover p, .rb-edition, .rb-end p {color: var(--muted);}
.rb-cover p {margin: 1rem 0 0; white-space: pre-wrap;}
.rb-crest {display: block; width: 100%; height: auto;}
.rb-grid {
  display: grid;
  grid-template-columns: minmax(14rem, .85fr) minmax(0, 2.6fr);
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: 1.75rem;
}
.rb-aside {
  position: sticky;
  top: var(--rb-top);
  border-block-start: 3px solid var(--lime);
  background: var(--panel);
}
.rb-aside summary {
  padding: .85rem 1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
}
.rb-aside nav {
  display: grid;
  overflow-y: auto;
  max-height: calc(100dvh - var(--rb-top) - 4rem);
  padding: 0 .55rem .65rem;
}
.rb-aside a {
  padding: .55rem .65rem;
  color: #c8d4cb;
  font-size: .92rem;
  line-height: 1.4;
  border-inline-start: 2px solid transparent;
}
.rb-aside a:hover, .rb-aside a[aria-current="location"] {
  background: #20362a;
  border-color: var(--lime);
  color: var(--lime);
}
.rb-aside :focus-visible, .rb-table-scroll:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}
.rb-reader {
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2.65rem);
  border: 1px solid var(--line);
  background: var(--rb-watermark) repeat, #14221e;
  font-size: 1.04rem;
  line-height: 1.69;
  overflow-wrap: anywhere;
}
.rb-edition {margin: 0 0 1.4rem; font-size: .92rem;}
.rb-section + .rb-section {margin-top: 2.75rem; border-top: 1px solid var(--line); padding-top: 1.6rem;}
.rb-section h2 {
  color: var(--lime);
  font: 700 clamp(1.65rem, 3vw, 2.25rem)/1.13 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 1.1rem;
  scroll-margin-top: var(--rb-top);
}
.rb-section h2:focus {outline: none;}
.rb-section p, .rb-section li > span {white-space: pre-wrap;}
.rb-section p {margin: .8rem 0;}
.rb-section a {color: var(--lime); text-decoration: underline; text-underline-offset: .16em;}
.rb-section :is(ol, ul) {padding-inline-start: 1.6rem; margin-block: .5rem 1rem;}
.rb-section li + li {margin-top: .35rem;}
.rb-section .rb-num li::marker {content: counter(list-item) ") ";}
.rb-section .rb-dash li::marker {content: "- ";}
.rb-disc {list-style: disc;} .rb-circle {list-style: circle;} .rb-square {list-style: square;} .rb-plain {list-style: none;}
.rb-table-scroll {overflow-x: auto; margin-block: 1rem;}
.rb-table-scroll table {width: 100%; border-collapse: collapse; text-align: start; font-variant-numeric: tabular-nums;}
.rb-table-scroll :is(th, td) {border: 1px solid #485d50; padding: .4rem .6rem; text-align: start;}
.rb-table-scroll th {color: var(--lime); background: #243b2d;}
.rb-table-scroll p {margin: 0;}
.rb-end {margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);}
.rb-end img {display: block; max-width: 100%; height: auto;}
.rb-end p {font-size: .9rem;}
[data-rulebook-content], [data-rulebook-content] * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
@media (max-width: 800px) {
  .rb-main {--rb-top: 8.5rem;}
  .rb-grid {grid-template-columns: 1fr;}
  .rb-aside {position: static;}
  .rb-aside nav {max-height: 50dvh;}
  .rb-cover {grid-template-columns: minmax(0, 1fr) minmax(60px, 19%);}
  .rb-table-scroll table {width: max-content; min-width: 100%;}
}
@media (prefers-reduced-motion: reduce) {html {scroll-behavior: auto;}}
@media print {body {display: none !important;}}
