.weather-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.weather-icon i {
  font-size: 4.5rem;
}

#tenDayForecast .weather-icon i {
  font-size: 2rem;
}

.source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
}

.source-icon i {
  font-size: 1.35rem;
}

#weatherViewer {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

#weatherViewer.show {
  display: block;
  opacity: 1;
  padding-top: var(--dashboard-block-gap);
}

:root {
  --font-heading: "Ancizar Serif", serif;
  --font-body: "Lexend", sans-serif;
  --font-heading-tracking: -0.01em;
  --font-body-weight: 400;
  --font-body-tracking: -0.5px;
}

body {
  background: transparent;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: var(--font-body-weight);
  letter-spacing: var(--font-body-tracking);
  transition: color 0.8s ease;
}

/* Lexend — one weight, one tracking everywhere it appears */
:where(
  .pwa-notify-label,
  .pwa-notify-status,
  .pwa-install-hint-lead,
  .pwa-install-hint-steps,
  .detail-sub,
  .stat-pill .stat-label,
  .forecast-card .forecast-temp-sep,
  .forecast-card .condition,
  .hero-current-temp .condition,
  .hero-current-range,
  .hero-current-meta,
  .hero-sun-label,
  .hero-sun-relative,
  .advanced-stat-sub,
  .advanced-source-card .source-detail,
  .confidence-tip-line,
  .hero-outdoor-condition,
  .hero-outdoor-timing,
  .outdoor-activity-fact,
  .outdoor-activity-note,
  .outdoor-basis-chip,
  .tooltip.confidence-tip .tooltip-inner,
  .gw-chart-tooltip,
  .gw-chart-tooltip-row,
  .advanced-summary-meta,
  .chart-wrap canvas
) {
  font-weight: var(--font-body-weight);
  letter-spacing: var(--font-body-tracking);
}

/* Emphasis uses the heading face only — never bold Lexend */
strong, b,
.fw-bold, .fw-semibold, .fw-medium {
  font-family: var(--font-heading);
  letter-spacing: var(--font-heading-tracking);
}

h1, h2, h3, h4, h5, h6,
.section-title,
.advanced-block-title,
.app-brand-name,
.hero-current-location,
.advanced-source-card .source-name,
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: var(--font-heading-tracking);
}

.btn {
  font-weight: var(--bs-btn-font-weight, 400);
}

/* Ancizar Serif — one tracking everywhere it appears */
:where(
  .pwa-notify-popover-title,
  .pwa-install-title,
  .search-suggestion--geolocate .search-suggestion-label,
  .detail-label,
  .detail-value,
  .stat-pill .stat-value,
  .forecast-card .date,
  .forecast-card .high,
  .forecast-card .low,
  .hero-current-temp .temp,
  .hero-sun-time,
  .advanced-stat-label,
  .advanced-stat-value,
  .confidence-bar-pct,
  .confidence-tip-title,
  .hero-outdoor-score-value,
  .outdoor-time-badge,
  .hero-outdoor-headline,
  .outdoor-activity-name,
  .outdoor-verdict,
  .gw-chart-tooltip-title,
  .advanced-summary-main,
  .advanced-source-temp
) {
  letter-spacing: var(--font-heading-tracking);
}

.landing-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0.28;
  transform: translateY(0);
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.45s ease;
  will-change: transform;
  overflow: visible;
}

.landing-footer--down,
.landing-footer--hidden {
  transform: translateY(110%);
}

.landing-footer--hidden {
  transition: none;
}

.landing-weathervane-stage {
  --weathervane-size: min(38rem, 94vw);
  width: var(--weathervane-size);
  height: var(--weathervane-size);
  line-height: 0;
  overflow: visible;
}

.landing-weathervane-frame {
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--weathervane-size) * 0.14))
    scaleX(var(--weathervane-mirror, 1));
  will-change: transform;
}

.landing-weathervane-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.landing-footer--spinning .landing-weathervane-canvas {
  filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(2476%)
    hue-rotate(210deg) brightness(102%) contrast(101%);
}

.landing-footer--spinning {
  opacity: 1;
  z-index: 4;
}

@media (prefers-reduced-motion: reduce) {
  .landing-footer {
    transition: opacity 0.45s ease;
  }

  .landing-footer--down,
  .landing-footer--hidden {
    transform: none;
    opacity: 0;
  }

  .landing-footer--hidden {
    transition: none;
  }
}

/* ---------- Header & search ---------- */
.app-header {
  position: relative;
  z-index: 2;
  transition: padding 0.45s ease;
}

.app-header--landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 640px);
  padding: 2rem 1rem 1.5rem;
}

.app-header--compact {
  padding: 0.65rem 1rem;
}

.app-header--compact .app-header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
}

.app-header--compact .app-brand {
  margin-bottom: 0;
  flex-shrink: 0;
  min-width: 0;
}

.app-header--compact .app-brand-copy {
  min-width: 0;
}

.app-header--compact .app-brand-tagline {
  display: none;
}

.app-header--compact .search-panel {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  align-self: center;
}

.app-header--compact .search-panel form {
  margin: 0;
}

.app-header--compact .search-input-wrap {
  align-items: center;
  padding: 0.25rem;
  border-radius: 0.85rem;
}

.app-header--compact .search-input {
  padding: 0.55rem 0.5rem;
  font-size: 0.92rem;
}

.app-header--compact .search-submit {
  padding: 0.5rem 0.85rem;
}

.app-header--compact .search-input-icon {
  display: none;
}

.app-header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  margin: 0;
  transform: translateY(-110%);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(21, 101, 192, 0.1);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
}

.app-header--sticky.app-header--revealed {
  transform: translateY(0);
}

body.app-nav-active {
  padding-top: var(--app-nav-height, 3.75rem);
}

body.app-nav-active #weatherViewer.show {
  padding-top: 0.75rem;
}

.app-header-inner {
  width: min(100%, 640px);
  margin: 0 auto;
}

.app-header--compact .app-header-inner {
  width: min(100%, 960px);
}

.app-header--landing .app-header-inner {
  text-align: center;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  color: inherit;
  text-decoration: none;
}

.app-brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, #42a5f5 0%, #1565c0 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(21, 101, 192, 0.28);
  flex-shrink: 0;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.app-brand-lottie {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
}

.app-header--compact .app-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
}

.app-header--compact .app-brand-lottie {
  width: 1.92rem;
  height: 1.92rem;
}

.app-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.app-header--landing .app-brand-copy {
  align-items: center;
  text-align: center;
}

.app-header--landing .app-brand-mark {
  display: none;
}

.app-brand-name {
  font-size: clamp(2rem, 4.6vw, 2.65rem);
  font-weight: 800;
  line-height: 1.1;
}

.app-header--compact .app-brand-name {
  font-size: 1.35rem;
}

@media (max-width: 575.98px) {
  .app-header--compact .app-brand-name {
    display: none;
  }

  .app-header--compact .app-brand-mark {
    width: 1.85rem;
    height: 1.85rem;
  }

  .app-header--compact .app-brand-lottie {
    width: 1.78rem;
    height: 1.78rem;
  }

  .app-header--compact .app-header-inner {
    gap: 0.6rem;
  }
}

.app-brand-tagline {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: var(--bs-secondary-color);
}

.search-panel {
  width: 100%;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 101, 192, 0.12);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.search-input-wrap--prompt {
  border-color: rgba(21, 101, 192, 0.35);
  box-shadow:
    0 0 0 3px rgba(21, 101, 192, 0.14),
    0 10px 32px rgba(21, 101, 192, 0.12);
  animation: search-prompt-pulse 2.4s ease-in-out infinite;
}

.search-input-wrap:focus-within {
  border-color: rgba(21, 101, 192, 0.45);
  box-shadow:
    0 0 0 4px rgba(21, 101, 192, 0.16),
    0 12px 34px rgba(21, 101, 192, 0.14);
}

.search-input-wrap.is-invalid {
  border-color: rgba(220, 53, 69, 0.55);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.14);
}

@keyframes search-prompt-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12), 0 10px 32px rgba(21, 101, 192, 0.1); }
  50% { box-shadow: 0 0 0 5px rgba(21, 101, 192, 0.2), 0 12px 36px rgba(21, 101, 192, 0.16); }
}

