/* Nafplio.in · Development: NullData.ch, Switzerland */
.nw-weather {
  padding-top: 36px;
  padding-bottom: 40px;
  min-width: 0;
}
.nw-heading {
  margin-bottom: 25px;
  max-width: 820px;
}
.nw-heading h1 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--navy, #083b66);
  margin-bottom: 12px;
}
.nw-location-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.3fr) auto;
  gap: 14px;
  align-items: end;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 18px;
  padding: 20px;
  min-width: 0;
}
.nw-location-form > div {
  min-width: 0;
}
.nw-location-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.5;
}
.nw-location-form input,
.nw-location-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 10px;
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 9px;
  color: var(--ink, #0e1320);
  background: var(--bg, #f4f6f9);
  font: 400 15px var(--body, Arial, sans-serif);
}
.nw-submit,
.nw-refresh,
.nw-retry {
  min-height: 46px;
  border-radius: 10px;
  padding: 11px 17px;
  background: var(--blue, #166bb2);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.nw-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
  min-height: 28px;
}
.nw-status {
  margin: 0;
  color: var(--muted, #667080);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.nw-status.nw-error {
  color: #a33a27;
}
.nw-retry {
  font-size: 12px;
  min-height: 42px;
  padding: 9px 13px;
}
.nw-results {
  min-width: 0;
}
.nw-place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 27px 0 17px;
}
.nw-place h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 5px;
}
.nw-place > div > p:last-child {
  font-size: 14px;
  color: var(--muted, #667080);
  margin: 0;
}
.nw-refresh {
  background: var(--card, #fff);
  color: var(--blue, #166bb2);
  border: 1px solid var(--line, #e5e8ee);
  flex: none;
}
.nw-stale {
  background: #fff4db;
  color: #715318;
  border: 1px solid #e9d7a4;
  border-radius: 12px;
  padding: 14px 17px;
  font-size: 14px;
  line-height: 1.7;
}
.nw-current {
  border-radius: 24px;
  background: var(--navy, #083b66);
  color: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.nw-current-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nw-estimate {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
  margin: 0 0 7px;
}
.nw-temp {
  font: 800 clamp(64px, 7vw, 100px) / 1 var(--display, Arial, sans-serif);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.nw-temp > span {
  font-size: 0.38em;
  letter-spacing: 0;
  margin-left: 4px;
  font-weight: 500;
}
.nw-current h3 {
  font-size: 22px;
  margin-bottom: 9px;
}
.nw-current-time {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}
.nw-current-icon {
  width: 124px;
  max-width: 28%;
  flex: none;
  color: #d9f1ff;
}
.nw-current-icon svg {
  display: block;
  width: 100%;
  height: auto;
}
.nw-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 18px;
  margin: 24px 0 0;
}
.nw-stats > div {
  min-width: 0;
}
.nw-stats dt {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 7px;
}
.nw-stats dd {
  font: 800 clamp(17px, 2.1vw, 24px) / 1.4 var(--display, Arial, sans-serif);
  margin: 0;
  overflow-wrap: anywhere;
}
.nw-stats small {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  opacity: 0.8;
  margin-top: 4px;
}
.nw-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.nw-section-title h3 {
  font-size: 24px;
}
.nw-hourly,
.nw-daily {
  margin-top: 30px;
  min-width: 0;
}
.nw-hour-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 12px;
  border-radius: 14px;
}
.nw-hour {
  flex: 0 0 138px;
  scroll-snap-align: start;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 14px;
  padding: 17px 12px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 8px;
  min-width: 0;
}
.nw-hour time {
  font-size: 13px;
  font-weight: 800;
}
.nw-hour svg {
  width: 45px;
  height: 45px;
  color: var(--blue, #166bb2);
}
.nw-hour strong {
  font-size: 25px;
}
.nw-hour > span {
  font-size: 11px;
  line-height: 1.6;
  min-height: 35px;
  display: flex;
  align-items: center;
}
.nw-hour small {
  font-size: 11px;
  color: var(--muted, #667080);
  line-height: 1.6;
}
.nw-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.nw-day {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 15px;
  padding: 17px 11px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
}
.nw-day h4 {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 6px;
}
.nw-day-note {
  font-size: 10px;
  color: var(--muted, #667080);
  min-height: 30px;
  line-height: 1.5;
  margin: 0 0 11px;
}
.nw-day svg {
  width: 49px;
  height: 49px;
  color: var(--blue, #166bb2);
  margin-bottom: 10px;
}
.nw-day-condition {
  font-size: 11px;
  line-height: 1.6;
  min-height: 36px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
}
.nw-range {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 4px;
}
.nw-range strong {
  font-size: 23px;
}
.nw-range span {
  font-size: 18px;
  color: var(--muted, #667080);
}
.nw-day > small {
  font-size: 10px;
  color: var(--muted, #667080);
}
.nw-day-wind {
  font-size: 10px;
  color: var(--soft, #3a4252);
  line-height: 1.6;
  margin: 12px 0 0;
}
.nw-attribution,
.nw-updated {
  font-size: 11px;
  color: var(--muted, #667080);
  line-height: 1.8;
  margin: 22px 0 0;
  overflow-wrap: anywhere;
}
.nw-updated {
  margin-top: 18px;
}
.nw-attribution a {
  color: var(--blue, #166bb2);
  text-decoration: underline;
}
.nw-missing {
  font-size: 14px;
  color: var(--muted, #667080);
  padding: 20px;
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 12px;
}
.nw-weather :focus-visible {
  outline: 3px solid #43a4e2;
  outline-offset: 3px;
}
.nw-weather [hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .nw-location-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nw-day-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .nw-weather {
    padding-top: 26px;
  }
  .nw-heading h1 {
    font-size: 30px;
  }
  .nw-location-form {
    padding: 16px;
    gap: 13px;
  }
  .nw-location-form input,
  .nw-location-form select {
    font-size: 16px;
  }
  .nw-current {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .nw-current-main {
    gap: 10px;
  }
  .nw-current-icon {
    width: 85px;
  }
  .nw-temp {
    font-size: 70px;
  }
  .nw-current h3 {
    font-size: 19px;
  }
  .nw-estimate {
    font-size: 12px;
  }
  .nw-stats {
    gap: 10px;
    margin-top: 20px;
  }
  .nw-stats dt {
    font-size: 11px;
  }
  .nw-stats dd {
    font-size: 16px;
  }
  .nw-stats small {
    font-size: 10px;
  }
  .nw-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .nw-day {
    padding: 16px 10px;
  }
  .nw-day-note {
    min-height: 0;
  }
  .nw-day-condition {
    min-height: 0;
  }
  .nw-section-title h3 {
    font-size: 22px;
  }
  .nw-place {
    gap: 12px;
  }
  .nw-place h2 {
    font-size: 27px;
  }
  .nw-refresh {
    font-size: 12px;
    padding: 10px 13px;
  }
  .nw-hour {
    flex-basis: 125px;
  }
}
@media (max-width: 460px) {
  .nw-location-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .nw-submit {
    width: 100%;
  }
  .nw-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nw-stats > div:last-child {
    grid-column: 1/-1;
  }
  .nw-current-icon {
    width: 68px;
  }
  .nw-temp {
    font-size: 64px;
  }
  .nw-place {
    align-items: start;
  }
  .nw-current h3 {
    font-size: 17px;
  }
  .nw-current-time {
    font-size: 12px;
  }
}
html[data-theme='dark'] .nw-heading h1 {
  color: #d9f1ff;
}
html[data-theme='dark'] .nw-stale {
  background: #3b321e;
  color: #f6d98e;
  border-color: #67532a;
}
html[data-theme='dark'] .nw-status.nw-error {
  color: #ffb6a8;
}

.nw-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
}
.nw-heading h1 {
  margin: 0;
}
.nw-location-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.nw-location-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  vertical-align: middle;
}
.nw-location-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 5px #16a34a18;
  animation: nw-location-pulse 2s ease-in-out infinite;
}
.nw-feedback:has(.nw-status[hidden]):has(.nw-retry[hidden]) {
  display: none;
}
@keyframes nw-location-pulse {
  50% {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nw-location-dot {
    animation: none;
  }
}
@media (max-width: 640px) {
  .nw-heading h1 {
    font-size: 28px;
  }
  .nw-heading > .nw-refresh {
    font-size: 12px;
  }
  .nw-location-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nw-location-form > .nw-submit {
    grid-column: 1/-1;
  }
}
html[data-theme='dark'] .nw-refresh {
  color: #a7d8ff;
}
