/* Styles for the week ahead screen. Same frame as the other info screens. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap; src: url("/weather/screen/assets/fonts/roboto-latin.woff2") format("woff2"); }
html { font-size: 20px; }
:root { --bg: #eeece6; --panel: #ffffff; --panel-2: #f5f4f0; --ink: #14161b; --muted: #555c68; --rule: #dcd9d1; --warn: #a85800; --logo: #001489;
  --good: #0f7a43; --maybe: #a85800; --bad: #0033a0; --rain: #0a6fb8; --p1: #c9d9a8; --p2: #e0a030; --p3: #b3261e; }
html.dark { --bg: #0d0f13; --panel: #161a22; --panel-2: #1d222b; --ink: #f4f5f7; --muted: #a3abb9; --rule: #2a303b; --warn: #ffb020; --logo: #ffffff;
  --good: #4ade80; --maybe: #ffb020; --bad: #8fb0ff; --rain: #5fb4f0; --p1: #5d6b3e; --p2: #e0a030; --p3: #ff8a80; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { overflow: hidden; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden;
  font-family: Roboto, system-ui, sans-serif; font-variant-numeric: tabular-nums; display: grid; grid-template-columns: 1920px; grid-template-rows: 92px 1fr 43.2px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--rule); }
.title { display: flex; align-items: center; gap: 23px; }
.logo { height: 2.9rem; aspect-ratio: 441 / 120; flex: none; background: var(--logo);
  -webkit-mask: url("/weather/screen/ecolint-logo.png") center / contain no-repeat; mask: url("/weather/screen/ecolint-logo.png") center / contain no-repeat; }
.hdr-sep { width: 2px; height: 2.6rem; background: var(--rule); flex: none; }
.title h1 { margin: 0; line-height: 1; font-size: 2.5rem; font-weight: 900; letter-spacing: -0.02em; }
.title .date { font-size: 1.5rem; color: var(--muted); font-weight: 500; }
.badge { font-size: 1.3rem; font-weight: 900; letter-spacing: 0.08em; color: var(--bg); background: var(--warn); border-radius: 0.5rem; padding: 0.3rem 0.8rem; align-self: center; }
.clock { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.02em; }
.clock .secs { font-size: 1.5rem; color: var(--muted); margin-left: 0.3rem; font-weight: 600; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 38px; font-size: 1.05rem; color: var(--muted); border-top: 1px solid var(--rule); white-space: nowrap; overflow: hidden; }
footer.stale #status { color: var(--warn); font-weight: 800; }

main { display: grid; grid-template-rows: 236px 1fr 190px; gap: 20px; padding: 26px 38px; min-height: 0; }
.box { background: var(--panel); border: 1px solid var(--rule); border-radius: 1.3rem; overflow: hidden; }
.label { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.holding { grid-row: 1 / -1; display: grid; place-items: center; font-size: 2.3rem; font-weight: 700; color: var(--muted); }

/* The three questions: lunch, the way home, the morning journey. */
.asks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ask .label { font-size: 1.2rem; letter-spacing: 0.06em; white-space: nowrap; }
.ask { padding: 1.1rem 1.4rem; display: grid; grid-template-rows: auto 1fr auto; border-left: 14px solid var(--k); }
.ask.good { --k: var(--good); } .ask.maybe { --k: var(--maybe); } .ask.bad { --k: var(--bad); } .ask.none { --k: var(--rule); }
.ask .verdict { font-size: 3.1rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; align-self: center; color: var(--k); }
.ask.none .verdict { color: var(--muted); font-size: 2rem; }
.ask .detail { font-size: 1.45rem; font-weight: 600; color: var(--muted); }

/* Five school days side by side. */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; min-height: 0; }
.day { padding: 1rem 1.2rem; display: grid; grid-template-rows: auto auto 1fr auto auto; min-height: 0; position: relative; }
.day .name { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 0.6rem; white-space: nowrap; }
.day .name small { font-size: 1.15rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.day .sky { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.5rem; }
.day .sky svg { width: 84px; height: 84px; flex: none; }
.day .sky .word { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.day .temps { font-size: 3.6rem; font-weight: 900; letter-spacing: -0.04em; align-self: center; white-space: nowrap; }
.day .temps small { font-size: 1.9rem; font-weight: 600; color: var(--muted); margin-left: 0.6rem; letter-spacing: -0.02em; }
.day .facts { font-size: 1.15rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.day .facts b { color: var(--ink); font-weight: 800; }
.hours { margin-top: 0.6rem; }
.hours .bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 54px; border-bottom: 2px solid var(--rule); }
.hours .bars i { display: block; background: var(--rain); border-radius: 3px 3px 0 0; min-height: 2px; opacity: 0.9; }
.hours .bars i.lunch { outline: 2px solid var(--ink); outline-offset: 1px; }
.hours .axis { display: flex; justify-content: space-between; font-size: 0.92rem; font-weight: 600; color: var(--muted); margin-top: 0.2rem; }

/* Along the bottom: the pollen. */
.foot { display: grid; min-height: 0; }
.pollen { padding: 1rem 1.3rem; }
.pollen .off { font-size: 1.6rem; font-weight: 700; margin-top: 0.7rem; line-height: 1.3; } .pollen .off small { display: block; font-size: 1.2rem; font-weight: 500; color: var(--muted); margin-top: 0.2rem; }
.ptable { display: grid; grid-template-columns: 8rem repeat(var(--n), 1fr); gap: 5px 10px; margin-top: 0.4rem; align-items: center; font-size: 1.1rem; font-weight: 700; }
.ptable .h { color: var(--muted); font-weight: 600; text-align: center; }
.ptable .c { height: 1.25rem; border-radius: 0.3rem; background: var(--panel-2); text-align: center; font-size: 0.9rem; line-height: 1.25rem; font-weight: 800; }
.ptable .c.l1 { background: var(--p1); color: #14161b; } .ptable .c.l2 { background: var(--p2); color: #14161b; } .ptable .c.l3 { background: var(--p3); color: #fff; }