.search-input-icon {
  display: none;
  align-self: center;
  margin-left: 0.65rem;
  color: #1565c0;
  opacity: 0.7;
}

.app-header--landing .search-input-icon {
  display: block;
}

.search-field {
  flex: 1 1 auto;
  min-width: 0;
}

.search-input {
  width: 100%;
  flex: none;
  min-width: 0;
  border: none;
  background: transparent;
  box-shadow: none !important;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
}

.search-input:focus {
  border: none;
  background: transparent;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0.75rem !important;
  padding: 0.65rem 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
}

.search-hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--bs-secondary-color);
}

.pwa-notify-anchor {
  display: none;
  position: relative;
  flex-shrink: 0;
  align-self: center;
}

body.app-nav-active .pwa-notify-anchor:not([hidden]) {
  display: block;
}

body.pwa-browser #pwaNotifyPopover {
  display: none !important;
}

body.pwa-standalone #pwaInstallHintPopover {
  display: none !important;
}

body.pwa-browser .pwa-notify-trigger {
  opacity: 0.58;
}

.pwa-notify-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--bs-secondary-color);
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.app-header--compact .pwa-notify-trigger {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
}

.pwa-notify-trigger:hover,
.pwa-notify-trigger:focus-visible,
.pwa-notify-trigger[aria-expanded="true"] {
  opacity: 1;
  color: var(--bs-body-color);
  background: rgba(21, 101, 192, 0.1);
}

.pwa-notify-trigger--on {
  opacity: 1;
  color: var(--bs-primary);
}

.pwa-notify-trigger i {
  font-size: 0.88rem;
}

.pwa-notify-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 1080;
  width: min(16.5rem, calc(100vw - 2rem));
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(21, 101, 192, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pwa-notify-popover[hidden] {
  display: none !important;
}

[data-bs-theme="dark"] .pwa-notify-popover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(var(--bs-body-bg-rgb, 33, 37, 41), 0.96);
}

.pwa-notify-popover-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--bs-body-color);
}

.pwa-panel {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(21, 101, 192, 0.12);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}

.pwa-panel[hidden] {
  display: none !important;
}

[data-bs-theme="dark"] .pwa-panel {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(var(--bs-body-bg-rgb, 33, 37, 41), 0.72);
}

.pwa-install-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.pwa-install-banner[hidden] {
  display: none !important;
}

.pwa-install-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: min(100%, 16rem);
}

.pwa-install-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.pwa-install-sub {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--bs-secondary-color);
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.pwa-install-dismiss {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.pwa-notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pwa-notify-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--bs-body-color);
}

.pwa-notify-switch .form-check-input {
  width: 2.15rem;
  height: 1.1rem;
  cursor: pointer;
}

.pwa-notify-status {
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--bs-secondary-color);
}

.pwa-install-hint-lead {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--bs-secondary-color);
}

.pwa-install-hint-steps {
  margin: 0;
  padding-left: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--bs-body-color);
}

.pwa-install-hint-steps li + li {
  margin-top: 0.35rem;
}

.app-header--compact .pwa-panel {
  display: none !important;
}

@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 1080;
  max-height: min(18rem, 42vh);
  overflow: auto;
  margin: 0;
  padding: 0.35rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(21, 101, 192, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-suggestions:not([hidden]) {
  display: block;
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: none;
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  background: transparent;
  color: inherit;
}

.search-suggestion:hover,
.search-suggestion:focus-visible,
.search-suggestion.is-active {
  background: rgba(21, 101, 192, 0.08);
}

.search-suggestion-icon {
  flex-shrink: 0;
  width: 1rem;
  color: #1565c0;
  opacity: 0.75;
}

.search-suggestion-icon--geolocate {
  opacity: 1;
}

.search-suggestion--geolocate .search-suggestion-label {
  font-family: var(--font-heading);
  font-weight: 600;
}

.search-suggestion-copy {
  min-width: 0;
}

.search-suggestion-label {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
}

.search-suggestion-sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
}

