:root {
  color-scheme: light;
  --control-selected: #fff;
}
:root[data-edition-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f2e7;
  --muted: #c4d2c8;
  --sub: #c4d2c8;
  --paper: #172622;
  --rule: #596c63;
  --teal: #a7e4c9;
  --green: #a7e4c9;
  --red: #ffb99b;
  --light: #253b33;
  --tint: #253b33;
  --control-selected: #172622;
}
[data-edition-theme="dark"] .dek { color: #d3e2d7; }
[data-edition-theme="dark"] .section-label { color: #dfd7a6; }
[data-edition-theme="dark"] .data-section,
[data-edition-theme="dark"] tbody tr:nth-child(even),
[data-edition-theme="dark"] .agreement[open] { background: #233830; }
[data-edition-theme="dark"] th,
[data-edition-theme="dark"] .data-section th { background: #344b40; color: var(--ink); }
[data-edition-theme="dark"] td, [data-edition-theme="dark"] th { border-color: var(--rule); }
[data-edition-theme="dark"] input, [data-edition-theme="dark"] select { background: #12201b; color: var(--ink); }
[data-edition-theme="dark"] .filters button[aria-pressed=true],
[data-edition-theme="dark"] .tabs button[aria-pressed=true] { color: var(--control-selected); }
[data-edition-theme="dark"] .skip { color: #13382a; }
[data-edition-theme="dark"] :focus-visible { outline: 3px solid #ffc874; outline-offset: 3px; }
.theme-toggle {
  flex: 0 0 auto; display: inline-grid; place-items: center; padding: 0;
  height: 36px; width: 36px; border: 1px solid var(--rule); border-radius: 50%;
  color: var(--ink); background: transparent; cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle[hidden], [hidden] { display: none !important; }
.foot nav { flex-wrap: wrap; }
.site-credit { display: flex; flex-wrap: wrap; gap: .3em 1em; }
.register-head { display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.register-foot { max-width: 1000px; margin: auto; padding: 1.1rem clamp(1rem,5vw,3.8rem); font-size: .85rem; }
@media (max-width: 380px) {
  .mast .wrap, .mast nav { gap: .45rem; }
  .theme-toggle { width: 32px; height: 32px; }
}
@media print {
  .theme-toggle, .register-foot { display: none; }
  :root[data-edition-theme] { color-scheme: light; --paper: white; --ink: black; --sub: #222; --teal: #163d30; --muted: #222; }
}
.tablewrap th, .tablewrap td { overflow-wrap: normal; word-break: normal; }
#explorer:has(#region) :is(td, th) { white-space: nowrap; }
