/* Umbro — solar eclipse tracker */

:root {
  --bg:        #06070d;
  --bg-2:      #0b0d18;
  --panel:     #101322;
  --panel-2:   #151929;
  --panel-hi:  #1a1f33;
  --line:      #222840;
  --text:      #e8eaf4;
  --muted:     #8e96b4;
  --dim:       #626b8c;

  --corona:    #ffd479;
  --corona-2:  #ff9f43;
  --flame:     #ff6b4a;
  --cool:      #6fd3ff;
  --violet:    #9b7bff;

  --total:     #ffd479;
  --annular:   #ff9f43;
  --partial:   #6fd3ff;
  --hybrid:    #c48bff;

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;

  --shadow:    0 20px 60px -20px rgba(0,0,0,.8);
  --font:      ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono:      ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* Class rules that set `display` would otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------- starfield --- */

.starfield {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(155,123,255,.16), transparent 62%),
    radial-gradient(900px 560px at 12% 8%, rgba(255,159,67,.10), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(111,211,255,.07), transparent 65%),
    linear-gradient(180deg, #06070d 0%, #080a14 45%, #06070d 100%);
}
.skyfield {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .85;
}

/* ------------------------------------------------------------- topbar --- */

.topbar {
  position: sticky; top: 0; z-index: 900;
  /* Installed as a PWA there is no browser chrome, so the status bar would
     otherwise sit on top of the header. */
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(14px);
  background: rgba(6,7,13,.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  min-height: 66px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--text); text-decoration: none;
  font-weight: 650; letter-spacing: -.02em; font-size: 1.08rem;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--corona), var(--corona-2) 62%, transparent 72%);
  display: grid; place-items: center;
  box-shadow: 0 0 22px rgba(255,212,121,.45);
}
.brand-mark i {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); transform: translate(-3px,-2px); display: block;
}


/* location readout + controls, both docked in the sticky header */
.topbar-loc {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  padding-left: 20px; border-left: 1px solid var(--line);
}
.topbar-actions { display: flex; align-items: center; gap: 9px; flex: none; order: 4; }
.loc-search { order: 3; }

/* Icon-only buttons; the search toggle is a phone-only affordance. */
.btn-icon { padding: 0; width: 40px; height: 40px; justify-content: center; display: inline-flex; align-items: center; }
.btn-icon svg { width: 17px; height: 17px; fill: currentColor; }
.btn-searchtoggle { display: none; }

/* Push the search and geolocate controls hard right. */
.topbar-loc + .topbar-actions { margin-left: auto; }

/* --------------------------------------------------------------- hero --- */

.hero { padding: 76px 0 40px; text-align: center; }

.eyebrow {
  margin: 0 0 14px; color: var(--corona);
  font-size: .76rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.04; font-weight: 700; letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 20%, #b9c0dd 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0 auto 34px; max-width: 620px; color: var(--muted); font-size: 1.03rem; }

.countdown {
  display: flex; align-items: flex-start; gap: 6px;
  width: fit-content; padding: 20px 30px; margin: 0 auto 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21,25,42,.9), rgba(12,14,26,.75));
  box-shadow: var(--shadow);
}
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 74px; }
.cd-num {
  font-family: var(--mono); font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  font-weight: 600; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 26px rgba(255,212,121,.28);
}
.cd-lbl {
  margin-top: 8px; font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim);
}
.cd-sep {
  font-family: var(--mono); font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  color: var(--dim); line-height: 1.15;
}

