:root {
  --ink: #10262d;
  --ink-soft: #40565c;
  --paper: #f8f6f0;
  --paper-bright: #fffef9;
  --teal: #0d6b64;
  --teal-dark: #074c49;
  --mint: #d9eee6;
  --mint-bright: #bde7d7;
  --coral: #e96d5b;
  --coral-soft: #f8d8d0;
  --gold: #e1ad42;
  --line: #c8d5d0;
  --line-dark: #8fa49f;
  --white: #ffffff;
  --shadow: 0 22px 70px rgb(20 63 61 / 12%);
  --shadow-soft: 0 10px 34px rgb(20 63 61 / 9%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 8% 12%, rgb(189 231 215 / 42%), transparent 24rem),
    radial-gradient(circle at 92% 3%, rgb(248 216 208 / 44%), transparent 23rem),
    var(--paper);
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.95rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 0.55rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 0.9rem;
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 0.18rem;
  content: "";
  background: var(--coral);
  border-radius: 999px;
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.top-note {
  color: #d8eeea;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.top-note .container {
  display: flex;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 2.45rem;
}

.top-note p {
  margin: 0;
}

.top-note a {
  color: var(--white);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(248 246 240 / 92%);
  border-bottom: 1px solid rgb(143 164 159 / 36%);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 2.55rem;
  height: 2.55rem;
  background: var(--teal);
  border-radius: 50% 50% 46% 54%;
  box-shadow: inset -9px -8px 0 rgb(7 76 73 / 34%);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  background: var(--coral);
  border: 3px solid var(--paper);
  border-radius: 50%;
}

.brand-mark::before {
  top: -0.16rem;
  right: 0.15rem;
  width: 0.76rem;
  height: 0.76rem;
}

.brand-mark::after {
  bottom: 0.05rem;
  left: -0.2rem;
  width: 0.62rem;
  height: 0.62rem;
}

.brand small {
  display: block;
  margin-top: 0.24rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.site-nav a {
  padding: 0.65rem 0.85rem;
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
  background: var(--mint);
}

.menu-toggle {
  display: none;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  font-weight: 800;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
.display {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.45rem;
  font-size: clamp(3.25rem, 8vw, 6.75rem);
}

h1 em {
  color: var(--teal);
  font-style: normal;
}

h2 {
  max-width: 17ch;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 4.7vw, 4.25rem);
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 61ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  color: var(--white);
  background: var(--teal-dark);
  border: 1px solid var(--teal-dark);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgb(7 76 73 / 16%);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-dark);
  box-shadow: none;
}

.button.secondary:hover {
  color: var(--teal-dark);
  background: var(--mint);
}

.hero-fineprint {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.78rem !important;
}

.hero-fineprint::before {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.hero-visual {
  position: relative;
  min-height: 31rem;
  padding: 1.2rem;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hero-visual::after {
  position: absolute;
  right: -1.1rem;
  bottom: -1.1rem;
  width: 8rem;
  height: 8rem;
  content: "";
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.94;
  z-index: -1;
}

.visual-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.2rem 0.45rem 0;
  color: #c5dfda;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-label span:last-child {
  color: var(--coral-soft);
}

.hero-visual svg {
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

.sequence-strip {
  position: absolute;
  right: 1.25rem;
  bottom: 1.2rem;
  left: 1.25rem;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 0.2rem;
}

.sequence-strip span {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink);
  background: var(--mint-bright);
  border-radius: 0.36rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.55rem, 1.1vw, 0.75rem);
  font-weight: 900;
}

.sequence-strip span:nth-child(3n) {
  background: var(--coral-soft);
}

.stat-ribbon {
  position: relative;
  z-index: 2;
  margin-top: -1.25rem;
}

.stat-ribbon .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.stat {
  padding: 1.55rem;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.source-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(5.5rem, 9vw, 8rem);
}

.source-section::before {
  position: absolute;
  top: 6rem;
  right: -10rem;
  width: 34rem;
  height: 34rem;
  content: "";
  background: radial-gradient(circle, rgb(189 231 215 / 56%) 0 2%, transparent 2.5% 100%);
  background-size: 1.2rem 1.2rem;
  border-radius: 50%;
  opacity: 0.72;
  mask-image: radial-gradient(circle, #000, transparent 70%);
}

.source-atlas {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.source-intro {
  position: relative;
  z-index: 1;
}

.text-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  font-weight: 850;
}

.source-orbit {
  position: relative;
  min-height: 31rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--paper-bright) 0 17%, transparent 17.4%),
    radial-gradient(circle, transparent 0 38%, rgb(13 107 100 / 12%) 38.4% 38.8%, transparent 39.2%),
    radial-gradient(circle, transparent 0 65%, rgb(233 109 91 / 16%) 65.4% 65.8%, transparent 66.2%),
    var(--paper-bright);
  box-shadow: var(--shadow-soft);
}

.orbit-center,
.orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
}

