/* base reset (the hosting page used to provide this) */
html{color-scheme:light}
body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}

/* Layout: a working drawing board. Controls on top, the drawing takes the width, the day's programme sits beside it. */
:root{
  --bg:#f1f3f7; --surface:#ffffff; --ink:#131a27; --muted:#5a6577; --line:#d3d9e3;
  --floor:#e7ebf1; --mass:#aab3c2; --mass-ink:#4a5567; --wood:#c9a36a; --col:#2b3342;
  --pc:#b97b00; --c1:#6a45d6; --c2:#c43d8e; --c3:#2a6fdb; --mobile:#0b8a84; --cast:#cf4254; --aud:#56627a;
  --safe:#1f9d55; --underlay-filter:none; --underlay-op:.22;
  --display:"Rubik","Heebo","Arial Hebrew",Arial,sans-serif;
  --body:"Heebo","Arial Hebrew",Arial,sans-serif;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0d121d; --surface:#151c2a; --ink:#e8edf6; --muted:#93a0b6; --line:#27314a;
  --floor:#121928; --mass:#2c374d; --mass-ink:#9aa6bb; --wood:#8a6a3c; --col:#c9d2e2;
  --pc:#f2b84b; --c1:#a58cff; --c2:#ff7cc4; --c3:#6aa8ff; --mobile:#3ed1c6; --cast:#ff7d8c; --aud:#b4bfd3;
  --safe:#4fd28a; --underlay-filter:invert(1); --underlay-op:.22; color-scheme:dark } }
:root[data-theme="dark"]{
  --bg:#0d121d; --surface:#151c2a; --ink:#e8edf6; --muted:#93a0b6; --line:#27314a;
  --floor:#121928; --mass:#2c374d; --mass-ink:#9aa6bb; --wood:#8a6a3c; --col:#c9d2e2;
  --pc:#f2b84b; --c1:#a58cff; --c2:#ff7cc4; --c3:#6aa8ff; --mobile:#3ed1c6; --cast:#ff7d8c; --aud:#b4bfd3;
  --safe:#4fd28a; --underlay-filter:invert(1); --underlay-op:.22; color-scheme:dark }

body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.55}
.wrap{max-width:1320px;margin:0 auto;padding-block:28px 56px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:22px}
header .eyebrow{font-size:12px;letter-spacing:.08em;color:var(--muted);font-weight:500}
h1{font-family:var(--display);font-weight:800;font-size:clamp(24px,3.4vw,38px);line-height:1.12;margin:4px 0 6px;text-wrap:balance}
header p{margin:0;color:var(--muted);max-width:62ch}
h2{font-family:var(--display);font-weight:600;font-size:20px;margin:0 0 10px;text-wrap:balance}
h3{font-family:var(--display);font-weight:600;font-size:14px;margin:0 0 6px}

.bar{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface)}
.seg button{font:inherit;font-weight:500;border:0;background:transparent;color:var(--ink);padding:8px 14px;cursor:pointer;display:flex;flex-direction:column;align-items:center;line-height:1.2}
.seg button + button{border-inline-start:1px solid var(--line)}
.seg button small{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.seg button[aria-pressed="true"] small{color:var(--bg);opacity:.75}
.seg button:focus-visible,.chk input:focus-visible,.cams button:focus-visible{outline:2px solid var(--c3);outline-offset:2px}
.chk{display:inline-flex;gap:6px;align-items:center;color:var(--muted);font-size:13px;cursor:pointer}
.chk input{accent-color:var(--c3);width:16px;height:16px}
.spacer{flex:1 1 auto}

.board{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
@media (max-width:980px){.board{grid-template-columns:minmax(0,1fr)}}
.stagebox{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}
.scroller{overflow-x:auto}
#plan{display:block;width:100%;min-width:760px;height:auto;background:var(--surface)}
#three{position:relative;width:100%;height:min(68vh,640px);min-height:380px;background:#070a12}
#three canvas{display:block;width:100%;height:100%;touch-action:none}
.cams{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border-top:1px solid var(--line)}
.cams button{font:inherit;font-size:13px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:7px;padding:6px 10px;cursor:pointer}
.cams button[aria-pressed="true"]{border-color:var(--ink);font-weight:700}
.hint{font-size:12px;color:var(--muted);padding:0 12px 10px}

.side{display:flex;flex-direction:column;gap:16px;min-width:0}
.prog{display:flex;flex-direction:column;gap:12px}
.zone{border-inline-start:4px solid var(--z);padding-inline-start:10px}
.zone .zt{font-weight:700;font-size:14px}
.zone ul{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.zone li{display:flex;gap:8px;font-size:13.5px}
.zone li time{font-variant-numeric:tabular-nums;color:var(--muted);min-width:42px}
.zone .note{font-size:12.5px;color:var(--muted);margin-top:3px}
.counts{display:grid;grid-template-columns:1fr auto;gap:4px 12px;font-size:13.5px;border-top:1px solid var(--line);padding-top:12px}
.counts dt{color:var(--muted)} .counts dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums;text-align:end}

.two{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:26px;align-items:start}
@media (max-width:900px){.two{grid-template-columns:minmax(0,1fr)}}
.upper{position:relative;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.upper img{display:block;width:100%;height:auto;filter:var(--underlay-filter);opacity:.8}
.pin{position:absolute;transform:translate(50%,-50%);background:var(--ink);color:var(--bg);font-size:12px;font-weight:700;padding:3px 8px;border-radius:999px;white-space:nowrap}
.pin.alt{background:var(--cast)}
ol.assume{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:8px;max-width:68ch}
ol.assume b{font-weight:700}
.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.gallery figure{margin:0;display:flex;flex-direction:column;gap:6px;min-width:0}
.gallery figure:first-child{grid-column:1 / -1}
.gallery img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line)}
.gallery figcaption{font-size:13.5px;color:var(--muted)}
.gallery figcaption b{color:var(--ink);font-weight:700}
.checkgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:22px;align-items:start}
@media (max-width:980px){.checkgrid{grid-template-columns:minmax(0,1fr)}}
table.checks{border-collapse:collapse;width:100%;font-size:13.5px;min-width:340px}
table.checks caption{text-align:start;font-family:var(--display);font-weight:600;font-size:14px;padding-bottom:6px}
table.checks th{font-weight:500;color:var(--muted);font-size:12px;text-align:start;border-bottom:1px solid var(--line);padding:4px 0 4px 8px}
table.checks td{padding:6px 0 6px 8px;border-bottom:1px solid var(--line);vertical-align:top}
table.checks td.n{font-variant-numeric:tabular-nums;white-space:nowrap}
.st{display:inline-block;font-size:12px;font-weight:700;border-radius:999px;padding:1px 9px;white-space:nowrap}
.st.ok{background:color-mix(in srgb,var(--safe) 18%,transparent);color:var(--safe)}
.st.warn{background:color-mix(in srgb,var(--pc) 22%,transparent);color:var(--pc)}
.trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:start}
@media (max-width:980px){.trio{grid-template-columns:minmax(0,1fr)}}
.trio ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px;counter-reset:k}
.trio li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;font-size:14px;counter-increment:k}
.trio li::before{content:counter(k);font-weight:700;font-size:13px;line-height:24px;height:24px;text-align:center;font-variant-numeric:tabular-nums;color:var(--bg);background:var(--k,var(--ink))}
.trio .route li::before{border-radius:50%}
.trio .screens li::before{border-radius:4px}
.trio .brand li::before{--k:var(--c2);clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);height:26px;line-height:26px;font-size:12px}
.trio .brand li{counter-increment:k}
.trio .brand li span.n{display:none}
.trio li b{font-weight:700}
.note2{font-size:13.5px;color:var(--muted);margin:10px 0 0;max-width:70ch}
.p-route{stroke:var(--ink);stroke-opacity:.6;stroke-width:3.2;stroke-dasharray:2 10;stroke-linecap:round;fill:none}
.p-stand{fill:var(--aud);fill-opacity:.13;stroke:var(--aud);stroke-width:1.5;stroke-dasharray:4 6}
.p-brand{fill:var(--c2);stroke:var(--surface);stroke-width:1.5}
.p-brandline{stroke:var(--c2);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;fill:none;stroke-opacity:.85}
.p-stopc{fill:var(--ink);stroke:var(--surface);stroke-width:2}
.lede{margin:0 0 12px;color:var(--muted);max-width:68ch}
@media (max-width:700px){.gallery{grid-template-columns:minmax(0,1fr)}}
.foot{font-size:12.5px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px;max-width:80ch}

