:root {
  color-scheme: dark;
  --void: #050505;
  --deep: #09090a;
  --panel: #0d0d0f;
  --panel-2: #121214;
  --panel-3: #17171a;
  --paper: #f5f0e6;
  --soft: #d9d3c8;
  --muted: #a19b92;
  --faint: #77736d;
  --line: rgba(245, 240, 230, .14);
  --line-strong: rgba(245, 240, 230, .36);
  --violet: #a89fff;
  --violet-bright: #c1bcff;
  --violet-soft: rgba(168, 159, 255, .1);
  --violet-line: rgba(168, 159, 255, .46);
  --cyan: #96d8cf;
  --cyan-bright: #b8ebe4;
  --cyan-soft: rgba(150, 216, 207, .09);
  --cyan-line: rgba(150, 216, 207, .44);
  --amber: #dbb878;
  --amber-soft: rgba(219, 184, 120, .1);
  --amber-line: rgba(219, 184, 120, .44);
  --red: #dc9180;
  --red-soft: rgba(220, 145, 128, .1);
  --red-line: rgba(220, 145, 128, .48);
  --green: #b8d5bd;
  --green-soft: rgba(184, 213, 189, .1);
  --green-line: rgba(184, 213, 189, .42);
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --body: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --ui: Inter, "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shell: 84rem;
  --prose: 47rem;
  --wide: 66rem;
  --gutter: clamp(1.2rem, 4.8vw, 4rem);
  --section-gap: clamp(5.5rem, 11vw, 9rem);
  --fast: 180ms;
  --normal: 320ms;
  --ease: cubic-bezier(.2, .72, .2, 1);
}

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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  background: var(--void);
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  color: var(--paper);
  background:
    radial-gradient(ellipse 66% 27% at 84% 1%, rgba(168, 159, 255, .105), transparent 70%),
    radial-gradient(ellipse 49% 24% at 2% 34%, rgba(150, 216, 207, .05), transparent 72%),
    linear-gradient(rgba(245, 240, 230, .017) 1px, transparent 1px) 0 0 / 100% 11rem,
    var(--void);
  font-family: var(--body);
  font-size: clamp(1.03rem, 1.13vw, 1.12rem);
  line-height: 1.88;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .16;
  background-image:
    radial-gradient(circle at 17% 29%, rgba(255, 255, 255, .11) 0 .5px, transparent .8px),
    radial-gradient(circle at 79% 67%, rgba(255, 255, 255, .07) 0 .5px, transparent .75px);
  background-size: 97px 89px, 149px 137px;
}

::selection {
  color: var(--void);
  background: var(--violet);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-color: var(--violet-line);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
output {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

strong,
b {
  font-weight: 600;
}

code,
.mono {
  font-family: var(--mono);
}

code {
  color: var(--cyan-bright);
  font-size: .86em;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
li,
dd {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: var(--void);
  background: var(--paper);
  font-family: var(--ui);
  font-size: .76rem;
  letter-spacing: .08em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--fast) ease;
}

.skip-link:focus {
  transform: none;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 2px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.site-header,
.hero,
.thesis,
.lesson-safety,
.mobile-toc,
.page-grid,
.course-close,
.site-footer {
  width: min(calc(100% - 2 * var(--gutter)), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  min-height: 5.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
}

.brand {
  flex: none;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .36em;
  text-decoration: none;
}

.course-crumb {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.crumb-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.lesson-code {
  color: var(--violet-bright);
}

.hero {
  min-height: min(52rem, calc(100svh - 5.1rem));
  padding-block: clamp(4.8rem, 10vw, 8.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .82fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow,
.nav-kicker,
.section-heading > p,
.lab-kicker,
.mini-kicker {
  margin: 0;
  color: var(--violet-bright);
  font-family: var(--ui);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  margin: 1.3rem 0 1.65rem;
  font-family: var(--display);
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.hero h1 em {
  color: var(--violet-bright);
  font-style: normal;
}

.hero-lead {
  max-width: 43rem;
  margin: 0;
  color: var(--soft);
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.9;
}

.hero-lead strong {
  color: var(--paper);
}

.hero-meta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.35rem;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .7rem;
  letter-spacing: .1em;
}

.hero-meta span {
  position: relative;
}

.hero-meta span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -.78rem;
  width: 2px;
  height: 2px;
  content: "";
  border-radius: 50%;
  background: var(--faint);
}

.diagram {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .018), transparent 32%),
    var(--panel);
}

.diagram > figcaption,
figure.diagram > figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
}

.diagram > figcaption span,
figure.diagram > figcaption span {
  color: var(--muted);
  font-size: .61rem;
  letter-spacing: .16em;
}

.diagram > figcaption strong,
figure.diagram > figcaption strong {
  font-size: .78rem;
  letter-spacing: .05em;
}

.journey-map {
  position: relative;
  margin: 0;
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, .24);
}

.journey-map::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, var(--violet-line), transparent 36%, var(--cyan-line));
  filter: blur(22px);
  opacity: .2;
}

.journey-rail {
  position: relative;
  margin: 0;
  padding: 1.2rem 1rem 1.1rem;
  list-style: none;
}

.journey-rail::before {
  position: absolute;
  top: 2.2rem;
  bottom: 2.2rem;
  left: 2.02rem;
  width: 1px;
  content: "";
  background: linear-gradient(var(--violet), var(--cyan), var(--amber));
  opacity: .48;
}

.journey-rail li {
  position: relative;
  min-height: 4.8rem;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 1rem;
}

.station-index {
  position: relative;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--void);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 700;
}

