body[data-page="public-home"] .mdr-public-weather-card {
  min-width: 0;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border: 1px solid var(--mdr-border);
  border-radius: 12px;
  background: var(--mdr-surface);
  color: var(--mdr-text);
}

body[data-page="public-home"] .mdr-public-weather-card__topline {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 13px;
  border-bottom: 1px solid var(--mdr-border-soft);
}

body[data-page="public-home"] .mdr-public-weather-card__topline h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

body[data-page="public-home"] .mdr-public-weather-live {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mdr-primary-tint);
  color: var(--mdr-primary-on-tint);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

body[data-page="public-home"] .mdr-public-weather-live::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

body[data-page="public-home"] .mdr-public-weather-live[data-state="stale"],
body[data-page="public-home"] .mdr-public-weather-live[data-state="pending"] {
  background: var(--mdr-surface-subtle);
  color: var(--mdr-muted);
}

body[data-page="public-home"] .mdr-public-weather-live[data-state="unavailable"] {
  background: var(--mdr-warn-tint);
  color: var(--mdr-warn-text);
}

body[data-page="public-home"] .mdr-public-weather-card__body {
  padding: 10px 13px 9px;
}

body[data-page="public-home"] .mdr-public-weather-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mdr-text-2);
  font-size: 13px;
}

body[data-page="public-home"] .mdr-public-weather-card__location i {
  color: var(--mdr-muted);
}

body[data-page="public-home"] .mdr-public-weather-card__current {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="public-home"] .mdr-public-weather-card__current-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-page="public-home"] .mdr-public-weather-card__temperature {
  display: inline-flex;
  align-items: flex-start;
  white-space: nowrap;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1;
}

body[data-page="public-home"] .mdr-public-weather-card__temperature sup {
  margin: 3px 0 0 2px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

body[data-page="public-home"] .mdr-public-weather-card__current p {
  margin: 0;
  color: var(--mdr-muted);
  font-size: 12px;
}

body[data-page="public-home"] .mdr-public-weather-card__icon {
  flex: 0 0 auto;
  font-size: 40px;
  line-height: 1;
}

body[data-page="public-home"] .mdr-public-weather-card__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--mdr-border-soft);
}

body[data-page="public-home"] .mdr-public-weather-card__metrics > div,
body[data-page="public-home"] .mdr-public-weather-card__loading .mdr-public-weather-card__metrics > span {
  min-width: 0;
  padding: 0 9px;
  border-left: 1px solid var(--mdr-border-soft);
}

body[data-page="public-home"] .mdr-public-weather-card__metrics > div:first-child,
body[data-page="public-home"] .mdr-public-weather-card__loading .mdr-public-weather-card__metrics > span:first-child {
  padding-left: 0;
  border-left: 0;
}

body[data-page="public-home"] .mdr-public-weather-card__metrics dt,
body[data-page="public-home"] .mdr-public-weather-card__loading .mdr-public-weather-card__metrics small {
  display: block;
  margin: 0;
  color: var(--mdr-muted);
  font-size: 11px;
  font-weight: 400;
}

body[data-page="public-home"] .mdr-public-weather-card__metrics dd {
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--mdr-text);
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="public-home"] .mdr-public-weather-card__metrics dd small {
  color: var(--mdr-muted);
  font-size: 11px;
  font-weight: 400;
}

body[data-page="public-home"] .mdr-public-weather-card__forecast {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  padding: 8px 0;
  border-top: 1px solid var(--mdr-border-soft);
  scrollbar-width: thin;
}

body[data-page="public-home"] .mdr-public-weather-forecast-day {
  display: grid;
  min-width: 76px;
  flex: 1 0 76px;
  justify-items: center;
  gap: 1px;
  padding-inline: 3px;
  border-left: 1px solid var(--mdr-border-soft);
  text-align: center;
}

body[data-page="public-home"] .mdr-public-weather-forecast-day:first-child {
  border-left: 0;
}

body[data-page="public-home"] .mdr-public-weather-forecast-day > span {
  color: var(--mdr-text-2);
  font-size: 12px;
  font-weight: 500;
}

