/* tech — VSP-Beamer tutorial-tech for HypoDoc browser decks (1920 x 1080 canvas).
   Values follow beamerthemetutorial-tech.sty, beamerthemeVSP.sty and HypoDoc's tech.tex as the PDF
   renders them: the page is 160 x 90 mm, so 1 mm = 12 px and 1 pt = 4.2333 px. Faces come from
   fonts/fonts.css (`hypodoc web-fonts`): Latin Modern Sans and Mono for Latin text, Noto Sans CJK SC
   for Chinese, Regular and Bold only (no fake bold; italics are slanted). Both palettes are here;
   html[data-theme] picks one. A theme built on tech (theme.json "base": "tech") loads after this
   file and may override any --tech-* property, the artwork (--tech-art-*) or a rule. */

/* ---- Palettes: TechBg ... TechGreen, glow, card and band shadows, title-band tint ---- */
:root,:root[data-theme="dark"]{
  --tech-bg:#0A0E17;--tech-bg-lift:#0F1522;--tech-band:#111929;--tech-panel:#151C2B;--tech-panel-top:#182134;
  --tech-panel-hi:#1C2538;--tech-line:#2A3550;--tech-ink:#E8ECF4;--tech-muted:#98A2B6;--tech-dim:#5F6A80;
  --tech-accent:#82AAFF;--tech-blue:#4F8CFF;--tech-cyan:#7CC4FF;--tech-violet:#9A6BFF;--tech-lilac:#C3A6FF;
  --tech-green:#6EE7B7;--tech-glow:#4F8CFF3D;--tech-shadow:#0000001D;--tech-shadow-band:#00000017;--tech-headmix:16%;
  --tech-art-edge:url(art-edge-dark.svg);--tech-art-cover:url(art-cover-dark.svg);--tech-art-section:url(art-section-dark.svg);
  color-scheme:dark}
:root[data-theme="light"]{
  --tech-bg:#E9ECF1;--tech-bg-lift:#F1F3F6;--tech-band:#F6F7F9;--tech-panel:#FFFFFF;--tech-panel-top:#FFFFFF;
  --tech-panel-hi:#E8EDF7;--tech-line:#CBD2DE;--tech-ink:#1A2030;--tech-muted:#545E72;--tech-dim:#8790A2;
  --tech-accent:#2353D6;--tech-blue:#2353D6;--tech-cyan:#1F6FE0;--tech-violet:#6E3FDB;--tech-lilac:#5F33C8;
  --tech-green:#0E8F64;--tech-glow:#2353D61A;--tech-shadow:#1A244006;--tech-shadow-band:#1A244005;--tech-headmix:10%;
  --tech-art-edge:url(art-edge-light.svg);--tech-art-cover:url(art-cover-light.svg);--tech-art-section:url(art-section-light.svg);
  color-scheme:light}
:root{
  --tech-sans:var(--hypo-font-sans,"Latin Modern Sans","Noto Sans CJK SC",sans-serif);
  --tech-mono:var(--hypo-font-mono,"Latin Modern Mono","Noto Sans CJK SC",monospace);
  --tech-card-shadow:0 9.6px 0 3px var(--tech-shadow),0 9.6px 0 8.4px var(--tech-shadow),0 9.6px 0 14.4px var(--tech-shadow),0 9.6px 0 21.6px var(--tech-shadow);
  /* \textheight of the 16:9 page (80.59 mm): image and figure heights are fractions of it, as in the PDF */
  --hypo-text-height:967.13px;
  --hypo-bg:var(--tech-bg);--hypo-ink:var(--tech-ink);--hypo-muted:var(--tech-muted);--hypo-accent:var(--tech-accent);
  --hypo-surface:var(--tech-panel);--hypo-border:var(--tech-line);--hypo-font:var(--tech-sans);--hypo-mono:var(--tech-mono);
  --hypo-note:var(--tech-accent);--hypo-tip:var(--tech-green);--hypo-warning:var(--tech-lilac);
  --hypo-answer:var(--tech-green);--hypo-solution:var(--tech-violet);
  --deck-ink:var(--tech-ink);--deck-muted:var(--tech-muted);--deck-dim:var(--tech-dim);--deck-line:var(--tech-line);
  --deck-bg:var(--tech-bg);--deck-band:var(--tech-band);--deck-panel:var(--tech-panel);--deck-panel-top:var(--tech-panel-top);
  --deck-accent:var(--tech-accent);--deck-accent-2:var(--tech-lilac);--deck-shadow:#0000004D;
  --deck-font:var(--tech-sans);--deck-mono:var(--tech-mono);
  font-synthesis:style}