.journey-rail li:nth-child(2) .station-index {
  background: var(--violet);
}

.journey-rail li:nth-child(3) .station-index {
  background: var(--cyan);
}

.journey-rail li:nth-child(4) .station-index {
  background: var(--amber);
}

.journey-rail b,
.journey-rail small {
  display: block;
}

.journey-rail b {
  font-family: var(--ui);
  font-size: .79rem;
  letter-spacing: .1em;
}

.journey-rail small {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .77rem;
}

.journey-rail i {
  color: var(--faint);
  font-family: var(--ui);
  font-size: .61rem;
  font-style: normal;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.journey-signal {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  border-top: 1px solid var(--line);
  background: var(--violet-soft);
}

.journey-signal > span {
  width: .56rem;
  height: .56rem;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 1.2rem var(--green);
}

.journey-signal p,
.journey-signal b,
.journey-signal small {
  margin: 0;
  display: block;
}

.journey-signal b {
  font-size: .84rem;
}

.journey-signal small {
  color: var(--muted);
  font-family: var(--ui);
  font-size: .58rem;
  letter-spacing: .05em;
}

.thesis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.thesis article {
  padding: 2.2rem clamp(1.3rem, 2.5vw, 2.5rem);
}

.thesis article + article {
  border-left: 1px solid var(--line);
}

.thesis-number {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .65rem;
}

.thesis h2 {
  margin: .72rem 0 .7rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
}

.thesis p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.75;
}

.lesson-safety {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-soft);
}

