/* The EU-SOLAR look over the projector's layout (projector.css keeps the engine's geometry; this file gives it the
   client's identity, with the mindos logo kept). Paper and the logo's ink, Open Sans, hairline rules, the site's blue
   as a thin band along the top of the frame (their top bar, translated), the logo's sun yellow as fills, marks and
   thick rules only (never text, never a thin line alone), the site's red only where something asks for attention.
   No cards, no shadows, no gradients. Cover: paper with a sun panel holding the join QR. Sections and the end: the
   sun register (sun ground, ink type). This file is loaded on every page: projector rules are scoped to .frame. */

.frame {
  --ground: var(--paper);
  --muted: var(--g5); --rule: var(--g3);
  --lime: var(--ink); --lime-ink: var(--ink); --teal: var(--blue-text); --amber: var(--sun);
  --card: var(--paper); --track: var(--g1); --card-line: var(--g3);
}
/* the projector only (the remote and the phones have their own pages) */
html:has(.frame), body:has(.frame) { background: var(--paper); color: var(--ink); }
.frame { --shadow: none; font-family: var(--font); }
.frame ::selection { background: var(--sun); color: var(--ink); }

/* ---------- the frame's top edge: the site's blue bar, as a band ---------- */
.frame::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--u) * .7); background: var(--blue); z-index: 3; }

/* ---------- head: mindos | EU-SOLAR on the left, the session on the right; a hairline under it ---------- */
.head { height: calc(var(--u) * 7.6); border-bottom: 1px solid var(--g3); }
.brand { top: calc(var(--u) * .7); bottom: 0; height: auto; align-items: center; color: var(--ink); }
.brand .mk { --mk-h: calc(var(--u) * 2.3); --mk-gap: calc(var(--w) * 1.1); }
.meta { top: calc(var(--u) * .7); bottom: 0; height: auto; font-size: calc(var(--u) * 1.9); color: var(--g6); }
.meta b { font-weight: 600; color: var(--ink); }
.meta .pill { display: none; }

/* ---------- the stage: the full width; a QR column only on the cover and the question slides (below) ---------- */
.deck { top: calc(var(--u) * 7.6); height: calc(100% - var(--u) * 19.6); width: calc(var(--w) * 96.2); }
.slide { transition: opacity .45s cubic-bezier(.2, 0, 0, 1), visibility 0s linear .45s; }
.slide.active { transition: opacity .45s cubic-bezier(.2, 0, 0, 1); }

/* titles: a hairline ink rule with a short thick sun mark at its start; no eyebrow above */
.hl { padding-left: 0; padding-top: calc(var(--u) * 1.8); border-top: 1px solid var(--ink); max-width: calc(var(--w) * 88); }
.hl::before { content: ''; position: absolute; left: 0; top: calc(var(--u) * -.6); bottom: auto; width: calc(var(--u) * 7); height: calc(var(--u) * .6); background: var(--sun); }
.hl h1 { font-weight: 700; font-size: calc(var(--u) * 5.6); line-height: 1.12; letter-spacing: -.018em; max-width: 30ch; }
.big h1 { font-weight: 300; font-size: calc(var(--u) * 9); line-height: 1.04; letter-spacing: -.03em; max-width: 16ch; }
.big h1 b, .hl h1 b { font-weight: 700; }
.frame .sub { margin-top: calc(var(--u) * -1.2); font-size: calc(var(--u) * 2.8); color: var(--g6); }
.frame .lede { font-size: calc(var(--u) * 3.3); line-height: 1.45; color: var(--g6); max-width: 50ch; }
.frame .lede b { color: var(--ink); font-weight: 600; }
.frame .time { font-family: var(--mono); font-weight: 400; font-size: calc(var(--u) * 2.4); color: var(--g6); }

/* columns and lists: ruled, never boxed */
.cols > div { border-left: 1px solid var(--g3); }
.cols h3 { font-weight: 700; font-size: calc(var(--u) * 3.4); line-height: 1.2; letter-spacing: -.01em; }
.cols p { font-size: calc(var(--u) * 2.6); line-height: 1.5; color: var(--g6); }
.plist { border-top: 1px solid var(--ink); }
.plist li { border-bottom: 1px solid var(--g3); }
.plist li:last-child { border-bottom-color: var(--ink); }
.plist h3 { font-weight: 700; font-size: calc(var(--u) * 3.3); }
.plist p { color: var(--g6); }
.plist li.hi h3 { color: var(--ink); }
.plist li.hi h3::before { content: ''; display: inline-block; width: calc(var(--u) * 1.3); height: calc(var(--u) * 1.3); background: var(--sun); margin-right: .5em; vertical-align: .12em; }
.grade h3 { font-weight: 700; }
.foot { color: var(--g6); }
.bolts { border-top: 1px solid var(--ink); }
.bolts li { font-weight: 600; border-bottom: 1px solid var(--g3); }

