:root {
  color-scheme: dark;
  --paper: #1c2420;
  --background: #141a17;
  --ink: #e5ebe6;
  --muted: #a6b4aa;
  --rule: #344339;
  --link: #8cd2ad;
  --link-hover: #b1e8c9;
  --focus: #8cd2ad;
  --nav-ink: #b8c9bd;
  --highlight: #243a2e;
  --active-ink: #b0e4c3;
  --input-border: #667c6c;
  --placeholder: #a0afa4;
  --disabled-ink: #829085;
  --disabled-border: #39483e;
  --strong-rule: #56675b;
  --warning: #e9c78b;
  --warning-border: #806e45;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #ffffff;
  --background: #f7f8f6;
  --ink: #202823;
  --muted: #5e6963;
  --rule: #dce2dc;
  --link: #22634d;
  --link-hover: #123c2d;
  --focus: #2f735b;
  --nav-ink: #3a473e;
  --highlight: #e8eee8;
  --active-ink: #1b523e;
  --input-border: #aab8ad;
  --placeholder: #6b766e;
  --disabled-ink: #68736b;
  --disabled-border: #cdd5ce;
  --strong-rule: #bcc8be;
  --warning: #795117;
  --warning-border: #c9ad7b;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
button, input { font: inherit; }
select { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
p { margin: 0 0 .8rem; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
h1 { margin: .5rem 0 .8rem; font-size: clamp(1.8rem, 4vw, 2.3rem); letter-spacing: -.035em; }
h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.02em; }
h3 { margin: 1.8rem 0 .8rem; font-size: 1.05rem; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .8rem; }
code { overflow-wrap: anywhere; }
.page-layout { display: grid; grid-template-columns: 230px minmax(0, 840px); gap: 56px; max-width: 1190px; margin: 0 auto; padding: 0 32px; }
.sidebar { position: sticky; top: 0; align-self: start; padding: 48px 0 32px; max-height: 100vh; overflow-y: auto; }
.site-name { display: block; font-size: 1.1rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.edition { font-size: .85rem; color: var(--muted); margin: .2rem 0 2.2rem; }
.nav-label { margin-bottom: .6rem; font-size: .75rem; color: var(--muted); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-section-label, #section-picker { display: none; }
nav a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: .5rem .7rem; margin: 0; font-size: .9rem; border-radius: 3px; text-decoration: none; color: var(--nav-ink); }
nav a:hover, nav a[aria-current="location"] { background: var(--highlight); color: var(--active-ink); }
.nav-count { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.sidebar-note { border-top: 1px solid var(--rule); padding-top: 1.2rem; margin-top: 1.6rem; color: var(--muted); font-size: .75rem; line-height: 1.8; }
main { min-width: 0; padding: 48px 0 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-title { font-size: 1.1rem; font-weight: 600; margin: 0; letter-spacing: normal; }
.theme-toggle { flex-shrink: 0; }
.lead { color: var(--muted); max-width: 650px; font-size: 1.05rem; }
.updated { color: var(--muted); font-size: .8rem; margin: 1.1rem 0 1.4rem; }
.search { margin: 2rem 0 1rem; }
.search label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.search-input-row { display: flex; gap: 8px; }
input[type="search"] { min-width: 0; width: 100%; padding: .65rem .8rem; color: var(--ink); border: 1px solid var(--input-border); border-radius: 3px; background: var(--paper); font-size: .9rem; }
input::placeholder { color: var(--placeholder); opacity: 1; }
button { padding: .5rem .9rem; background: var(--paper); border: 1px solid var(--input-border); border-radius: 3px; color: var(--link); font-size: .85rem; }
button:hover:not(:disabled) { background: var(--highlight); }
button:disabled { color: var(--disabled-ink); border-color: var(--disabled-border); cursor: default; }
.search-description { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: .45rem; font-size: .75rem; color: var(--muted); }
.search-description p { margin: 0; }
#search-status { white-space: nowrap; font-variant-numeric: tabular-nums; }
.reading-note, .noscript-note { font-size: .82rem; color: var(--muted); margin: 1.1rem 0 0; }
.no-results { border: 1px solid var(--rule); padding: 1rem; margin-top: 2rem; }
.result-section { scroll-margin-top: 24px; padding-top: 2.8rem; }
.result-section + .result-section { margin-top: .8rem; }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
.section-count { color: var(--muted); font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.section-intro { font-size: .88rem; color: var(--muted); margin: .65rem 0 1rem; }
.record-list { border-top: 1px solid var(--strong-rule); }
.report-panel { margin: 1rem 0; border-top: 1px solid var(--rule); }
.report-panel > summary { padding: .8rem 0; color: var(--link); font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.report-text { margin: .4rem 0 1.5rem; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .86rem; line-height: 1.7; tab-size: 2; }
.table-scroll { overflow-x: auto; margin: .5rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem; border-bottom: 1px solid var(--rule); }
td:nth-child(2) { min-width: 90px; }
td code, td .muted { font-size: .7rem; overflow-wrap: anywhere; }
.modifier, .finding { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.subsection-title { margin: 1.8rem 0 .8rem; font-size: 1rem; color: var(--muted); }
.stat-range { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.stat-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.record-id { margin: 0 0 .45rem; line-height: 1.5; font-size: 1.05rem; font-weight: 600; }
.record-id code { font-size: inherit; }
.record-metadata { margin: .45rem 0 0; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.record-metadata code { font-size: .73rem; }
.metadata-label { font-weight: 600; }
.item-effect { margin-top: 1rem; padding-left: 1rem; border-left: 2px solid var(--rule); }
.effect-title { margin: 0 0 .4rem; font-size: .9rem; font-weight: 600; line-height: 1.5; }
.weight { display: inline-block; }
.stat-change { color: var(--muted); font-size: .8rem; margin: .6rem 0; overflow-wrap: anywhere; }
.stat-change code { font-size: .75rem; }
.untranslated { margin: .3rem 0; color: var(--warning); font-size: .83rem; overflow-wrap: anywhere; }
.untranslated span { font-size: .7rem; font-weight: 650; border: 1px solid var(--warning-border); padding: .1rem .3rem; margin-right: .2rem; white-space: nowrap; }
.weight-records { padding: .2rem 0; }
.weight-records > summary { padding: .7rem 0; color: var(--link); font-size: .9rem; }
.weight-records > .record-list { margin-top: .5rem; }
footer { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .75rem; }
.skip-link { position: fixed; left: 1rem; top: -100px; padding: .5rem 1rem; background: var(--paper); z-index: 10; }
.skip-link:focus { top: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
@media (max-width: 800px) {
  .page-layout { display: block; max-width: 760px; padding: 0 20px; }
  .sidebar { position: static; z-index: 2; padding: 12px 0 10px; background: var(--background); border-bottom: 1px solid var(--strong-rule); max-height: none; overflow: visible; }
  .has-script .sidebar { position: sticky; }
  .site-name { display: inline-block; font-size: .95rem; }
  .edition { display: inline-block; margin: 0 0 0 .6rem; font-size: .75rem; }
  .nav-label, .sidebar-note { display: none; }
  nav ul { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 5px; }
  .has-script nav ul { display: none; }
  .has-script .mobile-section-label { display: block; font-size: .7rem; margin-top: .45rem; color: var(--muted); }
  .has-script #section-picker { display: block; width: 100%; margin-top: .2rem; padding: .4rem; border: 1px solid var(--input-border); border-radius: 3px; background: var(--paper); color: var(--ink); font-size: .85rem; }
  nav a { padding: .22rem 0; margin: 0; border-radius: 0; font-size: .76rem; min-height: 30px; }
  .nav-count { display: none; }
  nav a[aria-current="location"] { background: transparent; text-decoration: underline; text-decoration-thickness: 2px; }
  main { padding-top: 28px; }
  .result-section, .modifier { scroll-margin-top: 120px; }
  .search-description { display: block; }
  #search-status { margin-top: .35rem; }
  .result-section { padding-top: 2.2rem; }
  footer { flex-direction: column; gap: .5rem; }
}
@media print {
  :root, :root[data-theme="light"] { color-scheme: light; --background: white; --paper: white; --ink: black; --muted: #444; --rule: #bbb; --strong-rule: #999; --link: black; }
  body { background: white; font-size: 10pt; }
  .page-layout { display: block; max-width: none; padding: 0; }
  .sidebar, .search, .skip-link, .theme-toggle, footer a { display: none !important; }
  main { padding: 0; }
  h2 { break-after: avoid; }
  .modifier { break-inside: avoid; }
  .result-section { padding-top: 1.5rem; }
  .stat-text, .record-id { color: black; }
}
