:root {
  --paper: #f6f4ee;
  --card: #fffefa;
  --ink: #161a1c;
  --muted: #5b6266;
  --line: #d8d5cc;
  --blue: #174e70;
  --blue2: #0e354f;
  --teal: #28766d;
  --amber: #a36316;
  --soft: #ebe8df;
  --max: 1180px;
  --read: 780px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}
a:hover {
  color: var(--blue2);
}
:not(pre) > code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #dc9b35;
  outline-offset: 3px;
}
.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}
.skip {
  position: absolute;
  top: -80px;
  left: 18px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.mast {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 238, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}
.mast-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 760;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.mast nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}
.mast nav a {
  color: var(--muted);
  text-decoration: none;
}
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #f9f7f1, #efede6);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 780;
  color: var(--teal);
  margin: 0 0 10px;
}
.hero h1,
.fact-head h1,
.prose h1 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0.1em 0 0.35em;
}
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  max-width: 1080px;
}
.hero-lede,
.lede {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: #303538;
  max-width: 980px;
}
.hero-boundaries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
  max-width: 980px;
}
.hero-boundaries p {
  margin: 0;
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.55);
  padding: 16px 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.button-primary,
.button-secondary {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}
.button-primary {
  background: var(--ink);
  color: white;
}
.button-primary:hover {
  background: var(--blue2);
  color: white;
}
.button-secondary {
  color: var(--ink);
}
.button-secondary:hover {
  background: var(--card);
  color: var(--ink);
}
.stats {
  display: flex;
  gap: 48px;
  margin: 46px 0 0;
}
.stats div {
  display: flex;
  flex-direction: column;
}
.stats dt {
  font:
    700 2rem/1 Georgia,
    serif;
}
.stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.featured {
  padding: 80px 0;
}
.featured > header,
.all-facts-intro {
  max-width: 900px;
}
.featured h2,
.all-facts-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0.15em 0 0.35em;
}
.featured > header > p:last-child,
.all-facts-intro > p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  background: var(--card);
}
.featured-card h3 {
  font:
    700 1.55rem/1.22 Georgia,
    serif;
  margin: 3px 0 15px;
}
.featured-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.featured-card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--teal);
}
.featured-card > p:not(.eyebrow) {
  margin: 0;
  color: #353b3e;
}
.featured-link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.82rem;
  font-weight: 750;
}
.section-jump {
  margin: 28px 0 0;
  text-align: right;
  font-weight: 750;
}
.all-facts {
  border-top: 1px solid var(--line);
}
.all-facts-intro {
  padding-top: 80px;
}
.controls {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: end;
}
.controls label {
  font-weight: 700;
  font-size: 0.86rem;
}
.controls input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid #777;
  background: white;
  color: var(--ink);
  font: inherit;
  border-radius: 3px;
}
.controls > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter,
.copy {
  border: 1px solid #777;
  background: transparent;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 3px;
  font: 600 0.82rem/1.2 inherit;
  cursor: pointer;
}
.filter.active,
.filter:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
#result-count {
  grid-column: 1/-1;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.track {
  padding: 68px 0;
}
.track + .track {
  border-top: 1px solid var(--line);
}
.track > header {
  max-width: 850px;
  margin-bottom: 34px;
}
.track h2,
.detail h2,
.prose h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0.15em 0 0.4em;
}
.track > header > p:last-child {
  font-size: 1.06rem;
  color: var(--muted);
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.fact-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  scroll-margin-top: 90px;
}
.fact-card h3 {
  font:
    700 1.42rem/1.25 Georgia,
    serif;
  margin: 3px 0 15px;
}
.fact-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.fact-card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--teal);
}
.fact-card > p:not(.eyebrow) {
  margin: 0;
  color: #353b3e;
}
.summary-cite {
  white-space: nowrap;
  font-size: 0.8rem;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.76rem;
}
.card-foot span {
  color: var(--muted);
  max-width: 54%;
}
.card-foot > a {
  font-weight: 700;
  text-align: right;
}
.fact-card[hidden],
.track[hidden] {
  display: none;
}
.detail {
  max-width: var(--read);
  padding: 38px 0 100px;
}
.crumb {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 46px;
}
.fact-head {
  padding-bottom: 42px;
  border-bottom: 2px solid var(--ink);
}
.fact-head h1 {
  font-size: clamp(2.35rem, 6vw, 4.6rem);
}
.meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 24px;
}
.meta span {
  border-right: 1px solid var(--line);
  padding-right: 14px;
}
.detail section {
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}
.section-intro {
  color: var(--muted);
}
.evidence-list {
  padding: 0;
  list-style: none;
}
.evidence-list > li {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.record-label {
  font-size: 0.74rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.evidence-list p {
  margin: 5px 0 0;
}
.inline-support {
  margin-top: 18px;
  padding: 16px;
  background: #f1efe9;
  border-left: 3px solid #a9b9bd;
}
.support-title {
  margin: 0 0 10px !important;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.inline-support-grid {
  display: grid;
  gap: 10px;
}
.inline-support-grid article {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.inline-support-grid article:first-child {
  padding-top: 0;
  border-top: 0;
}
.inline-support-grid header {
  display: grid;
  gap: 2px;
}
.inline-support-grid header > a {
  font-size: 0.88rem;
  font-weight: 730;
}
.inline-support-grid header > span {
  color: var(--muted);
  font-size: 0.72rem;
}
.inline-support .snippet {
  margin-top: 10px;
}
.interpretation {
  background: #e7eeee;
  border-left: 3px solid var(--teal) !important;
  margin: 20px -28px;
  padding: 34px 28px !important;
}
.interpretation h2 {
  margin-top: 0.15em;
}
.citations {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: super;
}
.citations a,
.citations span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #9fb1bb;
  border-radius: 50%;
  font: 700 0.66rem/1 monospace;
  text-decoration: none;
}
.limitations {
  background: #efece4;
  border-left: 3px solid var(--amber);
  padding: 22px 24px 22px 42px;
}
.limitations li + li {
  margin-top: 12px;
}
.module {
  margin: 24px -28px;
  padding: 38px 28px !important;
  background: #eeece5;
  border: 1px solid var(--line) !important;
}
.process {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.process li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 14px 14px 48px;
  position: relative;
}
.process li:before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}
.note {
  font-size: 0.88rem;
  color: var(--muted);
}
.wallet-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wallet-comparison-grid article {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
}
.wallet-comparison-grid h3 {
  margin-top: 0;
  font-size: 1.18rem;
}
.wallet-comparison-grid p {
  font-size: 0.86rem;
}
.method-note {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.84rem;
}
details {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
summary {
  cursor: pointer;
  font-weight: 750;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--card);
  font-size: 0.88rem;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
}
th {
  background: #e4e1d9;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.source-list {
  display: grid;
  gap: 14px;
}
.source-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 19px;
  scroll-margin-top: 90px;
}
.source-card header {
  display: flex;
  gap: 13px;
  align-items: start;
}
.source-card h3 {
  font:
    700 1.08rem/1.3 Georgia,
    serif;
  margin: 0;
}
.source-card header p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.76rem;
}
.source-num {
  flex: 0 0 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font: 700 0.7rem monospace;
}
.source-link,
.local-label {
  display: inline-block;
  margin: 14px 0 0;
  font-size: 0.84rem;
  font-weight: 700;
}
.local-label {
  color: var(--muted);
  font-weight: 500;
}
.snippet {
  margin: 18px 0 0;
}
.snippet figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.snippet pre {
  margin: 0;
  overflow: auto;
  background: #172126;
  color: #e9f0ee;
  padding: 14px;
  border-radius: 2px;
  font:
    12px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.snippet code span {
  display: block;
}
.snippet code b {
  display: inline-block;
  color: #83949c;
  width: 38px;
  font-weight: 400;
  user-select: none;
}
.prose {
  max-width: var(--read);
  min-width: 0;
  padding: 70px 0 100px;
}
.prose.wide {
  max-width: var(--max);
}
.prose h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}
.prose h2 {
  font-size: 2rem;
  margin-top: 1.7em;
}
.prose li + li {
  margin-top: 9px;
}
.registry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.registry article {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
}
.registry h2,
.registry h3 {
  font-size: 1.15rem;
  margin: 0.1em 0;
}
.registry h4 {
  font-size: 0.88rem;
  margin: 1.25em 0 0.25em;
}
.registry p {
  font-size: 0.82rem;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.78rem;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
footer p {
  margin: 0;
}
@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }
  .mast {
    position: static;
  }
  .mast-inner {
    padding: 13px 0;
    display: block;
  }
  .mast nav {
    margin-top: 9px;
    gap: 6px 14px;
    flex-wrap: wrap;
    font-size: 0.84rem;
  }
  .hero {
    padding: 58px 0 44px;
  }
  .hero-boundaries,
  .featured-grid,
  .fact-grid,
  .registry,
  .wallet-comparison-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 25px;
  }
  .featured {
    padding: 58px 0;
  }
  .all-facts-intro {
    padding-top: 58px;
  }
  .featured-card {
    min-height: 0;
  }
  .controls {
    grid-template-columns: 1fr;
  }
  .fact-card {
    min-height: 0;
  }
  .card-foot {
    display: block;
  }
  .card-foot span {
    display: block;
    max-width: none;
    margin-bottom: 9px;
  }
  .card-foot > a {
    text-align: left;
  }
  .process {
    grid-template-columns: 1fr;
  }
  .module {
    margin: 20px -8px;
    padding: 30px 16px !important;
  }
  .interpretation {
    margin: 20px -8px;
    padding: 30px 16px !important;
  }
  .detail {
    padding-top: 24px;
  }
  .fact-head h1 {
    font-size: 2.55rem;
  }
  footer .wrap {
    display: block;
  }
  footer p + p {
    margin-top: 7px;
  }
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.65rem;
  }
  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .controls > div {
    display: grid;
  }
  .filter {
    width: 100%;
  }
  .fact-card {
    padding: 21px;
  }
  .featured-card {
    padding: 21px;
  }
  .detail h2 {
    font-size: 1.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .mast,
  #highlights,
  .controls,
  .copy,
  .skip,
  footer {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .wrap,
  .detail,
  .prose {
    width: 100%;
    max-width: none;
  }
  .hero {
    padding: 20px 0;
  }
  .fact-card,
  .source-card,
  .module {
    break-inside: avoid;
    background: white;
  }
  .fact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .snippet pre {
    white-space: pre-wrap;
    color: black;
    background: #eee;
  }
  a {
    color: black;
    text-decoration: none;
  }
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.65em;
    overflow-wrap: anywhere;
  }
}
