/* Shared tokens also inherit into the weather components' shadow roots. */
:root {
  --lwr-ink: #101828;
  --lwr-teal: #0F766E;
  --lwr-teal-soft: #E0F2EF;
  --lwr-bg: #EDF1F5;
  --lwr-card: #FFFFFF;
  --lwr-tile: #F3F5F8;
  --lwr-muted: #5B6576;
  --lwr-body: #3E4A5A;
  --lwr-line: #EDF1F5;
  --lwr-sun: #FDB833;
  --lwr-sun-deep: #F5A524;
  --lwr-radius: 28px;
  --lwr-radius-sm: 24px;
  --lwr-radius-tile: 18px;
  --lwr-gap: 20px;
  --lwr-max: 1360px;
}

@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree/figtree-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

/* Page foundations and the twelve-column card grid. */
body.lwr-body {
  margin: 0;
  background: var(--lwr-bg);
  color: var(--lwr-ink);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

/* Keep the shared page shell separate from the broadcast's mode typography. */
body.lwr-body.weather-tv {
  background: var(--lwr-bg);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  letter-spacing: normal;
}

/* Preserve the TV canvas defaults when it inherits the shared body styles. */
.lwr-body .tv-shell {
  line-height: normal;
  font-variant-numeric: normal;
  -webkit-font-smoothing: auto;
}

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

.lwr-search :where(button, input, select, textarea),
.lwr-unit button,
.lwr-icon-btn,
.lwr-tab,
.lwr-chip,
.lwr-seg :where(button, a) {
  font: inherit;
}

.lwr-search button,
.lwr-unit button,
.lwr-icon-btn,
.lwr-tab,
.lwr-chip,
.lwr-seg :where(button, a),
.lwr-faq > summary {
  cursor: pointer;
}

:where(.lwr-article, .lwr-card, .lwr-header, .lwr-footer, .lwr-breadcrumb, .lwr-tabbar) a {
  color: var(--lwr-teal);
  text-decoration: none;
  text-underline-offset: 3px;
}

:where(.lwr-article, .lwr-card, .lwr-header, .lwr-footer, .lwr-breadcrumb, .lwr-tabbar) a:where(:hover) {
  text-decoration: underline;
}

.lwr-body :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--lwr-teal);
  outline-offset: 3px;
}

.lwr-card :where(h1, h2, h3, h4),
.lwr-h1 {
  color: var(--lwr-ink);
  font-weight: 700;
}

.lwr-article h1,
.lwr-h1 {
  margin: 20px 0 24px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lwr-body :where([id]) {
  scroll-margin-block: 24px;
}

.lwr-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--lwr-max);
  margin-inline: auto;
  padding-inline: 32px;
}

.lwr-body main.lwr-container {
  padding-bottom: 0;
}

.lwr-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--lwr-gap);
}

.lwr-grid > * {
  min-width: 0;
}

.lwr-card {
  min-width: 0;
  padding: 28px;
  border: 0;
  border-radius: var(--lwr-radius);
  background: var(--lwr-card);
}

.lwr-card > :where(h2, h3):first-child {
  margin-top: 0;
}

.lwr-card h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lwr-tile {
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--lwr-radius-tile);
  background: var(--lwr-tile);
  color: var(--lwr-ink);
}

/* Header works either inside a container or around a container. */
.lwr-header,
.lwr-header > .lwr-container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}

.lwr-header {
  width: 100%;
  max-width: var(--lwr-max);
  margin-inline: auto;
  padding-inline: 32px;
}

.lwr-header > .lwr-container,
.lwr-container .lwr-header {
  padding-inline: 0;
}

