/* Zone Reg storyboard: an A0 engineering sheet (2378 x 1682 design px, true A0 ratio). */
:root{
  --paper:#F7F9FB; --ink:#1A2B3C; --ink-2:#4A5B6C; --ink-3:#7B8A99; --rule:#C3CFDA; --rule-2:#DCE4EB;
  --blue:#1F5FA6; --blue-soft:#DCE8F5; --proven:#1E7A52; --proven-soft:#DDEFE6; --progress:#B07A12; --progress-soft:#F6EBD3;
  --problem:#B3262E; --problem-soft:#F6DEDF; --desk:#39434D; --desk-2:#2F3841; --desk-ink:#E4EAF0; --sheet-shadow:0 30px 80px rgba(10,20,30,.45);
  --display:"Barlow Semi Condensed","Arial Narrow",system-ui,sans-serif; --text:"Barlow",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#10304F; --ink:#E8F0F7; --ink-2:#B9CADB; --ink-3:#8DA5BC; --rule:#3F6A93; --rule-2:#2A5277;
    --blue:#8EC1F2; --blue-soft:#1A4468; --proven:#6FD3A3; --proven-soft:#174A3A; --progress:#F2C46B; --progress-soft:#4A3D1C;
    --problem:#FF8A8F; --problem-soft:#4D2430; --desk:#0B1A29; --desk-2:#081421; --desk-ink:#C9D7E4; --sheet-shadow:0 30px 80px rgba(0,0,0,.6);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --paper:#10304F; --ink:#E8F0F7; --ink-2:#B9CADB; --ink-3:#8DA5BC; --rule:#3F6A93; --rule-2:#2A5277;
  --blue:#8EC1F2; --blue-soft:#1A4468; --proven:#6FD3A3; --proven-soft:#174A3A; --progress:#F2C46B; --progress-soft:#4A3D1C;
  --problem:#FF8A8F; --problem-soft:#4D2430; --desk:#0B1A29; --desk-2:#081421; --desk-ink:#C9D7E4; color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%;margin:0}
:root{box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
body{background:var(--desk);color:var(--ink);font-family:var(--text);font-size:16px;line-height:1.45;
  -webkit-font-smoothing:antialiased;font-feature-settings:"tnum" 1,"lnum" 1}
a{color:var(--blue)}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

/* ---------- desk and tools ---------- */
.desk{position:fixed;inset:0;overflow:hidden;background:
  radial-gradient(circle at 50% 40%,var(--desk) 0%,var(--desk-2) 100%);touch-action:none;cursor:grab}
.desk.dragging{cursor:grabbing}
.tools{position:absolute;z-index:5;top:max(12px,env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);
  display:flex;align-items:center;gap:6px;padding:6px 8px 6px 14px;border-radius:999px;
  background:rgba(20,30,40,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:var(--desk-ink);
  font-family:var(--display);font-size:14px;white-space:nowrap;cursor:default}
.tools-title{font-weight:600;margin-right:6px}
.tools-hint{opacity:.7;margin-left:8px}
.tools button{border:1px solid rgba(255,255,255,.22);background:transparent;color:var(--desk-ink);border-radius:999px;
  min-width:32px;height:30px;padding:0 12px;cursor:pointer}
.tools button:hover{background:rgba(255,255,255,.1)}

/* ---------- the sheet ---------- */
.board{position:absolute;left:0;top:0;width:2378px;height:1682px;transform-origin:0 0;background:var(--paper);
  box-shadow:var(--sheet-shadow);padding:46px 46px 40px;display:grid;
  grid-template-rows:214px 1fr 1fr 150px;row-gap:30px;cursor:default}
.board::before{content:"";position:absolute;inset:22px;border:1.5px solid var(--ink);pointer-events:none}
.zones{position:absolute;inset:0;pointer-events:none;font-family:var(--display);font-size:12px;color:var(--ink-3)}
.zones span{position:absolute;display:block;width:22px;text-align:center;line-height:22px}
.zones i{position:absolute;background:var(--rule)}

/* ---------- masthead ---------- */
.mast{display:grid;grid-template-columns:380px 1fr 560px;column-gap:36px;align-items:end;
  border-bottom:3px solid var(--ink);padding:6px 4px 18px}
.mast-id{display:flex;flex-direction:column;gap:2px;align-self:stretch;justify-content:flex-end}
.brand{font-family:var(--display);font-weight:700;font-size:44px;line-height:1;letter-spacing:-.01em}
.tagline{font-family:var(--display);font-weight:600;font-size:27px;line-height:1.1;color:var(--blue);margin-top:6px}
.since{font-size:14px;color:var(--ink-2);margin-top:8px}
.title{margin:0;display:flex;align-items:center;gap:30px;font-family:var(--display);font-weight:700;font-size:132px;
  line-height:.9;letter-spacing:-.025em;color:var(--ink);white-space:nowrap}
.mark{width:128px;height:128px;flex:none}
.mark-frame{fill:none;stroke:var(--ink);stroke-width:5}
.mark-chain{fill:none;stroke:var(--blue);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.mark-node{fill:var(--paper);stroke:var(--blue);stroke-width:5}
.mark-seal{fill:var(--proven)}
.mark-tick{fill:none;stroke:var(--paper);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.mast-text p{margin:0 0 10px;font-size:17px;line-height:1.4;max-width:62ch}
.mast-text .theme{font-size:19px}
.mast-text .premise{color:var(--ink-2)}

/* ---------- rows and panels ---------- */
.row{display:grid;grid-template-columns:44px repeat(5,minmax(0,1fr));column-gap:14px;min-height:0}
.band{display:flex;align-items:center;justify-content:center;border-right:1.5px solid var(--ink)}
.band span{writing-mode:vertical-rl;transform:rotate(180deg);font-family:var(--display);font-weight:600;font-size:22px;
  letter-spacing:.02em;color:var(--blue)}
.panel{position:relative;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:12px 16px 14px;
  border:1.5px solid var(--ink);background:var(--paper);cursor:pointer;transition:background-color .2s}
.panel:hover{background:color-mix(in srgb,var(--blue-soft) 35%,var(--paper))}
.panel::after{content:"A3";position:absolute;right:8px;top:8px;font-family:var(--display);font-size:11px;font-weight:600;
  color:var(--ink-3);border:1px solid var(--rule);padding:0 5px;line-height:16px}
.ph{display:flex;gap:12px;align-items:flex-start;margin-bottom:6px}
.num{font-family:var(--display);font-weight:700;font-size:52px;line-height:.85;color:var(--blue);min-width:44px}
.step{display:block;font-family:var(--display);font-size:15px;font-weight:500;color:var(--ink-2)}
.ph h2{margin:0;font-family:var(--display);font-weight:700;font-size:27px;line-height:1.02;letter-spacing:-.005em;padding-right:24px}
.graphic{margin:4px 0 8px;flex:0 0 230px;border-top:1px solid var(--rule-2);border-bottom:1px solid var(--rule-2);padding:6px 0}
.graphic svg{display:block;width:100%;height:100%;overflow:visible}
.conclusion{margin:2px 0 10px;font-size:17.5px;line-height:1.38;font-weight:500}
.fine{margin:auto 0 0;padding:0;font-size:12.5px;line-height:1.42;color:var(--ink-2)}
ul.fine{list-style:none}
ul.fine li{padding-left:10px;position:relative}
ul.fine li::before{content:"";position:absolute;left:0;top:.62em;width:4px;height:1px;background:var(--ink-3)}
ol.fine{padding-left:16px}
dl.fine{display:grid;grid-template-columns:auto 1fr;column-gap:8px}
dl.fine dt{font-weight:600;color:var(--ink)}
dl.fine dd{margin:0}

/* ---------- svg vocabulary ---------- */
.g-ink{stroke:var(--ink);fill:none;stroke-width:1.5}
.g-rule{stroke:var(--rule);fill:none;stroke-width:1}
.g-blue{stroke:var(--blue);fill:none;stroke-width:2}
.g-fill-blue{fill:var(--blue)} .g-fill-blue-soft{fill:var(--blue-soft)}
.g-fill-proven{fill:var(--proven)} .g-fill-proven-soft{fill:var(--proven-soft)}
.g-fill-progress{fill:var(--progress)} .g-fill-progress-soft{fill:var(--progress-soft)}
.g-fill-problem{fill:var(--problem)} .g-fill-problem-soft{fill:var(--problem-soft)}
.g-fill-paper{fill:var(--paper)} .g-fill-ink{fill:var(--ink)}
.g-t{fill:var(--ink);font-family:var(--text);font-size:12.5px}
.g-t2{fill:var(--ink-2);font-family:var(--text);font-size:11.5px}
.g-d{fill:var(--ink);font-family:var(--display);font-weight:600;font-size:15px}
.g-big{fill:var(--ink);font-family:var(--display);font-weight:700;font-size:30px}
.g-stroke-proven{stroke:var(--proven)} .g-stroke-progress{stroke:var(--progress)} .g-stroke-problem{stroke:var(--problem)}
.plot{stroke-dasharray:var(--len,1000);stroke-dashoffset:var(--len,1000);animation:plot 1.6s ease-out forwards}
@keyframes plot{to{stroke-dashoffset:0}}

/* ---------- evidence arrows ---------- */
.evidence{position:absolute;inset:0;width:2378px;height:1682px;pointer-events:none;overflow:visible}
.evidence path{fill:none;stroke:var(--blue);stroke-width:2;stroke-dasharray:7 6;opacity:.85}
.evidence .tag rect{fill:var(--paper);stroke:var(--blue);stroke-width:1}
.evidence .tag text{fill:var(--blue);font-family:var(--display);font-weight:600;font-size:14px}

/* ---------- foot: live strip and title block ---------- */
.strip{display:grid;grid-template-columns:1fr 640px;column-gap:16px;border-top:3px solid var(--ink);padding-top:10px;min-height:0}
.live{display:flex;flex-direction:column;min-width:0}
.live .feed{margin-bottom:8px}
.feed{margin:0;font-size:13px;color:var(--ink-2);display:flex;align-items:center;gap:8px}
.feed::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--ink-3)}
.feed[data-state="live"]::before{background:var(--proven);box-shadow:0 0 0 4px var(--proven-soft)}
.feed[data-state="snapshot"]::before{background:var(--progress)}
.tiles{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;flex:1;min-height:0}
.tile{border:1.5px solid var(--ink);padding:10px 12px;display:flex;flex-direction:column;justify-content:space-between;min-width:0;
  border-top-width:6px}
.tile[data-state="ok"]{border-top-color:var(--proven)}
.tile[data-state="warn"]{border-top-color:var(--progress)}
.tile[data-state="bad"]{border-top-color:var(--problem)}
.tile[data-state="none"]{border-top-color:var(--ink-3)}
.tile .v{font-family:var(--display);font-weight:700;font-size:38px;line-height:1;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .v small{font-size:20px;font-weight:600;color:var(--ink-2);margin-left:2px}
.tile .l{font-size:13px;line-height:1.25;color:var(--ink)}
.tile .s{font-size:11px;color:var(--ink-2);line-height:1.3}
.titleblock{border-collapse:collapse;width:100%;height:100%;font-size:13px}
.titleblock th,.titleblock td{border:1.5px solid var(--ink);padding:3px 10px;text-align:left;vertical-align:top}
.titleblock th{font-family:var(--display);font-weight:600;color:var(--ink-2);width:96px;font-size:12px}
.titleblock tr:first-child td{font-family:var(--display);font-weight:700;font-size:19px;line-height:1.15}

/* ---------- A3 sheet ---------- */
.a3{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:24px;background:rgba(15,25,35,.62);
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.a3[hidden]{display:none}
.a3-sheet{position:relative;width:min(1260px,100%);max-height:min(891px,calc(100vh - 48px));display:flex;flex-direction:column;
  background:var(--paper);color:var(--ink);box-shadow:var(--sheet-shadow);border:1.5px solid var(--ink);outline:10px solid var(--paper)}
.a3-head{display:grid;grid-template-columns:auto 1fr auto auto;gap:18px;align-items:center;padding:16px 24px;border-bottom:3px solid var(--ink)}
.a3-num{font-family:var(--display);font-weight:700;font-size:56px;line-height:.8;color:var(--blue)}
.a3-head h2{margin:0;font-family:var(--display);font-weight:700;font-size:34px;line-height:1.05}
.a3-ref{font-family:var(--display);font-size:14px;color:var(--ink-2)}
.a3-head button,.a3-foot button{border:1.5px solid var(--ink);background:var(--paper);padding:7px 14px;cursor:pointer;
  font-family:var(--display);font-weight:600;font-size:15px}
.a3-head button:hover,.a3-foot button:hover{background:var(--blue-soft)}
.a3-body{overflow:auto;padding:20px 24px 24px;font-size:16px}
.a3-body > h2{display:none}
.a3-body h3{font-family:var(--display);font-weight:700;font-size:21px;margin:0 0 10px}
.a3-body p{max-width:72ch;margin:0 0 12px}
.a3-foot{display:flex;justify-content:space-between;padding:12px 24px;border-top:1.5px solid var(--ink)}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.t{border-collapse:collapse;width:100%;margin:0 0 14px;font-size:14.5px;line-height:1.4}
.t th,.t td{border-bottom:1px solid var(--rule);padding:7px 10px 7px 0;text-align:left;vertical-align:top}
.t thead th{font-family:var(--display);font-weight:600;color:var(--ink-2);border-bottom:1.5px solid var(--ink)}
.t tbody th,.t > tr > th{font-family:var(--display);font-weight:600;white-space:nowrap;padding-right:16px}
.t.wide{font-size:14px}
.t td[data-status]{font-weight:500;padding-left:10px;border-left:4px solid var(--ink-3)}
.t td[data-status="met"]{border-left-color:var(--proven)}
.t td[data-status="progress"]{border-left-color:var(--progress)}
.t td[data-status="open"]{border-left-color:var(--problem)}
.numbered{padding-left:22px;margin:0 0 12px} .numbered li{margin-bottom:8px}
.src{font-size:13px;color:var(--ink-2)}
.noscript{position:fixed;bottom:12px;left:12px;right:12px;padding:12px;background:var(--paper);border:1.5px solid var(--ink)}

/* ---------- small windows: the board stays the A0 sheet, scaled; the toolbar and A3 sheet adapt ---------- */
@media (max-width:820px){
  .tools{gap:4px;padding:4px 6px}
  .tools-title{display:none}
  .a3{padding:0;place-items:stretch}
  .a3-sheet{max-height:100vh;height:100%;outline:0}
  .a3-head{grid-template-columns:auto 1fr auto;padding:10px 12px;gap:10px}
  .a3-ref{display:none}
  .a3-num{font-size:40px}
  .a3-head h2{font-size:22px}
  .a3-body{padding:12px}
  .a3-panel,.cols{grid-template-columns:1fr !important;gap:12px}
}
@media (prefers-reduced-motion:reduce){
  .plot{animation:none;stroke-dashoffset:0}
  .panel{transition:none}
}
@media (max-width:1180px){.tools-hint{display:none}}

/* the panel itself, at the top of its A3 sheet */
.a3-panel{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:28px;align-items:start;
  padding-bottom:18px;margin-bottom:20px;border-bottom:1.5px solid var(--ink)}
.a3-graphic{border:1px solid var(--rule-2);padding:10px}
.a3-graphic svg{display:block;width:100%;height:auto}
.a3-summary .conclusion{font-size:19px;margin-bottom:14px}
.a3-summary .fine{font-size:14.5px;line-height:1.5;margin:0}
.a3-summary dl.fine{row-gap:2px}

/* foot: drawing notes beside the title block */
.notes{min-width:0;overflow:hidden}
.notes h2{margin:0 0 4px;font-family:var(--display);font-weight:700;font-size:17px}
.notes ol{margin:0;padding-left:18px;font-size:12.5px;line-height:1.42;color:var(--ink-2);columns:2;column-gap:28px}
.notes li{break-inside:avoid;margin-bottom:3px}
.notes strong{color:var(--ink);font-weight:600}
/* the live line in panel 8 */
ul.fine li.live-now{padding-left:0;color:var(--ink);font-weight:600;margin-bottom:3px;display:flex;gap:7px;align-items:baseline}
ul.fine li.live-now::before{display:none}
li.live-now .feed{flex:none;display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--ink-3);transform:translateY(1px)}
li.live-now .feed[data-state="live"]{background:var(--proven);box-shadow:0 0 0 3px var(--proven-soft)}
li.live-now .feed[data-state="snapshot"]{background:var(--progress)}
.a3-body h3 + table{margin-bottom:18px}

.graphic.tall{flex-basis:254px}
ul.fine li.live-now{font-size:14.5px;line-height:1.35;margin-bottom:6px}
ul.fine li.live-now[data-state="live"]{color:var(--proven)}

.sheets{display:none}
.sheet[hidden]{display:none}
li.live-now .feed[data-state="warn"]{background:var(--progress);box-shadow:0 0 0 3px var(--progress-soft)}
ul.fine li.live-now[data-state="warn"]{color:var(--progress)}

/* the way into the Who we are sheet */
.who{align-self:flex-start;margin-top:10px;border:1.5px solid var(--ink);background:transparent;color:var(--ink);
  font-family:var(--display);font-weight:600;font-size:15px;padding:5px 12px;cursor:pointer}
.who:hover{background:var(--blue-soft)}

/* print: the board on one true A0 sheet (1189 x 841 mm), always as the paper drawing */
@media print{
  @page{size:1189mm 841mm;margin:0}
  :root,:root:not([data-theme="light"]){
    --paper:#F7F9FB;--ink:#1A2B3C;--ink-2:#4A5B6C;--ink-3:#7B8A99;--rule:#C3CFDA;--rule-2:#DCE4EB;
    --blue:#1F5FA6;--blue-soft:#DCE8F5;--proven:#1E7A52;--proven-soft:#DDEFE6;--progress:#B07A12;--progress-soft:#F6EBD3;
    --problem:#B3262E;--problem-soft:#F6DEDF;color-scheme:light}
  html,body{width:1189mm;height:841mm;background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .desk{position:static;overflow:visible;background:none}
  .tools,.a3,.sheets,.who,.noscript{display:none !important}
  .board{transform:scale(1.8898) !important;left:0;top:0;box-shadow:none}
  .panel::after{display:none}
  .plot{animation:none;stroke-dashoffset:0}
}

/* comments at the foot of each sheet */
.a3-comments{margin-top:24px;padding-top:16px;border-top:1.5px solid var(--ink)}
.a3-comments .giscus{margin-top:10px;min-height:120px}
@media print{.a3-comments{display:none}}

.a3-fig{margin:4px 0 18px;border:1px solid var(--rule-2);padding:10px}
.a3-fig svg{display:block;width:100%;height:auto}