body[data-page="public-home"] .mdr-public-weather-forecast-day > strong {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;
}

body[data-page="public-home"] .mdr-public-weather-forecast-day > small {
  color: var(--mdr-muted);
  font-size: 10px;
  white-space: nowrap;
}

body[data-page="public-home"] .mdr-public-weather-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-inline: -13px;
  padding: 7px 13px 0;
  border-top: 1px solid var(--mdr-border-soft);
}

body[data-page="public-home"] .mdr-public-weather-card__footer > span {
  color: var(--mdr-muted);
  font-size: 11px;
}

body[data-page="public-home"] .mdr-public-weather-card__loading-current {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 6px;
}

body[data-page="public-home"] .mdr-public-weather-skeleton {
  display: block;
  overflow: hidden;
  position: relative;
  background: color-mix(in srgb, var(--mdr-muted) 14%, transparent);
  border-radius: 5px;
}

body[data-page="public-home"] .mdr-public-weather-skeleton::after {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mdr-muted) 16%, transparent), transparent);
  content: "";
  animation: mdr-public-weather-shimmer 1.4s ease-in-out infinite;
}

body[data-page="public-home"] .mdr-public-weather-skeleton--temperature {
  width: 106px;
  height: 38px;
}

body[data-page="public-home"] .mdr-public-weather-skeleton--line {
  width: 64%;
  height: 11px;
}

body[data-page="public-home"] .mdr-public-weather-skeleton--value {
  width: 46px;
  height: 16px;
  margin-top: 4px;
}

body[data-page="public-home"] .mdr-public-weather-card__loading .mdr-public-weather-card__metrics {
  border-top: 1px solid var(--mdr-border-soft);
}

body[data-page="public-home"] .mdr-public-weather-card__unavailable {
  display: flex;
  min-height: 150px;
  align-items: center;
  gap: 12px;
  color: var(--mdr-muted);
}

body[data-page="public-home"] .mdr-public-weather-card__unavailable > i {
  color: var(--mdr-faint);
  font-size: 26px;
}

body[data-page="public-home"] .mdr-public-weather-card__unavailable strong,
body[data-page="public-home"] .mdr-public-weather-card__unavailable span {
  display: block;
}

body[data-page="public-home"] .mdr-public-weather-card__unavailable strong {
  color: var(--mdr-text);
  font-weight: 600;
}

body[data-page="public-home"] .mdr-public-weather-card__unavailable span {
  font-size: 13px;
}

body[data-page="public-home"] .mdr-public-weather-section {
  overflow: hidden;
  padding-block: 20px;
  background: var(--mdr-surface);
}

body[data-page="public-home"] .mdr-public-weather-section .mdr-public-section-heading {
  margin-bottom: 12px;
}

body[data-page="public-home"] .mdr-public-weather-carousel {
  display: flex;
  min-width: 0;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

body[data-page="public-home"] .mdr-public-weather-location,
body[data-page="public-home"] .mdr-public-weather-card--loading {
  display: block;
  width: 168px;
  min-width: 168px;
  min-height: 132px;
  flex: 0 0 168px;
  padding: 9px 10px;
  border: 1px solid var(--mdr-border);
  border-radius: 12px;
  background: var(--mdr-surface);
  color: var(--mdr-text);
  scroll-snap-align: start;
}

body[data-page="public-home"] .mdr-public-weather-location {
  text-align: left;
  cursor: pointer;
}

body[data-page="public-home"] .mdr-public-weather-location:hover {
  border-color: var(--mdr-primary);
}

body[data-page="public-home"] .mdr-public-weather-location.is-selected,
body[data-page="public-home"] .mdr-public-weather-location[aria-pressed="true"] {
  border-color: var(--mdr-primary);
  background: var(--mdr-primary-tint);
  color: var(--mdr-primary-on-tint);
}

body[data-page="public-home"] .mdr-public-weather-location__name,
body[data-page="public-home"] .mdr-public-weather-location__summary,
body[data-page="public-home"] .mdr-public-weather-location__details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

body[data-page="public-home"] .mdr-public-weather-location__name {
  margin-bottom: 5px;
  font-size: 13px;
}

body[data-page="public-home"] .mdr-public-weather-location__name strong {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="public-home"] .mdr-public-weather-location__name i {
  flex: 0 0 auto;
  color: var(--mdr-faint);
}

body[data-page="public-home"] .mdr-public-weather-location.is-selected .mdr-public-weather-location__name i {
  color: var(--mdr-primary);
}

body[data-page="public-home"] .mdr-public-weather-location__summary strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

body[data-page="public-home"] .mdr-public-weather-location__summary span {
  font-size: 22px;
  line-height: 1;
}

body[data-page="public-home"] .mdr-public-weather-location__condition {
  display: block;
  overflow: hidden;
  margin: 0 0 5px;
  color: var(--mdr-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="public-home"] .mdr-public-weather-location__details {
  color: var(--mdr-muted);
  font-size: 10px;
}

body[data-page="public-home"] .mdr-public-weather-location__details span:first-child {
  white-space: nowrap;
}

body[data-page="public-home"] .mdr-public-weather-location__details span:first-child i {
  color: var(--mdr-faint);
}

body[data-page="public-home"] .mdr-public-weather-section__source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--mdr-muted);
  font-size: 12px;
}

