/* The same public presentation adapts to phones, tablets and desktop browsers. */
.chapter-menu{flex:1;min-width:0}
.chapter-menu>summary{display:none}
.chapter-menu>.chapters{width:100%}
@media(max-width:760px), (max-width:950px) and (max-height:500px){
  .app-shell{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  .topbar{margin-left:max(6%,env(safe-area-inset-left,0px));margin-right:max(6%,env(safe-area-inset-right,0px))}
  .chapter-navigation{display:block}
  .chapter-menu{width:100%;border:1px solid #5D856B70;border-radius:8px;background:#13281E80}
  .chapter-menu>summary{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 13px;list-style:none;cursor:pointer;color:#C9E6D6;font-size:.875rem;line-height:1.5}
  .chapter-menu>summary::-webkit-details-marker{display:none}
  .chapter-menu>summary:focus-visible{outline:2px solid var(--mint);outline-offset:3px;border-radius:6px}
  .chapter-menu>summary>span:first-child{font-weight:700;white-space:nowrap}
  #mobile-chapter-label{margin-left:auto;font-size:.75rem;color:#9BBFA9;text-align:right;word-break:keep-all}
  .chapter-menu-chevron{flex:none;width:7px;height:7px;border-right:1.5px solid #96D6B2;border-bottom:1.5px solid #96D6B2;transform:rotate(45deg);margin:-4px 2px 0 1px}
  .chapter-menu[open] .chapter-menu-chevron{transform:rotate(225deg);margin-top:4px}
  .chapter-menu>.chapters{display:flex;flex-wrap:wrap;justify-content:flex-start;overflow:visible;gap:6px;padding:7px 10px 12px;border-top:1px solid #5D856B38}
  .chapter-menu .chapters button{min-height:44px;padding:8px 10px;font-size:.875rem;flex-shrink:0}
  .step-controls{position:fixed;z-index:8;left:0;right:0;bottom:0;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:9px;padding:12px max(5vw,16px) calc(12px + env(safe-area-inset-bottom,0px));padding-left:max(5vw,16px,env(safe-area-inset-left,0px));padding-right:max(5vw,16px,env(safe-area-inset-right,0px));background:#101816F7;border-top:1px solid #608B744D;box-shadow:0 -8px 24px #0002;backdrop-filter:blur(14px);margin:0}
  body[data-view="intro"] .step-controls{background:#040B12F7}
  .step-controls .next-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;min-width:0;min-height:52px;padding:6px 14px}
  .step-controls .next-action-label{font-size:.6875rem;line-height:1.45}
  .step-controls .next-destination{font-size:.875rem;line-height:1.5}
  .step-controls .previous-button{display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:44px;padding:10px 12px}
  .step-controls .step-count{font-size:.8125rem;margin-right:4px;min-width:42px}
  .presentation-footer{padding-bottom:18px;z-index:20}
  .footer-meta{margin-top:12px;align-items:center}
}
@media(max-width:359px){.step-controls{gap:7px;padding-inline:14px}.step-controls .step-count{font-size:.75rem;min-width:36px;margin-right:0}.step-controls .next-button{padding-inline:11px}.step-controls .previous-button{min-width:48px;padding-inline:10px}.chapter-menu>summary{gap:7px;padding-inline:10px}#mobile-chapter-label{font-size:.6875rem}}
@media(min-width:761px) and (max-width:950px) and (max-height:500px){
  .app-shell{height:auto;min-height:100svh}
  .presentation{min-height:540px;flex:none;padding-top:30px;padding-bottom:20px}
  .presentation-footer{margin-top:15px}
  .chapter-navigation{display:block}
  .step-controls .next-button{flex-direction:row;align-items:center;justify-content:space-between}
  .footer-meta .keyboard-hint{display:none}
}
