:root {
  color-scheme: dark;
  --bg: #08110f;
  --bg-elevated: #0d1916;
  --surface: #101f1b;
  --surface-2: #152923;
  --surface-3: #193129;
  --text: #f2f7f4;
  --muted: #a7b8b0;
  --subtle: #71847b;
  --border: #244239;
  --border-strong: #31584b;
  --accent: #56d98b;
  --accent-strong: #2fc873;
  --accent-ink: #032314;
  --blue: #7cc9ff;
  --warning: #ffd166;
  --danger: #ff8b8b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --page-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(47, 200, 115, 0.12), transparent 32rem),
    radial-gradient(circle at 100% 10%, rgba(72, 153, 255, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #8aefb2;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.page-width {
  width: min(100% - 32px, var(--page-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(49, 88, 75, 0.7);
  background: rgba(8, 17, 15, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand strong {
  color: var(--accent);
}


/* One menu-button navigation for desktop and mobile. */
.site-menu {
  position: relative;
  flex: 0 0 auto;
}

.site-menu > summary {
  list-style: none;
}

.site-menu > summary::-webkit-details-marker {
  display: none;
}

.site-menu__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  user-select: none;
}

.site-menu__button:hover,
.site-menu__button:focus-visible,
.site-menu[open] .site-menu__button {
  border-color: var(--accent);
  background: var(--surface-2);
}

.site-menu__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.site-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: min(290px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #0d1916;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

.site-menu:not([open]) .site-menu__panel {
  display: none;
}

.site-menu__panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
}

.site-menu__panel a:hover,
.site-menu__panel a:focus-visible {
  background: var(--surface-3);
  color: var(--text);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
}

.breadcrumbs {
  padding-top: 18px;
  font-size: 0.82rem;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--subtle);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.page-intro {
  padding: clamp(42px, 7vw, 78px) 0 28px;
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.page-intro__lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.65;
}

.context-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.context-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(16, 31, 27, 0.7);
  color: var(--muted);
  font-size: 0.78rem;
}

.weather-panel,
.content-section,
.editorial-section,
.method-section,
.faq-section,
.local-cta {
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(13, 25, 22, 0.82);
  box-shadow: var(--shadow);
}

.weather-panel {
  padding: clamp(18px, 3vw, 30px);
}

.panel-heading,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.panel-heading h2,
.section-heading h2,
.editorial-section h2,
.method-section h2,
.faq-section h2,
.local-cta h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 300px;
  margin: 0;
  color: var(--subtle);
  font-size: 0.84rem;
  text-align: right;
}

.refresh-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
}

.refresh-button:hover,
.refresh-button:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}

.refresh-button[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.location-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 18px;
}

.search-field {
  position: relative;
  min-width: 0;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.search-field input::placeholder {
  color: var(--subtle);
}

.search-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(86, 217, 139, 0.13);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #79e7a4;
  color: var(--accent-ink);
}

.button--secondary {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}

.location-button {
  width: 48px;
  padding: 0;
}

.suggestions {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #11211c;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.36);
}

.suggestions button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
}

.suggestions button:hover,
.suggestions button:focus-visible,
.suggestions button[aria-selected="true"] {
  background: var(--surface-3);
  outline: none;
}

.status {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.status.is-error {
  border-color: rgba(255, 139, 139, 0.45);
  color: #ffc1c1;
}

.current-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 8%, rgba(124, 201, 255, 0.14), transparent 22rem),
    linear-gradient(145deg, #12251f, #0c1916 65%);
}

.current-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(86, 217, 139, 0.07);
  pointer-events: none;
}

.current-card__topline,
.current-card__main,
.aqi-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.current-card__place,
.current-card__updated,
.current-card__temp,
.current-card__condition,
.current-card__feels,
.today-summary,
.aqi-caption,
.aqi-message,
.data-note,
.method-copy {
  margin: 0;
}

.current-card__place {
  font-weight: 800;
}

.current-card__updated {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 0.78rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(86, 217, 139, 0.28);
  border-radius: 999px;
  background: rgba(86, 217, 139, 0.08);
  color: #b7f6ce;
  font-size: 0.72rem;
  font-weight: 800;
}