/* ---- Type: body 10/12 pt; Regular and Bold ---- */
body,.reveal,.reveal .slides{font-family:var(--tech-sans)}
.reveal :is(h1,h2,h3,h4,h5,h6){font-family:var(--tech-sans);letter-spacing:0;text-transform:none;font-weight:700;text-shadow:none}
.reveal :is(strong,b){font-weight:700;color:inherit}
.reveal :is(em,i){font-style:italic}
/* Lines keep the block's pitch, as TeX's \baselineskip: a run in another face (bold, mono) has other ascent and
   descent, and with the block's line height its inline box would grow the line by a pixel or three. */
.reveal .hypo-slide-content :is(strong,b,em,i,u,s,a,code,kbd,samp,sub,sup){line-height:0}
/* Code as \texttt: Latin Modern Mono at the size of the text around it, Chinese from Noto Sans CJK SC */
.reveal :is(code,kbd,samp,pre){font-family:var(--tech-mono);font-weight:400;font-variant-ligatures:none}
.reveal :not(pre)>code{font-size:1em;color:inherit;background:none;border:0;border-radius:0;padding:0;overflow-wrap:normal}
.reveal kbd{font-size:.9em;padding:0 .3em;border:1.7px solid var(--tech-line);
  border-bottom-width:3.4px;border-radius:.2em;background:var(--tech-panel);color:var(--tech-ink)}
.reveal .slides section.hypo-slide{box-sizing:border-box;background-color:var(--tech-bg);color:var(--tech-ink)}

/* ---- Title band: 12.6 mm, blue-violet hairline, glow and shadow below ---- */
.reveal header.hypo-slide-header{position:absolute;inset:0 0 auto;height:151.2px;padding:0;display:block;overflow:visible;
  background:var(--tech-band);border:0;
  box-shadow:0 7.2px 0 var(--tech-shadow-band),0 15.6px 0 var(--tech-shadow-band),0 26.4px 0 var(--tech-shadow-band)}
.reveal header.hypo-slide-header::before{content:'';position:absolute;left:0;right:0;top:149.4px;height:18.6px;z-index:3;pointer-events:none;
  background:linear-gradient(90deg,var(--tech-blue),color-mix(in srgb,var(--tech-blue) 50%,var(--tech-violet)),var(--tech-violet)) 0 0/100% 4.2px no-repeat,
    linear-gradient(var(--tech-glow),transparent) 0 1.8px/100% 16.8px no-repeat}
/* circuit traces: 12.6 mm high, right end 35 mm from the page edge */
.reveal header.hypo-slide-header::after{content:'';position:absolute;top:0;left:996px;width:504px;height:151.2px;
  background:var(--tech-art-edge) 0 0/100% 100% no-repeat;z-index:0;pointer-events:none}
/* the band colour behind the title, fading out 5 mm past it, stops the traces */
.reveal .hypo-slide-heading{position:absolute;left:74.4px;top:18px;height:129.6px;width:max-content;max-width:1400px;
  box-sizing:border-box;padding:0 84px 0 12px;margin:0;z-index:1;
  background:linear-gradient(90deg,var(--tech-band) calc(100% - 60px),transparent)}
/* eyebrow: 6 pt bold capitals, baseline 4.6 mm from the top; none before the first section */
.reveal .hypo-slide-heading .hypo-eyebrow{position:absolute;left:12px;top:13.6px;margin:0;white-space:nowrap;
  font:700 25.4px/25.4px var(--tech-sans);letter-spacing:0;text-transform:uppercase;color:var(--tech-accent)}
.reveal .hypo-slide-heading .hypo-eyebrow:empty{display:none}
/* title: 13.47 pt bold, baseline 9.9 mm from the top */
.reveal header.hypo-slide-header h2{margin:47.8px 0 0;padding:0;white-space:nowrap;
  font:700 57.02px/57.02px var(--tech-sans);letter-spacing:0;color:var(--tech-ink)}
