:root {
  --color-primary: #1a5f8a;
  --color-primary-dark: #0f3d5c;
  --color-primary-light: #2d7ab0;
  --color-secondary: #7eb8da;
  --color-secondary-light: #b8d9ed;
  --color-accent: #f6f8fb;
  --color-sky: #4a9fd4;
  --color-frost: #eef2f6;
  --color-navy: #1e2a3a;
  --color-text: #1e2a3a;
  --color-text-muted: #5c6b7a;
  --color-border: #e6eef4;
  --color-success: #2d8a5e;
  --color-warning: #c98a1a;
  --color-danger: #c0392b;
  --color-info: #2980b9;
  --gradient-winter: linear-gradient(135deg, #0f3d5c 0%, #1a5f8a 45%, #4a9fd4 100%);
  --gradient-hero: linear-gradient(160deg, #0a2840 0%, #1a5f8a 50%, #2d7ab0 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  --shadow-sm: 0 2px 8px rgba(15, 61, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 61, 92, 0.1);
  --shadow-lg: 0 16px 48px rgba(15, 61, 92, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-ui: 0.9375rem;
  --fs-lead: 1.125rem;
  --fs-h1: clamp(2.125rem, 4vw, 2.5rem);
  --fs-h2: 1.625rem;
  --fs-h3: 1.25rem;
  --lh-body: 1.7;
  --lh-heading: 1.25;
  --lh-lead: 1.5;
  --lh-ui: 1.5;
  --bs-font-sans-serif: var(--font-sans);
  --bs-body-font-family: var(--font-sans);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.7;
  --bs-headings-font-family: var(--font-sans);
  --bs-headings-font-weight: 700;
  --bs-headings-line-height: 1.2;
  --card-radius: 16px;
  --card-pad: 2.15rem 2.25rem;
  --card-shadow: 0 4px 16px rgba(15, 61, 92, 0.05);
  --header-height: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --content-width: 1200px;
  --reading-width: 720px;
}

[data-theme="dark"] {
  --color-accent: #0d1b2a;
  --color-frost: #1a2b3c;
  --color-text: #e8eef2;
  --color-text-muted: #94a8b8;
  --color-border: #2a4055;
  --gradient-card: linear-gradient(180deg, #152535 0%, #0d1b2a 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background: var(--color-accent);
  line-height: var(--lh-body);
  letter-spacing: 0.01em;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
  line-height: var(--lh-heading);
  color: var(--color-navy);
}

h1, .h1 { font-size: var(--fs-h1); margin-bottom: 0.75rem; }
h2, .h2 { font-size: var(--fs-h2); margin-bottom: 0.85rem; }
h3, .h3 { font-size: var(--fs-h3); margin-bottom: 0.7rem; }
h4, .h4 { font-size: 1.25rem; margin-bottom: 0.65rem; }
h5, .h5 { font-size: 1.125rem; margin-bottom: 0.55rem; }
h6, .h6 { font-size: 1rem; margin-bottom: 0.5rem; }

article h2.h3,
article h2.h4,
article h2.h5,
.calc-content h2.h3,
.calc-content h2.h4,
.calc-content h2.h5,
.calc-form-card > h2,
.faq-list > h2,
.section-header h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
}

article h3.h4,
article h3.h5,
article h3.h6,
.calc-content h3.h4,
.calc-content h3.h5,
.calc-content h3.h6 {
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

p, li, dd {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

.lead {
  font-size: var(--fs-lead);
  font-weight: var(--fw-regular);
  line-height: var(--lh-lead);
}

.form-label {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

.form-control,
.form-select {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  min-height: 44px;
}

textarea.form-control {
  min-height: 8rem;
}

small, .small {
  font-size: var(--fs-small);
  line-height: var(--lh-ui);
}

.calc-content a,
.calc-info-card a,
.blog-article-body a,
.legal-content a,
.gpub-prose a,
.faq-answer a,
.page-lead a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.hero h1, .hero h2, .hero .h1, .hero .h2,
.calc-hero h1, .calc-hero h2, .calc-hero .lead,
.site-footer h2, .site-footer h3, .site-footer h4 {
  color: inherit;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-primary-light); }

:focus-visible {
  outline: 3px solid var(--color-sky);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus { top: 1rem; }

.container-narrow,
.container-wide {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(13, 27, 42, 0.92);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-navy);
  white-space: nowrap;
}

[data-theme="dark"] .logo { color: var(--color-text); }

.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }

.nav-desktop { display: none; }

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}

.site-header .site-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.55rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--fs-ui);
  line-height: 1.4;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .site-header .site-nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }
}

.nav-caret { font-size: 0.75rem; opacity: 0.75; margin-left: 0.15rem; }

.site-header .site-nav-link:hover,
.site-header .site-nav-link.active {
  background: var(--color-frost);
  color: var(--color-primary);
}

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 1001;
}

[data-theme="dark"] .nav-dropdown-menu { background: #152535; }

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Calculators mega menu */
.nav-mega { position: static; }

@media (min-width: 992px) {
  .site-header .container-wide { position: relative; }
}

.nav-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(640px, calc(100vw - 2rem));
  max-height: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 1001;
  margin-top: 0.25rem;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.nav-mega-menu--2 { width: min(560px, calc(100vw - 2rem)); }
.nav-mega-menu--3 { width: min(980px, calc(100vw - 2rem)); }
.nav-mega-menu--4 { width: min(1100px, calc(100vw - 2rem)); }
.nav-mega-menu--5 { width: min(1200px, calc(100vw - 2rem)); }

[data-theme="dark"] .nav-mega-menu { background: #152535; }

.nav-mega:hover .nav-mega-menu,
.nav-mega:focus-within .nav-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-mega-inner {
  padding: 1.25rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 0 1.75rem;
  overflow: visible;
  max-height: none;
  padding-right: 0;
  align-items: start;
}

.nav-mega-col { min-width: 0; }

.nav-mega-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin: 0 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.4;
}

.nav-mega-heading--spacer {
  border-bottom-color: transparent;
  color: transparent;
}

.nav-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mega-list li { margin: 0; }

.nav-mega-list a {
  display: block;
  padding: 0.45rem 0.2rem;
  font-size: var(--fs-ui);
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.45;
  border-radius: 6px;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
  transition: color var(--transition), background var(--transition);
}

.nav-mega-list a:hover {
  color: var(--color-primary);
  background: var(--color-frost);
}

.nav-mega-footer {
  margin-top: 0.75rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  flex-shrink: 0;
}

.nav-mega-all {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-mega-all:hover { text-decoration: underline; }

.logo-text { white-space: nowrap; }

@media (max-width: 1199px) {
  .logo-text { font-size: 1rem; }
  .header-search { width: 140px; }
  .header-search:focus { width: 160px; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-search-wrap { display: none; }

@media (min-width: 768px) {
  .header-search-wrap { display: block; }
}

.header-search {
  width: 180px;
  padding: 0.5rem 0.875rem 0.5rem 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 40px;
  background: var(--color-frost) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235a6b7d' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 0.75rem center;
  transition: border-color var(--transition), width var(--transition);
}

.header-search:focus {
  outline: none;
  border-color: var(--color-primary);
  width: 220px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon:hover { background: var(--color-frost); border-color: var(--color-primary); }

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  min-height: 44px;
  background: var(--gradient-winter);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  min-height: 44px;
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-outline-custom:hover {
  background: var(--color-primary);
  color: #fff;
}

.mobile-toggle { display: flex; }

@media (min-width: 992px) { .mobile-toggle { display: none; } }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 40, 64, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-accent);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-link {
  display: block;
  padding: 0.875rem 0;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--color-border);
}

.mobile-calc-details { border-bottom: 1px solid var(--color-border); }

.mobile-calc-summary {
  list-style: none;
  cursor: pointer;
  border-bottom: none;
}

.mobile-calc-summary::-webkit-details-marker { display: none; }

.mobile-calc-panel {
  padding: 0 0 0.75rem 0.5rem;
  max-height: 280px;
  overflow-y: auto;
}

.mobile-calc-group { margin-bottom: 0.75rem; }

.mobile-calc-cat {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.mobile-nav-sublink {
  padding: 0.55rem 0 0.55rem 0.75rem !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  border-bottom: none !important;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.4rem 0 3.25rem;
  background: var(--gradient-hero);
  color: #fff;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

#snow-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 767.98px) {
  #snow-canvas {
    background-image:
      radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.9), transparent),
      radial-gradient(2px 2px at 34% 42%, rgba(255,255,255,0.7), transparent),
      radial-gradient(1px 1px at 58% 12%, rgba(255,255,255,0.85), transparent),
      radial-gradient(2px 2px at 76% 58%, rgba(255,255,255,0.65), transparent),
      radial-gradient(1.5px 1.5px at 88% 32%, rgba(255,255,255,0.8), transparent),
      radial-gradient(1px 1px at 42% 78%, rgba(255,255,255,0.75), transparent);
    background-size: 180px 180px, 220px 220px, 160px 160px, 240px 240px, 200px 200px, 170px 170px;
  }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
  #snow-canvas {
    animation: sdc-snow-drift 16s linear infinite;
  }
}

@keyframes sdc-snow-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 36px 360px, -28px 440px, 18px 300px, -40px 400px, 22px 380px, -14px 340px; }
}

.hero-content { position: relative; z-index: 2; }

.calc-hero > .container-wide,
.calc-hero > .container-narrow {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero.hero-compact {
  padding: 2.15rem 0 2.85rem;
}

.hero.hero-compact .hero-badge,
.hero.hero-compact .hero-trust,
.hero.hero-compact .trust-row {
  display: none !important;
}

.hero.hero-compact .hero-search-card {
  max-width: 100%;
}

.hero.hero-has-results .col-lg-7 {
  flex: 0 0 100%;
  max-width: 100%;
}

.hero.hero-has-results .col-lg-5 {
  display: none !important;
}

.hero-results-slot {
  margin-top: 1rem;
  width: 100%;
  text-align: left;
}

.hero-results-slot .weather-forecast-app.result-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.15rem;
  max-height: none;
  overflow: visible;
  backdrop-filter: none;
}

.hero-results-slot .weather-app-header {
  margin-bottom: 0.75rem;
}

.hero-results-slot .weather-app-header h2 {
  font-size: 1.25rem;
  color: var(--color-navy);
}

.hero-results-slot .weather-app-kicker {
  font-size: 0.8125rem;
}

.hero-results-slot .weather-app-location {
  font-size: 0.9375rem;
}

.hero-results-slot .daily-tabs {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  overflow-x: auto;
}

.hero-results-slot .daily-tab {
  min-width: 0;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.4rem;
  gap: 0.2rem;
  flex-wrap: wrap;
  background: var(--color-primary-dark);
}

.hero-results-slot .daily-tab.active {
  background: var(--gradient-winter);
}

.hero-results-slot .daily-tab span:first-child,
.hero-results-slot .daily-tab small {
  font-size: 0.75rem;
}

.hero-results-slot .daily-tab strong {
  font-size: 0.875rem;
}

.hero-results-slot .weather-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 0.75rem;
  align-items: stretch;
}