.search-suggestions-status {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .search-suggestions {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(var(--bs-body-bg-rgb, 33, 37, 41), 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .search-suggestion:hover,
[data-bs-theme="dark"] .search-suggestion:focus-visible,
[data-bs-theme="dark"] .search-suggestion.is-active {
  background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .search-suggestion-icon {
  color: #90caf9;
}

.app-header--compact .search-hint {
  display: none;
}

@media (max-width: 575.98px) {
  .search-submit-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .search-submit {
    padding: 0.65rem 0.85rem;
  }
}

.tooltip.tooltip-search-error .tooltip-inner {
  max-width: 260px;
  text-align: left;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
}

.tooltip.tooltip-search-warning .tooltip-inner {
  background: #f9a825;
  color: #212529;
}

.tooltip.tooltip-search-warning.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #f9a825;
}

/* ---------- Bootstrap dark mode (minimal — prefer BS CSS variables in base rules) ---------- */
[data-bs-theme="dark"] .app-header--sticky {
  background: color-mix(in srgb, var(--bs-body-bg) 52%, transparent);
  border-bottom-color: var(--bs-border-color);
  box-shadow: none;
}

[data-bs-theme="dark"] .search-input-wrap {
  background: color-mix(in srgb, var(--bs-body-bg) 72%, transparent);
  border-color: var(--bs-border-color);
  box-shadow: none;
}

[data-bs-theme="dark"] .search-input-wrap--prompt {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.16);
}

[data-bs-theme="dark"] .search-input-wrap:focus-within {
  border-color: rgba(var(--bs-primary-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.18);
}

[data-bs-theme="dark"] .search-input-icon {
  color: var(--bs-primary);
}

[data-bs-theme="dark"] .chart-icon-badge {
  background: var(--bs-body-bg);
  border-color: var(--bs-border-color);
}

body[data-weather-scene="defaultDark"] .app-brand-tagline,
body[data-weather-scene="night"] .app-brand-tagline,
body[data-weather-scene="partly-night"] .app-brand-tagline,
body[data-weather-scene="thunder"] .app-brand-tagline,
body[data-weather-scene="rain"] .app-brand-tagline,
body[data-weather-scene="sunrise"] .app-brand-tagline,
body[data-weather-scene="sunset"] .app-brand-tagline,
body[data-weather-scene="defaultDark"] .search-hint,
body[data-weather-scene="night"] .search-hint,
body[data-weather-scene="partly-night"] .search-hint,
body[data-weather-scene="sunrise"] .search-hint,
body[data-weather-scene="sunset"] .search-hint {
  color: rgba(255, 255, 255, 0.72);
}

body[data-weather-scene="defaultDark"] .app-brand-name,
body[data-weather-scene="night"] .app-brand-name,
body[data-weather-scene="partly-night"] .app-brand-name,
body[data-weather-scene="thunder"] .app-brand-name,
body[data-weather-scene="rain"] .app-brand-name,
body[data-weather-scene="sunrise"] .app-brand-name,
body[data-weather-scene="sunset"] .app-brand-name {
  color: rgba(255, 255, 255, 0.95);
}

body[data-weather-scene="default"] .search-input-wrap,
body[data-weather-scene="clear"] .search-input-wrap,
body[data-weather-scene="partly"] .search-input-wrap,
body[data-weather-scene="cloudy"] .search-input-wrap,
body[data-weather-scene="fog"] .search-input-wrap,
body[data-weather-scene="drizzle"] .search-input-wrap,
body[data-weather-scene="snow"] .search-input-wrap {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

body[data-weather-scene="defaultDark"] .search-input-wrap,
body[data-weather-scene="night"] .search-input-wrap,
body[data-weather-scene="partly-night"] .search-input-wrap,
body[data-weather-scene="thunder"] .search-input-wrap,
body[data-weather-scene="rain"] .search-input-wrap {
  background: color-mix(in srgb, var(--bs-body-bg) 70%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-color: var(--bs-border-color);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

body[data-weather-scene="sunrise"] .search-input-wrap {
  background: rgba(88, 62, 142, 0.4);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: rgba(255, 220, 180, 0.22);
  box-shadow: 0 4px 24px rgba(60, 30, 80, 0.12);
}

body[data-weather-scene="sunset"] .search-input-wrap {
  background: color-mix(in srgb, var(--bs-body-bg) 68%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--bs-border-color);
  box-shadow: 0 4px 24px rgba(24, 12, 32, 0.16);
}

body[data-weather-scene="defaultDark"] .search-input,
body[data-weather-scene="night"] .search-input,
body[data-weather-scene="partly-night"] .search-input,
body[data-weather-scene="thunder"] .search-input,
body[data-weather-scene="rain"] .search-input,
body[data-weather-scene="sunrise"] .search-input,
body[data-weather-scene="sunset"] .search-input {
  color: rgba(255, 255, 255, 0.95);
}

body[data-weather-scene="defaultDark"] .search-input::placeholder,
body[data-weather-scene="night"] .search-input::placeholder,
body[data-weather-scene="partly-night"] .search-input::placeholder,
body[data-weather-scene="thunder"] .search-input::placeholder,
body[data-weather-scene="rain"] .search-input::placeholder,
body[data-weather-scene="sunrise"] .search-input::placeholder,
body[data-weather-scene="sunset"] .search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

body[data-weather-scene="defaultDark"] .search-input-icon,
body[data-weather-scene="night"] .search-input-icon,
body[data-weather-scene="partly-night"] .search-input-icon,
body[data-weather-scene="thunder"] .search-input-icon,
body[data-weather-scene="rain"] .search-input-icon,
body[data-weather-scene="sunrise"] .search-input-icon,
body[data-weather-scene="sunset"] .search-input-icon {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

/* Sticky navbar — scene-tinted glass */
body[data-weather-scene] .app-header--sticky {
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: none;
}

body[data-weather-scene="default"] .app-header--sticky,
body[data-weather-scene="clear"] .app-header--sticky,
body[data-weather-scene="partly"] .app-header--sticky,
body[data-weather-scene="cloudy"] .app-header--sticky,
body[data-weather-scene="fog"] .app-header--sticky,
body[data-weather-scene="drizzle"] .app-header--sticky,
body[data-weather-scene="snow"] .app-header--sticky {
  background: rgba(255, 255, 255, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

body[data-weather-scene="defaultDark"] .app-header--sticky,
body[data-weather-scene="night"] .app-header--sticky,
body[data-weather-scene="partly-night"] .app-header--sticky,
body[data-weather-scene="rain"] .app-header--sticky,
body[data-weather-scene="thunder"] .app-header--sticky {
  background: color-mix(in srgb, var(--bs-body-bg) 48%, transparent);
  border-bottom-color: var(--bs-border-color);
}

body[data-weather-scene="sunrise"] .app-header--sticky {
  background: rgba(88, 62, 142, 0.28);
  border-bottom-color: rgba(255, 220, 180, 0.18);
}

body[data-weather-scene="sunset"] .app-header--sticky {
  background: color-mix(in srgb, var(--bs-body-bg) 50%, transparent);
  border-bottom-color: var(--bs-border-color);
}

body[data-weather-scene] .app-header--landing {
  background: transparent;
}

/* Fetch pending — idle placeholder navbar (overrides weather-scene tints) */
body.is-fetch-pending .app-header--sticky {
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  box-shadow: none;
}

html[data-bs-theme="light"] body.is-fetch-pending .app-header--sticky {
  background: rgba(232, 238, 245, 0.55);
  border-bottom-color: rgba(210, 220, 232, 0.65);
}

html[data-bs-theme="dark"] body.is-fetch-pending .app-header--sticky {
  background: color-mix(in srgb, var(--bs-body-bg) 52%, transparent);
  border-bottom-color: var(--bs-border-color);
}

html[data-bs-theme="light"] body.is-fetch-pending .search-input-wrap {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-color: rgba(210, 220, 232, 0.9);
  box-shadow: none;
}

html[data-bs-theme="dark"] body.is-fetch-pending .search-input-wrap {
  background: color-mix(in srgb, var(--bs-body-bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-color: var(--bs-border-color);
  box-shadow: none;
}

html[data-bs-theme="light"] body.is-fetch-pending .app-brand-name,
html[data-bs-theme="light"] body.is-fetch-pending .search-input {
  color: rgba(33, 37, 41, 0.92);
}

html[data-bs-theme="light"] body.is-fetch-pending .search-input::placeholder {
  color: rgba(33, 37, 41, 0.45);
}

html[data-bs-theme="dark"] body.is-fetch-pending .app-brand-name,
html[data-bs-theme="dark"] body.is-fetch-pending .search-input {
  color: rgba(255, 255, 255, 0.95);
}

html[data-bs-theme="dark"] body.is-fetch-pending .search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

@keyframes app-brand-mark-glow {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(66, 165, 245, 0.2),
      0 8px 22px rgba(21, 101, 192, 0.24);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(66, 165, 245, 0.42),
      0 0 20px rgba(66, 165, 245, 0.55),
      0 8px 24px rgba(21, 101, 192, 0.34);
  }
}

@keyframes app-brand-mark-glow-dark {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(144, 202, 249, 0.16),
      0 8px 22px rgba(13, 71, 161, 0.38);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(144, 202, 249, 0.34),
      0 0 22px rgba(100, 181, 246, 0.48),
      0 8px 24px rgba(13, 71, 161, 0.46);
  }
}

body.is-fetch-pending .app-brand-mark {
  animation: app-brand-mark-glow 1.35s ease-in-out infinite;
}

html[data-bs-theme="dark"] body.is-fetch-pending .app-brand-mark {
  animation-name: app-brand-mark-glow-dark;
}

.weather-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #e8eef5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color 1.1s ease, background-image 1.1s ease;
}

[data-bs-theme="dark"] .weather-backdrop {
  background-color: var(--bs-body-bg);
}

body[data-weather-scene="night"] .text-muted,
body[data-weather-scene="partly-night"] .text-muted,
body[data-weather-scene="thunder"] .text-muted,
body[data-weather-scene="sunrise"] .text-muted,
body[data-weather-scene="sunset"] .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

body[data-weather-scene="night"] .section-title,
body[data-weather-scene="partly-night"] .section-title,
body[data-weather-scene="thunder"] .section-title,
body[data-weather-scene="sunrise"] .section-title,
body[data-weather-scene="sunset"] .section-title {
  color: rgba(255, 255, 255, 0.92);
}

small {
  font-weight: inherit;
  letter-spacing: inherit;
}

/* ---------- Glass cards (center-weighted reveal) ---------- */
@property --glass-strength {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --glass-filter-strength {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

:root {
  --glass-fill: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.38);
  --glass-inset: rgba(255, 255, 255, 0.55);
  --glass-blur: 10px;
  --glass-blur-lite: 8px;
  --glass-filter: url("#glass-filter-light");
  --glass-saturate: 1.12;
}

[data-bs-theme="dark"] {
  --glass-fill: color-mix(in srgb, var(--bs-body-bg) 76%, transparent);
  --glass-border: color-mix(in srgb, var(--bs-border-color) 88%, transparent);
  --glass-inset: rgba(255, 255, 255, 0.07);
  --glass-blur: 12px;
  --glass-blur-lite: 9px;
  --glass-filter: url("#glass-filter-dark");
  --glass-saturate: 1.05;
}

.card {
  border: none;
  box-shadow: none;
  background: transparent;
}

.glass-panel {
  --glass-strength: 0;
  --glass-filter-strength: 0;
  --glass-blur-strength: 0;
  position: relative;
  --glass-saturate-active: calc(1 + (var(--glass-saturate) - 1) * var(--glass-strength));
  background: color-mix(in srgb, var(--glass-fill) calc(var(--glass-strength) * 100%), transparent);
  border: 1px solid color-mix(in srgb, var(--glass-border) calc(var(--glass-strength) * 100%), transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-inset) calc(var(--glass-strength) * 100%), transparent);
  transition:
    --glass-strength 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    --glass-blur-strength 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    --glass-filter-strength 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="dark"] .glass-panel {
  background: rgba(var(--bs-body-bg-rgb), calc(var(--glass-strength) * 0.78));
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: var(--glass-blur-strength);
  -webkit-backdrop-filter: blur(var(--glass-blur-lite)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-lite)) saturate(var(--glass-saturate));
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.glass-panel:not(.glass-blur-on)::before {
  display: none;
}

.glass-panel.glass-blur-on::before {
  opacity: var(--glass-blur-strength);
}

.glass-panel--filter::before {
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.glass-panel--filter.glass-filter-on {
  isolation: isolate;
  -webkit-backdrop-filter: blur(var(--glass-blur)) var(--glass-filter) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) var(--glass-filter) saturate(var(--glass-saturate));
}

.glass-panel--filter.glass-filter-on::before {
  display: none;
}

.glass-panel > * {
  position: relative;
  z-index: 1;
}

.section-card .card-body,
.hero-card .card-body,
.advanced-details .card-body {
  background: transparent;
}

.detail-item,
.forecast-card,
.stat-pill {
  border-radius: inherit;
}

.stat-pill {
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  text-align: center;
  height: 100%;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
}

.stat-pill--interactive {
  cursor: help;
}

.stat-pill--interactive:focus-visible {
  outline: 2px solid rgba(21, 101, 192, 0.45);
  outline-offset: 2px;
}

.glass-panel:hover {
  border-color: color-mix(in srgb, var(--glass-border) 85%, white);
}

[data-bs-theme="dark"] .glass-panel:hover {
  border-color: var(--bs-border-color);
}

:root {
  --dashboard-block-gap: 2rem;
  --section-title-gap: 0.75rem;
  --dashboard-row-gutter-y: var(--bs-gutter-y, 1.5rem);
}

.dashboard-section {
  margin-top: 0;
}

.dashboard-row {
  margin-top: 0;
}

#weatherViewer > .dashboard-section,
#weatherViewer > .dashboard-row {
  margin-top: var(--dashboard-block-gap);
}

#weatherViewer > :first-child {
  margin-top: 0;
}

[data-section-col] > .dashboard-section {
  margin-top: 0;
}

.dashboard-section-hidden {
  display: none !important;
}

.section-title {
  font-size: 1.35rem;
  margin: 0 0 var(--section-title-gap);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bs-body-color);
}

/* Full-width sections sit outside g-4 rows; match their title offset */
#weatherViewer > .dashboard-section:has(> .section-title) {
  padding-top: var(--dashboard-row-gutter-y);
}

.section-title i {
  font-size: 1.125rem;
  opacity: 0.85;
}

.detail-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  color: var(--bs-primary);
}

.detail-icon.fa-icon i {
  font-size: 1.25rem;
}

.detail-icon--dual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.detail-icon--dual .fa-sun {
  color: #e65100;
}

.detail-icon--dual .fa-moon {
  color: #5c6bc0;
}

.section-card > .card-body:has(.detail-grid) {
  padding: 0.85rem 0.85rem;
}

.detail-grid {
  --bs-gutter-x: 0.65rem;
  --bs-gutter-y: 0.65rem;
}

.detail-item {
  padding: 0.65rem 0.5rem;
}

.detail-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.12rem;
}

.detail-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.detail-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 0.15rem;
}

.stat-pill .stat-value {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  display: block;
}

.stat-pill .stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

.forecast-card .date {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.forecast-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.5rem;
}

.forecast-card .weather-icon {
  margin: 0.1rem 0 0.15rem;
}

.forecast-card .forecast-temps {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  line-height: 1.2;
}

.forecast-card .high,
.forecast-card .low {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
}

.forecast-card .high {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.forecast-card .forecast-temp-icon {
  font-size: 0.55em;
  line-height: 1;
  opacity: 0.85;
  transform: translateY(-0.05em);
}

.forecast-card .high .forecast-temp-icon {
  color: #c62828;
}

.forecast-card .low .forecast-temp-icon {
  color: #1565c0;
}

.forecast-card .forecast-temp-sep {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
}

.forecast-card .low {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--bs-secondary-color);
}

.forecast-card .condition {
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--bs-secondary-color);
}