.lwr-header__brand,
.lwr-header > a:first-child,
.lwr-header > .lwr-container > a:first-child {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  color: var(--lwr-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lwr-header__brand > svg,
.lwr-header > a:first-child > svg,
.lwr-header > .lwr-container > a:first-child > svg {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.lwr-nav {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
}

.lwr-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 22px;
  color: var(--lwr-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.lwr-nav a:hover {
  background: var(--lwr-tile);
  color: var(--lwr-ink);
}

.lwr-nav a[aria-current="page"] {
  background: var(--lwr-card);
  color: var(--lwr-ink);
  font-weight: 600;
}

.lwr-search {
  display: flex;
  flex: 0 1 300px;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  min-height: 46px;
  margin: 0 0 0 auto;
  padding: 0 14px 0 18px;
  border-radius: 23px;
  background: var(--lwr-card);
  color: var(--lwr-muted);
}

.lwr-search label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lwr-search input {
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--lwr-ink);
  font-size: 15px;
}

.lwr-search input::placeholder {
  color: var(--lwr-muted);
  opacity: 1;
}

.lwr-search button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--lwr-teal);
}

.lwr-search svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.lwr-unit,
.lwr-unit .temp-switcher {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-family: inherit;
}

.lwr-unit button,
.lwr-unit .temp-switcher button,
.lwr-icon-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 44px;
  height: 46px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lwr-card);
  color: var(--lwr-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.lwr-unit button[aria-pressed="true"],
.lwr-unit button.active,
.lwr-unit .temp-switcher button.active {
  background: var(--lwr-ink);
  color: var(--lwr-card);
  box-shadow: none;
}

.lwr-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* The mobile navigation is enabled only in the mobile media query. */
.lwr-tabbar {
  display: none;
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px 6px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--lwr-line);
  background: var(--lwr-card);
  box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.06);
}

.lwr-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 52px;
  color: var(--lwr-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.lwr-body .lwr-tab {
  color: var(--lwr-muted);
  text-decoration: none;
}

.lwr-tab > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  max-width: 100%;
  height: 30px;
  border-radius: 15px;
}

.lwr-tab svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.lwr-tab[aria-current="page"],
.lwr-body .lwr-tab[aria-current="page"] {
  color: var(--lwr-teal);
  font-weight: 700;
}

.lwr-tab[aria-current="page"] > span:first-child {
  background: var(--lwr-teal-soft);
}

/* Footer navigation links keep a full touch target even when they wrap. */
.lwr-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  padding-block: 28px 40px;
  border-top: 1px solid #DCE3EB;
  color: var(--lwr-muted);
  font-size: 14px;
  line-height: 1.6;
}

.lwr-footer__text {
  max-width: 520px;
  min-width: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.lwr-footer__copy,
.lwr-footer__sources {
  margin: 0;
}

.lwr-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
}

.lwr-footer a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.lwr-footer__copy a {
  display: inline;
  min-width: 0;
  min-height: 0;
}

/* Reservations remain in place before an advertisement loads. */
.lwr-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 290px;
  margin-block: var(--lwr-gap);
  padding: 14px;
  border-radius: var(--lwr-radius);
  background: var(--lwr-card);
  box-sizing: border-box;
}

.lwr-ad--728 {
  min-height: 290px;
}

.lwr-ad--300 {
  min-height: 290px;
}

