/* Theme-owned header clearance for apps which call get_header()/get_footer().
   These replace plugin padding-top, never stack another spacer on top of it.
   Standalone ePodpis documents and the homepage are intentionally excluded. */
body.kw-unified-header-page > main:is(.mydrr-public-page,.mydr-public-page,.kw-public-app-page){
  --kw-public-page-gap:32px;
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  margin-top:0 !important;
  padding-top:calc(var(--kw-public-header-reserve,calc(var(--header-h-var,120px) + var(--kw-admin-bar-offset,0px) + 1px)) + var(--kw-public-page-gap)) !important;
}

/* Virtual plugin routes can inherit WP's `home` class without rendering the
   mobile homepage navigation. Keep their actual navigation visible. */
body.kw-unified-header-page:has(> main:is(.mydrr-public-page,.mydr-public-page,.kw-public-app-page)) > .site-header,
body.kw-unified-header-page.kw-public-app-layout > .site-header{
  display:block !important;
}

body.kw-unified-header-page > main.mydrr-public-page .mydrr-public-panel h1{
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(30px,4vw,48px);
  font-weight:400;
  line-height:1.15;
  overflow-wrap:anywhere;
}

@media(max-width:900px){
  body.kw-unified-header-page > main:is(.mydrr-public-page,.mydr-public-page,.kw-public-app-page){
    --kw-public-page-gap:24px;
    padding-top:calc(var(--kw-public-header-reserve,calc(var(--header-h-var,88px) + max(10px,var(--kw-admin-bar-offset,0px)) + 2px)) + var(--kw-public-page-gap)) !important;
  }
}