/* crest: 7.2 mm high, 7.2 mm from the right edge, centred on the band */
.reveal header.hypo-slide-header .hypo-slide-logo{position:absolute;right:86.4px;top:32.4px;height:86.4px;max-height:86.4px;width:auto;margin:0;z-index:2}

/* ---- Text area: 7.2 mm side margins, from below the title box to the footline. The top is where TeX puts a
   box (callout, table, code) that opens a frame; lines of text open lower, as TeX's baselineskip from the
   title puts them, so text blocks that come first get a larger top margin. ---- */
.reveal .hypo-slide-body{position:absolute;left:86.4px;right:86.4px;top:236.3px;bottom:96px;display:flex;align-items:flex-start;justify-content:flex-start}
.reveal .hypo-slide-body>.hypo-slide-content{width:100%;max-width:100%;text-align:left;font:400 42.33px/50.8px var(--tech-sans);color:var(--tech-ink)}
.reveal .hypo-slide-content :is(p,ul,ol,li,dl,figcaption){text-align:left}
.reveal .hypo-slide-content p{margin:0}
.reveal .hypo-slide-content>*+*,.reveal .hypo-slide-content :is(.hypo-block-body,.hypo-col,.hypo-cell)>*+*{margin-top:25.4px}
.reveal .hypo-slide-content>:is(p,dl,blockquote):first-child{margin-top:33.9px}
.reveal .hypo-slide-content a{color:var(--tech-accent);text-decoration:none}

/* ---- Lists: hollow accent ring, muted dot, bold accent numbers ---- */
.reveal .hypo-slide-content :is(ul,ol){margin:12.7px 0 0;padding:0 0 0 84.4px;list-style:none}
.reveal .hypo-slide-content>:is(ul,ol):first-child{margin-top:46.6px}
.reveal .hypo-slide-content li{margin:0;padding:0;list-style:none;position:relative}
.reveal .hypo-slide-content li+li{margin-top:8.5px}
.reveal .hypo-slide-content ol>li+li{margin-top:12.7px}
.reveal .hypo-slide-content li>p{display:inline;margin:0}
.reveal .hypo-slide-content ul>li::before{content:'';display:inline-block;box-sizing:border-box;width:15.7px;height:15.7px;
  margin:0 21.1px 0 -36.8px;vertical-align:.18em;border:2.54px solid var(--tech-accent);border-radius:50%;background:var(--tech-bg)}
.reveal .hypo-slide-content ol{counter-reset:tech-item}
.reveal .hypo-slide-content ol>li{counter-increment:tech-item}
.reveal .hypo-slide-content ol[start]{counter-reset:tech-item calc(attr(start type(<integer>), 1) - 1)}
.reveal .hypo-slide-content ol>li::before{content:counter(tech-item) '.';position:absolute;left:-57.3px;top:0;font-weight:700;color:var(--tech-accent)}
.reveal .hypo-slide-content ol[type="a"]>li::before{content:counter(tech-item,lower-alpha) '.'}
.reveal .hypo-slide-content ol[type="A"]>li::before{content:counter(tech-item,upper-alpha) '.'}
.reveal .hypo-slide-content ol[type="i"]>li::before{content:counter(tech-item,lower-roman) '.'}
.reveal .hypo-slide-content ol[type="I"]>li::before{content:counter(tech-item,upper-roman) '.'}
.reveal .hypo-slide-content li :is(ul,ol){margin-top:8px;padding-left:84.3px;font-size:38.1px;line-height:46.57px}
.reveal .hypo-slide-content li li+li{margin-top:.3px}
.reveal .hypo-slide-content li:has(>:is(ul,ol))+li{margin-top:12.7px}
.reveal .hypo-slide-content li ul>li::before{width:8.4px;height:8.4px;margin:0 21.1px 0 -29.5px;vertical-align:.22em;border:0;background:var(--tech-muted)}
.reveal .hypo-slide-content .hypo-tasks>li::before{content:none}
.reveal .hypo-slide-content .hypo-tasks input{margin:0 .4em 0 -1.4em;accent-color:var(--tech-accent)}