.lwr-ad__label {
  color: var(--lwr-muted);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lwr-ad__slot {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  height: 250px;
}

@media (min-width: 820px) {
  .lwr-ad--728 {
    min-height: 110px;
  }

  .lwr-ad--728 .lwr-ad__slot {
    height: 90px;
  }
}

/* Chips and segmented controls use semantic attributes for selection. */
.lwr-chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 22px;
  background: var(--lwr-card);
  color: var(--lwr-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.lwr-chip[aria-pressed="true"],
.lwr-chip[aria-current],
.lwr-chip--active {
  background: var(--lwr-ink);
  color: var(--lwr-card);
}

.lwr-chip--soft {
  background: var(--lwr-teal-soft);
  color: var(--lwr-teal);
}

.lwr-chip--warning {
  background: color-mix(in srgb, var(--lwr-sun) 20%, var(--lwr-card));
  color: var(--lwr-ink);
}

.lwr-seg {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 22px;
  background: var(--lwr-bg);
}

.lwr-seg :where(button, a) {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 18px;
  background: none;
  color: var(--lwr-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.lwr-seg :where([aria-pressed="true"], [aria-selected="true"], [aria-current="page"], .active) {
  background: var(--lwr-ink);
  color: var(--lwr-card);
}

.lwr-seg--light :where([aria-pressed="true"], [aria-selected="true"], [aria-current="page"], .active) {
  background: var(--lwr-card);
  color: var(--lwr-ink);
}

/* Native details retain keyboard behavior without script. */
.lwr-faq {
  border-top: 1px solid var(--lwr-line);
}

.lwr-faq:last-child {
  border-bottom: 1px solid var(--lwr-line);
}

.lwr-faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 44px;
  min-height: 64px;
  padding-block: 12px;
  list-style: none;
  color: var(--lwr-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.lwr-faq > summary::-webkit-details-marker {
  display: none;
}

.lwr-faq > summary > :where(svg, .chev, .lwr-faq__chevron) {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--lwr-muted);
  transition: transform 160ms ease;
}

.lwr-faq[open] > summary > :where(svg, .chev, .lwr-faq__chevron) {
  transform: rotate(180deg);
}

.lwr-faq > :where(p, ul, ol) {
  margin: 0 0 20px;
  color: var(--lwr-body);
  font-size: 16px;
  line-height: 1.65;
}

.lwr-faq--soft {
  margin-top: 20px;
  padding-inline: 20px;
  border-radius: 20px;
  background: var(--lwr-teal-soft);
}

.lwr-faq--soft,
.lwr-faq--soft:last-child {
  border: 0;
}

.lwr-faq--soft > summary {
  min-height: 56px;
  color: var(--lwr-teal);
  font-size: 16px;
  font-weight: 700;
}

.lwr-breadcrumb,
.lwr-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--lwr-muted);
  font-size: 14px;
}

.lwr-breadcrumb ol {
  margin: 0;
}

.lwr-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lwr-breadcrumb li + li::before {
  content: '/';
  color: var(--lwr-muted);
}

.lwr-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.lwr-breadcrumb [aria-current="page"] {
  color: var(--lwr-ink);
}

/* Long-form copy can stand alone or share the card and grid classes. */
.lwr-article {
  min-width: 0;
  padding: 44px 48px;
  border-radius: var(--lwr-radius);
  background: var(--lwr-card);
  color: var(--lwr-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.lwr-article :where(h1, h2, h3, h4, h5, h6) {
  color: var(--lwr-ink);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: pretty;
}

.lwr-article h2 {
  margin: 44px 0 16px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.lwr-article h3 {
  margin: 36px 0 12px;
  font-size: 20px;
}

.lwr-article :where(h4, h5, h6) {
  margin: 28px 0 12px;
  font-size: 18px;
}

.lwr-article > :first-child,
.lwr-article section > :first-child {
  margin-top: 0;
}

.lwr-article > :last-child {
  margin-bottom: 0;
}

.lwr-article section + section {
  margin-top: 48px;
}

.lwr-article p {
  margin: 14px 0;
}

.lwr-article :where(ul, ol) {
  margin: 20px 0;
  padding-left: 24px;
}

.lwr-article li + li {
  margin-top: 10px;
}

.lwr-article :where(strong, th) {
  color: var(--lwr-ink);
  font-weight: 600;
}

:where(.lwr-article) a {
  color: var(--lwr-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

:where(.lwr-article) a:where(:hover) {
  text-decoration-thickness: 2px;
}

.lwr-article :where(.lwr-chip, .lwr-seg a) {
  text-decoration: none;
}

.lwr-article .lwr-chip[aria-current],
.lwr-article .lwr-chip--active,
.lwr-article .lwr-chip[aria-pressed="true"] {
  color: var(--lwr-card);
}

.lwr-article table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-block: 18px;
  overflow-x: auto;
  border-collapse: collapse;
  color: var(--lwr-body);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.lwr-article :where(th, td) {
  padding: 12px;
  border-bottom: 1px solid var(--lwr-line);
  vertical-align: top;
}

.lwr-article :where(th, td):first-child {
  padding-left: 0;
}

.lwr-article :where(th, td):last-child {
  padding-right: 0;
}

.lwr-article thead th {
  padding-block: 10px;
  color: var(--lwr-muted);
  font-size: 13px;
}

.lwr-article caption {
  margin-bottom: 10px;
  color: var(--lwr-muted);
  text-align: left;
}

.lwr-article :where(img, svg, video) {
  max-width: 100%;
}

.lwr-article .lwr-faq > p {
  margin: 0 0 20px;
}

.lwr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Every grid child stacks below the desktop breakpoint. */
@media (max-width: 1279px) {
  .lwr-grid > * {
    grid-column: 1 / -1;
  }
}

/* Tablet keeps the top navigation. */
@media (min-width: 768px) and (max-width: 1279px) {
  .lwr-header,
  .lwr-header > .lwr-container {
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-block: 16px;
  }

  .lwr-header > .lwr-container {
    padding-block: 0;
  }

  .lwr-nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
  }

  .lwr-search {
    flex-basis: 240px;
  }
}

@media (min-width: 1280px) {
  .lwr-span-4 {
    grid-column: span 4;
  }

  .lwr-span-8 {
    grid-column: span 8;
  }

  .lwr-span-12 {
    grid-column: span 12;
  }
}

@media (max-width: 767px) {
  body.lwr-body {
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
  }

  .lwr-body :where([id]) {
    scroll-margin-bottom: calc(109px + env(safe-area-inset-bottom, 0px));
  }

  .lwr-container,
  .lwr-header {
    padding-inline: 16px;
  }

  .lwr-header,
  .lwr-header > .lwr-container {
    gap: 6px;
    min-height: 60px;
  }

  .lwr-header__brand,
  .lwr-header > a:first-child,
  .lwr-header > .lwr-container > a:first-child {
    flex-shrink: 1;
    gap: 8px;
    margin-right: auto;
    font-size: 16px;
  }

  .lwr-header__brand > svg,
  .lwr-header > a:first-child > svg,
  .lwr-header > .lwr-container > a:first-child > svg {
    width: 30px;
    height: 30px;
  }

  .lwr-nav {
    display: none;
  }

  .lwr-search {
    order: 2;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
  }

  .lwr-search label,
  .lwr-search input,
  .lwr-search > svg {
    display: none;
  }

  .lwr-search button {
    color: var(--lwr-ink);
  }

  .lwr-search button svg {
    width: 20px;
    height: 20px;
  }

  .lwr-unit,
  .lwr-unit .temp-switcher {
    gap: 2px;
  }

  .lwr-unit button,
  .lwr-unit .temp-switcher button,
  .lwr-icon-btn {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .lwr-tabbar {
    display: grid;
  }

  .lwr-article h1,
  .lwr-h1 {
    margin: 6px 0 16px;
    font-size: 30px;
    line-height: 1.08;
  }

  .lwr-card {
    padding: 20px;
    border-radius: var(--lwr-radius-sm);
  }

  .lwr-card h2 {
    font-size: 20px;
    letter-spacing: -0.01em;
  }

  .lwr-footer {
    flex-direction: column;
    gap: 0;
    margin-top: 32px;
    padding-block: 20px 40px;
    font-size: 13px;
    line-height: 1.6;
  }

  .lwr-footer nav {
    order: 0;
    gap: 6px 16px;
    font-size: 14px;
  }

  .lwr-footer__text {
    display: flex;
    flex-direction: column;
    order: 1;
  }

  .lwr-footer__sources {
    order: 0;
    margin-top: 14px;
  }

  .lwr-footer__copy {
    order: 1;
    margin-top: 10px;
  }

  .lwr-ad,
  .lwr-ad--728,
  .lwr-ad--300 {
    min-height: 290px;
    margin-block: 14px;
    padding: 12px 0;
    border-radius: var(--lwr-radius-sm);
  }

  .lwr-chip {
    padding-inline: 18px;
  }

  .lwr-seg {
    display: flex;
  }

  .lwr-seg :where(button, a) {
    padding-inline: 12px;
  }

  .lwr-breadcrumb,
  .lwr-breadcrumb ol,
  .lwr-breadcrumb li {
    gap: 6px;
    margin-top: 0;
    font-size: 13px;
  }

  .lwr-article {
    padding: 24px 20px;
    border-radius: var(--lwr-radius-sm);
    font-size: 16px;
  }

  .lwr-article h2 {
    margin-top: 32px;
    font-size: 24px;
    line-height: 1.2;
  }

  .lwr-article h3 {
    margin-top: 28px;
    font-size: 18px;
  }

  .lwr-article section + section {
    margin-top: 36px;
  }

  .lwr-article section > h2 {
    font-size: 22px;
  }

  .lwr-article :where(th, td) {
    padding-inline: 8px;
  }

  .lwr-faq > summary {
    gap: 12px;
    min-height: 56px;
    font-size: 16px;
  }

  .lwr-faq > :where(p, ul, ol),
  .lwr-article .lwr-faq > p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
  }

  .lwr-faq--soft {
    margin-top: 14px;
    padding-inline: 16px;
    border-radius: 16px;
  }
}

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

/* Link groups retained from the former sidebars. */
.lwr-link-groups {
  display: grid;
  gap: var(--lwr-gap);
  margin-top: var(--lwr-gap);
}

.lwr-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 4px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.lwr-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.lwr-link-groups .lwr-card > p {
  margin-block: 12px;
  color: var(--lwr-body);
}

.lwr-link-list .lwr-tv-link {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Shared first-screen cards stack on tablets and use desktop proportions from 1024px. */
.lwr-panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.lwr-panel > * { min-width: 0; }
.lwr-panel__ad { display: none; margin: 0; justify-content: center; }
.lwr-panel > .lwr-panel__compact { display: none; }

@media (min-width: 768px) and (max-width: 1023px) {
  .lwr-panel__radar { grid-column: 1 / span 12; grid-row: 1; }
  .lwr-panel__now { grid-column: 1 / span 6; grid-row: 2; }
  .lwr-panel__sun { grid-column: 7 / span 6; grid-row: 2; }
  .lwr-panel__hourly { grid-column: 1 / span 12; grid-row: 3; }
  .lwr-panel__forecast { grid-column: 1 / span 12; grid-row: 4; }
}

@media (min-width: 1024px) {
  .lwr-panel { --lwr-radar-map-height: 800px; grid-template-rows: min-content auto auto auto; }
  .lwr-panel__radar { grid-column: 1 / span 8; grid-row: 1 / span 2; }
  .lwr-panel__now { grid-column: 9 / span 4; grid-row: 1; }
  .lwr-panel__ad { display: flex; grid-column: 9 / span 4; grid-row: 2; align-self: stretch; }
  .lwr-panel__hourly { grid-column: 1 / span 8; grid-row: 3; }
  .lwr-panel__sun { grid-column: 9 / span 4; grid-row: 3; }
  .lwr-panel__forecast { grid-column: 1 / span 12; grid-row: 4; }
}

/* Page resets override shadow slotted rules, so mirror them in the shared panel. */
.lwr-panel weather-local > h2[slot] {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #101828;
}

.lwr-panel weather-local > a[slot="location"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  background: #FFFFFF;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.lwr-home > :is(.lwr-ad, .lwr-article, .lwr-link-groups) { margin-top: 20px; }
.lwr-home > .lwr-ad { margin-bottom: 0; }
.lwr-home-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0 24px;
}

.lwr-home-heading > div { min-width: 0; }
.lwr-home-heading h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lwr-home-heading p {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  color: #5B6576;
}

.lwr-home-location {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 8px 0 16px;
  border-radius: 23px;
  background: #FFFFFF;
  color: #101828;
  font-size: 15px;
  text-decoration: none;
  flex-shrink: 0;
}

.lwr-home-location strong { font-weight: 700; }
.lwr-home-location__change {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: #E0F2EF;
  color: #0F766E;
  font-weight: 600;
}

@media (max-width: 767px) {
  .lwr-panel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lwr-panel weather-local > h2[slot] { font-size: 20px; letter-spacing: -0.01em; }
  .lwr-panel > * { grid-column: 1; }
  .lwr-panel > .lwr-panel__compact { display: block; }
  .lwr-panel > .lwr-panel__now,
  .lwr-panel > .lwr-panel__sun,
  .lwr-home-location { display: none; }
  .lwr-home-heading { margin: 0 0 18px; }
  .lwr-home-heading h1 { margin: 8px 0 0; font-size: 32px; line-height: 1.08; }
  .lwr-home-heading p { margin-top: 6px; font-size: 16px; line-height: 1.4; }
  .lwr-home > :is(.lwr-ad, .lwr-article, .lwr-link-groups) { margin-top: 14px; }
}

/* City pages use the shared weather panel above an article and local links. */
.lwr-city { font-variant-numeric: tabular-nums; }
.lwr-city-hero { line-height: normal; }
.lwr-city .lwr-breadcrumb a { min-width: 0; min-height: 0; }
.lwr-city .lwr-city-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin: 14px 0 24px;
}
.lwr-city-heading > div:first-child { flex: 1; width: 100%; max-width: 820px; min-width: 0; }
.lwr-city .lwr-city-region {
  margin: 0;
  color: #0F766E;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lwr-city .lwr-city-heading h1 {
  margin: 6px 0 0;
  color: #101828;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lwr-city [data-slot="bluf"] { margin: 12px 0 0; font-size: 18px; line-height: 1.55; color: #3E4A5A; }
.lwr-city-station { display: flex; align-items: center; flex-shrink: 0; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 30px; background: #FFFFFF; }
.lwr-city-station__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #E0F2EF; color: #0F766E; }
.lwr-city-station div > span { display: block; font-size: 12px; color: #5B6576; }
.lwr-city-station strong { display: block; font-size: 16px; font-weight: 700; }
.lwr-city .lwr-city-strip { display: none; }
.lwr-city > .lwr-ad { margin: 20px 0 0; }
.lwr-city-content { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 56px; align-items: start; }
.lwr-city-article { grid-column: span 8; min-width: 0; padding: 44px 48px; background: #FFFFFF; border-radius: 28px; color: #101828; font-size: 16px; line-height: normal; overflow-wrap: anywhere; }
.lwr-city .lwr-city-article h2 { margin: 0; color: #101828; font-size: 28px; font-weight: 700; line-height: normal; letter-spacing: -0.02em; }
.lwr-city-article > section + section, .lwr-city-question + .lwr-city-question { margin-top: 48px; }
.lwr-city-article > #sources { margin-top: 48px; }
.lwr-city-article p { margin: 14px 0 0; color: #3E4A5A; font-size: 16px; line-height: 1.65; }
.lwr-city-article a { color: #0F766E; text-decoration: none; }
.lwr-city-article a:hover { color: #0B5A54; text-decoration: underline; }
.lwr-city-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.lwr-city .lwr-city-jumps a { display: flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; background: #F3F5F8; color: #101828; font-size: 14px; font-weight: 600; text-decoration: none; }
.lwr-city .lwr-city-jumps a:first-child { background: #101828; color: #FFFFFF; }
.lwr-city-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.lwr-city-fact { min-width: 0; padding: 18px; border-radius: 20px; background: #F3F5F8; }
.lwr-city-fact dt { font-size: 13px; color: #5B6576; }
.lwr-city-fact dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: #101828; }
.lwr-city-risks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: #5B6576; }
.lwr-city-risk { padding: 7px 14px; border-radius: 18px; background: #FFF1D6; color: #7A4A00; font-weight: 600; }
.lwr-city-table { overflow-x: auto; margin-top: 18px; }
.lwr-city-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; text-align: center; }
.lwr-city-table tbody tr { border-top: 1px solid #EDF1F5; }
.lwr-city-table tbody tr:last-child { border-bottom: 1px solid #EDF1F5; }
.lwr-city-table th { padding: 12px 4px; font-weight: 600; }
.lwr-city-table th:first-child { padding: 12px 8px 12px 0; text-align: left; }
.lwr-city-table td { padding: 12px 4px; }
.lwr-city-table thead th { padding: 10px 4px; color: #5B6576; font-size: 13px; }
.lwr-city-table thead th:first-child { padding: 10px 8px 10px 0; }
.lwr-city-table--mobile { display: none; }
.lwr-city .lwr-city-table-note { margin-top: 10px; color: #5B6576; font-size: 13px; line-height: normal; }
.lwr-city-seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.lwr-city-seasons > div { padding: 20px; border-radius: 20px; background: #F3F5F8; }
.lwr-city-season-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.lwr-city .lwr-city-season-heading h3 { margin: 0; color: #101828; font-size: 18px; font-weight: 700; }
.lwr-city-season-heading span { padding: 4px 10px; border-radius: 10px; background: #FFFFFF; font-size: 13px; font-weight: 600; }
.lwr-city .lwr-city-seasons p { margin-top: 10px; font-size: 15px; line-height: 1.55; }
.lwr-city .lwr-faq { border-top: 1px solid #EDF1F5; }
.lwr-city .lwr-faq:last-child { border-bottom: 1px solid #EDF1F5; }
.lwr-city .lwr-city-article #faq h2 { margin-bottom: 8px; }
.lwr-city .lwr-faq > summary { padding: 0; line-height: normal; }
.lwr-city .lwr-faq > p { margin: 0 0 20px; color: #3E4A5A; font-size: 16px; line-height: 1.65; }
.lwr-city .lwr-city-quick { margin-top: 20px; border: 0; }
.lwr-city .lwr-city-quick ul { margin: 0 0 18px; padding: 0 0 0 20px; color: #101828; font-size: 15px; line-height: 1.8; list-style: disc; }
.lwr-city-quick--mobile { display: none; }
.lwr-city .lwr-city-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; }
.lwr-city .lwr-city-byline { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid #EDF1F5; color: #5B6576; font-size: 14px; line-height: normal; }
.lwr-city-byline a:last-child { font-weight: 600; }
.lwr-city-aside { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; min-width: 0; font-size: 16px; line-height: normal; }
.lwr-city-link-groups { display: flex; flex-direction: column; gap: 20px; }
.lwr-city-links { padding: 26px 28px; background: #FFFFFF; border-radius: 28px; }
.lwr-city .lwr-city-links h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #101828; }
.lwr-city .lwr-city-links a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-top: 1px solid #EDF1F5; color: #101828; font-size: 16px; font-weight: 500; text-decoration: none; }
.lwr-city-links a span { color: #0F766E; }
.lwr-city-aside .lwr-ad { margin: 0; }
.lwr-city .lwr-city-tv { display: flex; flex-direction: column; gap: 16px; padding: 26px 28px; background: #101828; border-radius: 28px; color: #FFFFFF; text-decoration: none; }
.lwr-city-tv__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7DD3C8; }
.lwr-city-tv__heading span:last-child { padding: 3px 8px; border-radius: 6px; background: #D9363E; font-size: 11px; color: #FFFFFF; }
.lwr-city-tv strong { font-size: 22px; font-weight: 700; line-height: 1.25; }
.lwr-city-tv > span:last-child { color: #C3CBD6; font-size: 15px; line-height: 1.5; }

@media (min-width: 768px) and (max-width: 1023px) {
  .lwr-city-article, .lwr-city-aside { grid-column: span 12; }
}
@media (max-width: 767px) {
  .lwr-city .lwr-city-heading { margin: 0; }
  .lwr-city .lwr-city-region, .lwr-city .lwr-city-station { display: none; }
  .lwr-city .lwr-city-heading h1 { margin-top: 6px; font-size: 30px; line-height: 1.08; }
  .lwr-city [data-slot="bluf"] { margin-top: 10px; font-size: 15px; }
  .lwr-city .lwr-city-strip { display: block; margin: 14px 0 12px; }
  .lwr-city .lwr-city-strip:not(:defined) { min-height: 68px; }
  .lwr-city > .lwr-ad { margin-top: 14px; }
  .lwr-city-content { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
  .lwr-city-article { width: 100%; padding: 24px 20px; border-radius: 24px; font-size: 16px; }
  .lwr-city .lwr-city-article h2 { font-size: 22px; line-height: 1.2; }
  .lwr-city-article > section + section, .lwr-city-question + .lwr-city-question { margin-top: 36px; }
  .lwr-city-article > #sources { margin-top: 36px; }
  .lwr-city-jumps { flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 0 -20px 28px; padding: 0 20px; scrollbar-width: none; }
  .lwr-city-jumps::-webkit-scrollbar { display: none; }
  .lwr-city .lwr-city-jumps a { flex: 0 0 auto; padding-inline: 14px; font-size: 14px; }
  .lwr-city-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .lwr-city-fact { padding: 14px; border-radius: 16px; }
  .lwr-city-fact dt { font-size: 12px; }
  .lwr-city-fact dd { margin-top: 2px; font-size: 16px; }
  .lwr-city-fact--radar { grid-column: span 2; }
  .lwr-city-risks { gap: 6px; margin-top: 12px; }
  .lwr-city-risks > span:first-child { display: none; }
  .lwr-city-risk { padding: 6px 12px; border-radius: 16px; font-size: 13px; }
  .lwr-city-table--desktop { display: none; }
  .lwr-city-table--mobile { display: table; width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; text-align: start; }
  .lwr-city-table--mobile thead { color: #5B6576; font-size: 12px; }
  .lwr-city-table--mobile tbody tr { border-top: 1px solid #EDF1F5; }
  .lwr-city-table--mobile th { padding: 10px 0; text-align: left; font-weight: 600; }
  .lwr-city-table--mobile thead th:not(:first-child) { text-align: right; }
  .lwr-city-table--mobile td { padding: 1px; text-align: right; }
  .lwr-city .lwr-city-table-note { margin-top: 8px; font-size: 12px; }
  .lwr-city-seasons { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
  .lwr-city-seasons > div { padding: 16px; border-radius: 18px; }
  .lwr-city .lwr-city-season-heading h3 { font-size: 16px; }
  .lwr-city-season-heading span { padding: 3px 9px; border-radius: 9px; font-size: 12px; }
  .lwr-city .lwr-city-seasons p { margin-top: 8px; line-height: 1.5; }
  .lwr-city .lwr-city-article #faq h2 { margin-bottom: 6px; }
  .lwr-city .lwr-faq > p { margin-bottom: 16px; font-size: 15px; line-height: 1.6; }
  .lwr-city .lwr-city-quick { margin-top: 14px; padding: 0 16px; border-radius: 16px; }
  .lwr-city .lwr-city-quick > summary { min-height: 52px; font-size: 15px; }
  .lwr-city .lwr-city-quick ul { margin-bottom: 14px; padding: 0 0 0 18px; font-size: 14px; }
  .lwr-city-quick--desktop { display: none; }
  .lwr-city-quick--mobile { display: block; }
  .lwr-city .lwr-city-sources { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .lwr-city .lwr-city-byline { margin-top: 18px; padding-top: 14px; font-size: 13px; line-height: 1.6; }
  .lwr-city-aside { width: 100%; gap: 14px; }
  .lwr-city-ad2 { order: 0; }
  .lwr-city-link-groups { order: 1; gap: 0; padding: 8px 20px 12px; background: #FFFFFF; border-radius: 24px; }
  .lwr-city-links { padding: 0; border-radius: 0; }
  .lwr-city .lwr-city-links h2 { margin: 14px 0 4px; font-size: 17px; }
  .lwr-city .lwr-city-tv { display: none; }
  .lwr-city-ad3 { order: 2; }
}