.live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(86, 217, 139, 0.12);
}

.current-card__main {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  margin-top: 24px;
}

.current-card__icon {
  flex: 0 0 auto;
  width: clamp(76px, 12vw, 112px);
  font-size: clamp(3.4rem, 8vw, 5.3rem);
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.2));
}

.current-card__temp {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.current-card__condition {
  margin-top: 9px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 750;
}

.current-card__feels {
  color: var(--muted);
  font-size: 0.88rem;
}

.current-card__range {
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  gap: 8px;
  margin-left: auto;
}

.current-card__range div {
  min-width: 76px;
  padding: 12px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 17, 15, 0.46);
  text-align: center;
}

.current-card__range span,
.aqi-eu span {
  display: block;
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.current-card__range strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
}

.today-summary {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #d6e3dd;
  font-size: 0.94rem;
}

.advisory-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.advisory {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 17, 15, 0.46);
  color: var(--muted);
  font-size: 0.76rem;
}

.advisory--warning {
  border-color: rgba(255, 209, 102, 0.32);
  color: #ffe4a0;
}

.advisory--danger {
  border-color: rgba(255, 139, 139, 0.34);
  color: #ffc0c0;
}

.stats-section {
  margin-top: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  min-width: 0;
  padding: 15px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.stat-card__label {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-card__value {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.2;
}

.stat-card__sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}

.jump-links a {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(16, 31, 27, 0.58);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 750;
}

.jump-links a:hover,
.jump-links a:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}

.content-section,
.editorial-section,
.method-section,
.faq-section {
  padding: clamp(20px, 4vw, 34px);
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.hourly-strip {
  display: flex;
  gap: 10px;
  padding: 3px 2px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.hour-card {
  flex: 0 0 100px;
  scroll-snap-align: start;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}

.hour-card:first-child {
  border-color: rgba(86, 217, 139, 0.55);
  background: rgba(86, 217, 139, 0.08);
}

.hour-card__time,
.hour-card__rain {
  color: var(--subtle);
  font-size: 0.7rem;
}

.hour-card__icon {
  margin: 7px 0 5px;
  font-size: 1.65rem;
  line-height: 1;
}

.hour-card__temp {
  font-weight: 850;
}

.hour-card__rain {
  margin-top: 5px;
  color: var(--blue);
}


.tomorrow-card {
  display: grid;
  gap: 20px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(95, 176, 224, 0.12), transparent 20rem),
    var(--surface);
}

.tomorrow-card__condition {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tomorrow-card__icon {
  font-size: 2.7rem;
  line-height: 1;
}

.tomorrow-card__condition strong,
.tomorrow-card__condition span {
  display: block;
}

.tomorrow-card__condition strong {
  font-size: 1.12rem;
}

.tomorrow-card__condition span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.tomorrow-card__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.tomorrow-card__metrics > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg-elevated);
}

.tomorrow-card__metrics span,
.tomorrow-card__metrics strong {
  display: block;
}