.lesson-safety strong {
  flex: none;
  color: var(--cyan-bright);
  font-family: var(--ui);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lesson-safety p {
  margin: 0;
  color: var(--soft);
  font-size: .86rem;
  line-height: 1.7;
}

.mobile-toc {
  display: none;
}

.page-grid {
  margin-top: var(--section-gap);
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.lesson-nav {
  position: sticky;
  top: 2.3rem;
  max-height: calc(100vh - 4.6rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.lesson-nav ol {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.lesson-nav li {
  border-top: 1px solid var(--line);
}

.lesson-nav li:last-child {
  border-bottom: 1px solid var(--line);
}

.lesson-nav a {
  padding: .65rem 0;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: .35rem;
  color: var(--faint);
  font-family: var(--ui);
  font-size: .66rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color var(--fast) ease, padding-left var(--fast) ease;
}

.lesson-nav a span {
  color: var(--faint);
  font-family: var(--mono);
}

.lesson-nav a:hover,
.lesson-nav a[aria-current="true"] {
  padding-left: .35rem;
  color: var(--paper);
}

.lesson-nav a[aria-current="true"] span {
  color: var(--violet);
}

.nav-status {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--ui);
  font-size: .62rem;
}

.nav-status strong {
  color: var(--violet-bright);
  font-family: var(--mono);
}

.lesson-content {
  min-width: 0;
}

.chapter {
  width: min(100%, var(--prose));
  margin: 0 auto var(--section-gap);
  scroll-margin-top: 2rem;
}

.wide-chapter {
  width: min(100%, var(--wide));
}

.section-heading {
  margin-bottom: 2.25rem;
}

.section-heading > p span {
  color: var(--paper);
  font-family: var(--mono);
}

.section-heading h2 {
  max-width: 16ch;
  margin: .85rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.7vw, 4.35rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.16;
}

.section-intro {
  max-width: 46rem;
  margin: 0;
  color: var(--soft);
  font-size: clamp(1.03rem, 1.35vw, 1.2rem);
  line-height: 1.9;
}

.body-copy {
  max-width: var(--prose);
  margin: 2rem auto 0;
  color: var(--soft);
}

.diagram-note {
  margin: 0;
  padding: .9rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .76rem;
  line-height: 1.65;
}

.system-map {
  margin: 3rem 0 2.5rem;
}

.system-layers {
  padding: 1.35rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: .8rem;
}

.system-layer {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--deep);
}

.system-layer > span,
.system-layer small {
  font-family: var(--ui);
  font-size: .59rem;
  letter-spacing: .12em;
}

.system-layer > span {
  color: var(--violet);
}

.system-layer.bridge > span {
  color: var(--cyan);
}

.system-layer.chain > span {
  color: var(--amber);
}

.system-layer h3 {
  margin: .7rem 0 .5rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.system-layer p {
  min-height: 6.2rem;
  margin: 0 0 .8rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.7;
}

.system-layer small {
  color: var(--faint);
}

.system-arrow {
  align-self: center;
  color: var(--line-strong);
  font-family: var(--ui);
}

.system-return {
  padding: .85rem 1.35rem;
  display: flex;
  justify-content: flex-end;
  gap: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: var(--ui);
  font-size: .62rem;
  letter-spacing: .06em;
}

.system-return b {
  margin-right: auto;
  color: var(--paper);
}

.concept-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.concept-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.concept-card {
  padding: 1.45rem;
  background: var(--panel);
}

.card-tag {
  display: inline-block;
  font-family: var(--ui);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.card-tag.violet {
  color: var(--violet-bright);
}

.card-tag.cyan {
  color: var(--cyan-bright);
}

.card-tag.amber {
  color: var(--amber);
}

.card-tag.red {
  color: var(--red);
}

.concept-card h3,
.explanation-grid h3 {
  margin: .72rem 0 .55rem;
  font-size: 1rem;
  line-height: 1.55;
}

.concept-card p,
.explanation-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.72;
}

.protocol-note,
.warning-note {
  margin-top: 2rem;
  padding: 1.15rem 1.3rem;
  border-left: 2px solid var(--violet);
  background: var(--violet-soft);
}

.warning-note {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.protocol-note strong,
.warning-note strong {
  color: var(--violet-bright);
  font-family: var(--ui);
  font-size: .69rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.warning-note strong {
  color: var(--amber);
}

.protocol-note p,
.warning-note p {
  margin: .35rem 0 0;
  color: var(--soft);
  font-size: .9rem;
  line-height: 1.75;
}

.protocol-note em {
  color: var(--paper);
  font-style: normal;
}

.identity-chain {
  margin: 2.8rem 0 2rem;
}

.identity-flow {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  gap: .55rem;
}

.identity-node {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--deep);
}

.identity-node > span,
.identity-node b {
  display: block;
  font-family: var(--ui);
  font-size: .56rem;
  letter-spacing: .1em;
}

.identity-node > span {
  color: var(--violet);
}

.account-node > span {
  color: var(--cyan);
}

.address-node > span {
  color: var(--amber);
}

.state-node > span {
  color: var(--green);
}

.identity-node h3 {
  margin: .65rem 0 .35rem;
  font-size: .93rem;
  line-height: 1.45;
}

.identity-node p {
  min-height: 3.8rem;
  margin: 0 0 .55rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.55;
}

.identity-node b {
  color: var(--soft);
}

.flow-mark {
  color: var(--faint);
  font-family: var(--ui);
  font-size: .52rem;
  line-height: 1.4;
  text-align: center;
}

.definition-list {
  margin-top: 2rem;
  border-block: 1px solid var(--line);
}

.definition-list article {
  padding: 1.05rem 0;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
}

.definition-list article + article {
  border-top: 1px solid var(--line);
}

.definition-list article > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .66rem;
}

.definition-list h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
}

.definition-list p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.72;
}

.lab {
  margin-top: 3rem;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.lab-head {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.lab-head h3 {
  margin: .3rem 0 0;
  font-size: 1.2rem;
}

.lab-head > span,
.lab-head output {
  color: var(--muted);
  font-family: var(--ui);
  font-size: .62rem;
  letter-spacing: .08em;
}

.lab-intro {
  margin: 0;
  padding: 1rem 1.15rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}

.scenario-tabs {
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.scenario-tabs button,
.quiz-options button,
.console-controls button {
  padding: .58rem .8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: var(--deep);
  font-family: var(--ui);
  font-size: .68rem;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}

.scenario-tabs button:hover,
.scenario-tabs button[aria-pressed="true"] {
  color: var(--paper);
  border-color: var(--violet-line);
  background: var(--violet-soft);
}

.recovery-result {
  margin: 0 1.15rem 1.15rem;
  display: grid;
  grid-template-columns: 13rem 1fr;
}

.result-status {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background: var(--violet-soft);
}

.result-status span {
  color: var(--violet-bright);
  font-family: var(--ui);
  font-size: .58rem;
  letter-spacing: .14em;
}

.result-status strong {
  margin-top: 3.5rem;
  font-size: 1.15rem;
  line-height: 1.5;
}

.recovery-result dl,
.field-explainer dl,
.console-body dl {
  margin: 0;
}

.recovery-result dl > div,
.field-explainer dl > div,
.console-body dl > div {
  padding: .85rem 1rem;
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
}

.recovery-result dl > div + div,
.field-explainer dl > div + div,
.console-body dl > div + div {
  border-top: 1px solid var(--line);
}

.recovery-result dt,
.field-explainer dt,
.console-body dt {
  color: var(--faint);
  font-family: var(--ui);
  font-size: .61rem;
  letter-spacing: .08em;
}

.recovery-result dd,
.field-explainer dd,
.console-body dd {
  margin: 0;
  color: var(--soft);
  font-size: .82rem;
  line-height: 1.65;
}

.noscript-note {
  margin: 1rem 1.15rem;
  padding: .8rem 1rem;
  color: var(--soft);
  border: 1px solid var(--amber-line);
  background: var(--amber-soft);
  font-size: .82rem;
}

.step-list {
  border-top: 1px solid var(--line);
}

.step-list article {
  padding: 1.35rem 0;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .7rem;
}

.step-list h3 {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
}

.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.provenance-flow {
  margin: 2.8rem 0 2rem;
}

.provenance-track {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: .65rem;
}

.provenance-track article {
  min-height: 8.4rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--deep);
}

.provenance-track article > span {
  color: var(--violet);
  font-family: var(--ui);
  font-size: .56rem;
  letter-spacing: .13em;
}

.provenance-track article:nth-of-type(2) > span {
  color: var(--cyan);
}

.provenance-track article:nth-of-type(3) > span {
  color: var(--amber);
}

.provenance-track article:nth-of-type(4) > span {
  color: var(--green);
}

.provenance-track b {
  margin: 1.1rem 0 auto;
  font-size: .88rem;
  line-height: 1.5;
}

.provenance-track small {
  color: var(--muted);
  font-size: .7rem;
}

.provenance-track i {
  color: var(--line-strong);
  font-style: normal;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.choice-grid article {
  padding: 1.3rem;
  background: var(--panel);
}

.choice-label {
  color: var(--cyan);
  font-family: var(--ui);
  font-size: .59rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.choice-grid article:nth-child(2) .choice-label {
  color: var(--violet);
}

.choice-grid article:nth-child(3) .choice-label {
  color: var(--amber);
}

.choice-grid h3 {
  margin: .75rem 0 .8rem;
  font-size: 1rem;
}

.choice-grid ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: .8rem;
}

.choice-grid li + li {
  margin-top: .35rem;
}

.secret-layers {
  margin: 2.8rem 0 2rem;
}

.secret-stack {
  padding: 1.2rem;
}

.secret-tier {
  min-height: 5.2rem;
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--deep);
}

.secret-tier + .secret-tier {
  margin-top: .55rem;
}

.secret-tier > span {
  color: var(--green);
  font-family: var(--ui);
  font-size: .58rem;
  letter-spacing: .13em;
}

.local-tier > span {
  color: var(--cyan);
}

.key-tier > span {
  color: var(--amber);
}

.phrase-tier > span {
  color: var(--red);
}

.secret-tier h3,
.secret-tier p {
  margin: 0;
}

.secret-tier h3 {
  font-size: 1rem;
}

.secret-tier p {
  color: var(--muted);
  font-size: .76rem;
}

.secret-tier > b {
  color: var(--soft);
  font-family: var(--ui);
  font-size: .65rem;
}

.phrase-tier {
  border-color: var(--red-line);
  background: var(--red-soft);
}

.backup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.backup-grid article {
  padding: 1.35rem;
  background: var(--panel);
}

.backup-grid span {
  color: var(--violet);
  font-family: var(--ui);
  font-size: .58rem;
  letter-spacing: .12em;
}

.backup-grid h3 {
  margin: .65rem 0 .45rem;
  font-size: 1.04rem;
}

.backup-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.never-enter {
  margin-top: 2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.4rem;
  border: 1px solid var(--red-line);
  background:
    linear-gradient(135deg, var(--red-soft), transparent 58%),
    var(--panel);
}

.never-mark {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  color: var(--red);
  border: 1px solid var(--red-line);
  border-radius: 50%;
  font-family: var(--ui);
  font-size: 2rem;
}

.never-enter .mini-kicker {
  color: var(--red);
}

.never-enter h3 {
  max-width: 28ch;
  margin: .6rem 0 .7rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.45;
}

.never-enter p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.network-split {
  margin: 2.8rem 0 2rem;
}

.ledger-compare {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 7rem 1fr;
  align-items: center;
  gap: 1rem;
}

.ledger {
  border: 1px solid var(--line);
  background: var(--deep);
}

.ledger header {
  padding: .8rem .9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
  font-size: .57rem;
  letter-spacing: .08em;
}

.ledger header span {
  color: var(--amber);
}

.sepolia-ledger header span {
  color: var(--violet);
}

.ledger header b {
  color: var(--muted);
}

.ledger-address {
  padding: 1.1rem .9rem;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .86rem;
}

.ledger dl {
  margin: 0;
}

.ledger dl > div {
  padding: .65rem .9rem;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: .8rem;
}

.ledger dl > div + div {
  border-top: 1px solid var(--line);
}

.ledger dt {
  color: var(--faint);
  font-family: var(--ui);
  font-size: .58rem;
}

.ledger dd {
  margin: 0;
  color: var(--soft);
  font-size: .75rem;
}

.ledger-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .55rem;
  text-align: center;
}

.ledger-divider b {
  color: var(--paper);
  font-size: 1.6rem;
}

.network-cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.network-card {
  padding: 1.3rem;
  background: var(--panel);
}

.network-card.recommended {
  background:
    linear-gradient(150deg, var(--violet-soft), transparent 55%),
    var(--panel);
}

.network-card.deprecated {
  background:
    linear-gradient(150deg, var(--red-soft), transparent 55%),
    var(--panel);
}

.network-card > span {
  color: var(--muted);
  font-family: var(--ui);
  font-size: .54rem;
  letter-spacing: .12em;
}

.network-card.recommended > span {
  color: var(--violet-bright);
}

.network-card.deprecated > span {
  color: var(--red);
}

.network-card h3 {
  margin: .7rem 0 .55rem;
  font-family: var(--ui);
  font-size: 1.15rem;
}

.network-card > p {
  min-height: 7rem;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.7;
}

.network-card dl {
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.network-card dl > div {
  padding: .5rem 0;
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: .5rem;
}

.network-card dl > div + div {
  border-top: 1px solid var(--line);
}

.network-card dt {
  color: var(--faint);
  font-family: var(--ui);
  font-size: .58rem;
}

.network-card dd {
  margin: 0;
  color: var(--soft);
  font-size: .7rem;
}

.faucet-flow {
  margin: 2rem 0;
}

.faucet-steps {
  margin: 0;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .55rem;
  list-style: none;
}

.faucet-steps li {
  position: relative;
  min-height: 8.8rem;
  padding: .9rem;
  border: 1px solid var(--line);
  background: var(--deep);
}

.faucet-steps li:not(:last-child)::after {
  position: absolute;
  top: 1.25rem;
  right: -.45rem;
  z-index: 2;
  content: "→";
  color: var(--line-strong);
  font-family: var(--ui);
}

.faucet-steps li > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .6rem;
}

.faucet-steps b,
.faucet-steps small {
  display: block;
}

.faucet-steps b {
  margin: 1rem 0 .35rem;
  font-size: .82rem;
  line-height: 1.45;
}

.faucet-steps small {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.fact-strip article {
  padding: 1.2rem;
}

.fact-strip article + article {
  border-left: 1px solid var(--line);
}

.fact-strip span,
.fact-strip strong {
  display: block;
}

.fact-strip span {
  color: var(--faint);
  font-family: var(--ui);
  font-size: .58rem;
  letter-spacing: .1em;
}

.fact-strip strong {
  margin: .45rem 0;
  color: var(--amber);
  font-size: .96rem;
}

.fact-strip p {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.65;
}

.resource-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.resource-actions a {
  padding: .65rem .85rem;
  border: 1px solid var(--violet-line);
  color: var(--violet-bright);
  background: var(--violet-soft);
  font-family: var(--ui);
  font-size: .67rem;
  text-decoration: none;
}

.resource-actions a:hover {
  border-color: var(--violet);
  background: rgba(168, 159, 255, .16);
}

.tx-lifecycle {
  margin: 2.8rem 0 2rem;
}

.tx-stages {
  margin: 0;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  list-style: none;
}

.tx-stages li {
  min-height: 7.8rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-rows: 1fr auto;
  column-gap: .75rem;
  border: 1px solid var(--line);
  background: var(--deep);
}

.tx-stages li > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .62rem;
}

.tx-stages b,
.tx-stages small {
  display: block;
}

.tx-stages b {
  font-size: .86rem;
}

.tx-stages small {
  color: var(--muted);
  font-size: .68rem;
}

.tx-stages i {
  grid-column: 2;
  align-self: end;
  color: var(--cyan);
  font-family: var(--ui);
  font-size: .56rem;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.explanation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.explanation-grid article {
  padding: 1.3rem;
  background: var(--panel);
}

.formula-card {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(15rem, .8fr) 1.2fr;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-soft);
}

.formula-card > div,
.formula-card > p {
  padding: 1.3rem;
}

.formula-card > div {
  border-right: 1px solid var(--cyan-line);
}

.formula-card span,
.formula-card strong {
  display: block;
}

.formula-card span {
  color: var(--cyan);
  font-family: var(--ui);
  font-size: .58rem;
  letter-spacing: .12em;
}

.formula-card strong {
  margin-top: .8rem;
  font-family: var(--mono);
  font-size: .92rem;
  line-height: 1.6;
}

.formula-card > p {
  margin: 0;
  color: var(--soft);
  font-size: .85rem;
}

.lookup-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.lookup-map article {
  padding: 1.3rem;
  background: var(--panel);
}

.lookup-map span {
  color: var(--violet);
  font-family: var(--ui);
  font-size: .57rem;
  letter-spacing: .11em;
}

.lookup-map article:nth-child(2) span {
  color: var(--cyan);
}

.lookup-map article:nth-child(3) span {
  color: var(--amber);
}

.lookup-map h3 {
  margin: .7rem 0 .5rem;
  font-size: 1.05rem;
}

.lookup-map p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.explorer-workbench {
  padding: 1.15rem;
  display: grid;
  grid-template-columns: minmax(18rem, .95fr) 1.05fr;
  gap: 1.15rem;
}

.mock-receipt {
  align-self: stretch;
}

.receipt-head {
  padding: .9rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
}

.receipt-head span {
  color: var(--violet);
  font-size: .58rem;
  letter-spacing: .12em;
}

.receipt-head b {
  font-family: var(--mono);
  font-size: .66rem;
}

.mock-receipt button {
  width: 100%;
  padding: .72rem 1rem;
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--ui);
  text-align: left;
}

.mock-receipt button:last-child {
  border-bottom: 0;
}

.mock-receipt button:hover,
.mock-receipt button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--violet-soft);
}