/* ---- Callouts: panel card with a soft-tinted title band, 8.86/12.85 pt ---- */
.reveal .hypo-slide-content .hypo-block{--tech-c:var(--tech-accent);margin:22.7px 0 19px;padding:0;overflow:hidden;
  border:2.1px solid var(--tech-line);border-left-width:2.1px;border-radius:18px;
  background:linear-gradient(var(--tech-panel-top),var(--tech-panel));box-shadow:var(--tech-card-shadow);
  font:400 37.51px/54.4px var(--tech-sans);color:var(--tech-ink);text-align:left;break-inside:auto}
.reveal .hypo-slide-content>.hypo-block:first-child{margin-top:11.7px}
.reveal .hypo-slide-content .hypo-block+.hypo-block{margin-top:20px}
.reveal .hypo-slide-content>ol+.hypo-block{margin-top:17.7px}
.reveal .hypo-slide-content :is(.hypo-objective,.hypo-deliverable,.hypo-tip,.hypo-hint,.hypo-answer){--tech-c:var(--tech-green)}
.reveal .hypo-slide-content :is(.hypo-warning,.hypo-requirement){--tech-c:var(--tech-lilac)}
.reveal .hypo-slide-content :is(.hypo-task,.hypo-question){--tech-c:var(--tech-blue)}
.reveal .hypo-slide-content :is(.hypo-summary,.hypo-solution){--tech-c:var(--tech-violet)}
.reveal .hypo-slide-content .hypo-block>.hypo-block-title{margin:0;padding:9.6px 36px 8.9px;font:700 37.51px/54.4px var(--tech-sans);color:var(--tech-c);
  background:color-mix(in srgb,var(--tech-c) var(--tech-headmix),var(--tech-panel));border-bottom:1.9px solid color-mix(in srgb,var(--tech-c) 22%,var(--tech-line))}
.reveal .hypo-slide-content .hypo-block>.hypo-block-body{margin:0;padding:15.9px 36px 16.7px}
.reveal .hypo-slide-content .hypo-block>.hypo-block-body>*+*{margin-top:16.9px}
.reveal .hypo-slide-content .hypo-block :is(ul,ol){margin-top:0}
.reveal .hypo-slide-content .hypo-qa{margin:12.7px 0 0;padding:0;border:0;background:none;box-shadow:none}
.reveal .hypo-slide-content .hypo-qa-title{margin:0 0 12.7px;font:700 42.33px/50.8px var(--tech-sans);color:var(--tech-accent)}

/* ---- Tables: tabularray rules, header row on TechPanelHi, 0.92 of the text width, 9 pt text ---- */
.reveal .hypo-slide-content .hypo-table-wrap{margin:12.7px auto 0;width:92%;overflow:visible}
.reveal .hypo-slide-content>.hypo-table-wrap:first-child,.reveal .hypo-slide-content>.hypo-table-block:first-child>.hypo-table-wrap{margin-top:64.7px}
.reveal .hypo-slide-content .hypo-table{width:100%;table-layout:fixed;border-collapse:collapse;font:400 38.1px/50.8px var(--tech-sans);color:var(--tech-ink)}
.reveal .hypo-slide-content .hypo-table :is(th,td){padding:10.6px 25.4px;border:0;vertical-align:top;text-align:left}
.reveal .hypo-slide-content .hypo-table thead th{padding-top:2.6px;background:var(--tech-panel-hi);color:var(--tech-ink);font-weight:700;
  border-top:3px solid var(--tech-ink);border-bottom:1.3px solid var(--tech-ink)}
.reveal .hypo-slide-content .hypo-table tbody tr:last-child>*{padding-bottom:16.6px;border-bottom:3px solid var(--tech-ink)}
.reveal .hypo-slide-content .hypo-table:not(:has(thead)) tbody tr:first-child>*{border-top:3px solid var(--tech-ink)}
.reveal .hypo-slide-content .hypo-table :is(td,th) p{margin:0}
.reveal .hypo-slide-content :is(.hypo-table-comparison,.hypo-table-rubric) tbody tr:nth-child(even){background:var(--tech-bg-lift)}
.reveal .hypo-slide-content .hypo-table caption{caption-side:top;margin:0 0 12.7px;font:400 33.87px/42.33px var(--tech-sans);color:var(--tech-muted);text-align:center}
.reveal .hypo-slide-content .hypo-label{font-weight:400;color:var(--tech-accent)}