.hero-current-temp .temp {
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero-current-temp .condition {
  font-family: var(--font-body);
  margin-top: 0.2rem;
}

.hero-current-range {
  font-family: var(--font-body);
}

.hero-sun-time {
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero-sun-label,
.hero-sun-relative,
.hero-current-meta {
  font-family: var(--font-body);
}

.advanced-stat-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
  line-height: 1.2;
}

.advanced-stat-value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.advanced-stat-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  line-height: 1.25;
  color: var(--bs-secondary-color);
}

.advanced-source-card .source-detail {
  font-family: var(--font-body);
}

@media (prefers-reduced-transparency: reduce) {
  .glass-panel,
  .glass-panel.glass-inview {
    --glass-strength: 1;
    --glass-blur-strength: 1;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.35);
  }

  .glass-panel::before {
    display: none;
  }

  .glass-panel--filter.glass-filter-on {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  [data-bs-theme="dark"] .glass-panel,
  [data-bs-theme="dark"] .glass-panel.glass-inview {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
  }
}

@supports not ((backdrop-filter: url("#glass-filter-light")) or (-webkit-backdrop-filter: url("#glass-filter-light"))) {
  .glass-panel--filter.glass-filter-on {
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  }

  .glass-panel--filter.glass-blur-on:not(.glass-filter-on)::before {
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-panel {
    transition: none;
  }
}

.stat-pill i {
  font-size: 1.25rem;
  color: var(--bs-primary);
  margin-bottom: 0.25rem;
}

.stat-pill--tone .stat-value,
.stat-pill--tone i {
  color: var(--stat-tone-color, #1565c0);
}

.stat-pill--tone .stat-label {
  color: var(--bs-secondary-color);
}

.stat-pill--tone.wind-calm { --stat-tone-color: #0288d1; --stat-tone-bg: rgba(129, 212, 250, 0.2); --stat-tone-border: rgba(129, 212, 250, 0.35); }
.stat-pill--tone.wind-moderate { --stat-tone-color: #039be5; --stat-tone-bg: rgba(3, 155, 229, 0.14); --stat-tone-border: rgba(3, 155, 229, 0.28); }
.stat-pill--tone.wind-breezy { --stat-tone-color: #0277bd; --stat-tone-bg: rgba(2, 136, 209, 0.14); --stat-tone-border: rgba(2, 136, 209, 0.3); }
.stat-pill--tone.wind-strong { --stat-tone-color: #01579b; --stat-tone-bg: rgba(1, 87, 155, 0.16); --stat-tone-border: rgba(1, 87, 155, 0.32); }

.stat-pill--tone.humidity-dry { --stat-tone-color: #ef6c00; --stat-tone-bg: rgba(255, 183, 77, 0.2); --stat-tone-border: rgba(255, 183, 77, 0.35); }
.stat-pill--tone.humidity-comfortable { --stat-tone-color: #00838f; --stat-tone-bg: rgba(0, 131, 143, 0.14); --stat-tone-border: rgba(0, 131, 143, 0.28); }
.stat-pill--tone.humidity-humid { --stat-tone-color: #006064; --stat-tone-bg: rgba(0, 96, 100, 0.16); --stat-tone-border: rgba(0, 96, 100, 0.3); }

.stat-pill--tone.uv-low { --stat-tone-color: #2e7d32; --stat-tone-bg: rgba(67, 160, 71, 0.14); --stat-tone-border: rgba(67, 160, 71, 0.28); }
.stat-pill--tone.uv-moderate { --stat-tone-color: #f9a825; --stat-tone-bg: rgba(249, 168, 37, 0.16); --stat-tone-border: rgba(249, 168, 37, 0.32); }
.stat-pill--tone.uv-high { --stat-tone-color: #ef6c00; --stat-tone-bg: rgba(239, 108, 0, 0.14); --stat-tone-border: rgba(239, 108, 0, 0.28); }
.stat-pill--tone.uv-very-high { --stat-tone-color: #c62828; --stat-tone-bg: rgba(198, 40, 40, 0.14); --stat-tone-border: rgba(198, 40, 40, 0.28); }
.stat-pill--tone.uv-extreme { --stat-tone-color: #6a1b9a; --stat-tone-bg: rgba(106, 27, 154, 0.14); --stat-tone-border: rgba(106, 27, 154, 0.28); }

.stat-pill--tone.aqi-good { --stat-tone-color: #43a047; --stat-tone-bg: rgba(67, 160, 71, 0.14); --stat-tone-border: rgba(67, 160, 71, 0.28); }
.stat-pill--tone.aqi-moderate { --stat-tone-color: #689f38; --stat-tone-bg: rgba(124, 179, 66, 0.14); --stat-tone-border: rgba(124, 179, 66, 0.28); }
.stat-pill--tone.aqi-sensitive { --stat-tone-color: #f9a825; --stat-tone-bg: rgba(253, 216, 53, 0.18); --stat-tone-border: rgba(253, 216, 53, 0.34); }
.stat-pill--tone.aqi-unhealthy { --stat-tone-color: #ef6c00; --stat-tone-bg: rgba(251, 140, 0, 0.14); --stat-tone-border: rgba(251, 140, 0, 0.28); }
.stat-pill--tone.aqi-very-unhealthy { --stat-tone-color: #e53935; --stat-tone-bg: rgba(229, 57, 53, 0.14); --stat-tone-border: rgba(229, 57, 53, 0.28); }
.stat-pill--tone.aqi-hazardous { --stat-tone-color: #8e24aa; --stat-tone-bg: rgba(142, 36, 170, 0.14); --stat-tone-border: rgba(142, 36, 170, 0.28); }

.stat-pill--tone {
  background: var(--bs-tertiary-bg);
  box-shadow: inset 0 0 0 1px var(--bs-border-color);
}

/* ---------- Hero split panels ---------- */
.hero-split {
  align-items: stretch;
}

.hero-split .dashboard-section {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-split .dashboard-section .hero-card {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.hero-card {
  display: flex;
  flex-direction: column;
}

.hero-card > .hero-panel-body {
  flex: 1 1 auto;
}

.hero-panel-body {
  height: 100%;
  min-height: 100%;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 1.1rem;
}

.hero-weather-panel .hero-panel-body,
.hero-rec-panel .hero-panel-body {
  min-height: 100%;
}

#currentWeather {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  padding: 0.35rem 0.35rem 0.15rem;
}

.hero-current-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 1.25rem;
  margin-bottom: 0;
}

.hero-current-location .hero-inline-icon {
  color: var(--bs-primary);
  opacity: 0.9;
  font-size: 0.9rem;
}

.hero-inline-icon {
  font-size: 0.82em;
  opacity: 0.72;
  vertical-align: -0.05em;
}

.hero-current-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 0.15rem 0;
}

.hero-current-temp {
  text-align: center;
  min-width: 0;
}

.hero-current-temp .condition {
  margin-top: 0.2rem;
}

.hero-current-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  font-size: 0.9rem;
  margin: 0;
}

.hero-current-range .hero-inline-icon {
  font-size: 0.68rem;
  opacity: 0.75;
}

.hero-current-range .fa-arrow-up {
  color: #c62828;
}

.hero-current-range .fa-arrow-down {
  color: #1565c0;
}

.hero-sun-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  margin: 0;
  max-width: 100%;
}

.hero-sun-icon {
  color: #e65100;
  font-size: 0.82rem;
}

.hero-sun-icon.hero-sun-icon--set {
  color: #5c6bc0;
}

.hero-sun-label {
  color: var(--bs-secondary-color);
}

.hero-sun-relative {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
}

.hero-sun-relative i {
  font-size: 0.68rem;
  opacity: 0.8;
}

.hero-current-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--bs-secondary-color);
  max-width: 28rem;
  margin-top: 0.1rem;
}

.hero-current-meta .hero-inline-icon {
  opacity: 0.75;
  font-size: 0.72rem;
}

.hero-weather-panel .stat-pill {
  padding: 0.65rem 0.7rem;
}

.hero-weather-panel .confidence-bar {
  margin-bottom: 0;
  width: 100%;
}

.confidence-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.confidence-bar-pct {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
}

.confidence-bar-track {
  height: 8px;
}

.confidence-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.confidence-badge {
  cursor: help;
}

.confidence-tip-title {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.confidence-tip-line {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.35;
}

.confidence-tip-line .tip-line-icon {
  flex-shrink: 0;
  width: 0.85rem;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  opacity: 0.75;
  color: var(--bs-primary);
  text-align: center;
}

.confidence-tip-line + .confidence-tip-line {
  margin-top: 0.25rem;
}

.hero-rec-panel .hero-outdoor-recs {
  width: 100%;
}

/* ---------- Hero outdoor recommendations ---------- */
.hero-outdoor-recs {
  text-align: left;
}

.hero-outdoor-recs--compact .hero-outdoor-header {
  gap: 0.55rem;
}

.hero-outdoor-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.hero-outdoor-score-ring {
  --outdoor-score: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, var(--bs-body-bg) 78%, transparent 80%),
    conic-gradient(var(--bs-primary) calc(var(--outdoor-score) * 1%), rgba(var(--bs-primary-rgb), 0.18) 0);
}

.hero-outdoor-score-value {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-outdoor-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.2rem;
}

.outdoor-time-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary);
}

.hero-outdoor-headline {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bs-body-color);
}

.hero-outdoor-condition {
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  line-height: 1.25;
}

.hero-outdoor-timing {
  font-family: var(--font-body);
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--bs-secondary-color);
}

.outdoor-activity-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.outdoor-activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.45rem;
  row-gap: 0.05rem;
  padding: 0.36rem 0.45rem;
  border-radius: 0.55rem;
  background: rgba(var(--bs-body-color-rgb, 33, 37, 41), 0.04);
  border: 1px solid transparent;
}

.outdoor-activity-item--go {
  border-color: rgba(var(--bs-success-rgb), 0.18);
  background: rgba(var(--bs-success-rgb), 0.07);
}

.outdoor-activity-item--caution {
  border-color: rgba(var(--bs-warning-rgb), 0.2);
  background: rgba(var(--bs-warning-rgb), 0.08);
}

.outdoor-activity-item--avoid {
  border-color: rgba(var(--bs-danger-rgb), 0.16);
  background: rgba(var(--bs-danger-rgb), 0.06);
}

.outdoor-activity-icon {
  width: 0.95rem;
  margin-top: 0.12rem;
  text-align: center;
  color: var(--bs-primary);
  font-size: 0.78rem;
}

.outdoor-activity-main {
  min-width: 0;
}

.outdoor-activity-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.outdoor-activity-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem 0.35rem;
  margin-top: 0.18rem;
}

.outdoor-activity-facts--caution .outdoor-activity-fact {
  color: var(--bs-warning-text-emphasis, #997404);
}

.outdoor-activity-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-family: var(--font-body);
  font-size: 0.64rem;
  line-height: 1.2;
  color: var(--bs-secondary-color);
}

.outdoor-activity-fact i {
  font-size: 0.58rem;
  opacity: 0.85;
}

.outdoor-activity-note {
  grid-area: note;
  font-family: var(--font-body);
  font-size: 0.66rem;
  line-height: 1.2;
  color: var(--bs-secondary-color);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outdoor-verdict {
  align-self: start;
  margin-top: 0.05rem;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  white-space: nowrap;
}

.outdoor-verdict--go {
  background: rgba(var(--bs-success-rgb), 0.16);
  color: var(--bs-success);
}

.outdoor-verdict--caution {
  background: rgba(var(--bs-warning-rgb), 0.18);
  color: var(--bs-warning-text-emphasis, #997404);
}

.outdoor-verdict--avoid {
  background: rgba(var(--bs-danger-rgb), 0.14);
  color: var(--bs-danger);
}

.outdoor-basis-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--bs-border-color);
}

.outdoor-basis-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.64rem;
  line-height: 1.2;
  color: var(--bs-secondary-color);
  background: rgba(var(--bs-body-color-rgb, 33, 37, 41), 0.05);
}

.outdoor-basis-chip i {
  font-size: 0.6rem;
  opacity: 0.85;
}

.outdoor-empty {
  margin-top: 0.45rem;
}

.outdoor-activity-groups {
  display: grid;
  gap: 0.55rem;
}

.outdoor-basis {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--bs-border-color);
}

.tooltip.confidence-tip .tooltip-inner {
  font-family: var(--font-body);
  max-width: 280px;
  text-align: left;
}

.chart-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.chart-icon-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.chart-icon-layer i {
  position: absolute;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.chart-icon-stack {
  transform: translate(-50%, -50%) scale(0.95);
}

.chart-icon-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid #ffffff;
  line-height: 1;
  padding: 0;
  z-index: 3;
}

.chart-icon-badge i {
  position: static;
  transform: none;
  filter: none;
  line-height: 1;
  display: block;
}

.chart-wrap canvas {
  font-family: var(--font-body);
}

.chart-wrap.is-loading canvas {
  visibility: hidden !important;
}

/* ---------- Skeleton placeholders (.ph) ---------- */
.ph {
  display: block;
  border-radius: 0.35rem;
}

#weatherViewer.is-loading .placeholder {
  color: var(--bs-body-color);
  opacity: 0.25;
}

@keyframes gw-placeholder-glow {
  0%, 100% {
    opacity: 0.08;
    filter: brightness(0.92);
  }
  50% {
    opacity: 0.25;
    filter: brightness(1.45);
  }
}

#weatherViewer.is-loading .placeholder-glow .placeholder {
  animation: gw-placeholder-glow 1.35s ease-in-out infinite;
}

#weatherViewer.is-loading .placeholder-glow .placeholder:nth-child(2n) {
  animation-delay: 0.18s;
}

#weatherViewer.is-loading .placeholder-glow .placeholder:nth-child(3n) {
  animation-delay: 0.32s;
}

.ph-detail-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}

.ph-detail-label {
  height: 0.6rem;
  width: 66%;
  margin: 0 auto 0.5rem;
}

.ph-detail-value {
  height: 0.85rem;
  width: 50%;
  margin: 0 auto 0.25rem;
}

.ph-detail-sub {
  height: 0.6rem;
  width: 83%;
  margin: 0 auto;
}

.hero-current-skeleton {
  text-align: center;
}

.ph-hero-location {
  height: 1.25rem;
  width: 50%;
  margin: 0 auto 0.5rem;
}

.ph-hero-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.ph-hero-temp-col {
  width: 8rem;
}

.ph-hero-temp {
  height: 3.25rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.ph-hero-condition {
  height: 1rem;
  width: 66%;
  margin: 0 auto;
}

.ph-hero-range {
  height: 0.875rem;
  width: 42%;
  margin: 0 auto 0.25rem;
}

.ph-hero-sun {
  height: 1.4rem;
  width: 33%;
  margin: 0 auto 0.25rem;
  border-radius: 999px;
}

.ph-hero-meta {
  height: 0.875rem;
  width: 58%;
  margin: 0 auto;
}

.ph-stat-label {
  height: 0.75rem;
  width: 42%;
  margin: 0 auto 0.5rem;
}

.ph-stat-value {
  height: 1rem;
  width: 58%;
  margin: 0 auto 0.25rem;
}

.ph-stat-caption {
  height: 0.75rem;
  width: 50%;
  margin: 0 auto;
}

.ph-confidence-pct {
  width: 2.5rem;
  height: 1rem;
  display: inline-block;
}

.ph-confidence-badge {
  width: 4.5rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-block;
}

.ph-confidence-badge--sm {
  width: 4rem;
}

.ph-confidence-badge--xs {
  width: 3.5rem;
}

.ph-forecast-date {
  height: 0.75rem;
  width: 58%;
  margin: 0 auto;
}

.ph-forecast-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  margin: 0 auto;
}

.ph-forecast-temps {
  height: 0.85rem;
  width: 52%;
  margin: 0 auto;
}

.ph-forecast-condition {
  height: 0.75rem;
  width: 75%;
  margin: 0 auto;
}

.ph-source-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.ph-source-name {
  height: 0.875rem;
  width: 5rem;
  flex-shrink: 0;
}

.ph-source-temp {
  height: 0.875rem;
  width: 3rem;
  flex-shrink: 0;
}

.ph-source-extra {
  height: 0.875rem;
  flex: 1;
  max-width: 8rem;
}

.ph-source-time {
  height: 0.875rem;
  width: 2.5rem;
  flex-shrink: 0;
}

.ph-outdoor-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.ph-outdoor-title {
  height: 0.875rem;
  width: 83%;
  margin-bottom: 0.25rem;
}

.ph-outdoor-subtitle {
  height: 0.75rem;
  width: 58%;
}

.ph-outdoor-row {
  height: 2.25rem;
  width: 100%;
  margin-bottom: 0.25rem;
  border-radius: 0.65rem;
}

.ph-outdoor-row--short {
  height: 2rem;
  width: 83%;
  margin-bottom: 0;
}

.ph-chart-gauge {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
}

.ph-chart-caption {
  width: 42%;
  height: 0.75rem;
  margin-top: 0.75rem;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.chart-placeholder-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  height: 100%;
}

.chart-placeholder-bars .placeholder {
  flex: 1;
  max-width: 2.5rem;
  display: block;
  border-radius: 0.5rem;
  min-height: 1.5rem;
}

.chart-placeholder-bars .ph-chart-bar:nth-child(4n + 1) { height: 35%; }
.chart-placeholder-bars .ph-chart-bar:nth-child(4n + 2) { height: 47%; }
.chart-placeholder-bars .ph-chart-bar:nth-child(4n + 3) { height: 59%; }
.chart-placeholder-bars .ph-chart-bar:nth-child(4n + 4) { height: 71%; }

#weatherViewer.is-loading .progress-bar.placeholder-glow {
  opacity: 0.25;
  animation: gw-placeholder-glow 1.35s ease-in-out infinite;
}

#weatherViewer.is-loading .section-title {
  opacity: 0.34;
}