.mock-receipt button span {
  color: var(--faint);
  font-size: .6rem;
}

.mock-receipt button b {
  overflow: hidden;
  font-family: var(--mono);
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-dot {
  color: var(--green);
}

.field-explainer {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, var(--cyan-soft), transparent 45%),
    var(--deep);
}

.field-explainer > p:first-child,
.field-explainer > h3,
.field-explainer > p:nth-child(3) {
  margin-inline: 1.15rem;
}

.field-explainer > p:first-child {
  margin-top: 1.15rem;
  color: var(--cyan);
}

.field-explainer > h3 {
  margin-top: .7rem;
  margin-bottom: .6rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.field-explainer > p:nth-child(3) {
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: .83rem;
}

.field-explainer dl {
  border-top: 1px solid var(--line);
}

.reading-rules {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.reading-rules article {
  padding: 1.3rem;
  background: var(--panel);
}

.reading-rules span {
  color: var(--amber);
  font-family: var(--ui);
  font-size: .57rem;
  letter-spacing: .11em;
}

.reading-rules h3 {
  margin: .65rem 0 .4rem;
  font-size: 1rem;
}

.reading-rules p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.dapp-stack {
  margin: 2.8rem 0 2rem;
}

.dapp-layers {
  padding: 1.2rem;
}

.dapp-layers article {
  min-height: 4.5rem;
  padding: .8rem 1rem;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--line);
  background: var(--deep);
}

.dapp-layers article + article {
  margin-top: .45rem;
}

.dapp-layers article:nth-child(1) {
  margin-inline: 0;
}

.dapp-layers article:nth-child(2) {
  margin-inline: 2.2%;
}

.dapp-layers article:nth-child(3) {
  margin-inline: 4.4%;
}

.dapp-layers article:nth-child(4) {
  margin-inline: 6.6%;
}

.dapp-layers article:nth-child(5) {
  margin-inline: 8.8%;
  border-color: var(--violet-line);
  background: var(--violet-soft);
}

.dapp-layers article > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .62rem;
}

