/* Shared, restrained results and history surfaces. */
.observatory-main, .access-explanation, .code-star-map { --sans: "IBM Plex Sans", var(--cjk); --mono: "IBM Plex Mono", var(--cjk); font-family: var(--sans); }
.observatory-main { padding-top: 48px; padding-bottom: 52px; }
.page-heading { max-width: 820px; margin-bottom: 34px; }
.page-heading h1 { font-family: var(--sans); font-size: clamp(30px,4vw,52px); font-weight: 420; letter-spacing: -.04em; margin: 12px 0 18px; line-height: 1.18; }
.page-intro { color: #a8b7b9; font-size: 16px; line-height: 1.8; }
.quiet, .scope-note, .coverage-note { color: #8eaaac; font-size: 12px; line-height: 1.8; }
.scope-note { margin: 40px 0 0; max-width: 850px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.replay { border-block: 1px solid #b0ceca2b; padding-block: 22px; }
.replay-status { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.replay-status time { font-family: var(--mono); color: #d9e1d5; font-size: 15px; }
.replay-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(220px, 1fr); align-items: center; gap: 36px; }
.replay-world { position: relative; min-width: 0; }
.replay-world svg { width: 100%; height: auto; display: block; }
.replay-key { text-align: center; font-size: 11px; color: #809897; margin: -12px 0 26px; }
.episode-panel { border-left: 1px solid #aecbc22d; padding-left: 25px; transition: opacity 120ms ease; }
.episode-panel.is-fading { opacity: 0; }
.episode-panel h2 { font-size: 22px; font-weight: 430; line-height: 1.45; }
.episode-panel p { font-size: 13px; color: #a1b2b2; line-height: 1.85; }
.episode-panel ol { padding-left: 18px; color: #aebeb9; font-size: 12px; line-height: 1.8; }
.replay-controls { display: flex; align-items: center; gap: 18px; margin: 15px 0; }
.replay-controls button, .paper-controls button { color: #d5e4db; background: #a6d2c90a; border: 1px solid #b0ccc945; padding: 9px 20px; border-radius: 2px; cursor: pointer; }
.replay-controls button:disabled { opacity: .4; cursor: default; }
.replay-speeds { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; color: #a8bcb6; font-size: 12px; }
.replay-speeds > span { margin-right: 8px; }
.replay-speeds button { min-width: 48px; min-height: 36px; border: 1px solid #b0ccc930; border-radius: 3px; color: #b7c9c1; background: transparent; cursor: pointer; font: inherit; }
.replay-speeds button[aria-pressed="true"] { color: #e6eddb; background: #b9d8b61c; border-color: #c5dfba9c; }
.replay-speeds button:disabled { opacity: .4; cursor: default; }
.timeline-label { flex: 1; display: flex; }
.timeline-label input { width: 100%; accent-color: #aed2c0; cursor: pointer; }
.replay-controls output { width: 46px; font: 12px var(--mono); color: #a9beba; text-align: right; }
.replay-counters { display: flex; gap: 34px; flex-wrap: wrap; padding-top: 12px; }
.replay-counters strong { font-size: 22px; font-family: var(--mono); font-weight: 400; margin-right: 10px; color: #d5dfd3; }
.replay-counters span { color: #8fa6a5; font-size: 12px; }
.history-episodes { padding-top: 38px; }
.history-episodes > h2 { font-size: 22px; font-weight: 420; margin-bottom: 18px; }
.episode-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 30px; }
.episode-list button { border: 0; border-top: 1px solid #b2cbbb24; background: transparent; color: #d8e0d5; text-align: left; padding: 19px 0; cursor: pointer; font: inherit; }
.episode-list button:hover { color: #eee8cd; }
.episode-list small { display: block; color: #8aa19f; margin-top: 8px; font: 11px var(--mono); }
.paper-controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.paper-controls input[type="search"] { flex: 1; min-width: 180px; max-width: 440px; border: 0; border-bottom: 1px solid #b9cebd55; background: transparent; padding: 12px 0; color: #dce4d7; font: inherit; border-radius: 0; }
.paper-controls label { font-size: 12px; color: #91aaa7; }
.paper-controls input[type="checkbox"] { accent-color: #aed2c0; margin-right: 7px; }
.paper-contributors summary { cursor: pointer; padding-block: 6px; }
.paper-count { margin-left: auto; font-size: 12px; color: #92aaa5; }
.page-heading .replay-reading { max-width: 900px; font-size: 14px; line-height: 1.9; color: #91a9a5; }
.replay-initial { color: #91a9a5; font-size: 12px; line-height: 1.8; margin-top: 14px; }
.paper-filters { display: grid; gap: 10px; padding: 17px 0; border-block: 1px solid #bfd0ba20; }
.paper-filters fieldset { display: flex; align-items: center; gap: 16px; border: 0; padding: 0; margin: 0; min-width: 0; }
.paper-filters legend { float: left; min-width: 66px; padding: 9px 0; font-size: 12px; color: #93a8a4; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-options button { padding: 7px 12px; min-height: 36px; border: 1px solid transparent; background: transparent; color: #a6b6b0; font: inherit; font-size: 12px; cursor: pointer; }
.filter-options button:hover { color: #e1dfce; border-color: #bcc5a533; }
.filter-options button[aria-pressed="true"] { color: #e2d9b9; background: #c9cba411; border-color: #c9cba459; }
.filter-options button:focus-visible { outline: 1px solid #d3ddc5; outline-offset: 3px; }
.filter-options button:disabled { opacity: .5; cursor: wait; }
.paper-list { list-style: none; padding: 0; margin: 0; }
.paper-section { margin-top: 36px; }
.paper-section + .paper-section { margin-top: 64px; }
.paper-section-title { display: flex; align-items: baseline; gap: 14px; font-family: var(--sans); font-size: 23px; font-weight: 430; letter-spacing: .04em; }
.paper-section-title span { font-family: var(--mono); font-size: 12px; color: #90aaa5; }
.paper-source { font-size: 11px !important; color: #94aaa9 !important; }
.paper-source a { color: inherit; text-underline-offset: 3px; }
.paper-row { border-top: 1px solid #bfd0ba2a; padding: 25px 0; display: grid; grid-template-columns: minmax(0,1fr) 100px; gap: 30px; align-items: center; }
.paper-topic { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #b8b89a; margin-bottom: 9px; }
.paper-row h3 { font-family: var(--sans); font-size: 19px; font-weight: 430; line-height: 1.45; margin: 0 0 10px; }
.paper-row p { color: #99aeb0; font-size: 13px; line-height: 1.8; margin: 8px 0; max-width: 880px; }
.paper-authors { font-size: 11px !important; color: #788f91 !important; }
.paper-access { color: #d6dfcf; font-size: 12px; text-align: right; white-space: nowrap; }
.paper-access:hover { color: #f0deb4; }
.paper-row[hidden] { display: none; }
.access-explanation { max-width: 650px; padding-block: 70px; }
.access-explanation p { color: #a6b7b7; line-height: 1.9; }
/* The sector map is a navigation metaphor, not a live activity display. */
.code-star-map { padding-block: 38px 28px; }
.code-star-map h1 { font: 420 clamp(30px,4vw,52px)/1.2 var(--sans); letter-spacing: -.04em; }
.code-star-map .map-caption { color: #90aaa8; font-size: 13px; line-height: 1.8; }
.sector-map { position: relative; aspect-ratio: 900/500; min-height: 330px; width: 100%; margin: 10px auto; }
.sector-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.galaxy-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.galaxy-ready > svg { display: none; }
.galaxy-ready { background: radial-gradient(ellipse at 52% 49%, #91c1be06, transparent 68%); }
@media (max-width:760px) {
  .observatory-main { padding-top: 30px; }
  .replay-status { flex-direction: column; gap: 7px; }
  .replay-layout { grid-template-columns: 1fr; gap: 20px; }
  .episode-panel { border-left: 0; border-top: 1px solid #aecbc22d; padding: 20px 0 0; }
  .episode-list { grid-template-columns: 1fr; }
  .replay-counters { gap: 12px 22px; }
  .replay-counters strong { font-size: 18px; }
  .paper-row { grid-template-columns: minmax(0,1fr) 72px; gap: 12px; }
  .paper-row h3 { font-size: 16px; }
  .paper-row > div { min-width: 0; overflow-wrap: anywhere; }
  .paper-access { white-space: normal; }
  .paper-count { width: 100%; margin-left: 0; }
  .paper-filters fieldset { gap: 8px; }
  .paper-filters legend { min-width: 58px; font-size: 11px; }
  .filter-options { gap: 2px; }
  .filter-options button { padding: 7px 8px; font-size: 11px; }
  .sector-map { min-height: 360px; }
}
@media (prefers-reduced-motion:reduce) { .episode-panel { transition: none; } }
