/* Styles for the Chart of the day 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; }
html.dark { --bg: #0d0f13; --panel: #161a22; --panel-2: #1d222b; --ink: #f4f5f7; --muted: #a3abb9; --rule: #2a303b; --warn: #ffb020; --logo: #ffffff; }
* { 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; }

/* The chart is square, as Our World in Data draws it, and is shown whole and unaltered on white, whatever the theme. */
main { display: grid; grid-template-columns: 892px minmax(0, 1fr); gap: 26px; 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-column: 1 / -1; display: grid; place-items: center; text-align: center; font-size: 2.3rem; font-weight: 700; color: var(--muted); }
.picture { height: 892px; background: #fff; display: grid; place-items: center; }
.picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.picture .failed { padding: 3rem; font-size: 1.6rem; font-weight: 600; color: #555c68; line-height: 1.4; text-align: center; }
.side { display: grid; grid-template-rows: 1fr auto; gap: 20px; height: 892px; min-height: 0; }
.words { padding: 1.4rem 1.6rem 1.2rem; display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.words h2 { margin: 0; font-size: 2.3rem; line-height: 1.1; font-weight: 900; letter-spacing: -0.025em; }
.words .text { margin-top: 0.9rem; min-height: 0; overflow: hidden; }
.words .text p { margin: 0 0 0.75rem; font-size: 1.38rem; line-height: 1.36; font-weight: 500; color: var(--muted); }
.by { display: grid; grid-template-columns: 1fr auto; gap: 1.4rem; align-items: center; border-top: 1px solid var(--rule); padding-top: 0.8rem; }
.by .who { font-size: 1.25rem; font-weight: 800; line-height: 1.35; } .by .who span { display: block; color: var(--muted); font-weight: 500; }
.qr { display: flex; align-items: center; gap: 0.8rem; }
.qr .code { width: 124px; height: 124px; padding: 8px; background: #fff; border-radius: 0.8rem; border: 1px solid var(--rule); }
.qr .code svg { display: block; width: 100%; height: 100%; }
.qr .say { font-size: 1.1rem; font-weight: 800; line-height: 1.25; text-align: left; }
.next { padding: 1rem 1.6rem 1.1rem; }
.next ol { margin: 0.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.next li { font-size: 1.22rem; font-weight: 700; line-height: 1.25; display: grid; grid-template-columns: 6.6rem 1fr; gap: 0.8rem; }
.next li span { color: var(--muted); font-weight: 600; }