.dapp-layers b,
.dapp-layers small {
  display: block;
}

.dapp-layers b {
  font-family: var(--ui);
  font-size: .74rem;
  letter-spacing: .09em;
}

.dapp-layers small {
  color: var(--muted);
  font-size: .7rem;
}

.dapp-layers i {
  color: var(--faint);
  font-family: var(--ui);
  font-size: .57rem;
  font-style: normal;
  letter-spacing: .08em;
}

.action-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.action-level {
  padding: 1.2rem;
  background: var(--panel);
}

.action-level > span {
  color: var(--green);
  font-family: var(--ui);
  font-size: .58rem;
  letter-spacing: .12em;
}

.connect-level > span {
  color: var(--cyan);
}

.sign-level > span {
  color: var(--amber);
}

.write-level > span {
  color: var(--violet);
}

.action-level h3 {
  margin: .6rem 0 .45rem;
  font-size: 1.03rem;
}

.action-level p {
  min-height: 8rem;
  margin: 0 0 .7rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.68;
}

.action-level small {
  color: var(--faint);
  font-family: var(--ui);
  font-size: .58rem;
  line-height: 1.5;
}

.connect-truth {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 4rem 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
}

.connect-truth > div:not(.not-equal) {
  padding: 1.2rem;
  background: var(--panel);
}

