/* Shared header geometry for the homepage and every content page. */
:root {
  --header: 80px;
  --header-padding: clamp(24px, 5.5vw, 88px);
  --header-action-gap: 12px;
  --header-download-width: 128px;
  --header-login-width: 100px;
}
html { scrollbar-gutter: stable; }
body .orlino-header {
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--edition-rule);
}
body .orlino-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  width: 100%;
  min-height: 0;
  height: calc(var(--header) - 1px);
  margin: 0;
  padding: 0 max(var(--header-padding), env(safe-area-inset-right, 0px)) 0 max(var(--header-padding), env(safe-area-inset-left, 0px));
}
body .site-header.orlino-header {
  height: calc(var(--header) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}
body .orlino-header .orlino-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 650 30px/1 Inter, Arial, sans-serif;
  letter-spacing: -1.6px;
  white-space: nowrap;
}
body .orlino-header .orlino-header-brand img {
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 9px;
}
body .orlino-header .orlino-header-brand > span { display: inline; }
body .orlino-header-inner > nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-width: 0;
  margin: 0;
  font: 500 14px/1.5 Inter, Arial, sans-serif;
}
body .orlino-header .orlino-header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: var(--header-action-gap);
  margin: 0;
}
body .orlino-header .orlino-header-button {
  --header-face: var(--edition-surface);
  --header-edge: color-mix(in srgb, var(--edition-rule) 72%, var(--edition-ink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 10px !important;
  height: 44px;
  min-height: 44px;
  padding: 0 16px !important;
  border: 1px solid var(--edition-rule);
  border-radius: 12px;
  font: 600 14px/1 Inter, Arial, sans-serif !important;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--edition-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--header-face) 92%, #fff), var(--header-face));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), inset 0 -1px 0 rgb(16 47 72 / .08), 0 4px 0 var(--header-edge), 0 16px 24px -15px rgb(18 54 82 / .36);
  transform: translateY(0);
  transition: transform .2s, filter .2s;
}
body .orlino-header .header-download-cta { width: var(--header-download-width); }
body .orlino-header .header-login-cta {
  --header-face: var(--edition-accent);
  --header-edge: color-mix(in srgb, var(--edition-accent) 68%, #052b43);
  width: var(--header-login-width);
  color: var(--edition-on-accent);
  border-color: rgb(255 255 255 / .18);
}
body .orlino-header .orlino-header-button svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}
@media (hover: hover) {
  body .orlino-header .orlino-header-button:hover { transform: translateY(-2px); filter: brightness(1.03); }
}
body .orlino-header .orlino-header-button:active { transform: translateY(3px); }
@media (max-width: 1100px) {
  body .orlino-header-inner { gap: var(--header-action-gap); }
  body .orlino-header-inner > nav { justify-content: flex-end; }
  body .orlino-header .docs-nav { grid-template-columns: auto minmax(0, 1fr); }
  body .orlino-header .docs-header-actions { grid-column: 2; justify-self: end; }
  body .orlino-header-inner > .docs-desktop-nav,
  body .site-header.orlino-header > nav > a { display: none; }
  body .orlino-header .docs-menu { display: block; }
  body .site-header.orlino-header .chapter-menu-resources { display: grid; }
}
@media (max-width: 699px) {
  :root {
    --header: 68px;
    --header-padding: 16px;
    --header-action-gap: 8px;
    --header-download-width: 100px;
    --header-login-width: 76px;
  }
  body .orlino-header .orlino-header-brand { font-size: 25px; gap: 6px; }
  body .orlino-header .orlino-header-brand img { width: 28px; height: 28px; }
  body .orlino-header .orlino-header-button { padding-inline: 10px !important; }
  body .orlino-header .orlino-header-button svg { display: none; }
  body .orlino-header :is(.chapter-menu-toggle, .docs-menu summary) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }
  body .orlino-header :is(.chapter-menu-toggle, .docs-menu summary) > span { display: none; }
  body .orlino-header :is(.chapter-menu-icon, .docs-menu summary svg) { display: block; width: 22px; height: 22px; }
  body .orlino-header .docs-menu nav { position: fixed; top: calc(var(--header) + env(safe-area-inset-top, 0px) + 8px); left: 12px; right: 12px; width: auto; max-width: none; }
}
@media (max-width: 380px) {
  body .orlino-header .orlino-header-brand > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body .orlino-header .orlino-header-button { transition: none; }
}
