/* PAVED R1.2.12 — original-theme visual scale. Loaded after all earlier CSS. */
/* Festively's original sidebar-free page width is 916px, its post content
   max width is 820px; R1.2.8 overrode those sizes to 1,220/1,160px. */
:root{--paved-original-page-width:916px}
body.static-paved .slice-home-frame,
body.static-paved .slice-footer{width:min(var(--paved-original-page-width),100%)!important;max-width:100%!important}
body.static-paved.sidebar-off .wrap.full-wrap,
body.static-paved.sidebar-off.sidebar-switch .wrap.full-wrap{
  max-width:var(--paved-original-page-width)!important;
  width:calc(100% - 32px)!important;
  margin-left:auto!important;margin-right:auto!important;
}
body.static-paved .paved-static-page>.inner{
  max-width:820px!important;
  width:auto!important;
  padding:3em!important;
  margin-left:auto!important;margin-right:auto!important;
}
/* Normalize the custom header, whose 87px height and 30px menu overshot
   the source theme's scale. Keep enough room for the restored full menu. */
@media(min-width:1131px){
  body.static-paved .slice-header{height:72px!important}
  body.static-paved .slice-header-inner{padding-inline:clamp(10px,1.2vw,18px)!important}
  body.static-paved .slice-brand{font-size:clamp(24px,1.8vw,29px)!important}
  body.static-paved .slice-nav{gap:clamp(7px,.85vw,15px)!important}
  /* R1.2.9 used width:100% for nav items below 1380px; restore
     intrinsic widths after R1.2.11 switches back to desktop layout. */
  body.static-paved .slice-nav>a,
  body.static-paved .slice-nav .slice-whats-on-link,
  body.static-paved .slice-dropdown-trigger,
  body.static-paved .slice-search-trigger{width:auto!important;flex-shrink:0!important}
  body.static-paved .slice-dropdown-trigger{min-width:20px!important;max-width:24px!important}
  body.static-paved .slice-nav-dropdown{width:max-content!important;max-width:none!important;flex:0 0 auto!important}


  body.static-paved .slice-nav>a,
  body.static-paved .slice-whats-on-link{font-size:clamp(19px,1.45vw,25px)!important}
  body.static-paved .slice-search-trigger svg{width:21px;height:21px}
}
/* Original 916px canvas versus the conversion's 1138px: approximately
   0.805x visual scale for home artwork and overlaid guide. */
@media(min-width:768px){
  body.static-paved .slice-program-panel{min-height:214px!important}
  body.static-paved .slice-program-badge{width:330px!important;height:330px!important;top:-101px!important}
  body.static-paved .slice-footer{padding:16px 20px 22px!important}
  /* Stop R1.2.8's enlarged catalogue layout from overwhelming the page. */
  body.static-paved .paved-static-page h1.post-title{font-size:3.8rem!important}
  body.static-paved .catalog-grid:not(.view-compact) .catalog-card{
    grid-template-columns:minmax(160px,210px) minmax(0,1fr)!important;
    gap:.6rem!important;padding:1rem 0!important;
  }
  body.static-paved .catalog-grid:not(.view-compact) .catalog-card__image{
    min-height:0!important;aspect-ratio:4/3!important;margin:0 .6rem 0 0!important
  }
  body.static-paved .catalog-grid:not(.view-compact) .catalog-card__body{
    padding:.15rem .45rem .65rem .2rem!important;
  }
  body.static-paved .catalog-grid:not(.view-compact) .catalog-card h2{font-size:2rem!important}
}
/* Preserve mobile usability rather than scaling the entire page with CSS zoom. */
@media(max-width:767px){
  body.static-paved.sidebar-off .wrap.full-wrap,
  body.static-paved.sidebar-off.sidebar-switch .wrap.full-wrap{width:100%!important}
  body.static-paved .paved-static-page>.inner{padding:2em!important}
  body.static-paved .slice-program-panel{min-height:175px!important}
  body.static-paved .slice-program-badge{width:225px!important;height:225px!important;top:-66px!important}
  body.static-paved .slice-footer{font-size:13px!important}
}
@media(max-width:430px){
  body.static-paved .slice-program-panel{min-height:154px!important}
  body.static-paved .slice-program-badge{width:190px!important;height:190px!important;top:-56px!important}
}
