/* Shared navigation, scoped to avoid altering individual tools. */
:root { --hl-header-height:5.75rem; }
.hl-site-page:not(.hl-homepage) { padding-top:calc(var(--hl-header-height) + env(safe-area-inset-top)); }
html:has(.hl-site-page) { scroll-padding-top:calc(var(--hl-header-height) + 1rem); }
.hl-site-header { position:fixed; inset:0 0 auto; z-index:1000; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:calc(1.5rem + env(safe-area-inset-top)) clamp(1.2rem,3.5vw,4rem) 1.5rem; border:0; border-bottom:1px solid rgba(255,255,255,.08); background:linear-gradient(180deg,rgba(7,8,11,.98),rgba(7,8,11,.96)); color:#f3f6f7; font:500 1rem/1.4 Manrope,system-ui,sans-serif; margin:0; width:100%; max-width:none; box-sizing:border-box; }
.hl-site-header *, .hl-site-header *::before, .hl-site-header *::after { box-sizing:border-box; }
.hl-site-header a { text-decoration:none; }
.hl-brand { display:inline-flex; align-items:center; gap:.75rem; width:max-content; color:#f3f6f7; font-size:.92rem; font-weight:650; letter-spacing:-.02em; }
.hl-brand-mark { width:1.35rem; height:1.35rem; display:grid; grid-template-columns:1fr 1fr; gap:3px; transform:rotate(7deg); flex-shrink:0; }
.hl-brand-mark i { display:block; border:1px solid currentColor; border-radius:2px; }
.hl-brand-mark i:last-child { background:currentColor; }
.hl-chapter-indicator { display:flex; align-items:center; gap:.55rem; font:400 .72rem/1 'DM Mono',monospace; letter-spacing:.08em; }
.hl-chapter-line { width:3rem; height:1px; background:currentColor; opacity:.4; }
.hl-header-actions { grid-column:3; justify-self:end; display:flex; align-items:center; gap:clamp(.4rem,1.4vw,1.4rem); margin:0; padding:0; }
.hl-nav-category { position:relative; margin:0; padding:0; border:0; border-radius:0; background:transparent; }
.hl-nav-category > summary { display:flex; align-items:center; gap:.55rem; min-height:2.75rem; margin:0; padding:.65rem .45rem; border:0; list-style:none; color:#d9e1e5; background:transparent; font:.82rem/1.4 Manrope,system-ui,sans-serif; font-weight:600; cursor:pointer; border-radius:.45rem; transition:color .18s,background .18s; }
.hl-nav-category > summary::before, .hl-nav-category > summary::after { content:none; }
.hl-nav-category > summary::-webkit-details-marker { display:none; }
.hl-nav-category > summary:hover, .hl-nav-category[open] > summary { color:#b0fbff; background:rgba(119,232,236,.06); }
.hl-site-header a:focus-visible, .hl-nav-category > summary:focus-visible { outline:2px solid #77e8ec; outline-offset:3px; }
.hl-nav-chevron { width:.4rem; height:.4rem; margin:0; color:inherit; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .18s; }
.hl-nav-category[open] .hl-nav-chevron { transform:translateY(1px) rotate(225deg); }
.hl-nav-dropdown { position:absolute; top:100%; right:0; width:min(22rem,calc(100vw - 2.4rem)); padding:1rem; border:1px solid rgba(119,232,236,.2); border-radius:.85rem; background:#0d141b; box-shadow:0 1.3rem 3.5rem rgba(0,0,0,.55); max-height:calc(100svh - var(--hl-header-height) - 2rem); overflow-y:auto; overscroll-behavior:contain; }
.hl-nav-caption { margin:.15rem .55rem .8rem; color:#91aab6; font:400 .62rem/1.5 'DM Mono',monospace; text-transform:uppercase; letter-spacing:.09em; }
.hl-nav-product { display:block; padding:.85rem .55rem; border-radius:.5rem; transition:background .18s; }
.hl-nav-product:hover, .hl-nav-product:focus-visible { background:rgba(119,232,236,.07); }
.hl-nav-product-title { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; color:#f0f7f9; font-size:.88rem; font-weight:650; line-height:1.4; }
.hl-nav-product-title small { color:#b0d2d7; font-size:.58rem; font-weight:500; border:1px solid rgba(119,232,236,.2); border-radius:999px; padding:.15rem .45rem; background:transparent; }
.hl-nav-product-copy { display:block; margin-top:.35rem; color:#a0aeb8; font-size:.76rem; line-height:1.55; }
.hl-nav-product[aria-current=page] { background:rgba(119,232,236,.07); }
.hl-local-nav { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.5rem 1.5rem; padding:1rem clamp(1.2rem,3.5vw,4rem); border-bottom:1px solid rgba(255,255,255,.08); font:500 .78rem/1.4 Manrope,system-ui,sans-serif; }
.hl-local-nav a { color:#aebdc8; padding:.3rem 0; text-decoration:none; }
.hl-local-nav a:hover, .hl-local-nav a[aria-current=page] { color:#77e8ec; }
.hl-site-page .skip-link { z-index:1001; }
.hl-site-page .result-panel, .hl-site-page .sidebar { top:calc(var(--hl-header-height) + 1.25rem); }
.hl-site-page .settings-panel { top:calc(var(--hl-header-height) + 1rem); max-height:calc(100dvh - var(--hl-header-height) - 2rem); }
@media (max-width:1000px) {
  .hl-site-header { grid-template-columns:1fr auto; }
  .hl-header-actions { grid-column:2; }
  .hl-chapter-indicator { display:none; }
}
@media (max-width:760px) {
  :root { --hl-header-height:4.75rem; }
  .hl-site-header { padding:calc(1rem + env(safe-area-inset-top)) calc(1.1rem + env(safe-area-inset-right)) 1rem calc(1.1rem + env(safe-area-inset-left)); }
}
@media (max-width:640px) {
  :root { --hl-header-height:6.5rem; }
  .hl-site-header { grid-template-columns:1fr; gap:.25rem; }
  .hl-header-actions { grid-column:1; gap:.9rem; }
  .hl-nav-category { position:static; }
  .hl-nav-category > summary { font-size:.76rem; padding:.5rem .2rem; }
  .hl-nav-dropdown { top:calc(100% - .25rem); right:calc(1.1rem + env(safe-area-inset-right)); width:min(22rem,calc(100vw - 2.2rem - env(safe-area-inset-left) - env(safe-area-inset-right))); }
  .hl-local-nav { justify-content:flex-start; gap:.5rem 1rem; }
}
@media (prefers-reduced-motion:reduce) { .hl-site-header * { transition:none; } }

.hl-beta-access{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:.35rem .5rem;border:1px solid #77e8ec40;border-radius:.45rem;color:#9ce7e9;font-size:.7rem}
@media(max-width:640px){.hl-header-actions{gap:.45rem}}

/* Legal links remain reachable without JavaScript. */
.hl-imprint-link{display:inline-flex;align-items:center;min-height:44px;padding:.4rem .6rem;color:#79ece8;font:500 .8rem/1.5 Manrope,system-ui,sans-serif;text-underline-offset:.25em}.hl-imprint-link:focus-visible{outline:2px solid #79ece8;outline-offset:3px}.hl-legal-footer{width:min(100% - 2.5rem,760px);margin:0 auto;padding:1.5rem 0;border-top:1px solid #293541}