.connect-truth span,
.connect-truth strong {
  display: block;
}

.connect-truth span {
  color: var(--cyan);
  font-family: var(--ui);
  font-size: .57rem;
  letter-spacing: .11em;
}

.connect-truth > div:last-child span {
  color: var(--red);
}

.connect-truth strong {
  margin-top: .8rem;
  font-size: .93rem;
  line-height: 1.55;
}

.not-equal {
  display: grid;
  place-items: center;
  color: var(--red);
  border-inline: 1px solid var(--line);
  background: var(--red-soft);
  font-family: var(--ui);
  font-size: 1.2rem;
}

.dapp-runbook {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.dapp-runbook article {
  padding: 1.2rem;
  background: var(--panel);
}

.dapp-runbook span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .61rem;
}

.dapp-runbook h3 {
  margin: .6rem 0 .4rem;
  font-size: .95rem;
}

.dapp-runbook p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.journey-lab {
  margin-top: 2.8rem;
}

.journey-console {
  margin: 1.15rem;
  display: grid;
  grid-template-columns: 15rem 1fr;
}

.console-progress {
  border-right: 1px solid var(--line);
}

.console-progress span {
  min-height: 3.6rem;
  padding: .7rem .8rem;
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  gap: .5rem;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
  font-size: .62rem;
}

.console-progress span:last-child {
  border-bottom: 0;
}

.console-progress span b {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .59rem;
}

.console-progress span.is-active {
  color: var(--paper);
  background: var(--violet-soft);
}

.console-progress span.is-active b {
  color: var(--violet);
}

.console-progress span.is-complete {
  color: var(--soft);
}

.console-progress span.is-complete b {
  color: var(--green);
}

.console-body {
  display: flex;
  flex-direction: column;
}

.console-body > p:first-child,
.console-body > h3,
.console-body > p:nth-child(3) {
  margin-inline: 1.2rem;
}

.console-body > p:first-child {
  margin-top: 1.2rem;
}

.console-body > h3 {
  margin-top: .7rem;
  margin-bottom: .55rem;
  font-size: 1.4rem;
}

.console-body > p:nth-child(3) {
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: .86rem;
}

.console-body dl {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.console-controls {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  border-top: 1px solid var(--line);
}

.console-controls button:last-child {
  color: var(--void);
  border-color: var(--violet);
  background: var(--violet);
}

.console-controls button:last-child:hover {
  background: var(--violet-bright);
}

.real-practice {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(14rem, .65fr) 1.35fr;
  border: 1px solid var(--line);
}

.practice-intro {
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  background: var(--violet-soft);
}

.practice-intro h3 {
  margin: .7rem 0 .5rem;
  font-size: 1.35rem;
}

.practice-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.practice-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--panel);
}

.practice-checklist li {
  padding: .78rem 1rem;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .8rem;
}

.practice-checklist li + li {
  border-top: 1px solid var(--line);
}

.practice-checklist li > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .59rem;
}

.practice-checklist b,
.practice-checklist small {
  display: block;
}

.practice-checklist b {
  font-size: .82rem;
}

.practice-checklist small {
  color: var(--muted);
  font-size: .68rem;
}

.troubleshooting {
  margin-top: 2rem;
  border-block: 1px solid var(--line);
}

.troubleshooting details + details {
  border-top: 1px solid var(--line);
}

.troubleshooting summary {
  padding: .85rem 0;
  color: var(--soft);
  font-size: .92rem;
  cursor: pointer;
}

.troubleshooting details[open] summary {
  color: var(--violet-bright);
}

.troubleshooting p {
  margin: 0;
  padding: 0 0 1rem 1.15rem;
  color: var(--muted);
  font-size: .84rem;
}

.final-map {
  margin: 2.8rem 0 2rem;
}

.question-loop {
  margin: 0;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .5rem;
  list-style: none;
}

.question-loop li {
  min-height: 9.6rem;
  padding: .8rem;
  border: 1px solid var(--line);
  background: var(--deep);
}

.question-loop li > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .6rem;
}

.question-loop p {
  margin: 1.1rem 0 0;
}

.question-loop b,
.question-loop small {
  display: block;
}

.question-loop b {
  font-size: .78rem;
  line-height: 1.5;
}

.question-loop small {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.5;
}

.key-takeaways {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.key-takeaways article {
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .8rem;
  background: var(--panel);
}

.key-takeaways span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .61rem;
}

.key-takeaways p {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
}

.key-takeaways strong {
  color: var(--paper);
}