body[data-page="public-home"] .mdr-public-weather-section__source > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-page="public-home"] .mdr-public-weather-unavailable {
  flex: 1 0 100%;
  margin: 0;
  padding: 16px;
  color: var(--mdr-muted);
}

body[data-page="public-home"] .mdr-public-weather-modal .modal-content {
  border-color: var(--mdr-border);
  background: var(--mdr-surface);
  color: var(--mdr-text);
}

body[data-page="public-home"] .mdr-public-weather-modal__header {
  align-items: flex-start;
}

body[data-page="public-home"] .mdr-public-weather-modal__header .mdr-public-eyebrow {
  margin-bottom: 4px;
}

body[data-page="public-home"] .mdr-public-weather-modal__header h2 {
  margin: 0 0 3px;
  font-size: 20px;
}

body[data-page="public-home"] .mdr-public-weather-modal__close {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--mdr-border);
  border-radius: 9px;
  background: var(--mdr-surface);
  color: var(--mdr-text-2);
  cursor: pointer;
}

body[data-page="public-home"] .mdr-public-weather-modal__header p {
  margin: 0;
  color: var(--mdr-muted);
  font-size: 13px;
}

body[data-page="public-home"] .mdr-public-weather-modal__body {
  min-width: 0;
}

body[data-page="public-home"] .mdr-public-weather-modal__toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

body[data-page="public-home"] .mdr-public-weather-search {
  position: relative;
  min-width: 220px;
  flex: 1 1 280px;
}

body[data-page="public-home"] .mdr-public-weather-search > i {
  position: absolute;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
  color: var(--mdr-muted);
}

body[data-page="public-home"] .mdr-public-weather-search .mdr-public-field {
  padding-left: 34px;
}

body[data-page="public-home"] .mdr-public-weather-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mdr-muted);
  font-size: 13px;
}

body[data-page="public-home"] .mdr-public-weather-sort .mdr-public-field {
  width: auto;
}

body[data-page="public-home"] .mdr-public-weather-modal__status {
  padding-block: 20px;
  color: var(--mdr-muted);
  text-align: center;
}

body[data-page="public-home"] .mdr-public-weather-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="public-home"] .mdr-public-weather-detail-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--mdr-border);
  border-radius: 12px;
  background: var(--mdr-surface);
}

body[data-page="public-home"] .mdr-public-weather-detail-card__name,
body[data-page="public-home"] .mdr-public-weather-detail-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body[data-page="public-home"] .mdr-public-weather-detail-card__name strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="public-home"] .mdr-public-weather-detail-card__name > span {
  font-size: 20px;
}

body[data-page="public-home"] .mdr-public-weather-detail-card__summary strong {
  font-size: 20px;
  font-weight: 600;
}

body[data-page="public-home"] .mdr-public-weather-detail-card__summary > span,
body[data-page="public-home"] .mdr-public-weather-detail-card__condition {
  color: var(--mdr-muted);
  font-size: 12px;
}

