:root {
  --main-font-family: 'Poppins', sans-serif; /* everything else */
  --secondary-font-family: 'Poppins', sans-serif; /* forecast text narratives and some titles */
  --tertiary-font-family: 'Poppins', sans-serif; /* ldl */
  --monospace-font: 'Poppins', sans-serif;
  font-family: var(--main-font-family);
  image-rendering: auto;
  color: var(--text);

  /* Surfaces */
  --color-bg: #02060cf0;
  --color-bg-dim: #020812b8;
  --color-surface: #020911eb;
  --color-surface-dim: #071b34a3;
  --color-muted: #050c14;
  --color-deep: #01050cf7;
  --color-overlay: #0e3c645c;
  --color-raised: #030b14de;
  --color-panel: #020812;
  --color-highlight: #1160a0a8;

  /* Accent */
  --color-accent-dim: #a8d4ff70;
  --color-accent: #72bdffdc;
  --color-accent-sharp: #1f9bff;

  /* Text */
  --text: #ffffff;
  --text-soft: #ffffffd5;
  --text-temp-hi: #fb9e52;
  --text-temp-lo: var(--color-accent);

  /* Shape */
  --radius: 14px;
  --outline-default: 4.8px solid #ffffff00;
  --blur-slide: blur(96px) saturate(185%);

  /* Borders */
  --border-subtle: 1px solid rgba(202, 232, 255, 0.22);
  --border-distinct: 1px solid var(--color-accent);

  /* Glass */
  --glass-surface: linear-gradient(145deg, rgba(4, 20, 38, 0.72), rgba(2, 8, 18, 0.64));
  --glass-surface-soft: linear-gradient(145deg, rgba(8, 32, 58, 0.5), rgba(2, 8, 18, 0.42));
  --glass-surface-strong: linear-gradient(145deg, rgba(3, 16, 31, 0.9), rgba(1, 5, 12, 0.86));
  --glass-tint: rgba(2, 8, 18, 0.56);
  --glass-border: 1px solid rgba(185, 224, 255, 0.18);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), var(--glass-highlight);

  /* Type scale */
  --text-2xs: 18pt;
  --text-xs: 22pt;
  --text-vs: 24pt;
  --text-sm: 26pt;
  --text-notthatsmall: 27pt;
  --text-md: 28pt;
  --text-lg: 32pt;
  --text-xl: 46pt;
  --text-2xl: 48pt;
  --text-3xl: 72pt;
  --sidebar-rail-width: max(576px, 2vw);
  /* Layout. Heights are shares of the 1440px view; the content area takes whatever is left. */
  --ldl-base-height: 26.087%; /* the LDL itself */
  --cityticker-height: 46px; /* the ticker strip sits on top of the LDL's main column, on top of the base height */
  --ldl-height: calc(var(--ldl-base-height) + var(--cityticker-height));
  --topbar-height: 128px; /* bar reaches the top edge; its content sits at the bottom, inside the safe area */
  /* Main presentation side spacing: gutter outside .slides-block, padding inside it. The top bar's content
     uses the sum so it lines up with the slides. */
  --presentation-gutter: 2%;
  --presentation-pad: 4%;

  /* Gradients */
  --gradient-base: linear-gradient(180deg, var(--color-bg), var(--color-surface));
  --gradient-overlay: linear-gradient(180deg, var(--color-overlay), var(--color-deep));
  --gradient-raised: linear-gradient(180deg, var(--color-raised), var(--color-panel));
  --gradient-highlight: linear-gradient(var(--color-highlight), var(--color-highlight));
  --gradient-slide: var(--glass-surface);
}


* {
  box-sizing: border-box;
}

/* One digit of a ticking time (steady-digits.js). As wide as Poppins' widest digit, so times keep one width. */
.digit {
  display: inline-block;
  width: 0.64em;
  text-align: center;
}

.main-slide,
.bumper-slide,
.ldl-presentation-slide,
.wallpaper,
.ldl-weather,
.main-radar,
#ldl-location-progressbar {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.view {
  contain: layout style paint;
  isolation: isolate;
}

.main-slides,
.bumper-slides {
  contain: layout style;
}

body {
  margin: 0 0;
  background-color: #000000;
  font-size: var(--text-md);
  overflow: hidden;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
}

