/* ── Sky Card: site-matched palette ── */
.sky-card, .sky-card * {
  /* Site colors from DesertWeather.com */
  --dw-navy:     #202F39;   /* site header/dark text */
  --dw-navy2:    #2d4050;   /* slightly lighter navy */
  --dw-red:      #cc0000;   /* high temp red */
  --dw-blue:     #0000cc;   /* low temp blue */
  --dw-orange:   #e07800;   /* UV / warning orange */
  --dw-bg:       #ffffff;   /* white page bg */
  --dw-surface:  #f2f4f6;   /* light grey surface */
  --dw-surface2: #e8ecef;   /* slightly darker surface */
  --dw-border:   #d0d6db;   /* border grey */
  --dw-text:     #202F39;   /* primary text */
  --dw-muted:    #2e3d47;   /* secondary text — darkened */
  --dw-ghost:    #4a5a66;   /* tertiary / labels — darkened */
  --dw-accent:   #2d6a9f;   /* link blue accent */
  --font-dm:     'DM Sans', sans-serif;
  --card-radius: 10px;
  --card-radius-sm: 7px;
}

@keyframes sc-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sc-pip { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* ── Master card — full width, top padding, matching side spacing ── */
.sky-card {
  width: 100%;
  margin: 0rem 0 2.5rem 0;
  background: var(--dw-bg);
  border: 0px solid var(--dw-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  font-family: var(--font-dm);
  color: var(--dw-text);
  opacity: 0;
  animation: sc-rise 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
  box-sizing: border-box;
}
.sky-card *, .sky-card *::before, .sky-card *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Hero band — white, row 1 ── */
.sky-card .hero-band {
  padding: 1.25rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  background: var(--dw-bg);
  border-bottom: 1px solid var(--dw-border);
}
.sky-card .station-line {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dw-ghost);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sky-card .live-pip {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3a9e60;
  animation: sc-pip 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
.sky-card .temp-display {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  line-height: 1;
  padding-top: 15px;
}
.sky-card .temp-big {
  font-size: 80px;
  font-weight: 400;
  color: var(--dw-navy);
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-left: 0px;
}
.sky-card .temp-deg {
  font-size: 28px;
  font-weight: 200;
  color: var(--dw-muted);
  align-self: flex-start;
  margin-top: 10px;
}
.sky-card .temp-arrow { margin-left: 0.5rem; align-self: center; }
.sky-card .condition-line {
  margin-top: 0.5rem;
  font-size: 16px;
  font-weight: 300;
  color: var(--dw-muted);
}
.sky-card .feels-line {
  margin-top: 0.25rem;
  font-size: 12px;
  color: var(--dw-ghost);
}
.sky-card .feels-line b { color: var(--dw-muted); font-weight: 500; }

/* Hero right */
.sky-card .hero-right { text-align: right; padding-top: 0.25rem; }
.sky-card .hl-group { margin-bottom: 0.6rem; }
.sky-card .hl-val {
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.sky-card .hl-val.hot  { color: var(--dw-red); }
.sky-card .hl-val.cool { color: var(--dw-blue); }
.sky-card .hl-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dw-ghost);
  margin-top: 2px;
}
.sky-card .hl-time { font-size: 11px; color: var(--dw-ghost); font-weight: 500; }
.sky-card .timestamp-line { font-size: 13px; color: var(--dw-ghost); margin-top: 0.75rem; font-weight: 500; }
.sky-card .timestamp-line span { color: var(--dw-muted); }

/* Sub-card grid — grey row */
.sky-card .sub-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 0;
  background: var(--dw-surface);
  border-bottom: 1px solid var(--dw-border);
}
.sky-card .sub-card {
  background: var(--dw-surface);
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--dw-border);
  opacity: 0;
  animation: sc-rise 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}
