/* Tablet walkthrough: native scrolling with gentle section catchpoints. */
:root{--walkthrough-header:88px}
.touch-navigation{display:none}
.chapter-nav a[aria-current="location"] span{color:#111;text-decoration:underline;text-underline-offset:7px}
@media(min-width:761px) and (max-width:1366px){
  :root{--rail:100px;--walkthrough-header:76px}
  .masthead{height:var(--walkthrough-header);margin:0 24px}
  .masthead .brand img{width:140px}
  .explorer{padding:0 24px}
  .viewer-shell{height:calc(100svh - var(--walkthrough-header));min-height:580px;max-height:none}
  .viewer-shell .product-intro{left:0;top:28px;max-width:240px}
  .viewer-shell .product-intro h1{font-size:46px}
  .viewer-shell .product-intro p{font-size:16px;max-width:235px}
  .viewer-shell .stage{left:260px}
  .explorer .canvas-controls{left:0;top:195px;width:240px}
  .explorer .canvas-control-content{padding:0}
  .viewer-shell .stage-footer{left:278px;right:0;bottom:20px}
  .product-rail{padding:20px 6px}
  .rail-heading{font-size:9px;letter-spacing:1px;margin-bottom:20px}
  .thumbnail-frame{width:76px;height:70px}
  .product-rail .product-switcher{gap:12px}
  .product-label{font-size:13px}.product-option small{font-size:10px;line-height:1.4}
  .rail-compare{font-size:12px}
  .canvas-controls .view-option,.canvas-controls .service-actions button{min-height:44px;font-size:14px}
  .canvas-controls .service-heading p{font-size:15px;line-height:1.5}
  .canvas-controls .control-label{font-size:12px}
  .canvas-controls input[type=range]{height:34px;margin:0}
  .canvas-controls input[type=range]::-webkit-slider-thumb{width:18px;height:18px;margin-top:-8px}
  .solo-setting-row button{min-height:44px}
  .sales-section{margin:0 24px;padding:48px 0}
  .sales-section p,.section-lead{font-size:16px}
  .sales-section h2{font-size:36px}
  .section-kicker{font-size:12px;letter-spacing:1.3px}
  .three-cards{gap:12px}.use-card{padding:22px;min-height:0}
  .use-card h3{font-size:19px}.feature-row{gap:22px}
  .feature-row h3{font-size:16px}.feature-row p{font-size:15px}
  .key-facts dt,.spec-list>div,.inline-link,.button-dark,.button-outline{font-size:14px}
  .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .resource-type{font-size:11px;letter-spacing:1px}
  .resource-grid strong,.expanded-resources strong{font-size:17px}
  .resource-action,.library-links{font-size:14px}
  .resource-expansion>summary{min-height:56px;font-size:16px}
  .resource-expansion>summary>span{font-size:12px}
  .comparison-scroll table{min-width:680px;font-size:14px}
  .comparison-scroll td,.comparison-scroll tbody th{padding:16px 12px}
  .comparison-scroll tbody th{position:sticky;left:0;background:#fff;z-index:1;box-shadow:1px 0 #ddd}
  .comparison-scroll button{min-height:44px}
  .comparison-scroll button small{font-size:12px}
  .source-note,.source-note p,.sales-section p.planning-note{font-size:12px}
}
@media(min-width:761px) and (max-width:1024px) and (orientation:portrait){
  .viewer-shell{min-height:700px}
  .viewer-shell .product-intro{top:24px;max-width:calc(100% - 12px)}
  .viewer-shell .product-intro p{max-width:450px}
  .viewer-shell .stage{inset:150px 0 250px;width:100%;height:auto}
  .explorer .canvas-controls{left:0;right:0;top:auto;bottom:24px;width:auto;padding:20px 0 0;border-top:1px solid #ddd;max-height:225px;overflow:auto}
  .explorer .canvas-control-content{display:grid;grid-template-columns:1fr 1.45fr;gap:12px 28px}
  .canvas-controls .controls-dock{grid-column:1;grid-row:1;padding:0}
  .canvas-controls .solo-settings{grid-column:1;grid-row:2;padding:0}
  .canvas-controls .solo-settings>p{display:none}
  .canvas-controls .solo-settings>.control-label{display:none}
  .canvas-controls .solo-setting-row{display:flex;width:100%;justify-content:space-between;margin:5px 0;font-size:14px}
  .canvas-controls .service-dock{grid-column:2;grid-row:1/span 2;padding:0;border:0}
  .viewer-shell .stage-footer{left:0;right:0;bottom:260px}
  .viewer-shell .gesture-hint{display:none}
  .product-overview,.specs-section{grid-template-columns:1fr;gap:30px}
  .key-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;border:0}
  .key-facts>div{display:block;border-top:1px solid #ddd;border-bottom:0;padding:18px 0}
  .key-facts dd{font-size:30px;margin-top:12px}
  .key-facts dd.text-fact{font-size:16px;text-align:left;line-height:1.4}
  .section-heading{display:block}.section-heading>p{max-width:none;margin-top:20px}
  .three-cards{grid-template-columns:1fr}
  .use-card{display:grid;grid-template-columns:28px 1fr;gap:8px 16px}
  .use-card .card-index{grid-row:1/span 2;padding-top:4px;font-size:12px}
  .use-card h3,.use-card p{margin:0}
  .feature-row{grid-template-columns:1fr;gap:0}
  .feature-row h3{margin-top:24px}
  .specs-section>div>p,.source-note{max-width:none}
  .next-step{display:block}.next-actions{margin-top:28px}
}
@media(pointer:coarse), (max-width:1024px){
  .viewer-shell[data-touch-layout="true"] .touch-navigation{display:flex;position:absolute;left:278px;right:0;bottom:64px;z-index:5;align-items:center;gap:12px;pointer-events:none}
  .touch-navigation button{pointer-events:auto;min-height:44px;padding:10px 16px;border:1px solid #ccc;border-radius:4px;background:#fff;font-size:14px;white-space:nowrap}
  .touch-navigation button[aria-pressed="true"]{background:#111;color:#fff;border-color:#111}
  #touch-hint{font-size:12px;color:#666}
  .viewer-shell[data-touch-layout="true"] .gesture-hint{display:none}
  .viewer-shell[data-touch-layout="true"][data-interacting="false"] .stage,
  .viewer-shell[data-touch-layout="true"][data-interacting="false"] .stage canvas{touch-action:pan-y pinch-zoom!important;cursor:auto}
  .viewer-shell[data-touch-layout="true"][data-interacting="true"] .stage,
  .viewer-shell[data-touch-layout="true"][data-interacting="true"] .stage canvas{touch-action:none!important}
  .viewer-shell[data-touch-layout="true"] .reset-button{min-height:44px;font-size:14px}
  .library-links a{display:inline-flex;align-items:center;min-height:44px}
}
@media(min-width:761px) and (max-width:1024px) and (orientation:portrait){
  .viewer-shell[data-touch-layout="true"] .touch-navigation{left:auto;right:0;top:110px;bottom:auto}
  #touch-hint{display:none}
}
@media(max-width:760px){
  :root{--walkthrough-header:70px}
  .viewer-shell[data-touch-layout="true"] .touch-navigation{left:18px;right:auto;top:142px;bottom:auto;gap:8px}
  .touch-navigation button{padding:9px 12px;font-size:13px}
  #touch-hint{display:none}
  .comparison-scroll tbody th{position:sticky;left:0;background:#fff;z-index:1;box-shadow:1px 0 #ddd}
}
@media(pointer:coarse), (min-width:761px) and (max-width:1366px){
  html{scroll-snap-type:y proximity;scroll-padding-top:calc(var(--walkthrough-header) + 16px)}
  #explorer,.sales-section{scroll-snap-align:start;scroll-snap-stop:normal;scroll-margin-top:0}
  .viewer-shell{scroll-margin-top:calc(var(--walkthrough-header) + 16px)}
  html:has(.viewer-shell[data-interacting="true"]),html:has(dialog[open]){scroll-snap-type:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-snap-type:none;scroll-behavior:auto}}