/* verdict dial */
.hero-verdict {
  display: flex; align-items: center; gap: 26px; text-align: left;
  width: fit-content; margin: 34px auto 0; padding: 22px 30px 22px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(16,19,34,.6);
  max-width: 640px;
}
.verdict-dial { position: relative; width: 108px; height: 108px; flex: none; }
.dial { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-track { fill: none; stroke: #1e2338; stroke-width: 9; }
.dial-fill {
  fill: none; stroke: var(--corona); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .8s cubic-bezier(.16,1,.3,1), stroke .3s;
  filter: drop-shadow(0 0 8px rgba(255,212,121,.5));
}
.dial-label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.dial-label span { font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.dial-label small { display: block; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--dim); }
.verdict-text h2 { margin: 0 0 5px; font-size: 1.22rem; letter-spacing: -.02em; }
.verdict-text p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ------------------------------------------------------------- locbar --- */

/* ---------------------------------------------- location readout bits --- */

.pin { width: 18px; height: 18px; fill: var(--corona); flex: none; }
.loc-meta { min-width: 0; }
.loc-line { display: flex; align-items: center; gap: 9px; min-width: 0; }
.loc-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-src { flex: none; }
.topbar-loc strong { font-size: .9rem; font-weight: 600; white-space: nowrap; }

.loc-src {
  padding: 2px 8px; border-radius: 100px;
  font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid currentColor; white-space: nowrap;
}
.loc-src.gps     { color: #6fd3ff; background: rgba(111,211,255,.1); }
.loc-src.ip      { color: #ffb154; background: rgba(255,159,67,.1); }
.loc-src.manual  { color: var(--dim);  background: rgba(98,107,140,.12); }
.loc-src.pending { color: var(--dim);  background: rgba(98,107,140,.12); }
#loc-coords { display: block; font-size: .71rem; color: var(--dim); font-family: var(--mono); white-space: nowrap; }

.loc-search { display: flex; gap: 8px; }
.loc-search input {
  width: 190px; padding: 9px 13px;
  background: #0c0f1c; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .88rem; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.loc-search input:focus { border-color: #3a4468; box-shadow: 0 0 0 3px rgba(111,211,255,.1); }
.loc-search input::placeholder { color: var(--dim); }

.btn {
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--corona), var(--corona-2));
  color: #221704; font-weight: 620; font-size: .88rem; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: transform .14s, filter .18s, box-shadow .18s;
  box-shadow: 0 6px 20px -8px rgba(255,159,67,.7);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: #171b2c; color: var(--text); border-color: var(--line); box-shadow: none;
}
.btn-ghost:hover { background: #1e2337; }

.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--cool); font: inherit; font-size: inherit; text-decoration: underline;
  text-underline-offset: 3px;
}

.loc-suggest {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 950;
  width: 340px; max-height: 300px; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.loc-suggest button {
  display: block; width: 100%; text-align: left; padding: 11px 15px;
  background: none; border: 0; border-bottom: 1px solid rgba(34,40,64,.6);
  color: var(--text); font: inherit; font-size: .88rem; cursor: pointer;
}
.loc-suggest button:last-child { border-bottom: 0; }
.loc-suggest button:hover { background: var(--panel-hi); }
.loc-suggest button small { display: block; color: var(--dim); font-size: .76rem; }
.loc-suggest .empty { padding: 14px 15px; color: var(--dim); font-size: .87rem; }

/* -------------------------------------------------------------- cards --- */

main { padding: 40px 24px 70px; }
main.wrap { padding-left: 24px; padding-right: 24px; }

.card {
  background: linear-gradient(180deg, rgba(20,24,42,.72), rgba(12,14,26,.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 20px; flex-wrap: wrap;
}
.card-head h2 { margin: 0; font-size: 1.12rem; font-weight: 620; letter-spacing: -.015em; }
.hint { color: var(--dim); font-size: .8rem; }

.badge {
  padding: 4px 12px; border-radius: 100px;
  font-size: .74rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.badge.total   { color: var(--total);   background: rgba(255,212,121,.1); }
.badge.annular { color: var(--annular); background: rgba(255,159,67,.1); }
.badge.partial { color: var(--partial); background: rgba(111,211,255,.1); }
.badge.hybrid  { color: var(--hybrid);  background: rgba(196,139,255,.1); }
.badge.none    { color: var(--dim);     background: rgba(98,107,140,.1); }

.panel-grid {
  display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr);
  gap: 26px; align-items: start;
}

/* circumstances ---------------------------------------------------------- */

.bigstats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.bigstat {
  padding: 18px 16px; border-radius: var(--radius-sm);
  background: rgba(8,10,20,.62); border: 1px solid var(--line);
}
.bs-num {
  display: block; font-size: 2.1rem; font-weight: 680; line-height: 1.05;
  letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #c3caea);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bs-lbl { display: block; margin-top: 7px; font-size: .76rem; color: var(--dim); line-height: 1.45; }
.bs-lbl em { font-style: normal; opacity: .75; }

.contacts { width: 100%; border-collapse: collapse; font-size: .9rem; }
.contacts tr { border-bottom: 1px solid rgba(34,40,64,.55); }
.contacts tr:last-child { border-bottom: 0; }
.contacts td { padding: 10px 0; vertical-align: baseline; }
.contacts .c-name { color: var(--muted); }
.contacts .c-name b { display: block; color: var(--text); font-weight: 560; }
.contacts .c-name small { color: var(--dim); font-size: .78rem; }
.contacts .c-time {
  text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: .95rem; white-space: nowrap;
}
.contacts .c-time.hl { color: var(--corona); font-weight: 600; }
.contacts .none { color: var(--dim); font-family: var(--font); font-size: .84rem; }

.circ-foot {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
}
.circ-foot > div { display: flex; flex-direction: column; gap: 3px; }
.circ-foot .k { font-size: .72rem; color: var(--dim); letter-spacing: .05em; text-transform: uppercase; }
.circ-foot .v { font-family: var(--mono); font-size: .95rem; font-variant-numeric: tabular-nums; }

.tz-note { margin: 16px 0 0; font-size: .78rem; color: var(--dim); }

/* simulator -------------------------------------------------------------- */

.card-sim { display: flex; flex-direction: column; }
.sim-stage {
  position: relative; flex: none; aspect-ratio: 7 / 5;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: #04050a;
}
#sim { display: block; width: 100%; height: 100%; }
.sim-nodata {
  position: absolute; inset: 0; display: grid; place-content: center;
  background: rgba(4,5,10,.9); color: var(--dim); font-size: .95rem;
}

.sim-controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.btn-play {
  width: 42px; height: 42px; flex: none; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
}
.btn-play svg { width: 20px; height: 20px; fill: #221704; grid-area: 1/1; }
.btn-play .ic-pause { display: none; }
.btn-play.playing .ic-play { display: none; }
.btn-play.playing .ic-pause { display: block; }

#sim-scrub {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 4px; background: #222840; outline: none;
}
#sim-scrub::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; border-radius: 50%; cursor: pointer;
  background: var(--corona); box-shadow: 0 0 12px rgba(255,212,121,.6);
}
#sim-scrub::-moz-range-thumb {
  width: 17px; height: 17px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--corona); box-shadow: 0 0 12px rgba(255,212,121,.6);
}
.sim-clock {
  font-family: var(--mono); font-size: .88rem; color: var(--muted);
  font-variant-numeric: tabular-nums; min-width: 108px; text-align: right;
}

/* map -------------------------------------------------------------------- */

#map {
  height: 460px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #0a0c16; z-index: 1;
}
.leaflet-container { background: #0a0c16; font-family: var(--font); }
.leaflet-tile { filter: saturate(.85) brightness(1.05); }
.leaflet-control-attribution {
  background: rgba(6,7,13,.8) !important; color: var(--dim) !important; font-size: .68rem !important;
}
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: #151a2c !important; color: var(--text) !important; border-color: var(--line) !important; }
.leaflet-bar a:hover { background: #1e2439 !important; }

/* list ------------------------------------------------------------------- */

.switch { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--muted); cursor: pointer; }
.switch input { width: 16px; height: 16px; accent-color: var(--corona); cursor: pointer; }

.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.ecl-table { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 660px; }
.ecl-table th {
  text-align: left; padding: 0 14px 11px 12px; font-weight: 560;
  font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ecl-table td { padding: 13px 14px 13px 12px; border-bottom: 1px solid rgba(34,40,64,.5); }
.ecl-table tr.row { cursor: pointer; transition: background .16s; }
.ecl-table tr.row:hover { background: rgba(255,255,255,.028); }
.ecl-table tr.row.sel { background: rgba(255,212,121,.07); }
.ecl-table tr.row.sel td:first-child { box-shadow: inset 3px 0 0 var(--corona); }
.ecl-date b { display: block; font-weight: 600; }
.ecl-date small { color: var(--dim); font-size: .78rem; }
.ecl-vis { font-size: .85rem; }
.ecl-vis.yes { color: var(--corona); font-weight: 560; }
.ecl-vis.part { color: var(--cool); }
.ecl-vis.no { color: var(--dim); }
.covbar {
  position: relative; height: 6px; width: 88px; border-radius: 3px;
  background: #1d2236; overflow: hidden; margin-bottom: 5px;
}
.covbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--corona-2), var(--corona)); border-radius: 3px; }
.covtxt { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cell-k { display: none; }

.list-more {
  display: block; width: 100%; margin-top: 16px; padding: 12px 16px;
  background: #171b2c; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .87rem; font-weight: 550; cursor: pointer;
  transition: background .18s;
}
.list-more:hover { background: #1e2337; }

.btn-geo { display: inline-flex; align-items: center; gap: 8px; }
.geo-ic { width: 16px; height: 16px; fill: currentColor; display: none; }
.go { color: var(--dim); font-size: 1.1rem; }

/* about page -------------------------------------------------------------- */

.about-page { padding: 46px 24px 70px; max-width: 860px; }
.about-title {
  margin: 0 0 14px; font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  font-weight: 700; letter-spacing: -.032em; line-height: 1.08;
  background: linear-gradient(180deg, #fff 25%, #b9c0dd 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-lede { margin: 0 0 34px; color: var(--muted); font-size: 1.06rem; max-width: 640px; }

.about-list { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: .93rem; }
.about-list li { margin-bottom: 9px; }
.about-list strong { color: var(--text); font-weight: 600; }

.about-table { min-width: 420px; font-size: .87rem; }
.about-table th { padding-bottom: 9px; }
.about-table td { padding: 10px 14px 10px 12px; }

.warn-head { color: var(--flame) !important; }
.about-back { margin: 10px 0 0; }
.about-back a {
  color: var(--cool); text-decoration: none; font-size: .92rem; font-weight: 550;
}
.about-back a:hover { text-decoration: underline; text-underline-offset: 3px; }


.card-about { max-width: 860px; }
.card-about h2 { margin: 0 0 14px; font-size: 1.12rem; }
.card-about h3 { margin: 26px 0 10px; font-size: .95rem; color: var(--corona); }
.card-about p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.card-about .warn {
  margin-top: 20px; padding: 15px 17px;
  background: rgba(255,107,74,.07); border: 1px solid rgba(255,107,74,.28);
  border-radius: var(--radius-sm); color: #ffc9b8; font-size: .88rem;
}
.card-about .warn strong { color: #ff8b6b; }
.card-about code {
  padding: 1px 6px; border-radius: 5px;
  background: rgba(111,211,255,.09); border: 1px solid rgba(111,211,255,.18);
  font-family: var(--mono); font-size: .86em; color: #a9dcff;
}

.foot {
  border-top: 1px solid var(--line); margin-top: 10px;
  padding: 34px 0 calc(30px + env(safe-area-inset-bottom));
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .brand-mark { width: 22px; height: 22px; }
.foot-brand .brand-mark i { width: 13px; height: 13px; transform: translate(-2.5px,-1.5px); }
.foot-brand strong { display: block; font-size: .93rem; font-weight: 650; letter-spacing: -.015em; }
.foot-brand span { display: block; font-size: .78rem; color: var(--dim); }

.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a {
  color: var(--muted); text-decoration: none; font-size: .87rem; font-weight: 500;
  transition: color .18s;
}
.foot-links a:hover { color: var(--text); }
.foot-links a.active { color: var(--corona); }

.foot-fine { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(34,40,64,.6); }
.foot-fine p { margin: 0; color: var(--dim); font-size: .78rem; max-width: 720px; line-height: 1.6; }

@media (max-width: 620px) {
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot-links { gap: 18px; }
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1040px) {
  .panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .hero { padding-top: 52px; }
  .topbar-loc { padding-left: 0; border-left: 0; }
  .topbar-actions { margin-left: auto; }
}

/* --- phones ------------------------------------------------------------- */
@media (max-width: 760px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  main { padding: 26px 16px 48px; }

  /* The header is sticky, so every pixel here is lost for the whole session. */
  .topbar-inner { gap: 10px; padding-top: 8px; padding-bottom: 8px; min-height: 0; }
  .brand span:last-child { display: none; }
  .topbar-loc { flex: 1; min-width: 0; }
  .topbar-loc strong { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
  #loc-coords { font-size: .68rem; }
  .topbar-actions { margin-left: auto; gap: 8px; }
  .btn-searchtoggle { display: inline-flex; }

  /* Hidden until the magnifier is tapped, then a full-width row beneath. */
  .loc-search { display: none; order: 5; width: 100%; flex: 0 0 100%; gap: 8px; }
  .topbar-inner.search-open .loc-search { display: flex; }
  .loc-search input { width: 100%; flex: 1; min-width: 0; }
  .loc-suggest { left: 0; right: 0; width: auto; }

  /* Icon-only geolocate, so the search field keeps a usable width. */
  .btn-geo .btn-label { display: none; }
  .btn-geo .geo-ic { display: block; }
  .btn-geo { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .btn-icon { width: 44px; height: 44px; }

  /* Comfortable touch targets. */
  .btn, .loc-search input { min-height: 44px; }
  .btn { padding: 11px 16px; }
  .foot-links a, .about-back a { display: inline-block; padding: 6px 0; }

  .hero { padding: 34px 0 26px; }
  .hero-sub { margin-bottom: 26px; }
  .countdown { padding: 14px 10px; gap: 2px; width: 100%; justify-content: space-around; }
  .cd-unit { min-width: 0; flex: 1; }
  .cd-sep { display: none; }
  .hero-verdict {
    flex-direction: column; align-items: flex-start; gap: 16px;
    width: 100%; margin-top: 24px; padding: 18px;
  }
  .verdict-dial { width: 84px; height: 84px; }
  .dial-label span { font-size: 1.05rem; }
  .dial-label small { font-size: .55rem; letter-spacing: .08em; }
  .dial-track, .dial-fill { stroke-width: 11; }

  .card { padding: 18px 16px; margin-bottom: 18px; }
  .bigstats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bigstat { padding: 14px 12px; }
  .bs-num { font-size: 1.7rem; }
  .circ-foot { grid-template-columns: 1fr 1fr; }

  .sim-stage { aspect-ratio: 1 / 1; }
  .btn-play { width: 44px; height: 44px; }

  #map { height: 300px; }

  /* The eclipse table stops being a table and becomes a stack of cards —
     a 660px-wide grid on a 390px screen is a sideways-scrolling mess. */
  .table-scroll { overflow-x: visible; }
  .ecl-table { min-width: 0; display: block; }
  .ecl-table thead { display: none; }
  .ecl-table tbody { display: block; }
  .ecl-table tr.row {
    display: grid; grid-template-columns: 1fr auto;
    gap: 4px 12px; align-items: center;
    padding: 14px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: rgba(8,10,20,.5);
  }
  .ecl-table tr.row.sel {
    border-color: rgba(255,212,121,.45); background: rgba(255,212,121,.07);
  }
  .ecl-table tr.row.sel td:first-child { box-shadow: none; }
  /* These need the .ecl-table prefix: a bare .td-* class loses to the
     `.ecl-table td` rule above, which would force them all back to block. */
  .ecl-table td { display: block; padding: 0; border: 0; }
  .ecl-table .td-date { grid-column: 1; }
  .ecl-table .td-type { grid-column: 2; grid-row: 1; text-align: right; }
  .ecl-table .td-dur {
    grid-column: 1 / -1; display: flex; align-items: baseline;
    justify-content: space-between; gap: 12px;
    padding-top: 9px; margin-top: 5px; border-top: 1px solid rgba(34,40,64,.6);
    font-size: .85rem; color: var(--muted);
  }
  .ecl-table .td-dur .cell-k {
    display: block; font-family: var(--font); color: var(--dim);
    font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  }
  .ecl-table .td-vis { grid-column: 1 / -1; font-size: .87rem; }
  .ecl-table .td-cov {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  }
  .ecl-table .td-go { display: none; }
  .covbar { flex: 1; width: auto; margin-bottom: 0; }
  .covtxt { flex: none; }

  .about-page { padding: 30px 16px 48px; }
  .about-table { min-width: 0; }
  .table-scroll:has(.about-table) { overflow-x: auto; }
}

@media (max-width: 380px) {
  .bigstats { grid-template-columns: 1fr; }
  .cd-num { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
