@charset "UTF-8";
/* Shared exhibition finish. Load after style.css / museum.css.
   The home corridor and new category / explorer heroes live in spatial.css.
   Display finishes here do not change engineering material assignments. */

:root {
  --paper: #e8e8e5;
  --scene: #e9e9e5;
  --surface: #f2f2ee;
  --ink: #151716;
  --muted: #545852;
  --line: #bfc2ba;
  --blue: #353c38;
  --pale: #dedfd9;
  --accent: #c4e6e7;
  --accent-dark: #294f53;
  --cyan-line: #83bdc2;
  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html { scroll-padding-top: 32px; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--ink); background: #b8dcdd; }
button, input, select, textarea { font-family: var(--sans); }
button, input, select { color: var(--ink); }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 4px;
}
.search-field:focus-within { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.search-field input:focus-visible { outline-offset: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p, li { text-wrap: pretty; }
code, pre { font-family: var(--mono); }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; font-size: 13px; }
input[type="range"] { accent-color: var(--accent-dark); }
.skip-link { background: var(--ink); color: #fff; }
.page-wrap { max-width: 1640px; }

/* Quiet navigation, with the existing mobile menu kept fully operable. */
.site-header {
  position: relative;
  height: 88px;
  max-width: 1640px;
  gap: 28px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}
.site-brand { color: var(--ink); font-size: 23px; font-weight: 650; letter-spacing: -.7px; }
.site-brand svg { stroke: var(--ink); }
.site-brand small { color: var(--muted); font-size: 9px; letter-spacing: 1.1px; }
.site-nav { color: #545852; gap: clamp(16px, 2vw, 30px); font-size: 13px; }
.site-nav a { min-height: 42px; padding-block: 10px; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.active:after { height: 1px; background: var(--ink); }
.header-lab { color: var(--ink); border-color: #afb5a8; font-size: 13px; }
.header-lab span { margin-left: 15px; }
.menu-toggle { color: var(--ink); background: transparent; min-width: 40px; min-height: 40px; }
.site-footer {
  max-width: 1640px;
  margin-top: 96px;
  padding-top: 32px;
  padding-bottom: 35px;
  border-color: var(--line);
  color: var(--muted);
  font-size: 12px;
}
.site-footer .site-brand { color: var(--ink); font-size: 19px; letter-spacing: -.6px; }
.site-footer .site-brand small { color: var(--muted); font-size: 12px; letter-spacing: 0; }
.site-footer p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.site-footer > span { color: var(--muted); font-size: 10px; }
.site-footer > a:not(.site-brand) { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.breadcrumbs { max-width: 1640px; color: #545852; font-size: 12px; padding-top: 28px; }
.breadcrumbs a { color: var(--ink); }
.overline, .eyebrow, .micro-mono, .mono { color: #545852; }
.overline, .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
.micro-mono { font-size: 10px; letter-spacing: .8px; }

/* Existing section introductions share the reference's oversized typography.
   The white mark is decorative and cannot intercept text or controls. */
.page-intro, .lesson-heading { position: relative; isolation: isolate; max-width: 1640px; }
.page-intro { padding-top: 42px; padding-bottom: 46px; }
.page-intro::after, .lesson-heading::after {
  content: "HX6";
  position: absolute;
  right: 4.5%;
  bottom: -20px;
  z-index: -1;
  color: #f7f7f3;
  font: 600 clamp(130px, 19vw, 290px)/.8 var(--sans);
  letter-spacing: -.085em;
  pointer-events: none;
  user-select: none;
}
.page-intro h1, .part-heading h1, .lesson-heading h1 {
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.17;
}
.page-intro h1 { font-size: clamp(36px, 4.5vw, 68px); margin: 18px 0 22px; }
.page-intro > p, .lesson-heading > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  max-width: 820px;
}
.section-title h2, .section-top h2 { color: var(--ink); font-weight: 500; letter-spacing: -.04em; }
.section-title h2 { font-size: clamp(28px, 3vw, 42px); }
.section-title > p, .section-top > p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.cta, .button { border-radius: 1px; min-height: 44px; font-size: 13px; font-weight: 500; }
.cta.dark, .button.primary { color: #fafbf7; background: var(--ink); border-color: var(--ink); }
.cta.dark:hover, .button.primary:hover { color: #fff; background: #353a36; border-color: #353a36; }
.cta.light { color: var(--ink); background: transparent; border-color: #afb5a8; }
.cta.light:hover { background: #d3d5ce; border-color: var(--ink); }
.small-link, .back-link, .text-link { color: #545852; font-size: 13px; }
.small-link:hover, .back-link:hover, .text-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.tag { color: #545852; background: #eeeeea; border-color: #afb5a8; border-radius: 1px; font-size: 11px; }
.tag.warm { color: #545852; background: #eeeeea; border-color: #afb5a8; }
.data-note, .catalog-summary, .engineering-note {
  color: #545852;
  background: #eeeeea;
  border: 0;
  border-left: 2px solid #5f645b;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.9;
}
.loading-copy, .error-panel p, .empty-state p { color: var(--muted); font-size: 14px; }
.error-panel, .empty-state { border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.error-panel h2, .empty-state h3 { color: var(--ink); }

/* Catalogs are shelves rather than stacks of blue rounded cards. */
.catalog-layout, .learning-layout { grid-template-columns: 210px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.catalog-sidebar { border-color: #afb5a8; }
.catalog-sidebar nav a { color: #545852; border-radius: 0; padding: 12px 10px; font-size: 13px; }
.catalog-sidebar nav a span { color: #545852; font-size: 11px; }
.catalog-sidebar nav a:hover { color: var(--ink); background: #eeeeea; }
.catalog-sidebar nav a.active { color: var(--ink); background: #cee2e0; box-shadow: inset 2px 0 var(--accent-dark); }
.sidebar-guide, .sidebar-note { color: #545852; border-color: var(--line); font-size: 12px; line-height: 1.9; }
.sidebar-note a { color: var(--ink); }
.catalog-heading h2 { color: var(--ink); font-size: 32px; letter-spacing: -.045em; }
.catalog-heading p { color: var(--muted); font-size: 14px; }
.catalog-heading > .small-link { font-size: 12px; }
.catalog-summary { margin-bottom: 30px; padding: 16px 18px; font-size: 12px; }
.search-field { background: #eeeeea; border-color: #afb5a8; border-radius: 0; min-height: 48px; }
.search-field > span { color: #545852; }
.search-field input { color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: #5f645b; opacity: 1; }
.search-form select { color: #545852; background: #eeeeea; border-color: #afb5a8; border-radius: 0; font-size: 13px; }
.search-form > .cta { font-size: 13px; }
.results-meta { color: #545852; font-size: 12px; margin-block: 22px 18px; }
.results-meta button { font-size: 12px; }
.part-grid { gap: 30px 22px; }
.part-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.part-card:hover { border-color: #5f645b; box-shadow: none; }
.part-card-image { height: 220px; background: var(--scene); border: 1px solid #d3d5ce; }
.part-card-image img { padding: 15px; mix-blend-mode: multiply; }
.part-card-image > span:last-child { color: #545852; background: #eeeeeae8; font-size: 9px; }
.part-symbol { color: #afb5a8; }
.part-card-copy { padding: 19px 0 20px; }
.part-card-copy > .micro-mono { color: #5f645b; font-size: 9px; letter-spacing: .6px; }
.part-card h3 { color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.6; margin-top: 10px; }
.part-card p { display: block; overflow: visible; -webkit-line-clamp: unset; color: #545852; font-size: 13px; line-height: 1.9; }
.part-card-bottom { color: #545852; border-color: #d3d5ce; font-size: 10px; }
.part-card-bottom b { color: #353a36; }
.pagination a, .pagination span { color: #545852; border-color: #afb5a8; border-radius: 0; background: transparent; font-size: 12px; min-height: 38px; }
.pagination a.active { color: #fff; background: var(--ink); border-color: var(--ink); }

/* Object viewers: a large neutral field and a quiet, fully readable facts rail. */
.part-heading { align-items: flex-start; padding-block: 32px 38px; }
.part-heading h1 { font-size: clamp(32px, 3.8vw, 56px); margin-block: 16px 20px; }
.part-heading p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.part-heading .back-link { font-size: 13px; padding-top: 17px; }
.part-detail-layout { grid-template-columns: minmax(0, 7fr) minmax(250px, 3fr); gap: clamp(24px, 3vw, 46px); align-items: start; }
.object-stage { border: 0; border-radius: 0; background: var(--scene); overflow: hidden; }
.scene-top, .scene-toolbar { color: #545852; background: var(--scene); border-color: #afb5a8; }
.scene-top { min-height: 48px; padding: 14px 18px; font-size: 11px; }
.scene-top .micro-mono { color: #545852; font-size: 10px; }
.scene-canvas { height: clamp(480px, 49vw, 710px); background: var(--scene); }
.scene-canvas canvas { display: block; background: var(--scene); }
.scene-loading { color: var(--muted); background: #e9e9e5f5; font-size: 14px; }
.scene-toolbar { padding: 14px 16px; gap: 12px; }
.view-buttons { gap: 7px; }
.view-buttons button { color: #545852; background: transparent; border-color: #afb5a8; border-radius: 1px; min-height: 40px; font-size: 12px; padding: 8px 13px; }
.view-buttons button:hover { background: #eeeeea; border-color: #5f645b; }
.view-buttons button.active, .view-buttons button[aria-pressed="true"] { color: var(--ink); background: #cee2e0; border-color: #5f645b; }
.scene-footnote { color: #545852; font-size: 12px; line-height: 1.8; padding: 4px 18px 18px; }
.scene-fallback { padding: 32px; mix-blend-mode: multiply; }
.viewer-shell, .lab-model, .stage-wrap, .viewer, .viewer-load {
  background: var(--scene);
  border-color: var(--line);
  border-radius: 0;
}
.viewer-top, .viewer-bottom, .part-index, .stage-scale {
  color: var(--muted);
  border-color: var(--line);
}
.viewer-top, .viewer-bottom, .part-index { background: var(--scene); }
.viewer-top .mono, .candidate-tag, .stage-caption > .mono, .stage-scale { color: var(--muted); }
.stage-caption strong { color: var(--ink); }
.stage-caption p, .lab-model .model-note, .lab-footnote { color: var(--muted); }
.render-tabs button, .part-index button { color: var(--muted); border-radius: 0; }
.render-tabs button.active, .part-index button.active {
  color: var(--ink);
  background: #cee2e0;
  border-color: var(--cyan-line);
}
.lab-controls, .chain-panel { color: var(--ink); background: transparent; border-color: var(--line); border-radius: 0; }
.control-heading, .lab-control-footer, .lab-readouts { color: var(--muted); background: transparent; border-color: var(--line); }
.lab-field, .range-heading, .lab-readouts > div, .lab-readouts b, .lab-control-footer,
.part-inspector > .mono, .part-inspector > p, .part-evidence p,
.chain-panel-title p, .system-flow small { color: var(--muted); }
.range-heading output, .part-inspector h3, .system-flow b { color: var(--ink); }
.lab-field, .range-heading, .lab-readouts > div, .lab-readouts b { font-size: 12px; }
.part-inspector > p, .part-evidence p { font-size: 12px; line-height: 1.9; }
.chain-play { color: #fff; background: var(--ink); border-radius: 1px; }
.isolate-button { color: var(--ink); background: transparent; border-color: var(--line); border-radius: 1px; }
.isolate-button[aria-pressed="true"] { background: #cee2e0; border-color: var(--accent-dark); }
.part-evidence, .system-flow li > span { border-color: var(--line); }
.system-flow li.active > span { color: var(--ink); background: #cee2e0; border-color: var(--accent-dark); }
.system-flow li.active b { color: var(--ink); }
.mode-card { color: var(--ink); background: transparent; border-color: var(--line); border-radius: 0; }
.mode-card.selected, .mode-card:hover { color: var(--ink); background: #dedfd9; border-color: #afb5a8; }
.mode-card svg { stroke: #545852; }
.mode-index, .mode-small, .mode-detail p, .research-strip > p, .research-strip > div > span { color: var(--muted); }
.detail-label, .research-strip b { color: var(--ink); }
.part-facts { padding: 5px 0 0; background: transparent; border: 0; border-top: 1px solid #5f645b; border-radius: 0; }
.part-facts h2 { font-size: 19px; letter-spacing: -.025em; margin-block: 20px 18px; }
.fact-row { grid-template-columns: minmax(75px, 30%) minmax(0, 1fr); gap: 16px; padding-block: 13px; border-color: #d3d5ce; font-size: 13px; }
.fact-row > span { color: #545852; font-size: 12px; }
.fact-row b { color: #353a36; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.part-facts > .data-note { color: #545852; font-size: 12px; padding: 15px 16px; }
.object-stage:fullscreen { background: var(--scene); }
.object-stage:fullscreen .scene-canvas { height: auto; min-height: 0; flex: 1; }
.detail-body { gap: 36px; padding-top: 48px; }
.detail-section { padding: 28px 0; border: 0; border-top: 1px solid #afb5a8; background: transparent; border-radius: 0; }
.detail-section h2 { font-size: 28px; letter-spacing: -.04em; margin-block: 12px 20px; }
.detail-section .overline { color: #545852; font-size: 10px; }
.detail-section p, .detail-section li { color: #545852; font-size: 14px; line-height: 2; }
.detail-section .small-link { color: #353a36; font-size: 13px; }
.related-section { padding-top: 56px; }
.related-card { padding: 24px 0; background: transparent; border: 0; border-top: 1px solid #afb5a8; border-radius: 0; }
.related-card:hover { border-color: #353a36; }
.related-card > span { color: #5f645b; font-size: 10px; }
.related-card h3 { color: var(--ink); font-size: 19px; margin-block: 14px; }
.related-card p { color: #545852; font-size: 13px; line-height: 1.95; }

/* Reading surfaces: generous measure, clear action / check blocks, no pale text. */
.lesson-grid { gap: 6px 42px; }
.lesson-card { border: 0; border-top: 1px solid #afb5a8; border-radius: 0; background: transparent; padding: 30px 0; }
.lesson-card:hover { border-color: var(--ink); }
.lesson-card > span { color: #5f645b; font-size: 11px; }
.lesson-card h2 { font-size: 25px; line-height: 1.55; font-weight: 500; letter-spacing: -.035em; margin-block: 16px; }
.lesson-card p { color: #545852; font-size: 14px; line-height: 1.95; margin-bottom: 24px; }
.lesson-card footer { color: #545852; font-size: 11px; }
.lesson-card footer b { color: var(--ink); }
.lesson-heading { padding-top: 42px; padding-bottom: 48px; }
.lesson-heading h1 { font-size: clamp(36px, 4.5vw, 64px); max-width: 1120px; }
.article-layout { grid-template-columns: 200px minmax(0, 900px); gap: clamp(36px, 5vw, 80px); }
.article-toc { top: 28px; border-color: #5f645b; }
.article-toc a { color: #545852; font-size: 13px; line-height: 1.85; }
.article-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.guide-article { border: 0; border-radius: 0; background: transparent; padding: 0; }
.guide-article section { margin-bottom: 40px; padding-bottom: 40px; border-color: #afb5a8; scroll-margin-top: 30px; }
.guide-article h2 { font-size: 30px; letter-spacing: -.035em; line-height: 1.5; margin-bottom: 22px; }
.guide-article h3 { font-size: 20px; margin-block: 28px 14px; }
.guide-article p, .guide-article li { color: #353a36; font-size: 16px; line-height: 2; }
.guide-article li + li { margin-top: 10px; }
.step-number { color: #5f645b; font-size: 11px; letter-spacing: 1.5px; }
.action-box, .check-box { background: #eeeeea; border-left: 2px solid #5f645b; margin-block: 22px; padding: 20px 22px; }
.check-box { background: #eeeeea; border-color: #545852; }
.action-box b, .check-box b { color: #545852; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.action-box p, .check-box p { color: #353a36; font-size: 14px; line-height: 2; }
.guide-sources a { color: #353a36; font-size: 14px; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Process and architecture pages keep their detail while becoming flatter. */
.journey-layout { grid-template-columns: 215px minmax(0, 1fr); gap: clamp(34px, 5vw, 76px); }
.journey-nav a { color: #545852; border-color: #afb5a8; font-size: 13px; border-radius: 0; padding: 13px 12px; }
.journey-nav a span { color: #5f645b; font-size: 10px; }
.journey-nav a:hover { color: var(--ink); background: #d3d5ce; }
.journey-stage { border: 0; border-top: 1px solid #afb5a8; border-radius: 0; background: transparent; padding: 35px 0 26px; margin-bottom: 24px; }
.journey-stage > header { flex-wrap: wrap; }
.journey-stage h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; line-height: 1.4; }
.journey-stage > p { color: #545852; font-size: 15px; line-height: 2; }
.journey-stage h3 { color: #353a36; font-size: 15px; margin-block: 25px 12px; }
.journey-stage li { color: #545852; font-size: 14px; line-height: 1.95; }
.stage-verification { border-color: #afb5a8; }
.journey-stage .data-note { color: #353a36; font-size: 13px; }
.stage-lesson-links a { color: #353a36; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.assembly-layout { grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr); gap: 36px; }
.assembly-story { border: 0; border-top: 1px solid #afb5a8; border-radius: 0; background: transparent; padding: 12px 0; }
.assembly-story nav button { color: #545852; font-size: 13px; min-height: 42px; border-radius: 0; }
.assembly-story nav button.active { background: #cee2e0; color: var(--ink); }
.assembly-story nav button span { font-size: 10px; }
.assembly-note { border-color: #afb5a8; }
.assembly-note h2 { font-size: 28px; letter-spacing: -.035em; }
.assembly-note h3 { color: #545852; font-size: 13px; }
.assembly-note > p, .assembly-note ul { color: #545852; font-size: 14px; line-height: 2; }
.assembly-note .small-link { color: #353a36; font-size: 13px; }
.assembly-control { border: 0; border-top: 1px solid #afb5a8; border-radius: 0; background: transparent; padding: 20px 0; }
.assembly-control > div > span { color: #545852; font-size: 11px; }
.assembly-control input { accent-color: var(--accent-dark); }
.assembly-control .cta { min-height: 40px; font-size: 12px; }
.jev-workspace { gap: 54px; }
.jev-architecture, .jev-explanation { border: 0; border-top: 1px solid #afb5a8; border-radius: 0; background: transparent; padding: 28px 0; }
.jev-nodes { gap: 0; }
.jev-nodes button { color: var(--ink); background: transparent; border: 0; border-block: 1px solid #afb5a8; border-radius: 0; padding: 20px 18px; }
.jev-nodes button > span { color: #545852; font-size: 11px; }
.jev-nodes button b { color: var(--ink); font-size: 17px; }
.jev-nodes button small { color: #545852; font-size: 12px; line-height: 1.85; }
.jev-nodes button.active { background: #cee2e0; border-color: #5f645b; }
.jev-nodes > i { color: #5f645b; }
.jev-explanation h2 { font-size: 36px; font-weight: 500; letter-spacing: -.04em; }
.jev-explanation > p { color: #545852; font-size: 15px; line-height: 2; }
.jev-explanation h3 { font-size: 17px; }
.jev-explanation .data-note { color: #353a36; font-size: 13px; }

/* Existing mission sandbox: neutral architecture, restrained cyan activity. */
body[data-page="mission"] .mission-section { background: transparent; max-width: 1640px; }
body[data-page="mission"] .section-top h2 { font-size: clamp(35px, 4.5vw, 62px); line-height: 1.2; letter-spacing: -.05em; }
.demo-layout { grid-template-columns: minmax(0, 1fr) minmax(290px, 330px); gap: 32px; }
.map-card { background: var(--scene); border: 0; }
body[data-page="mission"] .map-card { background: var(--scene); }
.map-heading, .map-footer { color: #353a36; background: var(--scene); border-color: #afb5a8; }
.map-heading { font-size: 13px; }
.demo-badge { color: #545852; font-size: 10px; }
.map-footer { font-size: 11px; }
.map-footer > button { font-size: 12px; }
.map-labels { fill: #545852; font-size: 12px; }
.map-point-label { fill: #353a36; font-size: 12px; }
.map-scale { fill: #545852; font-size: 9px; }
#mission-map > rect[fill="#eef0e9"] { fill: var(--scene); }
#map-grid path { stroke: #d3d5ce; }
#mission-map [fill="#e1e5dc"] { fill: #d3d5ce; }
#mission-map [stroke="#b4bcae"] { stroke: #afb5a8; }
#mission-map [fill="#c8d0c0"] { fill: #afb5a8; }
#mission-map g[fill="#d6dfca"] { fill: #d3d5ce; }
#mission-map [fill="#1f2b20"] { fill: var(--ink); }
#mission-map [stroke="#c9f47a"] { stroke: var(--accent); }
#mission-map [fill="#f9faf5"] { fill: var(--surface); }
#mission-map [stroke="#71865b"] { stroke: var(--muted); }
#arrow > path { fill: var(--accent-dark); }
#route-shadow { stroke: #d3d5ce; }
#route[stroke="#7c9261"] { stroke: #3a6866; }
#robot-marker > circle { fill: #c4e6e7; stroke: #353a36; }
#robot-marker > path { stroke: #353a36; }
#scan-rings > circle { fill: #8ac8cc; }
#scan-rings > circle[fill="none"] { fill: none; stroke: #4c969c; }
#obstacle rect { fill: #afb5a8; stroke: #545852; }
#obstacle path { stroke: #545852; }
.legend-dot { background: #3a6866; }
.legend-dot.dark { background: var(--ink); }
body[data-page="mission"] .demo-control { background: transparent; border: 0; border-top: 1px solid #5f645b; padding: 24px 0; }
.demo-control .control-title { color: #545852; }
.small-status { color: #353a36; background: #cee2e0; border-radius: 0; font-size: 11px; }
.demo-task { color: var(--ink); font-size: 25px; }
body[data-page="mission"] .caption, body[data-page="mission"] .demo-message,
body[data-page="mission"] .authority-note p { color: #545852; font-size: 13px; line-height: 1.9; }
.control-group label { color: #545852; font-size: 12px; }
.segmented { background: #eeeeea; border-color: #afb5a8; border-radius: 1px; }
body[data-page="mission"] .segmented button { color: #545852; min-height: 40px; font-size: 13px; }
.segmented button.active { color: var(--ink); background: #eeeeea; box-shadow: none; }
.scan-control b { color: #353a36; font-size: 14px; }
.scan-control small { color: #545852; font-size: 11px; }
.switch { background: #afb5a8; }
.switch[aria-checked="true"] { background: var(--accent-dark); }
.authority-note > span { background: #5f645b; }
.authority-note.active > span { background: var(--cyan-line); }
/* app.js assigns an older inline green to this indicator. The switch's
   actual aria state remains the authority for the new visual finish. */
#scan-state-dot { background: #73796f !important; }
.scan-control:has(.switch[aria-checked="true"]) + .authority-note #scan-state-dot {
  background: #438c92 !important;
}
.demo-buttons > .button { min-height: 45px; font-size: 13px; }
.icon-button { color: #353a36; background: #eeeeea; border-color: #afb5a8; border-radius: 1px; }
.icon-button:hover, .icon-button[aria-pressed="true"] { color: #353a36; background: #cee2e0; border-color: #5f645b; }
.mission-progress > div:first-child { color: #545852; font-size: 12px; }
.progress-track { background: #d3d5ce; }
.progress-track > span { background: var(--accent-dark); }
.mission-steps li { border-color: #afb5a8; opacity: 1; }
.mission-steps li span { color: #545852; font-size: 11px; }
body[data-page="mission"] .mission-steps b { color: #545852; font-size: 15px; }
body[data-page="mission"] .mission-steps small { color: #545852; font-size: 12px; line-height: 1.8; }
.mission-steps li.active, .mission-steps li.done { border-color: var(--accent-dark); }
.mission-steps li.active b { color: var(--ink); }

/* Reflow content instead of shrinking it into illegible labels. */
@media (min-width: 1041px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 1180px) {
  .site-header { gap: 20px; }
  .site-nav { gap: 16px; font-size: 12px; }
  .site-brand { font-size: 21px; }
  .header-lab { font-size: 12px; padding-left: 15px; }
  .catalog-layout, .learning-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 30px; }
  .part-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .part-card-image { height: 230px; }
  .article-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 36px; }
  .journey-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 1040px) {
  .site-header { height: 80px; gap: 18px; }
  .site-brand { margin-right: auto; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 100;
    padding: 20px 4.5%;
    background: #e8e8e5fc;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 22px #353a3610;
    gap: 8px 28px;
  }
  .site-header.menu-open .site-nav { display: flex; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
}
@media (max-width: 980px) {
  .part-detail-layout, .assembly-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .scene-canvas { height: clamp(400px, 60vw, 650px); }
  .part-facts { padding-top: 12px; }
  .fact-row { grid-template-columns: 140px minmax(0, 1fr); }
  .assembly-story { padding-top: 25px; }
  .assembly-story nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
  .demo-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
  body[data-page="mission"] .demo-control { padding-top: 24px; }
  .demo-task br { display: none; }
  .mission-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
  .jev-workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .catalog-layout, .learning-layout, .article-layout, .journey-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .catalog-sidebar, .article-toc, .journey-nav { position: static; }
  .catalog-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .catalog-sidebar nav a { margin: 0; padding: 9px 12px; font-size: 12px; }
  .sidebar-guide, .sidebar-note { margin-top: 15px; }
  .article-toc nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .article-toc nav a { color: #353a36; background: transparent; border: 1px solid #afb5a8; padding: 8px 10px; font-size: 12px; border-radius: 0; }
  .journey-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
  .journey-nav a { min-height: 44px; font-size: 12px; padding: 10px 9px; }
  .journey-nav a span { font-size: 10px; }
  .lesson-grid { gap: 0 28px; }
  .lesson-card h2 { font-size: 22px; }
  .detail-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 30px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 650px) {
  .site-header { height: 74px; padding-inline: 5%; gap: 13px; }
  .site-brand { font-size: 19px; gap: 8px; letter-spacing: -.5px; }
  .site-brand small { font-size: 8px; letter-spacing: .7px; }
  .site-brand svg { width: 27px; height: 31px; }
  .header-lab { color: var(--ink); border-left: 0; padding: 0; font-size: 11px; }
  .header-lab span { margin-left: 6px; }
  .site-nav { top: 100%; padding: 15px 5%; gap: 3px 20px; }
  .site-nav a { font-size: 13px; min-height: 44px; }
  .site-footer { margin-top: 60px; gap: 16px 20px; padding: 25px 5%; font-size: 11px; }
  .site-footer .site-brand { font-size: 17px; }
  .site-footer p { font-size: 11px; }
  .site-footer > span { font-size: 9px; }
  .breadcrumbs { padding-top: 22px; gap: 8px; font-size: 11px; }
  .overline, .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .page-intro { padding: 28px 5% 32px; }
  .page-intro::after, .lesson-heading::after { right: 5%; bottom: 2px; font-size: 140px; }
  .page-intro h1 { font-size: clamp(31px, 8.5vw, 43px); margin-block: 16px 20px; }
  .page-intro > p, .lesson-heading > p { font-size: 14px; line-height: 1.95; }
  .section-title h2, .related-section .section-title h2 { font-size: 29px; }
  .section-title > p { font-size: 12px; }
  .cta, .next-links .cta { font-size: 12px; min-height: 44px; padding: 11px 15px; }
  .tag { font-size: 10px; }
  .data-note, .catalog-summary { font-size: 12px; padding: 15px 16px; }
  .catalog-heading h2 { font-size: 29px; }
  .catalog-heading p { font-size: 13px; }
  .search-form select, .search-form > .cta { font-size: 12px; min-height: 44px; }
  .search-field input { font-size: 14px; padding-block: 13px; }
  .results-meta, .results-meta button { font-size: 11px; }
  .part-grid { gap: 22px 16px; }
  .part-card-image { height: 180px; }
  .part-card-copy { padding: 16px 0; }
  .part-card-copy > .micro-mono { font-size: 8px; }
  .part-card h3 { font-size: 15px; }
  .part-card p { font-size: 12px; line-height: 1.85; }
  .part-card-bottom { font-size: 9px; }
  .part-card-image > span:last-child { font-size: 8px; }
  .pagination a, .pagination span { min-height: 38px; font-size: 12px; }
  .part-heading { padding-top: 28px; padding-bottom: 28px; }
  .part-heading h1 { font-size: 33px; line-height: 1.25; }
  .part-heading p, .part-heading .back-link { font-size: 12px; }
  .part-heading .back-link { padding-top: 0; }
  .scene-top { font-size: 10px; padding: 13px 14px; }
  .scene-top .micro-mono { font-size: 9px; }
  .scene-canvas { height: clamp(350px, 88vw, 520px); }
  .scene-toolbar { padding: 12px; gap: 10px; }
  .view-buttons { gap: 5px; }
  .view-buttons button { min-height: 40px; padding: 8px 10px; font-size: 11px; }
  .scene-footnote { font-size: 11px; padding: 3px 14px 16px; }
  .fact-row { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
  .fact-row > span { font-size: 12px; }
  .fact-row b { font-size: 13px; }
  .part-facts > .data-note { font-size: 12px; }
  .detail-section { padding-block: 25px; }
  .detail-section h2 { font-size: 26px; }
  .detail-section p, .detail-section li { font-size: 14px; }
  .related-section { padding-top: 34px; }
  .related-card { padding-block: 22px; }
  .lesson-grid { grid-template-columns: minmax(0, 1fr); }
  .lesson-card { padding-block: 27px; }
  .lesson-card h2 { font-size: 24px; }
  .lesson-card p { font-size: 14px; }
  .lesson-heading { padding-block: 30px 35px; }
  .lesson-heading h1 { font-size: 34px; line-height: 1.3; }
  .guide-article { padding: 0; }
  .guide-article h2 { font-size: 26px; }
  .guide-article h3 { font-size: 19px; }
  .guide-article p, .guide-article li { font-size: 15px; line-height: 2; }
  .action-box, .check-box { padding: 18px; }
  .action-box p, .check-box p { font-size: 14px; }
  .guide-sources a { font-size: 13px; }
  .journey-stage { padding-block: 28px 20px; }
  .journey-stage h2 { font-size: 28px; line-height: 1.45; }
  .journey-stage > p, .journey-stage li { font-size: 14px; }
  .journey-stage h3 { font-size: 15px; }
  .stage-tools, .stage-verification { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .journey-stage .data-note, .stage-lesson-links a { font-size: 12px; }
  .assembly-control { flex-wrap: wrap; gap: 12px; }
  .assembly-control > div { flex-basis: 100%; align-items: stretch; gap: 12px; }
  .assembly-control > div > span { font-size: 11px; }
  .assembly-control .cta { font-size: 12px; min-height: 42px; }
  .assembly-story nav button { font-size: 12px; background: transparent; }
  .assembly-story nav button.active { background: #cee2e0; }
  .assembly-note > p, .assembly-note ul { font-size: 14px; }
  .jev-architecture, .jev-explanation { padding-block: 25px; }
  .jev-explanation h2 { font-size: 31px; }
  .jev-explanation > p { font-size: 14px; }
  .jev-nodes button { padding: 18px 12px; }
  .jev-nodes button small { font-size: 12px; }
  body[data-page="mission"] .section-top h2 { font-size: 35px; }
  .map-heading { align-items: flex-start; flex-wrap: wrap; gap: 5px 16px; padding: 14px; font-size: 12px; }
  .demo-badge { font-size: 10px; }
  .map-footer { flex-wrap: wrap; gap: 10px 18px; font-size: 10px; padding: 13px; }
  .map-footer > button { font-size: 12px; min-height: 36px; }
  .demo-layout { gap: 24px; }
  body[data-page="mission"] .demo-control { padding: 23px 0; }
  .demo-task { font-size: 25px; }
  body[data-page="mission"] .caption, body[data-page="mission"] .demo-message,
  body[data-page="mission"] .authority-note p { font-size: 13px; }
  .mission-steps { gap: 20px 12px; }
  body[data-page="mission"] .mission-steps b { font-size: 13px; }
  body[data-page="mission"] .mission-steps small { font-size: 11px; }
  .next-links { gap: 12px; }
}
@media (max-width: 440px) {
  .site-header { gap: 8px; }
  .header-lab { font-size: 10px; }
  .header-lab span { margin-left: 2px; }
  .part-grid { grid-template-columns: minmax(0, 1fr); }
  .part-card-image { height: 250px; }
  .part-card h3 { font-size: 18px; }
  .part-card p { font-size: 13px; }
  .journey-nav { grid-template-columns: minmax(0, 1fr); }
  .view-buttons button { min-height: 40px; padding-inline: 9px; }
  .assembly-story nav { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .part-card, .lesson-card, .cta, .button { transition: none; }
}
@media print {
  body { color: #111; background: #fff; }
  .page-intro::after, .lesson-heading::after { content: none; }
  .guide-article p, .guide-article li, .journey-stage p, .journey-stage li { color: #111; }
}
