:root {
  --page: #edf2f8;
  --card: #dfe8f4;
  --white: #fff;
  --ink: #1a3a58;
  --muted: #647b90;
  --blue-950: #08385b;
  --blue-900: #0a4d7b;
  --blue-850: #0b5e95;
  --blue-800: #0d6fad;
  --line: rgba(31, 74, 111, .12);
  --red: #e42825;
  --cold: #176dd0;
  --shadow: 0 26px 55px rgba(17, 55, 87, .14);
  --soft-shadow: 0 10px 26px rgba(18, 65, 99, .08);
}

* { box-sizing: border-box; }
html { background: var(--page); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(92, 151, 204, .13), transparent 34rem),
    linear-gradient(180deg, #f7fafc 0, var(--page) 42%, #eaf1f7 100%);
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button, input, select, textarea { font: inherit; }

.page-shell {
  width: min(1380px, calc(100% - 52px));
  margin: 14px auto 34px;
}

.forecast-board {
  overflow: hidden;
  border: 1px solid rgba(8, 66, 108, .11);
  border-radius: 28px;
  background: #d9e6f2;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 392px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(135deg, #0b609d 0%, #1680b6 38%, #ecaf76 77%, #f6cb8f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 84% 26%, rgba(255, 211, 137, .92) 0 3rem, rgba(255, 203, 115, .30) 3.1rem 8rem, transparent 13rem),
    linear-gradient(180deg, rgba(5, 48, 82, .10) 0%, rgba(4, 44, 76, .18) 50%, rgba(3, 36, 61, .66) 100%),
    linear-gradient(118deg, #0b5e98 5%, #3e94c2 48%, #efb07b 84%, #fed29e 100%);
}

.hero--photo::before {
  background:
    linear-gradient(180deg, rgba(4, 39, 69, .15) 0%, rgba(4, 48, 82, .25) 54%, rgba(3, 37, 65, .72) 100%),
    linear-gradient(90deg, rgba(0, 49, 87, .45), rgba(7, 70, 113, .07) 58%, rgba(250, 163, 85, .16)),
    url("../img/kalivia-hero.jpg") center 46% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 31, 57, .30) 0%, transparent 42%, rgba(0, 31, 57, .09) 100%),
    linear-gradient(180deg, transparent 0 60%, rgba(3, 36, 61, .68) 100%);
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .48;
  background:
    radial-gradient(ellipse at 22% 28%, rgba(255,255,255,.68) 0 2%, transparent 8%),
    radial-gradient(ellipse at 31% 24%, rgba(255,255,255,.43) 0 2.2%, transparent 8%),
    radial-gradient(ellipse at 40% 31%, rgba(255,255,255,.38) 0 2%, transparent 9%);
}

.hero--photo .hero__sky,
.hero--photo .hero__hills { display: none; }

.hero__hills {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -95px;
  height: 235px;
  z-index: -2;
  border-radius: 44% 58% 0 0 / 38% 42% 0 0;
  transform: rotate(-1.2deg);
  background: linear-gradient(180deg, rgba(26, 74, 82, .8), rgba(11, 48, 62, .98));
  box-shadow: -16rem -2rem 0 -1rem rgba(44, 91, 93, .42), 19rem -3.2rem 0 -2rem rgba(25, 77, 82, .5);
}

.hero__hills--far {
  bottom: -76px;
  opacity: .48;
  transform: scale(1.12) rotate(1.5deg);
  background: linear-gradient(180deg, rgba(76, 104, 110, .44), rgba(29, 68, 76, .88));
}

.hero__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(1, 42, 73, .29);
  box-shadow: 0 8px 24px rgba(0, 29, 54, .14);
  text-decoration: none;
  backdrop-filter: blur(7px);
}

.brand__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd45f;
  box-shadow: 0 0 0 5px rgba(255, 212, 95, .14);
}

.brand strong { font-weight: 900; }

