:root {
  color-scheme: dark;
  --bg: #060a11; --panel: #0e1622; --ink: #e8edf2; --muted: #a0afc0;
  --line: #26323f; --accent: #e4c99d; --blue: #a6c7df;
  --serif: 'Songti SC', 'STSong', Georgia, serif;
  --sans: 'Avenir Next', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.8 var(--sans); }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--accent); }
button, a, summary { transition: color .18s, background-color .18s, border-color .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
input { accent-color: var(--accent); }
button:disabled { cursor: default; opacity: .4; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
.skip-link { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); background: var(--accent); color: var(--bg); border-radius: 5px; }
.skip-link:focus { position: fixed; top: 10px; left: 20px; z-index: 20; width: auto; height: auto; padding: 8px 16px; clip-path: none; }
.research-network { max-width: 1440px; margin: auto; padding: 8px 40px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: #8797aa; }
.research-network a { display: inline-flex; align-items: center; min-height: 28px; }
.site-header { max-width: 1440px; margin: auto; padding: 15px 40px 20px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 190px; }
.brand-mark { width: 35px; height: 35px; stroke: var(--accent); fill: none; stroke-width: .9; }
.brand-star { fill: var(--accent); stroke: var(--bg); stroke-width: 2px; }
.brand>span { font-size: 20px; line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.brand small { display: block; color: #9aabba; font-size: 10px; letter-spacing: .14em; margin-top: 5px; font-weight: 400; }
.site-header nav { display: flex; align-items: center; gap: 34px; margin-left: auto; font-size: 12px; color: #b1bdcb; }
.site-header nav a { padding: 8px 0; }
.edition { color: #74879d; font-size: 10px; }
main, footer { max-width: 1440px; margin: auto; padding-inline: 40px; }
.intro { padding: 32px 0 35px; display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.intro h1 { font: 400 clamp(28px,3.2vw,44px)/1.4 var(--serif); letter-spacing: .035em; margin: 0 0 12px; }
.intro p { max-width: 58ch; margin: 0; font-size: 13px; color: var(--muted); }
.intro-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.begin-journey { display: flex; align-items: center; gap: 28px; min-height: 44px; padding: 10px 19px; border: 1px solid #5c5547; border-radius: 24px; background: #1b1d20; color: #eddcc3; font-size: 12px; white-space: nowrap; }
.begin-journey:hover { background: #292720; border-color: var(--accent); }
.begin-journey span { font-size: 18px; }
.intro-actions>a { color: #9aabba; font-size: 11px; padding: 2px 7px; }
.explorer { position: relative; overflow: hidden; border: 1px solid #29333f; border-radius: 16px; background: #090f18; --era-color: #d6acdf; --era-progress: 66.66%; }
.epoch-progress { height: 2px; background: #131d29; }
.epoch-progress span { display: block; width: var(--era-progress); height: 100%; background: var(--era-color); opacity: .8; }
.scene-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 23px 28px 0; }
#scene-number { display: inline-block; color: #94a5b6; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.scene-heading h2 { font: 400 clamp(23px,2.4vw,32px)/1.5 var(--serif); letter-spacing: .03em; margin: 3px 0 0; }
#scene-age { display: block; color: var(--era-color); font-size: 11px; margin-top: 2px; }
.scene-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 18px; }
.scene-actions button { background: #101a27; color: #b7c5d5; border: 1px solid #304054; border-radius: 7px; font-size: 11px; padding: 8px 12px; min-height: 36px; }
.scene-actions button:hover, .scene-actions button[aria-pressed=true] { background: #1d2b3d; border-color: #536781; }
.motion-label, .reduce-label { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #a7b9cb; cursor: pointer; min-height: 32px; white-space: nowrap; }
.motion-label input, .reduce-label input { width: 13px; height: 13px; margin: 0; }
.motion-label:has(input:disabled) { opacity: .5; }
.view-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 16px 28px 0; padding-bottom: 13px; }
.view-switch>div { display: flex; gap: 3px; background: #060b13; border: 1px solid #233044; padding: 3px; border-radius: 8px; }
.view-switch button { min-height: 32px; padding: 5px 13px; border: 0; border-radius: 5px; background: none; color: #859ab2; font-size: 11px; }
.view-switch button[aria-pressed=true] { background: #243145; color: #e1e8f1; }
.view-switch>a { font-size: 10px; color: #8da2bb; white-space: nowrap; }
.history-stage { position: relative; overflow: hidden; }
.history-instructions { position: absolute; z-index: 2; left: 28px; right: 28px; top: 13px; display: flex; justify-content: space-between; gap: 20px; color: #8b9fb8; font-size: 10px; pointer-events: none; }
canvas { display: block; width: 100%; touch-action: pan-y; }
#history-view { width: 100%; height: clamp(340px,48vh,520px); cursor: ew-resize; }
#history-view:focus-visible { outline-offset: -5px; }
.history-light-overlay { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; overflow: hidden; z-index: 1; }
.journey-console { background: #0d1521; border-top: 1px solid #202d3f; border-bottom: 1px solid #202d3f; }
.transport { display: grid; grid-template-columns: 32px auto 32px minmax(80px,1fr) auto; align-items: center; gap: 12px; padding: 14px 24px; font-size: 11px; }
.play { min-height: 38px; border: 1px solid #655a45; border-radius: 7px; background: #dccaab; color: #18202b; padding: 7px 16px; white-space: nowrap; }
.play:hover { background: #f0dfc1; }
.era-step { width: 32px; min-width: 32px; height: 38px; border: 1px solid #304054; border-radius: 6px; background: transparent; color: #a9bed3; font-size: 16px; }
.era-step:hover { background: #1e2c3f; border-color: #63809c; }
.transport>label[for=time] { display: none; }
.transport #time { flex: 1; min-width: 60px; height: 24px; cursor: pointer; }
#counter { font-size: 10px; color: #a3b3c7; white-space: nowrap; font-variant-numeric: tabular-nums; }
.speed-label { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #93a8c1; }
.speed-label select { padding: 5px 8px; border: 1px solid #31445c; border-radius: 5px; background: #101b2b; color: #b6c8df; font-size: 10px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; padding: 0 24px 12px; }
.timeline button { text-align: left; border: 0; border-top: 1px solid #2b3a4d; border-radius: 0 0 6px 6px; color: #8fa2b9; background: none; padding: 10px 9px 7px; min-height: 58px; font-size: 11px; }
.timeline button:hover { color: #d6e3f1; background: #172337; }
.timeline button.active { border-color: var(--era-color); color: #e0e8f4; background: #1c293b; }
.timeline small { display: block; margin-top: 2px; font-size: 9px; color: #8197b0; }
#timeline[data-scope=early], #timeline[data-scope=late] { grid-template-columns: repeat(4,minmax(0,1fr)); }
.history-context { padding: 22px 28px 20px; }
.evolution-navigation { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: #d0dae5; }
.evolution-navigation span:last-child { color: #7f95ae; font-size: 10px; }
.evolution-sequence { position: relative; display: flex; gap: 5px; overflow-x: auto; overscroll-behavior-x: contain; padding: 13px 0 16px; scrollbar-width: thin; scrollbar-color: #3b536e transparent; }
.evolution-sequence button { flex: 1 0 83px; border: 1px solid transparent; border-radius: 7px; min-height: 56px; padding: 7px 9px; font-size: 11px; text-align: left; line-height: 1.6; color: #93a9c0; background: none; }
.evolution-sequence button span { display: block; color: #607b98; font-size: 9px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.evolution-sequence button:hover { color: #e4cfad; background: #132033; }
.evolution-sequence button[aria-pressed=true] { background: #26272a; color: #eed6af; border-color: #605643; }
.evolution-sequence button[aria-pressed=true] span { color: #b5a082; }
.evolution-reading { display: grid; grid-template-columns: minmax(190px,.8fr) 2fr; gap: 38px; padding: 22px 0 19px; border-top: 1px solid #273345; }
.evolution-reading>div>span { font-size: 10px; color: #ae9878; }
.evolution-reading h3 { font: 400 25px/1.5 var(--serif); margin: 6px 0 7px; color: #e0e3e7; }
.evolution-reading p { max-width: 66ch; font-size: 13px; line-height: 1.9; color: #b7c5d5; margin: 0 0 9px; }
#evolution-age { color: #8ba1ba; font-size: 11px; }
#evolution-visual { color: #8ea7c1; font-size: 12px; }
.evolution-reading a { display: inline-block; font-size: 11px; color: #b7d1e6; padding: 4px 0; }
.field-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 18px; }
.field-controls button { min-height: 36px; padding: 7px 13px; border: 1px solid #455368; border-radius: 6px; background: transparent; color: #c7d8e9; font-size: 11px; }
.field-controls button:hover, .field-controls button[aria-expanded=true] { background: #1b2e43; border-color: #7594b5; }
.field-controls>span { font-size: 10px; color: #7d93ac; }
.history-layers { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-top: 12px; border-top: 1px solid #233044; font-size: 11px; color: #a5b9d0; }
.history-layers label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 32px; }
.history-layers input { margin: 0; }
.history-layers>span { margin-left: auto; font-size: 10px; color: #788fa8; }
.growth-readout { font-size: 11px; line-height: 1.9; margin: 10px 0 0; color: #a9bcd0; }
.history-footnote { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 13px; }
.history-footnote p { color: #788fa8; font-size: 10px; line-height: 1.9; max-width: 82ch; margin: 0; }
.history-footnote button { min-height: 36px; flex-shrink: 0; border: 1px solid #35475f; background: #101d2e; border-radius: 6px; padding: 8px 13px; color: #bcd0e5; font-size: 11px; }
.galaxy-inspector { border-top: 1px solid #263448; margin-top: 22px; }
.galaxy-inspector summary { display: flex; align-items: center; gap: 15px; list-style: none; color: #b4c9df; min-height: 48px; padding-top: 9px; cursor: pointer; font-size: 12px; }
.galaxy-inspector summary::-webkit-details-marker { display: none; }
.galaxy-inspector summary:before { content: '+'; color: #8099b7; font-size: 20px; }
.galaxy-inspector[open] summary:before { content: '−'; }
.galaxy-inspector summary span { margin-left: auto; font-size: 10px; color: #728da9; }
.galaxy-inspector-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 15px 0 8px; }
.galaxy-inspector figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #283d54; border-radius: 9px; background: #050b15; }
#galaxy-detail { width: 100%; height: 240px; cursor: default; touch-action: auto; }
.galaxy-inspector figcaption { padding: 6px 14px 11px; color: #7d96af; font-size: 10px; text-align: right; }
.galaxy-inspector h3 { font: 400 23px/1.5 var(--serif); margin: 0 0 10px; }
.galaxy-inspector p { font-size: 12px; color: #a3b8cf; line-height: 1.9; max-width: 54ch; margin-bottom: 10px; }
.galaxy-key { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; color: #b5c6d9; font-size: 10px; }
.galaxy-key span { display: flex; align-items: center; gap: 6px; }
.galaxy-key i, .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.key-core, .light { background: #eac99d; } .key-arms, .matter { background: #9cbfee; } .key-halo { background: #c9ac86; }
.galaxy-inspector p.galaxy-boundary { font-size: 10px; color: #7c95af; }
.region-info { padding: 22px 0; border-block: 1px solid #304761; margin-bottom: 20px; }
.region-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 20px; }
.region-heading span { color: #8facc8; font-size: 11px; }
.region-heading h3 { font: 400 26px/1.5 var(--serif); margin: 5px 0 0; }
.region-heading>button { width: 36px; height: 36px; border: 1px solid #3b536d; background: transparent; border-radius: 50%; color: #abc2d9; font-size: 22px; }
.region-reading { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 26px; }
.region-reading h4 { margin: 0 0 8px; color: #d0dfea; font-size: 12px; font-weight: 500; }
.region-reading p { max-width: 48ch; color: #a4b8cc; font-size: 12px; line-height: 1.9; margin: 0; }
.region-sources { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; color: #b3d0e5; font-size: 11px; }
.region-boundary { color: #829bb3; font-size: 10px; margin: 14px 0 0; }
.stage-link { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 10px 28px; background: #0d1623; font-size: 10px; color: #7f97b1; }
.stage-link button { min-height: 32px; padding: 3px 0; margin-left: auto; color: #b9cfe4; background: none; border: 0; font-size: 11px; }
#copy-status { color: var(--accent); }
#share-fallback { width: 100%; min-width: 0; background: #101d30; color: #c4d7e9; border: 1px solid #344b68; padding: 8px; }
/* The rotating near view retains the same controls and reading access. */
.volume { position: relative; overflow: hidden; }
#epoch-view { height: clamp(300px,48vh,520px); cursor: grab; }
#epoch-view.dragging { cursor: grabbing; }
.scene-note { position: absolute; top: 13px; left: 28px; max-width: 65%; color: #7c92ab; font-size: 10px; pointer-events: none; }
.scene-watermark { position: absolute; top: 52%; left: 50%; transform: translate(-50%,-50%); font-size: clamp(40px,8vw,110px); font-weight: 200; color: #d4e6ff06; white-space: nowrap; pointer-events: none; }
.scene-legend { position: absolute; left: 28px; bottom: 12px; display: flex; align-items: center; gap: 18px; font-size: 11px; color: #b9cce0; }
.scene-legend span, .scene-legend label { display: flex; align-items: center; gap: 6px; }
.scene-legend input { margin: 0; }
.rotate-hint { position: absolute; bottom: 12px; right: 28px; font-size: 10px; color: #8098b2; }
.scene-caption { padding: 10px 28px 18px; font-size: 12px; color: #a6bbd2; max-width: 80ch; }
.scene-caption:empty { display: none; }
.annotation-toggle { position: absolute; z-index: 3; top: 10px; right: 24px; display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; background: #070e19ba; color: #a7bbd4; font-size: 10px; cursor: pointer; }
.annotation-toggle input { margin: 0; }
.scene-markers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.scene-marker { position: absolute; display: flex; align-items: center; gap: 8px; min-height: 32px; min-width: 32px; padding: 0; transform: translate(-16px,-16px); border: 0; background: none; font-size: 10px; white-space: nowrap; pointer-events: auto; color: #dce9f7; }
.scene-marker i { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #7899b4; border-radius: 50%; background: #0a1623db; font: 10px var(--sans); }
.scene-marker span { background: #071321d0; border: 1px solid #39516a; border-radius: 4px; padding: 4px 8px; pointer-events: none; }
.scene-marker.label-left { flex-direction: row-reverse; transform: translate(calc(-100% + 16px),-16px); }
.scene-marker:hover i, .scene-marker.selected i { background: #25435b; border-color: var(--era-color); }
.annotation-dock { padding: 0 28px 20px; }
.annotation-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.annotation-chips button { padding: 8px 12px; border: 1px solid #2d435e; border-radius: 6px; background: #101c2d; color: #afc7df; font-size: 11px; }
.annotation-chips button[aria-expanded=true] { border-color: var(--era-color); color: var(--era-color); }
.annotation-panel { display: flex; gap: 18px; padding: 16px 18px; margin-top: 12px; background: #111f32; border-radius: 8px; }
.annotation-panel h3 { font-size: 15px; margin-bottom: 8px; }
.annotation-panel p { font-size: 12px; max-width: 75ch; color: #a8c0d8; margin: 0; }
.annotation-panel>button { margin-left: auto; width: 32px; min-width: 32px; height: 32px; font-size: 24px; border: 0; background: none; color: #9bb1c9; }
/* Reading continues outside the instrument. */
.detail { display: grid; grid-template-columns: minmax(210px,.8fr) 2fr; column-gap: 70px; row-gap: 32px; padding: 60px 0 48px; }
.section-heading { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 30px; }
.section-heading h2, .connections h2, .references h2 { font: 400 29px/1.5 var(--serif); margin: 0; }
.section-heading p { color: #8da0b6; font-size: 12px; margin: 0; }
.eyebrow { color: #9bafc4; font-size: 11px; margin-bottom: 10px; }
#era-title { font: 400 28px/1.5 var(--serif); margin: 7px 0 13px; }
.era-age { color: var(--accent); font-size: 17px; margin-bottom: 10px; }
.redshift { font-size: 11px; color: #849bb4; max-width: 32ch; }
.tabs { display: flex; gap: 25px; border-bottom: 1px solid #2b3a4b; margin-bottom: 24px; }
.tabs button { min-height: 40px; border: 0; border-bottom: 2px solid transparent; padding: 0 0 12px; color: #8da3ba; background: none; font-size: 12px; }
.tabs button[aria-selected=true] { color: #e5dccb; border-color: var(--accent); }
#panel { color: #c0cddb; font-size: 15px; line-height: 2; max-width: 74ch; }
#panel p { margin-bottom: 12px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: #a7c4db; font-size: 11px; margin-bottom: 12px; }
.status:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #a7c4db; }
.note { color: #8d9fb5; font-size: 11px; line-height: 1.9; max-width: 95ch; margin: 17px 0 0; }
.sources { display: flex; gap: 18px; flex-wrap: wrap; color: #a6c5df; font-size: 11px; margin-top: 20px; }
.questions { display: grid; gap: 15px; }
.question { display: grid; grid-template-columns: minmax(135px,.7fr) 2fr; gap: 22px; border-bottom: 1px solid #263546; padding-bottom: 13px; font-size: 12px; }
.question strong { color: #d9e2ec; font-weight: 500; }
.question span { color: #97adc4; }
.connections { padding: 38px 0 42px; border-top: 1px solid #273345; }
.chain { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 26px; }
.chain button { flex: 1; min-height: 83px; padding: 16px 12px; text-align: left; border: 0; border-bottom: 1px solid #36465b; border-radius: 0; color: #d2dce7; background: none; font-size: 14px; }
.chain button:hover { background: #101b2a; border-color: var(--accent); }
.chain small { display: block; color: #8da5bf; font-size: 11px; margin-top: 4px; }
.chain>span { color: #7c8c9f; }
.methods { padding: 20px 0; border-block: 1px solid #273345; color: #a8bcd2; }
summary { cursor: pointer; }
.methods summary { font-size: 12px; }
.methods .questions { padding-top: 24px; }
.references { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; padding: 50px 0 58px; }
.references h2 { font-size: 27px; margin: 7px 0 17px; }
.references p { font-size: 11px; color: #8398b0; line-height: 2; max-width: 53ch; }
.references>div:last-child { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; align-content: start; }
.references a { font-size: 11px; line-height: 1.9; color: #a0b6cc; padding: 9px 0; }
.references a:hover { color: var(--accent); }
.references>div:last-child>a:first-child { grid-column: 1 / -1; }
.reference-credit { grid-column: 1 / -1; margin: 0 0 12px; font-size: 10px !important; max-width: none !important; }
footer { border-top: 1px solid #233044; padding-top: 23px; padding-bottom: 24px; display: flex; align-items: center; gap: 23px; color: #7f94ab; font-size: 10px; }
.footer-brand { font-size: 15px; color: #becbd8; }
footer>span:nth-of-type(2) { margin-left: auto; }
/* Scroll mode is opt-in; its controls fit around the active scene. */
#journey.scroll-active>.explorer { position: sticky; top: 8px; }
#journey.scroll-active .intro, #journey.scroll-active .view-switch, #journey.scroll-active .history-instructions,
#journey.scroll-active .history-context, #journey.scroll-active .annotation-dock, #journey.scroll-active .stage-link { display: none; }
#journey.scroll-active #history-view, #journey.scroll-active #epoch-view { height: var(--pinned-scene-height,180px); }
#journey.scroll-active .scene-heading { padding-top: 12px; padding-bottom: 12px; }
#journey.scroll-active .scene-heading h2 { font-size: 24px; }
#journey.scroll-active .scene-caption { padding-block: 5px; }
@media (max-width: 1050px) {
  .site-header, main, footer { padding-inline: 28px; }
  .research-network { padding-inline: 28px; }
  .edition { display: none; }
  .intro h1 { font-size: 34px; }
  .scene-actions { gap: 5px 12px; max-width: 300px; }
  .detail, .references { column-gap: 40px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 12px; }
  .research-network { padding: 7px 18px 0; }
  .research-network span { display: none; }
  .site-header { padding: 12px 18px 15px; gap: 20px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 28px; height: 28px; }
  .brand>span { font-size: 16px; }
  .brand small { font-size: 8px; }
  .site-header nav { gap: 16px; font-size: 10px; }
  .site-header nav a { white-space: nowrap; }
  .site-header nav a { display: flex; align-items: center; min-height: 36px; }
  main, footer { padding-inline: 16px; }
  .intro { display: block; padding: 21px 0 25px; }
  .intro h1 { font-size: clamp(25px,6.4vw,36px); letter-spacing: .015em; margin-bottom: 10px; }
  .intro p { font-size: 12px; max-width: 38ch; line-height: 1.9; }
  .intro-actions { flex-direction: row; align-items: center; gap: 19px; margin-top: 20px; }
  .begin-journey { font-size: 11px; min-height: 40px; gap: 22px; padding: 8px 15px; }
  .intro-actions>a { font-size: 10px; }
  .explorer { border-radius: 11px; }
  .scene-heading { padding: 16px 15px 0; display: block; }
  #scene-number { font-size: 9px; }
  .scene-heading h2 { font-size: 25px; margin-top: 2px; }
  #scene-age { font-size: 10px; }
  .scene-actions { max-width: none; justify-content: flex-start; flex-wrap: nowrap; gap: 12px; margin-top: 12px; }
  .scene-actions button { font-size: 10px; min-height: 32px; padding: 5px 8px; }
  .motion-label, .reduce-label { font-size: 9px; gap: 4px; }
  .view-switch { margin: 13px 15px 0; padding-bottom: 10px; gap: 8px; }
  .view-switch button { font-size: 10px; padding: 4px 9px; min-height: 30px; }
  .view-switch>a { font-size: 8px; }
  .history-instructions { left: 15px; right: 15px; top: 11px; font-size: 8px; }
  .history-instructions span:last-child { display: none; }
  #history-view { height: 300px; }
  .transport { display: grid; grid-template-columns: 28px auto 28px 1fr auto; gap: 8px; padding: 12px 13px; }
  .era-step { width: 28px; min-width: 28px; height: 36px; }
  .play { font-size: 10px; padding: 7px 11px; min-height: 36px; }
  .transport>label[for=time] { display: none; }
  .transport #time { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; }
  #counter { grid-column: 4 / 6; grid-row: 1; font-size: 9px; justify-self: end; }
  .speed-label { grid-column: 4 / 6; justify-self: end; gap: 5px; font-size: 9px; }
  .speed-label select { padding: 5px; font-size: 9px; }
  .timeline, #timeline[data-scope=early], #timeline[data-scope=late] { display: flex; overflow-x: auto; overscroll-behavior-x: contain; gap: 5px; padding: 0 13px 12px; scrollbar-width: thin; scrollbar-color: #3b536e transparent; }
  .timeline button { flex: 0 0 91px; padding: 9px 7px 6px; min-height: 53px; font-size: 10px; }
  .timeline small { font-size: 8px; }
  .history-context { padding: 21px 15px 14px; }
  .evolution-navigation { font-size: 11px; gap: 12px; }
  .evolution-navigation span:last-child { font-size: 9px; }
  .evolution-sequence { padding: 12px 0 14px; gap: 4px; }
  .evolution-sequence button { flex-basis: 82px; font-size: 10px; min-height: 54px; }
  .evolution-reading { grid-template-columns: 1fr; gap: 13px; padding: 20px 0 14px; }
  .evolution-reading h3 { font-size: 24px; margin: 5px 0; }
  .evolution-reading p { font-size: 12px; line-height: 1.95; }
  #evolution-age { font-size: 10px; }
  #evolution-visual { font-size: 11px; }
  .evolution-reading a { font-size: 10px; }
  .field-controls { padding-bottom: 17px; }
  .field-controls>span { display: none; }
  .history-layers { gap: 4px 13px; font-size: 10px; }
  .history-layers>span { width: 100%; margin-left: 0; font-size: 9px; }
  .growth-readout { font-size: 10px; }
  .history-footnote { flex-direction: column; align-items: flex-start; gap: 13px; }
  .history-footnote p { font-size: 9px; }
  .history-footnote button { font-size: 10px; }
  .galaxy-inspector-body { grid-template-columns: 1fr; gap: 20px; }
  #galaxy-detail { height: 210px; }
  .galaxy-inspector h3 { font-size: 22px; }
  .galaxy-inspector p { font-size: 11px; }
  .galaxy-key { gap: 7px 12px; font-size: 9px; }
  .galaxy-inspector p.galaxy-boundary { font-size: 9px; }
  .region-reading { grid-template-columns: 1fr; gap: 20px; }
  .region-heading h3 { font-size: 23px; }
  .region-reading p { font-size: 12px; max-width: none; }
  .region-sources { font-size: 10px; }
  .stage-link { padding: 8px 15px; gap: 4px 10px; font-size: 9px; }
  .stage-link>span:first-child { flex-basis: 100%; }
  .stage-link button { font-size: 10px; margin-left: 0; }
  #epoch-view { height: 300px; }
  .scene-note { left: 15px; top: 12px; font-size: 8px; max-width: 61%; }
  .scene-watermark { font-size: 38px; }
  .scene-legend { left: 15px; bottom: 22px; gap: 9px; font-size: 10px; }
  .rotate-hint { bottom: 5px; left: 15px; right: auto; font-size: 9px; }
  .scene-caption { padding: 10px 15px 16px; font-size: 11px; }
  .annotation-toggle { right: 13px; top: 8px; font-size: 9px; }
  .scene-marker span { display: none; }
  .scene-marker.label-left { transform: translate(-16px,-16px); }
  .annotation-dock { padding: 0 13px 16px; }
  .annotation-chips { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .annotation-chips button { padding: 8px 4px; min-height: 42px; font-size: 10px; }
  .annotation-panel { padding: 12px; gap: 10px; }
  .annotation-panel p { font-size: 11px; }
  .detail { grid-template-columns: 1fr; padding: 38px 0 35px; gap: 23px; }
  .section-heading h2, .connections h2, .references h2 { font-size: 25px; }
  .section-heading p { font-size: 11px; max-width: 34ch; }
  .detail aside { padding-bottom: 19px; border-bottom: 1px solid #243449; }
  #era-title { font-size: 25px; margin: 4px 0 9px; }
  .era-age { font-size: 15px; margin-bottom: 4px; }
  .redshift { font-size: 10px; max-width: none; margin: 0; }
  .tabs { gap: 22px; margin-bottom: 20px; }
  .tabs button { font-size: 11px; }
  #panel { font-size: 14px; line-height: 2; }
  .question { grid-template-columns: 1fr; gap: 6px; font-size: 12px; }
  .connections { padding: 30px 0; }
  .chain { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 18px; }
  .chain>span { display: none; }
  .chain button { min-height: 83px; font-size: 13px; padding: 13px 3px; }
  .chain small { font-size: 10px; }
  .note { font-size: 10px; }
  .methods summary { font-size: 11px; }
  .references { grid-template-columns: 1fr; gap: 20px; padding: 35px 0; }
  .references h2 { margin-bottom: 12px; }
  .references p { font-size: 11px; max-width: none; }
  .references>div:last-child { grid-template-columns: 1fr; gap: 0; }
  .references a { font-size: 11px; padding: 7px 0; }
  footer { flex-wrap: wrap; gap: 7px 14px; padding-top: 18px; padding-bottom: 20px; }
  footer>span:nth-of-type(2) { flex-basis: 100%; margin-left: 0; }
  footer>a:last-child { margin-left: auto; }
  #journey.scroll-active>.explorer { top: 4px; }
  #journey.scroll-active .scene-heading { padding: 9px 13px; }
  #journey.scroll-active .scene-heading h2 { font-size: 21px; }
  #journey.scroll-active .scene-actions { margin-top: 6px; }
  #journey.scroll-active .timeline { padding-bottom: 8px; }
  #journey.scroll-active .transport { padding-block: 8px; }
}
@media (max-width: 359px) {
  .scene-actions { gap: 8px; flex-wrap: wrap; }
  .site-header { gap: 10px; }
  .site-header nav { gap: 8px; font-size: 9px; }
  .brand>span { font-size: 15px; }
  .brand-mark { width: 26px; height: 26px; }
  .intro h1 { font-size: 24px; }
  .view-switch>a { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
  #journey.scroll-active { height: auto !important; }
  #journey.scroll-active>.explorer { position: static; }
}

/* Secondary information is opt-in; the primary view is the panorama and time. */
.scene-settings { position: relative; flex-shrink: 0; }
.scene-settings>summary { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 5px 10px; border: 1px solid #304054; border-radius: 6px; color: #a9bed3; font-size: 11px; list-style: none; }
.scene-settings>summary::-webkit-details-marker { display: none; }
.scene-settings>summary:after { content: '⌄'; color: #8298b1; }
.scene-settings[open]>summary { color: var(--accent); border-color: #756449; }
.settings-panel { max-height: min(380px,70svh); overflow-y: auto; overscroll-behavior: contain; position: absolute; z-index: 8; top: calc(100% + 9px); right: 0; width: 238px; padding: 15px; background: #121d2c; border: 1px solid #35485e; border-radius: 9px; box-shadow: 0 12px 35px #0007; }
.settings-panel .scene-actions { display: flex; flex-direction: column; align-items: stretch; gap: 7px; margin: 0; max-width: none; }
.settings-panel .scene-actions label { min-height: 32px; }
.settings-panel .scene-actions button { width: 100%; }
.settings-panel .history-layers { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 12px; font-size: 11px; }
.settings-panel .history-layers>span { width: auto; margin-left: 0; padding-block: 7px; font-size: 9px; }
.settings-panel .speed-label { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid #2e4057; margin-top: 10px; }
#explore[data-view=detail] .settings-panel .history-layers { display: none; }
.history-context { padding-top: 15px; padding-bottom: 8px; }
.stage-brief { display: flex; align-items: baseline; gap: 20px; padding: 0 0 14px; }
.stage-brief>span { color: #d8c5a7; font-size: 12px; white-space: nowrap; }
.stage-brief>p { color: #a8b9cc; font-size: 12px; line-height: 1.9; max-width: 82ch; margin: 0; }
.content-fold>summary, .page-fold>summary { display: flex; align-items: center; gap: 14px; min-height: 46px; color: #a0b5cd; font-size: 12px; list-style: none; }
.content-fold>summary::-webkit-details-marker, .page-fold>summary::-webkit-details-marker { display: none; }
.content-fold>summary:before, .page-fold>summary:before { content: '+'; font-size: 18px; font-weight: 300; color: #899fb8; }
.content-fold[open]>summary:before, .page-fold[open]>summary:before { content: '−'; }
.content-fold>summary small, .page-fold>summary small { color: #738ba5; font-size: 10px; margin-left: auto; }
.content-fold { border-top: 1px solid #253247; }
.fold-body { padding: 13px 0 8px; }
.page-fold { margin: 24px 0 30px; border-block: 1px solid #28374b; }
.page-fold>summary { min-height: 58px; }
.library-body .detail { padding-top: 25px; }
.history-instructions>span:first-child { display: none; }
.history-instructions { justify-content: flex-end; }
@media(max-width:700px){
 .scene-heading { display: flex; align-items: flex-start; gap: 12px; }
 .scene-heading>div:first-child { min-width: 0; }
 .scene-heading h2 { font-size: 23px; }
 .scene-settings { margin-top: 6px; }
 .scene-settings>summary { font-size: 10px; padding: 5px 8px; }
 .settings-panel { width: 226px; max-height: 42svh; }
 .settings-panel .history-layers { font-size: 10px; }
 .stage-brief { display: block; padding-bottom: 12px; }
 .stage-brief>span { font-size: 11px; }
 .stage-brief>p { font-size: 11px; margin-top: 4px; }
 .history-context { padding-top: 14px; padding-bottom: 6px; }
 .content-fold>summary, .page-fold>summary { font-size: 11px; gap: 10px; }
 .content-fold>summary small, .page-fold>summary small { font-size: 9px; }
 .page-fold { margin: 20px 0 24px; }
 .page-fold>summary { min-height: 54px; }
}

#explore[data-view=detail] #history-overview { display: none; }
.view-switch #history-overview { color: var(--accent); }
/* The close-up shares the long scroll's granular morphology and quiet chrome. */
#epoch-view { height: clamp(320px,52vh,560px); }
.scene-watermark { display: none; }
.near-reading { padding: 8px 28px 0; }
.near-phase { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.near-phase>div:first-child { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
#near-step { color: #8197af; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#near-title { margin: 0; font: 400 19px/1.5 var(--serif); color: #d2dfed; }
.near-step-controls { display: flex; align-items: center; gap: 12px; }
.near-step-controls button { width: 34px; min-height: 34px; padding: 0; border: 1px solid #2b3e55; border-radius: 50%; background: transparent; color: #c8d9e9; }
.near-step-controls button:hover { border-color: #7899b4; background: #122239; }
.near-step-controls button:disabled { opacity: .3; cursor: default; }
#near-age { font-size: 10px; color: #8298af; max-width: 30ch; text-align: center; }
.near-sequence { display: flex; gap: 6px; margin: 8px 0 4px; }
.near-sequence button { flex: 1; min-width: 0; height: 24px; padding: 10px 0; border: 0; background: transparent; position: relative; }
.near-sequence button::before { content: ''; display: block; height: 3px; background: #26364c; border-radius: 2px; transition: background .3s; }
.near-sequence button.visited::before { background: #637e9f; }
.near-sequence button[aria-pressed=true]::before { background: #dec5a2; height: 4px; }
.near-sequence button:hover::before { background: #abc3dd; }
.near-reading .scene-caption { padding: 0 0 13px; margin: 0; font-size: 12px; line-height: 1.8; max-width: 84ch; }
.annotation-dock>summary { cursor: pointer; color: #8fa6bf; font-size: 11px; padding: 4px 0; width: fit-content; }
.near-science { max-width: 78ch; margin: 12px 0 18px; }
.near-science p { color: #b7c8db; font-size: 12px; line-height: 1.9; margin: 0 0 8px; }
.near-science a { color: #819fbd; font-size: 11px; text-underline-offset: 4px; }
#explore[data-view=detail] #timeline { display: none; }
#explore[data-view=detail] .journey-console { border-top: 1px solid #253348; }
#explore[data-view=detail] .annotation-dock { margin: 0; padding-bottom: 13px; }
@media(max-width:600px) {
 #epoch-view { height: 340px; }
 .near-reading { padding: 6px 15px 0; }
 .near-phase { align-items: flex-start; gap: 8px; }
 .near-phase>div:first-child { gap: 8px; flex-wrap: wrap; }
 #near-title { font-size: 16px; }
 .near-step-controls { gap: 6px; flex-shrink: 0; }
 #near-age { display: none; }
 .near-step-controls button { width: 30px; min-height: 30px; }
 .near-sequence { gap: 4px; margin-top: 4px; }
 .near-reading .scene-caption { font-size: 11px; padding-bottom: 10px; }
 .scene-note { max-width: 58%; font-size: 9px; }
 .scene-legend { gap: 12px; bottom: 25px; }
}
@media(prefers-reduced-motion:reduce) { .near-sequence button::before { transition: none; } }

#explore[data-view=detail] #previous-era, #explore[data-view=detail] #next-era { display: none; }
#explore[data-view=detail] .transport { grid-template-columns: auto minmax(80px,1fr) auto; }
#explore[data-view=detail] #play { grid-column: 1; grid-row: 1; justify-self: start; }
#explore[data-view=detail] #time { grid-column: 2; grid-row: 1; }
#explore[data-view=detail] #counter { grid-column: 3; grid-row: 1; }
@media(max-width:600px) {
 #explore[data-view=detail] .transport { grid-template-columns: 1fr auto; }
 #explore[data-view=detail] #time { grid-column: 1 / -1; grid-row: 2; }
 #explore[data-view=detail] #counter { grid-column: 2; grid-row: 1; }
}

.research-network { align-items:center; flex-wrap:wrap; }
.research-network a { min-height:44px; }
@media(max-width:700px) { .research-network { gap:8px 16px; } }