.hero-results-slot .current-weather-card,
.hero-results-slot .hourly-forecast-card,
.hero-results-slot .snow-prediction-card {
  border-radius: var(--radius-md);
  background: var(--color-accent);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem;
  margin-top: 0;
}

.hero-results-slot .current-card-sky {
  min-height: 88px;
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  background: var(--gradient-winter);
}

.hero-results-slot .current-card-sky::before,
.hero-results-slot .current-card-sky::after {
  display: none;
}

.hero-results-slot .current-weather-icon {
  font-size: 2rem;
}

.hero-results-slot .current-weather-time {
  font-size: 0.8125rem;
}

.hero-results-slot .current-weather-main {
  padding-top: 0.55rem;
  gap: 0.35rem;
}

.hero-results-slot .current-temp {
  font-size: 1.85rem;
  color: var(--color-navy);
}

.hero-results-slot .current-condition,
.hero-results-slot .current-feels,
.hero-results-slot .weather-stat-tiles span,
.hero-results-slot .hourly-time,
.hero-results-slot .hourly-pop,
.hero-results-slot .hourly-card small {
  font-size: 0.75rem;
  line-height: 1.35;
}

.hero-results-slot .current-feels strong {
  font-size: 0.95rem;
}

.hero-results-slot .weather-stat-tiles {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.hero-results-slot .weather-stat-tiles div {
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.3rem;
  background: var(--color-frost);
}

.hero-results-slot .weather-stat-tiles strong {
  font-size: 0.875rem;
}

.hero-results-slot .forecast-card-title {
  margin-bottom: 0.45rem;
}

.hero-results-slot .forecast-card-title h3 {
  font-size: 1rem;
}

.hero-results-slot .forecast-card-title span {
  font-size: 0.75rem;
}

.hero-results-slot .hourly-chart {
  height: 72px;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--color-frost);
  border-color: var(--color-border);
  color: var(--color-primary);
}

.hero-results-slot .hourly-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.3rem;
  overflow-x: auto;
}

.hero-results-slot .hourly-card {
  min-width: 0;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.2rem;
  background: var(--color-frost);
}

.hero-results-slot .hourly-icon {
  font-size: 0.85rem;
  margin: 0.1rem 0;
}

.hero-results-slot .hourly-card strong {
  font-size: 0.875rem;
}

.hero-results-slot .prediction-summary {
  gap: 0.35rem;
}

.hero-results-slot .weather-forecast-app .result-percentage {
  font-size: 1.75rem;
  color: var(--color-navy);
}

.hero-results-slot .result-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.hero-results-slot .result-metric {
  padding: 0.45rem 0.3rem;
  background: var(--color-frost);
  border-radius: var(--radius-sm);
}

.hero-results-slot .result-metric-value {
  font-size: 1rem;
}

.hero-results-slot .result-metric-label {
  font-size: 0.75rem;
  line-height: 1.3;
}

.hero-results-slot .ai-explanation,
.hero-results-slot .snow-prediction-card > p,
.hero-results-slot .weather-alerts {
  display: none;
}

@media (max-width: 991.98px) {
  .hero-results-slot .weather-app-grid {
    grid-template-columns: 1fr;
  }

  .hero-results-slot .daily-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-results-slot .hourly-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .hero-results-slot .daily-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-results-slot .hourly-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.8rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--fs-lead);
  font-weight: var(--fw-regular);
  opacity: 0.9;
  max-width: none;
  margin: 0 auto 1.5rem;
  line-height: var(--lh-lead);
}

@media (min-width: 992px) {
  .hero-subtitle {
    white-space: nowrap;
  }
}

.hero-classic-calc {
  margin: 0 auto;
  max-width: 880px;
  text-align: left;
}

.classic-calc-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.classic-calc-blue {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 2rem 1.85rem 1.95rem;
  box-shadow: var(--shadow-lg);
}

.classic-calc-stage {
  position: relative;
  overflow: visible;
  height: auto;
}

.classic-calc-track {
  display: block;
  width: 100%;
}

.hero-calc-inputs,
.classic-calc-results {
  width: 100%;
  box-sizing: border-box;
}

.classic-calc-blue:not(.has-results) .classic-calc-results {
  display: none;
}

.classic-calc-blue.has-results .hero-calc-inputs {
  display: none;
}

.classic-calc-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.classic-calc-main label,
.classic-calc-side-field label {
  display: block;
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.classic-calc-input {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.95rem;
  min-height: 48px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-text);
}

.classic-calc-input-sm {
  max-width: 88px;
}

.classic-calc-select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  min-height: 48px;
  font-size: 1rem;
  line-height: 1.5;
  background: #fff;
  color: var(--color-text);
}

.classic-calc-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.classic-calc-geo {
  display: inline-block;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.classic-calc-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin-top: 1.15rem;
}

.classic-calc-geo:hover:not(:disabled) {
  color: var(--color-primary-light);
}

.classic-calc-geo:disabled {
  opacity: 0.7;
  cursor: wait;
}

.classic-calc-side {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.classic-calc-btn {
  min-width: 132px;
  min-height: 48px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.7rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.classic-calc-btn:hover:not(:disabled) {
  background: var(--color-primary-light);
}

.classic-calc-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.classic-calc-results {
  margin: 0;
  border: none;
}

.classic-prediction-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.classic-prediction-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.classic-prediction-table td {
  border: 1px solid var(--color-primary);
  padding: 0.45rem 0.55rem;
  vertical-align: middle;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.classic-pred-date {
  width: 34%;
  font-weight: 600;
  line-height: 1.35;
}

.classic-pred-chance {
  width: 28%;
  position: relative;
  font-weight: 700;
}

.classic-pred-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--color-success);
}

.classic-pred-chance strong {
  display: block;
  padding-left: 0.75rem;
}

.classic-pred-msg {
  font-style: italic;
}

.classic-prediction-meta {
  margin: 0 0 0.2rem;
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.classic-prediction-time {
  text-decoration: underline;
}

.classic-prediction-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}

.classic-back-btn {
  border: 0;
  background: none;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.classic-back-btn:hover {
  color: var(--color-primary-light);
}

.classic-refresh-btn {
  border: 0;
  background: none;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.classic-copy-btn {
  border: 0;
  background: none;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.classic-prediction-meta,
.classic-prediction-note {
  color: var(--color-text-muted);
}

.factor-score-card {
  background: rgba(26, 95, 138, 0.06);
  border: 1px solid rgba(26, 95, 138, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.factor-score-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 2.2rem;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.factor-score-row:last-child {
  margin-bottom: 0;
}

.factor-score-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.factor-score-track {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(15, 61, 92, 0.12);
  overflow: hidden;
}

.factor-score-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a5f8a, #4a9fd4);
}

.factor-score-val {
  font-size: var(--fs-small);
  text-align: right;
  color: var(--color-text-muted);
}

.outlook-strip {
  background: #f7fbfe;
  border: 1px solid rgba(26, 95, 138, 0.14);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.outlook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.outlook-day {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.4rem;
  border: 1px solid rgba(26, 95, 138, 0.1);
}

.outlook-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.outlook-prob {
  display: block;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.outlook-snow {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.card-icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(26, 95, 138, 0.12);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 576px) {
  .outlook-grid {
    grid-template-columns: 1fr;
  }
  .factor-score-row {
    grid-template-columns: 5rem 1fr 2rem;
  }
}

.classic-refresh-btn:hover,
.classic-copy-btn:hover {
  color: var(--color-primary-light);
}

.hero-search-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  color: var(--color-text);
}

.hero-search-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-search-input {
  flex: 1 1 200px;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.hero-examples {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-examples button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.125rem 0.375rem;
  font-size: inherit;
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .hero {
    padding: 1.5rem 0 2rem;
    min-height: auto;
  }

  #snow-canvas {
    opacity: 0.8;
  }

  .hero-badge {
    font-size: 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.75rem;
  }

  .hero h1 {
    font-size: 1.875rem;
    margin-bottom: 0.65rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    white-space: normal;
  }

  .classic-calc-grid {
    grid-template-columns: 1fr;
  }

  .classic-calc-input {
    max-width: 100%;
  }

  .classic-prediction-title {
    font-size: 1.15rem;
  }

  .classic-prediction-table td {
    font-size: 0.82rem;
    padding: 0.5rem;
  }

  .hero-search-card {
    border-radius: 1rem;
    padding: 1rem;
    max-width: none;
  }

  .hero-search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hero-search-input,
  .hero-search-form .btn-outline-custom,
  .hero-search-form .btn-primary-custom {
    width: 100%;
    justify-content: center;
  }

  .hero-search-input {
    min-width: 0;
    padding: 0.8rem 0.9rem;
  }

  .hero-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    margin-top: 0.8rem;
  }

  .hero-examples button {
    padding-left: 0;
  }

  .trust-row {
    display: none;
  }

  .hero.hero-compact {
    padding: 1.5rem 0 2rem;
  }

  .hero.hero-compact h1 {
    display: none;
  }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.trust-item strong { font-weight: 700; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-frost); }
[data-theme="dark"] .section-alt { background: #152535; }

.section-header { text-align: center; margin-bottom: 2.5rem; }

.section-header h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  line-height: var(--lh-heading);
}

[data-theme="dark"] .section-header h2 { color: var(--color-text); }

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* Cards */
.card-winter {
  background: #fff;
  border: 1px solid #e6eef4;
  border-radius: 16px;
  padding: 1.85rem 1.7rem;
  box-shadow: 0 4px 16px rgba(15, 61, 92, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: auto;
}

[data-theme="dark"] .card-winter {
  background: #152535;
  border-color: var(--color-border);
}

a.card-winter.h-100,
.card-winter.h-100 {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#calc-grid.row,
#blog-grid.row {
  --bs-gutter-x: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-left: 0;
  margin-right: 0;
}

#calc-grid.row > [class*="col-"],
#blog-grid.row > [class*="col-"] {
  width: 100%;
  max-width: none;
  padding: 0;
  flex: none;
}

#calc-grid .card-winter,
#blog-grid .card-winter {
  height: 100%;
  min-height: 12rem;
}

@media (max-width: 991.98px) {
  #calc-grid.row,
  #blog-grid.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  #calc-grid.row,
  #blog-grid.row {
    grid-template-columns: 1fr;
  }
}

.section .row.g-4 > [class*="col-"] > .card-winter,
.section .row.g-4 > [class*="col-"] > a.card-winter {
  height: 100%;
}

.card-winter:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 61, 92, 0.08);
}

.card-winter h2,
.card-winter h3,
.card-winter .h5,
.card-winter .h6 {
  color: #1e2a3a;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: var(--lh-heading);
}

[data-theme="dark"] .card-winter h2,
[data-theme="dark"] .card-winter h3,
[data-theme="dark"] .card-winter .h5,
[data-theme="dark"] .card-winter .h6 {
  color: var(--color-text);
}

.card-winter p,
.card-winter .small,
.card-winter li {
  color: #5c6b7a;
  line-height: 1.65;
}

[data-theme="dark"] .card-winter p,
[data-theme="dark"] .card-winter .small,
[data-theme="dark"] .card-winter li {
  color: var(--color-text-muted);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-frost);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

/* Weather dashboard */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.weather-stat {
  text-align: center;
  padding: 1.25rem 1rem;
}

.weather-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}

