/* =====================================================================
   Weather network — first CSS pass.
   Pure CSS. No external fetch. Drives the animated atmosphere off the
   data-attrs set by the server (time-period, weather-class, etc.).
   ===================================================================== */

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink, #f6f7fb);
  background: #0a0e2a;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
p  { margin: 0 0 1em; }
dl, ul { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Color tokens — driven by [data-time-period] ---------- */
:root {
  --ink:        #f6f7fb;
  --ink-2:      rgba(246,247,251,.78);
  --ink-3:      rgba(246,247,251,.55);
  --glass:      rgba(255,255,255,.08);
  --glass-2:    rgba(255,255,255,.14);
  --glass-line: rgba(255,255,255,.18);
  --shadow-1:   0 10px 40px rgba(0,0,0,.35);
  --shadow-2:   0 20px 70px rgba(0,0,0,.45);
  --radius-1:   14px;
  --radius-2:   22px;
  --brand-color: #0066cc;

  /* Default sky (night) — overridden per time period below */
  --sky-1: #050816;
  --sky-2: #0d1233;
  --sky-3: #1e2a55;
  --sun-glow: rgba(255,210,140,0);
  --moon-opacity: 1;
  --stars-opacity: 1;
  --cloud-color: rgba(255,255,255,.10);
  --cloud-line:  rgba(255,255,255,.04);
}

body.time-night {
  --sky-1: #04060f;
  --sky-2: #0a1132;
  --sky-3: #1c2752;
  --moon-opacity: 1;
  --stars-opacity: 1;
  --sun-glow: transparent;
  --ink:    #eef1ff;
  --ink-2:  rgba(238,241,255,.78);
}
body.time-dawn {
  --sky-1: #1a1840;
  --sky-2: #6e3a73;
  --sky-3: #f6a36a;
  --moon-opacity: .25;
  --stars-opacity: .15;
  --sun-glow: rgba(255,180,120,.5);
  --ink: #fff5ef;
}
body.time-day {
  --sky-1: #1d6dd0;
  --sky-2: #3aa1f0;
  --sky-3: #aedcff;
  --moon-opacity: 0;
  --stars-opacity: 0;
  --sun-glow: rgba(255,225,160,.85);
  --ink: #0c1830;
  --ink-2: rgba(12,24,48,.74);
  --ink-3: rgba(12,24,48,.5);
  --glass: rgba(255,255,255,.42);
  --glass-2: rgba(255,255,255,.6);
  --glass-line: rgba(255,255,255,.7);
  --cloud-color: rgba(255,255,255,.85);
  --cloud-line: rgba(255,255,255,.55);
}
body.time-dusk {
  --sky-1: #1d143a;
  --sky-2: #b35273;
  --sky-3: #f6c560;
  --moon-opacity: .35;
  --stars-opacity: .2;
  --sun-glow: rgba(255,160,90,.65);
  --ink: #fff2e8;
}

/* Weather overlays — extra hue tint */
body.weather-rainy   { --sky-2: color-mix(in srgb, var(--sky-2) 70%, #2a3344 30%); }
body.weather-stormy  { --sky-1: #0a0712; --sky-2: #2a1840; --sky-3: #1c1430; }
body.weather-snowy   { --sky-3: color-mix(in srgb, var(--sky-3) 60%, #ffffff 40%); }
body.weather-foggy   { --sky-2: color-mix(in srgb, var(--sky-2) 60%, #707a85 40%); --sky-3: color-mix(in srgb, var(--sky-3) 50%, #d3d9e0 50%); }

/* ---------- Atmosphere (fixed background scene) ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  transition: background 1.5s ease;
}

/* ---------- Stars (visible at night/dawn/dusk) ---------- */
.stars { position: absolute; inset: 0; opacity: var(--stars-opacity); transition: opacity 1.5s ease; }
.star {
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background: #fff;
  top: calc((var(--i) * 137) % 100 * 1%);
  left: calc((var(--i) * 271) % 100 * 1%);
  opacity: calc(.4 + (var(--i) % 5) * .12);
  animation: twinkle 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -73ms);
}
.star:nth-child(7n) { width: 3px; height: 3px; }
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* ---------- Sun ---------- */
.sun {
  position: absolute;
  top: 12%; right: 10%;
  width: clamp(120px, 18vw, 240px);
  aspect-ratio: 1;
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
  filter: drop-shadow(0 0 60px var(--sun-glow));
}
body.time-day .sun  { opacity: 1; }
body.time-dawn .sun { opacity: .9; top: 38%; }
body.time-dusk .sun { opacity: .9; top: 38%; right: 14%; }
.sun-core {
  position: absolute; inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7d2, #ffd070 60%, #ff9d3a 100%);
  box-shadow: 0 0 80px var(--sun-glow);
}
.sun-rays {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(255,225,160,.5) 8deg, transparent 16deg,
    transparent 38deg, rgba(255,225,160,.5) 46deg, transparent 54deg,
    transparent 78deg, rgba(255,225,160,.5) 86deg, transparent 94deg,
    transparent 118deg, rgba(255,225,160,.5) 126deg, transparent 134deg,
    transparent 158deg, rgba(255,225,160,.5) 166deg, transparent 174deg,
    transparent 198deg, rgba(255,225,160,.5) 206deg, transparent 214deg,
    transparent 238deg, rgba(255,225,160,.5) 246deg, transparent 254deg,
    transparent 278deg, rgba(255,225,160,.5) 286deg, transparent 294deg,
    transparent 318deg, rgba(255,225,160,.5) 326deg, transparent 334deg,
    transparent 358deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 32%);
          mask: radial-gradient(circle, transparent 30%, #000 32%);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Moon ---------- */
.moon {
  position: absolute;
  top: 12%; right: 12%;
  width: clamp(90px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #e7e8ee 60%, #b9bbc8 100%);
  box-shadow: inset -10px -8px 30px rgba(0,0,0,.35);
  opacity: var(--moon-opacity);
  transition: opacity 1.5s ease;
}
.moon-glow {
  position: absolute; inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,228,255,.18), transparent 60%);
  z-index: -1;
}

/* ---------- Clouds ---------- */
.clouds { position: absolute; inset: 0; }
.cloud {
  position: absolute;
  width: 280px; height: 80px;
  background: radial-gradient(ellipse at 30% 60%, var(--cloud-color), transparent 60%),
              radial-gradient(ellipse at 70% 50%, var(--cloud-color), transparent 60%),
              radial-gradient(ellipse at 50% 40%, var(--cloud-color), transparent 65%);
  filter: blur(2px);
  animation: drift 90s linear infinite;
}
.cloud-1 { top: 18%;  left: -20%; transform: scale(1.4);  animation-duration: 110s; }
.cloud-2 { top: 28%;  left: -30%; transform: scale(.9);   animation-duration: 70s;  animation-delay: -20s; }
.cloud-3 { top: 42%;  left: -25%; transform: scale(1.1);  animation-duration: 95s;  animation-delay: -50s; }
.cloud-4 { top: 55%;  left: -40%; transform: scale(.7);   animation-duration: 60s;  animation-delay: -10s; }
@keyframes drift { to { transform: translateX(140vw) scale(var(--cloud-scale, 1)); } }

body.weather-clear .cloud { opacity: .25; }
body.weather-cloudy .cloud { opacity: .9; }
body.weather-rainy .cloud,
body.weather-stormy .cloud,
body.weather-snowy .cloud,
body.weather-foggy .cloud { opacity: .85; }

/* ---------- Rain ---------- */
.rain { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; }
body.weather-rainy .rain,
body.weather-stormy .rain { opacity: 1; }
.drop {
  position: absolute;
  top: -20%;
  left: calc((var(--i) * 1.25%));
  width: 1px; height: 14px;
  background: linear-gradient(to bottom, transparent, rgba(180,210,255,.7));
  animation: fall calc(.8s + (var(--i) % 7) * .15s) linear infinite;
  animation-delay: calc(var(--i) * -57ms);
}
@keyframes fall {
  to { transform: translateY(120vh); }
}

/* ---------- Snow ---------- */
.snow { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; }
body.weather-snowy .snow { opacity: 1; }
.flake {
  position: absolute;
  top: -10%;
  left: calc((var(--i) * 2%));
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  filter: blur(.4px);
  animation: snowfall calc(8s + (var(--i) % 7) * .8s) linear infinite,
             sway calc(3s + (var(--i) % 4) * .5s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -200ms), calc(var(--i) * -100ms);
}
.flake:nth-child(3n) { width: 4px; height: 4px; opacity: .65; }
.flake:nth-child(5n) { width: 8px; height: 8px; }
@keyframes snowfall { to { transform: translateY(120vh); } }
@keyframes sway { to { margin-left: 30px; } }

/* ---------- Lightning ---------- */
.lightning { position: absolute; inset: 0; background: white; opacity: 0; pointer-events: none; }
body.weather-stormy .lightning {
  animation: flash 7s ease-in infinite;
}
@keyframes flash {
  0%, 92%, 100% { opacity: 0; }
  93%           { opacity: .8; }
  94%           { opacity: .1; }
  95%           { opacity: .9; }
  96%           { opacity: 0; }
}

/* ---------- Fog ---------- */
.fog { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background:
    linear-gradient(transparent 30%, rgba(220,225,235,.4) 50%, transparent 70%),
    linear-gradient(transparent 50%, rgba(220,225,235,.3) 70%, transparent 90%);
  filter: blur(15px);
  transition: opacity 1.5s ease;
}
body.weather-foggy .fog { opacity: .7; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.brand-link { display: flex; flex-direction: column; gap: 1px; line-height: 1; flex-shrink: 0; }
.brand-logo { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); }
.brand-tagline { font-size: .72rem; color: var(--ink-2); font-weight: 400; letter-spacing: .02em; }

.primary-nav { display: flex; gap: 1.1rem; flex: 1 1 auto; flex-wrap: wrap; }
.primary-nav a {
  font-size: .92rem; color: var(--ink-2);
  padding: .35rem .1rem; position: relative;
  transition: color .2s ease;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand-color); border-radius: 2px;
}

.header-tools { display: flex; align-items: center; gap: .75rem; }
.search-form {
  position: relative;
  display: flex; align-items: center;
}
.search-form input {
  width: 200px; max-width: 50vw;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass-2);
  color: var(--ink);
  font-size: .9rem;
  transition: border-color .2s ease, background .2s ease;
}
.search-form input::placeholder { color: var(--ink-3); }
.search-form input:focus { outline: 0; border-color: var(--brand-color); background: var(--glass); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: rgba(20,25,45,.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
  max-height: 320px; overflow-y: auto;
  z-index: 60;
}
.search-results li { padding: .55rem .8rem; cursor: pointer; transition: background .15s ease; color: #f6f7fb; }
.search-results li:hover, .search-results li.active { background: rgba(255,255,255,.1); }
.search-results li small { display: block; opacity: .6; font-size: .75rem; }

.unit-toggle {
  display: inline-flex; gap: 0;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass-2);
  overflow: hidden;
  font-size: .85rem;
}
.unit-toggle button {
  padding: .35rem .75rem;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}
.unit-toggle button[aria-pressed="true"] {
  background: var(--brand-color);
  color: white;
}

/* ---------- Main layout ---------- */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem;
}

/* ---------- Hero (city + home shared) ---------- */
.city-hero, .home-hero {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-2);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.city-hero::before, .home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,.08), transparent 50%);
  pointer-events: none;
}

.city-clock, .hero-clock {
  display: flex; align-items: baseline; gap: .8rem;
  font-variant-numeric: tabular-nums;
}
.clock-time {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.02em;
}
.clock-date {
  font-size: .9rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.city-meta {
  font-size: .82rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 .4rem;
}
.city-header { position: relative; z-index: 1; }
.city-header h1, .home-hero h1, .place-name {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
}

.hero-temp {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.temp-value {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 200;
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(180deg, var(--ink), var(--ink-2));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.25));
  animation: tempPulse 6s ease-in-out infinite;
}
.temp-value .unit {
  font-size: .35em; font-weight: 400;
  margin-left: -.1em;
  vertical-align: super;
  color: var(--ink-2);
  -webkit-text-fill-color: var(--ink-2);
}
@keyframes tempPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}
.weather-label {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--ink-2);
  text-transform: lowercase;
  letter-spacing: .02em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .9rem;
  position: relative; z-index: 1;
}
.hero-stats > div {
  padding: .8rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-1);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stats dt {
  font-size: .72rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-stats dd {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.hero-stats .unit { font-size: .7em; font-weight: 400; color: var(--ink-3); }

.no-data {
  padding: 1rem;
  background: var(--glass);
  border: 1px dashed var(--glass-line);
  border-radius: var(--radius-1);
  color: var(--ink-2);
  text-align: center;
}

/* ---------- Home-specific ---------- */
.hero-fallback .place-tagline {
  font-size: 1.1rem;
  color: var(--ink-2);
  font-weight: 400;
  margin: .25rem 0 0;
}
.hero-fallback .fallback-prompt {
  font-size: .9rem;
  color: var(--ink-2);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: .6rem 1.2rem;
  display: inline-block;
  margin: 0 0 1rem;
}
.link-btn {
  color: var(--brand-color);
  text-decoration: underline;
  font: inherit; padding: 0;
}
.place-region {
  font-size: 1rem;
  color: var(--ink-3);
  margin: .25rem 0 0;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.place-label {
  font-size: .82rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .12em;
  display: block;
  margin-bottom: .2rem;
}
.hero-attrib {
  font-size: .75rem;
  color: var(--ink-3);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- Featured cities (home) ---------- */
.featured { margin-top: 2.5rem; }
.featured h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-2);
  margin-bottom: 1rem;
}
.city-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.city-card {
  display: flex; flex-direction: column;
  gap: .25rem;
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-1);
  position: relative;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.city-card:hover {
  transform: translateY(-3px);
  background: var(--glass-2);
  border-color: var(--brand-color);
}
.city-card-name { font-size: 1.3rem; font-weight: 600; }
.city-card-country { font-size: .82rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.city-card-arrow {
  position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; color: var(--ink-3);
  transition: transform .25s ease, color .25s ease;
}
.city-card:hover .city-card-arrow { transform: translate(4px, -50%); color: var(--brand-color); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex; gap: .5rem; align-items: center;
  font-size: .85rem; color: var(--ink-3);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--ink-2); transition: color .2s ease; }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- 7-day strip ---------- */
.forecast-7day { margin-top: 2.5rem; }
.forecast-7day h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-2);
  margin-bottom: 1rem;
}
.daily-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .6rem;
  overflow-x: auto;
}
@media (max-width: 700px) {
  .daily-strip { grid-template-columns: repeat(7, 130px); padding-bottom: .5rem; }
}
.day-card {
  display: flex; flex-direction: column; gap: .35rem;
  padding: .9rem .8rem;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-1);
  text-align: center;
  transition: transform .2s ease, background .2s ease;
}
.day-card:hover { transform: translateY(-2px); background: var(--glass-2); }
.day-name { font-size: .82rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.day-icon { font-size: 1.6rem; line-height: 1; min-height: 1.6rem; }
.day-icon::before { content: '☀️'; }
.day-card.weather-mainly-clear .day-icon::before,
.day-card.weather-clear-sky .day-icon::before { content: '☀️'; }
.day-card.weather-partly-cloudy .day-icon::before { content: '⛅'; }
.day-card.weather-overcast .day-icon::before { content: '☁️'; }
.day-card.weather-fog .day-icon::before,
.day-card.weather-depositing-rime-fog .day-icon::before { content: '🌫️'; }
.day-card[class*="drizzle"] .day-icon::before { content: '🌦️'; }
.day-card[class*="rain"] .day-icon::before { content: '🌧️'; }
.day-card[class*="snow"] .day-icon::before { content: '❄️'; }
.day-card[class*="thunder"] .day-icon::before { content: '⛈️'; }
.day-label { font-size: .72rem; color: var(--ink-3); }
.day-temps { display: flex; gap: .5rem; justify-content: center; align-items: baseline; font-variant-numeric: tabular-nums; }
.day-high { font-size: 1.05rem; font-weight: 600; }
.day-low  { font-size: .9rem; color: var(--ink-3); }
.day-rain { font-size: .72rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- TBS network + footer ---------- */
.tbs-network {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 1.25rem;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-3);
}
.tbs-network a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

.site-footer {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--glass-line);
}
.footer-inner { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.footer-copy { font-size: .9rem; font-weight: 600; margin: 0; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a {
  font-size: .85rem; color: var(--ink-2);
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--ink); }
.footer-meta { font-size: .75rem; color: var(--ink-3); margin: 0; }
.footer-meta a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .header-inner { gap: .75rem; }
  .primary-nav { order: 3; flex-basis: 100%; gap: .8rem; }
  .header-tools { gap: .5rem; }
  .search-form input { width: 140px; }
  .city-hero, .home-hero { padding: 1.5rem 1.25rem; }
  .hero-temp { gap: .5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .star, .drop, .flake, .cloud, .lightning { display: none; }
  .temp-value { animation: none; }
}

/* ---------- High-contrast & focus ---------- */
:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- now-org additions (volontairement basique pour différencier
   du design principal — démontre la divergence par host). ---------- */

/* Site-wide tweak so tu reconnais ce site instantanément */
body { font-family: Georgia, "Times New Roman", serif; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 700; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat-card {
  padding: 1rem;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 4px;
  background: rgba(0,0,0,.3);
  display: flex; flex-direction: column; gap: .5rem;
  min-height: 140px;
}
.stat-head { display: flex; justify-content: space-between; }
.stat-key { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: bold; }
.stat-sub { font-size: .85rem; color: var(--ink-2); font-style: italic; }
.stat-big { font-size: 1.8rem; font-weight: bold; color: var(--ink); }
.stat-unit { font-size: .55em; color: var(--ink-3); font-weight: normal; }
.sun-arc { width: 100%; max-height: 110px; }
.severity-bar { position: relative; width: 100%; height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; }
.severity-track { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, lime, gold, orangered); opacity: .35; }
.severity-thumb { position: absolute; top: 50%; left: var(--pos, 0); width: 12px; height: 12px; border-radius: 50%; background: var(--brand-color); transform: translate(-50%, -50%); border: 2px solid #fff; }
.wind-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wind-compass { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; position: relative; }
.compass-arrow { position: absolute; top: 50%; left: 50%; width: 3px; height: 25px; margin: -12.5px 0 0 -1.5px; background: var(--brand-color); transform-origin: 50% 50%; }

.outfit {
  margin-top: 2rem; padding: 1.5rem;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 4px;
  background: rgba(0,0,0,.25);
}
.outfit-key { text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-size: .8rem; font-weight: bold; }
.outfit-label { font-family: Georgia, serif; font-size: 1.6rem; margin: .3rem 0; color: var(--brand-color); }
.outfit-desc { color: var(--ink-2); }
.outfit-items { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.outfit-items li { padding: .35rem .8rem; background: rgba(255,255,255,.1); border-radius: 3px; font-size: .9rem; }

.outfit-shop { margin-top: 1.5rem; padding: 1rem; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.2); }
.shop-head { display: flex; gap: .5rem; align-items: baseline; margin-bottom: 1rem; }
.shop-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; padding: .2rem .5rem; border: 1px solid rgba(255,255,255,.3); }
.shop-sub { font-size: .9rem; color: var(--ink-3); font-style: italic; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.shop-card { display: grid; grid-template-columns: 50px 1fr auto; gap: .75rem; align-items: center; padding: .6rem .8rem; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.1); }
.shop-thumb { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--brand-color); }
.shop-thumb svg { width: 36px; height: 36px; }
.shop-brand { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 0; font-weight: bold; }
.shop-name { font-size: .9rem; margin: .2rem 0; }
.shop-price { font-size: .85rem; color: var(--brand-color); font-weight: bold; margin: 0; }
.shop-cta { font-size: .75rem; padding: .35rem .65rem; border: 1px solid rgba(255,255,255,.3); }

/* Hide the new daily-strip layout's `.day-bar` — keep things basic */
.day-bar { display: none; }

/* Eyebrow back-button: minimal */
.eyebrow-back { display: inline-block; padding: 0 .4rem; color: var(--brand-color); }

/* Fallback: TBS network now empty — make sure no orphan div takes space */
.tbs-network:empty { display: none; }

/* Footer nav ported from header */
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: 1rem; }
.footer-nav a { color: var(--ink-2); text-decoration: underline; font-size: .9rem; }
