/* Preview overrides. Load legacy-base.css first (see index.html). */

:root {
  color-scheme: dark;
  --bg-page: #06070a;
  --surface-section: #0b0e13;
  --surface-card: #10151d;
  --surface-interactive: #19222e;
  --text-primary: #f6f7f9;
  --text-secondary: #c6ced8;
  --text-muted: #9aa7b8;
  --text-technical: #a9c9ed;
  --border-subtle: #293240;
  --border-strong: #526176;
  --accent-primary: #f7931a;
  --accent-hover: #ffb14a;
  --accent-soft: #261b10;
  --accent-ink: #171008;
  --success-text: #7de0b1;
  --success-surface: #10261e;
  --success-border: #32664f;
  --warning-text: #e9cc83;
  --warning-surface: #272216;
  --warning-border: #665632;
  --danger-text: #ffaaaa;
  --danger-surface: #2b171c;
  --danger-border: #79444d;
  --space-1: 4px;
  --space-2: 8px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-floating: 0 20px 64px rgba(0, 0, 0, .48);
  /* Compatibility aliases: existing modules keep the same variable contract. */
  --bg: var(--bg-page);
  --panel: var(--surface-section);
  --panel-2: var(--surface-card);
  --line: var(--border-subtle);
  --soft: rgba(255, 255, 255, 0.035);
  --orange: var(--accent-primary);
  --orange2: var(--accent-hover);
  --white: var(--text-primary);
  --body: var(--text-secondary);
  --muted: var(--text-muted);
  --blue: var(--text-technical);
  --text-body: var(--text-secondary);
  --text-faint: var(--text-muted);
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  background: var(--bg);
  color: var(--body);
  overflow-x: hidden;
}
.screen.active {
  animation: screenIn 0.24s ease-out;
}
@keyframes screenIn {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}
.preview-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  min-height: 64px;
  padding: 10px 24px;
  background: rgba(6, 7, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(22px) saturate(1.2);
  z-index: 100;
}
.preview-nav .service-brand {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.preview-nav .service-brand strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}
.preview-nav .service-brand small {
  color: #596474;
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-left: 2px;
}
.preview-nav .service-tab {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #778292;
  padding: 9px 12px;
}
.preview-nav .service-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.preview-nav .service-btn {
  border-radius: 999px;
  padding: 8px 14px;
}
.service-modal-backdrop {
  z-index: 140;
}
.preview-modal-label {
  font-size: 10px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 5px;
}
.preview-local-note {
  padding: 15px 16px;
  border: 1px solid rgba(247, 147, 26, 0.18);
  background: rgba(247, 147, 26, 0.045);
  border-radius: 14px;
}
.preview-local-note b {
  color: #ffd5a0;
  font-size: 12px;
}
.preview-local-note p {
  color: #9aa6b5;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 5px;
}
.landing-shell {
  padding-top: 64px;
}
.landing-hero {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 80px max(6vw, 28px) 90px;
  background:
    radial-gradient(
      circle at 67% 45%,
      rgba(247, 147, 26, 0.1),
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.025),
      transparent 50%
    ),
    #06070a;
}
.landing-hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 7, 10, 0.96) 0%,
    rgba(6, 7, 10, 0.75) 37%,
    rgba(6, 7, 10, 0.2) 70%,
    rgba(6, 7, 10, 0.58) 100%
  );
  pointer-events: none;
}
.landing-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 70%,
    transparent
  );
}
#bitcoin-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: crosshair;
}
.landing-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.preview-eyebrow,
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7c8795;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.preview-eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 24px rgba(247, 147, 26, 0.8);
}
.landing-copy h1 {
  margin: 20px 0 22px;
  max-width: 750px;
  color: #f8f9fb;
  font-size: clamp(43px, 7vw, 82px);
  font-weight: 760;
  letter-spacing: -0.058em;
  line-height: 0.98;
}
.landing-copy h1 em {
  color: var(--orange);
  font-style: normal;
}
.landing-copy > p {
  max-width: 650px;
  color: #aeb8c5;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.75;
  letter-spacing: -0.015em;
}
.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.landing-actions button,
.why-gateway button,
.text-cta {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.primary-cta {
  border: 1px solid #f7931a;
  background: #f7931a;
  color: #120a02;
}
.ghost-cta,
.why-gateway button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 11, 15, 0.64);
  color: #edf1f6;
}
.landing-trust {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 23px;
}
.landing-trust span {
  color: #778393;
  font-size: 11px;
}
.landing-trust span:before {
  content: '✓';
  color: #77d7aa;
  margin-right: 6px;
}
.network-console {
  position: absolute;
  right: max(4vw, 28px);
  bottom: 72px;
  z-index: 3;
  width: min(370px, 38vw);
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 14px;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}
.console-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #697585;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
}
.console-top b {
  color: #70e1aa;
}
.console-main {
  padding: 13px 0;
}
.console-main strong {
  display: block;
  color: #e9edf2;
  font-size: 13px;
}
.console-main p {
  color: #798596;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 4px;
}
.network-console button {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(247, 147, 26, 0.25);
  background: rgba(247, 147, 26, 0.08);
  color: #ffb358;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.network-console.pulse {
  border-color: rgba(247, 147, 26, 0.48);
  box-shadow:
    0 0 0 1px rgba(247, 147, 26, 0.1),
    0 20px 80px rgba(247, 147, 26, 0.1);
}
.scroll-cue {
  position: absolute;
  left: max(6vw, 28px);
  bottom: 26px;
  z-index: 3;
  color: #5f6a78;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.scroll-cue i {
  color: #f7931a;
  font-style: normal;
  margin-left: 8px;
}
.landing-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
}
.intro-section {
  text-align: center;
}
.intro-section > .section-eyebrow {
  justify-content: center;
}
.landing-section h2 {
  color: #f6f7f9;
  font-size: clamp(31px, 4.5vw, 55px);
  line-height: 1.07;
  letter-spacing: -0.045em;
  font-weight: 720;
}
.landing-section h2 em {
  color: #9aa5b3;
  font-style: normal;
}
.intro-section > p {
  max-width: 720px;
  margin: 20px auto 0;
  color: #9ba6b5;
  font-size: 16px;
  line-height: 1.85;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 52px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.principle-grid article {
  padding: 30px;
  background: #090b0f;
}
.principle-grid span,
.path-card > span,
.showcase-grid small {
  color: #687484;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.principle-grid h3 {
  margin: 27px 0 10px;
  color: #eef2f6;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.principle-grid p {
  color: #8692a1;
  font-size: 13px;
  line-height: 1.75;
}
.section-headline {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 42px;
}
.section-headline p {
  max-width: 390px;
  color: #7e8998;
  font-size: 13px;
  line-height: 1.7;
}
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.path-card {
  min-height: 300px;
  text-align: left;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.032),
    rgba(255, 255, 255, 0.012)
  );
  cursor: pointer;
  transition:
    transform 0.25s,
    border-color 0.25s,
    background 0.25s;
}
.path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}
.path-card.beginner {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(247, 147, 26, 0.1),
      transparent 44%
    ),
    #090b0f;
}
.path-card.intermediate {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(56, 189, 248, 0.08),
      transparent 44%
    ),
    #090b0f;
}
.path-card.advanced {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(167, 139, 250, 0.09),
      transparent 44%
    ),
    #090b0f;
}
.path-card h3 {
  color: #f4f6f8;
  font-size: 23px;
  line-height: 1.25;
  margin: 52px 0 12px;
  letter-spacing: -0.03em;
}
.path-card p {
  color: #8894a3;
  font-size: 13px;
  line-height: 1.75;
}
.path-card b {
  display: block;
  color: #c8d0da;
  font-size: 12px;
  margin-top: 26px;
}
.system-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: auto;
  padding: 13px 15px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #080a0d;
  scrollbar-width: none;
}
.system-rail::-webkit-scrollbar {
  display: none;
}
.system-rail span {
  color: #84909f;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0.1em;
}
.system-rail i {
  color: #f7931a;
  font-style: normal;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.showcase-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #090b0f;
}
.showcase-grid h3 {
  color: #f4f6f8;
  font-size: 20px;
  margin: 20px 0 9px;
}
.showcase-grid p {
  min-height: 68px;
  color: #8692a1;
  font-size: 12px;
  line-height: 1.75;
}
.showcase-grid button,
.text-cta {
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: #cbd3dc;
  padding: 0;
  min-height: 0;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.why-gateway {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
  padding: 75px 55px;
  margin-bottom: 80px;
  border: 1px solid rgba(247, 147, 26, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 80% 30%,
      rgba(247, 147, 26, 0.09),
      transparent 40%
    ),
    #090b0f;
}
.why-gateway h2 {
  font-size: clamp(29px, 4vw, 48px);
  margin-top: 10px;
}
.why-gateway p {
  max-width: 680px;
  color: #8d98a7;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 16px;
}
.preview-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.preview-footer div {
  display: grid;
  gap: 4px;
}
.preview-footer b {
  color: #e8edf2;
  font-size: 13px;
}
.preview-footer span {
  color: #687484;
  font-size: 11px;
}
.preview-footer button {
  border: 0;
  background: transparent;
  color: #7e8997;
  font-size: 11px;
  cursor: pointer;
}
.learn-screen {
  padding-top: 64px;
}
.learn-shell {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 76px 0 100px;
}
.learn-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 55px;
  align-items: end;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.learn-hero h1 {
  max-width: 760px;
  color: #f6f7f9;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin: 8px 0 15px;
}
.learn-hero p {
  max-width: 760px;
  color: #929eae;
  font-size: 15px;
  line-height: 1.8;
}
.learn-progress-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #090b0f;
}
.learn-progress-card > span {
  color: #657180;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.learn-progress-card > b {
  display: block;
  color: #f5f7f9;
  font-size: 27px;
  margin: 7px 0;
}
.learn-progress-card b em {
  color: #f7931a;
  font-style: normal;
}
.learn-progress-card small {
  color: #737f8e;
  font-size: 10px;
}
.learn-progress-card .prog-bar-wrap {
  margin: 13px 0 0;
  max-width: none;
  height: 3px;
}
.level-filter {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.level-filter button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #6f7b8a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.level-filter button.active {
  color: #f4f6f8;
  border-color: rgba(247, 147, 26, 0.28);
  background: rgba(247, 147, 26, 0.075);
}
.curriculum {
  display: grid;
  gap: 20px;
}
.level-band {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #080a0e;
}
.level-band.beginner {
  border-top-color: rgba(247, 147, 26, 0.35);
}
.level-band.intermediate {
  border-top-color: rgba(56, 189, 248, 0.3);
}
.level-band.advanced {
  border-top-color: rgba(167, 139, 250, 0.32);
}
.level-band-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.level-band-head span {
  color: #727e8e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.level-band-head h2 {
  color: #f0f3f6;
  font-size: 24px;
  margin: 4px 0;
}
.level-band-head p {
  color: #7f8b9b;
  font-size: 12px;
}
.level-band-head > b {
  color: #667280;
  font-size: 12px;
}
.level-chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.chapter-item.modern {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
  margin: 0;
  padding: 18px;
  min-height: 190px;
  text-align: left;
  border-radius: 11px;
  background: #0b0e13;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: none;
}
.chapter-item.modern:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  background: #0e1218;
}
.chapter-index {
  color: #46515e;
  font-size: 11px;
  font-weight: 900;
}
.chapter-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}
.chapter-meta-line span {
  color: #788595;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.chapter-meta-line em {
  color: #566170;
  font-size: 8px;
  font-style: normal;
}
.chapter-item.modern .ch-title {
  font-size: 17px;
  line-height: 1.35;
  color: #f0f3f6;
}
.chapter-item.modern .ch-sub {
  font-size: 12px;
  line-height: 1.55;
  color: #8994a3;
}
.chapter-item.modern .ch-meta {
  margin-top: 16px;
  color: #596574;
  font-size: 9px;
}
.chapter-arrow {
  color: #697584;
  font-size: 16px;
}
.chapter-check {
  color: #64d6a0;
  font-size: 16px;
}
.learn-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.learn-bottom b {
  color: #ecf0f4;
  font-size: 14px;
}
.learn-bottom p {
  color: #7d8998;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 5px;
}
.learn-bottom button,
.chapter-lab-link {
  border: 1px solid rgba(247, 147, 26, 0.25);
  background: rgba(247, 147, 26, 0.07);
  color: #ffb25a;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.chapter-screen {
  padding-top: 64px;
  max-width: 760px;
}
.chapter-screen .top-bar {
  top: 64px;
  background: rgba(6, 7, 10, 0.92);
}
.chapter-screen .section-body {
  max-width: none;
  background: #0a0d11;
  border-radius: 12px;
  border-color: var(--line);
  padding: 28px;
  color: #c4ccd6;
}
.chapter-lab-link {
  width: 100%;
  margin-bottom: 10px;
  background: transparent;
}
.next-btn {
  border-radius: 9px;
}
.section-tag,
.quiz-tag {
  border-radius: 999px;
}
.option {
  border-radius: 10px;
  background: #0a0d11;
}
.option:hover {
  transform: translateX(2px);
}
.platform-screen {
  padding-top: 64px;
}
.platform-shell {
  width: min(1120px, calc(100% - 44px));
  padding-top: 70px;
}
.lab-switcher {
  overflow-x: auto;
  padding-bottom: 7px;
  scrollbar-width: none;
}
.lab-switcher::-webkit-scrollbar {
  display: none;
}
.lab-tab {
  white-space: nowrap;
  border-radius: 999px;
  background: #0a0d11;
}
.lab-tab.active {
  background: rgba(247, 147, 26, 0.08);
}
.module-roadmap {
  opacity: 0.82;
}
.sim-group-title {
  color: #596574;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 16px 0 7px;
}
.why-shell {
  max-width: 1120px;
}
.why-academy,
.practice-lab {
  max-width: 100%;
}
.integrity-card,
.hub-card,
.mining-section,
.fork-section,
.multinode-section,
.policy-section,
.cpfp-section,
.ln-section {
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #bitcoin-network-canvas {
    opacity: 0.65;
  }
}
@media (max-width: 900px) {
  .network-console {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 36px;
  }
  .landing-hero {
    align-content: center;
  }
  .landing-copy {
    padding-top: 30px;
  }
  .landing-hero:after {
    background: linear-gradient(
      180deg,
      rgba(6, 7, 10, 0.52),
      rgba(6, 7, 10, 0.82) 65%,
      #06070a
    );
  }
  .path-grid,
  .principle-grid,
  .showcase-grid,
  .level-chapter-grid {
    grid-template-columns: 1fr;
  }
  .path-card {
    min-height: 220px;
  }
  .path-card h3 {
    margin-top: 34px;
  }
  .learn-hero {
    grid-template-columns: 1fr;
  }
  .why-gateway {
    grid-template-columns: 1fr;
  }
  .section-headline {
    align-items: flex-start;
    flex-direction: column;
  }
  .level-band {
    padding: 20px;
  }
}
@media (max-width: 720px) {
  .preview-nav {
    padding: 8px 10px;
    flex-wrap: wrap;
  }
  .preview-nav .service-brand small {
    display: none;
  }
  .preview-nav .service-tabs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .landing-shell,
  .learn-screen,
  .platform-screen {
    padding-top: 104px;
  }
  .landing-hero {
    min-height: calc(100vh - 104px);
    padding: 55px 20px 70px;
  }
  .landing-copy h1 {
    font-size: clamp(42px, 13vw, 61px);
  }
  .landing-copy > p {
    font-size: 15px;
  }
  .landing-section {
    width: min(100% - 28px, 1180px);
    padding: 72px 0;
  }
  .principle-grid article {
    padding: 22px;
  }
  .why-gateway {
    width: min(100% - 28px, 1180px);
    padding: 28px;
  }
  .preview-footer {
    width: min(100% - 28px, 1180px);
    flex-direction: column;
  }
  .learn-shell {
    width: min(100% - 26px, 1120px);
    padding-top: 45px;
  }
  .learn-hero {
    gap: 24px;
  }
  .level-band-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .learn-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .chapter-screen {
    padding-top: 104px;
  }
  .chapter-screen .top-bar {
    top: 104px;
  }
  .platform-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 44px;
  }
  .landing-trust {
    gap: 9px;
  }
  .scroll-cue {
    display: none;
  }
}