#weatherViewer.is-loading .section-card,
#weatherViewer.is-loading .hero-card,
#weatherViewer.is-loading .forecast-card,
#weatherViewer.is-loading .advanced-details,
#weatherViewer.is-loading .detail-item {
  opacity: 0.4;
}

#weatherViewer.is-loading .section-title i,
#weatherViewer.is-loading .section-title .text-primary,
#weatherViewer.is-loading .weather-icon,
#weatherViewer.is-loading .weather-icon i,
#weatherViewer.is-loading .detail-icon,
#weatherViewer.is-loading .detail-icon i,
#weatherViewer.is-loading .source-icon i,
#weatherViewer.is-loading .stat-pill i,
#weatherViewer.is-loading .hero-inline-icon,
#weatherViewer.is-loading .hero-outdoor-recs .outdoor-activity-item .outdoor-activity-icon,
#weatherViewer.is-loading .hero-outdoor-recs .outdoor-activity-item .outdoor-activity-icon i,
#weatherViewer.is-loading .advanced-stat-icon,
#weatherViewer.is-loading .chart-icon-badge i,
#weatherViewer.is-loading .chart-icon-layer i {
  color: rgba(var(--bs-body-color-rgb), 0.36) !important;
  opacity: 0.55;
  filter: saturate(0.12);
}