.quiz {
  margin-top: 3rem;
  border: 1px solid var(--line);
}

.quiz-head {
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--violet-soft);
}

.quiz-head h3 {
  margin: .45rem 0 0;
  font-size: 1.35rem;
}

.quiz-item {
  padding: 1.25rem;
}

.quiz-item + .quiz-item {
  border-top: 1px solid var(--line);
}

.quiz-item > p:first-child {
  margin: 0 0 .9rem;
  font-size: .96rem;
}

.quiz-item > p:first-child span {
  margin-right: .55rem;
  color: var(--violet);
  font-family: var(--mono);
  font-size: .63rem;
}

.quiz-options {
  display: grid;
  gap: .5rem;
}

.quiz-options button {
  width: 100%;
  text-align: left;
}

.quiz-options button:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.quiz-options button.is-correct {
  color: var(--green);
  border-color: var(--green-line);
  background: var(--green-soft);
}

.quiz-options button.is-wrong {
  color: var(--red);
  border-color: var(--red-line);
  background: var(--red-soft);
}

.quiz-feedback {
  min-height: 1.5rem;
  margin: .65rem 0 0;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .68rem;
}

.quiz-feedback.is-correct {
  color: var(--green);
}

.quiz-feedback.is-wrong {
  color: var(--red);
}

.quiz-explanation {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .78rem;
}

.js .quiz-explanation {
  display: none;
}

.quiz-explanation summary {
  color: var(--soft);
  cursor: pointer;
}

.quiz-explanation p {
  margin: .45rem 0 0;
}

.sources-section {
  margin-bottom: clamp(4rem, 9vw, 7rem);
}

.sources-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.source-item {
  min-width: 0;
  padding: 1rem;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .75rem;
  background: var(--panel);
  text-decoration: none;
  transition: background var(--fast), color var(--fast);
}

.source-item:hover {
  color: var(--paper);
  background: var(--violet-soft);
}

.source-item > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: .6rem;
}

.source-item b,
.source-item small {
  display: block;
}

.source-item b {
  font-size: .82rem;
  line-height: 1.5;
}

.source-item small {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}

.source-note {
  margin-top: 1.2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
}

.source-note strong {
  font-family: var(--ui);
  font-size: .67rem;
  letter-spacing: .08em;
}

.source-note p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.course-close {
  padding-block: clamp(5rem, 11vw, 9rem);
  border-top: 1px solid var(--line);
}

