/* Winter redesign. Scoped to body.page-winter so the rest of the site keeps its tokens.
   Colors are the Lea light palette. Existing brand tokens do not hold these values. */

body.page-winter {
  --w-bg: #ffffff;
  --w-ink: #16202e;
  --w-muted: #3b4757;
  --w-navy: #032963;
  --w-link: #1650a0;
  --w-line: #7d8899;
  --w-card: #eaf2fc;
  --w-tint: #f1f5fa;
  --w-status: #fff4db;
  --w-ad-bg: #f4f4f4;
  --w-ad-text: #4a4a4a;
  --w-example: #fde7c2;
  --w-example-text: #7a3300;
  --w-max: 1080px;
  background: var(--w-bg);
  color: var(--w-ink);
  font-size: 16px;
}

html[data-color-scheme="dark"] body.page-winter {
  --w-bg: #121820;
  --w-ink: #f4f7fb;
  --w-muted: #c5d0dc;
  --w-navy: #dbe7ff;
  --w-link: #9ec1ff;
  --w-line: #8ea0b5;
  --w-card: #1c2836;
  --w-tint: #1c2836;
  --w-status: #3d3420;
  --w-ad-bg: #2a2a2a;
  --w-ad-text: #e6e6e6;
  --w-example: #3d3420;
  --w-example-text: #ffe7a3;
  background: #121820;
  color: #f4f7fb;
}

html[data-color-scheme="dark"] body.page-winter .site-header,
html[data-color-scheme="dark"] body.page-winter .site-header .inner,
html[data-color-scheme="dark"] body.page-winter.page-inner .site-header,
html[data-color-scheme="dark"] body.page-winter .site-header--v3 .header-menu,
html[data-color-scheme="dark"] body.page-winter .site-header--v3 .header-menu__inner,
html[data-color-scheme="dark"] body.page-winter .site-footer,
html[data-color-scheme="dark"] body.page-winter .site-footer .inner,
html[data-color-scheme="dark"] body.page-winter .site-footer p {
  background: #121820;
  color: #f4f7fb;
}

html[data-color-scheme="dark"] body.page-winter .site-header--v3 .nav--desktop a,
html[data-color-scheme="dark"] body.page-winter .site-header--v3 .header-menu__inner a,
html[data-color-scheme="dark"] body.page-winter .site-header--v3 .logo,
html[data-color-scheme="dark"] body.page-winter .site-footer a,
html[data-color-scheme="dark"] body.page-winter .site-footer .consent-settings,
html[data-color-scheme="dark"] body.page-winter a {
  color: #9ec1ff;
}

html[data-color-scheme="dark"] body.page-winter .winter-picker button,
html[data-color-scheme="dark"] body.page-winter .winter-email button {
  background: #032963;
  border-color: #9ec1ff;
  color: #ffffff;
}

html[data-color-scheme="dark"] body.page-winter .winter-picker input[type="text"],
html[data-color-scheme="dark"] body.page-winter .winter-email input[type="email"],
html[data-color-scheme="dark"] body.page-winter .winter-suggest,
html[data-color-scheme="dark"] body.page-winter .winter-suggest button,
html[data-color-scheme="dark"] body.page-winter .winter-chip,
html[data-color-scheme="dark"] body.page-winter .winter-change,
html[data-color-scheme="dark"] body.page-winter .winter-links a,
html[data-color-scheme="dark"] body.page-winter .winter-chart {
  background: #1c2836;
  color: #f4f7fb;
}

html[data-color-scheme="dark"] body.page-winter svg text {
  fill: #e8eef6;
}

html[data-color-scheme="dark"] body.page-winter .winter-chart figcaption,
html[data-color-scheme="dark"] body.page-winter .winter-chart__mark,
html[data-color-scheme="dark"] body.page-winter .winter-legend li {
  color: #e8eef6;
}

body.page-winter .site-header {
  background: var(--w-bg);
  border-bottom: 1px solid var(--w-line);
}

body.page-winter .site-header .inner {
  max-width: var(--w-max);
}

body.page-winter .nav--desktop a,
body.page-winter .nav-toggle,
body.page-winter .theme-switch--bar .theme-switch__btn {
  min-height: 44px;
  align-items: center;
}

body.page-winter .nav--desktop a {
  display: inline-flex;
}

body.page-winter .wrap,
body.page-winter .site-footer .inner {
  max-width: var(--w-max);
}

body.page-winter a,
body.page-winter .site-footer .consent-settings {
  color: var(--w-link);
}

body.page-winter .site-footer {
  background: var(--w-tint);
  color: var(--w-ink);
  margin-top: 2rem;
}

.winter-main {
  padding-top: 1.25rem;
}

.winter-pill {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  background: var(--w-status);
  color: var(--w-navy);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 650;
  margin: 0 0 0.85rem;
}

.winter-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.winter-hero__copy {
  min-width: 0;
}

.winter-kicker {
  margin: 0 0 0.35rem;
  color: var(--w-link);
  font-weight: 700;
  font-size: 0.95rem;
}

.winter-h1 {
  margin: 0 0 0.6rem;
  color: var(--w-navy);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.winter-sub {
  margin: 0 0 1rem;
  max-width: 42rem;
  color: var(--w-ink);
}

.winter-now {
  background: var(--w-card);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.1rem;
}

.winter-now__kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--w-muted);
}

.winter-now__phase {
  margin: 0.35rem 0 0.15rem;
  color: var(--w-navy);
  font-size: 1.35rem;
}

.winter-now__figure {
  margin: 0;
  color: var(--w-navy);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 750;
  line-height: 1;
}

.winter-now__figure span[data-status="official-index"] {
  font: inherit;
  color: inherit;
}

.winter-now p,
.winter-mobile-index p {
  margin: 0.35rem 0 0;
}