#weatherViewer .section-title,
#weatherViewer .section-card,
#weatherViewer .hero-card,
#weatherViewer .forecast-card,
#weatherViewer .advanced-details,
#weatherViewer .detail-item,
#weatherViewer .section-title i,
#weatherViewer .weather-icon i,
#weatherViewer .detail-icon i {
  transition: opacity 0.45s ease, filter 0.45s ease, color 0.45s ease;
}

.gw-chart-tooltip {
  position: absolute;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 10px));
  background: rgba(33, 37, 41, 0.94);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--font-body-weight);
  letter-spacing: normal;
  line-height: 1.45;
  max-width: 240px;
}

[data-bs-theme="light"] .gw-chart-tooltip {
  background: rgba(255, 255, 255, 0.96);
  color: #212529;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .gw-chart-tooltip-title {
  color: #212529;
}

[data-bs-theme="light"] .gw-chart-tooltip-row {
  color: rgba(33, 37, 41, 0.88);
}

.gw-chart-tooltip-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  color: #fff;
}

.gw-chart-tooltip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  letter-spacing: normal;
}

.gw-chart-tooltip-row i {
  width: 14px;
  text-align: center;
  font-size: 12px;
  flex-shrink: 0;
}

.gw-chart-tooltip-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--font-body-weight);
  letter-spacing: normal;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.gw-chart-tooltip-note--solo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

