/* Align the outer reading shell; intentional internal columns stay untouched. */
:root{
  --site-rail-max:1180px;
  --site-outer-gutter:clamp(6px,1.1vw,14px);
  --site-safe-edge:max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));
  --site-content-edge:max(clamp(15px,2.25vw,28px),var(--site-safe-edge));
  --site-inset:calc(var(--site-content-edge) - var(--site-outer-gutter));
  --site-rail-width:min(calc(100% - var(--site-outer-gutter)*2),var(--site-rail-max));
}
/* One rail for the navigation, reading panel content, and footer copy. The
   reading frames keep a fringe of glass; their copy starts at the same rail. */
:root body > header.site-header .nav,
:root body > footer.site-footer > .wrap:is(.foot,.pavona-home-footer__inner),
:root body > main#main.wrap{
  box-sizing:border-box;
  width:var(--site-rail-width);
  max-width:var(--site-rail-max);
  margin-inline:auto;
  padding-inline:var(--site-inset);
}
:root body > footer.site-footer > .wrap:is(.foot,.pavona-home-footer__inner){min-inline-size:0}
/* Leave the existing clear space for the playback control on wide screens.
   This is an intentional exception to panel width, not an offset. */
@media (min-width:641px){
  html.glass-window-on body.music-dock-ready > main#main.wrap{
    max-width:min(var(--site-rail-max),calc(100vw / var(--page-zoom,1) - 150px));
  }
}
@media (max-width:800px){
  :root body > header.site-header .menu{
    left:var(--site-content-edge);
    right:var(--site-content-edge);
    min-width:0;
  }
}
@media (max-width:400px){
  /* Keep the tiny viewport's existing wrap fallback, not narrower controls. */
  :root body > header.site-header .nav{column-gap:4px}
}
/* The home card is centered independently within the original live glass.
   Keep the footer at the end of the viewport when content is short, rather
   than suspending the solid footer in front of another large strip of glass. */
:root body.home-page{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  min-height:100svh;
}
:root body.home-page > :is(header.site-header,footer.site-footer){flex:none}
:root body.home-page > main.pavona-home--branded{
  flex:1 0 auto;
  align-content:safe center;
  padding-inline:var(--site-content-edge);
  padding-block:clamp(28px,6vh,66px);
}
:root body.home-page .pavona-home-footer__inner{row-gap:4px}
@media (max-width:550px){
  :root body.home-page .pavona-home-footer__inner{padding-block:10px}
  :root body.home-page > footer.pavona-home-footer{padding-block:8px max(12px,env(safe-area-inset-bottom,0px))}
}
/* Long release hashes/commands may scroll locally; do not shift the panel. */
:root body > main#main.wrap pre{max-inline-size:100%;overflow-x:auto}
:root body > main#main.wrap :is(.sha,.mono) code{overflow-wrap:anywhere}
