/* Global Aurora — prototype stylesheet (v1).
   Forked from World Quakes' ledger stylesheet, recolored for a
   night-sky subject: deep indigo ground, pale starlight ink, one
   aurora-green accent. Ledgers are ruled lists, never cards.
   Art/colors are a prototype treatment — Jeff's ruling comes later. */
:root{
  --paper:#0b1020; --panel:#141b31; --panel2:#0e1428;
  --ink:#e8ecf6; --muted:#9aa5c0;
  --rule:#2a3452; --green:#57e6a3; --green-dk:#2fe07c;
  --teal:#39c2b5; --amber:#e8b34b;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);
  font:16px/1.45 -apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
a{color:var(--green)}
a:hover{text-decoration-thickness:2px}
.wrap{max-width:1060px;margin:0 auto;padding:0 14px 28px}
h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:700;line-height:1.15}
h1{font-size:1.72rem;margin:.35em 0 .3em}
h2{font-size:1.22rem;margin:1.15em 0 .45em;border-bottom:2px solid var(--ink);padding-bottom:.18em}
h2 .sub{font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:.78rem;font-weight:400;color:var(--muted)}
p{margin:.5em 0}
.lede{font-size:1.05rem;max-width:62ch}
.note{font-size:.85rem;color:var(--muted)}
.crumbs{font-size:.85rem;color:var(--muted);margin-top:10px}
.quiet{font-size:1.05rem;border-left:4px solid var(--green-dk);padding:.35em 0 .35em .7em;background:var(--panel)}

/* masthead */
.mast{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  max-width:1060px;margin:0 auto;padding:10px 14px 8px;border-bottom:3px double var(--ink)}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink)}
.brand .mark{width:34px;height:34px;border-radius:7px}
.brandname{font-family:Georgia,"Times New Roman",serif;font-size:1.42rem;font-weight:700;letter-spacing:.01em}
.topnav{margin-left:auto;display:flex;gap:16px;font-size:.95rem}
.topnav a{color:var(--ink);text-decoration:none;border-bottom:2px solid var(--green-dk);padding-bottom:1px}
.topnav a:hover{color:var(--green)}

/* hero — headline + lede, then the live globe */
.hero{padding:10px 0 2px}
.hero h1{font-size:2rem;margin:.25em 0 .2em}

/* live globe — enhancement only; hidden until globe.js has data */
.globe-wrap[hidden]{display:none}
.globe-wrap{display:flex;gap:20px;align-items:flex-start;margin:12px 0 2px}
.globe-stage{flex:0 1 54%;max-width:560px}
#globe-canvas{display:block;width:100%;height:auto;aspect-ratio:1/1;
  cursor:grab;touch-action:pan-y;-webkit-user-select:none;user-select:none}
#globe-canvas.dragging{cursor:grabbing}
.globe-side{flex:1;min-width:250px}
.globe-status{font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:.15em 0 .55em}
.globe-listhead{font-family:Georgia,"Times New Roman",serif;font-size:1.02rem;margin:.85em 0 .3em;
  border-bottom:2px solid var(--ink);padding-bottom:.15em}
.globe-listhead .sub{font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:.75rem;font-weight:400;color:var(--muted)}
.globe-list{list-style:none;margin:0;padding:0}
.globe-list li{padding:4px 2px;border-bottom:1px solid var(--rule);font-size:.9rem}
.globe-list li.focus{background:var(--panel)}
.globe-list .gl-row{display:flex;gap:9px;align-items:baseline;color:var(--ink);text-decoration:none;cursor:pointer}
.globe-list .gl-row:hover .gl-place{text-decoration:underline}
.gl-time{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.gl-mag{font-weight:700;color:var(--green);white-space:nowrap}
.gl-place{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* aurora-now tile — the one detail surface, below the globe row.
   Server-rendered at build time; globe.js keeps it current. */
.globe-tile{background:var(--panel);border:1px solid var(--rule);border-left:5px solid var(--green-dk);
  padding:9px 14px 10px;margin:12px 0 2px}
.globe-tile-label{font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:.05em 0 .35em}
.globe-tile .bigline{margin:.1em 0}
.globe-tile .evmeta{margin:.1em 0}
.bigline{font-size:1.25rem;margin:.15em 0}
.evmeta{font-size:.85rem;color:var(--muted)}
.kp{display:inline-block;min-width:3.4em;text-align:center;font-weight:700;color:#08130c;
  background:var(--green-dk);border-radius:4px;padding:.12em .3em;font-size:.95rem;flex:none}
.kp.hot{background:var(--amber)}
.bigline .kp{font-size:1.1rem}

/* callout panel (town tonight panel, strongest-town callout) */
.biggest{background:var(--panel);border:1px solid var(--rule);border-left:5px solid var(--green-dk);padding:10px 14px;margin:14px 0}
.biggest h2{border:0;margin:.1em 0 .3em;font-size:1.05rem;text-transform:uppercase;letter-spacing:.06em}

/* ledgers */
.ledger{list-style:none;margin:0;padding:0}
.ledger .ev{display:flex;gap:10px;align-items:baseline;padding:7px 2px;border-bottom:1px solid var(--rule)}
.evmain{display:flex;flex-direction:column;min-width:0;flex:1}
.evplace{font-weight:600}
.evplace a{color:var(--ink);text-decoration:none}
.evplace a:hover{text-decoration:underline}
.evlink{font-size:.85rem;white-space:nowrap}

/* probability chip — the number always prints; color never carries
   meaning alone (fleet rule) */
.prob{display:inline-block;min-width:3.6em;text-align:center;font-weight:700;
  background:#3d4a6b;border-radius:4px;padding:.12em .3em;font-size:.95rem;flex:none;color:#dfe6f5}
.prob.p1{background:#1d5c3a;color:#eafff3}
.prob.p2{background:#2fe07c;color:#08130c}
.prob.p3{background:#aef7c8;color:#08130c}

/* band / count ledgers with dotted leaders */
.bands{list-style:none;margin:0;padding:0;max-width:640px}
.bands li{display:flex;align-items:baseline;gap:8px;padding:5px 2px;border-bottom:1px solid var(--rule)}
.bands .leader{flex:1;border-bottom:2px dotted var(--muted);transform:translateY(-3px)}
.bcount{font-weight:700;white-space:nowrap}

/* in-brief facts table */
table.scale{border-collapse:collapse;width:100%;max-width:720px}
table.scale th,table.scale td{text-align:left;vertical-align:top;padding:5px 10px 5px 2px;border-bottom:1px solid var(--rule);font-size:.95rem}
table.scale th{white-space:nowrap;color:var(--muted);font-weight:600;width:11em}

/* footer */
.foot{max-width:1060px;margin:0 auto;padding:14px;border-top:3px double var(--ink);font-size:.85rem;color:var(--muted)}
.foot .disc{color:var(--ink)}
.footnav{margin:.6em 0}
.pub{margin:.4em 0 0}

@media (max-width:1023px){
  .globe-stage{flex-basis:48%}
}
@media (max-width:720px){
  .globe-wrap{flex-direction:column;gap:8px}
  .globe-stage{flex:none;width:min(460px,92vw);margin:0 auto}
  .globe-side{min-width:0;width:100%}
}
@media (max-width:560px){
  h1{font-size:1.45rem} .hero h1{font-size:1.6rem}
  .ledger .ev{flex-wrap:wrap}
  .evlink{width:100%;padding-left:calc(3.6em + 10px)}
  table.scale th{width:8.5em;white-space:normal}
  .topnav{gap:11px;font-size:.9rem}
}