/* plan drawing */
#plan text{font-family:var(--body);fill:var(--ink)}
.p-floor{fill:var(--floor)} .p-mass{fill:var(--mass)} .p-shell{fill:none;stroke:var(--mass-ink);stroke-width:5}
.p-masslabel{font-size:19px;fill:var(--mass-ink) !important}
.p-col{fill:var(--col)} .p-stage{fill:var(--wood);fill-opacity:.55;stroke:var(--pc);stroke-width:3}
.p-zone{fill-opacity:.10;stroke-width:2.5;stroke-dasharray:10 7}
.p-desk{stroke-width:1.5;fill-opacity:.9} .p-off{fill-opacity:.18 !important;stroke-dasharray:4 4}
.p-chair{stroke:var(--surface);stroke-width:1.5}
.p-screen{stroke-width:5;stroke-linecap:round}
.p-title{font-family:var(--display) !important;font-weight:800;font-size:27px}
.p-sub{font-size:19px} .p-num{font-size:20px;font-weight:700;fill:var(--surface) !important}
.p-halo{paint-order:stroke;stroke:var(--surface);stroke-width:6px;stroke-linejoin:round}
.p-dim line{stroke:var(--muted);stroke-width:1.4} .p-dim text{font-size:17px;fill:var(--muted) !important;font-variant-numeric:tabular-nums}
.p-exit{stroke:var(--safe);fill:var(--safe)} .p-exitzone{fill:var(--safe);fill-opacity:.10;stroke:var(--safe);stroke-width:2;stroke-dasharray:6 6}
.p-curtain{stroke:var(--cast);stroke-width:4;stroke-dasharray:3 9;stroke-linecap:round;fill:none}
#underlay{filter:var(--underlay-filter);opacity:var(--underlay-op)}
