/* Astronomy Live (tools/astronomy-live). Theme-aware via the site tokens; the sky view itself is always dark. */
.as-loc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-top: 8px; }
.as-loc-now strong { font-size: 1.15rem; }
.as-loc-form { display: flex; flex-wrap: wrap; gap: 6px; }
.as-loc-form select, .as-loc-form input { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.as-loc-form input { width: 130px; }
.as-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (max-width: 900px) { .as-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .as-glance { grid-template-columns: 1fr; } }
.as-gc { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.as-gc-i { font-size: 1.9rem; line-height: 1; flex: 0 0 40px; text-align: center; }
.as-gc-i svg { width: 38px; height: 38px; }
.as-gc-t { font-size: .78rem; color: var(--muted); }
.as-gc-v { font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.as-gc-s { color: var(--muted); }

.as-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin: 30px 0 10px; }
.as-head h2 { margin: 0; font-size: 1.25rem; }
.as-skygrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
@media (max-width: 900px) { .as-skygrid { grid-template-columns: 1fr; } }
.as-skybox, .as-up, .as-box { padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; }
.as-box h3, .as-up h3 { margin: 0 0 8px; font-size: 1.05rem; }
.as-box p { margin: 6px 0; }
.as-sky { max-width: 620px; margin: 0 auto; }
.as-skysvg { display: block; width: 100%; height: auto; }
.as-sky-bg { fill: #050b1a; stroke: #334155; stroke-width: 2; }
.as-sky-day .as-sky-bg { fill: #1d4f91; } .as-sky-civil .as-sky-bg { fill: #24365e; } .as-sky-naut .as-sky-bg { fill: #121c3a; } .as-sky-astro .as-sky-bg { fill: #0a1228; }
.as-sky-ring { fill: none; stroke: rgba(148, 163, 184, .22); stroke-dasharray: 3 4; }
.as-sky-dir { fill: #94a3b8; font: 700 14px/1 system-ui, sans-serif; }
.as-sky-line { stroke: rgba(148, 197, 255, .35); stroke-width: 1; }
.as-star { fill: #f8fafc; }
.as-dso { fill: none; stroke: #c4b5fd; stroke-width: 1.4; }
.as-sky-lbl { fill: #cbd5e1; font: 10px/1 system-ui, sans-serif; }
.as-sky-dso { fill: #c4b5fd; }
.as-sky-blbl { fill: #fde68a; font: 700 12px/1 system-ui, sans-serif; paint-order: stroke; stroke: #050b1a; stroke-width: 3px; }
.as-planet { stroke: rgba(0, 0, 0, .5); stroke-width: 1; }
.as-obj { cursor: pointer; }
.as-iss { font-size: 16px; }
.as-skytime { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.as-skytime input[type=range] { flex: 1 1 180px; accent-color: var(--link); }
.as-tb { padding: 6px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); cursor: pointer; font-size: .86rem; }
.as-uplist { list-style: none; margin: 0; padding: 0; }
.as-uplist li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.as-up-body strong { color: var(--text); }
.as-info { background: var(--bg-2); padding: 8px 10px !important; border-radius: 8px; border: 0 !important; margin-bottom: 6px; }

.as-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.as-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.as-table th, .as-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.as-table th { background: var(--bg-2); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.as-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.as-yes { color: #15803d; font-weight: 600; } .as-no { color: var(--muted); }
[data-theme="dark"] .as-yes { color: #4ade80; }
.as-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.as-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .as-three { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .as-two { grid-template-columns: 1fr; } }
.as-big { font-size: 1.25rem; font-weight: 800; }
.as-moontop { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.as-moontop svg { width: 100px; height: 100px; flex: 0 0 100px; }
.as-moon-dark { fill: #273449; stroke: #475569; stroke-width: 1; }
.as-moon-lit { fill: #f1f5f9; }
.as-dim { opacity: .55; }
.as-moonstrip { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; }
.as-ms { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--muted); padding: 3px 0; border-radius: 6px; }
.as-ms svg { width: 24px; height: 24px; }
.as-ms.on { background: var(--bg-2); color: var(--text); font-weight: 700; }
.as-earthmap { height: 260px; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.as-orbsvg { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.as-orb-sun { fill: #fde047; }
.as-orb-ring { fill: none; stroke: var(--border); }
.as-orb-p { stroke: rgba(0, 0, 0, .4); }
.as-orb-earth { stroke: #fff; stroke-width: 2; }
.as-orb-l { fill: var(--text); font: 11px/1 system-ui, sans-serif; }
.as-orb-dim { fill: var(--muted); }
.as-ev-vis strong { color: #15803d; } [data-theme="dark"] .as-ev-vis strong { color: #4ade80; }
.as-ev-not { opacity: .8; }
.as-polesvg, .as-speedsvg { display: block; width: 100%; height: auto; }
.as-pole-ring { fill: none; stroke: var(--border); }
.as-pole-l { fill: var(--muted); font: 10px/1 system-ui, sans-serif; }
.as-pole-geo { fill: var(--text); }
.as-pole-path { fill: none; stroke: #8b5cf6; stroke-width: 2; }
.as-pole-y { fill: #8b5cf6; }
.as-pole-now { fill: #ef4444; stroke: #fff; stroke-width: 2; }
.as-pole-nowl { fill: #ef4444; font-weight: 700; }
.as-speedbar { fill: #8b5cf6; }
.as-flip { margin-top: 12px; }
