/* The Break Room Screen: a 1920 x 1080 TV read from across a room. The same system as the site: Parkinsans, a
   white page, the warm grey column for today's list with the clock at its head, and one blue thing per screen (the
   countdown, because a deadline is the screen's promise). A customer's accent_color from the Sheet replaces the blue.
   Nothing under 30px. Light by default; data-theme="dark" for a dark room. No blur, no shadows, no motion but the
   slide change, so a Raspberry Pi stays smooth. */
@font-face { font-family: "Parkinsans"; src: url("/fonts/parkinsans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
:root {
  --page: #ffffff; --side: #f3f2f0; --ink: #26231f; --muted: #5c564f; --hair: #dedad4; --accent: #005bfd;
  --font: "Parkinsans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] { --page: #1c1b19; --side: #2a2825; --ink: #f4f2ee; --muted: #b3ada5; --hair: #45423d; --accent: #5c93ff; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { background: var(--page); color: var(--ink); font: 400 30px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
#main { height: 100%; }
.screen {
  display: grid; height: 100vh;
  grid-template-columns: 60fr 40fr; grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "top side" "main side" "ticker side" "foot side";
  column-gap: 0;
}
/* the business name and the demo badge, top left */
.top { grid-area: top; display: flex; align-items: center; gap: 24px; padding: 56px 72px 0; min-width: 0; }
.biz { display: flex; align-items: center; gap: 24px; min-width: 0; }
.logo { max-height: 72px; width: auto; }
h1 { margin: 0; font: 600 44px/1.1 var(--font); color: var(--ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-badge { flex: none; padding: 4px 14px; border: 2px solid var(--hair); border-radius: 8px; color: var(--muted); font: 600 24px/1.3 var(--font); }
/* the clock and the weather live at the head of the side column (screen.js moves them there) */
.clock { text-align: left; }
.clock b { display: block; font: 600 92px/1 var(--font); color: var(--ink); letter-spacing: -.03em; }
.clock span { display: block; margin-top: 10px; font-size: 32px; color: var(--muted); }
.weather { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 0 14px; align-items: baseline; }
.weather b { font: 600 30px/1.3 var(--font); color: var(--ink); }
.weather span { font-size: 30px; color: var(--ink); }
.weather span + span { color: var(--muted); }

.main { grid-area: main; min-width: 0; min-height: 0; overflow: hidden; padding: 0 72px; }
.side { grid-area: side; min-width: 0; min-height: 0; overflow: hidden; padding: 56px 64px 0; background: var(--side); }
.loading { color: var(--muted); }
.slide { animation: arrive .5s ease-out both; }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide { animation: none; } }
.kicker { margin: 40px 0 8px; font: 600 30px/1.2 var(--font); color: var(--muted); }
.slide h2 { margin: 0 0 24px; font: 600 64px/1.1 var(--font); color: var(--ink); letter-spacing: -.02em; }
.body { margin: 0; font-size: 36px; line-height: 1.4; max-width: 26em; color: var(--ink); }
.ann.high h2 { color: var(--accent); }
.pic { display: block; max-height: 340px; max-width: 100%; margin-top: 28px; }
.also { list-style: none; margin: 36px 0 0; padding: 0; font-size: 30px; color: var(--muted); }
.also li { padding: 10px 0; border-top: 2px solid var(--hair); }
.also li::before { content: "Also: "; }
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; }
.week li { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 2px solid var(--hair); font-size: 28px; line-height: 1.3; }
.week li.today { border-top: 4px solid var(--ink); }
.week b { font: 600 34px/1.1 var(--font); color: var(--ink); }
.week b i { font: 600 24px var(--font); color: var(--accent); margin-left: 8px; font-style: normal; }
.week span { color: var(--ink); }
.week strong { display: block; color: var(--ink); font-weight: 600; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.people li { padding: 18px 0; border-top: 2px solid var(--hair); }
.people b { display: block; font: 600 42px/1.1 var(--font); color: var(--ink); letter-spacing: -.01em; }
.people span { display: block; margin-top: 4px; font-size: 30px; color: var(--muted); }
.countdown { display: flex; align-items: baseline; gap: 30px; margin: 0 0 24px; }
.countdown b { font: 700 150px/.95 var(--font); color: var(--accent); letter-spacing: -.04em; white-space: nowrap; }
.countdown span { font: 600 46px/1.1 var(--font); color: var(--ink); letter-spacing: -.015em; max-width: 10em; }
.rem .body { font-size: 30px; color: var(--muted); margin: 0 0 20px; max-width: 30em; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 0 28px; padding: 12px 0 14px; border-top: 2px solid var(--hair); font-size: 30px; }
.list b { font-weight: 600; color: var(--ink); font-size: 34px; }
.list span { grid-column: 1; color: var(--muted); font-size: 28px; }
.list i { grid-column: 2; grid-row: 1 / span 2; align-self: start; font-style: normal; font-size: 26px; font-weight: 600; color: var(--muted); }
.safe .countdown b { color: var(--ink); }

.side h2 { margin: 56px 0 8px; font: 600 40px/1.1 var(--font); color: var(--ink); letter-spacing: -.015em; }
.side h2 + h2, .side ul + h2, .side p + h2 { margin-top: 48px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { padding: 14px 0 16px; border-top: 2px solid var(--hair); font-size: 30px; line-height: 1.35; }
.side li b { display: block; font-weight: 600; color: var(--ink); font-size: 32px; }
.side li span { display: block; color: var(--muted); }
.side li.due b { color: var(--accent); }
.side .upcoming li { display: grid; grid-template-columns: 150px 1fr; gap: 0 20px; align-items: baseline; }
.side .upcoming b { grid-row: 1 / span 3; }
.quiet { margin: 0; color: var(--muted); }

/* the foot of the main column: the ticker line, the slide dots and the time of the last update */
.ticker { grid-area: ticker; margin: 0 72px; padding: 20px 0 0; border-top: 2px solid var(--hair); overflow: hidden; }
.ticker p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 30px; color: var(--ink); }
.dots { grid-area: foot; align-self: end; display: flex; gap: 14px; align-items: center; margin: 0 72px; padding: 24px 0 44px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--hair); }
.dots i.on { background: var(--ink); }
.updated { grid-area: foot; align-self: end; justify-self: end; margin: 0 72px; padding: 24px 0 44px; font-size: 26px; color: var(--muted); }
.updated.stale { color: var(--ink); font-weight: 600; }
#screen { transition: transform 2s linear; }

/* smaller than a TV (a laptop checking the Sheet, a phone): everything stacks and shrinks */
@media (max-width: 1400px) {
  body { font-size: 22px; }
  .top { padding: 28px 32px 0; } .main { padding: 0 32px; } .side { padding: 28px 32px 0; }
  .ticker, .dots, .updated { margin: 0 32px; } .dots, .updated { padding: 16px 0 24px; }
  h1 { font-size: 32px; } .clock b { font-size: 56px; } .clock span { font-size: 22px; } .weather b, .weather span { font-size: 22px; }
  .kicker { margin-top: 24px; font-size: 20px; } .slide h2 { font-size: 40px; } .body { font-size: 24px; }
  .week li { font-size: 18px; } .week b { font-size: 24px; } .week b i { font-size: 16px; }
  .people b { font-size: 28px; } .people span { font-size: 20px; }
  .countdown b { font-size: 100px; } .countdown span { font-size: 28px; }
  .list li { font-size: 20px; } .list b { font-size: 22px; } .list i { font-size: 16px; } .rem .body { font-size: 22px; }
  .side h2 { margin-top: 28px; font-size: 26px; } .side li { font-size: 20px; } .side li b { font-size: 22px; } .side .upcoming li { grid-template-columns: 100px 1fr; }
  .ticker p { font-size: 20px; } .demo-badge { font-size: 16px; padding: 3px 10px; } .updated { font-size: 16px; }
}
@media (max-width: 900px) {
  html, body { height: auto; overflow: visible; }   /* the page scrolls like any page, not a region inside it */
  .screen { height: auto; min-height: 100vh; grid-template-columns: 1fr; grid-template-areas: "top" "main" "ticker" "foot" "side"; }
  .top { flex-wrap: wrap; }
  .side { padding-bottom: 28px; }
  .week { grid-template-columns: 1fr; } .people { grid-template-columns: 1fr; }
  .countdown { flex-wrap: wrap; }
}
