/* Public chrome uses the same palette and controls on static and PHP pages. */
[data-public-chrome],#site-menu{font:14px/1.6 'Golos Text',sans-serif}
[data-public-chrome] a,#site-menu a{text-decoration:none}
[data-public-chrome="header"],#site-menu{
  --ink:#192e29;
  --green:#174e40;
  --muted:#6e7771;
  --line:#dfe4d9;
  color:var(--ink);
}
[data-public-chrome="header"].header{
  flex-wrap:nowrap;
  gap:14px;
  min-height:64px;
  padding:10px 5%;
}
[data-public-chrome="header"] .menu-toggle,
#site-menu .site-menu-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  min-width:44px;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--green);
  font:500 13px/1.3 'Golos Text',sans-serif;
  cursor:pointer;
}
[data-public-chrome="header"] .menu-toggle{
  gap:8px;
  margin-inline-start:auto;
  padding-inline:10px;
}
[data-public-chrome="header"] .menu-toggle svg,#site-menu .site-menu-close svg{width:20px;height:20px;flex:none}
[data-public-chrome="header"]>.language-control{flex:none;margin:0}
[data-public-chrome="header"]>.language-control>span{display:none}
[data-public-chrome="header"]>.language-control>select{
  min-height:44px;
  max-width:110px;
  padding:8px 4px;
  border:0;
  background:transparent;
  color:var(--green);
  font-size:13px;
}
[data-public-chrome="header"] :is(button,select):hover,#site-menu .site-menu-close:hover{background:#edf0e5}
[data-public-chrome="header"] :is(a,button,select):focus-visible,#site-menu :is(a,button):focus-visible{
  outline:2px solid #6c8967;
  outline-offset:2px;
}

html:has(#site-menu[open]){overflow:hidden}
#site-menu{
  position:fixed;
  inset:0 0 auto auto;
  width:min(420px,100%);
  max-width:100%;
  height:100vh;
  height:100dvh;
  max-height:none;
  margin:0;
  padding:max(24px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));
  overflow:auto;
  overscroll-behavior:contain;
  border:0;
  border-radius:18px 0 0 18px;
  background:#fff;
  box-shadow:-16px 0 48px #102c2826;
}
#site-menu[open]{display:flex;flex-direction:column}
#site-menu::backdrop{background:#102c2859;backdrop-filter:none}
#site-menu>.site-menu-top,#site-menu>nav,#site-menu>.site-menu-actions{flex:none}
#site-menu>.site-menu-top{
  position:sticky;
  top:env(safe-area-inset-top,0px);
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  background:#fff;
}
#site-menu-title{margin:0;font:650 21px/1.3 'Golos Text',sans-serif}
#site-menu>nav{display:grid;margin-bottom:24px}
#site-menu>nav>a{
  display:flex;
  align-items:center;
  min-height:56px;
  padding:10px 8px;
  border-bottom:1px solid var(--line);
  color:var(--ink);
  font-size:17px;
  font-weight:550;
  overflow-wrap:anywhere;
}
#site-menu>nav>a[hidden]{display:none}
#site-menu>nav>a:hover,#site-menu>nav>a[aria-current]{background:#f4f7ed;color:var(--green)}
#site-menu>.site-menu-actions{display:grid;gap:4px;margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}
#site-menu>.site-menu-actions>a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:8px 12px;
  border-radius:8px;
  color:var(--muted);
  text-align:center;
}
#site-menu #menu-account-link{background:var(--green);color:#fff;font-weight:600}
#site-menu #menu-account-link:hover{background:#28634f}
#site-menu .site-menu-home:hover{color:var(--green);text-decoration:underline}

@media(max-width:680px){
  [data-public-chrome="header"].header{
    gap:6px;
    min-height:60px;
    padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));
  }
  [data-public-chrome="header"] .brand-rotation{overflow:hidden}
  [data-public-chrome="header"] .menu-toggle{gap:6px;padding-inline:8px}
  #site-menu{
    padding:max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  }
  #site-menu>nav>a{min-height:52px;font-size:16px}
}
@media(max-width:420px){
  #site-menu{border-radius:0}
  [data-public-chrome="header"] .brand-rotation.shows-tagline .brand-word .brand-glyph{opacity:1}
  [data-public-chrome="header"] .brand-rotation.shows-tagline .brand-tagline .brand-glyph{opacity:0}
}

body.public-standalone .header{flex-shrink:0}
body.public-standalone .footer-legal{width:100%}

body.public-standalone main p{font-size:inherit;line-height:inherit;color:inherit}

/* Existing-page SEO context, matching the compact public navigation. */
.seo-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:14px 0;font-size:12px;line-height:1.6;color:var(--muted,#64715f)}
.seo-breadcrumbs a{color:inherit;text-decoration:none}.seo-breadcrumbs a:hover{text-decoration:underline}
[data-seo-editorial]{display:inline-flex;flex-wrap:wrap;gap:8px 14px}
.reader-body section[id^="resource-block-"]{scroll-margin-top:90px}
