/* the teaching board: a wall-mounted display. Scoped under .board.bd so it wins over the page's older .board rules. */
.board.bd{display:block;padding:clamp(6px,.65vw,10px);background:linear-gradient(160deg,#1a2a40,#0a1422 60%,#070f1b);border:1px solid rgba(138,180,255,.2);border-radius:clamp(12px,1.3vw,20px);color:var(--line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 30px 70px rgba(0,0,0,.6),0 0 110px rgba(79,209,197,.12),0 0 40px rgba(138,180,255,.08)}
.board.bd::before,.board.bd::after{content:none}
.board .bd-led{position:absolute;left:50%;bottom:calc(clamp(6px,.65vw,10px) * .5 - 2px);width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#4fd1c5;box-shadow:0 0 6px #4fd1c5}
.board .bd-screen{position:relative;width:100%;height:100%;overflow:hidden;border-radius:clamp(6px,.7vw,11px);container-type:size;isolation:isolate;
  background:radial-gradient(120% 100% at 72% 18%,#123056 0%,#0b1c34 42%,#060d1a 100%);box-shadow:inset 0 0 0 1px rgba(0,0,0,.7),inset 0 0 50px rgba(0,0,0,.55)}
.board .bd-screen::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:radial-gradient(rgba(138,180,255,.07) 1px,transparent 1.3px);background-size:16px 16px;
  -webkit-mask-image:linear-gradient(to bottom,#000,transparent 85%);mask-image:linear-gradient(to bottom,#000,transparent 85%)}
.board .bd-screen::after{content:"";position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(112deg,rgba(255,255,255,.075),rgba(255,255,255,.02) 26%,transparent 27%,transparent 70%,rgba(138,180,255,.035))}
.board .bd-cv{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}

/* scene index: top of the left strip (he stands below it); a row of bars on phones */
.board .bd-rail{position:absolute;z-index:3;left:2.2cqw;top:6cqh;width:13.5cqw;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:max(6px,1.6cqh)}
.board .bd-rail li{font:500 max(12px,min(1.55cqw,3cqh))/1.2 var(--body);color:rgba(157,176,198,.6);transition:color .3s}
.board .bd-rail li.on{color:var(--line)}
.board .bd-rail i{display:block;height:2px;margin-top:4px;background:rgba(138,180,255,.15);border-radius:2px;overflow:hidden}
.board .bd-rail i b{display:block;height:100%;background:var(--teal,#4fd1c5);transform:scaleX(var(--f,0));transform-origin:0 50%}
.board .bd-prog{position:absolute;z-index:3;left:0;right:0;bottom:0;height:2px;background:rgba(138,180,255,.1)}
.board .bd-prog b{display:block;height:100%;background:linear-gradient(90deg,var(--teal,#4fd1c5),var(--blue,#8ab4ff));transform-origin:0 50%;transform:scaleX(0)}

/* a scene fills the screen; the left 18% is kept for him */
.board .bd-sc{position:absolute;inset:0;z-index:2;padding:6cqh 3.4cqw 6cqh 19cqw;display:flex;flex-direction:column;gap:3cqh;opacity:0;visibility:hidden;min-height:0}
.board .bd-hd h3{margin:0;font:900 max(24px,min(9cqh,4.6cqw))/.95 var(--display);text-transform:uppercase;letter-spacing:.01em;color:var(--line)}
.board .bd-hd p{margin:.5em 0 0;font-size:max(13px,min(3.6cqh,1.8cqw));color:var(--dim);max-width:60ch}
.board .bd-grid{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:3.4cqw}
.board .bd-grid.bd-3{grid-template-columns:1.25fr 1fr 1fr;gap:2.6cqw}
.board .bd-p{margin:0;min-height:0;display:flex;flex-direction:column;gap:1.8cqh;border-top:1px solid rgba(138,180,255,.16);padding-top:1.8cqh}
.board .bd-p figcaption b{display:block;font-weight:600;font-size:max(14px,min(4.2cqh,2.05cqw));line-height:1.2;color:var(--line)}
.board .bd-p figcaption>span{display:block;margin-top:.3em;font-size:max(13px,min(3.2cqh,1.55cqw));line-height:1.35;color:var(--dim)}
.board .bd-p figcaption em{display:block;font-style:normal;margin-top:.35em;font-size:max(13px,min(3cqh,1.4cqw));line-height:1.35;color:var(--dim)}
.board .bd-viz{flex:1;min-height:0;position:relative}
.board .bd-org{display:flex;align-items:center;gap:8px;margin-top:.35em;font-size:max(13px,min(3.1cqh,1.5cqw));line-height:1.3;color:var(--dim)}
.board .bd-org i{display:block;font-style:normal;color:var(--dim)}
.board .bd-lg{flex:none;height:max(20px,min(5.4cqh,2.8cqw));width:auto;max-width:84px;padding:3px 5px;border-radius:5px;background:#fff;object-fit:contain}

/* now */
.board .bd-now{flex:1;min-height:0;display:grid;grid-template-columns:1.2fr 1fr;gap:2cqw;align-items:stretch}
.board .bd-nowt{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2.2cqh;min-width:0}
.board .bd-live{display:inline-flex;align-items:center;gap:8px;padding:4px 11px 4px 9px;border-radius:99px;background:rgba(79,209,197,.14);color:var(--teal,#4fd1c5);font-weight:600;font-size:max(13px,min(3.4cqh,1.6cqw))}
@media (pointer:coarse){.board .bd-live{font-size:max(14px,min(3.4cqh,1.6cqw))}}
.board .bd-live i{width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 0 rgba(79,209,197,.6);animation:bd-pulse 1.8s ease-out infinite}
@keyframes bd-pulse{to{box-shadow:0 0 0 10px rgba(79,209,197,0)}}
.board .bd-lg-big{height:max(34px,min(13cqh,7cqw));max-width:none;padding:6px 10px;border-radius:8px}
.board .bd-now h3{margin:0;font:900 max(30px,min(15cqh,7.4cqw))/.88 var(--display);text-transform:uppercase;color:var(--line)}
.board .bd-now p{margin:0;font-size:max(14px,min(4.4cqh,2.15cqw));color:var(--dim)}
.board .bd-now .bd-also{margin-top:1cqh;padding-top:1.6cqh;border-top:1px solid rgba(138,180,255,.16);font-size:max(13px,min(3.2cqh,1.5cqw))}
.board .bd-now .bd-also .bd-org{margin-top:.5em;color:var(--line)}
.board .bd-now p b{font-weight:600;color:var(--line)}
.board .bd-shot{margin:0;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center}
.board .bd-shot img{display:block;max-width:100%;max-height:100%;border-radius:6px;border:1px solid rgba(138,180,255,.2);box-shadow:0 14px 40px rgba(0,0,0,.5)}

/* statistics */
.board .bd-row{flex:1;min-height:0;display:grid;grid-template-columns:1fr minmax(0,30cqw);gap:3cqw}
.board .bd-side{display:flex;flex-direction:column;justify-content:center;gap:3.4cqh}
.board .bd-side small{display:block;margin-top:.5em;font-size:max(13px,min(3.1cqh,1.45cqw));line-height:1.35;color:var(--dim)}
.board .bd-side .bd-org{color:var(--line)}

/* since 2016 */
.board .bd-years{flex:1.1}
.board .bd-stats{flex:none;display:grid;grid-template-columns:repeat(4,1fr);gap:2.4cqw;padding:2cqh 0 0;margin:0;border-top:1px solid rgba(138,180,255,.16)}
.board .bd-stats b{display:block;font:900 max(26px,min(10cqh,4.8cqw))/.9 var(--display);color:var(--teal,#4fd1c5);font-variant-numeric:tabular-nums}
.board .bd-stats div:nth-child(2) b{color:var(--tan)}
.board .bd-stats span{display:block;margin-top:.45em;max-width:none;font-size:max(13px,min(2.9cqh,1.3cqw));line-height:1.3;color:var(--dim)}

/* phones: the figure stands above the board, so the whole box is used and scenes stack */
.board.bd-narrow .bd-rail{left:14px;right:14px;top:12px;width:auto;flex-direction:row;gap:5px}
.board.bd-narrow .bd-rail li{flex:1;font-size:0}
.board.bd-narrow .bd-rail i{margin:0;height:3px}
.board.bd-narrow .bd-sc{padding:30px 14px 14px;gap:10px}
.board.bd-narrow .bd-hd h3{font-size:24px}
.board.bd-narrow .bd-hd p{font-size:13px;margin-top:4px}
.board.bd-seq .bd-grid,.board.bd-seq .bd-grid.bd-3{grid-template:minmax(0,1fr)/minmax(0,1fr);gap:0}
.board.bd-seq .bd-p{grid-area:1/1;gap:10px;padding-top:10px}
.board.bd-narrow .bd-p figcaption b{font-size:17px}
.board.bd-narrow .bd-p figcaption>span,.board.bd-narrow .bd-p figcaption em{font-size:13px}
.board.bd-narrow .bd-org{font-size:13px;gap:6px}
.board.bd-narrow .bd-lg{height:20px;max-width:56px;padding:2px 4px}
.board.bd-narrow .bd-now{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:6px}
.board.bd-narrow .bd-nowt{gap:8px}
.board.bd-narrow .bd-now:has(.bd-shot) .bd-also{display:none} /* phones: the cover slide needs the room more than the "before that" line */
.board.bd-narrow .bd-now h3{font-size:38px}
.board.bd-narrow .bd-now p{font-size:15px}
.board.bd-narrow .bd-lg-big{height:40px}
.board.bd-narrow .bd-row{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:8px}
.board.bd-narrow .bd-side{flex-direction:row;gap:12px}
.board.bd-narrow .bd-side>div{flex:1;min-width:0}
.board.bd-narrow .bd-side small{display:none}
.board.bd-narrow .bd-side .bd-org{align-items:flex-start;flex-direction:column;gap:4px}
.board.bd-narrow .bd-stats{grid-template-columns:1fr 1fr;gap:8px 12px;padding-top:8px}
.board.bd-narrow .bd-stats b{font-size:28px}
.board.bd-narrow .bd-stats span{font-size:13px}
/* tall phone boxes: the last scene has no room for the chart and the four numbers with their captions, which were cut off at the
   bottom. They share one area and take turns: board.js fades the chart out and the numbers in part way through the scene. */
.board.bd-narrow:not(.bd-short) .bd-sc:has(>.bd-stats){display:grid;grid-template-rows:auto minmax(0,1fr)}
.board.bd-narrow:not(.bd-short) .bd-sc:has(>.bd-stats)>.bd-years,.board.bd-narrow:not(.bd-short) .bd-stats{grid-area:2/1}
.board.bd-narrow:not(.bd-short) .bd-stats{align-self:start;border-top:0;padding-top:4px;gap:16px 12px}

/* short landscape boxes (phone landscape): fewer words, the closing frame keeps only the numbers */
.board.bd-short .bd-hd p,.board.bd-short .bd-p figcaption>span,.board.bd-short .bd-p figcaption em,.board.bd-short .bd-side small,.board.bd-short .bd-years{display:none}
.board.bd-short .bd-sc{gap:8px}
.board.bd-short .bd-org{margin-top:2px}

@media (prefers-reduced-motion:reduce){.board .bd-live i{animation:none}}
.board .bd-years{min-height:124px} /* five rows of 13px labels need this much, or they pile up on phones */
