/* Public homepage. The observatory and the reading list share the same night sky. */
body.public-page { isolation:isolate; background:#090e20; color:#ecedf8; }
.public-page main { outline:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.skip-link { position:fixed; left:16px; top:10px; z-index:100; transform:translateY(-180%); background:#e3edff; color:#111b34; padding:9px 16px; border-radius:5px; }
.skip-link:focus { transform:none; }
.home-hero .world-down { position:absolute; z-index:2; bottom:7px; left:50%; transform:translateX(-50%); width:44px; height:44px; display:grid; place-items:center; text-decoration:none; color:#d7e5f9; }
.world-down span { display:grid; place-items:center; width:30px; height:30px; border:1px solid #a3b4db65; border-radius:50%; background:#10192bbc; font:17px/1 system-ui,sans-serif; }
.world-down:is(:hover,:focus-visible) span { border-color:#c0efff; color:white; }
.constellation-reading:not([hidden]) ~ .world-down { visibility:hidden; }

.home-world {
  --paper:#0b1021; --ink:#edf0fb; --muted:#acb7cd; --green:#a6e8ee; --line:#333c54;
  --hair:rgba(178,194,238,.22); --sky-art:url("/static/starfield-chart.webp?v=20261109.3");
  --pad:clamp(28px,6.1vw,94px); --rail-offset:clamp(12px,2.5vw,36px);
  position:relative; overflow:clip; color-scheme:dark;
  color:var(--ink);
}
.home-hero[data-view=planet] + .home-world { --sky-art:url("/static/star-sky.webp?v=20261109.1"); }
.home-world .home-content { position:relative; max-width:1450px; margin:auto; padding:clamp(40px,6vw,84px) var(--pad) 26px; }
.home-world .journey-rail { position:absolute; pointer-events:none; left:calc(var(--pad) - var(--rail-offset)); top:0; bottom:80px; width:1px; background:linear-gradient(transparent,var(--hair) 60px,var(--hair) 93%,transparent); }
.journey-rail i { position:absolute; inset:0; transform:scaleY(var(--route,0)); transform-origin:top; background:linear-gradient(#657baf,#96ddf2 65%,#c4baff); }
.home-world .section-heading { position:relative; display:flex; align-items:center; gap:18px; margin-bottom:clamp(16px,2vw,26px); min-height:40px; }
.home-world .section-heading::before { content:""; position:absolute; left:calc(-1 * var(--rail-offset) - 3px); top:calc(50% - 3px); width:7px; height:7px; background:#c4d1f4; border-radius:50%; box-shadow:0 0 0 4px #11182e,0 0 12px #a5bcf899; }
.home-world .section-heading::after { content:""; flex:1; height:1px; background:linear-gradient(90deg,var(--hair),transparent); }
.home-world .section-heading h2 { display:flex; align-items:baseline; gap:13px; margin:0; font:550 clamp(19px,2vw,26px)/1.4 system-ui,sans-serif; letter-spacing:.04em; }
.home-world .section-number { color:#9aa9c9; font:450 12px/1.2 ui-monospace,monospace; letter-spacing:.1em; }
.home-world :focus-visible { outline:2px solid #a9edf3; outline-offset:4px; }
.home-world a { color:inherit; }
.home-world button:enabled:hover { filter:none; }
.home-world .motion-switch { order:1; display:grid; place-items:center; width:40px; height:40px; padding:0; color:#becbe3; background:#111a2b; border:1px solid var(--hair); border-radius:50%; }
.motion-switch .turn-icon { transform:scale(.82); }
.motion-switch[aria-pressed="true"] .turn-icon { width:0; height:0; margin-left:2px; border:0; border-block:7px solid transparent; border-left:11px solid currentColor; }
.home-world .motion-switch:hover { color:white; border-color:#8e9fbd; }
.public-page #courses { display:block; margin:0; }
.home-world #creative, .home-world #reading { margin-top:clamp(46px,6vw,90px); scroll-margin-top:18px; }
.learning-grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(12px,1.8vw,26px); }
.home-world .course {
  --glow:#89e7f5; --border:#355366; display:flex; flex-direction:column; position:relative; isolation:isolate;
  min-width:0; padding:0; overflow:hidden; border:1px solid var(--border); border-radius:13px;
  background:radial-gradient(ellipse at 65% 25%,#14384b66,transparent 66%),linear-gradient(145deg,#101b2e,#0c1328);
  text-decoration:none; color:var(--ink); transition:border-color .18s,transform .18s ease-out;
}
.home-world .course-orbits { --glow:#edc3ad; --border:#504259; background:radial-gradient(ellipse at 65% 25%,#54344b66,transparent 65%),linear-gradient(145deg,#1b192e,#111328); }
.study-art { position:relative; width:100%; height:clamp(135px,13vw,187px); overflow:hidden; }
.scene-poster, [data-scene] canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.scene-poster { object-fit:contain; pointer-events:none; }
[data-scene].scene-ready > .scene-poster { visibility:hidden; }
.study-art canvas { pointer-events:none; }
.course-caption { padding:0 clamp(19px,2.4vw,35px) clamp(18px,2vw,30px); }
.course-caption h3, .flight-caption h3 { margin:0; font:550 clamp(21px,2.05vw,31px)/1.5 'Songti SC','Noto Serif CJK SC',serif; letter-spacing:.02em; }
.course-action { display:inline-flex; align-items:center; gap:12px; margin-top:8px; font-size:13px; line-height:1.5; color:var(--glow); }
.course-action i, .lab-link span { display:inline-block; font:normal 15px/1 system-ui; transition:transform .17s ease-out; }
.course:focus-visible, .home-world .course:focus-within { border-color:var(--glow); }
@media (hover:hover) and (pointer:fine) {
  .home-world .course:hover { transform:translateY(-2px); border-color:var(--glow); }
  .course:hover .course-action i, .lab-link:hover span { transform:translate(3px,-2px); }
}

.creative-feature { overflow:hidden; background:#0c1428; border:1px solid #445171; border-radius:14px; }
.flight-stage { position:relative; isolation:isolate; overflow:hidden; height:clamp(268px,28vw,405px); background:linear-gradient(180deg,#070c1f30 15%,#24274877 64%,#131b32),var(--sky-art) center 44% / cover; }
.flight-landscape { position:absolute; inset:-3%; width:106%; height:106%; object-fit:cover; object-position:50% 53%; pointer-events:none; }
.flight-stage .scene-poster { object-fit:cover; }
.flight-stage canvas { touch-action:pan-y; }
.flight-stage[data-mode="playing"] canvas { cursor:crosshair; touch-action:none; }
.flight-stage canvas:focus-visible { outline-offset:-4px; }
.flight-hud { position:absolute; top:17px; right:clamp(14px,2vw,28px); pointer-events:none; padding:5px 10px 6px; background:#0c1328d9; border:1px solid #9cadd74d; border-radius:6px; font-size:12px; letter-spacing:.045em; color:#e9edff; }
.flight-gates { display:flex; align-items:center; gap:4px; margin:3px 0 1px; }
.flight-gates i { flex:1; height:2px; background:#5a657d; }
.flight-gates i[data-result="through"] { background:#95eceb; }
.flight-gates i[data-result="miss"] { background:#dca38b; }
.flight-caption { display:flex; justify-content:space-between; gap:14px; align-items:center; padding:clamp(15px,2.3vw,29px) clamp(18px,2.4vw,35px); background:linear-gradient(115deg,#111b32,#111627 80%); border-top:1px solid var(--hair); }
.flight-actions { display:flex; align-items:center; gap:clamp(15px,2.2vw,30px); }
#flight-launch { min-height:44px; padding:0 18px; border:1px solid #7288b7; background:#263353; color:#f2f3ff; border-radius:24px; font-size:14px; white-space:nowrap; }
#flight-launch::before { content:""; display:inline-block; width:0; height:0; margin-right:8px; border-block:4px solid transparent; border-left:7px solid currentColor; }
#flight-launch[aria-pressed="true"]::before { width:7px; height:7px; background:currentColor; border:0; }
#flight-launch:hover { background:#35486d; }
.lab-link { display:inline-flex; gap:8px; align-items:center; min-height:44px; color:#dce8ff; text-underline-offset:5px; font-size:14px; }
.home-world .public-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12px; margin:0; }
.home-world .public-toolbar :is(input[type=search],select) { width:100%; max-width:none; min-height:44px; border:1px solid #414d69; border-radius:7px; color:var(--ink); background-color:#111a2d; font-size:14px; padding:8px 13px; }
.home-world .public-toolbar input::placeholder { color:#9eaec7; opacity:1; }
.home-world .public-toolbar select { padding-right:22px; }
.home-world .public-toolbar .quiet { padding:7px 12px; border:1px solid var(--hair); border-radius:7px; color:#d3def3; background:transparent; }
.home-world .public-toolbar .quiet:disabled { opacity:.6; }
.home-world .content-tabs { display:flex; gap:clamp(16px,2.3vw,34px); margin:14px 0 0; border-bottom:1px solid var(--hair); touch-action:pan-x pan-y; }
.home-world .content-tabs button { min-height:44px; padding:9px 0; color:var(--muted); font-size:14px; }
.home-world .content-tabs button:is(:hover,:focus-visible,.active) { color:#b9edf4; }
.home-world .content-tabs button.active { border-bottom-color:#9ce3eb; }
#result-count { scroll-margin-top:16px; margin:12px 0 6px; min-height:20px; font-size:12px; color:var(--muted); }
.feed-anchor { display:block; height:0; }
.article-grid { --spine:clamp(84px,12vw,152px); }
.home-world article {
  position:relative; display:grid; grid-template-columns:var(--spine) minmax(0,1fr); gap:clamp(24px,3vw,48px);
  padding:clamp(22px,2.5vw,35px) 0; border:0; color:var(--ink); overflow-wrap:anywhere;
}
.home-world article::before { position:absolute; content:""; width:1px; top:0; bottom:0; left:var(--spine); background:var(--hair); }
.home-world article::after { position:absolute; content:""; left:calc(var(--spine) - 3px); top:calc(clamp(22px,2.5vw,35px) + 10px); width:5px; height:5px; border:1px solid #8c9bbf; border-radius:50%; background:#12192d; }
.home-world article:is(.current-news,:target,:focus-within)::after { background:#aeedf1; box-shadow:0 0 0 4px #243b50,0 0 16px #89d7ed7a; }
.news-date { display:block; color:#acbdd8; font:450 clamp(11px,1.05vw,14px)/26px ui-monospace,monospace; letter-spacing:.03em; font-variant-numeric:tabular-nums; }
.current-news .news-date, article:target .news-date { color:#c2f4f6; }
.news-body { min-width:0; max-width:90ch; }
.news-body .meta { font-size:12px; gap:11px; line-height:1.5; color:var(--muted); }
.home-world .tag { border-radius:4px; padding:3px 8px; font-size:11px; }
.home-world .tag.candidate { border-color:#6a5344; color:#efc9a5; background:#272124; }
.home-world .tag.reviewed { border-color:#385c64; color:#a8e9de; background:#12272e; }
.news-body h4 { margin:11px 0 6px; color:#f0f1fb; font-size:clamp(18px,1.45vw,22px); line-height:1.55; font-weight:580; }
.news-body p { margin:8px 0; color:#c0c9db; font-size:14px; line-height:1.9; max-width:82ch; }
.news-body .value, .news-body details { color:var(--muted); font-size:13px; }
.news-body details { margin-top:9px; }
.news-body summary { cursor:pointer; padding:5px 0; }
.news-body .actions { margin-top:9px; }
.news-body .actions a, .news-body .summary-toggle { display:inline-flex; align-items:center; min-height:34px; width:fit-content; padding:0; border:0; color:#b1e6ef; font-size:13px; background:none; text-underline-offset:4px; }
.article-summary.is-collapsed { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.home-world .feed-pagination { display:flex; justify-content:center; align-items:center; gap:18px; margin-top:18px; }
.feed-pagination a { display:grid; place-items:center; min-width:72px; min-height:44px; border:1px solid #485771; border-radius:24px; color:#deebff; background:#121b2e; text-decoration:none; font-size:13px; }
.feed-pagination a[href]:hover { border-color:#96d7e7; color:#dafaff; }
.feed-pagination a[aria-disabled] { color:#8792a7; border-color:#394255; background:transparent; }
.feed-page { color:#becbe0; font:13px/1.4 ui-monospace,monospace; font-variant-numeric:tabular-nums; }
.home-world .empty { padding:30px 0; color:var(--muted); }
.home-world footer { display:flex; flex-wrap:wrap; gap:14px 28px; justify-content:space-between; align-items:center; border-top:1px solid var(--hair); margin-top:clamp(45px,6vw,85px); padding:24px 0 0; }
.home-world footer strong { color:#e3e6f3; font:550 23px/1.4 'Songti SC',serif; letter-spacing:.1em; }
.home-world footer nav { display:flex; flex-wrap:wrap; gap:5px 18px; }
.home-world footer a { min-height:34px; display:inline-flex; align-items:center; text-decoration:none; color:var(--muted); font-size:12px; }
.home-world footer a:hover { color:white; text-decoration:underline; }
.home-world footer .filing { flex-basis:100%; font-size:11px; }

@media(max-width:720px) {
  .home-world { --pad:clamp(22px,5.5vw,48px); --rail-offset:13px; }
  .home-world .home-content { padding-top:31px; }
  .home-world .section-heading { gap:10px; }
  .home-world .section-heading h2 { gap:8px; font-size:20px; }
  .learning-grid { gap:12px; }
  .study-art { height:130px; }
  .course-caption { padding:0 16px 18px; }
  .course-caption h3 { font-size:19px; }
  .flight-stage { height:265px; }
  .home-world .public-toolbar { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .home-world .search-label { grid-column:1/-1; }
  .home-world .public-toolbar :is(input[type=search],select) { font-size:16px; }
  .home-world article { display:block; padding:22px 0 22px 17px; }
  .home-world article::before { left:0; }
  .home-world article::after { left:-3px; top:31px; }
  .news-date { margin-bottom:7px; font-size:12px; line-height:24px; }
  .news-body .actions a,.news-body .summary-toggle,.news-body summary { min-height:40px; }
}
@media(max-width:540px) {
  .learning-grid { grid-template-columns:1fr; }
  .home-world .course { display:grid; grid-template-columns:minmax(0,1fr) 42%; align-items:center; min-height:137px; }
  .study-art { grid-column:2; grid-row:1; height:130px; }
  .course-caption { grid-column:1; grid-row:1; padding:15px 0 15px 15px; }
  .course-caption h3 { font-size:19px; }
  .flight-stage { height:245px; }
  .flight-caption { align-items:flex-start; flex-direction:column; gap:8px; }
  .flight-actions { width:100%; justify-content:space-between; }
}
@media(prefers-reduced-motion:reduce) {
  .home-world *, .home-world *::before, .home-world *::after { transition:none!important; scroll-behavior:auto!important; }
  .home-world .course:hover, .home-world .course:hover .course-action i, .lab-link:hover span { transform:none; }
}
@media print {
  body.public-page, .home-world { color:#1a2430; background:white; color-scheme:light; --ink:#1b293b; --muted:#414951; --hair:#b5bbc1; }
  #deep-sky,.sky-volume,.journey-rail,.home-world .section-heading::before,.study-art,.flight-stage,.motion-switch,.public-toolbar,.content-tabs,.feed-pagination,.summary-toggle,#flight-launch { display:none!important; }
  .home-world .home-content { padding:0; }
  .home-world .course,.creative-feature,.flight-caption { color:inherit; background:white; border-color:#b7c0cb; }
  .home-world .course { display:block; }
  .course-caption { padding:14px; }
  .home-world article { display:block; break-inside:avoid; padding:12px 0; }
  .home-world article::before,.home-world article::after { display:none; }
  .news-body p,.news-body h4,.news-date,.course-action,.lab-link { color:inherit; }
  .article-summary.is-collapsed { display:block; }
}
