/* Hempon Downloads — refined floating glass navigation correction. */
:root {
  --hg-nav-glass: rgba(8, 18, 15, .58);
  --hg-nav-glass-scrolled: rgba(7, 15, 13, .88);
  --hg-nav-line: rgba(210, 242, 229, .13);
  --hg-nav-line-hover: rgba(117, 228, 204, .25);
  --hg-nav-shadow: 0 14px 38px rgba(0, 0, 0, .24);
}

html { scroll-padding-top: 104px; }

/* Keep the announcement, but let it read as a quiet eyebrow rather than a bar. */
.announcement {
  min-height: 24px;
  padding: 5px 14px 3px;
  border-bottom: 0;
  color: rgba(190, 207, 198, .68);
  font-size: 10px;
  letter-spacing: .025em;
  line-height: 1.5;
}
.announcement span { color: #79d9c2; }

header.hg-site-header {
  position: sticky !important;
  top: max(10px, env(safe-area-inset-top));
  z-index: 120;
  width: min(980px, calc(100% - 40px));
  margin: 9px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  isolation: isolate;
}

.hg-nav-pill {
  position: relative;
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 7px 10px 7px 14px;
  border: 1px solid var(--hg-nav-line);
  border-radius: 999px;
  background: var(--hg-nav-glass);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .10);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.hg-site-header.is-scrolled .hg-nav-pill {
  border-color: var(--hg-nav-line-hover);
  background: var(--hg-nav-glass-scrolled);
  box-shadow: var(--hg-nav-shadow);
}

.hg-brand {
  display: inline-flex !important;
  min-width: 0;
  justify-self: start;
  align-items: center;
  gap: 9px;
  color: var(--hg-text, #f2f7f4) !important;
  text-decoration: none;
}
.hg-brand img {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
  border-radius: 10px;
}
.hg-brand .brand-name {
  display: block;
  color: var(--hg-text, #f2f7f4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: 1.2;
  white-space: nowrap;
}
.hg-brand .brand-sub {
  display: block;
  margin-top: 3px;
  color: rgba(190, 207, 198, .72);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hg-desktop-links {
  display: flex !important;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  color: var(--hg-muted, #9baaa3);
  font-size: 11px;
  white-space: nowrap;
}
.hg-desktop-links .hg-nav-link {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(218, 229, 223, .82);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.hg-desktop-links .hg-nav-link::after { content: none; }
.hg-desktop-links .hg-nav-link:hover,
.hg-desktop-links .hg-nav-link[aria-current="page"],
.hg-desktop-links .hg-nav-link.is-current {
  background: rgba(117, 228, 204, .095);
  color: #83e7d0;
}

.hg-nav-action,
.hg-mobile-action {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid rgba(117, 228, 204, .20);
  border-radius: 999px;
  background: #70d9c0;
  box-shadow: none;
  color: #06231d !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.hg-nav-action:hover,
.hg-mobile-action:hover {
  background: #83e7d0;
  box-shadow: 0 5px 16px rgba(39, 170, 145, .15);
  transform: translateY(-1px);
}

.hg-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  color: var(--hg-text, #f2f7f4);
  cursor: pointer;
}
.hg-menu-toggle:hover {
  border-color: var(--hg-nav-line-hover);
  background: rgba(117, 228, 204, .075);
}
.hg-menu-toggle:focus-visible {
  outline: 2px solid #83e7d0;
  outline-offset: 3px;
}
.hg-menu-icon { display: grid; width: 16px; gap: 5px; }
.hg-menu-icon span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}
.hg-menu-toggle[aria-expanded="true"] .hg-menu-icon span:first-child { transform: translateY(3.25px) rotate(45deg); }
.hg-menu-toggle[aria-expanded="true"] .hg-menu-icon span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.hg-mobile-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  max-height: min(72dvh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid rgba(210, 242, 229, .14);
  border-radius: 20px;
  background: rgba(7, 16, 13, .96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
}
.hg-mobile-panel[hidden] { display: none !important; }
.hg-mobile-links { display: grid; gap: 3px; }
.hg-mobile-link {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 13px;
  border-radius: 12px;
  color: rgba(218, 229, 223, .86);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.hg-mobile-link:hover,
.hg-mobile-link[aria-current="page"] {
  background: rgba(117, 228, 204, .085);
  color: #83e7d0;
}
.hg-mobile-action { width: 100%; min-height: 46px; margin-top: 6px; }

@media (max-width: 900px) {
  header.hg-site-header { width: min(720px, calc(100% - 32px)); }
  .hg-nav-pill {
    min-height: 56px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 6px 8px 6px 12px;
  }
  .hg-desktop-links,
  .hg-nav-action { display: none !important; }
  .hg-menu-toggle { display: inline-flex; }
}
@media (max-width: 380px) {
  header.hg-site-header { width: calc(100% - 24px); }
  .hg-nav-pill { min-height: 52px; padding: 5px 7px 5px 10px; }
  .hg-brand { gap: 8px; }
  .hg-brand img { width: 33px; height: 33px; flex-basis: 33px; }
  .hg-brand .brand-sub { display: none; }
  .hg-brand .brand-name { font-size: 9px; }
  .hg-menu-toggle { width: 38px; height: 38px; flex-basis: 38px; }
}
@media (max-height: 520px) and (max-width: 900px) {
  .hg-mobile-panel { max-height: calc(100dvh - 90px); }
}
@media (prefers-reduced-motion: reduce) {
  .hg-nav-pill,
  .hg-nav-link,
  .hg-nav-action,
  .hg-mobile-action,
  .hg-menu-icon span { transition: none !important; }
}
