/* WANDERERS explorer modes: chooser, header switcher and the homepage's adaptive sections.
 * Built on brand.css tokens, so Day and Night themes both work. Sky images stay on the dark viewer colour. */

/* ---------- what each mode shows ---------- */
.playful-only, .research-only { display: none; }
.kids-only, .teens-only { display: none; }
html[data-mode="kids"] .playful-only, html[data-mode="teens"] .playful-only { display: block; }
html[data-mode="kids"] .kids-only, html[data-mode="teens"] .teens-only { display: inline; }
html[data-mode="research"] .research-only { display: block; }
html[data-mode="kids"]:not(.show-science) .sci, html[data-mode="teens"]:not(.show-science) .sci { display: none; }
html { --play: var(--accent); --play-2: var(--accent-2); }
html[data-mode="kids"] { --play: #E8A23A; --play-2: var(--accent); }
:root[data-theme="dark"][data-mode="kids"] { --play: #F2B866; }
html.mode-anim main { animation: modeIn .36s ease both; }
@keyframes modeIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- header switcher ---------- */
.mode-switch { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; font: 500 .84rem/1 var(--f-ui); }
.mode-switch:hover { border-color: var(--accent); }
.mode-switch .ms-icon svg { width: 20px; height: 20px; display: block; }
@media (max-width: 820px) { .mode-switch .ms-label { display: none; } .mode-switch { padding: 0 7px; } }

/* shared icon strokes */
.ic-a, .ic-l, .ic-s { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ic-a { stroke: var(--text); stroke-width: 2.4; }
.ic-l { stroke: var(--text); stroke-width: 2.4; }
.ic-s { stroke: var(--accent); stroke-width: 2.2; }
.ic-b { fill: var(--accent); }

/* ---------- chooser ---------- */
.chooser { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(760px, calc(100vw - 24px)); width: 100%; }
.chooser::backdrop { background: rgba(5, 11, 20, .62); backdrop-filter: blur(6px); }
.ch-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 28px 20px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .ch-inner { background: #0D1726; }
.ch-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text); }
.ch-brand svg { width: 30px; height: 30px; }
.ch-brand .ink { stroke: var(--text); fill: none; } .ch-brand .acc, .ch-brand .ring { stroke: var(--accent); fill: none; } .ch-brand .dot { fill: var(--accent); } .ch-brand .ink-dot { fill: var(--text); }
.ch-title { font: 800 clamp(1.35rem, 3.4vw, 1.9rem)/1.2 var(--f-display); text-align: center; margin: 18px 0 8px; letter-spacing: -.01em; }
.ch-sub { text-align: center; color: var(--muted); margin: 0 0 20px; }
.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ch-card { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 20px 16px 16px; border-radius: 16px;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--text); cursor: pointer; font: inherit; transition: border-color .2s, background-color .2s, transform .2s; }
.ch-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.ch-card[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.ch-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ch-icon svg { width: 40px; height: 40px; display: block; }
.ch-card[data-mode="kids"] .ic-a { stroke: #E8A23A; } :root[data-theme="dark"] .ch-card[data-mode="kids"] .ic-a { stroke: #F2B866; }
.ch-name { font: 700 1.12rem/1.2 var(--f-display); margin-top: 4px; }
.ch-tag { font: 500 .78rem/1.3 var(--f-mono); color: var(--muted); letter-spacing: .02em; }
.ch-blurb { font-size: .86rem; color: var(--muted); max-width: 30ch; margin-top: 2px; }
.ch-preview { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.ch-preview span { font: 500 .7rem/1 var(--f-mono); padding: 5px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.ch-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: 0; transition: opacity .2s; }
.ch-check path { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-card[aria-checked="true"] .ch-check { opacity: 1; }
.ch-go { width: 100%; margin-top: 16px; padding: 16px; border-radius: 999px; border: 0; cursor: pointer; font: 600 1.05rem/1 var(--f-ui);
  background: var(--text); color: var(--bg); transition: transform .15s; }
.ch-go:hover { transform: translateY(-1px); }
.ch-note { text-align: center; color: var(--muted); font-size: .78rem; margin: 12px auto 0; max-width: 52ch; }
@media (max-width: 560px) {
  .ch-inner { padding: 20px 14px 14px; border-radius: 18px; }
  .ch-grid { gap: 8px; }
  .ch-card { padding: 14px 8px 12px; }
  .ch-blurb, .ch-preview { display: none; }
  .ch-icon svg { width: 34px; height: 34px; }
}

/* ---------- Discover (Kids, Students) ---------- */
.discover { max-width: var(--maxw); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 24px; }
.dc-title { font: 800 clamp(2.2rem, 6vw, 4.6rem)/.98 var(--f-display); letter-spacing: -.035em; margin: 12px 0 14px; }
html[data-mode="kids"] .dc-title { letter-spacing: -.02em; }
.dc-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; margin: 0 0 28px; }
.dc-loading { color: var(--muted); }

.story-deck { position: relative; outline: none; }
.story-deck:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 22px; }
.st-bars { display: flex; gap: 6px; margin-bottom: 12px; }
.st-bars span { flex: 1; height: 4px; border-radius: 4px; background: var(--line-strong); }
.st-bars span.done { background: var(--play); }
.st-bars span.on { background: var(--play); animation: barOn .5s ease both; }
@keyframes barOn { from { opacity: .3; } }
.st-card { display: grid; grid-template-columns: minmax(0, min(46%, 500px)) minmax(0, 1fr); align-items: stretch; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
/* the real image stays square, so the measured-position rings land exactly on the star */
.st-sky { position: relative; background: var(--viewer); cursor: pointer; aspect-ratio: 1; align-self: start; width: 100%; }
.st-sky img, .ms-sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.st-marks, .ms-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.st-marks line, .ms-marks line { stroke: #F2B866; stroke-width: .7; stroke-dasharray: 2 1.6; }
.st-marks circle, .ms-marks circle { fill: none; stroke: #F2B866; stroke-width: .9; }
.st-marks .then, .ms-marks .then { stroke-dasharray: 2 1.6; }
.ms-marks .tap { fill: #8AB6EF; stroke: none; }
.st-stamp { position: absolute; left: 14px; top: 14px; font: 500 .74rem/1 var(--f-mono); color: var(--viewer-ink); background: rgba(5, 11, 20, .72); padding: 6px 9px; border-radius: 6px; }
.st-copy { padding: clamp(22px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.st-kicker { font: 500 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--play); margin: 0; }
.discover .st-title { font: 800 clamp(1.6rem, 3.2vw, 2.6rem)/1.05 var(--f-display); letter-spacing: -.02em; margin: 0; }
.st-text { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--muted); margin: 0; max-width: 46ch; }
html[data-mode="kids"] .st-text { font-size: clamp(1.12rem, 1.6vw, 1.32rem); color: var(--text); }
.st-chip { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 .9rem/1.3 var(--f-mono); color: var(--text); }
.st-more { align-self: flex-start; font-weight: 600; text-decoration: none; padding: 12px 16px; border-radius: 999px; background: var(--play); color: #0B1422; margin-top: 4px; }
.st-more:hover { filter: brightness(1.06); }
.st-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.st-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.st-nav button:disabled { opacity: .35; cursor: default; }
.st-count { font: 500 .85rem var(--f-mono); color: var(--muted); min-width: 4ch; text-align: center; }

/* mission */
.mission { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 36px); align-items: center; margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(16px, 2.5vw, 24px); border-radius: 24px; border: 2px dashed color-mix(in srgb, var(--play) 55%, transparent); background: color-mix(in srgb, var(--play) 6%, var(--surface)); }
.mission[hidden] { display: none; }
.ms-sky { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--viewer); cursor: crosshair; }
.ms-sky:focus-visible { outline: 3px solid var(--play); outline-offset: 3px; }
.ms-copy { display: grid; gap: 12px; align-content: center; }
.ms-ask { font: 700 clamp(1.2rem, 2vw, 1.55rem)/1.3 var(--f-display); margin: 0; }
.ms-result { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.ms-result.yes { color: var(--known); font-weight: 600; }
.ms-result.near { color: var(--text); }
.ms-q { font-weight: 600; margin: 4px 0 8px; }
.ms-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-opts [aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ms-why { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.ms-follow[hidden], .ms-why[hidden], .ms-again[hidden] { display: none; }
.ms-again { justify-self: start; }

/* activities */
.activities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.act { display: grid; gap: 6px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
a.act:hover { border-color: var(--play); transform: translateY(-2px); }
.act b { font: 700 1.08rem/1.25 var(--f-display); }
.act > span:last-child { color: var(--muted); font-size: .9rem; }
.act-k { font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--play); }
.act.soon { opacity: .75; border-style: dashed; }
.act.soon .act-k { color: var(--muted); }
.dc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.dc-note { margin: 0; color: var(--muted); max-width: 60ch; }

@media (max-width: 860px) {
  .st-card { grid-template-columns: 1fr; min-height: 0; }
  .st-sky { align-self: auto; }
  .mission { grid-template-columns: 1fr; }
  .activities { grid-template-columns: 1fr; }
}

/* ---------- Research panel ---------- */
.research-panel { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; }
.rp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--text); }
.rp-head h2 { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--f-display); margin: 8px 0 0; }
.rp-legend { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; color: var(--muted); }
.rp-legend li { display: flex; align-items: center; gap: 8px; }
.rp-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rp-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rp-table table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 980px; }
.rp-table th, .rp-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rp-table thead th { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.rp-table tbody th { font-weight: 600; }
.rp-table .dim { color: var(--muted); }
.rp-note { color: var(--muted); font-size: .86rem; max-width: 90ch; margin: 12px 0 0; }
.rp-note code { font: .82rem var(--f-mono); }

@media (prefers-reduced-motion: reduce) {
  html.mode-anim main, .st-bars span.on { animation: none; }
}

/* ======================================================================================================
   Phase 2–5 additions
   ====================================================================================================== */
.grown-only { display: none; }
html[data-mode="adults"] .grown-only, html[data-mode="research"] .grown-only { display: inline; }
.small-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }

/* story motion: a soft slide-in when the card changes; a slow twinkle behind the Discover title */
.st-card { animation: stIn .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes stIn { from { opacity: 0; transform: translateX(18px) scale(.985); } }
.dc-head { position: relative; isolation: isolate; }
.dc-head::before { content: ""; position: absolute; inset: -10px -4% auto auto; width: 46%; height: 180px; z-index: -1; pointer-events: none; opacity: .7;
  background:
    radial-gradient(2px 2px at 12% 30%, var(--play) 50%, transparent 51%), radial-gradient(1.6px 1.6px at 40% 70%, var(--accent) 50%, transparent 51%),
    radial-gradient(2.4px 2.4px at 70% 20%, var(--play) 50%, transparent 51%), radial-gradient(1.4px 1.4px at 88% 60%, var(--accent) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 56% 46%, var(--text) 50%, transparent 51%);
  animation: twinkle 3.6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .25; } }

/* ---------- missions board ---------- */
.learn { margin-top: clamp(32px, 5vw, 56px); }
.learn[hidden] { display: none; }
.mb-head, .cc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.discover .mb-title { font: 800 clamp(1.3rem, 2.4vw, 1.8rem)/1.2 var(--f-display); margin: 6px 0 0; letter-spacing: -.01em; }
.mb-count { margin: 0; font: 500 .9rem var(--f-mono); color: var(--muted); }
.mb-count b { color: var(--play); font-size: 1.3rem; }
.mb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.mb-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.mb-card.done { border-color: color-mix(in srgb, var(--play) 60%, var(--line)); background: color-mix(in srgb, var(--play) 9%, var(--surface)); }
.mb-badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--line-strong); color: var(--muted); }
.mb-card.done .mb-badge { border: 0; background: var(--play); color: #0B1422; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.6); } }
.mb-badge svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mb-text { display: grid; gap: 2px; }
.mb-text b { font: 700 .98rem/1.25 var(--f-display); }
.mb-text span { font-size: .84rem; color: var(--muted); }
.mb-go { font-weight: 600; font-size: .86rem; text-decoration: none; white-space: nowrap; }
.mb-done { font: 500 .72rem var(--f-mono); color: var(--muted); }
.mb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }

/* ---------- quick questions ---------- */
.qz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.qz-nav { display: flex; gap: 6px; }
.qz-card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: clamp(16px, 3vw, 28px); margin: 0; min-width: 0; }
.qz-q { font: 800 clamp(1.15rem, 2.2vw, 1.5rem)/1.3 var(--f-display); padding: 0; margin-bottom: 14px; }
.qz-opts { display: grid; gap: 8px; }
.qz-opt { text-align: left; font: 500 1rem/1.35 var(--f-ui); color: var(--text); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; min-height: 52px; }
.qz-opt:hover { border-color: var(--play); }
.qz-opt.right { border-color: var(--known); background: color-mix(in srgb, var(--known) 12%, var(--surface-2)); }
.qz-opt.right::after { content: "  ✓"; color: var(--known); font-weight: 700; }
.qz-opt.wrong { border-color: var(--cand); }
.qz-verdict { margin: 14px 0 6px; line-height: 1.5; }
.qz-verdict.yes { color: var(--known); font-weight: 600; }
.qz-deeper summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.qz-deeper p { color: var(--muted); line-height: 1.55; margin: 8px 0 0; }
.qz-badge { margin: 12px 0 0; font: 500 .82rem var(--f-mono); color: var(--play); }

/* ---------- constellation cards ---------- */
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cc-card { display: grid; justify-items: center; gap: 4px; padding: 12px 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--viewer); color: #E6EEF8; cursor: pointer; font: inherit; text-align: center; transition: transform .2s, border-color .2s; }
.cc-card:hover { transform: translateY(-2px); border-color: var(--play); }
.cc-card svg { width: 100%; max-width: 132px; aspect-ratio: 1; }
.cc-card polyline { fill: none; stroke: #F2B866; stroke-width: 1.6; stroke-linejoin: round; stroke-opacity: .85; }
.cc-card circle { fill: #FFE6BF; }
.cc-name { font: 700 .98rem var(--f-display); }
.cc-more { font-size: .78rem; color: #B5C9DE; min-height: 1.2em; }
.cc-card[aria-expanded="true"] { border-color: var(--play); }

/* ---------- Observatory: guide and simpler tools for Kids and Students ---------- */
.obs-guide { margin: 12px 0 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 16px; padding: 16px; border-radius: 18px;
  border: 2px dashed color-mix(in srgb, var(--play) 55%, transparent); background: color-mix(in srgb, var(--play) 6%, var(--surface)); }
.obs-guide:empty { display: none; }
.og-title { font: 800 1.3rem/1.2 var(--f-display); margin: 6px 0; }
.og-text { margin: 0; color: var(--muted); line-height: 1.5; }
html[data-mode="kids"] .og-text { color: var(--text); font-size: 1.05rem; }
.og-compare { margin: 0; grid-row: span 2; }
.og-stage { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--viewer); }
.og-stage img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.og-before { clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.og-line { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; background: #F2B866; box-shadow: 0 0 0 1px rgba(5, 11, 20, .5); }
.og-l { left: 8px !important; top: auto !important; bottom: 8px; } .og-r { left: auto !important; right: 8px; top: auto !important; bottom: 8px; }
.og-range { display: grid; gap: 4px; margin-top: 8px; font: 500 .8rem var(--f-mono); color: var(--muted); }
.og-range input { width: 100%; accent-color: var(--play); height: 32px; }
.og-ask { display: grid; gap: 8px; align-content: start; }
.og-q { margin: 0; font-weight: 700; }
.og-a { margin: 0; line-height: 1.5; }
.og-a[hidden] { display: none; }
.obs .og-ask .btn { justify-self: start; }
.ev-simple { margin: 8px 0 4px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--play) 8%, var(--surface-2)); }
.ev-simple:empty { display: none; }
.ev-s-score { margin: 0; font: 800 1.15rem var(--f-display); color: var(--play); }
.ev-s-text { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.obs-intro { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--play); background: var(--surface-2); border-radius: 6px; font-size: .92rem; }
.obs-tools-toggle { margin-top: 12px; }

/* tools folded away for Kids and Students until "Show all tools" */
html[data-mode="kids"]:not(.show-tools) .obs .coord-box, html[data-mode="teens"]:not(.show-tools) .obs .coord-box,
html[data-mode="kids"]:not(.show-tools) .obs #detSwitch, html[data-mode="teens"]:not(.show-tools) .obs #detSwitch,
html[data-mode="kids"]:not(.show-tools) .obs #frameMeta, html[data-mode="teens"]:not(.show-tools) .obs #frameMeta,
html[data-mode="kids"]:not(.show-tools) .obs .tools, html[data-mode="teens"]:not(.show-tools) .obs .tools,
html[data-mode="kids"]:not(.show-tools) .obs #mix, html[data-mode="teens"]:not(.show-tools) .obs #mix,
html[data-mode="kids"]:not(.show-tools) .obs #meta, html[data-mode="teens"]:not(.show-tools) .obs #meta,
html[data-mode="kids"]:not(.show-tools) .obs #pathCard, html[data-mode="teens"]:not(.show-tools) .obs #pathCard,
html[data-mode="kids"]:not(.show-tools) .obs .toggles, html[data-mode="kids"]:not(.show-tools) .obs #numbers,
html[data-mode="kids"]:not(.show-tools) .obs .limits { display: none !important; }
/* public community classification (GitHub issue form) and free-text questions are not offered to Kids;
   classification is not offered to Students either. Not undone by "Show all tools". */
html[data-mode="kids"] .obs #classify, html[data-mode="teens"] .obs #classify, html[data-mode="kids"] .obs #askForm { display: none !important; }

/* ---------- Observatory: Research Mode panel and General Explorer share ---------- */
.obs-research { margin-top: 16px; }
.obs-research:empty { display: none; }
.or-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin-top: 8px; }
.or-table table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 560px; }
.or-table th, .or-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.or-table thead th { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.or-actions, .or-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.or-preview { margin-top: 10px; }
.or-preview summary { cursor: pointer; font-weight: 600; }
.or-preview pre { white-space: pre-wrap; font: .78rem/1.5 var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 12px; max-height: 360px; overflow: auto; }

/* ---------- homepage research tools ---------- */
.rp-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; margin: 0 0 12px; }
.rp-field { display: grid; gap: 4px; font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rp-field input, .rp-field select { font: 400 .9rem var(--f-ui); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; padding: 8px 10px; min-width: 180px; }
.rp-count { margin: 0 auto 8px 0; font-size: .8rem; color: var(--muted); }
.rp-sort { all: unset; cursor: pointer; display: inline-flex; gap: 2px; }
.rp-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 860px) { .obs-guide { grid-template-columns: 1fr; } .og-compare { grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { .st-card, .mb-card.done .mb-badge, .dc-head::before { animation: none; } }
/* the generic ".playful-only { display: block }" must not flatten the guide's grid */
html[data-mode="kids"] .obs-guide:not(:empty), html[data-mode="teens"] .obs-guide:not(:empty) { display: grid; }
/* unit symbols must keep their case (µm, σ): no uppercasing in data-table headers */
.rp-table thead th, .or-table thead th { text-transform: none; letter-spacing: .02em; }