body[data-page="public-home"] .mdr-public-weather-detail-card__condition {
  margin: 3px 0 8px;
}

body[data-page="public-home"] .mdr-public-weather-detail-card__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--mdr-border-soft);
}

body[data-page="public-home"] .mdr-public-weather-detail-card__details span {
  display: grid;
  gap: 1px;
  color: var(--mdr-text-2);
  font-size: 12px;
}

body[data-page="public-home"] .mdr-public-weather-detail-card__details small {
  color: var(--mdr-muted);
  font-size: 11px;
}

body[data-page="public-home"] .mdr-public-weather-modal__map-body {
  padding: 0;
}

body[data-page="public-home"] .mdr-public-weather-map-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-bottom: 1px solid var(--mdr-border);
  background: var(--mdr-surface-muted);
}

body[data-page="public-home"] .mdr-public-weather-map-toolbar > span {
  margin-left: auto;
  color: var(--mdr-muted);
  font-size: 12px;
}

body[data-page="public-home"] .mdr-public-weather-map {
  width: 100%;
  height: min(68vh, 610px);
  min-height: 300px;
  background: var(--mdr-surface-subtle);
}

body[data-page="public-home"] .mdr-public-weather-modal__footer {
  justify-content: space-between;
  gap: 8px;
}

body[data-page="public-home"] .mdr-public-weather-modal__footer small {
  color: var(--mdr-muted);
}

body[data-page="public-home"] .mdr-public-weather-map-marker {
  display: grid;
  width: 38px !important;
  height: 38px !important;
  place-items: center;
  transform: rotate(-45deg);
  border: 2px solid #FFFFFF;
  border-radius: 50% 50% 50% 0;
  background: var(--mdr-primary);
  box-shadow: 0 2px 7px rgb(0 0 0 / 28%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

body[data-page="public-home"] .mdr-public-weather-map-marker span {
  transform: rotate(45deg);
}

body[data-page="public-home"] .mdr-public-weather-popup {
  min-width: 190px;
}

body[data-page="public-home"] .mdr-public-weather-popup h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

body[data-page="public-home"] .mdr-public-weather-popup p {
  margin: 0 0 7px;
}

body[data-page="public-home"] .mdr-public-weather-popup dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

body[data-page="public-home"] .mdr-public-weather-popup dt {
  color: #63706A;
  font-size: 10px;
  font-weight: 500;
}

body[data-page="public-home"] .mdr-public-weather-popup dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

body[data-page="public-home"][data-bs-theme="dark"] .leaflet-tile-pane {
  filter: brightness(.72) contrast(1.08) saturate(.72);
}

body[data-page="public-home"] .leaflet-container {
  color: var(--mdr-text);
}

@keyframes mdr-public-weather-shimmer {
  to { transform: translateX(100%); }
}

@media (min-width: 768px) {
  body[data-page="public-home"] .mdr-public-weather-card__temperature {
    font-size: 44px;
  }
}

@media (max-width: 575.98px) {
  body[data-page="public-home"] .mdr-public-weather-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }

  body[data-page="public-home"] .mdr-public-weather-card__metrics > div:nth-child(3),
  body[data-page="public-home"] .mdr-public-weather-card__loading .mdr-public-weather-card__metrics > span:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  body[data-page="public-home"] .mdr-public-weather-card__current-copy {
    gap: 3px 7px;
  }

  body[data-page="public-home"] .mdr-public-weather-card__footer,
  body[data-page="public-home"] .mdr-public-weather-section__source {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page="public-home"] .mdr-public-weather-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="public-home"] .mdr-public-weather-modal__toolbar > *,
  body[data-page="public-home"] .mdr-public-weather-sort,
  body[data-page="public-home"] .mdr-public-weather-sort .mdr-public-field {
    width: 100%;
  }

  body[data-page="public-home"] .mdr-public-weather-map-toolbar > span {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 359.98px) {
  body[data-page="public-home"] .mdr-public-weather-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="public-home"] .mdr-public-weather-skeleton::after {
    animation: none;
  }
}
