.ink-weather {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 17px 18px 14px;
  border: 1px solid var(--andong-line, rgba(27, 33, 30, 0.12));
  border-radius: 12px;
  background: rgba(251, 247, 238, 0.76);
  color: var(--andong-text, #1b211e);
  box-shadow: 0 12px 34px rgba(27, 33, 30, 0.04);
  backdrop-filter: blur(10px) saturate(0.82);
  -webkit-backdrop-filter: blur(10px) saturate(0.82);
}

.ink-weather::before,
.ink-weather::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.ink-weather::before {
  inset: -32%;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(177, 151, 105, 0.15), transparent 34%),
    radial-gradient(ellipse at 88% 88%, rgba(27, 33, 30, 0.09), transparent 38%);
  filter: blur(14px);
  transform: rotate(5deg);
}

.ink-weather::after {
  right: 18px;
  bottom: -16px;
  width: 118px;
  height: 45px;
  border-radius: 50%;
  background: rgba(63, 107, 87, 0.065);
  filter: blur(8px);
  transform: rotate(9deg);
}

.ink-weather__header,
.ink-weather__main,
.ink-weather__metrics,
.ink-weather__forecast,
.ink-weather__footer {
  position: relative;
}

.ink-weather__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.ink-weather__location {
  min-width: 0;
}

.ink-weather__city {
  display: block;
  overflow: hidden;
  color: var(--andong-text, #1b211e);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ink-weather__eyebrow,
.ink-weather__updated {
  color: var(--andong-muted, #69706c);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ink-weather__updated {
  flex: 0 0 auto;
  padding-top: 2px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.ink-weather__main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
}

.ink-weather__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--andong-accent, #3f6b57);
}

.ink-weather__icon svg {
  width: 46px;
  height: 46px;
}

.ink-weather__temperature {
  color: var(--andong-text, #1b211e);
  font-size: 34px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.ink-weather__condition {
  margin-top: 4px;
  color: var(--andong-muted, #69706c);
  font-size: 11px;
  line-height: 1.35;
}

.ink-weather__range {
  align-self: end;
  padding-bottom: 5px;
  color: var(--andong-muted, #69706c);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ink-weather__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--andong-line, rgba(27, 33, 30, 0.12));
}

.ink-weather__metric {
  min-width: 0;
  color: var(--andong-muted, #69706c);
  font-size: 9px;
  line-height: 1.4;
}

.ink-weather__metric strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--andong-text, #1b211e);
  font-size: 10.5px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ink-weather__forecast {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--andong-line, rgba(27, 33, 30, 0.12));
}

.ink-weather__forecast-list {
  display: flex;
  direction: rtl;
  gap: 0;
  overflow-x: auto;
  padding: 1px 0 7px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(63, 107, 87, 0.22) transparent;
}

.ink-weather__forecast-list::-webkit-scrollbar {
  height: 3px;
}

.ink-weather__forecast-list::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(63, 107, 87, 0.22);
}

.ink-weather__forecast-item {
  direction: ltr;
  display: grid;
  flex: 0 0 64px;
  min-height: 104px;
  padding: 5px 5px 4px;
  place-items: center;
  border-left: 1px solid rgba(27, 33, 30, 0.07);
  color: var(--andong-muted, #69706c);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  scroll-snap-align: end;
}

.ink-weather__forecast-day {
  font-weight: 520;
}


.ink-weather__forecast-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--andong-accent, #3f6b57);
}

.ink-weather__forecast-icon svg {
  width: 26px;
  height: 26px;
}

.ink-weather__forecast-temp {
  display: flex;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.ink-weather__forecast-temp strong {
  color: var(--andong-text, #1b211e);
  font-size: 12px;
  font-weight: 680;
}

.ink-weather__forecast-rain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--andong-accent, #3f6b57);
  white-space: nowrap;
}

.ink-weather__forecast-rain svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.ink-weather__forecast-empty {
  margin: 4px 0 0;
  color: var(--andong-muted, #69706c);
  font-size: 10.5px;
  line-height: 1.5;
}

[data-scheme="dark"] .ink-weather__forecast-item {
  border-left-color: rgba(232, 237, 233, 0.075);
}


.ink-weather__footer {
  margin-top: 9px;
  color: var(--andong-muted, #69706c);
  font-size: 8.5px;
  line-height: 1.3;
  text-align: right;
}

.ink-weather__footer a {
  color: inherit;
  text-decoration: none;
}

.ink-weather__footer a:hover {
  color: var(--andong-accent, #3f6b57);
}

.ink-weather.is-loading .ink-weather__icon {
  animation: ink-weather-breathe 1.8s ease-in-out infinite;
}

.ink-weather.is-error .ink-weather__temperature {
  font-size: 18px;
  letter-spacing: 0;
}

[data-scheme="dark"] .ink-weather {
  background: rgba(30, 27, 21, 0.76);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.13);
}

[data-scheme="dark"] .ink-weather::before {
  background:
    radial-gradient(ellipse at 18% 16%, rgba(195, 169, 119, 0.12), transparent 34%),
    radial-gradient(ellipse at 88% 88%, rgba(232, 237, 233, 0.055), transparent 38%);
}

@keyframes ink-weather-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.94); }
  50% { opacity: 0.8; transform: scale(1); }
}

@media (max-width: 1024px) {
  .ink-weather {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ink-weather.is-loading .ink-weather__icon {
    animation: none;
  }
}
