/* si100b-tech browser deck: loaded after vsp-doc's tech.css.
   The tutorials' own page styles (the <style> blocks in slides.md) were written
   for the si100b-circuit theme and use its colour names; give those names the
   tech palette, so cards, rules and labels follow the dark/light switch. */
:root, [data-theme] {
  --bg: var(--tech-bg);
  --ink: var(--tech-ink);
  --muted: var(--tech-muted);
  --line: var(--tech-line);
  --accent: var(--tech-accent);
  --panel: var(--tech-panel);
  --panel-top: var(--tech-panel-top);
  --shadow: var(--tech-shadow);
}

/* ---- Line breaks, as in the PDF: an inline code span stays on one line,
   and table columns take the width their content needs. The web renderer
   drops a .table's yaml column widths and tech.css lays tables out with
   fixed, equal columns, which wrapped short cells beside half-empty ones.
   linebreaks.js marks .si-keep what must not wrap: the end of a paragraph
   whose last line would be shorter than 5 em, a table cell with a short text ---- */
.reveal .hypo-slide-content :not(pre)>code,.reveal .hypo-slide-content .si-keep{white-space:nowrap}
.reveal .hypo-slide-content .hypo-table{table-layout:auto}

/* ---- Tech card surface, as \vsp@techcard: panel gradient, hairline, 2.2 mm
   corners, stepped shadow ---- */
.reveal .hypo-slide-content :is(.research-area,.cards>.card){
  border:2.1px solid var(--tech-line);background:linear-gradient(var(--tech-panel-top),var(--tech-panel));
  border-radius:26.4px;box-shadow:var(--tech-card-shadow)}

/* ---- Contents rows (components.json research, three-row): 136 x 13.5 mm
   cards, area 12.5/15 pt bold accent, work 11/13 pt, venue 9.5/11 pt muted ---- */
.reveal .research{display:flex;flex-direction:column;align-items:center;gap:39px;width:100%}
.reveal .research-area{box-sizing:border-box;width:1632px;height:162px;margin:0;padding:0 60px 0 72px;
  display:flex;align-items:center;text-align:left}
.reveal .research-area h3{flex:none;width:492px;margin:0;font:700 52.9px/63.5px var(--tech-sans);color:var(--tech-accent)}
.reveal .research-area>div{font:400 46.57px/55px var(--tech-sans);color:var(--tech-ink)}
.reveal .research-area small{display:block;margin-top:7.2px;font:400 40.2px/46.57px var(--tech-sans);color:var(--tech-muted)}

/* ---- Two cards side by side (components.json cards, two-up): 0.48 of the
   text width each, 54 mm high, 5/4 mm padding; title 8.86/12.85 pt bold
   accent, body 8.86/12.85 pt ---- */
.reveal .cards[data-layout="two-up"]{display:grid;width:100%;grid-template-columns:838.7px 838.7px;justify-content:space-between}
.reveal .cards>.card{box-sizing:border-box;height:648px;padding:48px 60px;text-align:left}
.reveal .cards>.card>h4{margin:0 0 21.6px;font:700 37.5px/54.4px var(--tech-sans);color:var(--tech-accent);text-align:left}
.reveal .cards>.card :is(p,li){font-size:37.5px;line-height:54.4px}
.reveal .cards>.card li+li{margin-top:9.2px}

/* ---- Closing page (components.json closing, minimal): the PDF's
   \CircuitClosing, i.e. tech's end page drawn over the frame: section
   artwork, crest top left, the frame title as end title (26/32 pt), one muted
   note (10/13 pt) 3 mm below it; no title band, eyebrow or footline. The
   title block (130 mm wide) ends 6 mm below the page centre: with a note the
   title sits a note line and 3 mm higher ---- */
.reveal .slides section.hypo-slide:has(> .hypo-slide-body .closing){
  background:var(--tech-bg) var(--tech-art-section) center/100% 100% no-repeat}
