/* TV signage. Sized in vw so it scales with any screen resolution.
   Always dark: less glare and burn-in on a screen that's on all day. */
:root {
  --bg: #0b1220;
  --panel: #131c2f;
  --line: #243250;
  --text: #eef2f8;
  --muted: #8d9ab3;
  --accent: #f5b83d;
  --scale: 1; /* shrunk by display.js when a busy day would overflow */
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  cursor: none;
}

.board {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.2vw;
  height: 100vh;
  padding: 1.2vw;
  box-sizing: border-box;
}

.loading {
  color: var(--muted);
  font-size: 1.4vw;
  margin: 1vw;
}

/* ---- Schedule ---- */

.schedule {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6vw;
  min-height: 0;
}

.day {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-radius: 0.8vw;
  overflow: hidden;
}

.day.today {
  box-shadow: inset 0 0 0 0.22vw var(--accent);
}

.day-head {
  padding: 0.8vw 0.5vw 0.7vw;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.day-name {
  font-size: 1.5vw;
  font-weight: 700;
  line-height: 1.2;
}

.today .day-name {
  color: var(--accent);
}

.day-date {
  font-size: 1.05vw;
  color: var(--muted);
}

.day-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: calc(0.45vw * var(--scale));
  padding: 0.5vw;
}

.shift {
  border-radius: 0.5vw;
  padding: calc(0.55vw * var(--scale)) 0.6vw;
}

.shift-name {
  font-size: calc(1.35vw * var(--scale));
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.shift-time {
  font-size: calc(1.1vw * var(--scale));
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.empty {
  margin-top: 1vw;
  text-align: center;
  color: var(--muted);
  font-size: 1.1vw;
}

/* ---- Weather ---- */

.weather {
  display: flex;
  flex-direction: column;
  gap: 1vw;
  min-height: 0;
  padding: 1.2vw;
  background: var(--panel);
  border-radius: 0.8vw;
  box-sizing: border-box;
}

.wx-place {
  font-size: 1.1vw;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wx-now {
  display: flex;
  align-items: center;
  gap: 0.8vw;
}

.wx-now-icon {
  font-size: 4.2vw;
  line-height: 1;
}

.wx-now-temp {
  font-size: 5vw;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wx-label {
  font-size: 1.5vw;
  font-weight: 600;
}

.wx-detail {
  font-size: 1.2vw;
  color: var(--muted);
  line-height: 1.5;
}

.wx-detail strong {
  color: var(--text);
  font-weight: 600;
}

.wx-days {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0.6vw 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.wx-day {
  display: grid;
  grid-template-columns: 3.4vw 2.4vw 1fr;
  align-items: center;
  gap: 0.5vw;
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.wx-day:last-child {
  border-bottom: 0;
}

.wx-day-name {
  font-size: 1.2vw;
  font-weight: 600;
}

.wx-day-icon {
  font-size: 1.9vw;
  text-align: center;
}

.wx-day-temps {
  text-align: right;
  font-size: 1.2vw;
  font-variant-numeric: tabular-nums;
}

.wx-day-lo {
  color: var(--muted);
}

.wx-day-rain {
  display: block;
  font-size: 1vw;
  color: #7cc4ff;
}

/* ---- Status (only shown when data is stale or failing) ---- */

.status {
  position: fixed;
  right: 1.2vw;
  bottom: 1.2vw;
  padding: 0.4vw 0.8vw;
  border-radius: 0.4vw;
  background: #7a2331;
  color: #fff;
  font-size: 0.9vw;
}