[data-theme="dark"] .weather-stat-value { color: var(--color-text); }

.weather-stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Results */
.result-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.result-card.risk-low { background: linear-gradient(135deg, #2d8a5e, #3cb371); }
.result-card.risk-moderate { background: linear-gradient(135deg, #c98a1a, #e6a817); }
.result-card.risk-high { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.result-card.risk-extreme { background: linear-gradient(135deg, #8e1a1a, #c0392b); }

.result-percentage {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.result-metric {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.result-metric-value { font-size: 1.5rem; font-weight: 700; }
.result-metric-label { font-size: 0.8125rem; opacity: 0.9; margin-top: 0.25rem; line-height: 1.35; }

.ai-explanation {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.ai-explanation ul {
  margin: 0;
  padding-left: 1.25rem;
}

.ai-explanation li { margin-bottom: 0.5rem; }

/* Weather app style result view */
.weather-app-section {
  background:
    radial-gradient(circle at top left, rgba(74, 159, 212, 0.18), transparent 34rem),
    linear-gradient(180deg, #eef7fb 0%, #f8fbff 100%);
}

[data-theme="dark"] .weather-app-section {
  background: linear-gradient(180deg, #10263a 0%, #0d1b2a 100%);
}

.weather-forecast-app.result-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  padding: clamp(1rem, 2vw, 1.5rem);
}

[data-theme="dark"] .weather-forecast-app.result-card {
  background: rgba(19, 40, 59, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.weather-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.weather-app-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
}

[data-theme="dark"] .weather-app-header h2 { color: #fff; }

.weather-app-kicker {
  display: block;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weather-app-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text-muted);
  font-weight: 700;
  text-align: right;
}

.daily-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.daily-tab {
  min-width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 1rem;
  background: rgba(15, 61, 92, 0.72);
  color: #fff;
  padding: 0.7rem 0.85rem;
  box-shadow: 0 12px 30px rgba(15, 61, 92, 0.14);
}

.daily-tab.active {
  background: var(--gradient-winter);
  box-shadow: var(--shadow-md);
}

.daily-tab span:first-child,
.daily-tab small {
  opacity: 0.86;
  font-size: 0.86rem;
}

.daily-tab strong {
  font-size: 1.08rem;
  line-height: 1;
}

.weather-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .weather-app-grid {
    grid-template-columns: 1fr;
  }
}

.current-weather-card,
.hourly-forecast-card,
.snow-prediction-card {
  border-radius: var(--radius-md);
  background: var(--color-accent);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .current-weather-card,
[data-theme="dark"] .hourly-forecast-card,
[data-theme="dark"] .snow-prediction-card {
  background: rgba(25, 49, 70, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
}

.current-weather-card { padding: 1rem; }

.current-card-sky {
  min-height: 220px;
  border-radius: 1rem;
  background:
    linear-gradient(160deg, rgba(15, 61, 92, 0.35), rgba(15, 61, 92, 0.82)),
    radial-gradient(circle at 25% 22%, rgba(255, 255, 255, 0.82) 0 10%, transparent 11%),
    linear-gradient(135deg, #82bfd8, #244b69);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

.current-card-sky::before,
.current-card-sky::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 68px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(2px);
}

.current-card-sky::before { left: -38px; top: 44px; }
.current-card-sky::after { right: -45px; top: 85px; opacity: 0.72; }

.current-weather-icon {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  line-height: 1;
}

.current-weather-time {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 0.88rem;
}

.current-weather-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 0 0.25rem;
}

.current-temp {
  display: block;
  color: var(--color-navy);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

[data-theme="dark"] .current-temp { color: #fff; }

.current-condition {
  margin: 0.25rem 0 0;
  color: var(--color-text-muted);
  font-weight: 700;
}

.current-feels {
  color: var(--color-text-muted);
  text-align: right;
}

.current-feels strong {
  display: block;
  color: var(--color-navy);
  font-size: 1.35rem;
}

[data-theme="dark"] .current-feels strong { color: #fff; }

.weather-stat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.weather-stat-tiles div {
  border-radius: 0.9rem;
  background: var(--color-frost);
  padding: 0.75rem;
  text-align: center;
}

[data-theme="dark"] .weather-stat-tiles div { background: rgba(255, 255, 255, 0.07); }

.weather-stat-tiles span,
.hourly-time,
.hourly-pop,
.hourly-card small {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.weather-stat-tiles strong {
  color: var(--color-navy);
  font-size: 0.98rem;
}

[data-theme="dark"] .weather-stat-tiles strong { color: #fff; }

.hourly-forecast-card {
  padding: 1rem;
  min-width: 0;
}

.forecast-card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.forecast-card-title h3 {
  margin: 0;
  color: var(--color-navy);
  font-size: 1.15rem;
  font-weight: 700;
}

[data-theme="dark"] .forecast-card-title h3 { color: #fff; }

.forecast-card-title span {
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.hourly-chart {
  height: 190px;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-frost);
  color: var(--color-primary);
  padding: 1rem;
}

[data-theme="dark"] .hourly-chart {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
}

.hourly-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hourly-cards {
  display: grid;
  grid-template-columns: repeat(9, minmax(76px, 1fr));
  gap: 0.45rem;
  margin-top: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.hourly-card {
  min-width: 76px;
  border-radius: 0.85rem;
  background: var(--color-frost);
  padding: 0.75rem 0.45rem;
  text-align: center;
}

[data-theme="dark"] .hourly-card { background: rgba(255, 255, 255, 0.07); }

.hourly-icon {
  display: block;
  font-size: 1.25rem;
  margin: 0.3rem 0;
}

.hourly-card strong {
  display: block;
  color: var(--color-navy);
  font-size: 1.35rem;
  line-height: 1.1;
}

[data-theme="dark"] .hourly-card strong { color: #fff; }

.snow-prediction-card {
  margin-top: 0;
  padding: 1.1rem;
}

.prediction-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.prediction-status { text-align: right; }

.weather-forecast-app .result-percentage {
  color: var(--color-navy);
  font-size: clamp(2.6rem, 6vw, 4rem);
}

[data-theme="dark"] .weather-forecast-app .result-percentage { color: #fff; }

.weather-forecast-app .result-metric,
.weather-forecast-app .ai-explanation {
  background: rgba(26, 95, 138, 0.08);
  color: var(--color-text);
}

[data-theme="dark"] .weather-forecast-app .result-metric,
[data-theme="dark"] .weather-forecast-app .ai-explanation {
  background: rgba(255, 255, 255, 0.07);
}

.weather-alerts:empty { display: none; }

@media (max-width: 991.98px) {
  .weather-app-grid { grid-template-columns: 1fr; }
  .daily-tabs { grid-template-columns: repeat(7, 120px); }
  .hourly-cards { grid-template-columns: repeat(9, 82px); }
}

@media (max-width: 575.98px) {
  .section {
    padding: 1.5rem 0;
  }

  .weather-app-section {
    padding-top: 1rem;
  }

  .weather-forecast-app.result-card {
    border-radius: 1rem;
    padding: 0.85rem;
  }

  .weather-app-header,
  .prediction-summary,
  .current-weather-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .weather-app-header {
    margin-bottom: 0.75rem;
  }

  .weather-app-header h2 {
    font-size: 1.45rem;
  }

  .weather-app-location {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .weather-app-location,
  .current-feels,
  .prediction-status {
    text-align: left;
  }

  .daily-tabs {
    grid-template-columns: repeat(7, 96px);
    gap: 0.5rem;
    margin-left: -0.1rem;
    margin-right: -0.1rem;
    padding: 0 0.1rem 0.35rem;
    scrollbar-width: thin;
  }

  .daily-tab {
    min-width: 96px;
    border-radius: 0.8rem;
    gap: 0.28rem;
    padding: 0.55rem 0.5rem;
  }

  .daily-tab span:first-child,
  .daily-tab small {
    font-size: 0.75rem;
  }

  .daily-tab strong {
    font-size: 0.95rem;
  }

  .current-weather-card,
  .hourly-forecast-card,
  .snow-prediction-card {
    border-radius: 1rem;
  }

  .current-weather-card,
  .hourly-forecast-card {
    padding: 0.8rem;
  }

  .current-card-sky {
    min-height: 120px;
    padding: 0.8rem;
  }

  .current-card-sky::before,
  .current-card-sky::after {
    width: 145px;
    height: 50px;
  }

  .current-weather-icon {
    font-size: 2.9rem;
  }

  .current-weather-time {
    font-size: 0.75rem;
  }

  .current-weather-main {
    padding-top: 0.75rem;
  }

  .current-temp {
    font-size: 2.55rem;
  }

  .current-feels strong {
    display: inline;
    font-size: 1.05rem;
  }

  .weather-stat-tiles {
    gap: 0.5rem;
  }

  .weather-stat-tiles div {
    border-radius: 0.75rem;
    padding: 0.58rem 0.45rem;
  }

  .forecast-card-title h3 {
    font-size: 1rem;
  }

  .forecast-card-title span {
    font-size: 0.75rem;
  }

  .hourly-chart {
    height: 115px;
    padding: 0.75rem;
  }

  .hourly-cards {
    grid-template-columns: repeat(9, 62px);
    gap: 0.4rem;
    padding-bottom: 0.45rem;
    scrollbar-width: thin;
  }

  .hourly-card {
    min-width: 62px;
    border-radius: 0.75rem;
    padding: 0.55rem 0.35rem;
  }

  .hourly-time,
  .hourly-pop,
  .hourly-card small {
    font-size: 0.75rem;
  }

  .hourly-icon {
    font-size: 1.05rem;
    margin: 0.18rem 0;
  }

  .hourly-card strong {
    font-size: 1.05rem;
  }

  .snow-prediction-card {
    margin-top: 0.8rem;
    padding: 0.9rem;
  }

  .weather-forecast-app .result-percentage {
    font-size: 2.35rem;
  }

  .weather-forecast-app .result-metric,
  .weather-forecast-app .ai-explanation {
    padding: 0.8rem;
  }
}

@media (max-width: 359.98px) {
  .weather-stat-tiles { grid-template-columns: 1fr; }
  .daily-tabs { grid-template-columns: repeat(7, 108px); }
  .hourly-cards { grid-template-columns: repeat(9, 78px); }
}

/* Forecast tables */
.forecast-table { width: 100%; border-collapse: collapse; font-size: 1rem; }

.forecast-table th,
.forecast-table td {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.forecast-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forecast-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Calculator & inner pages hero */
.calc-hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 0 2rem;
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
}

.calc-hero h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.calc-hero .lead,
.calc-hero p.lead,
.calc-hero > .container-wide > p,
.calc-hero .container-wide > p.lead {
  font-size: var(--fs-lead);
  font-weight: var(--fw-regular);
  line-height: var(--lh-lead);
  opacity: 0.9;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  white-space: normal;
}

@media (min-width: 768px) {
  .calc-hero .text-nowrap-md {
    white-space: nowrap;
    max-width: none;
  }
}

.calc-hero-chips,
.page-last-reviewed {
  display: none !important;
}

.calc-hero-chips {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.calc-hero-chips span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 0.875rem;
  font-weight: 600;
}

.calc-hero--themed,
[data-page="calculator"] .calc-hero {
  text-align: center;
}

.calc-hero--school-gold,
[data-calc-slug="snow-day-predictor"] .calc-hero { background: linear-gradient(160deg, #0a2840 0%, #1a5f8a 55%, #c9a227 140%); }
.calc-hero--delay-teal,
[data-calc-slug="school-delay-calculator"] .calc-hero { background: linear-gradient(160deg, #062e36 0%, #0d6e75 50%, #2bb3b8 100%); }
.calc-hero--closure-indigo,
[data-calc-slug="school-closure-calculator"] .calc-hero { background: linear-gradient(160deg, #140e2e 0%, #2c1f6b 48%, #6b4fd4 100%); }
.calc-hero--bus-amber,
[data-calc-slug="school-bus-safety-calculator"] .calc-hero { background: linear-gradient(160deg, #2c1a08 0%, #8a5a14 52%, #e0a84a 100%); }
.calc-hero--busdelay-orange,
[data-calc-slug="school-bus-delay-calculator"] .calc-hero { background: linear-gradient(160deg, #3a1608 0%, #c45a12 55%, #f0a050 100%); }
.calc-hero--attendance-slate,
[data-calc-slug="school-attendance-risk"] .calc-hero { background: linear-gradient(160deg, #14202c 0%, #1e4d4a 50%, #3d8a72 100%); }
.calc-hero--prob-ice,
[data-calc-slug="snow-probability-calculator"] .calc-hero { background: linear-gradient(160deg, #0b2438 0%, #1a6fa0 50%, #7ec8f0 100%); }
.calc-hero--fall-powder,
[data-calc-slug="snowfall-predictor"] .calc-hero { background: linear-gradient(160deg, #12304a 0%, #2d7ab0 48%, #b8d9ed 100%); }
.calc-hero--accum-steel,
[data-calc-slug="snow-accumulation-calculator"] .calc-hero { background: linear-gradient(160deg, #101820 0%, #2a4a62 50%, #6a8aa4 100%); }
.calc-hero--depth-measure,
[data-calc-slug="snow-depth-calculator"] .calc-hero { background: linear-gradient(160deg, #0c161e 0%, #163a58 48%, #4a9fd4 100%); }
.calc-hero--severity-storm,
[data-calc-slug="snow-event-severity-calculator"] .calc-hero { background: linear-gradient(160deg, #160c28 0%, #4a2d7a 50%, #8a62d4 100%); }
.calc-hero--density-graphite,
[data-calc-slug="snow-density-calculator"] .calc-hero { background: linear-gradient(160deg, #141418 0%, #2c3340 50%, #6a7380 100%); }
.calc-hero--melt-thaw,
[data-calc-slug="snow-melt-calculator"] .calc-hero { background: linear-gradient(160deg, #1a2830 0%, #3d6a7a 45%, #d4a04a 100%); }
.calc-hero--compare-split,
[data-calc-slug="city-snow-comparison"] .calc-hero { background: linear-gradient(110deg, #0f3d5c 0%, #1a5f8a 48%, #0d4a3c 100%); }
.calc-hero--ice-glaze,
[data-calc-slug="ice-risk-calculator"] .calc-hero { background: linear-gradient(160deg, #0c2238 0%, #1a4a6e 48%, #7ec8e8 100%); }
.calc-hero--black-ice,
[data-calc-slug="black-ice-calculator"] .calc-hero { background: linear-gradient(160deg, #0a0e14 0%, #1c2a38 50%, #4a5a6a 100%); }
.calc-hero--freeze-rain,
[data-calc-slug="freezing-rain-calculator"] .calc-hero { background: linear-gradient(160deg, #142028 0%, #2a5068 48%, #8ab4c8 100%); }
.calc-hero--sidewalk-ice,
[data-calc-slug="sidewalk-ice-risk-calculator"] .calc-hero { background: linear-gradient(160deg, #1a2430 0%, #3d5a4a 50%, #8ab89a 100%); }
.calc-hero--storm-navy,
[data-calc-slug="winter-storm-risk-calculator"] .calc-hero { background: linear-gradient(160deg, #061018 0%, #0f2a48 48%, #3d6a9a 100%); }
.calc-hero--blizzard-white,
[data-calc-slug="blizzard-risk-calculator"] .calc-hero { background: linear-gradient(160deg, #0d1a28 0%, #3a5a78 45%, #d8e8f4 100%); color: #fff; }
.calc-hero--severity-violet,
[data-calc-slug="storm-severity-calculator"] .calc-hero { background: linear-gradient(160deg, #1a1028 0%, #4a2870 50%, #b07ad4 100%); }
.calc-hero--chill-cyan,
[data-calc-slug="wind-chill-calculator"] .calc-hero { background: linear-gradient(160deg, #041820 0%, #0a4a58 48%, #3ec8d4 100%); }
.calc-hero--feels-amber,
[data-calc-slug="feels-like-calculator"] .calc-hero { background: linear-gradient(160deg, #2a1808 0%, #8a4a18 50%, #f0c060 100%); }
.calc-hero--frost-mint,
[data-calc-slug="frost-risk-calculator"] .calc-hero { background: linear-gradient(160deg, #102028 0%, #2a6a68 48%, #b8ece0 100%); }
.calc-hero--vis-fog,
[data-calc-slug="visibility-calculator"] .calc-hero { background: linear-gradient(160deg, #1a2430 0%, #4a6070 50%, #c8d4dc 100%); }
.calc-hero--road-asphalt,
[data-calc-slug="road-condition-calculator"] .calc-hero { background: linear-gradient(160deg, #121418 0%, #2a3038 50%, #6a7280 100%); }
.calc-hero--drive-red,
[data-calc-slug="driving-safety-calculator"] .calc-hero { background: linear-gradient(160deg, #2a0c10 0%, #8a1a28 50%, #e05050 100%); }
.calc-hero--travel-sky,
[data-calc-slug="winter-travel-calculator"] .calc-hero { background: linear-gradient(160deg, #0c2848 0%, #1a6aaa 50%, #7ec8f0 100%); }
.calc-hero--commute-clock,
[data-calc-slug="commute-delay-calculator"] .calc-hero { background: linear-gradient(160deg, #1a2030 0%, #3a4a6a 50%, #8aa0c8 100%); }
.calc-hero--airport-slate,
[data-calc-slug="airport-delay-calculator"] .calc-hero { background: linear-gradient(160deg, #101820 0%, #2a3a48 50%, #6a8498 100%); }
.calc-hero--flight-navy,
[data-calc-slug="flight-disruption-risk-calculator"] .calc-hero { background: linear-gradient(160deg, #061028 0%, #142860 50%, #3a5ab0 100%); }
.calc-hero--tire-rubber,
[data-calc-slug="tire-grip-calculator"] .calc-hero { background: linear-gradient(160deg, #141210 0%, #3a3028 50%, #8a7060 100%); }
.calc-hero--brake-crimson,
[data-calc-slug="braking-distance-calculator"] .calc-hero { background: linear-gradient(160deg, #28080c 0%, #7a1420 50%, #d04048 100%); }
.calc-hero--vehicle-steel,
[data-calc-slug="vehicle-winter-readiness"] .calc-hero { background: linear-gradient(160deg, #181c20 0%, #3a4650 50%, #7a8a98 100%); }
.calc-hero--commute-safe,
[data-calc-slug="commute-safety-score"] .calc-hero { background: linear-gradient(160deg, #0c2418 0%, #1a5a40 50%, #4aaa78 100%); }
.calc-hero--roof-timber,
[data-calc-slug="roof-snow-load-calculator"] .calc-hero { background: linear-gradient(160deg, #241810 0%, #6a4a28 50%, #c8a060 100%); }
.calc-hero--heat-ember,
[data-calc-slug="heating-cost-calculator"] .calc-hero { background: linear-gradient(160deg, #2a1008 0%, #a04018 50%, #f09040 100%); }
.calc-hero--pipe-copper,
[data-calc-slug="pipe-freeze-risk-calculator"] .calc-hero { background: linear-gradient(160deg, #201410 0%, #8a4a30 50%, #d48858 100%); }
.calc-hero--removal-gold,
[data-calc-slug="snow-removal-cost-calculator"] .calc-hero { background: linear-gradient(160deg, #201808 0%, #8a6a18 50%, #e0c050 100%); }
.calc-hero--shovel-olive,
[data-calc-slug="snow-shoveling-time-calculator"] .calc-hero { background: linear-gradient(160deg, #182010 0%, #4a5a28 50%, #a0b060 100%); }
.calc-hero--energy-volt,
[data-calc-slug="winter-energy-calculator"] .calc-hero { background: linear-gradient(160deg, #101828 0%, #204070 50%, #50a0e0 100%); }
.calc-hero--fuel-amber,
[data-calc-slug="winter-fuel-estimator"] .calc-hero { background: linear-gradient(160deg, #241408 0%, #8a5010 50%, #e0a030 100%); }
.calc-hero--outage-dark,
[data-calc-slug="winter-power-outage-risk"] .calc-hero { background: linear-gradient(160deg, #08080c 0%, #1a2030 50%, #4a5060 100%); }
.calc-hero--hazard-alert,
[data-calc-slug="winter-hazard-index"] .calc-hero { background: linear-gradient(160deg, #280c08 0%, #8a2818 50%, #e06840 100%); }
.calc-hero--clothing-wool,
[data-calc-slug="winter-clothing-calculator"] .calc-hero { background: linear-gradient(160deg, #201818 0%, #5a4048 50%, #c09098 100%); }
.calc-hero--outdoor-pine,
[data-calc-slug="outdoor-activity-calculator"] .calc-hero { background: linear-gradient(160deg, #0c1810 0%, #1a4a30 50%, #50a068 100%); }
.calc-hero--kit-pack,
[data-calc-slug="emergency-kit-calculator"] .calc-hero { background: linear-gradient(160deg, #181410 0%, #4a3828 50%, #b08858 100%); }
.calc-hero--impact-rose,
[data-calc-slug="winter-weather-impact-calculator"] .calc-hero { background: linear-gradient(160deg, #280814 0%, #7a2848 50%, #d06088 100%); }
.calc-hero--walk-trail,
[data-calc-slug="winter-walking-safety"] .calc-hero { background: linear-gradient(160deg, #142018 0%, #3a5848 50%, #88b8a0 100%); }
.calc-hero--emergency-siren,
[data-calc-slug="snow-emergency-level-calculator"] .calc-hero { background: linear-gradient(160deg, #280808 0%, #a01820 50%, #f05050 100%); }

.calc-form-card--themed,
[data-page="calculator"] .calc-form-card {
  border-top: 4px solid var(--color-primary);
}

.calc-form-card--school-gold,
[data-calc-slug="snow-day-predictor"] .calc-form-card { border-top-color: #c9a227; }
.calc-form-card--delay-teal,
[data-calc-slug="school-delay-calculator"] .calc-form-card { border-top-color: #2bb3b8; }
.calc-form-card--closure-indigo,
[data-calc-slug="school-closure-calculator"] .calc-form-card { border-top-color: #6b4fd4; }
.calc-form-card--bus-amber,
[data-calc-slug="school-bus-safety-calculator"] .calc-form-card { border-top-color: #e0a84a; }
.calc-form-card--busdelay-orange,
[data-calc-slug="school-bus-delay-calculator"] .calc-form-card { border-top-color: #f0a050; }
.calc-form-card--attendance-slate,
[data-calc-slug="school-attendance-risk"] .calc-form-card { border-top-color: #3d8a72; }
.calc-form-card--prob-ice,
[data-calc-slug="snow-probability-calculator"] .calc-form-card { border-top-color: #7ec8f0; }
.calc-form-card--fall-powder,
[data-calc-slug="snowfall-predictor"] .calc-form-card { border-top-color: #7eb8da; }
.calc-form-card--accum-steel,
[data-calc-slug="snow-accumulation-calculator"] .calc-form-card { border-top-color: #6a8aa4; }
.calc-form-card--depth-measure,
[data-calc-slug="snow-depth-calculator"] .calc-form-card { border-top-color: #4a9fd4; }
.calc-form-card--severity-storm,
[data-calc-slug="snow-event-severity-calculator"] .calc-form-card { border-top-color: #8a62d4; }
.calc-form-card--density-graphite,
[data-calc-slug="snow-density-calculator"] .calc-form-card { border-top-color: #6a7380; }
.calc-form-card--melt-thaw,
[data-calc-slug="snow-melt-calculator"] .calc-form-card { border-top-color: #d4a04a; }
.calc-form-card--compare-split,
[data-calc-slug="city-snow-comparison"] .calc-form-card { border-top-color: #2d8a5e; }
.calc-form-card--ice-glaze,
[data-calc-slug="ice-risk-calculator"] .calc-form-card { border-top-color: #7ec8e8; }
.calc-form-card--black-ice,
[data-calc-slug="black-ice-calculator"] .calc-form-card { border-top-color: #4a5a6a; }
.calc-form-card--freeze-rain,
[data-calc-slug="freezing-rain-calculator"] .calc-form-card { border-top-color: #8ab4c8; }
.calc-form-card--sidewalk-ice,
[data-calc-slug="sidewalk-ice-risk-calculator"] .calc-form-card { border-top-color: #8ab89a; }
.calc-form-card--storm-navy,
[data-calc-slug="winter-storm-risk-calculator"] .calc-form-card { border-top-color: #3d6a9a; }
.calc-form-card--blizzard-white,
[data-calc-slug="blizzard-risk-calculator"] .calc-form-card { border-top-color: #d8e8f4; }
.calc-form-card--severity-violet,
[data-calc-slug="storm-severity-calculator"] .calc-form-card { border-top-color: #b07ad4; }
.calc-form-card--chill-cyan,
[data-calc-slug="wind-chill-calculator"] .calc-form-card { border-top-color: #3ec8d4; }
.calc-form-card--feels-amber,
[data-calc-slug="feels-like-calculator"] .calc-form-card { border-top-color: #f0c060; }
.calc-form-card--frost-mint,
[data-calc-slug="frost-risk-calculator"] .calc-form-card { border-top-color: #b8ece0; }
.calc-form-card--vis-fog,
[data-calc-slug="visibility-calculator"] .calc-form-card { border-top-color: #c8d4dc; }
.calc-form-card--road-asphalt,
[data-calc-slug="road-condition-calculator"] .calc-form-card { border-top-color: #6a7280; }
.calc-form-card--drive-red,
[data-calc-slug="driving-safety-calculator"] .calc-form-card { border-top-color: #e05050; }
.calc-form-card--travel-sky,
[data-calc-slug="winter-travel-calculator"] .calc-form-card { border-top-color: #7ec8f0; }
.calc-form-card--commute-clock,
[data-calc-slug="commute-delay-calculator"] .calc-form-card { border-top-color: #8aa0c8; }
.calc-form-card--airport-slate,
[data-calc-slug="airport-delay-calculator"] .calc-form-card { border-top-color: #6a8498; }
.calc-form-card--flight-navy,
[data-calc-slug="flight-disruption-risk-calculator"] .calc-form-card { border-top-color: #3a5ab0; }
.calc-form-card--tire-rubber,
[data-calc-slug="tire-grip-calculator"] .calc-form-card { border-top-color: #8a7060; }
.calc-form-card--brake-crimson,
[data-calc-slug="braking-distance-calculator"] .calc-form-card { border-top-color: #d04048; }
.calc-form-card--vehicle-steel,
[data-calc-slug="vehicle-winter-readiness"] .calc-form-card { border-top-color: #7a8a98; }
.calc-form-card--commute-safe,
[data-calc-slug="commute-safety-score"] .calc-form-card { border-top-color: #4aaa78; }
.calc-form-card--roof-timber,
[data-calc-slug="roof-snow-load-calculator"] .calc-form-card { border-top-color: #c8a060; }
.calc-form-card--heat-ember,
[data-calc-slug="heating-cost-calculator"] .calc-form-card { border-top-color: #f09040; }
.calc-form-card--pipe-copper,
[data-calc-slug="pipe-freeze-risk-calculator"] .calc-form-card { border-top-color: #d48858; }
.calc-form-card--removal-gold,
[data-calc-slug="snow-removal-cost-calculator"] .calc-form-card { border-top-color: #e0c050; }
.calc-form-card--shovel-olive,
[data-calc-slug="snow-shoveling-time-calculator"] .calc-form-card { border-top-color: #a0b060; }
.calc-form-card--energy-volt,
[data-calc-slug="winter-energy-calculator"] .calc-form-card { border-top-color: #50a0e0; }
.calc-form-card--fuel-amber,
[data-calc-slug="winter-fuel-estimator"] .calc-form-card { border-top-color: #e0a030; }
.calc-form-card--outage-dark,
[data-calc-slug="winter-power-outage-risk"] .calc-form-card { border-top-color: #4a5060; }
.calc-form-card--hazard-alert,
[data-calc-slug="winter-hazard-index"] .calc-form-card { border-top-color: #e06840; }
.calc-form-card--clothing-wool,
[data-calc-slug="winter-clothing-calculator"] .calc-form-card { border-top-color: #c09098; }
.calc-form-card--outdoor-pine,
[data-calc-slug="outdoor-activity-calculator"] .calc-form-card { border-top-color: #50a068; }
.calc-form-card--kit-pack,
[data-calc-slug="emergency-kit-calculator"] .calc-form-card { border-top-color: #b08858; }
.calc-form-card--impact-rose,
[data-calc-slug="winter-weather-impact-calculator"] .calc-form-card { border-top-color: #d06088; }
.calc-form-card--walk-trail,
[data-calc-slug="winter-walking-safety"] .calc-form-card { border-top-color: #88b8a0; }
.calc-form-card--emergency-siren,
[data-calc-slug="snow-emergency-level-calculator"] .calc-form-card { border-top-color: #f05050; }

.calc-hero nav[aria-label="Breadcrumb"] {
  text-align: left;
}

.calc-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0;
}

.calc-hero .breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
}

.calc-hero .breadcrumb-item a,
.calc-hero .breadcrumb-item a.text-white-50 {
  color: #fff !important;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.calc-hero .breadcrumb-item.active {
  color: #fff;
  font-weight: 700;
}

.calc-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

[data-page="calculator"] .section > .container-wide > .row {
  justify-content: center;
}

[data-page="calculator"] .col-lg-8 {
  flex: 0 0 100%;
  max-width: 880px;
}

[data-page="calculator"] .calc-sidebar {
  flex: 0 0 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

[data-page="calculator"] .calc-sidebar .card-winter {
  margin-bottom: 0 !important;
}

@media (max-width: 767.98px) {
  [data-page="calculator"] .calc-sidebar {
    grid-template-columns: 1fr;
  }
}

.page-lead {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

[data-page="about"] .section {
  padding: 3.25rem 0;
}

[data-page="about"] .about-intro {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

[data-page="about"] .about-intro .page-lead {
  max-width: none;
  margin: 0;
  text-align: left;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

[data-page="about"] .about-foundation .card-winter {
  position: relative;
  padding-top: 1.75rem;
}

[data-page="about"] .about-num {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

[data-page="about"] .about-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 1040px;
  margin: 0 auto 1.75rem;
}

[data-page="about"] .about-stats span {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.95rem 0.55rem;
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.35;
  box-shadow: var(--shadow-sm);
}

[data-page="about"] .about-stats strong {
  display: block;
  color: var(--color-navy);
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

[data-page="about"] .about-tech {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 1.25rem auto 0;
}

[data-page="about"] .about-tech article {
  margin: 0;
}

[data-page="about"] .about-tech article h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--color-navy);
}

[data-page="about"] .about-tech article p {
  margin: 0;
  color: var(--color-text);
}

[data-page="about"] .about-tech article:last-child {
  grid-column: 1 / -1;
}

[data-page="about"] .about-method-lead,
[data-page="about"] .about-accuracy-lead {
  max-width: 800px;
  margin: 0 auto 1.25rem;
  text-align: center;
  color: var(--color-text);
}

[data-page="about"] .about-note {
  max-width: 800px;
  margin: 1.25rem auto 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

[data-page="about"] .about-accuracy {
  max-width: 800px;
  margin: 0 auto;
}

[data-page="about"] .about-accuracy .about-accuracy-lead {
  text-align: left;
  max-width: none;
  margin: 0;
}

[data-page="about"] .about-accuracy ul {
  margin: 1rem 0;
  padding-left: 1.15rem;
}

[data-page="about"] .about-accuracy li {
  margin-bottom: 0.65rem;
  color: var(--color-text);
}

[data-page="about"] .about-chapters {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

[data-page="about"] .about-chapters article {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.35rem 1.45rem;
  box-shadow: var(--shadow-sm);
}

[data-page="about"] .about-chapters h2,
[data-page="about"] .about-chapters h3 {
  color: var(--color-navy);
}

[data-page="about"] .about-chapters p {
  color: var(--color-text);
  margin-bottom: 0.85rem;
}

[data-page="about"] .about-chapters p:last-child {
  margin-bottom: 0;
}

[data-page="about"] .about-cta {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, #0f3d5c 0%, #1a5f8a 60%, #2d7ab0 100%);
  border: none;
  border-radius: 20px;
  padding: 2.4rem 1.75rem;
  color: #fff;
  box-shadow: var(--shadow-md);
}

[data-page="about"] .about-cta h2,
[data-page="about"] .about-cta p {
  color: #fff;
}

[data-page="about"] .about-cta p {
  opacity: 0.95;
}

[data-page="about"] .about-cta .btn-outline-custom {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}

[data-page="about"] .about-cta .btn-outline-custom:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

[data-page="about"] .about-cta .btn-primary-custom {
  background: #fff;
  color: var(--color-navy);
}

[data-page="about"] .about-cta .btn-primary-custom:hover {
  color: var(--color-navy);
  background: #f4f8fb;
}

[data-page="about"] .text-muted-custom {
  color: var(--color-text);
}

[data-theme="dark"] [data-page="about"] .about-intro,
[data-theme="dark"] [data-page="about"] .about-stats span,
[data-theme="dark"] [data-page="about"] .about-chapters article,
[data-theme="dark"] [data-page="about"] .about-note {
  background: #1a2d3f;
  border-color: rgba(255,255,255,0.12);
}

[data-theme="dark"] [data-page="about"] .about-stats strong,
[data-theme="dark"] [data-page="about"] .about-tech article h3,
[data-theme="dark"] [data-page="about"] .about-chapters h2,
[data-theme="dark"] [data-page="about"] .about-chapters h3 {
  color: var(--color-text);
}

@media (max-width: 991.98px) {
  [data-page="about"] .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  [data-page="about"] .about-stats,
  [data-page="about"] .about-tech {
    grid-template-columns: 1fr;
  }
}

.contact-compact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 767.98px) {
  .contact-compact {
    grid-template-columns: 1fr;
  }
}

.contact-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 1.5rem auto 0;
}

@media (max-width: 767.98px) {
  .contact-notes {
    grid-template-columns: 1fr;
  }
}

.calc-content,
.prose-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.calc-info-card,
.prose-stack > .calc-info-card {
  width: 100%;
  box-sizing: border-box;
}

.calc-info-card {
  position: relative;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(15, 61, 92, 0.08);
  padding: 2.6rem 2.75rem 2.35rem;
  overflow: hidden;
  text-align: center;
}

.calc-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a5f8a 0%, #4a9fd4 100%);
}

[data-theme="dark"] .calc-info-card {
  background: #152535;
}

.calc-info-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 1.05rem;
  border-radius: 12px;
  background-color: #eef6fc;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  box-shadow: inset 0 0 0 1px #d5e6f2;
}

[data-theme="dark"] .calc-info-icon {
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.calc-info-icon,
.calc-info-card[data-card-kind="default"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v3M12 19v3M4.2 6.2l2.1 2.1M17.7 15.7l2.1 2.1M2 12h3M19 12h3M4.2 17.8l2.1-2.1M17.7 8.3l2.1-2.1'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="about"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="why"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="how"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9c.3.7 1 1.1 1.7 1.1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="analyze"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="formula"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M8 7 4 12l4 5M16 7l4 5-4 5M13 5l-2 14'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="interpret"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 19V5M4 19h16M8 15v-4M12 15V8M16 15v-6'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="refresh"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 12a9 9 0 1 1-2.6-6.3L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="users"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 19a6 6 0 0 1 12 0M17 11a3 3 0 1 0-1-5.8M21 19a5 5 0 0 0-6-4.7'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="inputs"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3Ccircle cx='8' cy='7' r='1.6' fill='%231a5f8a'/%3E%3Ccircle cx='15' cy='12' r='1.6' fill='%231a5f8a'/%3E%3Ccircle cx='10' cy='17' r='1.6' fill='%231a5f8a'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="example"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="limit"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 4 6v6c0 5 3.4 8.4 8 9 4.6-.6 8-4 8-9V6l-8-3z'/%3E%3C/svg%3E");
}

.calc-info-card[data-card-kind="related"] .calc-info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a5f8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M10 13a5 5 0 0 0 7.1.1l2.8-2.8a5 5 0 0 0-7.1-7.1L11.5 4.6'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.1-.1L4.1 13.7a5 5 0 0 0 7.1 7.1l1.3-1.3'/%3E%3C/svg%3E");
}

.calc-info-card > h2,
.calc-info-card > h3,
.calc-info-card > .h3,
.calc-info-card > .h4,
.calc-info-card > .h5 {
  margin-top: 0 !important;
  margin-bottom: 0.95rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: var(--lh-heading);
  color: #1e2a3a;
  text-align: center;
}

.calc-info-card > h3,
.calc-info-card > .h5 {
  font-size: var(--fs-h3);
}

[data-theme="dark"] .calc-info-card > h2,
[data-theme="dark"] .calc-info-card > h3,
[data-theme="dark"] .calc-info-card > .h3,
[data-theme="dark"] .calc-info-card > .h4,
[data-theme="dark"] .calc-info-card > .h5 {
  color: var(--color-text);
}

.calc-info-card p,
.calc-info-card li,
.calc-info-card dd {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: #5c6b7a;
}

.calc-info-card > p {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .calc-info-card p,
[data-theme="dark"] .calc-info-card li,
[data-theme="dark"] .calc-info-card dd {
  color: var(--color-text-muted);
}

.calc-info-card a {
  color: #1a5f8a;
  font-weight: 500;
  text-underline-offset: 2px;
}

.calc-info-card > ul,
.calc-info-card > ol {
  display: table;
  margin: 0.35rem auto 0;
  padding-left: 1.2rem;
  text-align: left;
  max-width: 42rem;
}

.calc-info-card li {
  margin-bottom: 0.45rem;
}

.calc-info-card li::marker {
  color: #1a5f8a;
}

.calc-info-card > p:last-child,
.calc-info-card > ul:last-child,
.calc-info-card > ol:last-child,
.calc-info-card > dl:last-child {
  margin-bottom: 0;
}

.calc-info-card dt:first-of-type {
  margin-top: 0 !important;
}

.calc-info-card > .page-lead,
.calc-info-card > .lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.85rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: var(--lh-body);
  color: #5c6b7a;
}

.calc-info-card > .page-lead:last-child,
.calc-info-card > .lead:last-child {
  margin-bottom: 0;
}

.calc-info-card .bg-light,
.calc-info-card .font-monospace.bg-light,
.calc-note {
  background: #f4f7fa !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: 10px;
  border-left: 3px solid #1a5f8a !important;
  padding: 0.95rem 1.1rem;
  margin: 0.85rem auto 0;
  text-align: left;
  max-width: 42rem;
}

.calc-info-card .card-winter,
.calc-info-card .calc-info-card,
.faq-list .card-winter,
.calc-form-card .card-winter {
  background: #f4f7fa !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  padding: 1rem 1.1rem;
  border-radius: 10px;
}

.prose-stack > .card-winter,
article.calc-content > .card-winter {
  padding: 2.15rem 2.4rem;
  text-align: center;
  box-shadow: 0 10px 32px rgba(15, 61, 92, 0.08);
  border: 0;
}

@media (max-width: 575.98px) {
  .calc-info-card,
  .prose-stack > .card-winter,
  article.calc-content > .card-winter {
    padding: 1.75rem 1.25rem 1.6rem;
  }

  .calc-info-card > h2,
  .calc-info-card > h3,
  .calc-info-card > .h3,
  .calc-info-card > .h4,
  .calc-info-card > .h5 {
    font-size: 1.5rem;
  }
}

main .faq-list {
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(15, 61, 92, 0.08);
  padding: 2.4rem 2.5rem;
  position: relative;
  overflow: hidden;
}

main .faq-list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a5f8a 0%, #4a9fd4 100%);
}

[data-theme="dark"] main .faq-list {
  background: #152535;
  border-color: var(--color-border);
}

main .faq-list > h2:first-child {
  margin-top: 0;
  margin-bottom: 1.35rem;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: #1e2a3a;
  text-align: center;
}

[data-theme="dark"] main .faq-list > h2:first-child {
  color: var(--color-text);
}

.calc-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .calc-form-card { background: #152535; }

.calc-form-stage {
  position: relative;
  min-height: 0;
}

#calc-loading:not(.d-none) {
  padding: 2rem 1rem;
}

.calc-form-inputs.is-hidden {
  display: none !important;
}

.calc-form-card.has-calc-results .calc-form-stage {
  min-height: 0;
}

.calc-result-panel {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 0;
  display: none;
}

.calc-result-panel.visible { display: block; animation: fadeIn 0.4s ease; }

/* Calculator pages: clean readable result card */
.calc-form-card .calc-result-panel.result-card {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

[data-theme="dark"] .calc-form-card .calc-result-panel.result-card {
  background: #1a2b3c;
  color: var(--color-text);
  border-color: var(--color-border);
}

.calc-form-card .calc-result-panel.result-card.risk-low { border-top-color: var(--color-sky); }
.calc-form-card .calc-result-panel.result-card.risk-moderate { border-top-color: var(--color-primary); }
.calc-form-card .calc-result-panel.result-card.risk-high { border-top-color: var(--color-primary-dark); }
.calc-form-card .calc-result-panel.result-card.risk-extreme { border-top-color: var(--color-navy); }

.calc-form-card .calc-result-panel .ai-explanation {
  background: var(--color-accent);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.calc-form-card .calc-result-panel .result-metric {
  background: var(--color-accent);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.calc-form-card .calc-result-panel .result-metric-value {
  color: var(--color-primary-dark);
}

[data-theme="dark"] .calc-form-card .calc-result-panel .result-metric-value {
  color: var(--color-sky);
}

.calc-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.calc-form-card .calc-result-panel.risk-high .calc-result-footer,
.calc-form-card .calc-result-panel.risk-extreme .calc-result-footer {
  border-top-color: var(--color-border);
}

.calc-back-btn,
.calc-refresh-btn {
  border: 0;
  background: none;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.calc-back-btn:hover,
.calc-refresh-btn:hover {
  color: var(--color-primary-light);
}

/* Calculator result layout — one card, not a card inside a card */
.calc-form-card.has-calc-results {
  padding: 0;
}

.calc-form-card.has-calc-results > h2 {
  display: none;
}

.calc-form-card.has-calc-results .calc-result-panel.result-card,
.calc-form-card.has-calc-results .calc-result-panel.visible {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  padding: 1.25rem 1.5rem 1.1rem;
}

[data-theme="dark"] .calc-form-card.has-calc-results .calc-result-panel.result-card {
  background: transparent;
  border: 0;
}

.calc-result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--color-border);
}

.calc-result-meta-loc #result-location-name {
  color: var(--color-navy);
  font-weight: 600;
}

[data-theme="dark"] .calc-result-meta-loc #result-location-name {
  color: var(--color-text);
}

.calc-result-meta-time {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.calc-result-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

@media (min-width: 576px) {
  .calc-result-main {
    grid-template-columns: minmax(6.5rem, auto) 1fr;
    align-items: start;
    gap: 1rem 1.25rem;
  }
}

.calc-result-hero {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.calc-result-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  line-height: 1;
}

.calc-form-card .calc-result-panel .result-percentage {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary-dark);
}

[data-theme="dark"] .calc-form-card .calc-result-panel .result-percentage {
  color: var(--color-sky);
}

.calc-form-card .calc-result-panel #result-unit {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.calc-form-card .calc-result-panel #result-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.calc-form-card .calc-result-panel .ai-explanation {
  padding: 0.7rem 0.85rem;
  margin-top: 0;
  border-radius: var(--radius-sm);
}

.calc-form-card .calc-result-panel .ai-explanation strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .calc-form-card .calc-result-panel .ai-explanation strong {
  color: var(--color-text);
}

.calc-form-card .calc-result-panel .ai-explanation ul {
  padding-left: 1.1rem;
  margin: 0 !important;
}

.calc-form-card .calc-result-panel .ai-explanation li {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
}

.calc-form-card .calc-result-panel .ai-explanation li:last-child {
  margin-bottom: 0;
}

.calc-form-card .calc-result-panel .result-metric {
  padding: 0.55rem 0.65rem;
}

.calc-form-card .calc-result-panel .result-metric-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.calc-form-card .calc-result-panel .result-metric-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
  opacity: 1;
  line-height: 1.4;
}

.calc-form-card .calc-result-panel #result-extra {
  margin-top: 0.5rem !important;
  --bs-gutter-y: 0.5rem;
  --bs-gutter-x: 0.5rem;
}

.calc-form-card .calc-result-panel #result-road {
  margin-top: 0 !important;
  font-size: 0.875rem;
}

.calc-form-card .calc-result-panel .calc-result-footer {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
}

.calc-sidebar {
  align-self: start;
}

.calc-sidebar .card-winter {
  height: auto;
}

#related-calculators {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

#related-calculators .card-winter {
  height: auto;
  min-height: 0;
}

.calc-related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  clear: both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--color-frost) 25%, #fff 50%, var(--color-frost) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
.skeleton-title { height: 2rem; width: 60%; margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: #e8eef4;
  padding: 4rem 0 2rem;
}

.site-footer a { color: #d7e4ef; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-heading {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-brand-title:hover .footer-brand-name {
  color: rgba(255,255,255,0.9);
}

.footer-brand-name {
  margin-bottom: 0;
  line-height: 1.2;
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-brand-desc {
  font-size: 1rem;
  color: #e8eef4;
  opacity: 1;
  margin: 0;
  line-height: 1.7;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { font-size: 1rem; line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.28);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #f4f8fb;
  text-align: center;
}

.footer-bottom p,
.footer-copy,
.footer-note {
  color: #f4f8fb !important;
  opacity: 1 !important;
  font-weight: 500;
  line-height: 1.55;
}

.footer-note {
  max-width: 38rem;
  text-align: right;
}

.footer-clock {
  color: #e8f2f8 !important;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.page-last-reviewed {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.calc-hero .page-last-reviewed {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 767.98px) {
  .footer-note { text-align: left; }
}

/* FAQ — one outer card, rows inside (no nested cards) */
.faq-item {
  border: 0;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  overflow: hidden;
  background: transparent;
}

.faq-question {
  width: 100%;
  padding: 0.95rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: #1e2a3a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: 10px;
}

[data-theme="dark"] .faq-question {
  color: var(--color-text);
}

.faq-item.open .faq-question {
  background: #eef6fc;
}

[data-theme="dark"] .faq-item.open .faq-question {
  background: rgba(255, 255, 255, 0.06);
}

.faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: #5c6b7a;
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  padding: 0.35rem 1rem 1rem;
  max-height: 500px;
}

/* Blog cards */
.blog-card-img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  width: 100%;
}

.blog-card-body { padding: 1.25rem; }

.blog-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* Alerts */
.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.alert-warning { background: #fef3cd; color: #856404; }
.alert-danger { background: #f8d7da; color: #721c24; }
.alert-info { background: #d1ecf1; color: #0c5460; }

/* Road conditions */
.road-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
}

.road-dry { background: #d4edda; color: #155724; }
.road-wet { background: #cce5ff; color: #004085; }
.road-snow { background: #e2e3e5; color: #383d41; }
.road-slushy { background: #d6d8db; color: #1b1e21; }
.road-icy { background: #b8daff; color: #004085; }
.road-black-ice { background: #2c3e50; color: #fff; }
.road-dangerous { background: #f5c6cb; color: #721c24; }
.road-very-dangerous { background: #721c24; color: #fff; }

/* Utilities */
.text-muted-custom { color: var(--color-text-muted); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.fade-in { animation: fadeIn 0.5s ease; }

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Blog */
.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .blog-article-layout {
    grid-template-columns: 220px minmax(0, 1fr) 260px;
  }
}

.blog-article-layout > aside {
  align-self: start;
}

.blog-article-layout > article {
  min-width: 0;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.blog-article-layout aside .card-winter,
#comments-section.card-winter,
#related-posts .card-winter {
  height: auto;
}

.blog-toc-card {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  background: var(--color-frost);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
}

.blog-toc-list { margin: 0; padding-left: 1.25rem; }
.blog-toc-list .toc-h3 { margin-left: 0.75rem; font-size: 0.9375rem; }
.blog-toc-list a { color: var(--color-text-muted); text-decoration: none; }
.blog-toc-list a:hover { color: var(--color-primary); }

.blog-article-body {
  max-width: var(--reading-width);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--card-pad);
}
[data-theme="dark"] .blog-article-body { background: #152535; }
.blog-article-body h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); margin-top: 1.85rem; margin-bottom: 0.85rem; color: var(--color-navy); letter-spacing: -0.02em; line-height: var(--lh-heading); }
.blog-article-body h2:first-child { margin-top: 0; }
[data-theme="dark"] .blog-article-body h2 { color: var(--color-text); }
.blog-article-body h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); margin-top: 1.5rem; margin-bottom: 0.7rem; line-height: var(--lh-heading); }
.blog-article-body p { margin-bottom: 1rem; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-text-muted); }
.blog-article-body ul, .blog-article-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.blog-article-body li { margin-bottom: 0.45rem; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-text-muted); }

.legal-content p,
.legal-content li,
.page-lead,
.lead.text-muted-custom {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-muted);
}

.legal-content h2,
.legal-content .h4 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: var(--lh-heading);
  color: var(--color-navy);
}

.blog-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.blog-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.blog-publish-date {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .blog-publish-date {
    margin-left: 0;
    width: 100%;
  }
}

.blog-author { display: flex; align-items: center; gap: 0.75rem; }
.blog-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-winter); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
}

.share-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-accent);
  color: var(--color-text); transition: all var(--transition); cursor: pointer;
  text-decoration: none;
}
.share-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.blog-nav-link {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition);
  height: auto;
  min-height: 0;
}

.blog-nav-link:hover { border-color: var(--color-primary); background: var(--color-frost); color: var(--color-primary); }

.blog-nav-direction {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-nav-title {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.45;
}

#blog-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 575px) {
  #blog-prev-next { grid-template-columns: 1fr; }
}

#related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

#related-posts .card-winter {
  height: auto;
  min-height: 0;
}

.blog-related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  clear: both;
}

.blog-cta {
  background: var(--gradient-winter); color: #fff;
  border-radius: var(--radius-lg); padding: 2rem; text-align: center; margin-top: 2rem;
}
.blog-cta h3 { color: #fff; margin-bottom: 0.75rem; }
.blog-cta p { opacity: 0.9; margin-bottom: 1.25rem; }
.blog-cta .blog-cta-note {
  font-size: 0.875rem;
  opacity: 0.95;
  line-height: 1.5;
}
.blog-cta .blog-cta-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-cta .blog-cta-note a:hover {
  opacity: 0.9;
}

.blog-article-layout > article .faq-list {
  margin-top: 2rem;
}

/* Instant search dropdown */
.instant-search-wrap { position: relative; }
.instant-search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1001;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  margin-top: 0.25rem; max-height: 360px; overflow-y: auto;
}
[data-theme="dark"] .instant-search-dropdown { background: #152535; }
.search-group-label {
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-text-muted);
  padding: 0.5rem 1rem 0.25rem;
}
.search-result-item {
  display: block; padding: 0.7rem 1rem; color: var(--color-text);
  text-decoration: none; font-size: 1rem; line-height: 1.45; transition: background var(--transition);
}
.search-result-item:hover, .search-result-item.active { background: var(--color-frost); color: var(--color-primary); }
.search-result-item mark { background: #fef3cd; padding: 0 2px; border-radius: 2px; }
.search-empty { padding: 1rem; font-size: 1rem; line-height: 1.5; }

/* Location autocomplete */
.location-autocomplete-wrap {
  position: relative;
  width: 100%;
}

.classic-calc-main .location-autocomplete-wrap {
  max-width: none;
  width: 100%;
}

.location-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1002;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
}

[data-theme="dark"] .location-autocomplete-dropdown {
  background: #152535;
  border-color: var(--color-border);
}

.location-autocomplete-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.location-autocomplete-item:last-child {
  border-bottom: 0;
}

.location-autocomplete-item:hover,
.location-autocomplete-item.active {
  background: var(--color-frost);
}

.location-autocomplete-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.location-autocomplete-sublabel {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
  line-height: 1.35;
}

.location-autocomplete-label mark {
  background: #dbeafe;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

.location-autocomplete-empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Newsletter */
.newsletter-section {
  background: var(--color-navy); color: #fff;
  padding: 3rem 0; margin-top: 2rem;
}
.newsletter-form .form-control {
  border-radius: 999px 0 0 999px; border: none; padding: 0.75rem 1.25rem;
}
.newsletter-form .btn {
  border-radius: 0 999px 999px 0; padding: 0.75rem 1.5rem;
  background: var(--color-sky); border: none; font-weight: 600;
}
.newsletter-success { color: #fff; }

/* Error pages */
.error-page { min-height: 60vh; display: flex; align-items: center; }

/* Final mobile overrides */
@media (max-width: 575.98px) {
  .hero {
    padding: 1.5rem 0 2rem !important;
  }

  .hero h1 {
    font-size: 1.875rem !important;
    margin-bottom: 0.65rem !important;
  }

  .hero-subtitle {
    font-size: 1.0625rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    white-space: normal !important;
  }

  .hero-search-card {
    padding: 1rem !important;
    border-radius: 1rem !important;
  }

  .hero-search-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .hero-search-input,
  .hero-search-form .btn-outline-custom,
  .hero-search-form .btn-primary-custom {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  .hero .trust-row {
    display: none !important;
  }

  .hero.hero-compact {
    padding: 1.5rem 0 2rem !important;
  }

  .hero.hero-compact h1 {
    display: block !important;
    font-size: 1.875rem !important;
  }

  .hero.hero-compact .hero-examples {
    display: none !important;
  }

  #results-section {
    padding: 1rem 0 1.5rem !important;
  }

  .weather-forecast-app.result-card {
    padding: 0.85rem !important;
    border-radius: 1rem !important;
  }

  .weather-app-header h2 {
    font-size: 1.45rem !important;
  }

  .daily-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
  }

  .daily-tab {
    min-width: 0 !important;
    padding: 0.55rem 0.5rem !important;
  }

  .current-card-sky {
    min-height: 120px !important;
  }

  .current-weather-icon {
    font-size: 2.9rem !important;
  }

  .current-temp {
    font-size: 2.55rem !important;
  }

  .hourly-chart {
    height: 115px !important;
  }

  .hourly-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
  }

  .hourly-card {
    min-width: 0 !important;
  }

  .calc-hero {
    padding: 1.5rem 0 !important;
  }

  .calc-hero h1 {
    font-size: 1.875rem !important;
    line-height: 1.2 !important;
  }

  .calc-hero .lead {
    font-size: 1.0625rem !important;
  }

  .calc-content,
  .faq-list,
  .calc-related-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 640px;
  }

  .calc-form-card:not(.has-calc-results) {
    padding: 1rem !important;
  }

  .calc-form-card.has-calc-results .calc-result-panel.visible {
    padding: 1rem 1.1rem 0.95rem;
  }

  .calc-result-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .calc-result-meta-time {
    white-space: normal;
  }

  #related-calculators {
    grid-template-columns: 1fr;
  }

  .classic-calc-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .classic-calc-btn {
    width: 100%;
  }
}

/* ===== Homepage sections (hero untouched) ===== */
.gpub {
  padding: 4rem 0;
  background: #fff;
  border-top: 1px solid #e8eaed;
}

.gpub:not(.gpub-why) {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.gpub--alt {
  background: #f8f9fa;
}

[data-theme="dark"] .gpub {
  background: var(--color-accent);
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gpub--alt {
  background: #152535;
}

.gpub-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.gpub-head {
  max-width: 720px;
  margin: 0 0 2rem;
}

.gpub h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin: 0 0 0.85rem;
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

[data-theme="dark"] .gpub h2 { color: var(--color-text); }

.gpub-kicker {
  display: inline-block;
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a73e8;
}

[data-theme="dark"] .gpub-kicker { color: #8ab4f8; }

.gpub-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-lead);
  font-weight: var(--fw-regular);
  line-height: var(--lh-lead);
}

[data-theme="dark"] .gpub-lead { color: var(--color-text-muted); }

.gpub-prose {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

[data-theme="dark"] .gpub-prose { color: var(--color-text-muted); }

.gpub-prose p { margin: 0 0 1rem; }
.gpub-prose p:last-child { margin-bottom: 0; }

.gpub a:not(.btn-primary-custom):not(.btn-outline-custom) {
  color: #1a73e8;
  text-decoration: none;
}

.gpub a:not(.btn-primary-custom):not(.btn-outline-custom):hover {
  text-decoration: underline;
}

.gpub-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f0fe;
  color: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gpub-icon svg {
  width: 22px;
  height: 22px;
}

[data-theme="dark"] .gpub-icon {
  background: rgba(26, 115, 232, 0.18);
  color: #8ab4f8;
}

/* How it works — 3 cards */
.gpub-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gpub-steps > li {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

[data-theme="dark"] .gpub-steps > li {
  background: #1a2d3f;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.gpub-steps__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.gpub-steps__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gpub-steps h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: #202124;
}

[data-theme="dark"] .gpub-steps h3 { color: var(--color-text); }

.gpub-steps p {
  margin: 0;
  color: #5f6368;
  font-size: 1rem;
  line-height: 1.7;
}

[data-theme="dark"] .gpub-steps p { color: var(--color-text-muted); }

/* Why trust — split + feature tiles */
.gpub-split {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.gpub-why .gpub-head {
  max-width: none;
  margin: 0 0 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #e6eef4;
}

.gpub-why .gpub-lead {
  max-width: 40rem;
}

.gpub-why-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.gpub-why .gpub-prose {
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.45rem;
  box-shadow: 0 8px 28px rgba(15, 61, 92, 0.06);
}

[data-theme="dark"] .gpub-why .gpub-prose {
  background: #1a2d3f;
}

.gpub-why .gpub-prose p {
  margin: 0;
}

.gpub-features {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gpub-why .gpub-features {
  margin: 0;
  gap: 1rem;
  counter-reset: why-step;
}

.gpub-features li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 1rem 0.95rem;
}

.gpub-why .gpub-features li {
  counter-increment: why-step;
  position: relative;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 61, 92, 0.07);
  overflow: hidden;
}

.gpub-why .gpub-features li::before {
  content: counter(why-step, decimal-leading-zero);
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a5f8a;
  opacity: 0.55;
}

.gpub-why .gpub-features li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a5f8a 0%, #4a9fd4 100%);
}

[data-theme="dark"] .gpub-features li {
  background: #1a2d3f;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .gpub-why .gpub-features li {
  box-shadow: none;
}

.gpub-why .gpub-features .gpub-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.gpub-features strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: #202124;
  margin-bottom: 0.15rem;
}

.gpub-why .gpub-features strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .gpub-features strong { color: var(--color-text); }

.gpub-features span {
  display: block;
  font-size: 0.9375rem;
  color: #5f6368;
  line-height: 1.55;
}

.gpub-why .gpub-features span {
  font-size: 1rem;
  line-height: 1.6;
}

[data-theme="dark"] .gpub-features span { color: var(--color-text-muted); }

.gpub-related {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 1.2rem 1.15rem 0.5rem;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.gpub-why .gpub-related {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  border: 0;
  border-radius: 16px;
  padding: 1.6rem 1.4rem 1rem;
  box-shadow: 0 10px 32px rgba(15, 61, 92, 0.08);
  overflow: hidden;
}

.gpub-why .gpub-related::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a5f8a 0%, #4a9fd4 100%);
}

[data-theme="dark"] .gpub-related {
  background: #1a2d3f;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.gpub-related h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 500;
  color: #202124;
}

.gpub-why .gpub-related h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin-bottom: 0.45rem;
}

[data-theme="dark"] .gpub-related h3 { color: var(--color-text); }

.gpub-related > p {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #5f6368;
}

.gpub-why .gpub-related > p {
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e6eef4;
}

.gpub-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gpub-related li {
  border-top: 1px solid #f1f3f4;
}

.gpub-why .gpub-related li {
  border-top: 0;
}

.gpub-why .gpub-related li + li {
  border-top: 1px solid #eef2f6;
}

[data-theme="dark"] .gpub-related li {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.gpub-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.gpub-why .gpub-related a {
  padding: 0.8rem 0.55rem;
  margin: 0 -0.55rem;
  border-radius: 10px;
  font-size: 1rem;
}

.gpub-why .gpub-related a:hover {
  background: #f6f8fb;
  text-decoration: none;
}

[data-theme="dark"] .gpub-why .gpub-related a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.gpub-related a::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.55;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gpub-note {
  margin: 1.25rem 0 0;
  padding: 0.95rem 1.1rem;
  background: #e8f0fe;
  border-radius: 10px;
  color: #174ea6;
  font-size: 0.94rem;
  line-height: 1.55;
}

.gpub-why .gpub-note {
  margin: 0;
  padding: 1.15rem 1.3rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 61, 92, 0.06);
  border-left: 4px solid #1a5f8a;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

[data-theme="dark"] .gpub-note {
  background: rgba(26, 115, 232, 0.16);
  color: #c5d7fb;
}

[data-theme="dark"] .gpub-why .gpub-note {
  background: #1a2d3f;
  color: var(--color-text-muted);
}

/* Tools — 3-col cards */
.gpub-tools {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.gpub-tools a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 1.15rem 1.15rem 1.2rem;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gpub-tools a:hover {
  border-color: #1a73e8;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.12);
  transform: translateY(-2px);
}

[data-theme="dark"] .gpub-tools a {
  background: #1a2d3f;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.gpub-tools__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a73e8;
  background: #e8f0fe;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  margin-bottom: 0.7rem;
}

[data-theme="dark"] .gpub-tools__cat {
  background: rgba(26, 115, 232, 0.2);
  color: #8ab4f8;
}

.gpub-tools__name {
  font-size: 1.02rem;
  font-weight: 500;
  color: #202124;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .gpub-tools__name { color: var(--color-text); }

.gpub-tools__desc {
  font-size: 1rem;
  color: #5f6368;
  line-height: 1.55;
  flex: 1;
}

[data-theme="dark"] .gpub-tools__desc { color: var(--color-text-muted); }

.gpub-more {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
}

/* Method — chapter cards */
.gpub-chapters {
  display: grid;
  gap: 1rem;
}

.gpub-chapter {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 1.4rem 1.45rem 1.35rem;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

[data-theme="dark"] .gpub-chapter {
  background: #1a2d3f;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.gpub-chapter__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.gpub-chapter h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 500;
  color: #202124;
}

[data-theme="dark"] .gpub-chapter h3 { color: var(--color-text); }

/* Guides — 3 image cards */
.gpub-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gpub-articles article a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.gpub-articles article a:hover {
  box-shadow: 0 6px 16px rgba(60, 64, 67, 0.14);
  transform: translateY(-2px);
}

[data-theme="dark"] .gpub-articles article a {
  background: #1a2d3f;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.gpub-articles img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
}

.gpub-articles article a > div {
  padding: 1rem 1.05rem 1.15rem;
}

.gpub-meta {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a73e8;
}

.gpub-articles h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: #202124;
}

[data-theme="dark"] .gpub-articles h3 { color: var(--color-text); }

.gpub-articles p:last-child {
  margin: 0;
  font-size: 1rem;
  color: #5f6368;
  line-height: 1.6;
}

[data-theme="dark"] .gpub-articles p:last-child { color: var(--color-text-muted); }

/* FAQ: saved strip + accordion */
.gpub-saved {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

[data-theme="dark"] .gpub-saved {
  background: #1a2d3f;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.gpub-saved h2,
.gpub-saved h3 {
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}

.gpub-saved > div:first-child p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #5f6368;
}

.gpub-saved #user-favorites-panel {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.gpub-faq .faq-item {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

[data-theme="dark"] .gpub-faq .faq-item {
  background: #1a2d3f;
  border-color: rgba(255, 255, 255, 0.12);
}

.gpub-faq .faq-question {
  width: 100%;
  text-align: left;
  font-weight: 500;
  color: #202124;
  padding: 1rem 1.15rem;
}

[data-theme="dark"] .gpub-faq .faq-question { color: var(--color-text); }

.gpub-cta {
  text-align: center;
  padding: 2.4rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #e8f0fe 0%, #fff 70%);
  border: 1px solid #d2e3fc;
}

[data-theme="dark"] .gpub-cta {
  background: #1a2d3f;
  border-color: rgba(255, 255, 255, 0.12);
}

.gpub-cta h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  margin-bottom: 0.75rem;
}

.gpub-cta p {
  margin: 0 0 1.2rem;
  color: #5f6368;
}

[data-theme="dark"] .gpub-cta p { color: var(--color-text-muted); }

.gpub-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

@media (max-width: 899.98px) {
  .gpub-steps,
  .gpub-tools,
  .gpub-articles {
    grid-template-columns: 1fr 1fr;
  }

  .gpub-split {
    grid-template-columns: 1fr;
  }

  .gpub-why .gpub-related {
    position: static;
  }
}

@media (max-width: 639.98px) {
  .gpub {
    padding: 2.75rem 0;
  }

  .gpub h2 {
    font-size: var(--fs-h2);
  }

  .gpub-steps,
  .gpub-tools,
  .gpub-articles,
  .gpub-features,
  .gpub-saved {
    grid-template-columns: 1fr;
  }

  .gpub-articles img {
    height: 170px;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, #snow-canvas, .btn-icon, .mobile-toggle { display: none !important; }
  .hero { background: #fff; color: #000; padding: 1rem 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  #snow-canvas { animation: none !important; }
}