.winter-picker label {
  display: block;
  font-weight: 750;
  color: var(--w-navy);
  margin-bottom: 0.4rem;
}

.winter-picker__row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.winter-picker input[type="text"] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  font-size: 16px;
  padding: 0.55rem 0.75rem;
  border: 2px solid var(--w-line);
  border-radius: 10px;
  background: #fff;
  color: var(--w-ink);
}

.winter-picker button,
.winter-chip,
.winter-change,
.winter-email button {
  min-height: 44px;
  min-width: 44px;
  font-size: 16px;
  border-radius: 10px;
  border: 2px solid var(--w-navy);
  background: var(--w-navy);
  color: #fff;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.winter-suggest {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 1px solid var(--w-line);
  border-radius: 10px;
  background: #fff;
  max-height: 16rem;
  overflow: auto;
}

.winter-suggest[hidden] {
  display: none;
}

.winter-suggest button {
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--w-ink);
  border: 0;
  border-bottom: 1px solid var(--w-tint);
  border-radius: 0;
}

.winter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.winter-chip {
  background: #fff;
  color: var(--w-navy);
  text-decoration: none;
  border-radius: 999px;
}

.winter-chips li:nth-child(n + 5) {
  display: none;
}

.winter-saved {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  background: var(--w-card);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.winter-saved[hidden],
.winter-answer[hidden],
.winter-picker[hidden] {
  display: none;
}

.winter-change {
  background: #fff;
  color: var(--w-navy);
}

.winter-answer {
  background: var(--w-card);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-top: 0.9rem;
}

.winter-answer h2 {
  margin: 0 0 0.75rem;
  color: var(--w-navy);
  font-size: 1.2rem;
}

.winter-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.winter-fact {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.55rem;
  align-items: start;
}

.winter-fact svg {
  margin-top: 0.15rem;
  color: var(--w-navy);
}

.winter-fact strong {
  display: block;
  color: var(--w-navy);
}

.winter-basis {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--w-line);
  color: var(--w-muted);
}

.winter-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* #032963 on the light card #eaf2fc is 12.4:1. #f4f7fb on the dark card #1c2836 is 13.9:1. */
body.page-winter .winter-answer a.winter-more {
  color: #032963;
}

html[data-color-scheme="dark"] body.page-winter .winter-answer a.winter-more {
  color: #f4f7fb;
}

.winter-section {
  margin-top: 2rem;
}

.winter-section + .winter-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.winter-section h2 {
  color: var(--w-navy);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.winter-cards {
  display: grid;
  gap: 0.8rem;
}

.winter-card {
  background: var(--w-card);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.winter-card h3 {
  margin: 0.2rem 0 0.4rem;
  color: var(--w-navy);
}

.winter-ad {
  margin: 1.25rem 0;
  background: var(--w-ad-bg);
  color: var(--w-ad-text);
  border-radius: 12px;
  min-height: 90px;
  padding: 0.6rem;
  text-align: center;
}

.winter-ad p {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
}

.winter-chart {
  background: #fff;
  border: 1px solid var(--w-line);
  border-radius: 16px;
  padding: 0.55rem 0.7rem 0.45rem;
}

.winter-chart figcaption {
  margin: 0 0 0.15rem;
  color: #16202e;
  line-height: 1.35;
}

.winter-chart__mark {
  margin: 0 0 0.2rem;
  color: #16202e;
  font-size: 0.875rem;
  line-height: 1.35;
}

.winter-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.winter-chart svg[hidden] {
  display: none !important;
}

.winter-legend {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.winter-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: #16202e;
  font-size: 0.875rem;
  line-height: 1.45;
}

.winter-legend__swatch {
  width: 14px;
  height: 4px;
  flex: 0 0 14px;
  border-radius: 1px;
}

@media (min-width: 800px) {
  .winter-chart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 0.9rem;
    align-items: center;
  }

  .winter-chart figcaption,
  .winter-chart__mark,
  .winter-chart .winter-basis {
    grid-column: 1 / -1;
  }

  .winter-legend {
    margin: 0;
    align-self: center;
  }
}

.winter-split {
  display: grid;
  gap: 0.8rem;
}

.winter-email input[type="email"] {
  min-height: 44px;
  font-size: 16px;
  width: 100%;
  border: 2px solid var(--w-line);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.5rem;
}

.winter-email label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.winter-crumb {
  margin: 0 0 0.6rem;
  color: var(--w-muted);
  font-size: 0.95rem;
}

.winter-crumb a {
  color: var(--w-link);
}

.winter-city-top {
  display: grid;
  gap: 0.9rem;
}

.winter-ready li {
  margin: 0.35rem 0;
}

.winter-king {
  background: var(--w-tint);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.winter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.winter-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.8rem;
  border: 2px solid var(--w-line);
  border-radius: 999px;
  text-decoration: none;
  background: #fff;
}

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

@media (min-width: 880px) {
  .winter-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
    align-items: start;
  }

  .winter-hero__copy {
    grid-column: 1;
  }

  .winter-now {
    grid-column: 2;
    grid-row: 1;
  }

  .winter-mobile-index {
    display: none;
  }

  .winter-chips li:nth-child(n + 5) {
    display: list-item;
  }

  .winter-facts,
  .winter-cards,
  .winter-split,
  .winter-city-top {
    grid-template-columns: 1fr 1fr;
  }

  .winter-answer,
  .winter-section--when .winter-cards {
    grid-column: 1 / -1;
  }

  .winter-city-top {
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
    align-items: start;
  }

  .winter-city-top > .winter-answer {
    grid-column: 1;
  }

  .winter-city-top > .winter-now {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 879px) {
  .winter-now {
    display: none;
  }

  .winter-h1 {
    max-width: 14ch;
  }
}