[data-bs-theme="light"] .gw-chart-tooltip-note {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: rgba(33, 37, 41, 0.72);
}

[data-bs-theme="light"] .gw-chart-tooltip-note--solo {
  border-top-color: transparent;
  color: rgba(33, 37, 41, 0.88);
}

.chart-wrap-sm {
  height: 220px;
}

.chart-wrap-md {
  height: 300px;
}

.chart-wrap-gauge {
  height: 240px;
}

.uv-low { color: #2e7d32; }
.uv-moderate { color: #f9a825; }
.uv-high { color: #ef6c00; }
.uv-very-high { color: #c62828; }
.uv-extreme { color: #6a1b9a; }

.aqi-good { color: #43a047; }
.aqi-moderate { color: #689f38; }
.aqi-sensitive { color: #f9a825; }
.aqi-unhealthy { color: #ef6c00; }
.aqi-very-unhealthy { color: #e53935; }
.aqi-hazardous { color: #8e24aa; }

.advanced-details summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.advanced-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 1rem;
}

.advanced-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-family: var(--font-heading);
  font-weight: 700;
}

.advanced-summary-meta {
  flex: 1 1 100%;
  font-family: var(--font-body);
  padding-left: 1.65rem;
}

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

.advanced-details summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: auto;
  transition: transform 0.2s;
  color: #6c757d;
  flex-shrink: 0;
}

.advanced-details[open] summary::after {
  transform: rotate(180deg);
}

.advanced-body {
  padding: 0 1rem 1rem;
}

.advanced-block + .advanced-block {
  margin-top: 1.25rem;
}

.advanced-block-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin: 0 0 0.65rem;
}

.advanced-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.advanced-stat {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border-radius: 0.75rem;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
}

.advanced-stat-icon {
  font-size: 0.75rem;
  color: var(--bs-primary);
  opacity: 0.85;
  margin-bottom: 0.1rem;
}

.advanced-source-card {
  background: transparent;
}

.advanced-source-card .source-icon {
  min-width: 1.5rem;
}

.advanced-source-card .source-icon i {
  font-size: 1.1rem;
}

.advanced-source-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.advanced-source-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.advanced-source-temp {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.advanced-source-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
}

.advanced-source-card .source-name {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.15;
}

.advanced-source-card .source-detail {
  margin: 0.1rem 0 0;
  font-size: 0.66rem;
  color: var(--bs-secondary-color);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.advanced-source-foot {
  margin-top: 0.2rem;
  line-height: 1.2;
}

.chart-wrap-advanced {
  height: 280px;
}

.ph-advanced-meta {
  width: 9rem;
  height: 0.75rem;
}

.ph-advanced-stat-icon {
  width: 0.85rem;
  height: 0.85rem;
  margin-bottom: 0.25rem;
}

.ph-advanced-stat-label {
  height: 0.55rem;
  width: 55%;
  margin-bottom: 0.25rem;
}

.ph-advanced-stat-value {
  height: 0.75rem;
  width: 70%;
  margin-bottom: 0.2rem;
}

.ph-advanced-stat-sub {
  height: 0.5rem;
  width: 85%;
}

.ph-advanced-source-name {
  height: 0.7rem;
  width: 65%;
  margin-bottom: 0.2rem;
}

.ph-advanced-source-detail {
  height: 0.5rem;
  width: 88%;
  margin-top: 0.15rem;
}

.ph-advanced-source-temp {
  width: 2.75rem;
  height: 0.85rem;
}

@media (min-width: 576px) {
  .advanced-summary-meta {
    flex: 0 1 auto;
    padding-left: 0;
    text-align: right;
  }

  .advanced-snapshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .advanced-snapshot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .advanced-body {
    padding: 0 1.15rem 1.15rem;
  }
}

@media (max-width: 991.98px) {
  .advanced-summary {
    padding: 0.9rem 1rem;
  }

  .advanced-body {
    padding: 0 1rem 1rem;
  }

  .chart-wrap-advanced {
    height: 240px;
  }
}

[data-bs-theme="dark"] .advanced-details summary::after {
  color: var(--bs-secondary-color);
}

#waterSection.water-section-empty,
#waterSection.dashboard-section-hidden {
  display: none !important;
}

.confidence-bar .progress {
  background: var(--bs-secondary-bg);
  overflow: hidden;
}

.confidence-bar.is-loading .progress-bar {
  width: 36% !important;
  animation: confidence-bar-slide 1.35s ease-in-out infinite;
}

@keyframes confidence-bar-slide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(178%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 991.98px) {
  :root {
    --dashboard-block-gap: 2rem;
    --section-stack-gap: 2rem;
    --section-title-gap: 0.85rem;
    --dashboard-row-gutter-y: 1.35rem;
    --mobile-body: 1.125rem;
    --mobile-body-sm: 1rem;
    --mobile-body-xs: 0.9375rem;
    --mobile-section: 1.375rem;
    --mobile-hero-section: 1.5rem;
  }

  body {
    font-size: var(--mobile-body);
    line-height: 1.55;
  }

  #appMain.container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-bottom: 2.5rem !important;
  }

  .app-header--landing {
    min-height: min(68vh, 560px);
    padding: 1.25rem 0.85rem 1rem;
  }

  .app-brand {
    margin-bottom: 1.15rem;
    gap: 0.65rem;
  }

  .app-brand-name {
    font-size: clamp(1.85rem, 8.5vw, 2.25rem);
  }

  .app-brand-tagline {
    font-size: var(--mobile-body-sm);
    line-height: 1.4;
  }

  .search-input {
    font-size: var(--mobile-body);
  }

  .search-hint {
    font-size: var(--mobile-body-sm);
    line-height: 1.4;
    margin-top: 0.75rem;
  }

  .search-suggestion-label {
    font-size: var(--mobile-body);
  }

  .search-suggestion-sub {
    font-size: var(--mobile-body-sm);
  }

  .app-header--compact .app-brand-name {
    font-size: 1.25rem;
  }

  .app-header--compact .search-input {
    font-size: var(--mobile-body-sm);
  }

  .section-title {
    font-size: var(--mobile-section);
    gap: 0.5rem;
    margin: 0 0 var(--section-title-gap);
  }

  #forecastSection .section-card.mb-3 {
    margin-bottom: var(--section-title-gap) !important;
  }

  #heroWeatherSection .section-title,
  #heroRecSection .section-title {
    font-size: var(--mobile-hero-section);
  }

  .section-title i {
    font-size: 1.125rem;
  }

  #heroWeatherSection .section-title i,
  #heroRecSection .section-title i {
    font-size: 1.2rem;
  }

  #weatherViewer.show {
    display: block;
    padding-top: 0;
  }

  body.app-nav-active #weatherViewer.show {
    padding-top: 0.75rem;
  }

  #weatherViewer > .dashboard-section,
  #weatherViewer > .dashboard-row {
    margin-top: 0 !important;
  }

  #weatherViewer > .dashboard-section:has(> .section-title) {
    padding-top: 0;
  }

  #weatherViewer .dashboard-row {
    display: block;
    margin-left: 0;
    margin-right: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
  }

  #weatherViewer .dashboard-row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
  }

  #weatherViewer .dashboard-section {
    margin-top: 0;
  }

  /* One rhythm: card bottom → next section heading (same as Weather now → Outdoor outlook) */
  #weatherViewer .dashboard-section:not(.dashboard-section-hidden) > .section-title {
    margin-top: var(--section-stack-gap);
  }

  #weatherViewer #heroWeatherSection > .section-title {
    margin-top: 0;
  }

  #weatherViewer #advancedSection:not(.dashboard-section-hidden) {
    margin-top: var(--section-stack-gap);
  }

  .hero-split .dashboard-section,
  [data-section-col] > .dashboard-section.h-100 {
    height: auto;
  }

  .hero-split .dashboard-section {
    display: flex;
    flex-direction: column;
  }

  .hero-split .dashboard-section .hero-card {
    height: auto;
    flex: 0 0 auto;
  }

  .glass-panel {
    --glass-blur-lite: 6px;
    --glass-blur: 8px;
    --glass-saturate: 1.06;
  }

  [data-bs-theme="light"] .glass-panel--frost.glass-inview {
    --glass-fill: rgba(255, 255, 255, 0.52);
    --glass-border: rgba(255, 255, 255, 0.62);
  }

  [data-bs-theme="dark"] .glass-panel--frost.glass-inview {
    background: rgba(var(--bs-body-bg-rgb), calc(var(--glass-strength) * 0.62));
  }

  .glass-panel--frost.glass-blur-on::before,
  .glass-panel--frost.glass-inview::before {
    -webkit-backdrop-filter: blur(var(--glass-blur-lite)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur-lite)) saturate(var(--glass-saturate));
    opacity: calc(var(--glass-blur-strength) * 0.85);
  }

  .glass-panel--filter.glass-filter-on,
  .glass-panel--filter {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .glass-panel--filter::before,
  .glass-panel--filter.glass-filter-on::before {
    display: none;
  }

  .gw-chart-tooltip {
    font-size: 14px;
    padding: 10px 14px;
  }

  .gw-chart-tooltip-title {
    font-size: 16px;
  }

  #tenDayForecast {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.85rem;
  }

  .hero-panel-body {
    padding: 1.15rem 1.1rem;
    gap: 1.15rem;
    height: auto;
    min-height: 0;
  }

  .hero-weather-panel .hero-panel-body,
  .hero-rec-panel .hero-panel-body {
    min-height: 0;
  }

  #currentWeather {
    gap: 0.85rem;
    padding: 0.25rem 0;
  }

  .hero-current-location {
    font-size: 1.3125rem;
    line-height: 1.25;
  }

  .hero-current-main {
    gap: 1.25rem;
  }

  .hero-current-temp .temp.display-3 {
    font-size: clamp(3rem, 16vw, 3.85rem);
    line-height: 1.05;
  }

  .hero-current-temp .condition.fs-5 {
    font-size: 1.1875rem !important;
    line-height: 1.4;
    margin-top: 0.35rem;
  }

  .hero-current-range {
    font-size: var(--mobile-body-sm);
    margin-top: 0.35rem !important;
  }

  .hero-sun-indicator {
    font-size: var(--mobile-body-sm);
    padding: 0.4rem 0.75rem;
    margin-top: 0.15rem;
  }

  .hero-current-meta {
    font-size: var(--mobile-body-sm);
    line-height: 1.5;
    margin-top: 0.25rem;
  }

  .section-card > .card-body:has(.detail-grid) {
    padding: 1rem 0.95rem;
  }

  .detail-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .detail-item {
    padding: 0.9rem 0.65rem;
  }

  .detail-icon {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
  }

  .detail-icon.fa-icon i {
    font-size: 1.25rem;
  }

  .detail-label {
    font-size: var(--mobile-body-sm);
    line-height: 1.3;
    margin-bottom: 0.25rem;
  }

  .detail-value {
    font-size: 1.375rem;
    line-height: 1.25;
  }

  .detail-sub {
    font-size: var(--mobile-body-xs);
    line-height: 1.45;
    margin-top: 0.3rem;
  }

  .stat-pill {
    padding: 0.8rem 0.55rem;
  }

  #heroQuickStats {
    --bs-gutter-x: 0.55rem;
    --bs-gutter-y: 0.55rem;
    margin-top: 0.15rem;
  }

  #heroQuickStats .stat-pill {
    padding: 0.7rem 0.35rem;
  }

  #heroQuickStats .stat-pill i {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
  }

  .stat-pill .stat-value {
    font-size: 1.25rem;
  }

  #heroQuickStats .stat-value {
    font-size: 1.0625rem;
    line-height: 1.25;
    margin-bottom: 0.1rem;
  }

  .stat-pill .stat-label {
    font-size: var(--mobile-body-xs);
  }

  #heroQuickStats .stat-label {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .section-card.card.p-3 {
    padding: 1rem !important;
  }

  .confidence-bar-head {
    margin-bottom: 0.6rem;
  }

  .confidence-badges {
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .hero-outdoor-recs--compact .hero-outdoor-header {
    gap: 0.85rem;
  }

  .hero-outdoor-header {
    gap: 0.85rem;
  }

  .hero-outdoor-meta {
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.35rem;
  }

  .hero-outdoor-score-ring {
    width: 3rem;
    height: 3rem;
  }

  .hero-outdoor-score-value {
    font-size: 1rem;
  }

  .hero-outdoor-headline {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-top: 0.15rem;
  }

  .hero-outdoor-condition,
  .hero-outdoor-timing {
    font-size: var(--mobile-body-xs);
    line-height: 1.5;
  }

  .outdoor-time-badge {
    font-size: var(--mobile-body-xs);
    padding: 0.2rem 0.55rem;
  }

  .outdoor-activity-list {
    gap: 0.55rem;
    margin-top: 0.75rem;
  }

  .outdoor-activity-item {
    column-gap: 0.65rem;
    row-gap: 0.2rem;
    padding: 0.65rem 0.7rem;
  }

  .outdoor-activity-facts {
    gap: 0.35rem 0.5rem;
    margin-top: 0.3rem;
  }

  .outdoor-basis-compact {
    gap: 0.45rem;
    margin-top: 0.75rem;
  }

  .outdoor-basis-chip {
    font-size: var(--mobile-body-xs);
    padding: 0.25rem 0.55rem;
  }

  .outdoor-activity-name {
    font-size: var(--mobile-body);
  }

  .outdoor-activity-fact {
    font-size: var(--mobile-body-xs);
  }

  .outdoor-activity-note {
    font-size: var(--mobile-body-xs);
  }

  .outdoor-verdict {
    font-size: 0.8125rem;
    padding: 0.18rem 0.45rem;
  }

  .confidence-bar-pct,
  .confidence-bar-title {
    font-size: var(--mobile-body-sm);
  }

  .confidence-badge {
    font-size: var(--mobile-body-xs);
  }

  .forecast-card-body {
    gap: 0.2rem;
    padding: 0.75rem 0.5rem;
  }

  .forecast-card .date {
    font-size: var(--mobile-body-sm);
    line-height: 1.3;
  }

  .forecast-card .high,
  .forecast-card .low {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .forecast-card .forecast-temp-sep {
    font-size: var(--mobile-body-xs);
  }

  .forecast-card .condition {
    font-size: var(--mobile-body-xs);
    line-height: 1.45;
  }

  #tenDayForecast .weather-icon i {
    font-size: 2.25rem;
  }

  .advanced-stat-value {
    font-size: 1.125rem;
  }

  .advanced-stat-label {
    font-size: var(--mobile-body-xs);
  }

  .advanced-stat-sub {
    font-size: 0.875rem;
  }

  .advanced-source-card .source-name {
    font-size: var(--mobile-body);
  }

  .advanced-source-card .source-detail {
    font-size: var(--mobile-body-xs);
  }

  .advanced-stat {
    gap: 0.65rem;
    padding: 0.85rem 0.75rem;
  }

  .advanced-source-card {
    padding: 0.85rem 0.75rem;
  }

  .advanced-summary {
    padding: 0.9rem 1rem;
  }

  .chart-wrap {
    height: 220px;
  }

  .chart-wrap-sm {
    height: 185px;
  }

  .chart-wrap-gauge {
    height: 200px;
  }

  .weather-icon i {
    font-size: 3.75rem;
  }

  .advanced-summary-title {
    font-size: var(--mobile-body);
  }

  .btn-sm {
    font-size: var(--mobile-body-xs);
    padding: 0.45rem 0.85rem;
  }

  .app-header--landing .pwa-notify-anchor,
  .app-header--landing .pwa-panel {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  #appMain.container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