.tomorrow-card__metrics span {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tomorrow-card__metrics strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.tomorrow-card__summary,
.forecast-confidence {
  color: var(--muted);
  font-size: 0.84rem;
}

.tomorrow-card__summary {
  margin: 0;
}

.forecast-confidence {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: rgba(95, 176, 224, 0.08);
}

.daily-list {
  display: grid;
  gap: 8px;
}

.day-row {
  display: grid;
  grid-template-columns: minmax(145px, 1.5fr) 48px 95px 100px 90px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.day-row__name strong,
.day-row__name span {
  display: block;
}

.day-row__name strong {
  font-size: 0.92rem;
}

.day-row__name span,
.day-row__wind,
.day-row__rain {
  color: var(--muted);
  font-size: 0.75rem;
}

.day-row__icon {
  font-size: 1.35rem;
  text-align: center;
}

.day-row__rain {
  color: var(--blue);
}

.day-row__temps {
  text-align: right;
  white-space: nowrap;
}

.day-row__temps strong {
  margin-right: 6px;
}

.day-row__temps span {
  color: var(--subtle);
}

.aqi-card {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.aqi-badge {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 900;
}

.aqi-caption {
  margin-top: 7px;
  color: var(--subtle);
  font-size: 0.74rem;
}

.aqi-eu {
  text-align: right;
}

.aqi-eu strong {
  display: block;
  font-size: 1.45rem;
}

.aqi-message {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: #d8e5df;
  font-size: 0.88rem;
}

.pollutant-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.pollutant {
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  text-align: center;
}

.pollutant strong {
  display: block;
  font-size: 1rem;
}

.pollutant span,
.pollutant small {
  display: block;
  color: var(--subtle);
  line-height: 1.35;
}

.pollutant span {
  margin-top: 3px;
  font-size: 0.69rem;
}

.pollutant small {
  font-size: 0.62rem;
}

.data-note {
  margin-top: 14px;
  color: var(--subtle);
  font-size: 0.74rem;
}

.editorial-section__intro {
  max-width: 800px;
}

.editorial-section__intro > p:last-child,
.faq-section__heading > p:last-child {
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.guide-grid section {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.guide-grid h3 {
  margin: 0;
  font-size: 1rem;
}

.guide-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.method-section {
  background: linear-gradient(145deg, rgba(17, 37, 31, 0.92), rgba(10, 21, 18, 0.92));
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.method-grid > div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 17, 15, 0.42);
}

.method-grid strong,
.method-grid span,
.method-grid small {
  display: block;
}

.method-grid strong {
  color: var(--subtle);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.method-grid span {
  margin-top: 5px;
  font-weight: 850;
}

.method-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.method-copy {
  max-width: 890px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.84rem;
}

.faq-section__heading {
  max-width: 760px;
}

.faq-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.faq-list details[open] {
  border-color: var(--border-strong);
}

.faq-list summary {
  position: relative;
  padding: 16px 48px 16px 17px;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 17px 17px;
  color: var(--muted);
  font-size: 0.88rem;
}

.local-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 5% 20%, rgba(86, 217, 139, 0.15), transparent 20rem),
    var(--bg-elevated);
}

.local-cta p:not(.section-kicker) {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
}

.noscript-message {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}

.site-footer {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  background: rgba(5, 12, 10, 0.76);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  color: var(--subtle);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}


.site-footer__copy {
  display: grid;
  gap: 5px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}

:focus-visible {
  outline: 3px solid rgba(86, 217, 139, 0.6);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pollutant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-row {
    grid-template-columns: minmax(130px, 1fr) 42px 82px 94px;
  }

  .day-row__wind {
    display: none;
  }
}

@media (max-width: 680px) {

  .tomorrow-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header__inner {
    min-height: 58px;
  }


  .page-intro {
    padding-top: 36px;
  }

  .panel-heading,
  .section-heading,
  .local-cta {
    align-items: flex-start;
  }

  .section-heading,
  .local-cta {
    flex-direction: column;
  }

  .section-heading > p {
    max-width: none;
    text-align: left;
  }

  .current-card__main {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .current-card__range {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {

  .site-menu__panel {
    width: min(300px, calc(100vw - 22px));
  }

  .tomorrow-card__metrics {
    grid-template-columns: 1fr;
  }

  .page-width {
    width: min(100% - 22px, var(--page-width));
  }


  .location-search {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .location-search .button--primary {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .location-button {
    grid-row: 1;
    grid-column: 2;
  }

  .current-card__topline {
    align-items: flex-start;
  }

  .live-pill {
    padding-inline: 8px;
  }

  .current-card__icon {
    width: 64px;
    font-size: 3.2rem;
  }

  .current-card__range {
    grid-template-columns: repeat(3, 1fr);
  }

  .current-card__range div {
    min-width: 0;
    padding-inline: 7px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pollutant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .day-row {
    grid-template-columns: minmax(110px, 1fr) 34px 64px 74px;
    gap: 6px;
    padding-inline: 10px;
  }

  .day-row__name span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .day-row__rain {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 2026 responsive + SEO-content refinements */
.page-intro__note {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 0.84rem;
  line-height: 1.6;
}

.primary-nav a,
.jump-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.primary-nav a {
  padding-inline: 2px;
}

.jump-links a {
  padding-block: 9px;
}

/* Long words, generated place names, and values should never force page overflow. */
.brand,
.current-card__place,
.tomorrow-card__condition,
.day-row__name,
.method-grid,
.guide-grid,
.faq-list,
.local-cta {
  min-width: 0;
}

.current-card__place,
.tomorrow-card__condition strong,
.day-row__name strong,
.day-row__name span {
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .panel-heading {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .panel-heading {
    flex-direction: column;
    gap: 12px;
  }

  .refresh-button {
    min-height: 44px;
  }

  .weather-panel,
  .content-section,
  .editorial-section,
  .method-section,
  .faq-section,
  .local-cta {
    border-radius: 18px;
  }

  .current-card {
    border-radius: 16px;
  }
}

@media (max-width: 520px) {
  .page-intro h1 {
    font-size: clamp(2rem, 10.5vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
  }

  .page-intro__lead {
    margin-top: 16px;
    font-size: 1rem;
  }

  .page-intro__note {
    font-size: 0.8rem;
  }

  .context-row {
    gap: 7px;
    margin-top: 18px;
  }

  .context-row span {
    width: 100%;
    border-radius: 10px;
  }

  .weather-panel,
  .content-section,
  .editorial-section,
  .method-section,
  .faq-section {
    padding: 16px;
  }

  .panel-heading,
  .section-heading {
    margin-bottom: 16px;
  }

  .panel-heading h2,
  .section-heading h2,
  .editorial-section h2,
  .method-section h2,
  .faq-section h2,
  .local-cta h2 {
    font-size: clamp(1.25rem, 6.5vw, 1.65rem);
  }

  .current-card {
    padding: 18px 15px;
  }

  .current-card__main {
    column-gap: 12px;
  }

  .current-card__temp {
    font-size: clamp(2.75rem, 15vw, 4.25rem);
  }

  .current-card__range {
    gap: 6px;
  }

  .current-card__range div {
    min-width: 0;
    padding: 10px 6px;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 13px 11px;
  }

  .hour-card {
    flex-basis: 92px;
  }

  /* Reflow the 15-day rows instead of forcing five desktop columns into a phone. */
  .day-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon name temps"
      "icon rain rain";
    gap: 4px 9px;
    min-height: 70px;
    padding: 10px 11px;
  }

  .day-row__icon {
    grid-area: icon;
    align-self: center;
    font-size: 1.45rem;
  }

  .day-row__name {
    grid-area: name;
  }

  .day-row__name span {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.35;
  }

  .day-row__rain {
    grid-area: rain;
    font-size: 0.72rem;
  }

  .day-row__wind {
    display: none;
    grid-area: wind;
  }

  .day-row__temps {
    grid-area: temps;
    align-self: start;
  }

  .pollutant,
  .method-grid > div,
  .guide-grid section {
    min-width: 0;
  }

  .local-cta {
    padding: 18px 16px;
  }

  .local-cta .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .page-width {
    width: min(100% - 16px, var(--page-width));
  }

  .site-header__inner {
    gap: 12px;
  }

  .brand {
    font-size: 1rem;
  }

  .primary-nav {
    gap: 9px;
    font-size: 0.75rem;
  }

  .primary-nav a:nth-child(4) {
    display: none;
  }

  .location-search {
    gap: 8px;
  }

  .current-card__topline {
    gap: 10px;
  }

  .live-pill {
    font-size: 0.66rem;
  }

  .current-card__icon {
    width: 54px;
    font-size: 2.8rem;
  }

  .current-card__main {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .current-card__range strong {
    font-size: 0.98rem;
  }

  .stats-grid,
  .pollutant-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* Final heading scale: strong on desktop without dominating the forecast. */
.page-intro {
  max-width: 920px;
}

.page-intro h1 {
  max-width: 860px;
  font-size: clamp(2.25rem, 5.2vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

@media (max-width: 520px) {
  .page-intro h1 {
    font-size: clamp(2rem, 9.8vw, 2.55rem);
    line-height: 1.06;
  }
}