/* code and identifiers: Chivo Mono; prompts written as prose stay in Open Sans */
.frame code, .frame pre, .frame .code .file, .frame .vchips li, .frame .stop .d { font-family: var(--mono); }
.frame .cmds.prose pre, .frame .code.prose pre, .frame .vis-groups.prose .vchips li { font-family: var(--font); }
.frame .plist code, .frame .cols code, .frame .lede code, .frame .pts code, .frame .note-line code, .frame .flow code, .frame .ex-cols code { background: var(--g1); border-radius: 2px; }
.cmd pre { border-radius: 2px; background: var(--ink); }
.cmds.prose pre { box-shadow: none; border: 1px solid var(--g3); border-radius: 2px; }
.cmds.prose .cmd.trap pre { box-shadow: none; border: 2px solid var(--red); }

/* tables: a rule under the header, hairlines between rows, an ink rule closing the last row */
.tbl th { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--g6); border-bottom: 1px solid var(--ink); }
.tbl td { border-top: 1px solid var(--g3); }
.tbl tr:last-child td { border-bottom: 1px solid var(--ink); }
.tbl td:first-child { font-weight: 600; }
.frame table a { color: var(--blue-text); }

/* figures: a film or picture on paper; its caption is a ruled caption */
figure.media img, figure.media video { border-radius: 0; }
figure.media figcaption { border-top: 1px solid var(--ink); padding-top: calc(var(--u) * .8); color: var(--g6); font-size: calc(var(--u) * 2.1); }
.fpts h3 { font-weight: 700; }

/* the engine's visual slides: white nodes become ruled type; tones become ink, blue and the sun as marks */
.vstat { border: 0; border-top: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: calc(var(--u) * 1.6) 0 0; background: transparent; }
.vstat b { font-family: var(--mono); font-weight: 300; font-size: calc(var(--u) * 9); letter-spacing: -.04em; }
.vstat h3 { font-weight: 600; }
.vstat.tone-lime, .vstat.tone-ok, .vstat.tone-teal, .vstat.tone-muted { border-top-color: var(--ink); }
.vstat.tone-amber { border-top: calc(var(--u) * .6) solid var(--sun); }
.vstat.tone-bad { border-top: 2px solid var(--red); }
.vstat.tone-teal b { color: var(--blue-text); }
.vnode { box-shadow: none !important; border-radius: 2px !important; }
.tone-lime.vnode { border-left-color: var(--ink); } .tone-teal.vnode { border-left-color: var(--blue); } .tone-amber.vnode { border-left-color: var(--sun); }

/* the room's words on the stage: hairline cards with a thick sun cap; the count is a number (Chivo Mono) */
.note { border: 1px solid var(--g3); border-radius: 2px; box-shadow: none; padding: calc(var(--u) * 2.4) calc(var(--u) * 2) calc(var(--u) * 1.6); }
.note::before, .note.c1::before, .note.c2::before { height: calc(var(--u) * .6); background: var(--sun); }
.note p { font-weight: 600; line-height: 1.32; }
.note .who { color: var(--g5); } .note .who.named { color: var(--g6); font-weight: 600; }
.note .n { font-family: var(--mono); font-weight: 500; color: var(--blue-text); }
.note .ok { color: var(--blue-text); font-weight: 600; }
.frame .empty { color: var(--g5); }
.frame .q { font-weight: 600; letter-spacing: -.02em; line-height: 1.16; }
.who-row .pill { border: 0; border-radius: 0; padding: 0; height: auto; color: var(--ink); font-weight: 600; font-size: calc(var(--u) * 2.8); display: inline-flex; align-items: center; gap: .55em; }
.who-row .pill::before { content: ''; width: calc(var(--u) * 1.3); height: calc(var(--u) * 1.3); background: var(--sun); }
.who-row .tease { font-family: var(--mono); color: var(--blue-text); font-size: calc(var(--u) * 2.6); }

