:root {
  /* 1.12.0 redesign: navy and gold, refreshed (see Docs/Design-Mockup). */
  --ink: #f2f4fb;
  --muted: #aeb7d3;
  --faint: #8a94b4;
  --bg: #050816;
  --bg-soft: #080d22;
  --panel: #0e1736;
  --panel-2: #101a3d;
  --line: rgba(160, 180, 255, .2);
  --line-soft: rgba(160, 180, 255, .12);
  --accent: #f8cf6c;
  --accent-strong: #f0b43c;
  --accent-soft: #ffe3a0;
  --accent-ink: #1d1404;
  --teal: #59e3b8;
  --blue: #8db4ff;
  --violet: #b49bff;
  --bad: #ff8a6b;
  --good: #59e3b8;
  --warn: #f8cf6c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px -30px rgba(0, 0, 0, .85);
  --wrap: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", ui-sans-serif, system-ui, sans-serif;
  --surface: linear-gradient(180deg, rgba(24, 36, 79, .62), rgba(13, 21, 50, .62));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(141, 180, 255, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(180, 155, 255, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 40%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 72%, #dfe6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 79% 61%, #fff3d0 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 44%, #cdd8ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 7% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 90%, #fff 50%, transparent 51%);
  background-size: 640px 520px;
  pointer-events: none;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p a, li a { text-decoration: underline; text-underline-offset: .16em; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
pre { background: #0a1020; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; overflow: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: .5rem .8rem; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: .86rem; }
.small { font-size: .9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7, 11, 23, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; color: var(--accent); }
.brand-mark { color: var(--accent); display: inline-flex; }
.site-nav { display: flex; gap: 1.35rem; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: .93rem; font-weight: 550; padding: .4rem .1rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: .7rem; }
.units-form { margin: 0; }
.clock-form { margin: 0; }
.mobile-menu { display: none; }
.clock-form button, .nav-toggle, .units-toggle { min-height: 44px; }
.calendar > * { min-width: 0; overflow-wrap: anywhere; }
details > summary { cursor: pointer; padding: .7rem 0; }
.units-toggle { display: inline-flex; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 999px; padding: 2px; cursor: pointer; }
.units-toggle span { padding: .18rem .48rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--faint); }
.units-toggle .on { background: var(--panel-2); color: var(--accent); }
.nav-toggle { display: none; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .65rem; font: inherit; font-size: .85rem; cursor: pointer; }
.nav-toggle { list-style: none; }
.nav-toggle::-webkit-details-marker { display: none; }
.mobile-nav { display: none; position: absolute; top: 100%; inset-inline: 0; max-height: calc(100dvh - 4rem); overflow-y: auto; background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); padding: .8rem 1.25rem 1rem; }
.mobile-nav a { display: block; color: var(--ink); padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }

.flash-stack { padding-top: 1rem; }
.flash { border-radius: var(--radius-sm); padding: .7rem 1rem; margin: 0 0 .5rem; border: 1px solid var(--line); background: var(--panel); }
.flash-success { border-color: rgba(127, 224, 168, .4); color: var(--good); }
.flash-error { border-color: rgba(255, 139, 139, .4); color: var(--bad); }
.flash-info { border-color: rgba(127, 178, 255, .4); color: var(--blue); }

.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .7; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 27% 68%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 44% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 61% 42%, #ffe9b0 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 73% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 84% 26%, #d8e6ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 93% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 53% 86%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, #fff 50%, transparent 51%);
  background-size: 720px 520px;
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 55ch; margin-bottom: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.2rem; }
.hero-note { color: var(--faint); font-size: .82rem; margin: 0; }
.hero-card { background: linear-gradient(160deg, var(--panel-2), #0e1730 70%); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; box-shadow: var(--shadow); }
.hero-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .9rem; }
.hero-card-head span:last-child { color: var(--faint); font-size: .78rem; }
.hero-city { font-size: 1.35rem; font-weight: 700; margin: 0 0 .2rem; }
.hero-score { display: flex; align-items: baseline; gap: .5rem; margin: 1rem 0 .5rem; }
.hero-score strong { font-size: 3.4rem; line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.hero-score span { color: var(--muted); }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.1rem; }
.hero-fact { background: rgba(255,255,255,.025); border: 1px solid var(--line-soft); border-radius: 10px; padding: .6rem .7rem; }
.hero-fact b { display: block; font-size: .95rem; }
.hero-fact span { color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }

.btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 999px; padding: .68rem 1.15rem; font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffe099; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { background: var(--panel); }
.btn-small { padding: .4rem .75rem; font-size: .82rem; }
.btn { text-decoration: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-arrow::after { content: " ->"; }

.section { padding: clamp(2.5rem, 5vw, 4.2rem) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.section-head p { margin: 0; max-width: 62ch; color: var(--muted); }
.section-head h2 { margin-bottom: .35rem; }
.section-tight { padding-top: 0; }


.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.2rem; }
.card h3 { margin-bottom: .3rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; transition: border-color .14s ease, transform .14s ease, background .14s ease; }
.card-link:hover { text-decoration: none; border-color: #3a4a71; background: var(--panel-2); transform: translateY(-2px); }
.card-kicker { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--faint); font-size: .75rem; margin-bottom: .5rem; }
.card-facts { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--muted); font-size: .82rem; margin-top: .7rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--faint); }

.score { display: inline-flex; align-items: baseline; gap: .25rem; font-weight: 750; color: var(--ink); }
.score b { font-size: 1.35rem; letter-spacing: -.03em; }
.score span { font-size: .72rem; color: var(--faint); }
.score-good b, .tone-good { color: var(--good); }
.score-fair b, .tone-fair { color: var(--warn); }
.score-poor b, .tone-poor { color: var(--bad); }
.score-unknown b, .tone-unknown { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; border: 1px solid var(--line); padding: .16rem .55rem; font-size: .72rem; color: var(--muted); background: rgba(255,255,255,.02); }
.pill-good { color: var(--good); border-color: rgba(127,224,168,.32); background: rgba(127,224,168,.07); }
.pill-warn { color: var(--warn); border-color: rgba(255,207,112,.32); background: rgba(255,207,112,.07); }
.pill-bad { color: var(--bad); border-color: rgba(255,139,139,.32); background: rgba(255,139,139,.07); }

.search-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"], input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; background: #0a1121; border: 1px solid var(--line); color: var(--ink); border-radius: 9px; padding: .62rem .75rem; font: inherit; font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
.search-results { list-style: none; margin: .8rem 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.search-results li { border-bottom: 1px solid var(--line-soft); }
.search-results a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .2rem; color: var(--ink); }
.search-results a:hover { text-decoration: none; color: var(--accent); }
.search-results .muted { font-size: .8rem; }
.geo-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .8rem; font-size: .8rem; }
button.linkish { background: none; border: 0; color: var(--blue); padding: 0; font: inherit; cursor: pointer; }
button.linkish:hover { text-decoration: underline; }

.state-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.state-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: .8rem 1rem; color: var(--ink); }
.state-card:hover { text-decoration: none; border-color: #3a4a71; background: var(--panel-2); }
.state-card span { color: var(--faint); font-size: .8rem; }
.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }
.city-chip { display: flex; justify-content: space-between; gap: .5rem; align-items: center; border: 1px solid var(--line-soft); background: var(--panel); border-radius: 10px; padding: .65rem .8rem; color: var(--ink); font-size: .92rem; }
.city-chip:hover { text-decoration: none; border-color: #3a4a71; color: var(--accent); }
.city-chip small { color: var(--faint); font-size: .75rem; }

.weather-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; background: rgba(127,178,255,.07); border: 1px solid rgba(127,178,255,.25); border-radius: var(--radius-sm); padding: .7rem 1rem; color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.weather-banner strong { color: var(--ink); }

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: .6rem .55rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data th { color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); }