.reveal section:has(> .hypo-slide-body .closing) footer.hypo-slide-footer{display:none}
.reveal section:has(> .hypo-slide-body .closing) header.hypo-slide-header{height:1080px;background:none;box-shadow:none}
.reveal section:has(> .hypo-slide-body .closing) header.hypo-slide-header::before,
.reveal section:has(> .hypo-slide-body .closing) header.hypo-slide-header::after,
.reveal section:has(> .hypo-slide-body .closing) .hypo-eyebrow{display:none}
.reveal section:has(> .hypo-slide-body .closing) .hypo-slide-heading{left:144px;top:auto;bottom:559px;width:1560px;height:auto;padding:0;background:none}
.reveal section:has(> .hypo-slide-body .closing-note:empty) .hypo-slide-heading{bottom:463px}
.reveal section:has(> .hypo-slide-body .closing) header.hypo-slide-header h2{margin:0;font:700 110.07px/135.47px var(--tech-sans);color:var(--tech-ink)}
.reveal section:has(> .hypo-slide-body .closing) header.hypo-slide-header .hypo-slide-logo{left:144px;right:auto;top:96px;height:117.6px;max-height:117.6px}
.reveal section:has(> .hypo-slide-body .closing) .hypo-slide-body{inset:0;display:block}
.reveal section:has(> .hypo-slide-body .closing) .closing{position:absolute;left:144px;top:557px;width:1560px;margin:0}
.reveal section:has(> .hypo-slide-body .closing) .closing-note{margin:0;font:400 42.33px/55.03px var(--tech-sans);color:var(--tech-muted);text-align:left}
.reveal section:has(> .hypo-slide-body .closing) .closing-note:empty{display:none}

/* ---- Annotation (components.json annotation): one centred muted line under
   a figure, 9/11 pt, 1.5 mm below it ---- */
.reveal .hypo-slide-content .annotation{margin:18px 0 0;font:400 38.1px/52.2px var(--tech-sans);color:var(--tech-muted);text-align:center}
.reveal .hypo-slide-content .annotation p{margin:0;text-align:center}

/* ---- Figures and galleries (components.json figure, gallery): centred as
   the PDF's \centering. 1 mm of the page is 12 px of the canvas, 3.175 CSS mm.
   default: CircuitFigure, a card with even padding (padding=, 3 mm) and
   2.4 mm corners. framed-wide-with-note and the two-up galleries:
   CircuitPhoto, photos clipped to 1.8 mm corners with a hairline and the card
   shadow, 6 mm apart, a caption (\footnotesize muted) 5 mm below the photo's
   baseline. Notes: wide-with-note 8/10 pt centred, 2 mm below the photo; the
   others 8/10.5 pt at 1.12 leading, ragged right in a centred box up to the
   note width, 2.6 mm below ---- */
.reveal .hypo-slide-content :is(.figure,.gallery):not([data-layout="photo-left-with-text"]){width:100%;margin:0;text-align:center}
.reveal .hypo-slide-content :is(.figure,.gallery) figure.photo{margin:0}
.reveal .hypo-slide-content :is(.figure,.gallery) figure.photo p{margin:0;line-height:0}
.reveal .hypo-slide-content .figure-card{display:inline-block;box-sizing:content-box;padding:calc(var(--figure-pad) * 3.175);line-height:0;
  border:2.1px solid var(--tech-line);border-radius:28.8px;background:linear-gradient(var(--tech-panel-top),var(--tech-panel));box-shadow:var(--tech-card-shadow)}
.reveal .hypo-slide-content .figure-card p{margin:0}
.reveal .hypo-slide-content :is(.figure[data-layout="framed-wide-with-note"],.gallery[data-layout^="two-up"]) figure.photo{
  display:inline-block;position:relative;border:2.1px solid var(--tech-line);border-radius:21.6px;box-shadow:var(--tech-card-shadow)}
.reveal .hypo-slide-content :is(.figure[data-layout="framed-wide-with-note"],.gallery[data-layout^="two-up"]) figure.photo img{border-radius:19.5px}
.reveal .hypo-slide-content .gallery[data-layout^="two-up"] figcaption{position:absolute;left:0;right:0;top:calc(100% + 30px);
  font:400 33.87px/42.33px var(--tech-sans);color:var(--tech-muted);text-align:center;white-space:nowrap}
.reveal .hypo-slide-content .gallery[data-layout^="two-up"]>.layout-row{display:flex;justify-content:center;align-items:flex-end;gap:72px}
.reveal .hypo-slide-content .gallery>:is(.note,.credit):empty{display:none}
.reveal .hypo-slide-content .figure-note{margin:24px 0 0;font:400 33.87px/42.33px var(--tech-sans);color:var(--tech-muted);text-align:center}
.reveal .hypo-slide-content .figure-note[style]{width:fit-content;max-width:calc(var(--figure-note-width) * 3.175);margin:31.2px auto 0;line-height:49.78px;text-align:left}
.reveal .hypo-slide-content .figure-note:empty{display:none}