.sky-card .sub-card:last-child { border-right: none; }
.sky-card .sub-card:nth-child(1) { animation-delay: 0.15s; }
.sky-card .sub-card:nth-child(2) { animation-delay: 0.22s; }
.sky-card .sub-card:nth-child(3) { animation-delay: 0.29s; }
.sky-card .sub-card:nth-child(4) { animation-delay: 0.36s; }
.sky-card .sub-card:nth-child(5) { animation-delay: 0.43s; }
.sky-card .sub-card:nth-child(6) { animation-delay: 0.50s; }
.sky-card .sub-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dw-ghost);
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--dw-surface2);
  padding-bottom: 0rem;
}
.sky-card .sub-val {
  font-size: 28px;
  font-weight: 500;
  color: var(--dw-navy);
  line-height: 1.15;
  margin-top: 0.35rem;
}
.sky-card .sub-unit { font-size: 12px; font-weight: 500; color: var(--dw-muted); }
.sky-card .sub-detail { font-size: 11px; color: var(--dw-ghost); margin-top: 0.3rem; line-height: 1.6; font-weight: 400; }
.sky-card .sub-detail b { color: var(--dw-muted); font-weight: 600; }
.sky-card .wind-dir-badge {
  display: inline-block;
  background: var(--dw-surface2);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dw-navy);
  margin-right: 2px;
}

/* Extra row — white row */
.sky-card .extra-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  border-bottom: 1px solid var(--dw-border);
  opacity: 0;
  animation: sc-rise 0.7s cubic-bezier(0.22,1,0.36,1) 0.60s forwards;
}
.sky-card .extra-cell {
  background: var(--dw-bg);
  padding: 0.75rem 1.1rem;
  border-right: 1px solid var(--dw-border);
}
.sky-card .extra-cell:last-child { border-right: none; }
.sky-card .extra-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--dw-ghost);
  margin-bottom: 4px;
}
.sky-card .extra-val { font-size: 21px; font-weight: 500; color: var(--dw-navy); line-height: 1; }
.sky-card .extra-unit { font-size: 11px; color: var(--dw-muted); font-weight: 500; }
.sky-card .extra-sub { font-size: 10px; color: var(--dw-ghost); margin-top: 3px; font-weight: 400; }

/* Rain band — grey row */
.sky-card .rain-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  border-bottom: 1px solid var(--dw-border);
  opacity: 0;
  animation: sc-rise 0.7s cubic-bezier(0.22,1,0.36,1) 0.55s forwards;
}
.sky-card .rain-cell {
  padding: 0.75rem 1.1rem;
  border-right: 1px solid var(--dw-border);
  background: var(--dw-surface);
}
.sky-card .rain-cell:last-child { border-right: none; }
.sky-card .rain-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dw-ghost);
  margin-bottom: 0.3rem;
  border-bottom: 1px solid var(--dw-surface2);
  padding-bottom: 0rem;
}
.sky-card .rain-val { font-size: 22px; font-weight: 500; color: var(--dw-navy); line-height: 1.2; margin-top: 0.3rem; }
.sky-card .rain-unit { font-size: 11px; color: var(--dw-muted); font-weight: 500; }
.sky-card .rain-sub { font-size: 10px; color: var(--dw-ghost); margin-top: 3px; font-weight: 400; }

/* Info strip — white row */
.sky-card .info-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.1rem;
  background: var(--dw-bg);
  border-bottom: 1px solid var(--dw-border);
  opacity: 0;
  animation: sc-rise 0.7s cubic-bezier(0.22,1,0.36,1) 0.65s forwards;
}
.sky-card .info-strip-left { display: flex; gap: 1.5rem; align-items: center; }
.sky-card .info-item { font-size: 11px; color: var(--dw-ghost); }
.sky-card .info-item b { color: var(--dw-muted); font-weight: 500; }
.sky-card .uv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
}
.sky-card .uv-num { font-size: 14px; font-weight: 500; }

/* Disclaimer — grey row */
.sky-card .disclaimer {
  padding: 0.4rem 1.1rem;
  font-size: 10px;
  color: var(--dw-ghost);
  background: var(--dw-surface);
  opacity: 0;
  animation: sc-rise 0.7s cubic-bezier(0.22,1,0.36,1) 0.72s forwards;
}