/* a poll's or a break's numbers */
.frame .count { font-family: var(--mono); font-weight: 300; letter-spacing: -.04em; }
.frame .count.over { color: var(--ink); font-family: var(--font); font-weight: 700; }
.frame .bar .trk { border-radius: 0; box-shadow: none; background: var(--g1); }
.frame .bar .fill { border-radius: 0; background: var(--blue); }
.frame .bar .val { font-family: var(--mono); font-weight: 500; }
.frame .line .dot { background: var(--blue); } .line .dot.lo { background: var(--sun); }
.line .avg b, .delta, .stop.now h4 { color: var(--blue-text); }
.frame .chip { background: var(--g1); color: var(--ink); border-radius: 2px; }

/* steps: a part not up yet keeps its place; one that comes up rises in */
.step-in { animation: m-rise .5s cubic-bezier(.05, .7, .1, 1) both; }
@keyframes m-rise { from { opacity: 0; transform: translateY(calc(var(--u) * 1.6)); } }

/* ---------- the join panel: only on the cover, the questions slide and the room's questions ----------
   (prezzz shows it on every slide the phones act on; this deck asks the room for questions only) */
.wall { display: none !important; }
.frame:has(.slide.active:is(.t-cover, .t-questions, .t-roomquestions)) .wall { display: flex !important; }
.wall, .wall.large { background: transparent; border: 0; border-left: 1px solid var(--g3); border-radius: 0; box-shadow: none; overflow: visible;
  left: calc(var(--w) * 76.4); top: calc(var(--u) * 12.4); width: calc(var(--w) * 19.8); height: calc(100% - var(--u) * 26);
  padding: 0 0 0 calc(var(--w) * 2); justify-content: center; align-items: flex-start; gap: calc(var(--u) * 1.6); }
.wall .wh { order: 0; text-align: left; font-size: calc(var(--u) * 1.9); font-weight: 600; color: var(--g6); }
.wall .qr, .wall.large .qr { order: 1; align-self: flex-start; width: calc(var(--u) * 24); margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; display: grid; gap: calc(var(--u) * 1.4); }
.wall .qr img { width: 100%; border: 1px solid var(--g3); padding: calc(var(--u) * .6); background: var(--paper); }
.wall .qr span, .wall.large .qr span { position: static; transform: none; background: none; border-radius: 0; padding: 0; color: var(--blue-text); font-weight: 700; font-size: calc(var(--u) * 3); letter-spacing: -.01em; white-space: nowrap; }
.wall .join-cap { order: 2; text-align: left; margin: 0; font-size: calc(var(--u) * 2); line-height: 1.45; color: var(--g6); max-width: 26ch; }
.wall .join-cap b { color: var(--ink); font-size: calc(var(--u) * 2.4); font-weight: 600; margin-bottom: calc(var(--u) * .5); }
.frame:has(.slide.active:is(.t-questions, .t-roomquestions)) .deck { width: calc(var(--w) * 74); }
.frame:has(.slide.active:is(.t-questions, .t-roomquestions)) .slide { padding-right: calc(var(--w) * 2); }
.frame:has(.slide.active:is(.t-questions, .t-roomquestions)) .notes { max-width: none; }

/* the cover: the join panel becomes a sun panel down the right of the frame, the QR on paper, the address in ink */
.frame:has(.slide.active.t-cover) .wall { left: auto; right: 0; top: calc(var(--u) * 7.6); bottom: 0; height: auto; width: calc(var(--w) * 33);
  background: var(--sun); border: 0; padding: 0 calc(var(--w) * 4); justify-content: center; gap: calc(var(--u) * 2); }
.frame:has(.slide.active.t-cover) .wall .wh { color: var(--ink); }
.frame:has(.slide.active.t-cover) .wall .qr { width: calc(var(--u) * 30); }
.frame:has(.slide.active.t-cover) .wall .qr img { border: 0; padding: calc(var(--u) * 1.4); }
.frame:has(.slide.active.t-cover) .wall .qr span { color: var(--ink); font-size: calc(var(--u) * 3.6); }
.frame:has(.slide.active.t-cover) .wall .join-cap { color: var(--g7); }
.frame:has(.slide.active.t-cover) .deck { width: calc(var(--w) * 65); }
.frame:has(.slide.active.t-cover) .rail { right: calc(var(--w) * 36.8); }
.slide.t-cover .hl { border-top-width: 0; padding-top: calc(var(--u) * 3.4); }
.slide.t-cover .hl::before { top: 0; width: calc(var(--u) * 12); height: calc(var(--u) * 1.2); }
.slide.t-cover h1 { font-size: calc(var(--u) * 10.5); max-width: 11ch; }
.slide.t-cover .lede { color: var(--ink); font-weight: 600; font-size: calc(var(--u) * 3); }