/* ---- Code blocks: listings in a TechPanel frame, 7.09/8.51 pt ---- */
.reveal .hypo-slide-content pre{box-sizing:border-box;width:auto;margin:25.4px -27.4px 0;padding:25.4px 25.7px;
  background:var(--tech-panel);border:1.7px solid var(--tech-line);border-radius:0;box-shadow:none;
  font:400 30.01px/36.02px var(--tech-mono);color:var(--tech-ink);white-space:pre;overflow:hidden;tab-size:4}
.reveal .hypo-slide-content>pre:first-child{margin-top:30.7px}
.reveal .hypo-slide-content pre code{display:block;padding:0;margin:0;background:none;border:0;font:inherit;color:inherit;max-height:none;overflow:visible}

/* ---- Figures: centred, caption muted below. TikZ pictures sit in the text, as raw TikZ in a frame;
   the SVG keeps the 2 pt border of its standalone page, so it starts 2 pt up and left. ---- */
.reveal .hypo-slide-content :is(figure,.hypo-figure){margin:12.7px 0 0;text-align:center}
.reveal .hypo-slide-content>:is(figure,.hypo-figure):first-child{margin-top:64.7px}
.reveal .hypo-slide-content :is(figure,.hypo-figure) img{display:block;margin:0 auto;object-fit:contain}
.reveal .hypo-slide-content figcaption{margin:40.7px 0 0;font:400 42.33px/50.8px var(--tech-sans);color:var(--tech-muted);text-align:center}
.reveal .hypo-slide-content img.hypo-tikz{display:block;margin:4.3px 0 0 -8.43px;max-width:100%;height:auto}
.reveal .hypo-slide-content>img.hypo-tikz:first-child{margin-top:22.7px}
.reveal .hypo-slide-content .hypo-cols{gap:42.33px}
.reveal .hypo-slide-content .hypo-cell{border:2.1px solid var(--tech-line);border-radius:18px;padding:25.2px 36px;
  background:linear-gradient(var(--tech-panel-top),var(--tech-panel));box-shadow:var(--tech-card-shadow)}
.reveal .hypo-slide-content blockquote{margin:12.7px 0 0;padding-left:36px;border-left:4.2px solid var(--tech-line);color:var(--tech-muted)}

/* ---- Footline: 6.3 pt bold dim, short title | short subtitle ... page, baseline 86.8 mm ---- */
.reveal footer.hypo-slide-footer{position:absolute;left:86.4px;right:86.4px;top:1010.4px;bottom:auto;height:26.67px;
  display:flex;align-items:baseline;justify-content:space-between;white-space:nowrap;
  font:700 26.67px/26.67px var(--tech-sans);color:var(--tech-dim)}
.reveal footer.hypo-slide-footer .hypo-foot-sep{margin:0 26.67px;color:var(--tech-line)}
.reveal footer.hypo-slide-footer .hypo-page{flex:none;margin-left:auto;padding-left:26.67px;color:var(--tech-dim);word-spacing:-.17em}
/* a short subtitle too long for the line ends in an ellipsis before the page number, never under it */
.reveal footer.hypo-slide-footer>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;padding:.3em 0;margin:-.3em 0}

/* ---- Cover: one 92 mm column from (12 mm, 8 mm): crest 9.8 mm; title 20/26 pt bold; subtitle 10.5/14 pt
   accent; speaker label 7/9 pt bold dim capitals; name 10.5/13 pt bold; detail, email and date 8/11 pt muted.
   Each margin puts the baseline where TeX puts it (\vskip plus the next \baselineskip). ---- */
/* (section.hypo-cover stays below `.reveal [hidden]`, so slides Reveal hides stay hidden and never fade) */
section.hypo-cover{display:block!important;padding:96px 0 0 144px!important;box-sizing:border-box;overflow:hidden;
  background:var(--tech-bg) var(--tech-art-cover) center/100% 100% no-repeat}
