/* Local to Teoría al Día / Opening Insights; other demos keep their layouts. */
.theory-expanded,.theory-expanded body{width:100%;height:var(--theory-screen-height,100dvh);overflow:hidden}
.theory-expanded [data-demo-preview]{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;height:var(--theory-screen-height,100dvh)!important;min-height:0!important;padding:0!important;margin:0!important;gap:0!important}
.theory-expanded .intro,.theory-expanded .demo-intro,.theory-expanded .demo-limits,.theory-expanded .topbar,.theory-expanded .footer{display:none!important}
.theory-expanded [data-demo-preview] :is(.device,.demo-frame){display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;flex:1!important;margin:0!important;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)!important;border:0!important;border-radius:0!important;overflow:hidden;background:#171d19}
.theory-expanded :is(.device-label,.demo-toolbar){width:100%!important;max-width:none!important;min-height:52px;flex:none;justify-content:space-between!important;padding:4px 10px!important;gap:8px}
.theory-expanded :is(.device-label,.demo-toolbar)>span{display:block!important;width:auto!important;margin:0!important;font-size:10px;letter-spacing:.06em;color:#d6f542}
.theory-expanded .demo-view-switch,.theory-expanded .demo-view-status{display:none!important}
.theory-expanded [data-demo-preview] .demo-viewport{width:100%!important;max-width:none!important;height:0!important;min-height:0!important;flex:1!important;margin:0!important;border-radius:0}
.theory-expanded [data-demo-preview] .demo-viewport>iframe{margin:0;max-width:none;transform:none!important}
.theory-expanded :is(#demo-fullscreen,#demo-preview-fullscreen){min-height:44px;max-width:none!important;margin:0!important;font-size:12px!important;white-space:normal}
.theory-overview{margin-top:18px;color:inherit;line-height:1.65}
.theory-overview>summary{min-height:44px;cursor:pointer;color:#d6f542;font-size:13px;font-weight:650}
@media(min-width:801px){.theory-overview>summary{display:none}}
@media(max-width:800px){.demo-intro>.eyebrow{display:none}.demo-intro h1{font-size:clamp(27px,7vw,36px);margin-top:10px}.theory-overview{margin:8px 0 14px}.theory-overview>p{font-size:14px}.demo-intro .manual-demo-link{margin:0 0 0 12px}.theory-expanded :is(.device-label,.demo-toolbar)>span{max-width:50%;font-size:9px}.theory-expanded :is(#demo-fullscreen,#demo-preview-fullscreen){font-size:11px!important;max-width:49%!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