/* ---------- the sun register: sections on the sun, ink type, the logos in ink ---------- */
.frame:has(.slide.active.t-section) { background: var(--sun); color: var(--ink); }
.frame:has(.slide.active.t-section) .head { border-bottom-color: rgba(35, 31, 32, .25); }
.frame:has(.slide.active.t-section) .mk-eus { background: var(--ink); -webkit-mask: url('/img/eu-solar-lockup.png') center / contain no-repeat; mask: url('/img/eu-solar-lockup.png') center / contain no-repeat; }
.frame:has(.slide.active.t-section) .meta { color: var(--g7); }
.slide:is(.t-section, .t-end) .hl { border-top: 2px solid var(--ink); }
.slide:is(.t-section, .t-end) .hl::before { background: var(--ink); top: calc(var(--u) * -1.2); width: calc(var(--u) * 12); height: calc(var(--u) * 1.2); }
.slide.t-end .hl::before { background: var(--sun); }
.slide:is(.t-section, .t-end) h1 { color: var(--ink); font-size: calc(var(--u) * 11); max-width: 14ch; }
.slide.t-section .lede, .slide.t-section .time { color: var(--g7); }

/* the end: the cover's sibling. Paper, and down the right the sun panel again, now holding the sun of EU-SOLAR's
   logo in paper (its one-colour form), large */
.frame:has(.slide.active.t-end) .deck { width: calc(var(--w) * 65); }
.frame:has(.slide.active.t-end) .rail { right: calc(var(--w) * 36.8); }
.frame:has(.slide.active.t-end) .head { border-bottom-color: var(--g3); }
.frame:has(.slide.active.t-end)::after { content: ''; position: absolute; right: 0; top: calc(var(--u) * 7.6); bottom: 0; width: calc(var(--w) * 33); z-index: 0;
  background: var(--sun) url('/img/eu-solar-sun-paper.png') center / calc(var(--u) * 28) no-repeat; }
.slide.t-end .lede { color: var(--g6); }
.slide.t-end .lede b { color: var(--ink); }
.frame { transition: background .45s cubic-bezier(.2, 0, 0, 1), color .45s; }

/* ---------- the rail: a quiet timeline; the slide on screen is the sun ---------- */
.rail { height: calc(var(--u) * 11); }
.rail .blabel { font-weight: 600; color: var(--g6); }
.rail .seg, .rail .seg.bstart { border-radius: 0; background: var(--g3); }
.rail .seg.done { background: var(--ink); }
.rail .seg.inblock:not(.done):not(.cur) { background: var(--g4); }
.rail .seg.cur, .rail .seg.cur.over { background: var(--sun); }
.rail .seg.brk { background: var(--g2); } .rail .seg.brk.done { background: var(--g6); } .rail .seg.brk.cur { background: var(--sun); }
.rail .seg .prog { background: var(--ink); }
.rail .pline.cur { color: var(--blue); }
.railtip { border-radius: 0; box-shadow: none; background: var(--ink); color: var(--paper); border: 0; }
.railtip b { color: var(--sun); font-family: var(--mono); font-weight: 500; }
.frame:has(.slide.active.t-section) .rail .seg:not(.cur):not(.done) { background: rgba(35, 31, 32, .2); }
.frame:has(.slide.active.t-section) .rail .seg.done { background: var(--ink); }
.frame:has(.slide.active.t-section) .rail .seg.cur { background: var(--paper); }
.frame:has(.slide.active.t-section) .rail .blabel { color: var(--ink); }
/* the room sees the chapter and the slide's place in the talk; the timing marks stay on the remote */
.rail .plan, .rail .now, .rail .seg .prog, .rail .hr { display: none !important; }
.backlink { display: none !important; }

/* focus is the site's blue, everywhere */
.frame :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .step-in { animation: none; } .frame { transition: none; } }

