/* Widok pogody na zywo (js/live-view.js). Karty to .chart-card z tokens.css; wymiary w px
   odpowiadaja ukladowi z Robloxa przy kolumnie 470 px (UIListLayout z odstepem 10). */
.lv-view {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font);
  font-weight: var(--w-regular);
  color: var(--text);
  /* Podpis ekstremum przy godzinie 23 wystaje za karte; kolumna go ucina, jak ScrollingFrame. */
  overflow-x: clip;
}
.lv-view .chart-card {
  box-sizing: border-box;
}
/* Naglowek 18 px jak etykieta tytulu w Robloxie; podwojne spacje w tekstach maja zostac. */
.lv-view .chart-card__head {
  line-height: 18px;
}
.lv-view .chart-card__title {
  white-space: nowrap;
}
.lv-view .chart-card__summary {
  white-space: pre-wrap;
}

.lv-legend,
.lv-attribution {
  min-height: 18px;
  line-height: 18px;
  white-space: pre-wrap;
}
.lv-legend {
  font-size: 12px;
  color: var(--muted);
}
.lv-attribution {
  font-size: 11px;
  color: var(--faint);
}

/* ---- wykresy godzinowe (SVG, viewBox 440 x 136; pole wykresu 406 x 110) ---- */
.lv-view svg text {
  font-family: var(--font);
  dominant-baseline: central;
}
.lv-axis {
  fill: var(--faint);
  font-size: 10px;
  font-weight: var(--w-regular);
}
.lv-axis--x {
  text-anchor: middle;
}
.lv-axis--y {
  text-anchor: end;
}
.lv-value {
  font-size: 11px;
  font-weight: var(--w-bold);
  text-anchor: middle;
}
.lv-grid {
  stroke: var(--line);
  stroke-width: 1;
  opacity: 0.65;
  shape-rendering: crispEdges;
}
.lv-fill {
  opacity: 0.14;
}
.lv-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lv-line--dashed {
  stroke-dasharray: 7 6;
  stroke-linecap: butt;
}
.lv-dot {
  stroke-width: 1.8;
}
.lv-arrow {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lv-grid,
.lv-line,
.lv-arrow {
  vector-effect: non-scaling-stroke;
}

/* ---- kafelki odczytu ("teraz" 236 px, poludnie 212 px) ---- */
.lv-now {
  min-height: 236px;
}
.lv-reading {
  min-height: 212px;
}
/* W Robloxie ta linia jest ucinana i po odslonieciu gubi czas punktu gracza; tutaj sie zawija. */
.lv-sun {
  min-height: 18px;
  margin-top: 5px;
  font-size: 13px;
  font-weight: var(--w-bold);
  line-height: 18px;
  color: var(--amber);
  white-space: pre-wrap;
}
.lv-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}
.lv-now .lv-tiles {
  margin-top: 10px;
}
.lv-tile {
  position: relative;
  box-sizing: border-box;
  height: 66px;
  padding: 7px 10px 0;
  border-radius: 8px;
  background: var(--panel-strong);
  white-space: nowrap;
}
.lv-tile__heading {
  font-size: 10px;
  font-weight: var(--w-bold);
  line-height: 12px;
  color: var(--muted);
}
.lv-tile__value {
  margin-top: 2px;
  font-size: 20px;
  font-weight: var(--w-black);
  line-height: 24px;
}
.lv-tile__sub {
  margin-top: 1px;
  font-size: 11px;
  line-height: 14px;
  color: var(--faint);
}
/* Dwie klasy, zeby wygrac z ".chart-card svg { width: 100% }". */
.lv-view .lv-tile__arrow {
  position: absolute;
  top: 25px;
  right: 8px;
  width: 24px;
  height: 24px;
}

/* ---- prognoza na kolejne dni (kolumny 164 px) ---- */
.lv-days {
  display: flex;
  gap: 6px;
  height: 164px;
  margin-top: 8px;
}
.lv-day {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 50%, transparent);
}
.lv-day--first {
  background: var(--panel-strong);
}
.lv-day__label,
.lv-day__high,
.lv-day__low,
.lv-day__rain,
.lv-day__extra {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: var(--w-bold);
  line-height: 14px;
  white-space: nowrap;
}
.lv-day__label {
  top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.lv-day__track {
  position: absolute;
  top: 42px;
  bottom: 54px;
  left: calc(50% - 4px);
  width: 8px;
}
.lv-day__bar {
  position: absolute;
  right: 0;
  left: 0;
  border-radius: 4px;
  background: linear-gradient(var(--amber), var(--blue));
}
.lv-day__high {
  font-size: 12px;
  color: var(--amber);
  transform: translate(-50%, calc(-100% - 2px));
}
.lv-day__low {
  font-size: 12px;
  color: var(--blue);
  transform: translate(-50%, 2px);
}
.lv-day__rain {
  bottom: 22px;
  font-size: 11px;
  color: var(--faint);
}
.lv-day__rain--wet {
  color: var(--blue);
}
.lv-day__extra {
  bottom: 6px;
  font-size: 10px;
  font-weight: var(--w-regular);
  color: var(--faint);
}
.lv-day__extra--you {
  font-weight: var(--w-bold);
  color: var(--text);
}