/* Preview v2 · stronger causality, beginner guidance, protocol watch */
.landing-hero.cycle-flash::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 70% 45%, rgba(121,184,255,.22), transparent 15%), radial-gradient(circle at 70% 45%, rgba(247,147,26,.16), transparent 34%);
  animation: cycleFlash .7s ease-out;
}
@keyframes cycleFlash {
  from { opacity: .15; transform: scale(.94); }
  45% { opacity: 1; }
  to { opacity: 0; transform: scale(1.08); }
}
.primary-cta:disabled { opacity:.72; cursor:progress; }
.cycle-console { width:min(510px,44vw); }
.cycle-steps {
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:4px 0 10px;
  scrollbar-width:none;
}
.cycle-steps::-webkit-scrollbar { display:none; }
.cycle-steps > span {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 9px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:9px;
  color:#7d8998;
  background:rgba(255,255,255,.025);
  font-size:9px;
  font-weight:800;
  transition:all .22s ease;
}
.cycle-steps i {
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  color:#697586;
  background:rgba(255,255,255,.05);
  font-style:normal;
  font-size:8px;
}
.cycle-steps > span.active {
  color:#fff1dc;
  border-color:rgba(247,147,26,.5);
  background:rgba(247,147,26,.1);
  transform:translateY(-2px);
  box-shadow:0 0 26px rgba(247,147,26,.12);
}
.cycle-steps > span.active i { color:#140b02; background:#f7931a; }
.cycle-steps > span.done { color:#b9c4d1; border-color:rgba(112,225,170,.16); }
.cycle-steps > span.done i { color:#07130f; background:#70e1aa; }
.cycle-result {
  padding:10px 11px;
  border-radius:9px;
  background:rgba(255,255,255,.025);
  color:#9aa6b5;
  font-size:10px;
  line-height:1.6;
}
.protocol-gateway {
  display:grid;
  grid-template-columns:1.5fr auto;
  gap:30px;
  align-items:center;
  padding:44px;
  border:1px solid rgba(121,184,255,.14);
  border-radius:18px;
  background:radial-gradient(circle at 100% 0%,rgba(121,184,255,.08),transparent 40%),#090b0f;
}
.protocol-gateway h2 { margin-top:10px; font-size:clamp(28px,4vw,45px); }
.protocol-gateway p { max-width:760px; margin-top:14px; color:#8f9baa; font-size:14px; line-height:1.8; }
.protocol-gateway button {
  min-height:46px;
  padding:0 18px;
  border:1px solid rgba(121,184,255,.25);
  border-radius:9px;
  background:rgba(121,184,255,.07);
  color:#bcd9ff;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
.simulate-shell { max-width:1180px; }
.system-detail-map {
  margin:26px 0 14px;
  padding:16px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:15px;
  background:#080a0e;
}
.system-map-head { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:12px; }
.system-map-head b { color:#f4f6f8; font-size:13px; }
.system-map-head span { color:#758191; font-size:11px; }
.system-map-rail { display:flex; align-items:center; gap:6px; overflow-x:auto; padding-bottom:3px; scrollbar-width:none; }
.system-map-rail::-webkit-scrollbar { display:none; }
.system-map-rail button {
  flex:0 0 auto;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:8px;
  background:rgba(255,255,255,.025);
  color:#9aa6b5;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.system-map-rail button:hover { color:#fff; border-color:rgba(247,147,26,.3); }
.system-map-rail i { color:#f7931a; font-style:normal; font-size:10px; }
.sim-beginner-guide {
  margin:14px 0 16px;
  padding:22px;
  border:1px solid rgba(247,147,26,.18);
  border-radius:17px;
  background:linear-gradient(135deg,rgba(247,147,26,.065),rgba(255,255,255,.018));
}
.guide-kicker { color:#f5a342; font-size:10px; font-weight:900; letter-spacing:.1em; }
.sim-beginner-guide h2 { max-width:860px; margin:7px 0 8px; color:#f6f7f9; font-size:clamp(20px,3vw,28px); line-height:1.35; }
.sim-beginner-guide > p { max-width:900px; color:#abb6c4; font-size:14px; line-height:1.8; }
.guide-action { display:flex; gap:10px; align-items:flex-start; margin-top:13px; padding:11px 12px; border-left:2px solid #f7931a; background:rgba(0,0,0,.16); }
.guide-action b { flex:0 0 auto; color:#ffd39d; font-size:11px; }
.guide-action span { color:#c7d0dc; font-size:12px; line-height:1.65; }
.guide-terms { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.guide-terms span { padding:7px 9px; border:1px solid rgba(255,255,255,.065); border-radius:999px; color:#8895a5; background:rgba(255,255,255,.02); font-size:10px; }
.protocol-watch { display:grid; gap:18px; }
.watch-hero {
  display:grid;
  grid-template-columns:1.55fr .65fr;
  gap:24px;
  align-items:end;
  padding:30px;
  border:1px solid rgba(121,184,255,.17);
  border-radius:22px;
  background:radial-gradient(circle at 100% 0%,rgba(121,184,255,.11),transparent 44%),rgba(255,255,255,.02);
}
.watch-hero h1 { max-width:850px; margin:7px 0 10px; color:#f7f9fb; font-size:clamp(30px,4.5vw,47px); line-height:1.12; letter-spacing:-.04em; }
.watch-hero p { max-width:850px; color:#a4b0bf; font-size:14px; line-height:1.8; }
.watch-status { display:grid; gap:7px; padding:16px; border:1px solid rgba(255,255,255,.075); border-radius:14px; background:rgba(0,0,0,.18); }
.watch-status span { color:#79b8ff; font-size:10px; font-weight:900; letter-spacing:.08em; }
.watch-status b { color:#dce6f2; font-size:12px; font-weight:700; }
.watch-status button { margin-top:4px; padding:9px 11px; border:1px solid rgba(121,184,255,.22); border-radius:8px; background:rgba(121,184,255,.07); color:#bcd9ff; font-size:11px; font-weight:850; cursor:pointer; }
.watch-status button:disabled { opacity:.55; cursor:progress; }
.watch-integrity { padding:16px 18px; border:1px solid rgba(251,191,36,.13); border-radius:14px; background:rgba(251,191,36,.035); }
.watch-integrity b { color:#fcd477; font-size:12px; }
.watch-integrity p { color:#aab4c1; font-size:13px; line-height:1.75; margin-top:5px; }
.watch-section { padding:24px; border:1px solid rgba(255,255,255,.07); border-radius:18px; background:rgba(255,255,255,.02); }
.watch-heading > span { color:#79b8ff; font-size:10px; font-weight:900; letter-spacing:.12em; }
.watch-heading h2 { color:#f3f6f9; font-size:22px; margin:6px 0 7px; }
.watch-heading p { max-width:860px; color:#929ead; font-size:13px; line-height:1.75; }
.watch-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:16px; }
.watch-grid.bips { grid-template-columns:repeat(3,minmax(0,1fr)); }
.watch-card { min-width:0; padding:16px; border:1px solid rgba(255,255,255,.065); border-radius:13px; background:#090c11; }
.watch-card-top { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.watch-card-top span { color:#79b8ff; font-size:9px; font-weight:900; }
.watch-card-top time { color:#667384; font-size:9px; }
.watch-card h3 { color:#ecf1f6; font-size:15px; line-height:1.45; margin:8px 0; }
.watch-card p { color:#8c98a8; font-size:11px; line-height:1.65; }
.watch-card a { display:inline-block; margin-top:12px; color:#9dcaff; font-size:10px; text-decoration:none; }
.watch-labels { display:flex; flex-wrap:wrap; gap:5px; margin:7px 0 9px; }
.watch-labels span { padding:4px 6px; border-radius:999px; background:rgba(247,147,26,.07); color:#f5ad57; font-size:8px; }
.change-pipeline { display:grid; grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap:8px; align-items:center; margin-top:16px; }
.change-pipeline article { min-height:150px; padding:14px; border:1px solid rgba(255,255,255,.06); border-radius:12px; background:#090c11; }
.change-pipeline article span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:rgba(121,184,255,.09); color:#79b8ff; font-size:10px; font-weight:900; }
.change-pipeline b { display:block; color:#e4eaf0; font-size:12px; margin:18px 0 5px; }
.change-pipeline p { color:#7f8c9c; font-size:10px; line-height:1.6; }
.change-pipeline i { color:#f7931a; font-style:normal; }
.impact-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-top:15px; }
.impact-grid article { padding:14px; border:1px solid rgba(255,255,255,.06); border-radius:12px; }
.impact-grid b { color:#dfe6ee; font-size:12px; }
.impact-grid p { color:#8592a2; font-size:10px; line-height:1.65; margin-top:5px; }
.watch-sources { display:flex; flex-wrap:wrap; gap:8px; }
.watch-sources a { padding:8px 10px; border:1px solid rgba(121,184,255,.15); border-radius:999px; color:#9dcaff; font-size:10px; text-decoration:none; }
@media (max-width:900px) {
  .cycle-console { width:100%; }
  .protocol-gateway, .watch-hero { grid-template-columns:1fr; }
  .watch-grid.bips { grid-template-columns:1fr 1fr; }
  .change-pipeline { grid-template-columns:1fr; }
  .change-pipeline i { transform:rotate(90deg); text-align:center; }
  .change-pipeline article { min-height:0; }
  .impact-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:600px) {
  .protocol-gateway { padding:27px 20px; }
  .system-map-head { align-items:flex-start; flex-direction:column; }
  .sim-beginner-guide { padding:18px; }
  .guide-action { flex-direction:column; gap:5px; }
  .watch-hero, .watch-section { padding:20px; }
  .watch-grid, .watch-grid.bips, .impact-grid { grid-template-columns:1fr; }
  .cycle-steps > span { padding:7px 8px; }
}

/* PHASE 5B: readable learning copy, with the local baseline kept intact. */
body { font-size: 16px; line-height: 1.6; }
body :is(.landing-shell, .learn-shell, .platform-shell, .service-modal) p,
body .chapter-item.modern .ch-sub,
body .section-body,
body .exp-text,
body .step-copy,
body .trust-compare li,
body :is(.sim-message, .network-message, .network-empty, .wallet-empty,
  .empty-state, .sim-footnote, .why-copy, .why-result, .why-caution,
  .why-fact, .flow-line, .mission-summary, .mining-empty, .retarget-reading,
  .fork-message, .multinode-message, .policy-empty, .rbf-hint,
  .cpfp-reading, .ln-message, .ln-model-note, .cycle-result) {
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body :is(.landing-shell, .learn-shell, .platform-shell, .service-modal) p {
  max-width: 72ch;
}
.section-body p + p { margin-top: 1em; }
body .landing-copy > p { font-size: clamp(16px, 1.7vw, 20px); }
body .sim-beginner-guide > p { font-size: 17px; }
body :is(.learn-shell, .platform-shell, .service-modal) :is(h2, h3, h4) {
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body :is(.hub-card, .role-map, .step-content, .sim-heading, .watch-card) h3,
body .multinode-concepts h4,
body .chapter-item.modern .ch-title { font-size: 20px; line-height: 1.4; }
body .option { font-size: 16px; line-height: 1.65; }
body .quiz-q { line-height: 1.45; }

/* Labels stay subordinate to explanations; controls remain easy to read. */
body :is(.platform-shell, .service-modal) :is(label, summary, small, dt),
body :is(.platform-kicker, .guide-kicker, .sim-group-title, .step-label,
  .wallet-kicker, .section-tag, .quiz-tag, .dashboard-label, .preview-modal-label,
  .chapter-index, .chapter-meta-line span, .chapter-meta-line em,
  .chapter-item.modern .ch-meta, .learn-progress-card > span,
  .learn-progress-card small, .level-band-head span, .level-band-head > b,
  .preview-eyebrow, .section-eyebrow, .landing-trust span, .console-top,
  .cycle-steps > span, .cycle-steps i, .scroll-cue, .system-rail span,
  .path-card > span, .principle-grid span, .showcase-grid small,
  .preview-footer span, .system-map-head span, .guide-terms span,
  .watch-card-top span, .watch-card-top time, .watch-labels span,
  .watch-heading > span, .watch-status span, .why-label, .why-map span,
  .why-principle b, .practice-score span, .mission-head span, .mission-reward,
  .mission-bottom b, .sim-stats span, .network-status span, .crypto-grid span,
  .address-card span, .mini-addresses span, .role-map span,
  .mining-kicker, .mining-section-head > span, .target-stats span,
  .fork-kicker, .fork-section-head > span, .multinode-kicker, .multinode-head > span,
  .policy-kicker, .policy-head > span, .policy-node header span, .policy-rate span,
  .cpfp-kicker, .cpfp-head > span, .cpfp-flow span, .cpfp-math span,
  .ln-kicker, .ln-head > span, .ln-status span, .ln-funding-grid span,
  .ln-commit-grid span, .ln-htlc-grid span, .ln-route-detail span) {
  font-size: 13px;
  line-height: 1.5;
}
body :is(.landing-shell, .learn-shell, .platform-shell, .service-modal)
  :is(button, select, input:not([type=range]), a),
body :is(.next-btn, .finish-btn, .chapter-lab-link),
body .preview-nav :is(.service-tab, .service-btn) {
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
body .preview-nav .service-brand small { font-size: 12px; }
body :is(.guide-action span, .why-principle span, .achievement-list span,
  .policy-outcome b, .policy-outcome span, .cpfp-result span, .vector-status,
  .sign-status, .wallet-error, .node-check b, .network-tx span,
  .balance-sheet b, .mining-badge small, .mining-badge span) {
  font-size: 14px;
  line-height: 1.6;
}
body .guide-action b { font-size: 14px; }
body .console-main strong { font-size: 16px; line-height: 1.6; }
body .chapter-meta-line, body .watch-card-top { flex-wrap: wrap; }
body .chapter-item.modern { grid-template-columns: auto minmax(0, 1fr) auto; }
body .platform-shell :is(label, article, section),
body .landing-copy, body .network-console { min-width: 0; }
body :is(.target-controls, .retarget-lab, .policy-builder, .cpfp-controls) label > b {
  display: block;
  margin: 6px 0;
}
/* Raw bytes and identifiers keep compact monospace presentation. */
body :is(.long-code, .crypto-grid code, .address-card code, .mini-addresses code,
  .mining-details code, .target-stats code, .pow-result code, .fork-block code) {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-all;
}
@media (max-width: 720px) {
  body .preview-nav .service-tabs { overflow-x: auto; flex-wrap: nowrap; }
  body .preview-nav .service-tab { flex: 0 0 auto; white-space: nowrap; padding: 8px 10px; }
  body .preview-nav .service-actions { margin-left: auto; }
  body :is(.landing-shell, .learn-screen, .platform-screen, .chapter-screen) { padding-top: 120px; }
  body .chapter-screen .top-bar { top: 120px; }
  body .landing-copy h1 { font-size: clamp(36px, 10.5vw, 61px); line-height: 1.12; overflow-wrap: anywhere; }
  body .landing-actions button { max-width: 100%; padding: 12px 16px; }
  body :is(.learn-bottom button, .chapter-lab-link) { white-space: normal; }
  body .chapter-meta-line { gap: 6px; }
}
/* Keep the larger console copy clear of the Hero text at laptop widths. */
@media (min-width: 901px) and (max-width: 1400px) {
  .landing-hero .network-console {
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: end;
    width: min(510px, 100%);
    margin-top: 32px;
  }
}
/* Compact labels in the remaining labs are metadata, not raw identifiers. */
body :is(.utxo-row span, .utxo-row em, .tx-card span, .sim-heading span,
  .why-sources b, .balance-sheet section > span, .power-results span,
  .question-card span, .tradeoff-grid section > b, .mission-toast b,
  .merkle-node span, .merkle-root-card span, .header-fields span, .header-fields em,
  .mining-success > div > span, .fork-active-badge span, .fork-common span,
  .fork-branch header span, .fork-block span, .fork-block em, .fork-block small,
  .chainwork-grid span, .reorg-title span, .reorg-steps span,
  .reorg-mempool > section > span, .fork-tx-grid > section > span,
  .multinode-status span, .multinode-card header span, .multinode-log span,
  .multinode-concepts span, .policy-badge span, .policy-tx span,
  .fee-market-grid > section > span, .rbf-current span, .rbf-result > span,
  .rbf-checks em, .rbf-rules span, .consensus-policy-grid span,
  .cpfp-badge span, .cpfp-rate span, .cpfp-miner span, .cpfp-compare span,
  .cpfp-limits span, .cpfp-eval span, .ln-badge span, .ln-onion span,
  .ln-balance span, .ln-route > article span, .ln-hop span, .ln-hop strong,
  .ln-close-grid span, .ln-close-result span) {
  font-size: 13px;
  line-height: 1.5;
}
body :is(.guide-action span, .cpfp-compare b, .money-functions b,
  .tradeoff-grid h3, .trust-compare span) { font-size: 16px; line-height: 1.65; }

/* PHASE 5C: one shared first-action guide for all labs. */
.guide-result { margin-top: 16px; }
body .guide-result h3 { font-size: 16px; margin-bottom: 6px; }
.guide-disclosure { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.guide-disclosure > summary { cursor: pointer; color: var(--body); font-weight: 700; }
.guide-disclosure > summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.guide-disclosure > p { margin-top: 10px; }
.guide-disclosure .guide-terms { align-items: flex-start; }
.guide-disclosure .guide-terms span { border-radius: 10px; overflow-wrap: anywhere; }

/* PHASE 6A: independent transaction story; existing canvas remains ambient. */
#landing-hero { padding: 64px max(4vw, 20px) 64px; gap: 28px; }
#landing-hero .landing-copy { max-width: 820px; }
#landing-hero .landing-copy h1 { font-size: clamp(36px, 5vw, 64px); }
#landing-hero #bitcoin-network-canvas { opacity: .18; pointer-events: none; }
#landing-hero .transaction-story { position: relative; z-index: 2; width: 100%; min-width: 0; }
#landing-hero .story-model { font-size: 13px; margin-bottom: 12px; }
.story-board { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px; }
.story-board::before { content: ''; position: absolute; left: 5%; right: 5%; top: 52%; border-top: 1px dashed var(--muted); opacity: .4; }
.story-zone { position: relative; padding: 14px 12px 68px; min-height: 292px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); min-width: 0; }
.story-zone h3 { font-size: 16px; line-height: 1.4; min-height: 44px; margin-bottom: 12px; }
.story-zone small { font-size: 12px; line-height: 1.6; display: block; }
.story-wallet { font-size: 32px; color: var(--orange); }
.story-peers { display: grid; gap: 6px; }
.story-peer { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.story-peer.checked { border-color: #70e1aa; color: #70e1aa; }
.story-pool, .story-candidate { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; padding: 12px; min-height: 88px; border: 1px dashed var(--muted); border-radius: 8px; }
.story-pool i, .story-candidate i { height: 22px; border: 1px solid var(--muted); background: var(--panel-2); border-radius: 3px; }
.story-candidate i { opacity: .15; }
.transaction-story:is([data-stage=miner],[data-stage=pow],[data-stage=block],[data-stage=chain],[data-stage=confirm]) .story-candidate i { opacity: 1; }
.transaction-story:is([data-stage=mempool],[data-stage=miner]) .story-pool { border-color: var(--orange); }
.story-chain { display: flex; align-items: center; gap: 5px; }
.story-chain i { font-style: normal; display: grid; place-items: center; width: 36px; height: 46px; background: var(--panel-2); border: 1px solid var(--muted); border-radius: 4px; }
.story-chain .story-new-block { opacity: .15; border-style: dashed; }
.transaction-story:is([data-stage=chain],[data-stage=confirm]) .story-new-block { opacity: 1; border: 2px solid #70e1aa; }
.story-zone code { display: block; font-size: 12px; overflow-wrap: anywhere; margin-top: 10px; }
#story-found, #story-confirm { display: block; font-size: 13px; color: #70e1aa; margin-top: 8px; line-height: 1.4; }
.story-moving-tx { position: absolute; left: 0; top: 0; width: calc((100% - 72px)/5 - 24px); padding: 6px; border: 1px solid var(--orange); border-radius: 6px; background: #24190d; font-size: 12px; line-height: 1.3; z-index: 4; pointer-events: none; }
.story-moving-tx b { display: block; color: #70e1aa; }
.transaction-story[data-stage=idle] .story-moving-tx { visibility: hidden; }
.transaction-story[data-stage=block] .story-moving-tx { border: 2px solid var(--blue); background: #101d2b; }
.transaction-story[data-stage=confirm] .story-moving-tx { border: 2px solid #70e1aa; }
.story-relays i { position: absolute; top: 0; left: 0; width: 8px; height: 8px; background: var(--orange); border-radius: 2px; opacity: 0; pointer-events: none; }
.transaction-story:is([data-stage=p2p],[data-stage=block]) .story-relays i { opacity: 1; }
.transaction-story[data-stage=block] .story-relays i { width: 14px; height: 14px; background: var(--blue); }
#landing-hero .network-console { position: relative; right: auto; bottom: auto; width: 100%; margin: 0; justify-self: stretch; }
#landing-hero .console-main p { display: none; } /* MODEL boundary is visible above the scene. */
#landing-hero .cycle-steps { flex-wrap: wrap; }
#landing-hero .scroll-cue { display: none; }
@media (max-width: 720px) {
  .story-board { grid-template-columns: 1fr; gap: 14px; }
  .story-board::before { top: 5%; bottom: 5%; left: 50%; right: auto; border-top: 0; border-left: 1px dashed var(--muted); }
  .story-zone { min-height: 220px; }
  .story-zone h3 { min-height: 0; }
  .story-moving-tx { width: calc(100% - 24px); }
  .story-peers { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .story-peer { flex-direction: column; }
  #landing-hero { padding: 32px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-moving-tx, .story-relays i { transition: none; }
}

/* PHASE 6B-1: shared visual primitives; preserve layout and typography. */
body :is(.learn-hero, .sim-beginner-guide, .practice-intro, .why-section,
  .watch-section, .system-detail-map, .network-console) {
  background: var(--surface-section);
  border-color: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
body :is(.chapter-item.modern, .mission-card, .watch-card, .dashboard-card,
  .hub-card, .mining-section, .fork-section, .multinode-section, .policy-section,
  .cpfp-section, .ln-section, .path-card, .principle-grid article,
  .showcase-grid article, .story-zone) {
  background: var(--surface-card);
  border-color: var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: none;
}
body :is(.chapter-item.modern, .path-card):hover {
  border-color: var(--border-strong);
  background: var(--surface-interactive);
}
body :is(.guide-result, .policy-rate, .cpfp-rate, .retarget-reading) {
  background: var(--surface-interactive);
  border-color: var(--border-subtle);
  border-radius: var(--radius-md);
}
body .service-modal {
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
}
body .service-modal-backdrop { background: rgba(0, 0, 0, .72); }

/* Action hierarchy; clickable cards and navigation retain their own roles. */
body :is(.landing-actions, .wallet-actions, .sign-controls, .network-actions,
  .sim-buttons, .policy-buttons, .rbf-actions, .cpfp-buttons, .ln-actions,
  .ln-update-control, .ln-close-grid, .fork-controls, .fork-presets,
  .multinode-toolbar, .mining-run) button,
body :is(.service-btn, .network-mine-btn, .cpfp-submit, .next-btn, .finish-btn) {
  background: var(--surface-interactive);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: none;
}
body button:is(.primary-cta, .sim-primary, .cpfp-submit, .next-btn, .finish-btn),
body .service-btn.primary {
  background: var(--accent-primary);
  color: var(--accent-ink);
  border-color: var(--accent-primary);
}
body .landing-actions .ghost-cta, body .text-cta {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
  box-shadow: none;
}
body button:enabled:hover { border-color: var(--border-strong); }
body button:is(.primary-cta, .sim-primary, .cpfp-submit, .next-btn, .finish-btn):enabled:hover,
body .service-btn.primary:enabled:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
body button:enabled:active { filter: brightness(.9); }
body button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
body :is(button, input, select, summary, a):focus-visible {
  outline: 2px solid var(--text-technical);
  outline-offset: 3px;
}
body .preview-nav {
  background: rgba(11, 14, 19, .96);
  border-bottom-color: var(--border-subtle);
}
body .preview-nav :is(.service-tab, .service-brand small) { color: var(--text-muted); }
body :is(.service-tab, .lab-tab, .level-filter button) { border-radius: var(--radius-sm); }
body :is(.service-tab, .lab-tab, .level-filter button):hover {
  background: var(--surface-interactive);
  color: var(--text-primary);
}
body :is(.service-tab, .lab-tab, .level-filter button).active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: var(--accent-primary);
}
body :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), select) {
  background: var(--surface-section);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
body input::placeholder { color: var(--text-muted); opacity: 1; }
body input[type="range"] { accent-color: var(--accent-primary); }
body details { border-color: var(--border-subtle); border-radius: var(--radius-sm); }
body summary { color: var(--text-secondary); cursor: pointer; }
body summary:hover { color: var(--text-primary); }
body .guide-terms span {
  background: var(--surface-interactive);
  border-color: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
}
body :is(.story-model, .platform-lead, .ch-sub, .mission-summary) { color: var(--text-muted); }
body .tech-details code { color: var(--text-technical); }

/* Outcomes are explicit; .active alone never implies validity or acceptance. */
body :is(.policy-outcome.accept, .cpfp-result.accept, .mining-success,
  .ln-close-result.success, .option.correct, .mission-card.complete) {
  border-color: var(--success-border);
  background: var(--success-surface);
}
body :is(.policy-outcome.accept b, .cpfp-result.accept > span,
  .mining-success > div > span, .story-peer.checked) { color: var(--success-text); }
body :is(.policy-outcome.reject, .cpfp-result.reject, .option.wrong, .wallet-error) {
  border-color: var(--danger-border);
  background: var(--danger-surface);
  color: var(--danger-text);
}
body :is(.policy-outcome.reject b, .cpfp-result.reject > span) { color: var(--danger-text); }
body :is(.wallet-warning, .why-caution, .watch-integrity) {
  border-color: var(--warning-border);
  background: var(--warning-surface);
  border-radius: var(--radius-md);
}
body :is(.wallet-warning, .why-caution, .watch-integrity) b { color: var(--warning-text); }
/* Educational category labels remain separate and retain their text. */
body :is(.integrity-card, .mining-integrity, .fork-integrity, .multinode-integrity,
  .policy-integrity, .cpfp-integrity, .ln-integrity, .consensus-policy-grid article) {
  background: var(--surface-section);
  border-color: var(--border-subtle);
  border-radius: var(--radius-md);
}
body .consensus-policy-grid span { color: var(--text-technical); }
body :is(.policy-empty, .network-empty, .mining-empty, .reorg-empty) {
  color: var(--text-muted);
  border-color: var(--border-subtle);
}
/* Match the existing navigation specificity without changing its DOM contract. */
body .preview-nav .service-tab:hover {
  background: var(--surface-interactive);
  color: var(--text-primary);
}
body .preview-nav .service-tab.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: var(--accent-primary);
}

/* PHASE 6B-2: screen composition using the shared primitives. */
:root {
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-section: clamp(40px, 6vw, 72px);
}
/* HOME: the story remains untouched; quiet supporting sections below it. */
body .landing-section { padding-block: var(--space-section); }
body .principle-grid { background: transparent; border: 0; border-radius: 0; }
body .landing-shell .principle-grid article {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: var(--space-6) 0;
}
body :is(.principle-grid, .showcase-grid, .level-chapter-grid) { gap: var(--space-4); }
body .path-card { padding: var(--space-6); }
body .path-card:not(.beginner) { background: var(--surface-section); }
body .path-card.beginner { border-color: var(--border-strong); }
body .path-card > span { color: var(--text-muted); }
body .showcase-grid article { padding: var(--space-6); }
body .showcase-grid button { margin-top: var(--space-6); }
body :is(.why-gateway, .protocol-gateway) {
  background: var(--surface-section);
  border-color: var(--border-subtle);
  box-shadow: none;
}
body :is(.showcase-grid button, .why-gateway button, .protocol-gateway button,
  .learn-bottom button, .mission-bottom button, .question-card button, .watch-status button) {
  background: var(--surface-interactive);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  white-space: normal;
  overflow-wrap: anywhere;
}

/* LEARN: three named stages, consistent cards, explicit existing check marks. */
body .curriculum { gap: var(--space-8); }
body .level-band {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: var(--space-6) 0 0;
}
body .level-band-head { margin-bottom: var(--space-6); }
body .level-band-head :is(span, p, b),
body :is(.chapter-index, .chapter-meta-line span, .chapter-meta-line em,
  .chapter-item.modern .ch-meta) { color: var(--text-muted); }
body .level-filter { gap: var(--space-2); margin-block: var(--space-6); }
body .level-filter button.active { text-decoration: underline; text-underline-offset: 5px; }
body .chapter-item.modern { padding: var(--space-6); height: 100%; }
body .chapter-item.modern .ch-title { margin-bottom: var(--space-2); }
body .chapter-item.modern.done {
  background: var(--surface-section);
  border-color: var(--border-strong);
  border-inline-start: 3px double var(--text-muted);
}
body .chapter-check { color: var(--text-primary); }
body .learn-progress-card { background: var(--surface-card); border-color: var(--border-subtle); }
body .chapter-lab-link { border-color: var(--border-strong); color: var(--text-secondary); }

/* SIMULATE: compact map, grouped selector, action/result/disclosure hierarchy. */
body .system-detail-map { padding: var(--space-4); margin-block: var(--space-6); }
body .system-map-head { gap: var(--space-4); margin-bottom: var(--space-3); }
body .system-map-rail button { background: transparent; border-color: var(--border-subtle); color: var(--text-secondary); }
body .sim-group-title { margin-top: var(--space-8); margin-bottom: var(--space-3); color: var(--text-muted); }
body .lab-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  overflow: visible;
  padding: 0 0 var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}
body .lab-switcher .lab-tab { white-space: normal; max-width: 100%; }
body .lab-switcher .lab-tab.active { text-decoration: underline; text-underline-offset: 5px; }
body .sim-beginner-guide { padding: var(--space-6); }
body .guide-action { padding: var(--space-4); margin-top: var(--space-6); gap: var(--space-3); }
body .guide-result { padding: var(--space-4); margin-top: var(--space-4); }
body .guide-disclosure { margin-top: var(--space-4); padding-top: var(--space-4); }
body .guide-disclosure summary { padding-block: var(--space-1); }
body .lab-panel :is(.wallet-start, .network-intro, .sim-heading, .mining-hero,
  .fork-hero, .multinode-hero, .policy-hero, .cpfp-hero, .ln-hero) {
  background: var(--surface-section);
  border-color: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
body .lab-panel :is(.tech-details, .mining-details) {
  background: var(--surface-section);
  border-color: var(--border-subtle);
  border-radius: var(--radius-sm);
}

/* PRACTICE: completion is a learning milestone, not protocol acceptance. */
body .mission-card { padding: var(--space-6); margin-top: var(--space-6); }
body .mission-card.complete {
  background: var(--surface-card);
  border-color: var(--border-strong);
  border-inline-start: 3px double var(--text-muted);
}
body .mission-head { gap: var(--space-4); align-items: start; flex-wrap: wrap; }
body .mission-head h3 { margin-top: var(--space-2); }
body .mission-summary { margin-block: var(--space-4); }
body .mission-reward, body .mission-card.complete .mission-reward { color: var(--text-secondary); background: var(--surface-section); border-color: var(--border-subtle); }
body .mission-step { padding: var(--space-3); }
body .mission-step.done { background: transparent; }
body .mission-step.done :is(span, p) { color: var(--text-secondary); }
body .mission-bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); gap: var(--space-4); }
body .mission-bottom small { color: var(--text-muted); }
body .mission-bottom b { color: var(--text-secondary); }
body .mission-card .mission-progress > div, body .mission-card.complete .mission-progress > div { background: var(--text-muted); }

/* WHY: equal visual weight for both systems and their tradeoffs. */
body .why-shell .why-section { margin-top: var(--space-8); border-radius: 0; border-width: 1px 0 0; background: transparent; }
body :is(.why-number, .why-label) { color: var(--text-muted); }
body :is(.money-functions, .trust-compare, .tradeoff-grid, .balance-sheet, .power-results) { gap: var(--space-4); }
body :is(.trust-compare, .tradeoff-grid, .balance-sheet) > section,
body .question-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
body .trust-compare > section > span, body .tradeoff-grid > section > b { color: var(--text-secondary); }
body .question-card > span { color: var(--text-muted); }
body .question-card button { margin-top: var(--space-4); }

/* UPDATES: source metadata, provenance and records rather than news tiles. */
body .watch-hero { background: transparent; border: 0; padding-inline: 0; }
body .watch-status { background: var(--surface-card); border-color: var(--border-subtle); border-radius: var(--radius-md); }
body .protocol-watch .watch-section { background: transparent; border: 0; border-top: 1px solid var(--border-subtle); border-radius: 0; padding: var(--space-6) 0; }
body .watch-card { padding: var(--space-6); }
body .watch-card-top { padding-bottom: var(--space-3); border-bottom: 1px solid var(--border-subtle); }
body .watch-card-top time { color: var(--text-muted); }
body .watch-labels span { color: var(--text-secondary); background: var(--surface-interactive); border-radius: var(--radius-sm); }
body .watch-card h3 { overflow-wrap: anywhere; }
body .watch-integrity { background: var(--surface-section); border-color: var(--border-strong); }

/* MY: restrained numeric summary with visible labels and quieter rewards. */
body .dashboard-grid { gap: var(--space-4); margin-block: var(--space-6); }
body .preview-modal .dashboard-card { padding: var(--space-4); background: var(--surface-section); }
body .dashboard-label { color: var(--text-muted); margin-bottom: var(--space-2); }
body .dashboard-value, body .dashboard-value.orange { color: var(--text-primary); font-variant-numeric: tabular-nums; font-weight: 600; }
body .preview-local-note { background: transparent; border-color: var(--border-subtle); }
@media (max-width: 600px) {
  body :is(.path-card, .showcase-grid article, .chapter-item.modern,
    .sim-beginner-guide, .mission-card, .watch-card, .question-card) { padding: var(--space-4); }
  body .mission-bottom { flex-wrap: wrap; }
}

/* PHASE 6C: responsive interaction finishing, without changing DOM or logic. */
body .preview-nav .service-tabs { min-width: 0; }
body .preview-nav .service-tab { flex-shrink: 0; white-space: nowrap; }
body :is(.lab-switcher, .system-map-rail) { scroll-padding-inline: 8px; }
body :is(.lab-panel, .why-shell, .service-modal) :is(details, pre, code, dd) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body :is(.lab-panel, .why-shell) pre { overflow-x: auto; }
body :is(.lab-panel, .why-shell) code { word-break: break-word; }
body :is(.guide-disclosure, .tech-details, .mining-details) summary { overflow-wrap: anywhere; }
body .service-modal {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
body .service-modal-head > div { min-width: 0; }
body .service-close { flex: 0 0 auto; min-width: 44px; min-height: 44px; }
body :is(.watch-card-top, .mission-bottom, .wallet-actions, .sign-controls) { flex-wrap: wrap; }
body :is(.watch-card, .mission-card, .dashboard-card) { min-width: 0; }
body :is(.story-zone h3, .story-zone small, .story-moving-tx, .cycle-steps span) { overflow-wrap: anywhere; }
body .story-chain i { min-width: 0; }
body :is(.chapter-item.modern, .path-card):focus-visible {
  background: var(--surface-interactive);
  border-color: var(--border-strong);
}
body a:hover, body a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
body :is(button, select, summary) { touch-action: manipulation; }
@media (max-width: 1000px) {
  body .preview-nav .service-brand small { display: none; }
  body .preview-nav .service-tabs { overflow-x: auto; flex-wrap: nowrap; }
}
/* A single-column story at narrow tablet widths uses the existing mobile path. */
@media (min-width: 721px) and (max-width: 900px) {
  .story-board { grid-template-columns: 1fr; gap: 14px; }
  .story-board::before { top: 5%; bottom: 5%; left: 50%; right: auto; border-top: 0; border-left: 1px dashed var(--muted); }
  .story-zone { min-height: 220px; }
  .story-zone h3 { min-height: 0; }
  .story-moving-tx { width: calc(100% - 24px); }
  .story-peers { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .story-peer { flex-direction: column; }
}
@media (max-width: 900px), (pointer: coarse) {
  body :is(.preview-nav, .platform-shell, .learn-shell, .landing-shell, .service-modal)
    :is(button, select, input:not([type=range]):not([type=checkbox]):not([type=radio]), summary) {
    min-height: 44px;
  }
  body .preview-nav .service-brand { min-width: 44px; }
  body input[type=range] { min-height: 44px; cursor: pointer; }
  body summary { padding-block: 10px; }
}
@media (max-width: 600px) {
  body .service-modal { padding: 20px; }
  body .service-modal-head { gap: 12px; }
  body .dashboard-grid { gap: 12px; }
  body .preview-modal .dashboard-card { padding: 12px; }
  body .chapter-item.modern { gap: 10px; }
  body .watch-card-top { align-items: flex-start; }
  body .system-map-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(.chapter-item.modern, .path-card, .option):hover { transform: none; }
  body *, body *::before, body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* PHASE 7A: grouped concept relationships and a single focused explanation. */
body .concept-map { margin-block: var(--space-6); padding: var(--space-6); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-section); }
body .concept-map > summary { color: var(--text-primary); font-weight: 700; min-height: 44px; }
body .concept-map > p { margin-block: var(--space-4); }
body .concept-map .concept-hint { color: var(--text-muted); }
body :is(.concept-start, .concept-groups, .concept-related-list, .concept-actions, .concept-categories) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-block: var(--space-4); }
body .concept-start > span, body .concept-categories > span { color: var(--text-muted); }
body .concept-map button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--surface-card); color: var(--text-secondary); text-align: left; overflow-wrap: anywhere; cursor: pointer; }
body .concept-map button:hover, body .concept-map button:focus-visible { border-color: var(--border-strong); background: var(--surface-interactive); }
body .concept-map button[aria-pressed=true] { color: var(--accent-hover); background: var(--accent-soft); border-color: var(--accent-primary); text-decoration: underline; text-underline-offset: 4px; }
body .concept-map button.concept-related { border-style: dashed; border-color: var(--border-strong); }
body .concept-workspace { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: var(--space-6); }
body .concept-nodes ol { list-style: none; padding: 0; margin-top: var(--space-4); }
body .concept-nodes li { position: relative; padding-bottom: 16px; }
body .concept-nodes li:not(:last-child)::after { content: ''; position: absolute; height: 16px; border-left: 1px solid var(--border-strong); left: 22px; bottom: 0; }
body .concept-nodes button { width: 100%; }
body .concept-detail { padding: var(--space-6); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-card); min-width: 0; align-self: start; }
body .concept-detail h3 { margin-bottom: var(--space-4); }
body .concept-detail h4 { margin-top: var(--space-6); }
body .concept-categories b { font-size: 13px; color: var(--text-technical); border: 1px solid var(--border-subtle); padding: 4px 8px; border-radius: var(--radius-sm); }
body .concept-actions { padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }
body .concept-detail h3:focus { outline: 2px solid var(--text-technical); outline-offset: 4px; }
body #sim-beginner-guide { scroll-margin-top: 100px; }
@media (max-width: 720px) {
  body .concept-map, body .concept-detail { padding: var(--space-4); }
  body .concept-workspace { grid-template-columns: 1fr; }
  body .concept-nodes ol { display: flex; flex-wrap: wrap; gap: 8px; }
  body .concept-nodes li { padding-bottom: 0; max-width: 100%; }
  body .concept-nodes li::after { display: none; }
  body .concept-actions > button { width: 100%; }
}
/* PHASE 7B: learning links remain collapsed until requested. */
body .watch-topics { margin-top: var(--space-4); border-top: 1px solid var(--border-subtle); padding-top: var(--space-4); }
body .watch-topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
body .watch-topic { min-width: 0; max-width: 100%; }
body .watch-topic[open] { flex-basis: 100%; }
body .watch-topic > summary { padding: 10px 14px; min-height: 44px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); overflow-wrap: anywhere; cursor: pointer; }
body .watch-topic-detail { padding-top: 8px; }
body .watch-topic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body .watch-topic-actions button { min-height: 44px; max-width: 100%; padding: 10px 14px; background: var(--surface-interactive); color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); white-space: normal; overflow-wrap: anywhere; cursor: pointer; }

/* PHASE 7C-1: one action first; technical depth remains available on demand. */
body .polish-details { margin-block: 16px; border-top: 1px solid var(--border-subtle); padding-top: 12px; }
body .polish-details > summary { min-height: 44px; padding-block: 10px; font-weight: 500; }
body .polish-details[open] > summary { margin-bottom: 12px; }
body .home-more { margin: 0 auto 48px; max-width: 1120px; padding-inline: 24px; }
body .home-next-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
body .home-next-links button { text-align: left; background: none; border: 0; border-top: 1px solid var(--border-strong); border-radius: 0; padding: 24px 0; color: var(--text-primary); }
body .home-next-links b, body .home-next-links span { display: block; }
body .home-next-links b { font-size: 20px; margin-bottom: 12px; }
body .home-next-links span { color: var(--text-muted); line-height: 1.7; }
body #landing-hero { min-height: auto; padding-block: 52px 32px; gap: 24px; }
body #landing-hero .landing-copy { max-width: 900px; }
body #landing-hero .landing-copy p { max-width: 600px; margin-block: 18px 24px; }
body #landing-hero .landing-actions { margin-top: 0; }
body #landing-hero .preview-eyebrow { display: none; }
body #landing-hero .network-console { background: none; border: 0; padding: 0; box-shadow: none; }
body #landing-hero .console-top > span { display: none; }
body #landing-hero:not(:has(.transaction-story[data-stage=confirm])) .cycle-result { display: none; }
body #landing-hero .console-main { margin-top: 8px; }
body #landing-hero .console-main strong { font-weight: 400; }
body #landing-hero .hero-details { margin-bottom: 0; }
body #landing-hero .story-model { margin: 0 0 12px; color: var(--text-muted); }
body .story-board { gap: 16px; }
body .story-board::before { border: 0; height: 1px; background: linear-gradient(90deg, #b48a52, #649f9c, #7299b6); opacity: .4; }
body .story-zone { border: 0; border-radius: 36px; min-height: 215px; padding: 18px 14px 60px; background: radial-gradient(ellipse at 50% 20%, #1c2a33, #0e141c 78%); }
body #story-wallet { background: radial-gradient(ellipse at 50% 20%, #31281e, #141518 78%); }
body #story-mempool { background: radial-gradient(ellipse at 50% 20%, #16302f, #0e171b 78%); }
body #story-chain { background: radial-gradient(ellipse at 50% 20%, #212b3e, #10151e 78%); }
body .story-zone h3 { font-size: 14px; min-height: 20px; color: var(--text-secondary); }
body #story-wallet > small { display: none; }
body .story-peer { border: 0; padding: 3px; background: transparent; }
body .story-peer small { display: none; }
body .transaction-story:is([data-stage=node],[data-stage=block]) .story-peer small { display: block; }
body .story-pool { border: 0; border-radius: 30px; background: #17312f; }
body .story-pool i { border-radius: 50%; width: 16px; height: 16px; justify-self: center; background: #599c93; border: 0; }
body .story-candidate { border-color: #5f798e; background: #16232f; }
body .story-moving-tx { width: calc((100% - 64px)/5 - 24px); border-radius: 24px; background: #34281c; box-shadow: 0 4px 20px #0004; transition: border-radius .6s ease, background .6s ease; }
body .transaction-story:is([data-stage=block],[data-stage=chain],[data-stage=confirm]) .story-moving-tx { border-radius: 6px; background: #1b3442; border-color: #729db6; }
body #story-attempt { display: none; }
body .transaction-story[data-stage=pow] #story-attempt { display: block; }
body .transaction-story:is([data-stage=p2p],[data-stage=block]) .story-peer { animation: polish-pulse 1.6s ease-in-out infinite; }
@keyframes polish-pulse { 50% { background: #274043; box-shadow: 0 0 0 5px #73ada50c; } }
body .learn-hero, body .practice-intro { background: transparent; border: 0; padding-inline: 0; }
body .level-band-head p, body .level-band-head > div > span, body .sim-group-title, body .guide-kicker { display: none; }
body .chapter-item.modern { background: transparent; border-width: 0 0 1px; border-radius: 0; padding: 24px 12px; }
body .ch-meta, body .learn-progress-card small, body .practice-score small { color: var(--text-muted); font-size: 12px; }
body .chapter-item.modern.done, body .mission-card.complete { background: transparent; border-color: var(--border-subtle); }
body .recommended-labs { margin-top: 24px; }
body #simulate-view .concept-map { margin-top: 48px; background: transparent; }
body .sim-beginner-guide { background: transparent; padding: 20px 0; border: 0; }
body .sim-beginner-guide .guide-action { margin-top: 12px; }
body .mission-card { background: transparent; border-width: 1px 0 0; border-radius: 0; padding-inline: 0; }
body .mission-reward { font-size: 13px; color: var(--text-muted); background: transparent; border: 0; }
body .mission-bottom { justify-content: flex-start; }
body .mission-card .polish-details p { color: var(--text-muted); }
body .why-hero { padding-bottom: 24px; }
body .why-section { padding-block: 32px; }
body .why-label, body .why-number { color: var(--text-muted); }
body .watch-hero .platform-kicker { color: var(--text-muted); }
body .protocol-gateway { background: transparent; }
@media (max-width: 720px) {
  body .home-next-links { grid-template-columns: 1fr; gap: 4px; }
  body #landing-hero { padding-block: 28px; gap: 20px; }
  body .story-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body .story-board::before { display: none; }
  body .story-zone { min-height: 185px; padding: 12px 10px 52px; border-radius: 24px; }
  body .story-moving-tx { width: calc((100% - 10px)/2 - 24px); }
  body .story-peers { grid-template-columns: 1fr; gap: 2px; }
  body .story-peer { flex-direction: row; }
  body #story-chain { grid-column: 1 / -1; min-height: 140px; }
  body .story-zone h3 { font-size: 13px; }
  body .story-chain { justify-content: center; }
  body .story-zone code { font-size: 11px; }
  body .more-labs .lab-switcher { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  body .story-peer, body .story-moving-tx { animation: none !important; transition: none; }
}
/* Keep the first action in view and avoid splitting Korean words. */
body #landing-hero .landing-copy { padding-top: 0; }
body #landing-hero .landing-copy h1 { word-break: keep-all; overflow-wrap: normal; }
@media (max-width: 720px) {
  body #home { padding-top: 64px; }
  body .learn-hero { padding-block: 0 20px; gap: 20px; }
  body .learn-progress-card { padding: 16px; }
  body .level-band { padding-block: 24px; }
}

/* PHASE 7C-1C: progress first, rewards secondary. */
body .preview-modal .progress-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .preview-modal .progress-overview { grid-column: 1 / -1; background: transparent; border: 0; padding-inline: 0; }
body .preview-modal .progress-secondary { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--text-muted); font-size: 13px; }
body .preview-modal .progress-secondary b { font-weight: 500; }
body .mission-next { color: var(--text-secondary); margin-block: 16px; }

/* PHASE 7C-1D: concepts and updates, with optional technical detail. */
body .watch-hero { background: transparent; border: 0; padding: 24px 0; gap: 24px; }
body .watch-hero h1 { font-size: clamp(26px, 3vw, 36px); }
body .watch-card { background: transparent; box-shadow: none; }
body .watch-labels { display: flex; flex-wrap: wrap; gap: 8px; }
body .watch-labels span { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
body .concept-detail .concept-categories { color: var(--text-muted); }
/* RC-2: challenge status sits outside each lab's replaceable result DOM. */
body .lab-challenge { margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--border-subtle); border-left: 3px solid var(--accent-primary); border-radius: var(--radius-sm); background: var(--surface-section); }
body .challenge-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
body .challenge-heading b, body .challenge-status { font-size: 13px; }
body .challenge-status, body .lab-challenge small { color: var(--text-muted); }
body .lab-challenge[data-complete=true] .challenge-status { color: var(--accent-hover); }
body .lab-challenge p { margin-block: 10px; line-height: 1.65; overflow-wrap: anywhere; }
body .lab-challenge summary { cursor: pointer; min-height: 44px; padding-block: 10px; color: var(--text-secondary); }
/* RC-1: a compact journey and secondary paths within learning and labs. */
body .academy-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 24px 0; }
body .academy-journey li { min-width: 0; }
body .academy-journey b, body .academy-journey span { display: block; }
body .academy-journey b { color: var(--text-primary); margin-bottom: 8px; }
body .academy-journey span { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
body .academy-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-block: 20px; color: var(--text-muted); }
body #learn-tools .concept-map { background: transparent; margin-block: 16px 32px; padding: 12px 0; border-width: 1px 0; border-radius: 0; }
@media (max-width: 720px) {
  body .academy-journey { grid-template-columns: 1fr; gap: 12px; }
  body .academy-journey b { margin-bottom: 2px; }
}
/* PHASE 7C-1F: match the transaction marker to the tablet story layout. */
@media (min-width: 721px) and (max-width: 900px) {
  body .story-moving-tx { width: calc(100% - 24px); }
  body .story-board::before {
    width: 1px;
    height: 90%;
    background: linear-gradient(180deg, #b48a52, #649f9c, #7299b6);
  }
}

/* RC-3: small, read-only bridge from network observations to learning models. */
.network-now { margin-bottom: 2rem; }
.network-now-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1.5rem 0; color: var(--text-secondary); }
.network-now-toolbar button:disabled { opacity: .55; cursor: wait; }
.network-now-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.network-now-grid article { min-width: 0; padding: 1.5rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--surface-card); overflow-wrap: anywhere; }
.network-now-grid h2 { font-size: 1rem; margin: 0 0 1rem; }
.network-now-grid strong { display: block; font-size: clamp(1.5rem, 3vw, 2rem); }
.network-now-grid small { font-size: .85rem; font-weight: normal; }
.network-now-grid p, .network-now-model, .network-now-source { color: var(--text-secondary); line-height: 1.7; }
.network-now-grid .text-cta { display: block; margin-top: .75rem; white-space: normal; text-align: left; }
.network-now-grid dl { margin: 0; }
.network-now-grid dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.network-now-grid dd { margin: 0; font-weight: 600; }
.network-now-grid summary { cursor: pointer; }
.network-now-model { margin-top: 1.5rem; }
.network-now-source { font-size: .85rem; }
.network-now-watch { margin-top: 2rem; }
@media (max-width: 600px) { .network-now-grid { grid-template-columns: minmax(0, 1fr); } .network-now-grid article { padding: 1.1rem; } }

/* RC-4: curated learning events, secondary to Network Now. */
.bitcoin-radar { margin: 2.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }
.bitcoin-radar h2 { font-size: 1.5rem; margin: .75rem 0; }
.bitcoin-radar h3 { font-size: 1rem; margin: 1.5rem 0 .75rem; }
.radar-card { padding: 1rem 1.25rem; margin: .75rem 0; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); min-width: 0; overflow-wrap: anywhere; }
.radar-card h4 { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.6; }
.radar-card p, .radar-empty p { margin: .5rem 0; line-height: 1.7; }
.radar-meta { color: var(--text-secondary); font-size: .85rem; line-height: 1.7; }
.radar-detail summary { cursor: pointer; margin-top: .75rem; }
.radar-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.radar-links button { white-space: normal; text-align: left; }
.radar-empty { padding: .5rem 0; color: var(--text-secondary); }

/* RC-4.5 presentation boundaries: learning journey, single scene, calendar. */
.journey-hero { max-width: 1000px; min-height: 80vh; margin: auto; padding: 5rem 2rem 2rem; text-align: center; }
.journey-intro { max-width: 750px; margin: auto; }
.journey-intro h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.25; letter-spacing: -.035em; margin: 1rem 0; }
.journey-intro p, .home-why p { color: var(--text-secondary); line-height: 1.8; }
.hero-scene { max-width: 650px; margin: 1rem auto 0; }
.hero-scene svg { display: block; width: 100%; }
.hero-peer-lines { fill: none; stroke: #334756; stroke-width: 1; }
.hero-peers { fill: #172c38; stroke: #7caaa9; stroke-width: 2; }
#hero-data-object rect { fill: #c68b43; stroke: #f0c895; }
#hero-data-object path { stroke: #171c22; stroke-width: 2; }
.hero-scene[data-stage="node"] .hero-node, .hero-scene[data-stage="block"] .hero-node { fill: #487b72; }
.hero-scene[data-stage="block"] #hero-data-object rect, .hero-scene[data-stage="chain"] #hero-data-object rect, .hero-scene[data-stage="confirm"] #hero-data-object rect { fill: #7caaa9; rx: 2; }
.hero-explanation { max-width: 600px; min-height: 125px; margin: 0 auto 1.25rem; }
.hero-explanation h2 { margin: .5rem 0; font-size: 1.3rem; }
.hero-explanation p { line-height: 1.7; color: var(--text-secondary); margin: 0; }
.hero-explanation > span, .hero-model-note { color: var(--text-muted); font-size: .8rem; }
.hero-model-note { margin-top: 1rem; }
.home-why { max-width: 800px; padding: 5rem 2rem; margin: 2rem auto; border-top: 1px solid var(--border-subtle); }
.home-why h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.4; }
.home-why button { margin-top: 1rem; }
.learn-why { padding: 2rem 0; border-block: 1px solid var(--border-subtle); margin-bottom: 2rem; }
.learn-why h2 { margin: .5rem 0; }
.learn-why p { color: var(--text-secondary); line-height: 1.7; }
.learn-why summary { cursor: pointer; padding: 1rem 0; }
#learn-tools { margin-top: 3rem; }
body #learn-tools .concept-map > summary { font-size: 1rem; }
.level-chapter-grid { grid-template-columns: 1fr !important; }
.level-band-head small { display: block; color: var(--text-secondary); margin-top: .6rem; }
#chapter-view .chapter-screen { max-width: 1160px; width: 100%; padding: 1.5rem; margin: auto; }
#chapter-view .section-content { max-width: 740px; margin: auto; }
.chapter-interaction { border-top: 1px solid var(--border-subtle); padding-top: 2rem; margin-top: 2rem; scroll-margin-top: 90px; }
.chapter-interaction[hidden] { display: none !important; }
.journey-lab-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
#chapter-lab-slot { min-width: 0; }
#chapter-lab-slot .lab-panel { min-width: 0; }
.chapter-interaction > .primary-cta { margin-top: 2rem; }
#learn-why-content, #bitcoin-radar-root { scroll-margin-top: 90px; }
#preview-learning-record { margin: 1.5rem 0; line-height: 1.7; }
#preview-learning-record h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
#preview-learning-record ul { list-style: none; padding: 0; color: var(--text-secondary); }
.network-now-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calendar-layout { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
.calendar-controls { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.calendar-controls h3 { margin: 0; }
.calendar-controls button { min-width: 44px; min-height: 44px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 1rem; }
.calendar-grid > * { text-align: center; min-width: 0; }
.calendar-weekday { font-size: .75rem; padding: .5rem 0; color: var(--text-muted); }
.calendar-grid button { min-height: 44px; border: 1px solid transparent; position: relative; background: var(--surface-card); border-radius: 5px; color: var(--text-primary); }
.calendar-grid button[aria-pressed="true"] { border-color: var(--accent-primary); background: #322619; }
.calendar-grid button[aria-current="date"] { text-decoration: underline; }
.calendar-grid i { display: block; width: 4px; height: 4px; background: var(--accent-primary); border-radius: 50%; position: absolute; bottom: 4px; left: calc(50% - 2px); }
.calendar-event-visual { position: relative; aspect-ratio: 3 / 1; background: linear-gradient(120deg, #1c2e39, #332b21); border-radius: 6px; display: grid; place-items: center; overflow: hidden; margin-bottom: 1rem; }
.calendar-event-visual span { padding: 1rem; font-size: .85rem; color: var(--text-secondary); }
.calendar-event-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.calendar-event-visual img[hidden] { display: none; }
.calendar-selection { min-width: 0; }
.calendar-selection > h3 { margin-top: .6rem; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
@media (max-width: 850px) { .calendar-layout { grid-template-columns: 1fr; } .network-now-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .journey-hero { padding: 2.5rem 1rem 1.5rem; min-height: auto; } .home-why { padding: 3rem 1rem; } #chapter-view .chapter-screen { padding: 1rem .75rem; } .hero-explanation { min-height: 155px; } .radar-card { padding: 1rem; } .journey-lab-tabs button { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .hero-scene * { animation: none !important; transition: none !important; } }

/* RC-4.6: secondary destinations within the four primary purposes. */
.primary-nav-group { position: relative; flex-shrink: 0; }
.primary-submenu { display: none; }
@media (min-width: 1101px) {
  body .preview-nav { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  body .preview-nav .service-brand { justify-self: start; min-width: 0; }
  body .preview-nav .service-tabs { grid-column: 2; justify-self: center; margin: 0; overflow: visible; }
  body .preview-nav .service-actions { justify-self: end; margin: 0; }
  .primary-submenu { position: absolute; left: 50%; transform: translateX(-50%); top: 100%; min-width: 180px; padding: .5rem; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 8px; box-shadow: 0 12px 24px #0005; z-index: 100; }
  .primary-nav-group:hover .primary-submenu, .primary-nav-group:focus-within .primary-submenu { display: grid; }
  .primary-submenu button { text-align: left; min-height: 44px; padding: .5rem .75rem; color: var(--text-secondary); background: transparent; border: 0; }
  .primary-submenu button:hover, .primary-submenu button:focus-visible { background: var(--surface-section); color: var(--text-primary); }
}
.secondary-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .5rem; padding: .5rem 0 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.secondary-nav button { flex: 0 0 auto; min-height: 44px; padding: .6rem 1rem; background: var(--surface-section); color: var(--text-primary); border: 1px solid var(--border-subtle); border-radius: 7px; }
.bitcoin-word { color: var(--accent-primary); background: none; }
.journey-hero { min-height: auto; padding-top: 3.5rem; }
.journey-ghost-cta { color: var(--accent-primary); background: transparent; border: 1px solid var(--border-strong); border-radius: 24px; padding: .75rem 1.25rem; min-height: 44px; font-weight: 600; }
.journey-ghost-cta:hover { border-color: var(--accent-primary); background: var(--surface-section); }
.journey-ghost-cta:disabled { opacity: .65; }
.home-why { max-width: 1000px; margin: 1rem auto; padding-top: 3rem; }
.home-why .why-section { margin-block: 1.5rem; padding-block: 1.5rem; }
.home-why .why-number { display: none; }
.home-why .why-section { grid-template-columns: minmax(0,1fr); }
.home-why .why-sources { margin-top: 1.5rem; }
.home-learn-cta { display: inline-block; min-height: 44px; padding: .75rem 0; font-size: 1.1rem; }
.learn-section, .explore-section { scroll-margin-top: 100px; min-width: 0; margin-bottom: 3rem; }
.learn-section > h2, .explore-section :is(.network-now > h1, .bitcoin-radar > h2, .watch-hero h1) { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; }
.learn-section > p { color: var(--text-secondary); line-height: 1.7; }
.learning-modules { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-block: 1.5rem; }
.learning-module { min-width: 0; text-align: left; padding: 1.2rem; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--surface-card); color: var(--text-primary); }
.learning-module > span { color: var(--text-muted); font-size: .8rem; }
.learning-module h3 { font-size: 1.1rem; margin: .6rem 0; }
.learning-module small { color: var(--text-secondary); }
.learning-module:hover { border-color: var(--border-strong); }
.direct-interaction { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-block: 1.5rem; }
.direct-interaction select { max-width: 100%; min-width: 0; min-height: 44px; background: var(--surface-card); color: var(--text-primary); border: 1px solid var(--border-strong); padding: .6rem; border-radius: 6px; }
.quiz-levels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.quiz-level { border-top: 2px solid var(--border-strong); padding-top: 1rem; min-width: 0; }
.quiz-level h3 { margin: 0 0 .75rem; font-size: 1.2rem; }
.quiz-level.beginner { border-color: #659a82; }
.quiz-level.intermediate { border-color: #9b8c63; }
.quiz-level.advanced { border-color: #7d8fae; }
.quiz-entry { display: block; width: 100%; min-height: 44px; padding: .75rem 0; text-align: left; color: var(--text-secondary); background: transparent; border: 0; border-bottom: 1px solid var(--border-subtle); overflow-wrap: anywhere; }
#protocol-watch-root { border-top: 1px solid var(--border-subtle); padding-top: 2rem; }
@media (min-width: 601px) and (max-width: 1100px) { .learning-modules { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .learning-modules, .quiz-levels { grid-template-columns: minmax(0,1fr); } .secondary-nav { gap: .35rem; } .secondary-nav button { padding-inline: .7rem; } .home-why { padding-inline: 1rem; } }

/* Guided Hero: native controls stay mounted for keyboard focus and locale changes. */
.hero-guided-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;width:100%;margin:20px auto}
.hero-guided-controls button,.hero-guided-controls select,#hero-learn{background:#111c30;color:#e8f0ff;border:1px solid #486078;border-radius:10px;padding:12px;min-height:44px;font:inherit}
.hero-guided-controls select{max-width:100%;min-width:0}.hero-guided-controls label{display:flex;align-items:center;gap:8px;color:#b8c9df}
.hero-guided-controls :focus-visible,#hero-learn:focus-visible{outline:3px solid #f5a623;outline-offset:4px}
.hero-guided-controls button:disabled{opacity:.45}#hero-key-point{color:#d7e3f5;line-height:1.7}#hero-target{color:#76d8e6;font-size:.85rem}#hero-learn{margin-top:12px;cursor:pointer}
.hero-explanation{min-height:270px;max-width:760px;margin-inline:auto}#hero-key-point{max-width:65ch;margin:12px auto}
@media(max-width:600px){.hero-guided-controls{gap:8px}.hero-guided-controls select{flex:1;width:50%}.hero-guided-controls label{width:100%;justify-content:center}.hero-explanation{min-height:340px;padding-inline:12px}}

.hero-local-pools,.hero-candidate,.hero-chain{display:none;fill:#142a3e;stroke:#76d8e6;stroke-width:2}
.hero-scene[data-stage="mempool"] .hero-local-pools,.hero-scene[data-stage="miner"] .hero-local-pools,.hero-scene[data-stage="miner"] .hero-candidate,.hero-scene[data-stage="pow"] .hero-candidate,.hero-scene[data-stage="block"] .hero-candidate,.hero-scene[data-stage="chain"] .hero-chain,.hero-scene[data-stage="confirm"] .hero-chain{display:block}
.hero-scene[data-stage="confirm"] .hero-chain rect:last-child{fill:#be873b}

.hero-signature{display:none;fill:none;stroke:#76d8e6;stroke-width:2}.hero-scene[data-stage="wallet"] .hero-signature{display:block}

/* A quiet caption and one active object badge, outside the decorative scene's aria-hidden tree. */
.hero-visual-shell{max-width:820px;margin:1.25rem auto 1.5rem;text-align:left}
.hero-caption{display:flex;align-items:center;gap:14px;min-height:58px;padding:10px 18px;background:#0e1626;border:1px solid #2b3d50;border-radius:12px 12px 0 0;color:#f0f4fa}
.hero-caption h2{margin:0;font-size:1.1rem;line-height:1.4;font-weight:600;letter-spacing:.01em}
#hero-keyword-step{font-size:.75rem;font-variant-numeric:tabular-nums;color:#b3c8dc;white-space:nowrap}
.hero-artboard{position:relative;background:#0b1020;border-radius:0 0 12px 12px}
.hero-artboard .hero-scene{max-width:none;margin:0}
.hero-object-labels{position:absolute;inset:0;pointer-events:none}
.hero-object-label{position:absolute;padding:4px 8px;background:#0e192c;color:#c3d1df;border:1px solid #536d85;border-radius:6px;font-size:12px;line-height:1.25;white-space:nowrap}
.hero-object-label[data-active="true"]{border-color:#e2ae68;color:#ffdfaf;background:#201e23}
.hero-object-label[hidden]{display:none}
#hero-term{font-size:.85rem;line-height:1.6;color:#adbed0;border-top:1px solid #2b3d50;padding-top:10px;margin-top:12px}
@media(max-width:600px){.hero-caption{padding:10px 12px;gap:10px;min-height:54px}.hero-caption h2{font-size:1rem}.hero-object-label{font-size:11px;padding:3px 5px}.hero-visual-shell{margin-top:1rem}.hero-explanation{min-height:385px}}
@media(prefers-reduced-motion:reduce){.hero-caption *,.hero-object-label{transition:none}}

/* A small SVG-only label gutter keeps near-edge chain labels readable on narrow screens. */
@media(max-width:600px){.hero-artboard[data-renderer="svg"]{padding-bottom:24px}}
