/* 19-Nov-2026 — site-wide responsive layer (loaded on every page by routes_v13.php) */
html,body{max-width:100%;overflow-x:clip}
img,video,iframe,canvas,svg{max-width:100%}
table{max-width:100%}
.wrap{width:100%;box-sizing:border-box}
pre,code{white-space:pre-wrap;word-break:break-word}
/* the floating left icon bar is gone (it covered content on every screen) */
.nv9-dock{display:none!important}
/* full-screen pages: the autobiography and the book escape the 1180 px column */
main.wrap:has(> .at),main.wrap:has(> .bk){max-width:none!important;padding:0!important}
.at,.bk{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
@supports selector(:has(a)){main.wrap:has(> .at) .at,main.wrap:has(> .bk) .bk{margin-left:0;margin-right:0;width:100%;max-width:100%}}
/* everything else: comfortable gutters, wrapping grids, readable type */
@media(max-width:1024px){.wrap{padding-left:20px;padding-right:20px}}
@media(max-width:760px){
  .wrap{padding-left:14px;padding-right:14px}
  table{display:block;overflow-x:auto}
  h1{font-size:clamp(28px,8vw,44px)!important;line-height:1.1}h2{font-size:clamp(24px,6.5vw,36px)!important}
  .btn,button{min-height:40px}
}
@media(orientation:landscape) and (max-height:520px){header#hdr{position:absolute!important}}

/* 19-Nov-2026 (b): every normal page keeps a safe buffer from the screen edge */
main.wrap{padding-left:max(24px,env(safe-area-inset-left))!important;padding-right:max(24px,env(safe-area-inset-right))!important}
main.wrap:has(> .at),main.wrap:has(> .bk){padding-left:0!important;padding-right:0!important}
@media(max-width:760px){main.wrap{padding-left:16px!important;padding-right:16px!important}main.wrap:has(> .at),main.wrap:has(> .bk){padding:0!important}}
.hf .hf-in,.hf .hf-in1,.hf .ex-wrap,.hf .hf-h{padding-left:0;padding-right:0}