.page-head { padding: clamp(2rem, 4vw, 3.2rem) 0 1.5rem; }
.page-head h1 { margin-bottom: .5rem; }
.page-head .lede { color: var(--muted); max-width: 68ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; color: var(--faint); font-size: .8rem; margin-bottom: .8rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { color: var(--faint); }

.city-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 1rem; align-items: stretch; margin-bottom: 1rem; }
.score-panel { position: relative; overflow: hidden; background: linear-gradient(145deg, #1b2748, #101932 65%); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.score-panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,102,.16), transparent 65%); }
.score-top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; position: relative; }
.score-big { display: flex; align-items: baseline; gap: .4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.score-big strong { font-size: clamp(3.5rem, 8vw, 5.4rem); color: var(--accent); }
.score-big span { font-size: 1rem; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.score-panel h2 { margin: .8rem 0 .4rem; }
.score-summary { color: var(--muted); margin: 0; max-width: 52ch; }
.score-aside { display: flex; flex-direction: column; gap: .8rem; }
.date-nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.date-nav a, .date-nav span { display: inline-flex; align-items: center; min-height: 44px; padding: .32rem .62rem; border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; color: var(--muted); }
.date-nav a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.date-nav .current { background: var(--panel-2); color: var(--ink); border-color: #3b4a70; }

.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.stat { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.stat span { display: block; color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .15rem; }
.stat b { font-size: 1.02rem; font-weight: 650; }
.stat small { display: block; color: var(--muted); font-size: .75rem; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 1rem; margin-top: 1rem; align-items: start; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 2rem; align-items: start; }
.state-layout { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.5rem; align-items: start; }
.detail-grid > *, .guide-layout > *, .state-layout > * { min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1rem; }
.panel h2, .panel h3 { margin-bottom: .8rem; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head a { font-size: .82rem; }

.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { display: flex; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: .9rem; }
.reasons li:last-child { border-bottom: 0; }
.reasons .tag { flex: 0 0 auto; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding-top: .15rem; }
.reasons .positive { color: var(--good); }
.reasons .negative { color: var(--bad); }
.reasons .neutral { color: var(--blue); }

.hour-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 4px; align-items: end; min-height: 120px; margin-top: .8rem; }
.hour-col { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.hour-bar { width: 100%; border-radius: 5px 5px 2px 2px; background: var(--panel-2); min-height: 3px; position: relative; }
.hour-bar span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to top, rgba(127,178,255,.22), rgba(127,178,255,.03)); }
.hour-col b { font-size: .7rem; color: var(--muted); font-weight: 600; }
.hour-col small { font-size: .62rem; color: var(--faint); }
.sky-clear { color: var(--good); }
.sky-mostly-clear { color: #b9e6a0; }
.sky-partly { color: var(--warn); }
.sky-mostly-cloudy { color: #ffb27f; }
.sky-cloudy { color: var(--bad); }
.sky-unknown { color: var(--muted); }

.planet-list { display: grid; gap: .55rem; }
.planet { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.planet:last-child { border-bottom: 0; }
.planet-name { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; }
.planet-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.planet-dot.on { background: var(--accent); box-shadow: 0 0 10px rgba(255,209,102,.5); }
.planet-meta { text-align: right; color: var(--faint); font-size: .76rem; }

.star-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.star { background: rgba(255,255,255,.02); border: 1px solid var(--line-soft); border-radius: 10px; padding: .7rem .8rem; }
.star b { display: block; font-size: .9rem; }
.star span { color: var(--faint); font-size: .74rem; }
.star p { margin: .35rem 0 0; color: var(--muted); font-size: .8rem; }


.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; }
.week-day { display: block; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 10px; padding: .6rem .45rem; text-align: center; color: var(--ink); }
.week-day:hover { text-decoration: none; border-color: #3a4a71; }
.week-day.current { border-color: var(--accent); background: var(--panel-2); }
.week-day .wd { display: block; color: var(--faint); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; }
.week-day .dd { display: block; font-weight: 700; font-size: .95rem; margin: .1rem 0; }
.week-day .ws { display: block; font-size: .75rem; color: var(--muted); }

.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar .dow { text-align: center; color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: .3rem 0; }
.cal-day { min-height: 70px; border: 1px solid var(--line-soft); border-radius: 8px; padding: .35rem .4rem; background: rgba(255,255,255,.015); color: var(--ink); font-size: .75rem; }
.cal-day:hover { text-decoration: none; border-color: #3a4a71; }
.cal-day.out { opacity: .3; }
.cal-day.today { border-color: var(--accent); }
.cal-day .n { display: block; color: var(--muted); font-weight: 600; }
.cal-date-long { display: none; }
.cal-quality { font-size: .75rem; }
.cal-day .s { display: block; margin-top: .15rem; font-size: .82rem; font-weight: 700; }
.cal-empty { min-height: 70px; }

.form-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; color: var(--muted); }
.field .hint { display: block; color: var(--faint); font-size: .75rem; margin-top: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { margin-top: .25rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.errors { border: 1px solid rgba(255,139,139,.4); background: rgba(255,139,139,.06); color: var(--bad); border-radius: var(--radius-sm); padding: .7rem 1rem; margin-bottom: 1rem; font-size: .86rem; }
.errors ul { margin: 0; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: #c8d2e4; }
.prose blockquote { margin: 1.2rem 0; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--panel); color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.guide-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.2rem; color: var(--ink); }
.guide-card:hover { text-decoration: none; border-color: #3a4a71; background: var(--panel-2); }
.guide-card h2, .guide-card h3 { font-size: 1.1rem; }
.guide-card p { color: var(--muted); font-size: .88rem; flex: 1; }
.guide-card span { color: var(--accent); font-size: .8rem; font-weight: 600; }

.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem; background: linear-gradient(135deg, #18223d, #10182c); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); margin: 2rem 0; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line-soft); margin-top: 3rem; padding: 2.5rem 0 1.5rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand { color: var(--ink); font-weight: 700; margin-bottom: .3rem; }
.footer-head { color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: .5rem; }
.site-footer a { display: block; color: var(--muted); font-size: .86rem; padding: .15rem 0; }
.site-footer a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line-soft); margin-top: 2rem; padding-top: 1rem; color: var(--faint); font-size: .75rem; }

.admin-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0 3rem; }
.admin-nav { align-self: start; position: sticky; top: 88px; display: grid; gap: .2rem; }
.admin-nav a { padding: .5rem .7rem; border-radius: 8px; color: var(--muted); font-size: .86rem; }
.admin-nav a:hover { text-decoration: none; background: var(--panel); color: var(--ink); }
.admin-nav a.active { background: var(--panel-2); color: var(--accent); }
.admin-main h1 { font-size: 1.8rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.admin-stat { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 1rem; }
.admin-stat span { display: block; color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-stat b { font-size: 1.6rem; letter-spacing: -.03em; }
.status-ok { color: var(--good); }
.status-error, .status-failed { color: var(--bad); }
.status-warning, .status-retry { color: var(--warn); }
.status-running, .status-pending { color: var(--blue); }
.inline-form { display: inline; }
.action-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }


@media (max-width: 960px) {
  .hero-inner, .city-hero, .detail-grid, .guide-layout, .state-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-card { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .header-tools > .clock-form { display: none; }
  .header-tools { margin-left: auto; }
  .header-inner { gap: .7rem; }
  .mobile-nav .clock-form { margin-top: .7rem; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .mobile-menu { display: block; }
  .mobile-menu[open] .mobile-nav { display: block; }
  .header-inner { min-height: 60px; }
  .hero { padding-top: 2.5rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .week-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cal-day, .cal-empty { min-height: 54px; }
  .cal-day .s { font-size: .72rem; }
  .star-list { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head .btn { margin-top: .8rem; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { align-items: flex-start; }
  .table-scroll table.data { min-width: 620px; }
  .footer-grid a { display: flex; align-items: center; min-height: 44px; }
  .admin-header .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  .admin-header .header-tools { flex: 1 1 100%; flex-wrap: wrap; justify-content: space-between; margin-left: 0; }
  .admin-header .header-tools > span { overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  .wrap { width: min(var(--wrap), calc(100% - 1.5rem)); }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .week-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-text { font-size: .95rem; }
  .search-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .date-nav { gap: .3rem; }
}

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

.planner-controls { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:1rem; align-items:end; margin-bottom:1.5rem; }
.planner-controls label,.form-stack label { display:grid; gap:.4rem; min-width:0; }
.planner-controls select,.planner-controls input,.form-stack input,.form-stack textarea,.form-stack select { width:100%; max-width:100%; min-height:44px; }
.planner-controls input,.form-stack input:not([type=checkbox]):not([type=hidden]) { background:var(--bg-soft); color:var(--ink); border:1px solid var(--line); border-radius:var(--radius-sm); padding:.75rem; font:inherit; color-scheme:dark; }
.form-stack { display:grid; gap:1rem; }
.form-stack .check-row { display:flex; align-items:flex-start; gap:.6rem; }
.check-row input[type=checkbox] { width:22px; min-height:22px; flex:0 0 22px; }
.button-row { display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; margin:.8rem 0; }
.sky-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); gap:1.5rem; margin:1.5rem 0; align-items:start; }
.sky-layout > * { min-width:0; }
.sky-chart { width:100%; height:auto; max-height:480px; color:var(--ink); }
.sky-chart text { fill:currentColor; font-size:15px; }
.sky-ring { fill:none; stroke:#536079; stroke-width:1; }
.sky-object { fill:#efd391; }
.session-result { margin:1.5rem 0; }
.event-row { margin:1.25rem 0; }
.table-scroll { overflow-x:auto; max-width:100%; }
.table-scroll table { width:100%; border-collapse:collapse; }
.table-scroll th,.table-scroll td { padding:.75rem; text-align:left; vertical-align:top; border-bottom:1px solid var(--line,#344057); }
.table-scroll caption { text-align:left; padding:.75rem 0; color:var(--muted); }
[data-notes-key] { display:block; width:100%; margin:.6rem 0; }
details>summary { cursor:pointer; padding:.6rem 0; min-height:44px; }
.admin-main .form-stack textarea { font-family:inherit; }
.country-region { scroll-margin-top:6rem; }
@media(max-width:800px) { .sky-layout { grid-template-columns:minmax(0,1fr); } .planner-controls { grid-template-columns:minmax(0,1fr); } }
@media print {
  .site-header,.site-footer,.no-print,.flash-stack,.breadcrumbs,.skip-link { display:none!important; }
  body,main,.panel { background:#fff!important; color:#111!important; }
  .wrap { width:100%; max-width:none; } .sky-layout { display:block; }
  .panel { border:1px solid #999; break-inside:avoid; box-shadow:none; margin:1rem 0; }
  .sky-chart { color:#111; max-width:380px; } .sky-object { fill:#333; }
  a,.muted,.small { color:#222!important; } .table-scroll { overflow:visible; }
}

@media (max-width: 600px) {
  .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .calendar .dow, .calendar .cal-empty, .cal-day .n { display: none; }
  .cal-day { min-height: 72px; padding: .6rem; }
  .cal-date-long { display: block; color: var(--muted); font-size: .8rem; }
  .cal-day .s { font-size: .85rem; }
}


/* 1.9.0: sunrise/sunset and Moon pages */
.sun-facts { margin: 1rem 0; }
.sun-facts .stat b { font-size: 1.35rem; display: block; margin: .1rem 0; }
.city-chip-links { flex-direction: column; align-items: flex-start; gap: .15rem; }
.city-chip-links:hover { border-color: #3a4a71; color: var(--ink); }
.city-chip-links > a { color: var(--ink); }
.city-chip-links small a { color: var(--muted); }
.city-chip-links a:hover { color: var(--accent); }
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain-list li { padding: .45rem 0; border-bottom: 1px solid var(--line-soft); }
table.data tr[aria-current="date"] th, table.data tr[aria-current="date"] td { color: var(--accent); }
table.data tr.muted th, table.data tr.muted td { color: var(--faint); }
.grid > * { min-width: 0; }

/* 1.10.0: climate and aurora */
.stat-feature { background: linear-gradient(160deg, rgba(255,209,102,.14), rgba(255,209,102,.03) 60%), var(--panel); border-color: rgba(255,209,102,.35); }
.stat-feature b { color: var(--accent); }
.verdict { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem; align-items: center; border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 1rem 0; border: 1px solid var(--line); background: var(--panel); }
.verdict h2 { margin: .15rem 0 .4rem; font-size: 1.7rem; }
.verdict p { margin: 0; color: var(--muted); }
.verdict-good { background: radial-gradient(120% 140% at 0% 0%, rgba(102,217,194,.22), transparent 60%), var(--panel); border-color: rgba(102,217,194,.45); }
.verdict-good h2 { color: var(--teal); }
.verdict-warn { background: radial-gradient(120% 140% at 0% 0%, rgba(255,209,102,.18), transparent 60%), var(--panel); border-color: rgba(255,209,102,.4); }
.verdict-warn h2 { color: var(--accent); }
.verdict-bad h2 { color: var(--ink); }
.verdict-facts { display: grid; gap: .5rem; margin: 0; }
.verdict-facts div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-soft); padding-bottom: .4rem; }
.verdict-facts dt { color: var(--faint); font-size: .85rem; }
.verdict-facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.kp-chart { display: flex; align-items: stretch; gap: 2px; height: 190px; padding: .5rem 0 1.6rem; overflow: hidden; background: linear-gradient(to top, transparent 1.6rem, var(--line) 1.6rem, var(--line) calc(1.6rem + 1px), transparent calc(1.6rem + 1px)); }
.kp-col { flex: 1 1 0; min-width: 3px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.kp-col small { position: absolute; bottom: -1.35rem; left: 0; white-space: nowrap; font-size: .68rem; color: var(--faint); }
.kp-bar { display: block; border-radius: 3px 3px 0 0; min-height: 4px; }
.kp-predicted .kp-bar { opacity: .5; }
.kp-now .kp-bar { outline: 2px solid var(--ink); outline-offset: 1px; }
.kp-quiet { background: #3a5a9a; }
.kp-active { background: var(--teal); }
.kp-storm { background: var(--accent); }
.kp-severe { background: var(--bad); }
.kp-legend { margin-top: .6rem; }
.kp-key { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin: 0 .3rem 0 .6rem; vertical-align: -1px; }
.month-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .4rem; align-items: end; height: 190px; padding-top: .3rem; }
.month-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .25rem; }
.month-bar { width: 100%; max-width: 2.6rem; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), #c99a3a); opacity: .8; }
.month-now .month-bar { opacity: 1; box-shadow: 0 0 0 2px rgba(255,209,102,.35); }
.month-value { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.month-col small { font-size: .72rem; color: var(--faint); }
.inline-bar { display: inline-block; height: .55rem; border-radius: 3px; background: var(--blue); opacity: .55; margin-right: .45rem; vertical-align: 1px; }
@media (max-width: 760px) {
  .verdict { grid-template-columns: 1fr; }
  .month-chart { gap: .2rem; height: 160px; }
  .month-value { font-size: .6rem; }
}

/* ==== 1.12.0 design layer (approved mockup: Docs/Design-Mockup) ==== */
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-weight: 750; }
a { color: var(--accent); }
a:hover { color: var(--accent-soft); }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }

/* Header */
.site-header { background: rgba(5, 8, 22, .74); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line-soft); }
.header-inner { min-height: 64px; gap: 1rem; }
.brand { font-weight: 750; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--accent-soft), var(--accent-strong) 60%, #c98d1e); color: var(--accent-ink); box-shadow: 0 0 22px rgba(240, 180, 60, .45); }
.brand-mark svg { width: 18px; height: 18px; }
.site-nav { gap: .15rem; margin-left: .5rem; }
.site-nav a { padding: .42rem .7rem; border-radius: 999px; border-bottom: 0; font-size: .9rem; }
.site-nav a:hover { background: rgba(255, 255, 255, .05); }
.site-nav a.active { color: var(--accent-ink); background: var(--accent); border-bottom: 0; }
.header-tools { margin-left: auto; }
.header-search { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); color: var(--faint); font-size: .85rem; }
.header-search:hover { color: var(--ink); text-decoration: none; border-color: var(--line); }
.units-toggle { border-radius: 999px; }
@media (max-width: 1060px) { .header-search { display: none; } }

/* Buttons, chips, surfaces */
.btn { border-radius: 999px; font-weight: 650; }
.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(240, 180, 60, .8); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.06); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.panel, .card, .search-panel, .hero-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-link:hover { border-color: rgba(240, 180, 60, .45); transform: translateY(-2px); }
.stat { background: rgba(255, 255, 255, .03); border-color: var(--line-soft); border-radius: var(--radius-sm); }
.stat b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.pill { border-radius: 999px; }
table.data thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
table.data { font-variant-numeric: tabular-nums; }
.weather-banner { border-radius: var(--radius-sm); }
.safety { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid rgba(255, 138, 107, .45); background: rgba(255, 138, 107, .08); color: #ffd7cc; margin: 1rem 0; }
.safety strong { color: #ffe5dd; }
.site-footer { background: rgba(5, 8, 22, .6); border-top: 1px solid var(--line-soft); }

/* Place header and section tabs (all place pages) */
.place-head { padding: 1.6rem 0 0; }
.place-head .breadcrumbs { margin-bottom: .7rem; }
.place-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.place-title h1 { margin: 0; font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
.place-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .03); }
.chip-gold { color: var(--accent-soft); border-color: rgba(240, 180, 60, .45); background: rgba(240, 180, 60, .1); }
.chip-teal { color: var(--teal); border-color: rgba(89, 227, 184, .4); background: rgba(89, 227, 184, .08); }
.chip-blue { color: var(--blue); border-color: rgba(141, 180, 255, .4); background: rgba(141, 180, 255, .08); }
.place-tabs { position: sticky; top: 64px; z-index: 30; margin-top: 1.2rem; background: rgba(5, 8, 22, .8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.place-tabs-inner { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.place-tabs-inner::-webkit-scrollbar { display: none; }
.place-tab { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .85rem .9rem; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; }
.place-tab:hover { color: var(--ink); text-decoration: none; }
.place-tab[aria-current="page"] { color: var(--accent-soft); border-bottom-color: var(--accent); }
.place-tab .badge { font-size: .68rem; padding: .05rem .42rem; border-radius: 999px; background: rgba(89, 227, 184, .14); color: var(--teal); }
.place-body { padding-top: 1.4rem; }

/* Score ring and night timeline */
.ring { --p: 0; --c: var(--accent); width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }
.ring > span { width: 84px; height: 84px; border-radius: 50%; background: #0b1230; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring b { display: block; font: 800 1.95rem/1 var(--font-display); }
.ring small { display: block; color: var(--faint); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; margin-top: .25rem; }
.tonight-card { position: relative; overflow: hidden; border-radius: 22px; padding: 1.4rem; background: radial-gradient(120% 90% at 100% 0%, rgba(240, 180, 60, .16), transparent 55%), #0e1736; border: 1px solid rgba(240, 180, 60, .3); box-shadow: 0 0 0 1px rgba(240, 180, 60, .2), 0 18px 60px -24px rgba(240, 180, 60, .45); color: var(--ink); }
a.tonight-card:hover { text-decoration: none; color: var(--ink); }
.tonight-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tonight-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 .9rem; }
.tonight-facts div { padding: .6rem .7rem; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); min-width: 0; }
.tonight-facts span { display: block; font-size: .68rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.tonight-facts b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.night-line { margin-top: .3rem; }
.nl-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: .6rem; margin: .32rem 0; font-size: .76rem; color: var(--faint); }
.nl-bar { position: relative; height: 15px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.nl-span { position: absolute; top: 0; bottom: 0; }
.nl-dusk { background: linear-gradient(90deg, #f0b43c, #8a5a6a 35%, #2f3577); }
.nl-dawn { background: linear-gradient(90deg, #2f3577, #8a5a6a 65%, #f0b43c); }
.nl-dark { background: #070b20; box-shadow: inset 0 0 0 1px rgba(141, 180, 255, .12); }
.nl-moon { background: linear-gradient(90deg, rgba(255, 243, 208, .85), rgba(255, 243, 208, .55)); border-radius: 999px; }
.nl-cloud { display: flex; gap: 2px; background: none; }
.nl-cloud i { flex: 1; border-radius: 3px; min-width: 2px; }
.nl-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--faint); margin: .25rem 0 0 76px; font-variant-numeric: tabular-nums; }

/* Home */
.hero { border-bottom: 0; }
.hero h1 em { background: linear-gradient(90deg, var(--accent-soft), var(--accent-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search-xl { display: flex; gap: .5rem; padding: .45rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); max-width: 560px; margin: 1.3rem 0 .8rem; box-shadow: var(--shadow); }
.search-xl input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 500 1rem var(--font); padding: .55rem .9rem; outline: none; }
.search-xl input::placeholder { color: var(--faint); }
.search-xl input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.quick-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.quick-row .chip:hover { color: var(--ink); text-decoration: none; border-color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tile { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); min-height: 150px; min-width: 0; }
.tile:hover { text-decoration: none; color: var(--ink); border-color: rgba(240, 180, 60, .45); }
.tile .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); margin-bottom: .3rem; color: var(--accent); font-size: 1.1rem; }
.tile b { font: 750 1.22rem var(--font-display); font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: .85rem; }
.event-row2 { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
.event-row2:last-child { border-bottom: 0; }
.date-badge { text-align: center; border-radius: 14px; padding: .4rem 0; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); }
.date-badge b { display: block; font: 800 1.35rem/1 var(--font-display); }
.date-badge span { font-size: .66rem; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

/* Eclipse hero and countdown */
.eclipse-hero { position: relative; overflow: hidden; display: block; border-radius: 22px; padding: 2rem; background: radial-gradient(60% 120% at 85% 50%, rgba(240, 180, 60, .18), transparent 60%), #0e1736; border: 1px solid var(--line); color: var(--ink); }
a.eclipse-hero:hover { text-decoration: none; color: var(--ink); border-color: rgba(240, 180, 60, .45); }
.eclipse-hero-text { position: relative; max-width: min(640px, 70%); }
.corona { position: absolute; right: 6%; top: 50%; width: 210px; height: 210px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, #04060f 0 46%, rgba(255, 238, 190, .95) 47%, rgba(255, 214, 120, .45) 54%, rgba(255, 200, 90, .12) 66%, transparent 72%); filter: drop-shadow(0 0 40px rgba(255, 210, 120, .5)); }
.corona-annular { background: radial-gradient(circle, #04060f 0 44%, rgba(255, 214, 120, .95) 45%, rgba(255, 200, 90, .7) 50%, rgba(255, 200, 90, .1) 58%, transparent 64%); }
.corona-lunar { background: radial-gradient(circle at 40% 40%, #d9774e, #8a3a24 60%, #3a1610 75%, transparent 77%); filter: drop-shadow(0 0 30px rgba(217, 119, 78, .4)); }
.countdown { display: flex; gap: .6rem; margin: 1rem 0; }
.countdown div { min-width: 74px; text-align: center; padding: .65rem .4rem; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); }
.countdown b { display: block; font: 800 1.85rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .66rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.path-map { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); background: #0a1230; border: 1px solid var(--line-soft); }

@media (max-width: 1020px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tonight-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tonight-facts div:first-child { grid-column: 1 / -1; }
  .ring { width: 90px; height: 90px; }
  .ring > span { width: 70px; height: 70px; }
  .ring b { font-size: 1.55rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .tile { min-height: 0; padding: .9rem; }
  .eclipse-hero { padding: 1.3rem; }
  .eclipse-hero-text { max-width: 100%; }
  .corona { width: 130px; height: 130px; right: -34px; top: 70px; opacity: .5; }
  .countdown { gap: .4rem; }
  .countdown div { min-width: 0; flex: 1 1 0; padding: .55rem .2rem; }
  .countdown b { font-size: 1.35rem; }
  .countdown span { font-size: .6rem; letter-spacing: .06em; }
  .event-row2 { grid-template-columns: 54px minmax(0, 1fr); }
  .event-row2 > :last-child { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .card-link:hover { transform: none; } }

.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.gold { color: var(--accent); }
@media (max-width: 640px) { .sun-facts.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sun-facts .stat b { font-size: 1.12rem; } }
