/* The common ecosystem owns its controls; this file positions the manual below it. */
:root {
  --manual-eco-height: 33px;
  --manual-header-offset: calc(var(--header) + var(--manual-eco-height));
  scroll-padding-top: calc(var(--manual-header-offset) + 28px);
}

#manual-ecosystem-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  height: var(--manual-eco-height);
  background: var(--paper);
}

/* Reserve the shared bar's full height before its deferred script arrives. */
#manual-ecosystem-bar > .easy-eco-bar {
  box-sizing: border-box;
  height: 100%;
  margin: 0;
}

@media (max-width: 767.98px) {
  :root { --manual-eco-height: 41px; }
}

body > .topbar { top: var(--manual-eco-height); }
body > .sidebar { top: var(--manual-header-offset); }
body > .content-shell { padding-top: var(--manual-header-offset); }
body > .sidebar-shade { top: var(--manual-header-offset); }
.page-toc { top: calc(var(--manual-header-offset) + 29px); }
.article-section, .screen-entry, .notice, .result-box {
  scroll-margin-top: calc(var(--manual-header-offset) + 28px);
}
.skip-link:focus { top: calc(var(--manual-eco-height) + 12px); }

/* The return-to-website link gives way to account controls on small phones. */
@media (max-width: 560px) {
  #manual-ecosystem-bar #easy-ecosystem-global-bar-v14 a.easy-eco-v14-anchor--company { display: none !important; }
}

@media print {
  :root { --manual-eco-height: 0px; --manual-header-offset: 0px; }
  #manual-ecosystem-bar, body > .topbar { display: none !important; }
  body > .content-shell { padding-top: 0 !important; }
}
