:root {
  font-family:
    "Segoe UI Variable",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  font-synthesis: none;
  font-size: 16px;
  --sidebar-width: 17rem;
  --toc-width: 16rem;
  color-scheme: light;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
  --background: #faf9f6;
  --surface: #fffefd;
  --text: #4d4c50;
  --heading: #202023;
  --muted: #736f70;
  --line: #e8e5df;
  --hover: #f0ede8;
  --selected: #f9e6e4;
  --accent: #c53d43;
  --accent-strong: #ac2932;
  --accent-soft: #faece9;
  --quote-background: #f3f0eb;
  --quote-text: #625a58;
  --code-background: #f0eeea;
  --table-background: #f3f1ed;
  --selection: #f4c9c9;
  --rail: #f3f1ed;
  --rail-text: #5b575d;
  --rail-heading: #202023;
  --rail-muted: #767178;
  --rail-line: #dedbd5;
  --rail-hover: #eae6e1;
  --rail-selected: #f6e3e1;
  --gutter: clamp(24px, 2.2vw, 38px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #17181b;
  --surface: #1e1f23;
  --text: #c9c7cc;
  --heading: #f2f0ed;
  --muted: #96939b;
  --line: #303034;
  --hover: #242529;
  --selected: #402a2f;
  --accent: #f08187;
  --accent-strong: #ff9aa0;
  --accent-soft: #302328;
  --quote-background: #222226;
  --quote-text: #c2b6b6;
  --code-background: #202125;
  --table-background: #242529;
  --selection: #60303b;
  --rail: #131417;
  --rail-text: #b3b1b8;
  --rail-heading: #f8f6f5;
  --rail-muted: #929099;
  --rail-line: #2b2c30;
  --rail-hover: #26272b;
  --rail-selected: #35282c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --background: #17181b;
    --surface: #1e1f23;
    --text: #c9c7cc;
    --heading: #f2f0ed;
    --muted: #96939b;
    --line: #303034;
    --hover: #242529;
    --selected: #402a2f;
    --accent: #f08187;
    --accent-strong: #ff9aa0;
    --accent-soft: #302328;
    --quote-background: #222226;
    --quote-text: #c2b6b6;
    --code-background: #202125;
    --table-background: #242529;
    --selection: #60303b;
    --rail: #131417;
    --rail-text: #b3b1b8;
    --rail-heading: #f8f6f5;
    --rail-muted: #929099;
    --rail-line: #2b2c30;
    --rail-hover: #26272b;
    --rail-selected: #35282c;
  }
}
:root[data-theme="dark"] .rules-content [data-theme-text="neutral"] {
  color: var(--text) !important;
}
:root[data-theme="dark"] .rules-content [data-theme-text="red"] {
  color: #f08187 !important;
}
:root[data-theme="dark"] .rules-content [data-theme-background="neutral"] {
  background-color: var(--quote-background) !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .rules-content [data-theme-text="neutral"] {
    color: var(--text) !important;
  }
  :root:not([data-theme]) .rules-content [data-theme-text="red"] {
    color: #f08187 !important;
  }
  :root:not([data-theme]) .rules-content [data-theme-background="neutral"] {
    background-color: var(--quote-background) !important;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 28px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--selection);
  color: var(--heading);
}
:is(a, summary, button, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 30;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--heading);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: 100%;
  min-height: 100svh;
  margin: auto;
}
.site-sidebar {
  min-width: 0;
  border-right: 1px solid var(--rail-line);
  background: var(--rail);
  color: var(--rail-text);
}
.sidebar-content {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 0;
  padding: 36px 18px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rail-line) transparent;
}
.sidebar-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  color: var(--rail-heading);
}
.sidebar-label > span:last-child {
  font-size: 1.625rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.9px;
}
.sidebar-label > span > span {
  display: block;
  margin-top: 9px;
  color: var(--rail-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.7px;
}
.identity-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
}
.identity-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.section-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 2.875rem;
  margin: 24px 2px 16px;
  padding: 10px 12px;
  border: 1px solid var(--rail-line);
  border-radius: 7px;
  background: var(--rail);
}
.section-search:focus-within {
  border-color: var(--accent);
}
.section-search > .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--rail-muted);
}
.section-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--rail-heading);
  font-size: 0.9375rem;
}
.section-search input:focus-visible {
  outline: none;
}
.section-search input::placeholder {
  color: var(--rail-muted);
  opacity: 1;
}
.section-search kbd {
  padding: 0 5px;
  border: 1px solid var(--rail-line);
  border-radius: 4px;
  color: var(--rail-muted);
  font:
    0.875rem/1.6 Consolas,
    monospace;
}
.section-search + .sections {
  margin-top: 0;
}
.nav-empty,
.search-empty {
  color: var(--muted);
  font-size: 0.9375rem;
}
.nav-empty {
  padding: 0 12px;
  color: var(--rail-muted);
}
.search-empty {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.sections {
  min-height: 0;
  margin-top: 32px;
}
.sections .menu-indicator {
  width: 1.125rem;
  height: 1.125rem;
  margin-left: auto;
  transition: transform 0.18s;
}
.sections[open] .menu-indicator {
  transform: rotate(180deg);
}
.sections summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  min-height: 2.75rem;
  border: 1px solid var(--rail-line);
  border-radius: 7px;
  background: var(--rail-hover);
  color: var(--rail-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.7px;
}
.navigation-count {
  color: var(--rail-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.navigation-count::before {
  content: "/";
  margin-right: 8px;
  color: var(--rail-muted);
}
.sections nav {
  display: grid;
  gap: 5px;
  margin-top: 16px;
}
.sections nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--rail-text);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s;
}
.sections nav a > .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--rail-muted);
}
.nav-label {
  min-width: 0;
  flex: 1;
}
.sections nav a:hover {
  color: var(--rail-heading);
  background: var(--rail-hover);
}
.sections nav a[aria-current] {
  border-color: #e36b7320;
  background: var(--rail-selected);
  color: var(--rail-heading);
  font-weight: 600;
}
.sections nav a[aria-current] > .icon {
  color: var(--accent);
}
.sections nav a[aria-current]::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -1px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 48px 6px 0;
}
.support-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 3px;
  border-top: 1px solid var(--rail-line);
  color: var(--rail-muted);
}
.support-link > .icon:first-child {
  width: 1.25rem;
  height: 1.25rem;
}
.support-link > .icon:last-child {
  width: 1.125rem;
  height: 1.125rem;
  margin-left: auto;
}
.support-link > span {
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
}
.support-link > span > span {
  display: block;
  color: var(--rail-heading);
  font-size: 0.9375rem;
}
.support-link:hover {
  color: var(--accent);
}
.support-link:hover > span > span {
  color: var(--accent);
}
main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}
main:focus {
  outline: none;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  transition: color 0.18s;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs a .icon {
  width: 1.125rem;
  height: 1.125rem;
}
.breadcrumbs > .icon {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}
.breadcrumb-divider {
  color: var(--muted);
  opacity: 0.5;
}
.breadcrumb-current {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.appearance-label {
  color: var(--muted);
  font-size: 0.875rem;
}
.page-tool {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s;
}
.page-tool:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.page-tool .icon {
  width: 1.125rem;
  height: 1.125rem;
}
.theme-toggle .icon-sun,
.theme-toggle[aria-pressed="true"] .icon-moon {
  display: none;
}
.theme-toggle[aria-pressed="true"] .icon-sun {
  display: block;
}
.page-tool::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 10;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.page-tool:focus-visible::after {
  opacity: 1;
  visibility: visible;
}
@media (hover: hover) {
  .page-tool:hover::after {
    opacity: 1;
    visibility: visible;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 1.7px;
  line-height: 1.7;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 9%, transparent);
  margin: 0 4px;
}
h1 {
  color: var(--heading);
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 720;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.directory-intro {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 310px;
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
}
.directory-intro-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.directory-intro h1 {
  margin: 22px 0 21px;
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
}
.title-dot {
  color: var(--accent);
}
.directory-art {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}
.art-orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.orbit-one {
  inset: 4px;
}
.orbit-two {
  inset: 27px;
  border-style: dashed;
  opacity: 0.7;
}
.orbit-one::before,
.orbit-one::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.orbit-one::before {
  top: 24px;
  right: 32px;
}
.orbit-one::after {
  bottom: 25px;
  left: 31px;
  opacity: 0.4;
}
.art-shield {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  transform: rotate(-8deg);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 25px;
  background: var(--accent-soft);
  box-shadow:
    0 16px 28px #19191b06,
    inset 0 1px #ffffff10;
}
.art-shield .icon {
  width: 57px;
  height: 57px;
  stroke-width: 1.1;
}
.art-label {
  position: absolute;
  bottom: -12px;
  font:
    0.75rem/1.6 Consolas,
    monospace;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.directory {
  margin-top: 34px;
}
.directory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.directory-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--heading);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.section-count {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.directory-caption {
  color: var(--muted);
  font-size: 0.9375rem;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.directory-link {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 222px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow-wrap: anywhere;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.directory-link:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 12px 32px #19191b08;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-symbol {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-symbol .icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.5;
}
.card-number {
  color: var(--muted);
  font:
    0.875rem/1.6 Consolas,
    monospace;
  letter-spacing: 1px;
}
.directory-link h3 {
  margin: 25px 0 28px;
  color: var(--heading);
  font-size: clamp(1.25rem, 1.7vw, 1.6875rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9375rem;
}
.card-arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.link-arrow {
  width: 1.125rem;
  height: 1.125rem;
}
.directory-link:hover .card-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--background);
}
.empty {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 1rem;
}
.empty {
  grid-column: 1 / -1;
}
.empty h2 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 1.5rem;
}
.empty p {
  margin: 0;
}
.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 36px;
}
.document-layout:has(.document-aside:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) var(--toc-width);
}
.document-paper {
  min-width: 0;
}
.document-heading {
  margin-bottom: 30px;
  padding-bottom: 0;
}
.document-heading-inner {
  max-width: none;
  margin-inline: 0;
}
.document-heading h1 {
  margin: 18px 0 24px;
}
.document-kicker {
  display: flex;
  align-items: center;
}
.document-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.updated {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0;
}
.updated .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-right: 3px;
  opacity: 0.8;
}
.read-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.read-time::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.65;
}
.document-body {
  min-width: 0;
}
.rules-content {
  max-width: none;
  margin-inline: 0;
  font-size: 1.125rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.rules-content > :first-child {
  margin-top: 0;
}
.rules-content p {
  margin: 0 0 15px;
}
.rules-content p:empty {
  min-height: 10px;
  margin: 0;
}
.rules-content strong,
.rules-content b {
  font-weight: 650;
}
.rules-content p.rule-paragraph {
  margin-top: 26px;
}
.rules-content .rule-index {
  display: inline-block;
  min-width: 32px;
  margin-right: 7px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  font-size: 0.9em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
.rules-content .rule-index :is(strong, b, span, mark, em, i, u, s, strike) {
  border-radius: inherit;
}
.rules-content [style*="font-size"] {
  line-height: 1.5;
}
.rules-content :is(h1, h2, h3, h4, h5, h6) {
  color: var(--heading);
  margin: 36px 0 16px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.025em;
  scroll-margin-top: 28px;
}
.rules-content h1 {
  font-size: 1.9em;
}
.rules-content h2 {
  font-size: 1.5em;
}
.rules-content h3 {
  font-size: 1.16em;
}
.rules-content h4 {
  font-size: 1.06em;
}
.rules-content :is(h5, h6) {
  font-size: 1em;
}
.rules-content :is(h1, h2, h3, h4, h5, h6):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.rules-content :is(ul, ol) {
  padding-left: 1.5em;
  margin: 14px 0 22px;
}
.rules-content li {
  padding-left: 0.4em;
  margin: 8px 0;
}
.rules-content li::marker {
  color: var(--accent);
  font-weight: 600;
}
.rules-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  border-radius: 0 7px 7px 0;
  background: var(--quote-background);
  color: var(--quote-text);
  font-size: 0.95em;
}
.rules-content blockquote > :first-child {
  margin-top: 0;
}
.rules-content blockquote > :last-child {
  margin-bottom: 0;
}
.rules-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 4px;
}
.rules-content a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}
.rules-content img {
  max-width: 100%;
  height: auto;
  border-radius: 9px;
}
.rules-content pre {
  max-width: 100%;
  margin: 22px 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-background);
  line-height: 1.7;
}
.rules-content code {
  font:
    0.88em/1.7 Consolas,
    monospace;
}
.rules-content :not(pre) > code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--code-background);
}
.rules-content table {
  width: 100%;
  margin: 22px 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.86em;
  line-height: 1.65;
}
.rules-content :is(td, th) {
  padding: 13px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.rules-content th {
  background: var(--table-background);
  color: var(--heading);
  font-weight: 650;
  text-align: left;
}
.rules-content hr {
  height: 1px;
  margin: 30px 0;
  border: 0;
  background: var(--line);
}
.document-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: none;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.document-pagination a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    border-color 0.18s,
    background 0.18s;
}
.document-pagination a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.document-pagination a > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.document-pagination .icon {
  width: 1.125rem;
  height: 1.125rem;
}
.document-pagination strong {
  color: var(--heading);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.previous-page .icon {
  transform: rotate(180deg);
}
.next-page {
  grid-column: 2;
  text-align: right;
}
.next-page > span {
  justify-content: flex-end;
}
.document-aside {
  min-width: 0;
  align-self: stretch;
  padding-top: 4px;
}
.document-aside-sticky {
  position: sticky;
  top: 32px;
}
.toc-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 650;
}
.toc-panel summary .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted);
  transition: transform 0.18s;
}
.toc-panel:not([open]) summary .icon {
  transform: rotate(-90deg);
}
.toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100svh - 200px);
  padding: 1px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.toc a {
  display: block;
  flex-shrink: 0;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  transition:
    color 0.18s,
    border-color 0.18s,
    background 0.18s;
}
.toc a strong,
.toc a b {
  font-weight: inherit;
}
.toc a[data-depth="1"] {
  padding-left: 23px;
}
.toc a[data-depth="2"] {
  padding-left: 31px;
}
.toc a[data-depth="3"] {
  padding-left: 39px;
}
.toc a[data-depth="4"] {
  padding-left: 47px;
}
.toc a[data-depth="5"] {
  padding-left: 55px;
}
.toc a:hover {
  color: var(--heading);
  background: var(--hover);
}
.toc a[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.toc :is(code, mark) {
  padding: 1px 3px;
  border-radius: 3px;
  color: inherit;
  background: var(--selected);
  font-size: inherit;
}
.page-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-top: auto;
  padding: 48px 0 28px;
}
.page-signature {
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.page-signature > span {
  margin-left: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
}
.back-to-top {
  display: flex;
  align-self: flex-end;
  align-items: center;
  margin-left: auto;
  gap: 10px;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.18s;
}
.back-to-top .icon {
  width: 1.125rem;
  height: 1.125rem;
}
.back-to-top:hover {
  color: var(--accent);
}
.error-state {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 0;
  max-width: 660px;
}
.error-number {
  color: var(--line);
  font-size: clamp(5.625rem, 12vw, 11.25rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.08em;
  margin-bottom: 32px;
}
.error-state h1 {
  margin: 18px 0;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  margin-top: 30px;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--accent-strong);
  color: var(--background);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: opacity 0.18s;
}
.primary-link .icon {
  width: 1.125rem;
  height: 1.125rem;
}
.primary-link:hover {
  opacity: 0.85;
}

@media (min-width: 1550px) {
  .document-layout:has(.document-aside:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) var(--toc-width);
    gap: 36px;
  }
  .rules-content {
    font-size: 1.125rem;
  }
  .toc a {
    font-size: 0.9375rem;
  }
}
@media (max-width: 1200px) {
  :root {
    --gutter: 32px;
  }
  .shell {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
  .sidebar-content {
    padding-inline: 14px;
  }
  .sidebar-label > span:last-child {
    font-size: 1.5rem;
  }
  .document-layout {
    gap: 24px;
  }
  .document-layout:has(.document-aside:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }
  .document-aside {
    grid-row: 1;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .document-aside-sticky {
    position: static;
  }
  .toc-panel summary {
    padding: 12px;
  }
  .toc {
    max-height: 28svh;
    margin-top: 16px;
  }
  .directory-art {
    width: 160px;
    height: 160px;
  }
  .art-shield {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }
  .art-shield .icon {
    width: 2.75rem;
    height: 2.75rem;
  }
  .directory-intro {
    min-height: 280px;
  }
  .directory-caption {
    display: none;
  }
  .appearance-label {
    display: none;
  }
}
@media (max-width: 900px) {
  .section-search {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }
  .sections[open] .nav-empty {
    grid-column: 1 / -1;
    margin: 0;
  }
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar-content {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    height: auto;
    min-height: 0;
    padding: 22px 32px;
    overflow: visible;
  }
  .sidebar-label {
    padding: 0;
  }
  .sidebar-label > span:last-child {
    font-size: 1.5rem;
  }
  .sidebar-label > span > span {
    font-size: 0.75rem;
    margin-top: 6px;
  }
  .identity-mark {
    height: 36px;
    width: 36px;
  }
  .sections {
    margin-top: 0;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .sections summary {
    min-height: 2.75rem;
    padding: 0 2px;
    cursor: pointer;
    font-size: 0.875rem;
    letter-spacing: 0;
  }
  .sections .menu-indicator {
    width: 1.125rem;
    height: 1.125rem;
    margin-left: 9px;
    transition: transform 0.18s;
  }
  .sections[open] .menu-indicator {
    transform: rotate(180deg);
  }
  .sections[open] {
    display: contents;
  }
  .sections[open] summary {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }
  .sections[open] nav {
    grid-column: 1 / -1;
    margin: 0;
    max-height: 40svh;
    overflow-y: auto;
  }
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    min-height: 76px;
  }
  .document-layout {
    padding-top: 28px;
  }
  .document-heading h1 {
    font-size: clamp(2.125rem, 5.5vw, 3rem);
  }
  .rules-content {
    max-width: none;
    font-size: 1.125rem;
  }
  .directory-intro h1 {
    font-size: clamp(2.375rem, 6vw, 3.5rem);
  }
  .directory-art {
    width: 180px;
    height: 180px;
  }
  .directory-link {
    min-height: 210px;
  }
}
@media (max-width: 600px) {
  :root {
    --gutter: 22px;
  }
  html {
    scroll-padding-top: 18px;
  }
  .sidebar-content {
    padding: 20px 22px;
    gap: 18px;
  }
  .sidebar-label {
    gap: 9px;
  }
  .sidebar-label > span:last-child {
    font-size: 1.4375rem;
  }
  .sections summary {
    font-size: 0.875rem;
    gap: 5px;
  }
  .sections .menu-indicator {
    margin-left: 3px;
    width: 1.125rem;
    height: 1.125rem;
  }
  .navigation-count::before {
    margin-right: 5px;
  }
  .topbar {
    min-height: 68px;
    gap: 14px;
  }
  .breadcrumbs {
    gap: 10px;
    font-size: 0.875rem;
  }
  .breadcrumbs a .icon {
    display: none;
  }
  .page-tool {
    width: 2.75rem;
    height: 2.75rem;
  }
  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 1.1px;
  }
  .directory-intro {
    padding: 38px 0 34px;
    min-height: 0;
  }
  .directory-intro h1 {
    margin: 20px 0 17px;
    font-size: clamp(2.1875rem, 7.9vw, 2.9375rem);
  }
  .directory-intro .lead {
    font-size: 1rem;
  }
  .directory-art {
    display: none;
  }
  .directory {
    margin-top: 25px;
  }
  .directory-heading {
    margin-bottom: 18px;
  }
  .directory-heading h2 {
    font-size: 1.0625rem;
  }
  .directory-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .directory-link {
    min-height: 185px;
    padding: 22px;
  }
  .directory-link h3 {
    margin: 23px 0 20px;
    font-size: 1.625rem;
  }
  .document-layout {
    gap: 27px;
    padding-top: 22px;
  }
  .document-aside {
    padding: 14px 16px;
  }
  .toc-panel summary {
    font-size: 0.875rem;
    min-height: 1.25rem;
  }
  .toc {
    max-height: 28svh;
  }
  .toc a {
    font-size: 0.9375rem;
    padding-block: 11px;
  }
  .document-heading {
    padding-bottom: 0;
    margin-bottom: 25px;
  }
  .document-heading h1 {
    margin: 16px 0 21px;
    font-size: 2.375rem;
  }
  .document-meta {
    font-size: 0.875rem;
    gap: 10px 14px;
  }
  .updated {
    gap: 4px;
  }
  .rules-content {
    font-size: 1.0625rem;
    line-height: 1.85;
  }
  .rules-content :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 29px;
  }
  .rules-content h2 {
    font-size: 1.4em;
  }
  .rules-content blockquote {
    padding: 15px 17px;
  }
  .rules-content :is(td, th) {
    padding: 10px 8px;
  }
  .rules-content pre {
    padding: 14px;
  }
  .document-pagination {
    gap: 10px;
    margin-top: 30px;
    padding-top: 24px;
  }
  .document-pagination a {
    padding: 14px;
  }
  .document-pagination a > span {
    font-size: 0.75rem;
    gap: 5px;
  }
  .document-pagination strong {
    font-size: 0.9375rem;
  }
  .page-bottom {
    padding-top: 36px;
    gap: 16px;
  }
  .page-signature > span {
    display: block;
    margin: 4px 0 0;
  }
  .empty {
    padding: 22px;
  }
  .error-state {
    padding: 40px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  :root {
    color-scheme: light;
    --background: #fff;
    --text: #222;
    --heading: #111;
    --line: #ddd;
    --accent: #a92532;
    --quote-background: #f4f4f4;
    --quote-text: #333;
  }
  .site-sidebar,
  .topbar,
  .document-aside,
  .document-pagination,
  .page-bottom,
  .skip-link {
    display: none !important;
  }
  .shell {
    display: block;
    max-width: none;
  }
  main {
    display: block;
    padding: 0;
  }
  .document-layout,
  .document-layout:has(.document-aside:not([hidden])) {
    display: block;
    padding: 0;
  }
  .rules-content {
    max-width: none;
    font-size: 11pt;
  }
  .rules-content :is(h1, h2, h3, h4, h5, h6) {
    break-after: avoid;
  }
  .rules-content blockquote,
  .rules-content tr {
    break-inside: avoid;
  }
}

/* Scale the whole reading interface with the display, including its controls. */
@media (min-width: 1600px) {
  :root {
    font-size: 18px;
  }
}
@media (min-width: 2200px) {
  :root {
    font-size: 20px;
  }
}
@media (min-width: 3000px) {
  :root {
    font-size: 22px;
  }
}