/* on a phone the projector page says it is for the projector and links the remote: make that link the obvious tap */
.narrow-hint { border-radius: 2px; background: var(--ink); color: var(--paper); font-size: 16px; padding: 16px; }
.narrow-hint a { display: block; margin-top: 10px; padding: 14px; background: var(--sun); color: var(--ink); text-align: center; text-decoration: none; font-weight: 600; }

/* ---------- films and live scenes ---------- */
/* live scenes (.mjs, tools/films/scene.tsx): a 16:9 box the player fills, sized like a film */
figure.media .mscene { position: relative; width: 100%; aspect-ratio: 16 / 9; }
figure.media .mscene-player { position: absolute; inset: 0; }
/* Every flow scene names its clip shape the same (#md-content), and a browser resolves the name to the first one on
   the page. That one sits on a slide that is hidden (visibility: hidden), and a hidden shape clips everything away:
   all later flow scenes came up empty. A clip shape is never painted itself, so keep it visible on every slide. */
.mscene clipPath, .mscene clipPath * { visibility: visible; }
.slide.bleed .fit { height: calc(100vh - var(--u) * 19.6); align-items: center; }
.slide.bleed .fig, .slide.bleed figure.media, .slide.bleed figure.media .mbox { align-items: center; }
.slide.bleed figure.media video,
.slide.bleed figure.media .mscene { width: min(calc(var(--w) * 96), calc((100vh - var(--u) * 19.6) * 16 / 9)); height: auto; flex: none; background: var(--paper); }
/* live explainers draw no title of their own, so the slide's title stays on its rule above the stage, smaller than on
   a text slide; the stage takes the rest of the height */
.slide.bleed:has(.mscene) .hl { position: relative; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin-bottom: calc(var(--u) * 1.2); align-self: stretch; text-align: left; max-width: none; margin-inline: 3.8%; margin-top: calc(var(--u) * 2.6); padding-top: calc(var(--u) * 1.4); }
.slide.bleed:has(.mscene) .hl h1 { font-size: calc(var(--u) * 4.2); }
.slide.bleed:has(.mscene) .fit { display: flex; flex-direction: column; }
.slide.bleed:has(.mscene) .fig, .slide.bleed:has(.mscene) figure.media { flex: 1; min-height: 0; height: auto; }

/* the cover carries no start time or countdown (the engine draws one when the deck has meta.startsAt) */
.slide.t-cover .startin { display: none !important; }

/* ---------- dark mode („d” on the projector; light is the default): ink ground, the sun register kept ---------- */
html[data-theme="dark"] { --paper: #1B1819; --ground: #1B1819; --ink: #F4F4F4; --g6: #C9C9C9; --g5: #A8A8A8; --g7: #E0E0E0; --rule: #383838; --g3: #383838; --g1: #2A2728; --track: #2A2728; --card: #1B1819; --card-line: #383838; --blue-text: #4FB3E6; }
html[data-theme="dark"]:has(.frame), html[data-theme="dark"] body:has(.frame), html[data-theme="dark"] .frame { background: #1B1819; color: #F4F4F4; }
html[data-theme="dark"] .mk-eus { background-image: url('/img/eu-solar-lockup-white.png'); }
html[data-theme="dark"] .frame:has(.slide.active.t-section) { --ink: #231F20; --g7: #383838; background: var(--sun); color: #231F20; }
html[data-theme="dark"] .frame:has(.slide.active.t-section) .brand { color: #231F20; }
html[data-theme="dark"] .rail .seg.done { background: #F4F4F4; }
html[data-theme="dark"] .rail .seg.inblock:not(.done):not(.cur) { background: #6B6B6B; }
html[data-theme="dark"] .frame:has(.slide.active.t-cover) .wall .qr span, html[data-theme="dark"] .frame:has(.slide.active.t-cover) .wall .wh, html[data-theme="dark"] .frame:has(.slide.active.t-cover) .wall .join-cap b { color: #231F20; }
html[data-theme="dark"] .frame:has(.slide.active.t-cover) .wall .join-cap { color: #383838; }
html[data-theme="dark"] .wall .qr img { background: #FFFFFF; }
/* the live scenes are drawn on paper: inverted to ink, the hue turned back so the sun stays yellow */
html[data-theme="dark"] figure.media .mscene { filter: invert(1) hue-rotate(180deg); background: #FFFFFF; }
html[data-theme="dark"] .slide.bleed figure.media video { background: #1B1819; }