.course-close > p {
  margin: 0;
  color: var(--violet-bright);
  font-family: var(--ui);
  font-size: .67rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.course-close h2 {
  max-width: 19ch;
  margin: 1rem 0 2.5rem;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.4vw, 5rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.course-close > div {
  max-width: 42rem;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  border-block: 1px solid var(--line);
}

.course-close > div span {
  color: var(--faint);
  font-family: var(--ui);
  font-size: .63rem;
  letter-spacing: .1em;
}

.course-close > div strong {
  font-size: .9rem;
}

.course-close > a {
  margin-top: 1.5rem;
  display: inline-block;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .67rem;
}

.site-footer {
  min-height: 6rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-family: var(--ui);
  font-size: .61rem;
  letter-spacing: .08em;
}

.site-footer p {
  margin: 0;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 65.625rem) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 56rem;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .journey-map {
    width: min(100%, 44rem);
  }

  .identity-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-flow .flow-mark {
    display: none;
  }

  .faucet-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .faucet-steps li:nth-child(3)::after {
    display: none;
  }

  .question-loop {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 50rem) {
  .course-crumb span:first-child,
  .crumb-dot {
    display: none;
  }

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

  .thesis article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lesson-safety {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .page-grid {
    display: block;
  }

  .lesson-nav {
    display: none;
  }

  .mobile-toc {
    margin-top: 2rem;
    display: block;
    border: 1px solid var(--line);
    background: var(--panel);
  }

  .mobile-toc summary {
    padding: .85rem 1rem;
    color: var(--soft);
    font-family: var(--ui);
    font-size: .7rem;
    letter-spacing: .1em;
    cursor: pointer;
  }

  .mobile-toc ol {
    margin: 0;
    padding: .2rem 1rem 1rem 2.5rem;
    color: var(--muted);
    font-size: .78rem;
  }

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

  .system-layers,
  .concept-grid.three,
  .network-cards,
  .action-levels,
  .dapp-runbook,
  .lookup-map {
    grid-template-columns: 1fr;
  }

  .system-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .system-layer p,
  .network-card > p,
  .action-level p {
    min-height: auto;
  }

  .system-return {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .system-return b {
    width: 100%;
  }

  .recovery-result,
  .journey-console,
  .real-practice {
    grid-template-columns: 1fr;
  }

  .result-status,
  .console-progress,
  .practice-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-status strong {
    margin-top: 1rem;
  }

  .console-progress {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .console-progress span:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

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

  .provenance-track i {
    display: none;
  }

  .choice-grid,
  .fact-strip {
    grid-template-columns: 1fr;
  }

  .fact-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .secret-tier {
    grid-template-columns: 6rem 1fr;
  }

  .secret-tier > b {
    grid-column: 2;
  }

  .ledger-compare {
    grid-template-columns: 1fr;
  }

  .ledger-divider {
    padding-block: .3rem;
  }

  .faucet-steps,
  .tx-stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .faucet-steps li:nth-child(3)::after {
    display: block;
  }

  .faucet-steps li:nth-child(even)::after {
    display: none;
  }

  .explorer-workbench,
  .formula-card {
    grid-template-columns: 1fr;
  }

  .formula-card > div {
    border-right: 0;
    border-bottom: 1px solid var(--cyan-line);
  }

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

@media (max-width: 43.75rem) {
  :root {
    --gutter: 1.15rem;
  }

  body {
    font-size: 1rem;
  }

  .site-header {
    min-height: 4.5rem;
  }

  .hero {
    padding-block: 4.2rem;
    gap: 2.8rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.6rem);
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .hero-meta span::after {
    display: none;
  }

  .journey-rail li {
    grid-template-columns: 2rem 1fr;
  }

  .journey-rail i {
    display: none;
  }

  .diagram > figcaption,
  figure.diagram > figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: .3rem;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .identity-flow,
  .backup-grid,
  .explanation-grid,
  .reading-rules,
  .key-takeaways,
  .sources-list {
    grid-template-columns: 1fr;
  }

  .definition-list article,
  .step-list article {
    grid-template-columns: 2rem 1fr;
  }

  .scenario-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .scenario-tabs button {
    text-align: left;
  }

  .recovery-result dl > div,
  .field-explainer dl > div,
  .console-body dl > div {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .provenance-track,
  .faucet-steps,
  .tx-stages {
    grid-template-columns: 1fr;
  }

  .faucet-steps li::after {
    display: none !important;
  }

  .secret-tier {
    grid-template-columns: 1fr;
    gap: .45rem;
  }

  .secret-tier > b {
    grid-column: auto;
  }

  .never-enter {
    grid-template-columns: 1fr;
  }

  .never-mark {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }

  .mock-receipt button {
    grid-template-columns: 6rem 1fr;
  }

  .dapp-layers article,
  .dapp-layers article:nth-child(n) {
    margin-inline: 0;
    grid-template-columns: 2rem 1fr;
  }

  .dapp-layers i {
    grid-column: 2;
  }

  .connect-truth {
    grid-template-columns: 1fr;
  }

  .not-equal {
    min-height: 3rem;
    border-block: 1px solid var(--line);
    border-inline: 0;
  }

  .console-progress {
    grid-template-columns: 1fr;
  }

  .console-progress span:nth-child(odd) {
    border-right: 0;
  }

  .question-loop {
    grid-template-columns: 1fr;
  }

  .question-loop li {
    min-height: auto;
  }

  .site-footer {
    padding-block: 1.5rem;
    grid-template-columns: 1fr;
    gap: .45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .diagram,
  .lab,
  .concept-grid,
  .choice-grid,
  .backup-grid,
  .network-cards,
  .explanation-grid,
  .lookup-map,
  .reading-rules,
  .action-levels,
  .dapp-runbook,
  .key-takeaways,
  .quiz,
  .sources-list {
    border: 1px solid CanvasText;
  }

  .station-index,
  .journey-signal > span {
    forced-color-adjust: none;
  }
}

@media print {
  :root {
    color-scheme: light;
    --void: #fff;
    --deep: #fff;
    --panel: #fff;
    --panel-2: #f5f5f5;
    --panel-3: #eee;
    --paper: #111;
    --soft: #222;
    --muted: #555;
    --faint: #666;
    --line: rgba(0, 0, 0, .18);
    --line-strong: rgba(0, 0, 0, .45);
    --violet: #4c42a8;
    --violet-bright: #3e358d;
    --violet-soft: rgba(76, 66, 168, .06);
    --violet-line: rgba(76, 66, 168, .45);
    --cyan: #176a61;
    --cyan-bright: #145d55;
    --cyan-soft: rgba(23, 106, 97, .06);
    --cyan-line: rgba(23, 106, 97, .45);
    --amber: #805d1f;
    --amber-soft: rgba(128, 93, 31, .06);
    --amber-line: rgba(128, 93, 31, .45);
    --red: #913b2f;
    --red-soft: rgba(145, 59, 47, .06);
    --red-line: rgba(145, 59, 47, .45);
    --green: #356f42;
    --green-soft: rgba(53, 111, 66, .06);
    --green-line: rgba(53, 111, 66, .45);
  }

  html,
  body {
    color: #111;
    background: #fff;
  }

  body::before,
  .reading-progress,
  .lesson-nav,
  .mobile-toc,
  .console-controls,
  .quiz-feedback,
  .resource-actions,
  .course-close > a {
    display: none !important;
  }

  .site-header,
  .hero,
  .thesis,
  .lesson-safety,
  .page-grid,
  .course-close,
  .site-footer {
    width: 100%;
  }

  .hero {
    min-height: 0;
    padding-block: 2rem;
  }

  .page-grid {
    display: block;
  }

  .chapter,
  .wide-chapter {
    width: 100%;
    margin-bottom: 3rem;
  }

  .diagram,
  .lab,
  .concept-card,
  .choice-grid article,
  .backup-grid article,
  .network-card,
  .explanation-grid article,
  .lookup-map article,
  .reading-rules article,
  .action-level,
  .dapp-runbook article,
  .key-takeaways article,
  .source-item,
  .system-layer,
  .identity-node,
  .provenance-track article,
  .ledger,
  .faucet-steps li,
  .tx-stages li,
  .question-loop li,
  .field-explainer {
    color: #111;
    border-color: #bbb !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  p,
  small,
  dd,
  .section-intro,
  .hero-lead {
    color: #333 !important;
  }

  a {
    color: #111;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .js .quiz-explanation {
    display: block;
  }

  .quiz-explanation {
    color: #333;
  }

  .quiz-item,
  .source-item,
  figure,
  .lab {
    break-inside: avoid;
  }
}