.reveal section.hypo-cover>*{position:relative;width:1104px;max-width:1104px;text-align:left}
.reveal section.hypo-cover>.hypo-slide-logo{display:block;width:auto;height:117.6px;max-height:117.6px;margin:0}
.reveal section.hypo-cover h1{margin:79.3px 0 0;font:700 84.67px/110.07px var(--tech-sans);color:var(--tech-ink)}
.reveal section.hypo-cover h2{margin:27px 0 0;font:400 44.45px/59.27px var(--tech-sans);color:var(--tech-accent)}
.reveal section.hypo-cover .hypo-speaker p{margin:0;text-align:left}
.reveal section.hypo-cover .hypo-speaker>:first-child{margin-top:80.3px}
.reveal section.hypo-cover .hypo-speaker-label{font:700 29.63px/38.1px var(--tech-sans);color:var(--tech-dim);text-transform:uppercase}
.reveal section.hypo-cover .hypo-speaker .hypo-speaker-name{margin-top:11.2px;font:700 44.45px/55.03px var(--tech-sans);color:var(--tech-ink)}
.reveal section.hypo-cover .hypo-speaker .hypo-speaker-detail{margin-top:12.8px;font:400 33.87px/46.57px var(--tech-sans);color:var(--tech-muted)}
.reveal section.hypo-cover .hypo-speaker :is(.hypo-speaker-email,.hypo-speaker-date){margin-top:11.6px;font:400 33.87px/46.57px var(--tech-sans);color:var(--tech-muted)}

/* ---- Section, subsection and closing pages: full-page artwork; text 120 mm wide (closing 130 mm) from
   12 mm, its bottom 6 mm below the middle of the page. Section: number 14/16 pt mono accent, title 21/27 pt
   bold. Subsection: title, then its section 10/12 pt muted. Closing: crest, end title 26/32 pt, note 10/13 pt. */
section.hypo-divider{display:block!important;padding:0!important;box-sizing:border-box;overflow:hidden;
  background:var(--tech-bg) var(--tech-art-section) center/100% 100% no-repeat}
.reveal section.hypo-divider .hypo-divider-text{--tech-anchor:468;position:absolute;left:144px;bottom:458px;width:1440px;text-align:left}
.reveal section.hypo-divider[data-level="2"] .hypo-divider-text{bottom:465px}
.reveal section.hypo-divider .hypo-divider-text>*{margin:0;text-align:left}
.reveal section.hypo-divider .hypo-divider-text>.hypo-divider-number{font:400 59.27px/67.73px var(--tech-mono);color:var(--tech-accent)}
.reveal section.hypo-divider .hypo-divider-text>h2{font:700 88.9px/114.3px var(--tech-sans);color:var(--tech-ink)}
.reveal section.hypo-divider .hypo-divider-text>.hypo-divider-number+h2{margin-top:42px}
.reveal section.hypo-divider .hypo-divider-text>.hypo-divider-parent{margin-top:23px;font:400 42.33px/50.8px var(--tech-sans);color:var(--tech-muted)}
.reveal section.hypo-closing>.hypo-slide-logo{position:absolute;left:144px;top:96px;height:117.6px;max-height:117.6px;width:auto;margin:0}
.reveal section.hypo-closing .hypo-divider-text{bottom:463px;width:1560px}
.reveal section.hypo-closing .hypo-divider-text>h2{font:700 110.07px/135.47px var(--tech-sans)}
.reveal section.hypo-closing .hypo-divider-text>.hypo-closing-note{margin-top:23px;font:400 42.33px/55.03px var(--tech-sans);color:var(--tech-muted)}

/* ---- Deck chrome (vendor/deck-nav.css): the band, the crest and the footline stay clear ---- */
/* deck-nav.js docks the toolbar below the footline (its text and descenders end at 1040 px), in the letterbox
   when there is room, else in this strip, scaled with the slide; Reveal's corner arrows would cover the page number */
:root{--deck-dock-top:1043;--deck-dock-bottom:1077}
.deck-toolbar{top:auto;bottom:4px;right:auto;left:50%;transform:translateX(-50%)}
.reveal .controls{display:none!important}

/* ---- Fonts: ask for every face at first paint (a hidden glyph in each), so a slide shown later
   never waits for a face or swaps one in ---- */
html::before,html::after,body::before,body::after{position:fixed;left:-9999px;top:0;visibility:hidden;pointer-events:none;font-size:1px}
html::before{content:'中A';font-family:var(--tech-sans);font-weight:400}
html::after{content:'中A';font-family:var(--tech-sans);font-weight:700}
body::before{content:'中A';font-family:var(--tech-mono)}