.orbit-center {
  top: 50%;
  left: 50%;
  width: 10.5rem;
  aspect-ratio: 1;
  padding: 1rem;
  color: var(--white);
  background: var(--ink);
  border: 7px solid var(--mint-bright);
  border-radius: 50%;
  box-shadow: 0 18px 46px rgb(16 38 45 / 24%);
  transform: translate(-50%, -50%);
}

.orbit-center strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  font-weight: 500;
  line-height: 1;
}

.orbit-center span,
.orbit-node span {
  color: #c5dfda;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbit-node {
  width: 9rem;
  min-height: 5.5rem;
  padding: 0.75rem;
  color: var(--white);
  background: var(--teal-dark);
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgb(7 76 73 / 20%);
}

.orbit-node strong {
  font-size: 0.83rem;
}

.orbit-node span {
  color: #d3ebe6;
  font-size: 0.54rem;
}

.node-one { top: 8%; left: 17%; }
.node-two { top: 12%; right: 9%; background: #a84c40; }
.node-three { bottom: 9%; left: 9%; background: #335e78; }
.node-four { right: 14%; bottom: 7%; background: #725729; }

.atlas-pulse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, 1.5fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 2.2rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.atlas-pulse > div {
  min-height: 6.2rem;
  padding: 1.1rem;
  background: var(--paper-bright);
}

.atlas-pulse strong {
  display: block;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
}

.atlas-pulse > div > span {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 750;
}

.atlas-pulse .source-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-content: center;
  align-items: center;
}

.source-stack span {
  padding: 0.36rem 0.58rem;
  color: var(--teal-dark);
  background: var(--mint);
  border: 1px solid #a7d5c6;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 850;
}

.section.alt {
  background: var(--ink);
  color: var(--white);
}

.section.alt .eyebrow,
.section.alt .muted,
.section.alt .section-intro {
  color: #bfdbd6;
}

.section.alt .eyebrow::before {
  background: var(--coral);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-heading > * {
  margin-bottom: 0;
}

.section-intro,
.muted {
  color: var(--ink-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  position: relative;
  padding: 1.5rem;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.card-number {
  display: inline-grid;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 2.4rem;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.feature-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.feature-band h2 {
  color: var(--white);
}

.mechanism-map {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  color: var(--ink);
  background: #eff8f4;
  border-radius: var(--radius-lg);
}

.mechanism-map svg {
  width: 100%;
}

.mechanism-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.mechanism-legend div {
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.mechanism-legend strong {
  display: block;
  margin-bottom: 0.2rem;
}

.quote-panel {
  padding: clamp(1.8rem, 5vw, 3rem);
  background: var(--coral-soft);
  border-radius: var(--radius-lg);
}

.quote-panel blockquote {
  max-width: 27ch;
  margin: 0 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.8vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.quote-panel cite {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-style: normal;
}

.page-hero {
  padding: clamp(4.5rem, 8vw, 7rem) 0 3.5rem;
}

.page-hero h1 {
  max-width: 15ch;
  font-size: clamp(3rem, 7vw, 5.9rem);
}

.page-hero .lede {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--mint);
  border: 1px solid #a7d5c6;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}

.notice::before {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.3rem;
  content: "";
  background: var(--teal);
  border-radius: 50%;
}

.explorer-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 6rem;
}

.filter-panel {
  position: sticky;
  top: 6.2rem;
  padding: 1.25rem;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.filter-panel h2 {
  margin: 0 0 1.2rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
}

.field {
  margin-bottom: 1rem;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.62rem 0.72rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 0.65rem;
}

.field input::placeholder {
  color: #65777b;
}

.range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.range-fields span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
}

.check-field {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.77rem;
  font-weight: 750;
}

.check-field input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.08rem;
  accent-color: var(--teal);
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.filter-actions .button {
  width: 100%;
}

.results-panel {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.8rem;
  background: rgb(255 254 249 / 78%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.results-toolbar p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 750;
}

.text-button {
  padding: 0.45rem 0.7rem;
  color: var(--teal-dark);
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.text-button:hover {
  background: var(--mint);
}

.result-list {
  display: grid;
  gap: 0.8rem;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgb(20 63 61 / 5%);
}

.result-card:hover {
  border-color: var(--line-dark);
  box-shadow: var(--shadow-soft);
}

.result-card h3 {
  font-size: 1.08rem;
}

.result-card h3 button {
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  border: 0;
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.sequence {
  display: block;
  max-width: 100%;
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  overflow-x: auto;
  color: #21383e;
  background: #edf4f1;
  border-left: 3px solid var(--teal);
  border-radius: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.23rem 0.48rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
}

.record-id {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.empty-state {
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: var(--paper-bright);
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.loading {
  display: grid;
  min-height: 16rem;
  color: var(--ink-soft);
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  place-items: center;
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.8rem;
  border: 4px solid var(--mint);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

dialog {
  width: min(760px, calc(100% - 1.5rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--paper-bright);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 120px rgb(4 35 33 / 40%);
}

dialog::backdrop {
  background: rgb(7 28 33 / 68%);
  backdrop-filter: blur(5px);
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  background: var(--paper-bright);
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  max-width: none;
  margin: 0;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 900;
}

.dialog-body {
  padding: 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.detail {
  padding: 0.8rem;
  background: var(--paper);
  border-radius: var(--radius-sm);
}

.detail dt {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail dd {
  margin: 0.22rem 0 0;
  font-size: 0.85rem;
}

.provenance {
  padding: 1rem;
  background: var(--mint);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  max-width: none;
  margin-top: 4.5rem;
  margin-bottom: 1.1rem;
  padding-top: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  scroll-margin-top: 6.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: #324a50;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose .citation {
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.toc {
  position: sticky;
  top: 6.2rem;
  padding: 1.2rem;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.toc h2 {
  margin: 0 0 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li + li {
  margin-top: 0.5rem;
}

.toc a {
  font-size: 0.8rem;
  font-weight: 720;
}

.callout {
  margin: 2rem 0;
  padding: 1.35rem;
  background: var(--mint);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.source-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 2rem 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.source-ledger article {
  padding: 1.35rem;
  background: var(--paper-bright);
}

.source-ledger article > span {
  color: #a84c40;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-ledger h3 {
  margin-top: 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.source-ledger p,
.source-ledger a {
  font-size: 0.78rem;
}

.source-ledger a {
  font-weight: 850;
}

.callout.warning {
  background: var(--coral-soft);
  border-left-color: var(--coral);
}

.callout p:last-child {
  margin-bottom: 0;
}

.process-list {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.process-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3.7rem;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  counter-increment: steps;
}

.process-list li::before {
  position: absolute;
  top: 0.86rem;
  left: 0.9rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  color: var(--white);
  content: counter(steps);
  background: var(--teal);
  border-radius: 50%;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 850;
}

.comparison-table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.8rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--mint);
}

.site-footer {
  padding: 4rem 0 2rem;
  color: #c9dfda;
  background: #0b2229;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand small,
.site-footer p {
  color: #a9c5c0;
}

.site-footer h2 {
  margin: 0 0 0.9rem;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: #e4f1ee;
  font-size: 0.82rem;
}

.footer-bottom {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgb(200 213 208 / 20%);
  font-size: 0.72rem;
}

.footer-bottom p {
  margin: 0;
}

.not-found {
  display: grid;
  min-height: 64vh;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  max-width: none;
  margin-inline: auto;
}

.not-found p {
  max-width: 52ch;
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-band,
  .section-heading,
  .content-grid,
  .source-atlas {
    grid-template-columns: 1fr;
  }

  .source-orbit {
    width: min(100%, 34rem);
    margin-inline: auto;
  }

  .atlas-pulse {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    min-height: 28rem;
  }

  .stat-ribbon .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card:last-child {
    grid-column: 1 / -1;
  }

  .explorer-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .toc {
    position: static;
  }

  .filter-panel form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 0.8rem;
  }

  .filter-panel h2,
  .filter-actions {
    grid-column: 1 / -1;
  }

  .filter-actions {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol {
    columns: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  html {
    scroll-behavior: auto;
  }

  .top-note .container {
    align-items: flex-start;
    padding-block: 0.55rem;
  }

  .top-note a {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.65rem;
    background: var(--paper-bright);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    padding: 0.8rem;
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.8rem);
  }

  .hero {
    padding-top: 3.8rem;
  }

  .hero-visual {
    min-height: 23rem;
  }

  .stat-ribbon {
    margin-top: 0;
  }

  .card-grid,
  .mechanism-legend,
  .footer-grid,
  .detail-grid,
  .source-ledger {
    grid-template-columns: 1fr;
  }

  .card:last-child,
  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .filter-panel form {
    grid-template-columns: 1fr;
  }

  .filter-panel h2,
  .filter-actions {
    grid-column: auto;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .record-id {
    grid-row: 1;
  }

  .toc ol {
    columns: 1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  .source-orbit {
    min-height: 27rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--content));
  }

  .brand-text {
    max-width: 12rem;
    font-size: 0.84rem;
  }

  .brand small {
    font-size: 0.57rem;
  }

  .hero-actions,
  .filter-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 20rem;
  }

  .stat-ribbon .container {
    grid-template-columns: 1fr;
  }

  .atlas-pulse {
    grid-template-columns: 1fr;
  }

  .source-orbit {
    min-height: 23rem;
  }

  .orbit-center {
    width: 8.5rem;
  }

  .orbit-center strong {
    font-size: 2rem;
  }

  .orbit-node {
    width: 7.3rem;
    min-height: 4.7rem;
  }

  .node-one { top: 5%; left: 6%; }
  .node-two { top: 7%; right: 2%; }
  .node-three { bottom: 5%; left: 2%; }
  .node-four { right: 4%; bottom: 4%; }

  .stat,
  .stat:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .top-note,
  .site-header,
  .hero-actions,
  .filter-panel,
  .site-footer,
  .text-button,
  .button {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }
}
