body#top .home-weather {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(18px, 3vw, 30px) auto 0;
}

body#top .weather-section-transition {
  width: min(1180px, calc(100% - 32px));
  height: clamp(34px, 4vw, 52px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

body#top .weather-section-transition::before,
body#top .weather-section-transition::after {
  content: "";
  height: 1px;
}

body#top .weather-section-transition::before {
  background: linear-gradient(90deg, transparent, rgba(35, 81, 73, .16));
}

body#top .weather-section-transition::after {
  background: linear-gradient(90deg, rgba(35, 81, 73, .16), transparent);
}

body#top .weather-section-transition span {
  width: 34px;
  height: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(35, 81, 73, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 5px 16px rgba(36, 72, 63, .08);
}

body#top .weather-section-transition span::before {
  content: "";
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e9b832;
  box-shadow: 0 0 0 4px rgba(245, 200, 75, .18);
}

body#top .weather-section-transition + #planner.planner-shell {
  padding-top: clamp(28px, 3.5vw, 44px);
}

body#top .home-weather-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(35, 81, 73, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.9) 0 10%, transparent 34%),
    linear-gradient(125deg, #dff3f3 0%, #e9f5df 48%, #fff0c9 100%);
  box-shadow: 0 16px 42px rgba(50, 33, 20, .09);
}

body#top .home-weather-shell::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 204, 79, .32);
  pointer-events: none;
}

body#top .home-weather-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  min-height: 210px;
}

body#top .home-weather-current,
body#top .home-weather-recommendation {
  padding: clamp(20px, 2.8vw, 28px);
}

body#top .home-weather-current {
  display: grid;
  align-content: center;
  gap: 14px;
  border-right: 1px solid rgba(35, 81, 73, .14);
  background: rgba(255, 255, 255, .3);
}

body#top .home-weather-place {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 18px;
}

body#top .home-weather-place span,
body#top .home-weather-kicker {
  color: #31655d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body#top .home-weather-place strong {
  color: #24483f;
  font-size: 14px;
}

body#top .home-weather-reading {
  display: flex;
  align-items: center;
  gap: 16px;
}

body#top .home-weather-condition-icon {
  width: 66px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 10px 24px rgba(36, 72, 63, .08);
  font-size: 36px;
}

body#top .home-weather-reading > div {
  display: grid;
  gap: 1px;
  color: #365e56;
  font-size: 14px;
  font-weight: 750;
}

body#top .home-weather-temperature {
  color: #1f3d36;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(40px, 5vw, 54px);
  line-height: .9;
  letter-spacing: -.045em;
}

body#top .home-weather-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body#top .home-weather-metrics > div {
  padding: 8px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .47);
}

body#top .home-weather-metrics dt {
  color: #52756e;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body#top .home-weather-metrics dd {
  margin: 2px 0 0;
  color: #203f38;
  font-size: 13px;
  font-weight: 900;
}

body#top .home-weather-recommendation {
  align-self: center;
}

body#top .home-weather-recommendation h2 {
  max-width: 690px;
  margin: 5px 0 8px;
  color: #24382f;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1;
  letter-spacing: -.035em;
}

body#top .home-weather-recommendation > p:not(.home-weather-kicker):not(.home-weather-coverage-note) {
  max-width: 650px;
  margin: 0 0 14px;
  color: #50675d;
  font-size: 14px;
  line-height: 1.45;
}

body#top .home-weather-coverage-note {
  margin: -7px 0 16px;
  color: #6f5b35;
  font-size: 12px;
  font-weight: 750;
}

body#top .home-weather-action,
body#top .home-weather-location-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: #24483f;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(36, 72, 63, .18);
}

body#top .home-weather-action:hover,
body#top .home-weather-location-button:hover {
  background: #173a32;
  transform: translateY(-1px);
}

body#top .home-weather-source {
  grid-column: 1 / -1;
  margin: 0;
  padding: 7px 16px;
  border-top: 1px solid rgba(35, 81, 73, .12);
  background: rgba(255, 255, 255, .32);
  color: #60776f;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

