/* Soren Laboratory · Earth — what lab.css does not have: the layer names on the globe, and the legend in the panel. Loaded after lab.css, only by Earth. */
body.earth { --land:#c9b27a; --sea:#0d3a52; }
.geo { position:absolute; top:0; left:0; white-space:nowrap; pointer-events:none; will-change:transform; transition:opacity .25s;
  font-size:11px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:rgba(240,248,250,.92); text-shadow:0 1px 3px rgba(0,0,0,.85), 0 0 8px rgba(0,0,0,.6); }
.geo.sea { color:rgba(150,210,235,.9); font-style:italic; text-transform:none; letter-spacing:.14em; font-size:12px; }
.geo.cont { font-size:13px; font-weight:700; letter-spacing:.2em; color:#16242b; text-shadow:0 0 3px rgba(255,255,255,.95), 0 0 8px rgba(255,255,255,.8), 0 0 14px rgba(255,255,255,.5); }
.geo.hot { color:var(--cyan); }
.legend { list-style:none; margin:0 0 4px; padding:0; }
.legend li { display:flex; align-items:center; gap:10px; padding:7px 0; border-top:1px solid var(--line); color:var(--ink-soft); font-size:13px; }
.legend li:first-child { border-top:0; padding-top:0; }
.legend i { flex:none; width:26px; height:0; border-top:3px solid var(--c); border-radius:2px; }
.legend i.dash { border-top-style:dashed; }
.legend b { color:var(--ink); font-weight:500; }
.hint { font-size:12px; color:var(--ink-faint); margin:10px 0 0; }
@media (max-width:900px) { .geo.sea { display:none; } }
.geo.ctry { font-size:11px; letter-spacing:.03em; text-transform:none; font-weight:600; color:#1d2c33; text-shadow:0 0 2px rgba(255,255,255,.95), 0 0 6px rgba(255,255,255,.75); }
.geo.ctry.hot { color:#003a4a; }
.geo.line { font-size:9.5px; letter-spacing:.14em; color:#ffe1a0; padding:2px 8px; border-radius:999px; background:rgba(3,14,20,.62); text-shadow:none; }
#coordName { color:var(--ink); font-size:13px; font-weight:600; min-height:20px; }
#coord { min-height:19px; }
body.earth .modes button { white-space:nowrap; }
.geo.plate { font-size:12px; font-weight:600; letter-spacing:.2em; color:#fff; }
.geo.cone { font-size:10.5px; text-transform:none; letter-spacing:.03em; color:#ffd9d2; }
.card.tog b { display:flex; align-items:center; gap:9px; }
.card.tog { opacity:.55; } .card.tog.on { opacity:1; }
.card.tog i.dot { width:11px; height:11px; border-radius:50%; background:var(--c); box-shadow:0 0 8px var(--c); }
.card.tog i.tri { width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-bottom:11px solid var(--c); }
.card.tog i.bar { width:16px; height:0; border-top:3px solid var(--c); border-radius:2px; }

/* Land And Sea: the names and switches of the geography maps. */
.geo.cap { font-size:10.5px; text-transform:none; letter-spacing:.02em; font-weight:600; color:#fff; text-shadow:0 0 3px rgba(0,0,0,.95), 0 1px 6px rgba(0,0,0,.8); }
.geo.city { font-size:10px; text-transform:none; letter-spacing:.02em; font-weight:500; color:#ffe9a8; text-shadow:0 0 3px rgba(0,0,0,.95), 0 1px 6px rgba(0,0,0,.8); }
.geo.river { font-size:10.5px; text-transform:none; letter-spacing:.06em; font-style:italic; font-weight:500; color:#bfe9ff; text-shadow:0 0 3px rgba(0,20,40,.95), 0 1px 6px rgba(0,20,40,.8); }
.geo.region { font-size:10.5px; letter-spacing:.22em; font-weight:600; color:#4a3524; text-shadow:0 0 3px rgba(255,255,255,.9), 0 0 8px rgba(255,255,255,.7); }
.geo.peak { font-size:10px; text-transform:none; letter-spacing:.02em; font-weight:600; color:#3a2a1e; text-shadow:0 0 3px rgba(255,255,255,.95), 0 0 7px rgba(255,255,255,.75); }
.geo.ctry.st { font-weight:500; }
.card.tog i.mk { flex:none; width:12px; height:12px; }
.card.tog i.mk.capitals { border-radius:50%; background:radial-gradient(circle, #fff 0 34%, #0b1d26 36% 58%, #fff 60%); }
.card.tog i.mk.cities { border-radius:50%; background:#ffe9a8; box-shadow:0 0 0 2px #0b1d26; width:8px; height:8px; margin:0 2px; }
.card.tog i.mk.water { height:0; width:16px; border-top:2px solid #7fd3ff; border-radius:2px; }
.card.tog i.mk.features { width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-bottom:11px solid #c9a888; }
.card.tog i.mk.states { border:1.5px solid var(--ink-soft); border-radius:3px; }
.grid2 .card.tog b { font-size:13px; }
.card.bio { margin-bottom:8px; padding:11px 14px; }
.card.bio b { display:flex; align-items:center; gap:10px; font-size:14px; }
.card.bio .sw { flex:none; width:12px; height:12px; border-radius:50%; box-shadow:0 0 0 1px rgba(255,255,255,.25); }
.card.bio span { font-size:12.5px; }

/* ── Climate Zones (layer-climate.js). This block is the Climate Zones thread's; nothing above it is. ── */
.geo.zone { font-size:12px; font-weight:600; letter-spacing:.2em; color:#fff; }
.geo.cur { font-size:10.5px; font-weight:600; text-transform:none; letter-spacing:.03em; }
.geo.cur.warm { color:#ffd0c8; }
.geo.cur.cold { color:#c4e6ff; }
.geo.gyre { font-size:10px; font-weight:500; letter-spacing:.16em; color:rgba(235,245,250,.72); }
.geo.wind { font-size:11px; font-weight:600; letter-spacing:.16em; color:#fff; padding:2px 9px; border-radius:999px; background:rgba(3,14,20,.5); text-shadow:none; }
.geo.zone.hot, .geo.cur.hot, .geo.gyre.hot, .geo.wind.hot { color:var(--cyan); }
.cz-togs { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.card.cz-tog { display:flex; align-items:center; gap:8px; margin:0; padding:11px 12px; opacity:.55; }
.card.cz-tog.on { opacity:1; }
.card.cz-tog b { font-size:13.5px; margin:0; }
.cz-tog i { flex:none; width:18px; height:12px; border-radius:3px; }
.cz-bands { background:linear-gradient(#bfe6ff 0 22%, #5fcf86 22% 40%, #ffb340 40% 60%, #5fcf86 60% 78%, #bfe6ff 78%); }
.cz-pair { background:linear-gradient(#ff5a4f 0 42%, transparent 42% 58%, #45b4ff 58%); }
.cz-arrow { background:linear-gradient(#fff, #fff) left center / 11px 2px no-repeat; position:relative; }
.cz-arrow::after { content:''; position:absolute; right:1px; top:1px; border-left:8px solid #fff; border-top:5px solid transparent; border-bottom:5px solid transparent; }
.card.cz-row { display:flex; align-items:center; gap:12px; margin-bottom:8px; padding:11px 14px; }
.card.cz-row b { font-size:14px; margin:0; }
.card.cz-row span span { font-size:12.5px; margin-top:2px; }
.grid2 .card.cz-row { margin:0; padding:11px 12px; }
.grid2 .card.cz-row b { font-size:13px; }
.cz-sw { flex:none; display:inline-block; width:12px; height:12px; border-radius:50%; background:var(--c); box-shadow:0 0 8px var(--c); }
.p-body p.cz-key { display:flex; gap:20px; margin:10px 0 12px; color:var(--ink); font-size:13px; }
.cz-key span { display:flex; align-items:center; gap:8px; }
@media (max-width:900px) { .geo.gyre { display:none; } }
/* Phone width: the panel becomes a sheet along the bottom and the globe moves up to clear it. */
@media (max-width:900px) {
  body.earth #panel { top:auto; left:8px; right:8px; bottom:8px; width:auto; height:43vh; }
  body.earth .modes, body.earth.panel-open .modes { top:74px; bottom:auto; left:50%; }
  body.earth .tools, body.earth .scale { display:none; }
  body.earth .top h1 { font-size:22px; }
}

/* ── Day And Night (layer-daynight.js): this block is that layer's, down to its end mark. ── */
.dn-bar { bottom:76px; left:50%; transform:translateX(-50%); width:min(940px, calc(100% - 2 * var(--pad))); display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:10px 30px;
  padding:11px 16px 7px 18px; border-radius:20px; background:var(--glass); border:1px solid var(--line); -webkit-backdrop-filter:blur(16px) saturate(1.3); backdrop-filter:blur(16px) saturate(1.3); transition:left .5s cubic-bezier(.2,.7,.2,1); }
body.panel-open .dn-bar { left:calc((100% - var(--panel-w)) / 2); width:min(940px, calc(100% - var(--panel-w) - 2 * var(--pad))); }
body.dn { --lift-l:136px; }                                                     /* the latitude readout moves up, clear of the sliders */
.dn-head { display:flex; align-items:baseline; gap:10px; height:24px; margin-bottom:3px; white-space:nowrap; }
.dn-head label { font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--cyan); }
.dn-head output { font-size:14px; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; }
.dn-sub { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; font-size:11px; color:var(--ink-faint); font-variant-numeric:tabular-nums; }
.dn-b { align-self:center; padding:3px 12px; border-radius:999px; border:1px solid var(--line-strong); font-size:11.5px; font-weight:500; line-height:16px; color:var(--ink); transition:background .2s, color .2s, border-color .2s; }
.dn-b:hover { border-color:var(--cyan); color:#fff; }
.dn-b.on { background:var(--cyan); border-color:var(--cyan); color:var(--cyan-ink); font-weight:600; }
.dn-cell input { -webkit-appearance:none; appearance:none; display:block; width:100%; height:18px; margin:0; padding:0; background:none; cursor:pointer; }
.dn-cell input::-webkit-slider-runnable-track { height:4px; border-radius:2px; background:var(--line-strong); }
.dn-cell input::-webkit-slider-thumb { -webkit-appearance:none; width:18px; height:18px; margin-top:-7px; border-radius:50%; background:var(--cyan); border:3px solid var(--cyan-ink); box-shadow:0 0 0 1px var(--cyan), 0 0 12px rgba(95,230,255,.45); }
.dn-cell input::-moz-range-track { height:4px; border-radius:2px; background:var(--line-strong); }
.dn-cell input::-moz-range-thumb { width:12px; height:12px; border-radius:50%; background:var(--cyan); border:3px solid var(--cyan-ink); box-shadow:0 0 0 1px var(--cyan), 0 0 12px rgba(95,230,255,.45); }
.dn-cell input:focus-visible { outline:2px solid var(--cyan); outline-offset:4px; border-radius:9px; }
.dn-ticks { position:relative; height:14px; margin:0 9px; }                      /* 9px: half a thumb, so a mark sits under the thumb's middle */
.dn-ticks span { position:absolute; top:1px; transform:translateX(-50%); font-size:9.5px; line-height:13px; letter-spacing:.04em; color:var(--ink-faint); white-space:nowrap; }
.dn-ticks i { position:absolute; top:-9px; width:2px; height:8px; margin-left:-1px; border-radius:1px; background:#ffd166; opacity:.85; pointer-events:none; }
.geo.tz { font-size:10.5px; font-weight:600; letter-spacing:.02em; text-transform:none; min-width:54px; text-align:center; font-variant-numeric:tabular-nums; color:#fff; }
.geo.dn-sun { position:fixed; font-size:10px; letter-spacing:.14em; color:#ffe1a0; transition:opacity .25s; }
.dn-fig { display:block; width:100%; height:auto; margin:2px 0 6px; }
.dn-fig text { font-family:inherit; font-size:9.5px; fill:var(--ink-faint); letter-spacing:.04em; }
.p-body p.dn-cap b { font-weight:600; color:#ffd166; margin-right:4px; }
.dn-legend li { align-items:flex-start; }
.dn-legend li i { margin-top:9px; }
.dn-legend b { display:block; }
.legend i.dn-dot, .legend i.dn-stripe, .card.tog i.dn-stripe { flex:none; width:26px; height:12px; border:0; border-radius:3px; margin-top:4px; }
.legend i.dn-dot { background:radial-gradient(circle, #f2c24a 0 4.5px, transparent 5.5px); }
.legend i.dn-stripe, .card.tog i.dn-stripe { background:repeating-linear-gradient(90deg, rgba(190,230,255,.5) 0 6.5px, rgba(190,230,255,.12) 6.5px 13px); }
.card.tog i.dn-stripe { margin-top:0; }
.note#dnpSay { color:var(--ink); margin-top:8px; }
@media (max-width:1100px) { .dn-bar { bottom:126px; grid-template-columns:minmax(0, 1fr); } body.dn { --lift-l:262px; } }   /* the layer switch sits under it here, and the two sliders stack */
/* Phone width: the bar sits just above the panel (a sheet along the bottom here), cut down to the two sliders side by side so the globe keeps its room. */
@media (max-width:900px) { .dn-bar, body.panel-open .dn-bar { left:50%; bottom:calc(43vh + 16px); width:calc(100% - 16px); grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:0 16px; padding:7px 14px 6px; border-radius:16px; }
  .dn-ticks, .dn-sub, .dn-b { display:none; } .dn-head { height:20px; gap:7px; margin-bottom:0; } .dn-head label { font-size:9px; letter-spacing:.1em; } .dn-head output { font-size:12.5px; } .dn-cell input { height:26px; } }
/* ── end of Day And Night ── */

/* ── Inside (the Inside layer's own block: names on the cut faces, and the four layers' cards) ── */
.geo.in { font-size:10.5px; font-weight:600; letter-spacing:.12em; color:#fff; padding:2px 9px; border-radius:999px; background:rgba(3,14,20,.66); border:1px solid transparent; text-shadow:none; }
.geo.in.hot { color:var(--cyan); border-color:rgba(95,230,255,.5); }
.geo.in.p { color:#7cc4ff; } .geo.in.s { color:#fff3cf; }
.geo.in.quake { background:rgba(255,255,255,.92); color:#1a1205; }
.card.part { margin-bottom:8px; padding:11px 14px; }
.card.part b { display:flex; align-items:center; gap:10px; font-size:14px; }
.card.part b i { flex:none; width:12px; height:12px; border-radius:4px; background:var(--c); box-shadow:0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.card.part span { padding-left:22px; }
@media (max-width:900px) { .geo.in { font-size:9.5px; letter-spacing:.08em; padding:1px 7px; } }
@media (max-width:900px) {
  body.earth .modes { max-width:calc(100vw - 16px); overflow-x:auto; scrollbar-width:none; transform:translateX(-50%);
    -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 34px), transparent 100%); mask-image:linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 34px), transparent 100%); }   /* the faded ends say there is more to scroll to */
  body.earth .modes::-webkit-scrollbar { display:none; }
}
/* The unit in hand (SG-362): a name the unit says is underlined and the rest of the keyed names fade. */
.geo.unit-on { text-decoration:underline; text-underline-offset:3px; font-weight:800; }
.geo.unit-off { filter:opacity(.38); }

/* ── The map sheet (SG-386): the plate over the hidden globe, with its continent switch in the tools bar ── */
body.earth.plate #layerSeg, body.earth.plate .loading { display:none !important; }
body.earth .plate-tools { gap:6px; max-width:calc(100vw - 24px); overflow-x:auto; scrollbar-width:none; }
body.earth .plate-tools::-webkit-scrollbar { display:none; }
body.earth .plate-tools .seg button { white-space:nowrap; }
body.earth.plate { overflow:hidden; }
@media (max-width:900px) {
  body.earth #plate { bottom:76px; }
  body.earth.plate.panel-open #plate { right:0; bottom:calc(43vh + 16px); }
  body.earth .plate-tools { left:50%; transform:translateX(-50%); }
  body.earth.plate .tools.plate-tools { display:flex; }   /* the globe's tools bar is hidden at this width; the sheet's is not */
}
body.earth .plate-tools .tool span { white-space:nowrap; }
/* A map sheet is never drawn under 0.92 px a unit (its numbers stay 13px), so on a phone it is wider than the screen and pans. */
body.earth #plate { overflow-x:auto; -webkit-overflow-scrolling:touch; }