.small-degrees {
  font-size: var(--text-2xs);
  vertical-align: top;
  letter-spacing: 0;
  font-weight: 500;
}

body.performance-static-glass {
  --blur-slide: none;
}

.fade-out {
  animation: fadeModule 0.15s ease-out forwards;
}

.fade-in {
  animation: fadeInTypeBeat 0.15s ease-out forwards;
}

.view {
  display: flex;
  flex-direction: column;
  height: 1440px;
  position: relative;
}

.content-area {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  width: 100%;
}

.slides-block {
  display: flex;
  flex-direction: column;
  width: calc(100% - 2 * var(--presentation-gutter));
  flex: 1 1 0;
  min-height: 0;
	box-sizing: border-box;
  margin: 1% auto;
  padding-right: var(--presentation-pad);
}

/* Sidebar off (html.sidebar-off, set by layout.js): taller LDL, and the main presentation centred
   with 2% more room on each side (gutter 2% -> 4%, padding on both sides). */
:root.sidebar-off {
  --ldl-base-height: calc(26.087% + 2%);
  --presentation-gutter: 4%;
}

:root.sidebar-off .slides-block {
  padding-left: var(--presentation-pad);
}

.main-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  margin-top: 0.8%;
}

.wallpaper {
  position: absolute;
  z-index: -487845784;
  width: 100%;
  height: 100%;
  right: 0;
  background-size: cover;
  background-position: center;
  filter: none;
}

.wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.2);
}

hr {
  margin-bottom: -20px;
  margin-top: 0%;
  border-top: 2px solid var(--text);
}

/* An SVG in an <img> letterboxes itself inside any box, but the AVIF icons are plain bitmaps and would
   stretch to fill it. Keep their proportions wherever they are used. */
img[src*="/graphics/avif/"] {
  object-fit: contain;
}

/* Performance-first DOM renderer.
   Live backdrop blur over large 1440p panels is the biggest old-GPU paint cost. */
body.performance-static-glass .sidebar,
body.performance-static-glass .slide-info-group,
body.performance-static-glass .current-location-group,
body.performance-static-glass .upnext-location-entry,
body.performance-static-glass .main-upnext-carousel-entry,
body.performance-static-glass .main-slide-panel,
body.performance-static-glass .main-slide-panel::before,
body.performance-static-glass #main-current-icon,
body.performance-static-glass .main-current-condtions-box,
body.performance-static-glass .main-intraday-period-title,
body.performance-static-glass .intradayicon,
body.performance-static-glass .main-intraday-temp-slider-container,
body.performance-static-glass .main-intraday-temp-slider,
body.performance-static-glass .forecast-shortterm-icon,
body.performance-static-glass .main-forecast-title,
body.performance-static-glass .main-forecast-icon,
body.performance-static-glass .main-forecast-wind,
body.performance-static-glass .bumper-background-metadata,
body.performance-static-glass .bumper-background-canvas,
body.performance-static-glass .ldl-weather,
body.performance-static-glass .topbar,
body.performance-static-glass .ldl-carousel-current,
body.performance-static-glass .ldl-date-time-container,
body.performance-static-glass .cityticker,
body.performance-static-glass .provider-logo-container,
body.performance-static-glass .ldl-bulletin-crawl,
body.performance-static-glass .ldl-carousel-container,
body.performance-static-glass .left-container-radar,
body.performance-static-glass .right-container-locations,
body.performance-static-glass .national-current-labels {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.performance-static-glass .main-slide-panel::before,
body.performance-static-glass .slide-info-group,
body.performance-static-glass .current-location-group,
body.performance-static-glass .upnext-location-entry,
body.performance-static-glass .main-upnext-carousel-entry,
body.performance-static-glass .main-current-condtions-box,
body.performance-static-glass .left-container-radar,
body.performance-static-glass .right-container-locations {
  background-image: var(--glass-surface-soft);
}

body.performance-static-glass .bumper-background-canvas::before {
  display: none;
}

body.performance-static-glass .bumper-channel-logo,
body.performance-static-glass .bumper-background-metadata,
body.performance-static-glass .bumper-bg-title,
body.performance-static-glass .bumper-bg-subtitle,
body.performance-static-glass .bumper-bg-author,
body.performance-static-glass .bumper-text,
body.performance-static-glass .upnext-reg,
body.performance-static-glass .upnext-reg-loc-header,
body.performance-static-glass .national-region-card,
body.performance-static-glass .ldl-provider-logo,
body.performance-static-glass .ldl-current-wind-arrow {
  filter: none !important;
}

body.performance-static-glass .bumper-bg-title,
body.performance-static-glass .bumper-bg-subtitle,
body.performance-static-glass .bumper-bg-author,
body.performance-static-glass .bumper-text,
body.performance-static-glass .upnext-reg,
body.performance-static-glass .upnext-reg-loc-header {
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.86);
}

