/* astromonte public site — dark, calm, mobile-first. No framework. (v0.3.0) */

:root {
  --bg: #0b0f17;
  --panel: #121826;
  --panel-2: #182033;
  --line: #222b3d;
  --text: #d7dde7;
  --muted: #8a94a6;
  --accent: #7aa2f7;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  max-width: 1040px; margin: 0 auto;
}
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand .logo { color: var(--accent); font-size: 18px; }
.brand h1 { margin: 0; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .region { color: var(--muted); font-size: 13px; white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.site-switch select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font: inherit;
}
.age.stale { color: var(--warn); }

.banner {
  max-width: 1040px; margin: 12px auto 0; padding: 10px 16px; border-radius: var(--radius);
  background: rgba(251, 191, 36, 0.12); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.35); font-size: 14px;
}
.banner.bad { background: rgba(248, 113, 113, 0.12); color: var(--bad); border-color: rgba(248, 113, 113, 0.35); }

.tabs {
  display: flex; gap: 4px; overflow-x: auto; padding: 10px 12px 0; max-width: 1040px; margin: 0 auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  color: var(--muted); padding: 8px 12px; border-radius: 8px 8px 0 0; white-space: nowrap; font-weight: 500;
}
.tabs a.active { color: var(--text); background: var(--panel); border: 1px solid var(--line); border-bottom-color: var(--panel); }

main { max-width: 1040px; margin: 0 auto; padding: 16px 12px 40px; }
.view > h2 { font-size: 16px; font-weight: 600; margin: 4px 0 12px; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card h3 .sub { font-weight: 400; font-size: 12px; }
.card.stale { opacity: 0.55; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 20px 0; text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; min-height: 68px; }
.tile .label { color: var(--muted); font-size: 12px; }
.tile .value { font-size: 22px; font-weight: 600; margin-top: 2px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile .value small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.tile .value.ok { color: var(--ok); }
.tile .value.warn { color: var(--warn); }
.tile .value.bad { color: var(--bad); }
.tile.wide { grid-column: span 2; }

.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.chart { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.chart .title { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.chart svg { display: block; width: 100%; height: 72px; margin-top: 6px; overflow: visible; }
.chart path { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.chart .s0 { stroke: var(--accent); }
.chart .s1 { stroke: var(--muted); stroke-dasharray: 3 3; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .range { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; margin-top: 4px; font-variant-numeric: tabular-nums; }

table.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
table.kv th, table.kv td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
table.kv th { color: var(--muted); font-weight: 500; width: 40%; }
table.kv td { font-variant-numeric: tabular-nums; word-break: break-word; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; }

.about dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.about dt { color: var(--muted); }
.about dd { margin: 0; }
.about ul { margin: 0; padding-left: 18px; }
.about p { margin: 0 0 10px; }

footer { max-width: 1040px; margin: 0 auto; padding: 0 16px 24px; color: var(--muted); font-size: 12px; }

@media (min-width: 720px) {
  .top { padding: 18px 16px; }
  .brand h1 { font-size: 20px; }
  body { font-size: 16px; }
}

/* Captures (v0.3.0) */
.capture-main { display: grid; gap: 14px; }
.capture-main figure { margin: 0; }
.capture-main img { width: 100%; height: auto; border-radius: 10px; display: block; background: #000; }
.capture-main figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; }
.capture-main .kv th { width: 45%; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumbs a { flex: none; text-align: center; color: var(--muted); font-size: 11px; }
.thumbs img { height: 96px; width: auto; border-radius: 6px; display: block; background: #000; margin-bottom: 3px; }
.session table.kv td.num { text-align: right; }
.session .per-filter { color: var(--muted); font-size: 12px; }
.now-capture { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.now-capture img { width: 120px; border-radius: 8px; display: block; background: #000; }
.now-capture .line { font-size: 14px; }
.now-capture .line strong { font-weight: 600; }
@media (min-width: 720px) {
  .capture-main { grid-template-columns: 3fr 2fr; align-items: start; }
  .now-capture { grid-template-columns: 160px 1fr; }
  .now-capture img { width: 160px; }
}
