/* T-Deck specifics on top of tour.css: the model owns the screen; the schematic opens on demand. */
.td-anatomy { color:var(--site-paper); background:var(--site-ground); overflow-anchor:none; }
.td-anatomy *, .td-anatomy *::before, .td-anatomy *::after { box-sizing:border-box; }
.td-anatomy [hidden] { display:none!important; }
.td-anatomy :is(a,button,canvas,select):focus-visible { outline:2px solid var(--site-yellow); outline-offset:4px; }
body.site-theme:has(.td-product) { --product-gutter:var(--site-gutter); }
body.site-theme .td-product > .dossier-bar { min-height:72px; padding:12px 0; width:calc(100% - 2 * var(--site-gutter)); }
body.site-theme .td-product .dossier-wordmark { font-size:22px!important; line-height:1!important; }
body.site-theme .td-product .dossier-wordmark i { width:22px!important; height:22px!important; border-radius:3px!important; }
body.site-theme .td-product .dossier-wordmark sup { font-size:8px!important; margin-top:10px; }
.td-scroll-story { height:1600svh; }
.td-workbench { position:sticky; top:0; height:100svh; overflow:hidden; background:var(--site-ground); }
.td-workbench::before { content:''; position:absolute; inset:0; opacity:.035; pointer-events:none; background:url(/framerusercontent.com/images/6mcf62RlDfRfU61Yg5vb2pefpi4.png) repeat; background-size:256px; }
.td-stage { position:absolute; inset:0; }
.td-stage canvas { position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:pan-y; cursor:grab; mask-image:linear-gradient(to bottom,transparent,#000 5%,#000 94%,transparent); }
.td-poster { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:70px 20px 110px; }
.td-stage[data-state=ready] .td-poster { visibility:hidden; }
.td-stage:not([data-state=ready]) canvas { visibility:hidden; }
.td-load { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--site-muted); font-size:12px; }
.td-load progress { width:100px; height:2px; accent-color:var(--site-yellow); }
/* While loading, the line says enough; the words stay for screen readers and return on failure. */
.td-stage[data-state=loading] [data-td-status] { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.td-load button { min-height:44px; background:var(--site-ground); border:1px solid var(--site-rule); color:var(--site-paper); padding:0 16px; }
.td-anatomy svg.td-leaders { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.td-leaders path { fill:none; stroke:var(--site-yellow); stroke-width:.8; }
.td-labels { position:absolute; inset:0; pointer-events:none; }
.td-labels > span { position:absolute; left:0; top:0; padding:5px 8px; background:var(--site-ground); color:var(--site-paper); font-size:12px; white-space:nowrap; }
.td-skip { position:absolute; right:var(--site-gutter); top:90px; opacity:0; pointer-events:none; font-size:12px; }
.td-skip:focus-visible { opacity:1; pointer-events:auto; }
[data-td-net-targets] { display:flex; justify-content:center; gap:8px 14px; flex-wrap:wrap; max-height:42px; overflow:auto; font-size:12px; margin-top:8px; }
[data-td-net-targets] a { color:var(--site-paper); }
.td-finish { max-width:1100px; padding:60px var(--site-gutter) 80px; margin:auto; scroll-margin-top:90px; }
.td-finish-heading { display:flex; justify-content:space-between; align-items:baseline; gap:20px; margin-bottom:20px; }
.td-finish-heading p { font-size:22px; margin:0; }
.td-finish-heading a { font-size:12px; color:var(--site-muted); padding:12px 0; }
.td-no-js { padding:var(--site-gutter); }
@media(max-width:700px) {
  .td-stage { inset:48px 0 176px; }
  .td-poster { padding:20px 20px 30px; }
  .td-finish { padding-top:36px; }
  .td-finish-heading p { font-size:20px; text-transform:uppercase; letter-spacing:-.04em; }
}
@media(prefers-reduced-motion:reduce) {
  .td-scroll-story { height:1100svh; }
}

/* The schematic: full screen, fitted on open, the sheet the only thing that moves. */
dialog.td-schematic { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; border-radius:0; background:var(--site-ground); color:var(--site-paper); overflow:hidden; }
dialog.td-schematic[open] { display:grid; grid-template-rows:auto minmax(0,1fr); grid-template-columns:minmax(0,1fr); }
dialog.td-schematic > * { min-width:0; }
dialog.td-schematic::backdrop { background:#0b0b0b; }
.td-schematic-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:64px; padding:10px var(--site-gutter); border-bottom:1px solid var(--site-soft-rule); }
body.site-theme .td-schematic .td-schematic-title { display:flex; align-items:baseline; gap:12px; min-width:0; margin:0; font:500 20px/1.2 var(--site-display); letter-spacing:-.02em; color:var(--site-paper); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.td-schematic-title small { font:400 13px/1.2 var(--site-display); letter-spacing:0; color:var(--site-muted); overflow:hidden; text-overflow:ellipsis; }
.td-schematic-bar nav { display:flex; align-items:center; flex:none; }
body.site-theme .td-schematic-bar nav :is(a,button) { display:inline-flex; align-items:center; min-height:44px; padding:0 12px; border:0; border-radius:0; background:none; color:var(--site-muted); font:500 12px/1 var(--site-display); letter-spacing:.04em; text-transform:uppercase; text-decoration:none; cursor:pointer; }
body.site-theme .td-schematic-bar nav :is(a,button):hover { color:var(--site-paper); }
body.site-theme .td-schematic-bar nav button { color:var(--site-paper); }
.td-schematic-stage { position:relative; min-height:0; overflow:hidden; }
.td-schematic-stage > img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:16px; filter:invert(.92); }
.td-schematic-stage:has([data-ready=true]) > img { visibility:hidden; }
.td-schematic-stage [data-td-circuit-host] { position:absolute; inset:0; }
body.site-theme .td-schematic .pdf-viewer { position:absolute; inset:0; width:100%; height:100%; background:transparent; }
body.site-theme .td-schematic .pdf-scroll { position:absolute; inset:0; background:transparent; }
body.site-theme .td-schematic .pdf-canvas { filter:invert(.92); box-shadow:none; }
body.site-theme .td-schematic .pdf-component { background:transparent; border-color:transparent; }
body.site-theme .td-schematic .pdf-component:is(:hover,:focus-visible) { background:#fbe15418; border:1px solid var(--site-yellow); }
body.site-theme .td-schematic .pdf-component.is-selected { background:#fbe15426; border:1.5px solid var(--site-yellow); }
body.site-theme .td-schematic .pdf-component.is-connected { background:#fbe15414; outline:1px solid #fbe154aa; outline-offset:-1px; }
@media(max-width:700px) {
  .td-schematic-bar { min-height:56px; padding:6px 16px; }
  body.site-theme .td-schematic .td-schematic-title { flex-direction:column; align-items:flex-start; gap:2px; font-size:17px; }
  .td-schematic-title small { font-size:12px; }
  body.site-theme .td-schematic-bar nav :is(a,button) { padding:0 8px; }
  .td-schematic-stage > img { padding:8px; }
}