body.performance-cached-glass .sidebar,
body.performance-cached-glass .slide-info-group,
body.performance-cached-glass .current-location-group,
body.performance-cached-glass .upnext-location-entry,
body.performance-cached-glass .main-upnext-carousel-entry,
body.performance-cached-glass .main-slide-panel,
body.performance-cached-glass .main-current-condtions-box,
body.performance-cached-glass .ldl-weather,
body.performance-cached-glass .topbar,
body.performance-cached-glass .cityticker,
body.performance-cached-glass .ldl-bulletin-crawl,
body.performance-cached-glass .ldl-carousel-container,
body.performance-cached-glass .ldl-carousel-current,
body.performance-cached-glass .ldl-carousel-location-entry,
body.performance-cached-glass .left-container-radar,
body.performance-cached-glass .right-container-locations,
body.performance-cached-glass .national-current-labels {
  background-image: var(--glass-surface-soft), var(--cached-glass-bg) !important;
  background-position: center, var(--glass-bg-x, 0) var(--glass-bg-y, 0) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: auto, var(--glass-bg-w, 100%) var(--glass-bg-h, 100%) !important;
}

body.performance-cached-glass .ldl-weather,
body.performance-cached-glass .topbar,
body.performance-cached-glass .sidebar {
  background-image: linear-gradient(180deg, rgba(2, 8, 18, 0.72), rgba(2, 8, 18, 0.58)), var(--cached-glass-bg) !important;
}

body.performance-cached-glass .forecast-shortterm-summary {
  background-image:
    linear-gradient(180deg, rgba(2, 8, 18, 0.62), rgba(2, 8, 18, 0.82)),
    var(--forecast-weather-bg, none),
    var(--glass-surface-strong) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* Presentation control (presentation.js). Paused freezes every CSS animation inside; exiting fades the
   presentation out before it stops; stopped hides it without changing the layout around it. */
.presentation-paused,
.presentation-paused * {
  animation-play-state: paused !important;
}

.presentation-exiting {
  animation: presentationExit 500ms ease-in forwards !important;
}

@keyframes presentationExit {
  to { opacity: 0; }
}

.presentation-stopped,
.presentation-stopped * {
  visibility: hidden !important;
}

/* hideBackground (main.js): the wallpaper fades out until a background is set again. */
.wallpaper.wallpaper-hidden {
  opacity: 0 !important;
  transition: opacity 1s ease;
}

/* Video takeovers (video-takeover.js). fullscreen covers the whole view; squeezeBack sits over the main
   slides' area while they shrink away, its box sized to the video's shape. Both fade and grow in over
   600ms when the video starts playing (.is-on), and back out when it ends. */
.video-takeover {
  position: absolute;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.video-takeover-fullscreen {
  inset: 0;
  z-index: 2147483000; /* above the LDL's 487845785 */
  background: #000;
}

.video-takeover.is-on {
  opacity: 1;
}

.video-takeover-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-takeover-squeezeBack {
  z-index: 5;
}

.video-takeover-squeezeBack .video-takeover-box {
  border-radius: var(--radius);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: #000;
  transform: scale(0.9);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-takeover-squeezeBack.is-on .video-takeover-box {
  transform: scale(1);
}

/* video.js wraps the <video> in a div it sizes to the video's own pixels with an injected style. */
.video-takeover-box > *,
.video-takeover video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  background: #000;
}

.slides-block {
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 600ms ease;
}

.slides-block.video-squeezed {
  transform: scale(0.85);
  opacity: 0;
}