body#top .home-weather-source a {
  color: inherit;
  font-weight: 850;
  text-underline-offset: 2px;
}

body#top .home-weather-empty,
body#top .home-weather-loading {
  grid-column: 1 / -1;
  min-height: 164px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
}

body#top .home-weather-empty-icon,
body#top .home-weather-loading-icon {
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  font-size: 36px;
}

body#top .home-weather-loading-icon {
  animation: homeWeatherPulse 1.2s ease-in-out infinite;
}

body#top .home-weather-empty strong,
body#top .home-weather-loading strong {
  display: block;
  margin-bottom: 3px;
  color: #24483f;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.05;
}

body#top .home-weather-empty p,
body#top .home-weather-loading p {
  margin: 0;
  color: #567068;
  font-size: 13px;
}

body#top .home-weather-file-preview {
  grid-template-columns: auto minmax(0, 1fr);
}

html[data-theme="dark"] body#top .home-weather-shell {
  border-color: rgba(138, 200, 190, .2);
  background: linear-gradient(125deg, #173d44 0%, #203d35 52%, #4b4027 100%);
}

html[data-theme="dark"] body#top .weather-section-transition::before {
  background: linear-gradient(90deg, transparent, rgba(138, 200, 190, .24));
}

html[data-theme="dark"] body#top .weather-section-transition::after {
  background: linear-gradient(90deg, rgba(138, 200, 190, .24), transparent);
}

html[data-theme="dark"] body#top .weather-section-transition span {
  border-color: rgba(138, 200, 190, .2);
  background: rgba(22, 36, 39, .82);
}

html[data-theme="dark"] body#top .home-weather-current { background: rgba(10, 23, 25, .18); }
html[data-theme="dark"] body#top :is(.home-weather-place strong, .home-weather-temperature, .home-weather-recommendation h2, .home-weather-metrics dd, .home-weather-empty strong, .home-weather-loading strong) { color: #f7fbf7; }
html[data-theme="dark"] body#top :is(.home-weather-place span, .home-weather-kicker, .home-weather-reading > div, .home-weather-recommendation > p:not(.home-weather-kicker), .home-weather-empty p, .home-weather-loading p) { color: #c8dfd8; }

@keyframes homeWeatherPulse {
  50% { transform: translateY(-3px); opacity: .7; }
}

@media (max-width: 760px) {
  body#top .home-weather { width: min(100% - 20px, 1180px); }
  body#top .weather-section-transition { width: calc(100% - 32px); height: 36px; gap: 10px; }
  body#top .weather-section-transition + #planner.planner-shell { padding-top: 26px; }
  body#top .home-weather-shell { border-radius: 23px; }
  body#top .home-weather-content { grid-template-columns: 1fr; }
  body#top .home-weather-current { border-right: 0; border-bottom: 1px solid rgba(35, 81, 73, .14); }
  body#top .home-weather-current,
  body#top .home-weather-recommendation { padding: 18px 16px; }
  body#top .home-weather-place { display: grid; }
  body#top .home-weather-condition-icon { width: 60px; border-radius: 18px; font-size: 33px; }
  body#top .home-weather-temperature { font-size: 44px; }
  body#top .home-weather-metrics { gap: 5px; }
  body#top .home-weather-metrics > div { padding: 9px 7px; }
  body#top .home-weather-metrics dd { font-size: 11px; }
  body#top .home-weather-empty,
  body#top .home-weather-loading { grid-template-columns: auto 1fr; gap: 13px; padding: 25px 18px; }
  body#top .home-weather-empty :is(.home-weather-location-button),
  body#top .home-weather-loading :is(.home-weather-location-button) { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body#top .home-weather-loading-icon { animation: none; }
  body#top .home-weather-action:hover,
  body#top .home-weather-location-button:hover { transform: none; }
}