.date-badge {
  min-width: 136px;
  min-height: 76px;
  padding: 13px 16px 12px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 16px;
  background: rgba(3, 49, 86, .58);
  text-align: center;
  box-shadow: 0 9px 25px rgba(0, 35, 63, .15);
  backdrop-filter: blur(8px);
}

.date-badge strong {
  display: block;
  font-size: 1.42rem;
  line-height: 1;
  font-weight: 900;
}

.date-badge span {
  display: block;
  margin-top: 7px;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.hero__title {
  position: absolute;
  left: 50%;
  top: 41%;
  width: min(860px, calc(100% - 260px));
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 0 3px 20px rgba(0, 31, 55, .35);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  opacity: .96;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  line-height: .98;
  font-weight: 900;
  letter-spacing: .02em;
}

.hero__title > p {
  margin: 10px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.52rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .13em;
}

.location-line {
  margin-top: 14px;
  font-size: .78rem;
  font-weight: 700;
  opacity: .9;
}

.hero-credit {
  position: absolute;
  right: 12px;
  bottom: 8px;
  max-width: 38%;
  font-size: .6rem;
  opacity: .74;
  text-align: right;
}

.days-section {
  padding: 8px 12px 12px;
  background: linear-gradient(180deg, #c5d8ea 0%, #cfdeec 100%);
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.day-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.90);
  border-radius: 18px;
  background: linear-gradient(180deg, #a9cde8 0%, #d5e7f5 46%, #edf6fb 100%);
  box-shadow: var(--soft-shadow);
}

.day-card__head {
  padding: 12px 16px 12px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, #0a5a91 0%, #0a4a78 100%);
}

.day-card__head strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.day-card__head span {
  display: block;
  margin-top: 4px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.day-card__body { padding: 13px 15px 14px; }

.weather-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 200px;
  padding: 8px 0 6px;
}

.main-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 176px;
  padding: 8px 6px 8px 0;
}

.main-icon {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.forecast-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px 0 10px;
  color: #28445b;
  font-size: .97rem;
  line-height: 1.5;
  font-weight: 700;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.temps {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.temps__divider { width: 1px; height: 54px; background: var(--line); }
.temp-box { text-align: center; }

.temp-value {
  display: block;
  font-size: clamp(3rem, 4.2vw, 4.2rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.05em;
}

.temp-value--max { color: var(--red); }
.temp-value--min { color: var(--cold); }

.temp-label {
  display: block;
  margin-top: 4px;
  font-size: .68rem;
  font-weight: 900;
  color: #294761;
  letter-spacing: .05em;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 12px 10px;
}

.metric + .metric { border-left: 1px solid var(--line); }

.metric-symbol {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 0 0 1px rgba(11, 88, 145, .08);
}

.metric-symbol svg { width: 28px; height: 28px; }

.metric-copy span,
.metric-copy strong,
.metric-copy b,
.metric-copy small {
  display: block;
  line-height: 1.1;
}

.metric-copy span {
  font-size: .76rem;
  font-weight: 800;
  color: #314e63;
}

.metric-copy strong,
.metric-copy b {
  color: #163a58;
  font-size: 1.06rem;
  font-weight: 900;
}

.metric-copy b { margin-top: 2px; }
.metric--rain .metric-copy strong,
.metric--rain .metric-copy b { color: #186ac7; }

.metric-copy small {
  margin-top: 5px;
  font-size: .67rem;
  font-weight: 700;
  color: #6b8195;
}

.hourly-block {
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid rgba(10, 73, 119, .10);
  border-radius: 12px;
  background: rgba(255,255,255,.48);
}

.hourly-title {
  padding: 7px 11px;
  color: #fff;
  background: linear-gradient(90deg, #0b527f, #0d6296);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.hourly-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hour-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 10px 2px 8px;
}

.hour-cell + .hour-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(13, 83, 130, .09);
}

.hour-cell time {
  font-size: .60rem;
  font-weight: 800;
  color: #5f7688;
}

.hour-icon,
.hour-cell img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin: 2px 0;
}

.hour-cell strong {
  font-size: .78rem;
  font-weight: 900;
  color: #183d5b;
}

.day-card--loading {
  min-height: 610px;
  border-color: rgba(255,255,255,.82);
  background:
    linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 46%, transparent 58%) 0 0 / 220% 100%,
    var(--card);
  animation: shimmer 1.35s linear infinite;
}

@keyframes shimmer { to { background-position: -220% 0, 0 0; } }

.board-footer {
  padding: 14px 20px 18px;
  color: #5d7386;
  background: linear-gradient(180deg, #f8fbfd 0%, #edf3f8 100%);
  border-top: 1px solid rgba(12, 76, 119, .08);
  text-align: center;
}

.footer-main {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-size: .78rem;
}

.footer-main strong { color: #174b73; font-weight: 900; }
.footer-main span { font-weight: 700; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 4px;
  font-size: .62rem;
  line-height: 1.5;
  color: #7b8d9d;
  font-weight: 700;
}

.data-alert {
  width: min(780px, 100%);
  margin: 11px auto 0;
  padding: 10px 13px;
  border: 1px solid rgba(174, 81, 45, .19);
  border-radius: 11px;
  color: #7b402d;
  background: #fff2ea;
  font-size: .72rem;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .page-shell { width: min(100% - 24px, 1020px); margin-top: 10px; }
  .hero { min-height: 340px; }
  .hero__title { width: min(760px, calc(100% - 80px)); top: 50%; }
  .days-grid { grid-template-columns: 1fr; gap: 12px; }
  .day-card { display: grid; grid-template-columns: 195px minmax(0,1fr); }
  .day-card__head { display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
  .day-card__body { padding: 14px 16px; }
  .weather-summary { min-height: 158px; }
  .main-icon { width: 138px; height: 138px; }
  .day-card--loading { min-height: 360px; display: block; }
}

@media (max-width: 760px) {
  .page-shell { width: 100%; margin: 0; }
  .forecast-board { border-radius: 0; border-left: 0; border-right: 0; }
  .hero { min-height: 322px; }
  .hero__topbar { padding: 17px 15px 0; }
  .brand { min-height: 36px; padding-inline: 12px; font-size: .78rem; }
  .date-badge { min-width: 118px; min-height: 68px; padding: 10px 12px 9px; border-radius: 14px; }
  .date-badge strong { font-size: 1.15rem; }
  .date-badge span { font-size: .6rem; }
  .hero__title { top: 41%; width: calc(100% - 34px); }
  .eyebrow { font-size: .6rem; margin-bottom: 7px; letter-spacing: .11em; }
  .hero h1 { font-size: clamp(1.95rem, 9vw, 2.9rem); }
  .hero__title > p { font-size: .88rem; letter-spacing: .11em; }
  .location-line { font-size: .67rem; }
  .days-section { padding: 10px 10px 12px; }
  .days-grid { gap: 10px; }
  .day-card { display: block; border-radius: 16px; }
  .day-card__head { min-height: auto; padding: 11px 14px 10px; }
  .day-card__head strong { font-size: 1.16rem; }
  .day-card__head span { font-size: .74rem; }
  .day-card__body { padding: 14px 13px 12px; }
  .weather-summary { min-height: 164px; grid-template-columns: 44% 56%; }
  .main-icon { width: 120px; height: 120px; }
  .forecast-copy { font-size: .84rem; line-height: 1.46; }
  .temp-value { font-size: 2.85rem; }
  .metric-copy span { font-size: .72rem; }
  .metric-copy strong,
  .metric-copy b { font-size: .92rem; }
  .hour-cell img { width: 40px; height: 40px; }
  .hour-cell time { font-size: .56rem; }
  .hour-cell strong { font-size: .74rem; }
  .board-footer { padding: 15px 14px 18px; }
  .footer-main { flex-direction: column; gap: 1px; }
}

@media (max-width: 430px) {
  .weather-summary { grid-template-columns: 40% 60%; }
  .main-icon { width: 98px; height: 98px; }
  .forecast-copy { font-size: .78rem; }
  .metrics { grid-template-columns: 1fr; }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--line); }
  .metric { min-height: 70px; }
  .hourly-row { overflow-x: auto; grid-template-columns: repeat(6, 58px); justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* V0.4: weather icon collection + livelier meteorological hero */
.hero__sky {
  animation: cloudDrift 42s linear infinite alternate;
}

.hero__sky::before,
.hero__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__sky::before {
  opacity: .28;
  background:
    radial-gradient(ellipse at 16% 27%, rgba(255,255,255,.82) 0 4%, transparent 11%),
    radial-gradient(ellipse at 27% 23%, rgba(255,255,255,.55) 0 3.5%, transparent 10%),
    radial-gradient(ellipse at 39% 29%, rgba(255,255,255,.34) 0 3%, transparent 10%),
    radial-gradient(ellipse at 61% 18%, rgba(255,255,255,.22) 0 2.4%, transparent 8%);
  filter: blur(2px);
}

.hero__sky::after {
  opacity: .15;
  background:
    repeating-radial-gradient(ellipse at 69% 36%, transparent 0 66px, rgba(255,255,255,.55) 67px 68px, transparent 69px 95px);
  transform: rotate(-5deg) scale(1.08);
}

@keyframes cloudDrift {
  from { transform: translate3d(-6px,0,0) scale(1.01); }
  to { transform: translate3d(14px,-2px,0) scale(1.025); }
}

.main-icon {
  width: 178px;
  height: 178px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 8px rgba(26,61,92,.14));
}

.hour-icon,
.hour-cell img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 2px 2px rgba(32,72,106,.10));
}

.temp-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

.temp-icon {
  width: 43px;
  height: 43px;
  object-fit: contain;
  flex: 0 0 43px;
  filter: drop-shadow(0 2px 3px rgba(31,67,97,.12));
}

.temp-box > div { text-align: center; }

.metric-symbol--image {
  background: transparent;
  box-shadow: none;
  width: 52px;
  height: 58px;
  border-radius: 0;
}

.metric-symbol--image img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 3px 4px rgba(32,72,106,.12));
}

.metric--wind .metric-symbol--image img {
  width: 48px;
  height: 58px;
}

.metric--rain .metric-symbol--image img {
  width: 54px;
  height: 54px;
}

@media (max-width: 760px) {
  .main-icon { width: 132px; height: 132px; }
  .temp-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .metric-symbol--image,
  .metric-symbol--image img { width: 44px; height: 44px; }
  .hour-icon,
  .hour-cell img { width: 42px; height: 42px; }
}

/* V0.5: photographic hero + optical icon sizing + sky-gradient forecast body */
.hero {
  min-height: 382px;
}

.hero--photo::before {
  background:
    linear-gradient(180deg, rgba(2, 31, 56, .05) 0%, rgba(2, 37, 65, .08) 46%, rgba(2, 31, 55, .34) 100%),
    linear-gradient(90deg, rgba(0, 43, 78, .18) 0%, rgba(0, 34, 62, .02) 56%, rgba(255, 155, 66, .04) 100%),
    url("../img/kalivia-hero.jpg") center 48% / cover no-repeat;
}

.hero--photo::after {
  background:
    radial-gradient(ellipse at 50% 51%, rgba(0, 31, 57, .30) 0%, rgba(0, 31, 57, .20) 27%, transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0, 27, 50, .09) 58%, rgba(0, 27, 50, .30) 100%);
}

