/* Shared pinned navigation for the makers and reference pages. */
@media screen {
  :root { --kiv-header-height: 80px; }
  html { scroll-padding-top: calc(var(--kiv-header-height) + 12px); }
  header.kiv-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgb(36 33 29 / 4%);
  }
  .kiv-header > .top { border-bottom: 0; }
  /* Resolve deferred section heights before jumping to a navigation anchor. */
  html:has(#maker:target, #how:target, #charts:target) :is(.below, .seo-steps, .guides) {
    content-visibility: visible;
  }
  .controls {
    top: calc(var(--kiv-header-height) + 12px);
    max-height: calc(100dvh - var(--kiv-header-height) - 24px);
  }
  @media (max-width: 900px) {
    .controls { max-height: none; }
  }
}
@media print {
  header.kiv-header { position: static; box-shadow: none; }
}
