/* Same layout and tokens as the Solar System mode: glass top bar with brand and icon tools;
   side panels on the left; info card on the right; cinema mode for the zoom journey. No time bar (the Milky Way
   does not change on a human time scale). Single dark theme by choice. */
:root{--bg:#02040A;--glass:rgba(10,16,32,.68);--line:rgba(156,195,255,.18);--fg:#E6EBF3;--mute:#A3B0C5;--acc:#2563EB;--acc2:#9CC3FF;--amber:#F3C969;color-scheme:dark}
html,body{margin:0;height:100%;background:var(--bg);color:var(--fg);overflow:hidden;overscroll-behavior:none}
.nh{position:fixed;inset:0;overflow:hidden;font-family:'Be Vietnam Pro',system-ui,sans-serif;color:var(--fg);background:var(--bg)}
.nh *{box-sizing:border-box}
.nh [hidden]{display:none!important}
.nh button,.nh select,.nh input{font:inherit;color:inherit}
.nh button{cursor:pointer}
#nh-canvas{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}
#nh-canvas:active{cursor:grabbing}
.glass{background:var(--glass);border:1px solid var(--line);border-radius:16px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 12px;border-radius:10px;border:1px solid rgba(201,211,227,.18);background:rgba(15,26,46,.7);color:var(--fg);font-size:13.5px;white-space:nowrap}
.btn:hover{border-color:rgba(156,195,255,.45)}
.btn[aria-pressed="true"]{background:rgba(37,99,235,.35);border-color:rgba(106,166,255,.6)}
.nh .btn:focus-visible,.nh input:focus-visible,.nh-label:focus-visible span{outline:2px solid #6AA6FF;outline-offset:2px}
.ico{width:18px;height:18px;flex:0 0 auto}
.btn.ib{width:40px;padding:0;position:relative}
.btn.ib .ico{width:21px;height:21px}

/* nhãn trên mô hình */
.nh-labels{position:fixed;inset:0;pointer-events:none;z-index:1}
.nh-label{position:absolute;left:0;top:0;width:0;height:0;padding:0;border:0;background:none;pointer-events:auto}
.nh-label i{position:absolute;z-index:1;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--gc,#9CC3FF);display:none;box-shadow:0 0 0 2px rgba(2,4,10,.6)}
.nh-label.dot i{display:block}
.nh-label span{position:absolute;z-index:2;left:var(--off,8px);top:0;transform:translateY(-50%);white-space:nowrap;font-size:12px;font-weight:600;color:var(--gc,#C9D3E3);text-shadow:0 1px 3px #000,0 0 8px #000;padding:2px 4px}
.nh-label.notext span{display:none}
.nh-label[data-side="l"] span{left:auto;right:var(--off,8px)}
.nh-label[data-side="b"] span{left:0;top:var(--off,8px);transform:translateX(-50%)}
.nh-label[data-side="t"] span{left:0;top:auto;bottom:var(--off,8px);transform:translateX(-50%)}
.nh-label.sel span{color:#fff;background:rgba(37,99,235,.45);border-radius:6px}
.nh-label.g-sun{--gc:#F3C969}.nh-label.g-planet{--gc:#C9D8F5}.nh-label.g-moon{--gc:#A3B0C5}
.nh-label.g-dwarf{--gc:#C6B2EC}.nh-label.g-small{--gc:#8FD0C2}.nh-label.g-craft{--gc:#F0A77E}
.nh-label.g-moon span,.nh-label.g-small span,.nh-label.g-craft span{font-weight:500;font-size:11.5px}

/* thanh trên */
#nh-top{position:fixed;left:16px;right:16px;top:12px;display:flex;align-items:center;gap:12px;padding:8px 12px;z-index:5}
#nh-brand{font-family:'Noto Serif',serif;font-weight:700;font-size:17px;letter-spacing:.06em;white-space:nowrap}
/* Clock: one fixed-size box in the time bar, so changing text never moves anything else. */
#nh-tools{display:flex;gap:6px}

/* bảng bên */
.side{position:fixed;left:16px;top:72px;width:330px;max-height:calc(100vh - 176px);overflow:auto;padding:16px;z-index:4;scrollbar-width:thin}
.side h2{margin:0 0 8px;font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--acc2)}
.side h3{margin:14px 0 6px;font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--mute)}
.tg{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0;font-size:13.5px;cursor:pointer;user-select:none}
.tg input{appearance:none;-webkit-appearance:none;width:34px;height:20px;border-radius:999px;background:rgba(201,211,227,.2);position:relative;margin:0;cursor:pointer;flex:0 0 auto}
.tg input::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#F2F5FA;transition:left .15s}
.tg input:checked{background:var(--acc)}
.tg input:checked::after{left:16px}
.note{font-size:11.5px;color:var(--mute);line-height:1.5;margin:4px 0 0}
.rad{display:flex;align-items:center;gap:9px;width:100%;padding:6px 8px;border:0;border-radius:9px;background:none;font-size:13.5px;text-align:left}
.rad:hover{background:rgba(106,166,255,.08)}
.rad[aria-current="true"]{background:rgba(37,99,235,.28)}
.rad i{width:9px;height:9px;border-radius:50%;flex:0 0 auto;background:var(--c)}
.rad small{margin-left:auto;color:var(--mute);font-size:11.5px;white-space:nowrap}
.slist{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.slist li{padding:6px 8px;border-radius:10px;background:rgba(106,166,255,.07);font-size:12.5px;line-height:1.45;color:#C9D3E3;overflow-wrap:anywhere}

/* thẻ thông tin */
/* Info card: header (kind, name) + groups of value tiles. Desktop and tablet landscape: card on the right. */
#nh-info{position:fixed;right:16px;top:72px;width:344px;max-height:calc(100vh - 176px);display:flex;flex-direction:column;padding:0;z-index:4;overflow:hidden}
#nh-info .ih{position:relative;padding:16px 52px 10px 18px;flex:0 0 auto}
#nh-info .grip{display:none}
#nh-info .k{margin:0;font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--acc2)}
#nh-info h3{margin:3px 0 0;font-family:'Noto Serif',serif;font-size:24px;font-weight:700;line-height:1.18;word-break:break-word}
#nh-info .more{display:none}
#nh-info .ib{overflow:auto;padding:0 18px 16px;scrollbar-width:thin;flex:1 1 auto;min-height:0}
#nh-info .grp{margin-top:12px}
#nh-info .grp:first-child{margin-top:4px}
#nh-info h4{margin:0 0 7px;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--acc2)}
#nh-info h4::after{content:"";flex:1;height:1px;background:rgba(156,195,255,.14)}
#nh-info .tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#nh-info .t{display:flex;flex-direction:column;gap:2px;min-width:0;padding:8px 10px 9px;border-radius:10px;background:rgba(156,195,255,.055);border:1px solid rgba(156,195,255,.08)}
#nh-info .t.w{grid-column:1/-1}
#nh-info .t .l{font-size:11px;color:var(--mute);line-height:1.3}
#nh-info .t .v{font-size:17px;font-weight:600;color:var(--fg);font-variant-numeric:tabular-nums;line-height:1.25;overflow-wrap:anywhere}
#nh-info .t .v u{text-decoration:none;font-size:11.5px;font-weight:500;color:var(--mute);margin-left:4px}
#nh-info .t .v .raw{font-size:14px}
#nh-info .t .s{font-size:11px;color:var(--mute);font-variant-numeric:tabular-nums}
#nh-info .warn{margin:0 0 10px;font-size:12.5px;color:var(--amber);line-height:1.45}
#nh-info-note p{margin:12px 0 0;padding:9px 11px;border-left:2px solid rgba(156,195,255,.35);font-size:12.5px;color:#C9D3E3;line-height:1.5;background:rgba(156,195,255,.04);border-radius:0 8px 8px 0}
#nh-infoX{position:absolute;right:10px;top:10px;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--mute);font-size:19px;z-index:2}
#nh-infoX:hover{background:rgba(156,195,255,.1);color:var(--fg)}

/* chú giải chế độ, thước tỉ lệ */
#nh-leg{position:fixed;right:16px;bottom:84px;z-index:3;padding:4px 12px;font-size:11.5px;min-width:150px}
#nh-leg .tg{font-size:13px;font-weight:600;color:var(--fg);padding:4px 0}
#nh-leg .sc{display:flex;align-items:center;gap:8px;margin:2px 0 5px;color:var(--fg);font-variant-numeric:tabular-nums}
#nh-leg .sc i{display:block;height:7px;border:1.5px solid var(--fg);border-top:0;flex:0 0 auto}

/* thông báo, chú thích nút */
#nh-hint{position:fixed;left:50%;top:76px;transform:translateX(-50%);z-index:6;padding:8px 14px;font-size:13px;pointer-events:none;transition:opacity .4s;opacity:0;max-width:calc(100vw - 32px);text-align:center}
#nh-hint.on{opacity:1}
#nh-tip{position:fixed;z-index:30;padding:5px 9px;border-radius:8px;background:rgba(8,13,26,.92);border:1px solid rgba(156,195,255,.3);font-size:12.5px;white-space:nowrap;pointer-events:none;font-variant-numeric:tabular-nums}
#nh-load{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8;padding:12px 18px;font-size:14px;max-width:calc(100vw - 32px);text-align:center}
/* Fade to and from black when switching between the Milky Way and Solar System modes (merged module) */
#nh-xfade{position:fixed;inset:0;z-index:7;background:#000;opacity:0;pointer-events:none;transition:opacity 1.3s ease}
#nh-xfade.on{opacity:1;transition-duration:1.1s}
@media (prefers-reduced-motion: reduce){#nh-xfade{transition:none}}

/* thanh thời gian */
#nh-bar{position:fixed;left:16px;right:16px;bottom:12px;display:flex;align-items:center;gap:12px;padding:10px 12px;z-index:5}

/* điện thoại: thanh tự ẩn */
#nh-top,#nh-bar{transition:transform .28s ease,opacity .28s ease}
.autoHide.hideTop #nh-top{transform:translateY(calc(-100% - 16px));opacity:0;pointer-events:none}
.autoHide.hideBar #nh-bar{transform:translateY(calc(100% + 16px));opacity:0;pointer-events:none}
.edgeH{display:none;position:fixed;left:50%;width:56px;height:18px;margin-left:-28px;border:0;background:transparent;z-index:6;padding:0}
.edgeH::after{content:"";position:absolute;left:12px;right:12px;top:7px;height:4px;border-radius:4px;background:rgba(201,211,227,.45)}
#nh-topHandle{top:calc(2px + env(safe-area-inset-top,0px))}
#nh-barHandle{bottom:calc(2px + env(safe-area-inset-bottom,0px))}
.autoHide.hideTop #nh-topHandle,.autoHide.hideBar #nh-barHandle{display:block}
@media (prefers-reduced-motion:reduce){#nh-top,#nh-bar,.tg input::after,#nh-hint{transition:none}}
@media (max-width:820px){
  #nh-top{left:8px;right:8px;top:calc(6px + env(safe-area-inset-top,0px));flex-wrap:wrap;gap:6px;padding:6px 8px}
  #nh-brand{font-size:14px}
  #nh-tools{order:4;flex-wrap:wrap}
  #nh-tools .btn.ib{width:34px;min-height:32px}
  .side,#nh-info{left:8px;right:8px;width:auto;top:auto;bottom:calc(var(--barH,100px) + 16px);max-height:calc(100svh - 250px)}
  /* Phones and tablets in portrait: bottom sheet. Short: header + where the body is now; header tap expands it. */
  #nh-info{max-height:none;padding:0;border-radius:18px 18px 14px 14px}
  #nh-info .ih{padding:16px 92px 8px 16px;cursor:pointer}
  #nh-info .grip{display:block;position:absolute;left:50%;top:6px;width:38px;height:4px;border-radius:2px;background:rgba(201,211,227,.32);transform:translateX(-50%)}
  #nh-info h3{font-size:20px}
  #nh-info .more{display:grid;place-items:center;position:absolute;right:48px;top:14px;width:32px;height:32px;border:0;border-radius:8px;background:rgba(156,195,255,.08);color:var(--fg);transition:transform .2s}
  #nh-infoX{top:14px}
  #nh-info.open .more{transform:rotate(180deg)}
  #nh-info .ib{max-height:136px;overflow:hidden;padding:0 14px 12px;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
  #nh-info.open .ib{max-height:calc(64svh - 70px);overflow:auto;-webkit-mask-image:none;mask-image:none}
  #nh-info .t{padding:7px 9px 8px}
  #nh-info .t .v{font-size:15.5px}
  #nh-bar{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));flex-wrap:wrap;gap:6px;padding:6px 8px}
  /* Phones: the info card sits above the time bar, so the scale switch goes under the top bar, on the right. */
  #nh-leg{left:auto;right:8px;top:124px;bottom:auto;width:auto;min-width:0;max-width:calc(100vw - 16px);padding:2px 10px}
  .nh.panel #nh-leg{display:none}
  #nh-hint{top:auto;bottom:calc(var(--barH,100px) + 60px)}
}

/* tính năng (theo kiểu bảng của Lăng kính sinh quyển) */
.btn.sm{min-height:28px;padding:0 10px;font-size:12.5px}
.btn.pri{background:var(--acc);border-color:var(--acc);color:#04101F;font-weight:600}
.btn:disabled{opacity:.45;cursor:default}
.tmenu{display:flex;flex-direction:column;gap:8px}
.tmenu .btn{display:block;justify-content:flex-start;min-height:38px;text-align:left;white-space:normal;padding:8px 12px;line-height:1.35}
.tmenu .btn small{display:block;color:var(--mute);font-size:11.5px;margin-top:2px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.chips .btn{min-height:28px;padding:0 10px;font-size:12.5px}
.phead{display:flex;align-items:center;gap:6px;margin:0 0 8px}
.phead h2{margin:0}
.back{width:26px;height:26px;border:0;border-radius:8px;background:rgba(106,166,255,.12);font-size:16px;line-height:1;padding:0}
.sub{margin:0 0 8px;font-size:12px;color:var(--mute);font-variant-numeric:tabular-nums}
.elist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.elist li.none{color:var(--mute);font-size:13px;padding:2px 0}
.elist button.ev{all:unset;box-sizing:border-box;display:grid;grid-template-columns:52px 1fr;gap:10px;width:100%;padding:7px 8px;border-radius:10px;background:rgba(106,166,255,.07);cursor:pointer;font-size:12.8px;line-height:1.45}
.elist button.ev:hover,.elist button.ev:focus-visible{background:rgba(106,166,255,.16)}
.elist .pt{padding:3px 0;border-radius:8px;background:rgba(106,166,255,.14);text-align:center;font-size:11.5px;align-self:start;font-variant-numeric:tabular-nums}
.elist .pt b{display:block;font-size:12.5px}
.elist .pn{display:block;font-size:13.5px;margin-bottom:1px}
.elist .pd{color:var(--mute);font-size:12px}
.elist .tour{display:block;padding:10px;border-radius:10px;background:rgba(106,166,255,.07)}
.elist .tour b{display:block;font-family:'Noto Serif',serif;font-size:15px;margin-bottom:2px}
.elist .tour p{margin:0 0 8px;font-size:12.5px;color:var(--mute)}
.elist .sk{display:block;padding:7px 8px;border-radius:10px;background:rgba(106,166,255,.07);font-size:12.5px;line-height:1.5;font-variant-numeric:tabular-nums}
.elist .sk b{font-size:13.5px}
.elist .sk .up{color:#5CE1A0}.elist .sk .dn{color:var(--mute)}
.fld{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;margin:4px 0 10px}
.fld.one{grid-template-columns:1fr}
.fld label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--mute)}
.fld select{height:34px;padding:0 8px;border-radius:8px;border:1px solid rgba(201,211,227,.2);background:rgba(5,9,18,.6);color:var(--fg);font-size:13.5px;min-width:0}
dl.res{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;margin:0 0 8px;font-size:13px}
dl.res dt{color:var(--mute)}dl.res dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
dl.res dd small{display:block;color:var(--mute);font-size:11px}
.recB{display:flex;gap:8px;margin:10px 0 8px}.recB .btn{flex:1;justify-content:center}
@keyframes nhrec{50%{opacity:.25}}
@media (max-width:820px){
}

/* Tablets in portrait: centred sheet, three tiles per row. */
@media (min-width:601px) and (max-width:820px){
  #nh-info{left:50%;right:auto;width:min(680px,calc(100vw - 16px));transform:translateX(-50%)}
  #nh-info .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  #nh-info .ib{max-height:120px}
}
/* Tablets in landscape and small laptops: slightly narrower card. */
@media (min-width:821px) and (max-width:1180px){
  #nh-info{width:320px}
  #nh-info .t .v{font-size:16px}
}
@media (prefers-reduced-motion:reduce){#nh-info .more{transition:none}}

/* Journey progress: chapters (keyframes) as ticks. */
#nh-jFill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:2px;background:linear-gradient(90deg,#6aa6ff,var(--acc2))}
#nh-jTicks b{position:absolute;top:-3px;width:2px;height:10px;margin-left:-1px;border-radius:1px;background:rgba(230,235,243,.55)}
#nh-jTicks em{position:absolute;top:10px;transform:translateX(-50%);font-style:normal;font-size:10.5px;color:var(--mute);white-space:nowrap}
#nh-jTicks em.on{color:var(--fg);font-weight:600}
@media (max-width:600px){#nh-jTicks em{display:none}#nh-jTicks em.on{display:block}}

/* Journey: cinema mode. Scene first; type set like film subtitles; controls on demand. */
#nh-vig{position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse 120% 95% at 50% 46%,transparent 58%,rgba(0,0,0,.42) 100%)}
.nh.touring #nh-top,.nh.touring #nh-bar,.nh.touring #nh-leg,.nh.touring #nh-info,.nh.touring .side,.nh.touring #nh-hint,.nh.touring #nh-topHandle,.nh.touring #nh-barHandle{display:none!important}
.nh.touring .nh-label{pointer-events:none}
#nh-cine{position:fixed;inset:0;z-index:5;pointer-events:none}
#nh-cine .cscrim{position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(to top,rgba(2,4,10,.82),rgba(2,4,10,.38) 55%,transparent)}
#nh-cine .ctop{position:absolute;left:max(20px,env(safe-area-inset-left));right:20px;top:calc(18px + env(safe-area-inset-top,0px));display:flex;align-items:center;gap:12px}
#nh-cine .cname{margin:0;font-size:13px;color:var(--mute);letter-spacing:.01em}
#nh-cine .cname #nh-tourN{color:var(--fg);font-variant-numeric:tabular-nums;margin-left:6px}
#nh-cine .cbot{position:absolute;left:max(32px,env(safe-area-inset-left));bottom:calc(26px + env(safe-area-inset-bottom,0px));width:min(620px,calc(100vw - 64px))}
#nh-cine .csub{margin:0 0 6px;font-family:'Noto Serif',serif;font-weight:600;font-size:22px;line-height:1.18;letter-spacing:-.005em;color:#F2F5FA;text-shadow:0 2px 18px rgba(0,0,0,.7);transition:font-size .9s cubic-bezier(.2,.7,.2,1)}
#nh-cine .csub.big{font-size:44px}
#nh-cine .chead{margin:0;font-size:16px;font-weight:600;color:var(--fg);text-shadow:0 1px 8px rgba(0,0,0,.8)}
#nh-cine .cnum{margin:3px 0 0;font-size:13px;color:#C3CDDC;font-variant-numeric:tabular-nums;text-shadow:0 1px 8px rgba(0,0,0,.8)}
#nh-cine .cfact{margin:10px 0 0;padding-left:10px;border-left:2px solid var(--amber);font-size:14px;color:#F6E2B3;font-variant-numeric:tabular-nums;text-shadow:0 1px 8px rgba(0,0,0,.8)}
#nh-cine .cmore{display:none;margin:10px 0 0;max-width:56ch;font-size:13.5px;line-height:1.55;color:#C9D3E3}
#nh-cine.paused .cmore{display:block}
#nh-cine .cctl{display:flex;align-items:center;gap:14px;margin:14px 0 4px}
#nh-cine .cbtn{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border-radius:50%;border:1px solid rgba(230,235,243,.22);background:rgba(10,16,32,.55);color:var(--fg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#nh-cine .cbtn:hover{border-color:rgba(230,235,243,.5)}
#nh-cine .cbtn:disabled{opacity:.35;cursor:default}
#nh-cine .cbtn.big{width:54px;height:54px;background:rgba(230,235,243,.92);color:#08101F;border-color:transparent}
#nh-cine .cbtn.big .ico{width:24px;height:24px}
#nh-cine .cbtn .i-play{display:none;fill:currentColor;stroke:none}
#nh-cine.paused .cbtn .i-play{display:inline}
#nh-cine.paused .cbtn .i-pause{display:none}
#nh-cine .cbtn:focus-visible{outline:2px solid #6AA6FF;outline-offset:2px}
/* Controls fade out while playing; a tap, a mouse move or a pause brings them back. */
#nh-cine .ctop,#nh-cine .cctl{transition:opacity .35s}
#nh-cine:not(.ui) .ctop,#nh-cine:not(.ui) .cctl{opacity:0}
#nh-cine:not(.ui) .ctop .cbtn,#nh-cine:not(.ui) .cctl .cbtn{pointer-events:none}
#nh-cine .jbar{position:relative;height:3px;margin:14px 0 22px;border-radius:2px;background:rgba(230,235,243,.18)}
#nh-cine .jbar i{position:absolute;left:0;top:0;bottom:0;border-radius:2px;background:linear-gradient(90deg,#F0A06F,#F3C969)}
#nh-cine .cend{pointer-events:auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 32px));padding:22px 24px 20px;border-radius:20px}
#nh-cine .cend .ck{margin:0;font-size:13px;color:var(--mute)}
#nh-cine .cend h2{margin:4px 0 14px;font-family:'Noto Serif',serif;font-weight:600;font-size:26px;line-height:1.2;color:#F2F5FA}
#nh-cine .cend dl{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:0 0 18px}
#nh-cine .cend dt{font-size:12px;color:var(--mute)}
#nh-cine .cend dd{margin:2px 0 0;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}
#nh-cine .cendb{display:flex;flex-wrap:wrap;gap:8px}
#nh-cine.ended .cbot,#nh-cine.ended .cscrim{opacity:.25}
@media (max-width:600px){
  #nh-cine .ctop{left:14px;right:14px;top:calc(12px + env(safe-area-inset-top,0px))}
  #nh-cine .cbot{left:16px;width:calc(100vw - 32px);bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  #nh-cine .csub{font-size:19px}
  #nh-cine .csub.big{font-size:30px}
  #nh-cine .chead{font-size:15px}
  #nh-cine .cfact{font-size:13px}
  #nh-cine .cmore{font-size:13px}
  #nh-cine .cctl{justify-content:center;gap:22px}
  #nh-cine .cend dd{font-size:15.5px}
}
@media (prefers-reduced-motion:reduce){#nh-cine .csub{transition:none}}
@media (min-width:801px){#nh-cine .cend{left:auto;right:6vw;transform:translateY(-50%);width:460px}}
.nh-label.g-planet span,.nh-label.g-sun span{font-size:13.5px;letter-spacing:.005em}
/* Scale switch in the top bar; body list in columns; orbit sub-layers. */
#nh-scaleBox{margin-left:auto;gap:8px;padding:0 4px;font-size:13px;font-weight:600;white-space:nowrap}
.side.wide{width:min(1000px,calc(100vw - 32px))}
#nh-list .rad{padding:5px 8px;font-size:13px}
.tsub{margin:0 0 6px 4px;padding-left:12px;border-left:1px solid var(--line)}
.tsub .tg{font-size:12.5px;padding:3px 0;color:#C9D3E3}
.tsub .tg input{transform:scale(.85);transform-origin:right center}
.tsub.off{opacity:.4;pointer-events:none}
@media (max-width:820px){
  #nh-scaleBox{order:4;margin-left:auto}
}
.nh-label.g-card{pointer-events:none}
.nh-label.g-card span{left:0;transform:translate(-50%,-50%);font-size:13px;font-weight:700;color:#F3C969;letter-spacing:.04em}
@media (max-width:820px){#nh-skyP{max-height:42svh}}
/* Journey: start on the reader's cue. */
#nh-cine .cstart{pointer-events:auto;display:inline-flex;align-items:center;gap:10px;margin:16px 0 4px;min-height:48px;padding:0 24px;border:0;border-radius:999px;background:#F2F5FA;color:#08101F;font-size:15.5px;font-weight:700;box-shadow:0 8px 30px rgba(0,0,0,.45)}
#nh-cine .cstart::before{content:"";width:0;height:0;border-style:solid;border-width:7px 0 7px 11px;border-color:transparent transparent transparent currentColor}
#nh-cine.started .cstart{display:none}
#nh-cine:not(.started) .cctl{display:none}
#nh-cine:not(.started) .cmore{display:block}
/* Journey cards. */
#nh-tourList{display:grid;gap:10px}
#nh-tourList .tcard{display:block;width:100%;text-align:left;padding:14px 16px;border-radius:14px;border:1px solid rgba(201,211,227,.16);background:linear-gradient(135deg,rgba(37,99,235,.18),rgba(15,26,46,.7) 60%);color:var(--fg);font-family:'Noto Serif',serif;font-size:15.5px;font-weight:600;line-height:1.35}
#nh-tourList .tcard:hover{border-color:rgba(156,195,255,.5)}
#nh-tourList .tcard b{display:block;font-size:17px;margin-bottom:2px;color:#F2F5FA}
#nh-tourList .tcard span{font-family:'Be Vietnam Pro',sans-serif;font-weight:500;font-size:13.5px;color:#C9D3E3}
/* Event types, grouped. */
/* Names switched off: no name anywhere (flyby marks, simulated craft, size comparison keep their dot/size). */
.nh.nonames .nh-label.g-mark span,.nh.nonames .nh-label.g-sim span,.nh.nonames #nh-cmpLabels .cl b{display:none}
dl.res dt.sh{grid-column:1/-1;margin-top:6px;color:var(--acc2);font-weight:600;font-size:12.5px}
dl.res dt.sh:first-child{margin-top:0}
/* Phones: the size comparison keeps a short panel at the bottom so the bodies stay in view. */
@media (max-width:820px){#nh-cmpP{max-height:30svh}#nh-cmpP .slist li{padding:4px 8px;font-size:12px}}
/* Touch screens: every control at least about 38 px (thumb size); the bar handles get a larger hit area. */
@media (pointer:coarse){
  .btn.sm{min-height:38px}
  .back{width:38px;height:38px}
  .edgeH{width:96px;height:34px;margin-left:-48px}
  .edgeH::after{left:30px;right:30px;top:15px}
}
/* Narrow phones: the speed control gets its own row (a usable slider), the clock fills the first row. */
@media (max-width:420px){
}
@media (pointer:coarse){
  #nh-list .rad{min-height:38px}
  .tg{padding:9px 0}
  .tsub .tg{padding:7px 0}
}
/* Phones and portrait tablets: the transfer panel stays low (the orbits show above it); its two buttons stay in
   view at the bottom of the panel while the numbers scroll. */
@media (max-width:820px){
}
/* Ngân Hà: no time bar, so panels and the card reach down to the bottom of the screen. */
.nh{--barH:-8px}
.side,#nh-info{max-height:calc(100vh - 100px)}
#nh-leg{bottom:16px;padding:6px 12px}
.nh-label.g-sun{--gc:#F3C969}.nh-label.g-core{--gc:#FFD9A0}.nh-label.g-struct{--gc:#E8C9A0}.nh-label.g-arm{--gc:#9CC3FF}
.nh-label.g-star{--gc:#E6EBF3}.nh-label.g-nebula{--gc:#FF8FA8}.nh-label.g-cluster{--gc:#A9D6FF}.nh-label.g-galaxy{--gc:#C6B2EC}
.nh-label.g-arm span{font-style:italic;font-weight:500;letter-spacing:.02em}
.rad.g-sun{--c:#F3C969}.rad.g-core{--c:#FFD9A0}.rad.g-struct{--c:#E8C9A0}.rad.g-arm{--c:#9CC3FF}.rad.g-star{--c:#E6EBF3}.rad.g-nebula{--c:#FF8FA8}.rad.g-cluster{--c:#A9D6FF}.rad.g-galaxy{--c:#C6B2EC}
#nh-info .facts p{margin:10px 0 0;font-size:13px;line-height:1.55;color:#C9D3E3}
.elist .sk{all:unset;box-sizing:border-box;display:block;width:100%;padding:8px 10px;border-radius:10px;background:rgba(106,166,255,.07);font-size:12.5px;line-height:1.45;color:var(--mute);cursor:pointer}
.elist .sk b{font-size:13.5px;color:var(--fg)}
.elist .sk:hover,.elist .sk:focus-visible{background:rgba(106,166,255,.16)}
#nh-skyNow{line-height:1.5;color:#C9D3E3}
#nh-skyNow b{color:var(--fg)}
@media (max-width:820px){#nh-skyP{max-height:42svh}#nh-leg{top:auto;bottom:calc(10px + env(safe-area-inset-bottom,0px));right:8px}}
/* List: one near-to-far sequence flowing down the columns (no empty cells), set like the index of an atlas: name,
   dotted leader, distance from the Sun in tabular figures. Three columns on wide screens, two on tablets, one on
   phones. */
#nh-list{display:block;columns:3;column-gap:40px}
#nh-list h3{margin:20px 0 4px;padding:0 0 6px;border-bottom:1px solid var(--line);font-family:var(--serif);font-style:italic;font-weight:500;font-size:17px;letter-spacing:0;color:var(--acc2);break-after:avoid}
#nh-list h3:first-child{margin-top:0}
#nh-list .rad{display:flex;width:100%;align-items:baseline;gap:8px;padding:6px 2px;border-radius:0;font-size:13.5px;break-inside:avoid}
#nh-list .rad i{width:6px;height:6px;align-self:center;margin:0 2px 0 0}
#nh-list .rad .nm{flex:0 1 auto;min-width:0}
#nh-list .rad .ld{flex:1 1 14px;min-width:14px;height:0;border-bottom:1px dotted rgba(238,233,222,.24);transform:translateY(-3px)}
#nh-list .rad small{flex:0 0 auto;margin:0;font-size:12.5px;color:var(--mute);white-space:nowrap;font-variant-numeric:tabular-nums lining-nums}
#nh-list .rad:hover,#nh-list .rad:focus-visible{background:none}
#nh-list .rad:hover .nm,#nh-list .rad:focus-visible .nm{color:var(--acc)}
@media (max-width:1180px){#nh-list{columns:2}}
@media (max-width:640px){#nh-list{columns:1}}
#nh-listP.side.wide{width:min(1080px,calc(100vw - 48px))}

/* ===== Atlas design (Milky Way mode) =====
   The look of a star atlas laid over the sky: a serif (Cormorant Garamond) for names and titles, the sans (Be Vietnam
   Pro) for controls and figures; panels as dark plates with warm hairlines; gold from the galactic core as the one
   accent for what is active or chosen; sentence case, no tracked capitals. */
:root{--bg:#03040A;--glass:rgba(9,10,17,.76);--line:rgba(226,206,160,.17);--fg:#EEE9DE;--mute:#9D9BA4;--acc:#E3B866;--acc2:#CDB684;--serif:'Cormorant Garamond','Noto Serif',serif}
.glass{border-radius:6px;box-shadow:0 18px 50px rgba(0,0,0,.42)}
.btn{border-color:var(--line);background:rgba(238,233,222,.04);border-radius:6px}
.btn:hover{border-color:rgba(227,184,102,.45)}
.btn[aria-pressed="true"]{background:rgba(227,184,102,.16);border-color:rgba(227,184,102,.5);color:#F6E7C4}
.nh .btn:focus-visible,.nh input:focus-visible,.nh-label:focus-visible span,.nh button:focus-visible{outline:1.5px solid var(--acc);outline-offset:2px}

/* Top: the title stands on the sky; the tools sit in one slim capsule beside it. */
#nh-top.glass{background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;left:24px;right:24px;top:14px;padding:4px 0;gap:20px}
#nh-brand{font-family:var(--serif);font-style:italic;font-weight:500;font-size:31px;letter-spacing:0;line-height:1;color:var(--fg);text-shadow:0 2px 18px rgba(0,0,0,.9)}
#nh-tools{gap:2px;padding:4px;border-radius:999px;background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
#nh-tools .btn.ib{width:38px;min-height:38px;border-radius:50%;border-color:transparent;background:none;color:#D9D3C5}
#nh-tools .btn.ib .ico{width:19px;height:19px}
#nh-tools .btn.ib:hover{background:rgba(238,233,222,.08);border-color:transparent}
#nh-tools .btn.ib[aria-pressed="true"]{background:rgba(227,184,102,.18);color:var(--acc);border-color:transparent}

/* Panels: plates with a serif title. */
.side{padding:22px 24px 20px}
.side h2,.phead h2{margin:0 0 14px;font-family:var(--serif);font-weight:600;font-size:26px;letter-spacing:0;line-height:1.05;color:var(--fg)}
.phead{gap:10px;margin:0 0 14px}
.phead h2{margin:0}
.back{width:30px;height:30px;border:1px solid var(--line);border-radius:50%;background:none;color:var(--mute);font-size:17px}
.back:hover{color:var(--fg);border-color:rgba(227,184,102,.45)}
.tg{padding:10px 0;font-size:14px;border-bottom:1px solid rgba(226,206,160,.08)}
.tg:last-child{border-bottom:0}
.tg input{width:30px;height:16px;background:rgba(238,233,222,.16)}
.tg input::after{width:12px;height:12px;background:#EEE9DE}
.tg input:checked{background:var(--acc)}
.tg input:checked::after{left:16px;background:#1B1509}
.tmenu{gap:0}
.tmenu .btn{min-height:50px;padding:12px 2px;border:0;border-bottom:1px solid rgba(226,206,160,.1);border-radius:0;background:none;font-family:var(--serif);font-weight:600;font-size:19px;line-height:1.2}
.tmenu .btn:last-child{border-bottom:0}
.tmenu .btn:hover{color:var(--acc);background:none}
#nh-tourList .tcard{border-radius:6px;border:1px solid var(--line);background:linear-gradient(160deg,rgba(227,184,102,.12),rgba(238,233,222,.02) 60%);font-family:var(--serif);padding:16px 18px}
#nh-tourList .tcard:hover{border-color:rgba(227,184,102,.5)}
#nh-tourList .tcard b{font-size:21px;font-weight:600;line-height:1.15;color:var(--fg);margin-bottom:6px}
#nh-tourList .tcard span{font-size:13px;color:var(--mute)}
.chips .btn{border-radius:999px}
.sub,#nh-skyNow{font-size:13px;line-height:1.55;color:#CFC9BC}
#nh-skyNow b{color:var(--acc)}
.elist .sk{border-radius:0;background:none;padding:10px 2px;border-bottom:1px solid rgba(226,206,160,.1)}
.elist .sk b{font-family:var(--serif);font-weight:600;font-size:17px}
.elist .sk:hover,.elist .sk:focus-visible{background:none}
.elist .sk:hover b{color:var(--acc)}

/* Info card: the name large in the serif, the kind in italics, the figures as a ruled table. */
@media (min-width:821px){.side,#nh-info{top:74px}#nh-info{width:360px}}
#nh-info .ih{padding:22px 54px 4px 22px}
#nh-info .k{font-family:var(--serif);font-style:italic;font-weight:500;font-size:16.5px;letter-spacing:0;color:var(--acc2)}
#nh-info h3{margin:2px 0 0;font-family:var(--serif);font-weight:600;font-size:33px;line-height:1.04}
#nh-info .ib{padding:0 22px 20px}
#nh-info .grp:first-child{margin-top:12px}
#nh-info .tiles{display:block;border-top:1px solid var(--line)}
#nh-info .t{flex-direction:row;align-items:baseline;justify-content:space-between;gap:14px;padding:9px 0;border:0;border-bottom:1px solid rgba(226,206,160,.09);border-radius:0;background:none}
#nh-info .t .l{font-size:12.5px;line-height:1.35}
#nh-info .t .v{font-size:15px;font-weight:500;text-align:right}
#nh-info .facts p{margin:14px 0 0;font-size:13.5px;line-height:1.62;color:#D8D2C5}
#nh-info .facts p+p{margin-top:10px;padding-top:10px;border-top:1px solid rgba(226,206,160,.08)}
#nh-infoX{right:12px;top:14px;border-radius:50%;font-size:20px}
#nh-infoX:hover{background:rgba(238,233,222,.08)}

/* Scene labels, scale, notices. */
.nh-label.sel span{background:rgba(227,184,102,.2);color:#FFF4DC;border-radius:3px}
#nh-leg .sc{color:#D9D3C5;font-size:12px}
#nh-leg .sc i{height:6px;border:1px solid #D9D3C5;border-top:0}
#nh-load{font-family:var(--serif);font-style:italic;font-size:20px;padding:14px 22px}
#nh-tip{border-radius:4px;background:rgba(9,10,17,.94);border-color:var(--line)}
#nh-leg.glass{background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0;min-width:0}
#nh-leg .sc{text-shadow:0 1px 6px #000}
#nh-info .more{border-radius:50%;background:rgba(238,233,222,.06)}
@media (min-width:821px){#nh-leg.glass{right:26px;bottom:22px}}
@media (max-width:820px){#nh-leg.glass{right:14px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}}

/* Journey: subtitles in the serif, the start in gold. */
#nh-cine .csub{font-family:var(--serif);font-weight:600;font-size:30px;line-height:1.08;letter-spacing:0}
#nh-cine .csub.big{font-size:58px}
#nh-cine .cfact{border-left-color:var(--acc)}
#nh-cine .cstart{background:var(--acc);color:#1B1509;border-radius:999px}
#nh-cine .cbtn.big{background:#EEE9DE;color:#1B1509}
#nh-jFill{background:linear-gradient(90deg,#B98B45,var(--acc))}

@media (max-width:820px){
  #nh-top.glass{left:10px;right:10px;top:calc(8px + env(safe-area-inset-top,0px));gap:10px;flex-wrap:nowrap}
  #nh-brand{font-size:24px}
  #nh-tools{order:0;flex-wrap:nowrap}
  #nh-tools .btn.ib{width:34px;min-height:34px}
  .side,#nh-info{border-radius:10px 10px 6px 6px}
  .side{padding:18px 18px 16px}
  .side h2,.phead h2{font-size:23px}
  #nh-info h3{font-size:27px}
  #nh-info .ih{padding:18px 92px 4px 18px}
  #nh-info .t{padding:8px 0}
  #nh-cine .csub{font-size:24px}
  #nh-cine .csub.big{font-size:36px}
}
@media (max-width:820px){.nh.panel #nh-leg,.nh:has(#nh-info:not([hidden])) #nh-leg{display:none}}
#nh-list-unit{margin:-8px 0 14px;font-size:12.5px;color:var(--mute)}
@media (max-width:380px){#nh-brand{font-size:20px}#nh-tools .btn.ib{width:31px;min-height:31px}#nh-top.glass{gap:6px}}

/* ===== Experience: entry motion, hover names, selection, search, browsing ===== */
/* Opening: the interface arrives after the galaxy (one moment, with the camera glide). */
.nh.intro #nh-top,.nh.intro #nh-leg{opacity:0}
#nh-top,#nh-leg{transition:opacity .9s ease .2s}
/* Panels and the card answer a press: a short fade and lift. */
@keyframes nhIn{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}
@keyframes nhUp{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
.side:not([hidden]){animation:nhIn .18s ease-out}
#nh-info:not([hidden]){animation:nhIn .2s ease-out}
@media (max-width:820px){.side:not([hidden]),#nh-info:not([hidden]){animation-name:nhUp}}
/* First-visit hint: one line, quiet. */
#nh-hint{font-size:13.5px;color:#E7E1D3;border-radius:999px;padding:9px 18px;top:auto;bottom:64px}
@media (max-width:820px){#nh-hint{bottom:calc(56px + env(safe-area-inset-bottom,0px))}}
/* Hover name. */
#nh-tip{display:flex;flex-direction:column;gap:1px;padding:6px 10px;font-size:13px;line-height:1.3;color:var(--fg)}
#nh-tip b{font-weight:600}
#nh-tip small{font-family:var(--serif);font-style:italic;font-size:14px;color:var(--acc2)}
/* Selected object: a gold ring that settles once around its marker. */
@keyframes nhRing{from{box-shadow:0 0 0 2px rgba(227,184,102,.95),0 0 0 22px rgba(227,184,102,0)}to{box-shadow:0 0 0 2px rgba(227,184,102,.95),0 0 0 7px rgba(227,184,102,.16)}}
.nh-label.sel i{display:block;background:var(--acc);box-shadow:0 0 0 2px rgba(227,184,102,.95),0 0 0 7px rgba(227,184,102,.16);animation:nhRing .7s ease-out}
/* Search in the list. */
.lsearch{display:flex;align-items:center;gap:8px;margin:0 0 16px;padding:0 12px;height:40px;border:1px solid var(--line);border-radius:999px;background:rgba(238,233,222,.04);color:var(--mute)}
.lsearch:focus-within{border-color:rgba(227,184,102,.55);color:var(--fg)}
.lsearch input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;font-size:14px;color:var(--fg)}
.lsearch input::placeholder{color:#7F7D86}
.lsearch input::-webkit-search-cancel-button{filter:invert(.7)}
.nh .lsearch input:focus-visible{outline:none}
#nh-list .lg{break-inside:auto}
#nh-list .lg:not(:first-child) h3{margin-top:22px}
#nh-list .lnone{margin:6px 0;font-size:13.5px;color:var(--mute)}
/* Previous / next in the card. */
#nh-info .inav{display:flex;justify-content:space-between;gap:10px;margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}
#nh-info .inav button{display:flex;align-items:baseline;gap:6px;max-width:48%;padding:6px 0;border:0;background:none;color:var(--mute);font-size:12.5px;line-height:1.3;text-align:left}
#nh-info .inav .nx{margin-left:auto;text-align:right}
#nh-info .inav span{font-family:var(--serif);font-size:20px;line-height:0;color:var(--acc2)}
#nh-info .inav button:hover{color:var(--fg)}
@media (prefers-reduced-motion:reduce){.side:not([hidden]),#nh-info:not([hidden]),.nh-label.sel i{animation:none}#nh-top,#nh-leg{transition:none}}

/* ===== The Milky Way turning: time control at the bottom centre, shown in the overview ===== */
#nh-time{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:4;display:none;align-items:center;gap:12px;padding:6px 8px 6px 6px;border-radius:999px;max-width:calc(100vw - 24px)}
.nh.timeOn #nh-time{display:flex}
.nh.touring #nh-time,.nh.intro #nh-time{display:none!important}
#nh-time .tbtn{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--acc);color:#1B1509}
#nh-time .tbtn .ico{width:18px;height:18px}
#nh-time .i-play{display:none}
#nh-time.paused .i-play{display:block}
#nh-time.paused .i-pause{display:none}
#nh-time .tval{display:flex;flex-direction:column;min-width:0;line-height:1.2}
#nh-time .tval b{font-family:var(--serif);font-weight:600;font-size:19px;white-space:nowrap;font-variant-numeric:lining-nums tabular-nums}
#nh-time .tval small{font-size:11.5px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#nh-time .tchip{flex:0 0 auto;height:30px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:none;color:#D9D3C5;font-size:12.5px;white-space:nowrap}
#nh-time .tchip:hover{border-color:rgba(227,184,102,.5);color:var(--fg)}
#nh-hint{bottom:84px}
@media (max-width:820px){
  #nh-time{bottom:calc(10px + env(safe-area-inset-bottom,0px));gap:8px}
  #nh-time .tval b{font-size:17px}
  .nh.timeOn #nh-leg.glass{bottom:calc(64px + env(safe-area-inset-bottom,0px))}
  .nh:has(#nh-info:not([hidden])) #nh-time,.nh.panel #nh-time{display:none!important}
  #nh-hint{bottom:calc(108px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:420px){#nh-time .tval small{max-width:150px}#nh-time .tchip{padding:0 9px}}

/* ===== Close-ups: each object's own scene ===== */
#nh-fade{position:fixed;inset:0;z-index:3;background:#000;opacity:0;pointer-events:none;transition:opacity .3s ease}
.nh.fading #nh-fade{opacity:1}
.nh.closeup #nh-labels,.nh.closeup #nh-time{display:none!important}
#nh-cuLabels{position:fixed;inset:0;pointer-events:none;z-index:1}
#nh-cuLabels .cul{position:absolute;left:0;top:0;white-space:nowrap;font-size:12px;color:#CFC9BC;text-shadow:0 1px 4px #000,0 0 10px #000;translate:8px -50%}
#nh-cuLabels .cul.orb{color:#9DB8F2;font-size:11.5px}
#nh-cuLabels .cul.sun{color:#F3C969}
#nh-cuLabels .cul.star{font-family:var(--serif);font-style:italic;font-size:15px;color:var(--fg)}
#nh-cuLabels .cul.size{color:var(--acc2);font-family:var(--serif);font-style:italic;font-size:15px}
#nh-cuTime{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:3;font-family:var(--serif);font-weight:600;font-size:19px;color:var(--fg);text-shadow:0 1px 8px #000;font-variant-numeric:lining-nums tabular-nums;pointer-events:none}
#nh-info .facts p.cunote{font-size:12.5px;color:var(--mute);font-style:italic;border-top:1px solid rgba(226,206,160,.08);padding-top:10px}
@media (max-width:820px){#nh-cuTime{bottom:auto;top:calc(62px + env(safe-area-inset-top,0px));font-size:16px}}
@media (prefers-reduced-motion:reduce){#nh-fade{transition:none}}

/* Questions in Khám phá; the night-sky entry after a rule. */
.tmenu.tsep{margin-top:10px;padding-top:6px;border-top:1px solid var(--line)}
.tmenu.tsep .btn{font-family:'Be Vietnam Pro',sans-serif;font-weight:500;font-size:14px;color:var(--acc2)}

/* Night sky: hours per night with the centre up in a dark sky, month by month (computed). */
#nh-skyMonths{margin:4px 0 14px}
#nh-skyMonths .mh{margin:0 0 8px;font-size:12.5px;color:var(--mute)}
#nh-skyMonths .mbars{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;align-items:end;height:92px}
#nh-skyMonths .mb{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:3px;font-variant-numeric:tabular-nums}
#nh-skyMonths .mb i{display:block;width:100%;min-height:1px;border-radius:2px 2px 0 0;background:rgba(227,184,102,.55)}
#nh-skyMonths .mb.now i{background:var(--acc)}
#nh-skyMonths .mb b{order:-1;font-size:10px;font-weight:500;color:var(--mute)}
#nh-skyMonths .mb span{font-size:11px;color:#CFC9BC}
#nh-skyMonths .mb.now span{color:var(--acc);font-weight:600}
#nh-cuLabels .cul.c{translate:-50% 0}
#nh-info .facts p.see{margin-top:12px;font-size:14.5px;line-height:1.6;color:var(--fg)}
#nh-info h4.more-h{margin:16px 0 4px;font-family:var(--serif);font-style:italic;font-weight:500;font-size:15px;letter-spacing:0;color:var(--acc2)}
#nh-info h4.more-h::after{display:none}
#nh-info .moref p{margin:6px 0 0;font-size:12.5px;line-height:1.55;color:var(--mute)}
#nh-info .facts p.cunote{border-top:0;padding-top:0;margin-top:8px}

/* ===== Opening film and desktop toolbar ===== */
/* Film: letterbox bars slide in, subtitles below; a quiet skip at the bottom right; no transport controls. */
#nh-cine .cbar{position:absolute;left:0;right:0;height:9vh;background:#000;transform:scaleY(0);transition:transform .9s cubic-bezier(.2,.7,.2,1);pointer-events:none}
#nh-cine .cbar.t{top:0;transform-origin:top}
#nh-cine .cbar.b{bottom:0;transform-origin:bottom}
#nh-cine.film .cbar{transform:scaleY(1)}
#nh-cine.film .cctl,#nh-cine.film .jbar,#nh-cine.film .ctop,#nh-cine.film .cstart{display:none!important}
#nh-cine .cskip{display:none}
#nh-cine.film .cskip{pointer-events:auto;display:inline-flex;position:fixed;right:28px;bottom:calc(9vh + 18px);height:36px;align-items:center;padding:0 16px;border:1px solid rgba(238,233,222,.28);border-radius:999px;background:rgba(0,0,0,.35);color:#E7E1D3;font-size:13px}
#nh-cine.film .cskip:hover{border-color:var(--acc);color:var(--fg)}
#nh-cine.film .csound{right:150px;gap:8px}#nh-cine.film .csound .ico{width:16px;height:16px}#nh-cine.film .csound[aria-pressed="true"]{border-color:var(--acc)}
#nh-cine.film .cbot{bottom:calc(9vh + 22px)}
#nh-cine.film .csub{transition:opacity .6s}
#nh-cine.film .csub.big{font-size:72px;font-style:italic;font-weight:500}
@media (max-width:600px){#nh-cine.film .csub.big{font-size:44px}#nh-cine.film .cskip{right:16px}#nh-cine.film .csound{right:132px}}
/* Khám phá: replay the film, then the questions. */
#nh-expP .tfilm .btn{font-family:'Be Vietnam Pro',sans-serif;font-weight:500;font-size:14px;color:var(--acc)}
#nh-expP .qh{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--line);font-family:var(--serif);font-style:italic;font-size:16px;color:var(--acc2)}
/* Toolbar: names on the buttons on wide screens (computers first); icons only on narrow ones. */
#nh-tools .bl{display:none}
@media (min-width:1100px){
  #nh-tools .btn.ib{width:auto;padding:0 14px 0 12px;border-radius:999px;gap:8px}
  #nh-tools .bl{display:inline;font-size:13.5px;font-weight:500;white-space:nowrap}
}
#nh-cine.film .cmore{display:block;max-width:60ch}

/* Powers-of-ten film: the width of the view at the top right; captions fade between levels. */
#nh-zfScale{position:absolute;right:30px;top:calc(9vh + 16px);margin:0;text-align:right;font-family:var(--serif);font-weight:500;font-size:34px;line-height:1;color:var(--fg);font-variant-numeric:lining-nums;text-shadow:0 2px 14px #000}
#nh-zfScale small{display:block;margin-bottom:4px;font-family:'Be Vietnam Pro',sans-serif;font-size:11.5px;color:var(--mute)}
#nh-zfTitle{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 10vw;text-align:center;pointer-events:none;opacity:0;transition:opacity 1.8s ease}
#nh-zfTitle.on{opacity:1}
#nh-zfTitle h2{margin:0;max-width:30ch;font-family:var(--serif);font-weight:400;font-size:clamp(24px,2.6vw,38px);line-height:1.3;color:#F3EEE3;text-shadow:0 4px 40px rgba(0,0,0,.85)}
#nh-zfTitle.big h2{font-weight:500;font-size:clamp(42px,6.6vw,96px);line-height:1.02;letter-spacing:.01em}
#nh-zfTitle p{margin:20px 0 0;font-family:'Be Vietnam Pro',sans-serif;font-size:12px;letter-spacing:.32em;color:#B9B2A2}
#nh-zfSub{position:absolute;left:50%;bottom:calc(9vh + 84px);transform:translateX(-50%);width:min(760px,86vw);margin:0;text-align:center;pointer-events:none;opacity:0;transition:opacity 1.1s ease}
#nh-zfSub.on{opacity:1}
#nh-zfSub small{display:block;margin-bottom:10px;font-family:'Be Vietnam Pro',sans-serif;font-size:12px;letter-spacing:.34em;color:#CFC6B2}
#nh-zfSub small:empty{display:none}
#nh-zfSub span{font-family:var(--serif);font-weight:400;font-size:clamp(19px,1.8vw,26px);line-height:1.45;color:#FBF7EE;text-shadow:0 1px 3px rgba(0,0,0,.95),0 2px 22px rgba(0,0,0,.9)}
#nh-zfHint{position:absolute;left:50%;top:calc(9vh + 22px);transform:translateX(-50%);margin:0;font-size:12.5px;letter-spacing:.04em;color:#CFC8B8;opacity:0;transition:opacity 1s ease;pointer-events:none}
#nh-zfHint.on{opacity:.85}
#nh-zfScale{transition:opacity 1.2s ease}#nh-zfScale.dim{opacity:0}
#nh-zfScale{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
#nh-zfScale .rl{position:relative;display:block;width:var(--len,100px);height:14px;border-radius:2px;background:linear-gradient(rgba(240,233,218,.16),rgba(240,233,218,.08));box-shadow:inset 0 0 0 1px rgba(240,233,218,.55),0 2px 10px rgba(0,0,0,.55)}
#nh-zfScale .rl i{position:absolute;inset:0 0 auto 0;height:100%;background:repeating-linear-gradient(to right,rgba(246,240,228,.9) 0 1px,transparent 1px calc(var(--len,100px)/10)) left top/100% 5px no-repeat,repeating-linear-gradient(to right,rgba(246,240,228,.95) 0 1.5px,transparent 1.5px calc(var(--len,100px)/2)) left top/calc(100% + 1.5px) 9px no-repeat}
#nh-zfScale b{font-weight:500;font-size:26px;line-height:1}
#nh-cine.film .csub,#nh-cine.film .chead{display:none}
#nh-zfGrain{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.62) 0,rgba(0,0,0,.28) 24%,transparent 42%),radial-gradient(ellipse at center,transparent 58%,rgba(0,0,0,.5) 100%)}
#nh-cine:not(.film) #nh-zfGrain,#nh-cine:not(.film) #nh-zfSub,#nh-cine:not(.film) #nh-zfHint{display:none}
@media (max-width:600px){#nh-zfSub{bottom:calc(9vh + 72px)}}
#nh-cine.film.titling .cbot{opacity:0}
#nh-cine.film .cbot .chead{font-family:var(--serif);font-style:italic;font-weight:400;font-size:19px;line-height:1.45;max-width:46ch;color:#E9E3D6}
@media (max-width:600px){#nh-cine.film .cbot .chead{font-size:15.5px}}
#nh-cine.film .cbot{transition:opacity .5s}
#nh-cine.film .cbot.off{opacity:0}
@media (max-width:600px){#nh-zfScale{right:16px;font-size:24px}}

/* The Pale Blue Dot in the opening film: Voyager 1's view of the Earth (14/02/1990), an illustration of the picture:
   black sky, rays of scattered sunlight across the frame, the Earth a point of light about a pixel in one of them. */
#nh-pbd{position:absolute;inset:0;background:#030303;opacity:0;transition:opacity 1.2s ease;overflow:hidden;pointer-events:none}
#nh-pbd.on{opacity:1}
#nh-pbd .beam{position:absolute;left:-20%;right:-20%;top:38%;height:22%;transform:rotate(-8deg);background:linear-gradient(to bottom,transparent,rgba(214,170,120,.16) 40%,rgba(230,190,140,.22) 50%,rgba(214,170,120,.16) 60%,transparent)}
#nh-pbd .beam.b2{top:12%;height:12%;transform:rotate(-8deg);opacity:.55}
#nh-pbd .dot{position:absolute;left:61%;top:47.5%;width:3px;height:3px;border-radius:50%;background:#bcd6ff;box-shadow:0 0 3px 1px rgba(170,205,255,.7)}
@media (prefers-reduced-motion:reduce){#nh-pbd{transition:none}}
/* Video export (?render=1): the film's buttons and hints are not part of the picture. */
.nh-render #nh-cSkip,.nh-render #nh-cSound,.nh-render #nh-zfHint{display:none!important}
.nh-render #nh-zfSub,.nh-render #nh-zfTitle,.nh-render #nh-pbd{transition:none!important}
/* 2.0: thẻ tên phim giãn chữ chậm (kiểu mở đầu phim) */
#nh-zfTitle.big h2{letter-spacing:.005em;transition:letter-spacing 7s cubic-bezier(.2,.6,.2,1)}
#nh-zfTitle.big.on h2{letter-spacing:.07em}
@media (prefers-reduced-motion:reduce){#nh-zfTitle.big h2{transition:none}}
@media (min-width:700px){#nh-zfTitle.big{padding:0 4vw}#nh-zfTitle.big h2{max-width:none;white-space:nowrap;font-size:clamp(34px,5.2vw,84px)}}


/* 2.1: bỏ mọi ghi chú, chú thích, dòng hướng dẫn trên giao diện */
#nh-list-unit,#nh-zfHint{display:none!important}

/* 2.1: khung tự vừa: thanh trên, bảng, thẻ thông tin, ô thời gian co giãn theo kích thước khung (JS NhFit đặt --hz, --vhz) */
@media (min-width:821px){
  #nh-top,#nh-time,#nh .side,#nh-info,#nh-hint{zoom:var(--hz,1)}
  #nh .side,#nh-info{max-height:calc(var(--vhz,100vh) - 176px)}
}
/* 2.1: bỏ chú thích thước đo */
#nh-leg{display:none!important}
/* 2.1: ẩn phụ đề lời thuyết minh trong phim (giọng đọc vẫn giữ; thẻ tên phim giữ nguyên) */
#nh-zfSub{display:none!important}