.hero--photo .hero__title {
  text-shadow:
    0 2px 3px rgba(0, 25, 45, .70),
    0 8px 24px rgba(0, 25, 45, .40);
}

.hero--photo .brand,
.hero--photo .date-badge {
  background: rgba(3, 45, 77, .50);
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 8px 26px rgba(0, 25, 45, .22);
}

/* Forecast field: sky-blue at top fading to a very light blue below. */
.day-card {
  background: linear-gradient(180deg, #aed8f5 0%, #c9e4f7 34%, #dcecf8 66%, #edf5fb 100%);
}

.day-card__body {
  background: linear-gradient(180deg, rgba(169, 215, 247, .92) 0%, rgba(202, 229, 247, .94) 35%, rgba(222, 238, 249, .96) 67%, rgba(239, 247, 252, .98) 100%);
  padding-top: 14px;
}

.weather-summary {
  min-height: 204px;
  padding: 8px 0 6px;
}

.main-icon-wrap {
  min-height: 188px;
  padding: 8px 8px 8px 2px;
}

.main-icon {
  width: 168px;
  height: 168px;
  filter: drop-shadow(0 8px 10px rgba(30, 73, 109, .16));
}

/* Optical, not mathematical, sizing: simple sun is visually larger than cloud/rain icons. */
.main-icon.wx-sunny { width: 148px; height: 148px; }
.main-icon.wx-partly { width: 170px; height: 170px; }
.main-icon.wx-mostly-cloudy,
.main-icon.wx-overcast,
.main-icon.wx-rain,
.main-icon.wx-rain-heavy,
.main-icon.wx-shower,
.main-icon.wx-storm,
.main-icon.wx-snow,
.main-icon.wx-sleet { width: 176px; height: 176px; }

.forecast-copy {
  padding: 4px 10px 4px 10px;
  font-size: .98rem;
  line-height: 1.54;
  font-weight: 700;
  color: #1f405b;
  text-align: justify;
  text-align-last: left;
}

.temps {
  margin-top: 1px;
  margin-bottom: 9px;
}

.temp-icon {
  width: 49px;
  height: 49px;
  flex-basis: 49px;
}

.metric {
  min-height: 88px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.metric-symbol--image {
  width: 60px;
  height: 62px;
}

.metric-symbol--image img {
  width: 60px;
  height: 60px;
}

.metric--wind .metric-symbol--image img {
  width: 58px;
  height: 64px;
}

.metric--rain .metric-symbol--image img {
  width: 61px;
  height: 61px;
}

.hourly-block {
  margin-top: 12px;
}

.hourly-row {
  min-height: 84px;
}

.hour-cell {
  padding-top: 9px;
  padding-bottom: 9px;
}

.hour-icon,
.hour-cell img {
  width: 51px;
  height: 51px;
}

.hour-icon.wx-sunny { width: 46px; height: 46px; margin-top: 4px; margin-bottom: 5px; }

.metrics,
.hourly-block {
  background: rgba(244, 250, 254, .22);
}

@media (max-width: 1080px) {
  .hero { min-height: 350px; }
  .weather-summary { min-height: 164px; }
  .main-icon { width: 142px; height: 142px; }
  .main-icon.wx-sunny { width: 126px; height: 126px; }
  .main-icon.wx-partly { width: 144px; height: 144px; }
  .main-icon.wx-mostly-cloudy,
  .main-icon.wx-overcast,
  .main-icon.wx-rain,
  .main-icon.wx-rain-heavy,
  .main-icon.wx-shower,
  .main-icon.wx-storm,
  .main-icon.wx-snow,
  .main-icon.wx-sleet { width: 148px; height: 148px; }
}

@media (max-width: 760px) {
  .hero { min-height: 324px; }
  .hero--photo::before { background-position: center 46%; }
  .weather-summary { min-height: 158px; }
  .main-icon { width: 124px; height: 124px; }
  .main-icon.wx-sunny { width: 110px; height: 110px; }
  .main-icon.wx-partly { width: 126px; height: 126px; }
  .main-icon.wx-mostly-cloudy,
  .main-icon.wx-overcast,
  .main-icon.wx-rain,
  .main-icon.wx-rain-heavy,
  .main-icon.wx-shower,
  .main-icon.wx-storm,
  .main-icon.wx-snow,
  .main-icon.wx-sleet { width: 130px; height: 130px; }
  .temp-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .metric-symbol--image,
  .metric-symbol--image img { width: 48px; height: 48px; }
  .metric--wind .metric-symbol--image img { width: 47px; height: 52px; }
  .metric--rain .metric-symbol--image img { width: 49px; height: 49px; }
  .hour-icon,
  .hour-cell img { width: 43px; height: 43px; }
}

/* V0.6: final polish requested after live preview */
.hero {
  min-height: 378px;
}

.hero--photo::before {
  background:
    linear-gradient(180deg, rgba(2, 31, 56, .06) 0%, rgba(2, 37, 65, .10) 44%, rgba(2, 31, 55, .32) 100%),
    linear-gradient(90deg, rgba(0, 43, 78, .16) 0%, rgba(0, 34, 62, .02) 56%, rgba(255, 155, 66, .05) 100%),
    url("../img/kalivia-hero.jpg") center 58% / cover no-repeat;
}

.hero__title {
  top: 35.5%;
  width: min(860px, calc(100% - 220px));
}

.hero h1 {
  font-size: clamp(2.7rem, 4.9vw, 4.45rem);
}

.hero__title > p {
  margin-top: 12px;
  font-size: clamp(1.04rem, 1.88vw, 1.58rem);
}

.date-badge {
  min-height: 80px;
  padding: 14px 16px 13px;
}

.date-badge span {
  font-size: .72rem;
  letter-spacing: .03em;
}

.days-section {
  padding: 10px 13px 13px;
  background: linear-gradient(180deg, #bdd2e3 0%, #c8d9e8 100%);
}

.days-grid {
  gap: 9px;
}

.day-card {
  background: linear-gradient(180deg, #a8cce7 0%, #d3e6f4 44%, #edf6fb 100%);
}

.day-card__head {
  padding: 13px 16px 14px;
}

.day-card__head span {
  margin-top: 5px;
}

.weather-summary {
  min-height: 206px;
}

.forecast-copy {
  padding: 2px 4px 2px 12px;
}

.metrics {
  background: rgba(244, 250, 254, .26);
}

.metric {
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 13px;
  min-height: 104px;
  padding: 13px 12px;
}

.metric-copy span {
  font-size: .73rem;
  line-height: 1.15;
}

.metric-copy strong,
.metric-copy b {
  font-size: 1.12rem;
  line-height: 1.08;
}

.metric-copy small {
  margin-top: 6px;
  font-size: .68rem;
}

.metric-symbol--image {
  width: 58px;
  height: 64px;
}

.metric-symbol--image img {
  width: 58px;
  height: 58px;
}

.metric--wind .metric-symbol--image img {
  width: 54px;
  height: 64px;
}

.metric--rain .metric-symbol--image img {
  width: 58px;
  height: 58px;
}

@media (max-width: 1080px) {
  .hero__title {
    top: 38%;
    width: min(760px, calc(100% - 80px));
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 320px;
  }

  .hero--photo::before {
    background-position: center 55%;
  }

  .hero__title {
    top: 35%;
    width: calc(100% - 34px);
  }

  .date-badge {
    min-height: 72px;
    padding: 11px 12px 10px;
  }

  .days-section {
    padding: 9px 9px 12px;
  }

  .metric {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    min-height: 94px;
    padding: 11px 10px;
  }

  .metric-copy span {
    font-size: .70rem;
  }

  .metric-copy strong,
  .metric-copy b {
    font-size: .96rem;
  }

  .metric-copy small {
    font-size: .64rem;
  }

  .metric-symbol--image,
  .metric-symbol--image img {
    width: 48px;
    height: 48px;
  }

  .metric--wind .metric-symbol--image img {
    width: 45px;
    height: 54px;
  }

  .metric--rain .metric-symbol--image img {
    width: 49px;
    height: 49px;
  }
}

/* V0.7: final optical balance + readability polish */

/* Slightly calmer main weather icons: preserve optical balance by family. */
.main-icon {
  width: 146px;
  height: 146px;
}

.main-icon.wx-sunny {
  width: 130px;
  height: 130px;
}

.main-icon.wx-partly {
  width: 150px;
  height: 150px;
}

.main-icon.wx-mostly-cloudy,
.main-icon.wx-overcast,
.main-icon.wx-rain,
.main-icon.wx-rain-heavy,
.main-icon.wx-shower,
.main-icon.wx-storm,
.main-icon.wx-snow,
.main-icon.wx-sleet {
  width: 156px;
  height: 156px;
}

/* Keep the 50/50 icon-copy split, but make justified Greek copy look less stretched. */
.forecast-copy {
  font-size: .96rem;
  line-height: 1.52;
  letter-spacing: -.006em;
  word-spacing: -.035em;
  hyphens: auto;
  overflow-wrap: normal;
}

/* Give wind/rain rows more breathing room without making them visually heavy. */
.metric {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 11px;
  min-height: 110px;
  padding: 14px 11px;
}

.metric-symbol--image {
  width: 54px;
  height: 62px;
}

.metric-symbol--image img {
  width: 54px;
  height: 54px;
}

.metric--wind .metric-symbol--image img {
  width: 51px;
  height: 61px;
}

.metric--rain .metric-symbol--image img {
  width: 55px;
  height: 55px;
}

.metric-copy span {
  margin-bottom: 3px;
  font-size: .75rem;
  line-height: 1.18;
}

.metric-copy strong,
.metric-copy b {
  font-size: 1.03rem;
  line-height: 1.12;
}

.metric-copy small {
  margin-top: 6px;
  font-size: .68rem;
  line-height: 1.25;
}

/* Slightly more readable footer while remaining deliberately quiet. */
.board-footer {
  padding: 16px 20px 19px;
}

.footer-main {
  font-size: .82rem;
}

.footer-meta {
  margin-top: 5px;
  font-size: .66rem;
}

/* Softer glass date badge over the photographic hero. */
.hero--photo .date-badge {
  background: rgba(8, 46, 75, .48);
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 10px 28px rgba(0, 26, 47, .24);
  backdrop-filter: blur(11px) saturate(115%);
  -webkit-backdrop-filter: blur(11px) saturate(115%);
}

@media (max-width: 1080px) {
  .main-icon { width: 128px; height: 128px; }
  .main-icon.wx-sunny { width: 114px; height: 114px; }
  .main-icon.wx-partly { width: 130px; height: 130px; }
  .main-icon.wx-mostly-cloudy,
  .main-icon.wx-overcast,
  .main-icon.wx-rain,
  .main-icon.wx-rain-heavy,
  .main-icon.wx-shower,
  .main-icon.wx-storm,
  .main-icon.wx-snow,
  .main-icon.wx-sleet { width: 136px; height: 136px; }
}

@media (max-width: 760px) {
  .main-icon { width: 112px; height: 112px; }
  .main-icon.wx-sunny { width: 100px; height: 100px; }
  .main-icon.wx-partly { width: 114px; height: 114px; }
  .main-icon.wx-mostly-cloudy,
  .main-icon.wx-overcast,
  .main-icon.wx-rain,
  .main-icon.wx-rain-heavy,
  .main-icon.wx-shower,
  .main-icon.wx-storm,
  .main-icon.wx-snow,
  .main-icon.wx-sleet { width: 118px; height: 118px; }

  .metric {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 9px;
    min-height: 98px;
    padding: 12px 9px;
  }

  .metric-symbol--image,
  .metric-symbol--image img { width: 46px; height: 46px; }
  .metric--wind .metric-symbol--image img { width: 43px; height: 52px; }
  .metric--rain .metric-symbol--image img { width: 47px; height: 47px; }

  .footer-main { font-size: .78rem; }
  .footer-meta { font-size: .62rem; }
}


/* V0.7.1 hotfix: prevent ugly inter-word stretching in forecast copy. */
.forecast-copy {
  text-align: left;
  text-align-last: auto;
  text-wrap: pretty;
  word-spacing: normal;
  letter-spacing: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}
