:root {
  --hpc-bg: #070b14;
  --hpc-bg-soft: #0d1322;
  --hpc-panel: #0e1628;
  --hpc-panel-2: #121c31;
  --hpc-panel-3: #16233d;
  --hpc-text: #f3f5fb;
  --hpc-text-soft: rgba(243, 245, 251, 0.78);
  --hpc-text-muted: rgba(243, 245, 251, 0.56);
  --hpc-text-faint: rgba(243, 245, 251, 0.38);
  --hpc-line: rgba(243, 245, 251, 0.10);
  --hpc-line-strong: rgba(243, 245, 251, 0.16);
  --hpc-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --hpc-shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.26);
  --hpc-gold: #f2c14e;
  --hpc-green: #57d39b;
  --hpc-max: 1440px;
  --hpc-mega-max: 1680px;
  --hpc-pad: clamp(20px, 2.6vw, 40px);
  --hpc-radius-sm: 10px;
  --hpc-radius-md: 16px;
  --hpc-radius-lg: 22px;
  --hpc-radius-xl: 28px;
  --hpc-font-sans: "DM Sans", system-ui, sans-serif;
  --hpc-font-display: "Fraunces", Georgia, serif;
  --hpc-font-brand: "Montserrat", var(--hpc-font-sans);
  --hpc-font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* ── Maize accent system (nav-gold #f2c14e = 242,193,78) ── */
  --maize-rgb: 242,193,78;
  --maize-95: rgba(242,193,78,0.95);
  --maize-80: rgba(242,193,78,0.80);
  --maize-60: rgba(242,193,78,0.60);
  --maize-50: rgba(242,193,78,0.50);
  --maize-35: rgba(242,193,78,0.35);
  --maize-25: rgba(242,193,78,0.25);
  --maize-20: rgba(242,193,78,0.20);
  --maize-12: rgba(242,193,78,0.12);
  --maize-10: rgba(242,193,78,0.10);
  --maize-08: rgba(242,193,78,0.08);
  --maize-06: rgba(242,193,78,0.06);
  --maize-04: rgba(242,193,78,0.04);

  /* ── Timing tokens ── */
  --t-fast: 120ms;
  --t-mid: 220ms;
  --t-slow: 360ms;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  background: var(--hpc-bg);
  color: var(--hpc-text);
  font-family: var(--hpc-font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

.contain {
  width: min(var(--hpc-max), calc(100vw - (var(--hpc-pad) * 2)));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--hpc-gold);
  color: #08101f;
  border-radius: 999px;
  font: 700 11px/1 var(--hpc-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 12px;
}

*:focus-visible {
  outline: 2px solid rgba(242, 193, 78, 0.92);
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .mega,
  .mobile-menu,
  .mobile-overlay,
  .mobile-nav__panel {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .mega__spotlight {
    display: none !important;
  }

  .nav__trigger,
  .nav__cta,
  .nav__tools-link,
  .mega__sub,
  .mega__feat-card,
  .mega__feat-tool,
  .mega__feat-item,
  .mobile-nav__trigger,
  .mobile-nav__feature,
  .mobile-nav__link,
  .mobile-nav__hub,
  .mobile-menu__start {
    transition-duration: 80ms !important;
  }

  .mega__cover:hover .mega__cover-photo {
    transform: none !important;
  }

  .mega__id--canon,
  .mega__content--canon,
  .mega__feat--canon,
  .mega__sub,
  .mega__sub-arrow,
  .mega__hub-guide-arrow,
  .mega__feat-hub-arrow,
  .mega__cover-cta,
  .nav__trigger::after,
  .nav__trigger::before {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

[data-cat="bio"] { --cat-rgb: 115, 177, 145; --cat-hex: #73b191; }
[data-cat="flow"] { --cat-rgb: 96, 165, 250; --cat-hex: #60a5fa; }
[data-cat="decisions"] { --cat-rgb: 204, 192, 111; --cat-hex: #ccc06f; }
[data-cat="learning"] { --cat-rgb: 152, 140, 181; --cat-hex: #988cb5; }
[data-cat="habits"] { --cat-rgb: 150, 166, 122; --cat-hex: #96a67a; }
[data-cat="identity"] { --cat-rgb: 184, 136, 146; --cat-hex: #b88892; }
[data-cat="leadership"] { --cat-rgb: 136, 152, 160; --cat-hex: #8898a0; }
[data-cat="arena"] { --cat-rgb: 196, 115, 88; --cat-hex: #c47358; }
[data-cat="nutrition"] { --cat-rgb: 106, 162, 204; --cat-hex: #6aa2cc; }
[data-cat="connection"] { --cat-rgb: 201, 155, 180; --cat-hex: #c99bb4; }

.hpc-header {
  position: relative;
  z-index: 80;
}

.masthead {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--hpc-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--hpc-bg);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.masthead__left,
.masthead__right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.masthead__left {
  gap: 0;
}

.masthead__right {
  gap: 10px;
  justify-content: flex-end;
}

.masthead__seg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding-inline: 14px;
  white-space: nowrap;
  border-right: 1px solid rgba(243, 245, 251, 0.08);
}

.masthead__seg:first-child {
  padding-left: 0;
}

.masthead__seg:last-child {
  border-right: 0;
}

.masthead__date {
  color: var(--hpc-text-soft);
  font-size: 12px;
  font-weight: 500;
}

.masthead__weather svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.masthead__weather-temp {
  color: var(--hpc-text);
  font: 600 11px/1 var(--hpc-font-mono);
  letter-spacing: -0.02em;
}

.masthead__sun {
  gap: 10px;
}

.masthead__sun-rise,
.masthead__sun-set {
  color: var(--hpc-text-muted);
  font: 500 11px/1 var(--hpc-font-mono);
}

.masthead__sun-rise::before,
.masthead__sun-set::before {
  display: inline-block;
  margin-right: 4px;
}

.masthead__sun-rise::before {
  content: "↑";
  color: rgba(242, 193, 78, 0.96);
}

.masthead__sun-set::before {
  content: "↓";
  color: rgba(220, 144, 107, 0.96);
}

.masthead__feature {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  min-width: 0;
  max-width: min(520px, 42vw);
  padding: 7px 14px;
  border: 1px solid rgba(243, 245, 251, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.masthead__feature:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(243, 245, 251, 0.16);
  transform: translateY(-1px);
}

.masthead__feature-top {
  display: flex;
  align-items: center;
}

.masthead__feature-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--hpc-text);
  font-size: 12px;
  font-weight: 600;
}

.masthead__feature-meta {
  color: var(--hpc-text-faint);
  font: 500 10px/1 var(--hpc-font-mono);
  white-space: nowrap;
}

.masthead__search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(243, 245, 251, 0.09);
  border-radius: 999px;
  color: var(--hpc-text-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 500;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.masthead__search:hover {
  color: var(--hpc-text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(243, 245, 251, 0.18);
}

.masthead__search svg {
  width: 14px;
  height: 14px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  isolation: isolate;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  backdrop-filter: blur(16px);
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.96), rgba(8, 13, 24, 0.88));
  border-bottom: 1px solid rgba(243, 245, 251, 0.08);
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 245, 251, 0.08), transparent);
  z-index: -1;
}

.nav.scrolled::before {
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.98), rgba(8, 13, 24, 0.93));
}

.nav.has-open::before {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.nav__bar {
  width: min(1720px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
}

.nav__logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 172px;
}

.nav__logo-mark {
  font: 800 30px/0.96 var(--hpc-font-brand);
  letter-spacing: -0.06em;
  color: var(--hpc-text);
}

.nav__logo-dot {
  color: var(--hpc-gold);
}

.nav__logo-meta {
  color: var(--hpc-text-faint);
  font: 600 10px/1 var(--hpc-font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav__links::-webkit-scrollbar {
  display: none;
}

.nav__item {
  position: static;
}

.nav__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hpc-text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.nav__trigger::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  height: 1px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: rgba(var(--cat-rgb, 255, 255, 255), 0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.nav__item.open .nav__trigger,
.nav__trigger:hover,
.nav__trigger:focus-visible,
.nav__trigger.is-current {
  background: rgba(255, 255, 255, 0.035);
  color: var(--hpc-text);
}

.nav__item.open .nav__trigger::after,
.nav__trigger:hover::after,
.nav__trigger:focus-visible::after,
.nav__trigger.is-current::after {
  transform: scaleX(1);
}
/* [v22] Active trigger category glow */
.nav__item.open .nav__trigger::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 10px;
  background: radial-gradient(ellipse, rgba(var(--cat-rgb,255,255,255),0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.nav-icon,
.mobile-nav__title-row svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Category-coloured icons in trigger row */
.nav-icon {
  color: var(--cat-hex, var(--hpc-text-faint));
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.nav__item.open .nav-icon,
.nav__trigger:hover .nav-icon,
.nav__trigger.is-current .nav-icon {
  opacity: 1;
}

.nav__chev {
  width: 10px;
  height: 10px;
  color: var(--hpc-text-faint);
  transition: transform 180ms ease, color 180ms ease;
}

.nav__item.open .nav__chev {
  transform: rotate(180deg);
  color: var(--hpc-text-soft);
}

.nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav__tools-link,
.nav__cta,
.mobile-nav__hub,
.mobile-menu__start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav__tools-link {
  border: 1px solid rgba(243, 245, 251, 0.10);
  color: var(--hpc-text-soft);
  background: rgba(255, 255, 255, 0.02);
}

.nav__tools-link:hover {
  border-color: rgba(243, 245, 251, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--hpc-text);
}

.nav__tools-link svg {
  width: 14px;
  height: 14px;
}

.nav__cta,
.mobile-menu__start {
  border: 1px solid rgba(242, 193, 78, 0.24);
  color: #08101f;
  background: linear-gradient(180deg, #f6d273, #e8ba43);
  box-shadow: 0 14px 28px rgba(232, 186, 67, 0.18);
}

.nav__cta:hover,
.mobile-menu__start:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(232, 186, 67, 0.22);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(243, 245, 251, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto 4px;
  background: var(--hpc-text);
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hamburger span:last-child {
  margin-bottom: 0;
}

.mega {
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  width: min(1600px, calc(100vw - (var(--hpc-pad) * 2)));
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 140ms ease, visibility 140ms ease, transform 180ms var(--ease);
}

.nav__item.open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 280ms var(--ease), visibility 280ms var(--ease), transform 360ms var(--ease-out);
}

.mega__glass {
  position: relative;
  overflow: hidden;
}

.mega__bg {
  position: relative;
}

.mega__spotlight,
.mega__floor {
  pointer-events: none;
}

/* mega__noise is styled in the canon overlay section */

/* ── Shared rules (mobile + desktop fallback) ── */
.mobile-nav__number {
  color: rgba(var(--cat-rgb, 255, 255, 255), 0.86);
  font: 700 11px/1 var(--hpc-font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-nav__hub {
  color: var(--hpc-text);
  border: 1px solid rgba(243, 245, 251, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav__hub:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(243, 245, 251, 0.18);
}

.mobile-nav__link-main { min-width: 0; }

.mobile-nav__feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: var(--hpc-text-faint);
  font: 500 10px/1.4 var(--hpc-font-mono);
  letter-spacing: 0.05em;
}

.mobile-nav__link-arrow {
  color: rgba(var(--cat-rgb, 255, 255, 255), 0.86);
  font-size: 18px;
}

.mobile-nav__feature:hover,
.mobile-nav__link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(243, 245, 251, 0.16);
}

.mobile-nav__feature-title,
.mobile-nav__link-title {
  color: var(--hpc-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}


.hpc-chip-row,
.mobile-nav__link-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hpc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(243, 245, 251, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--hpc-text-soft);
  font: 600 9px/1 var(--hpc-font-mono);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hpc-chip--mini {
  min-height: 20px;
  padding-inline: 8px;
  font-size: 8px;
}

.hpc-chip--status-live {
  border-color: rgba(87, 211, 155, 0.28);
  color: #7de3b2;
  background: rgba(87, 211, 155, 0.10);
}

.hpc-chip--status-in-progress {
  border-color: rgba(242, 193, 78, 0.28);
  color: #f3cf72;
  background: rgba(242, 193, 78, 0.09);
}

.hpc-chip--status-coming-soon {
  border-color: rgba(243, 245, 251, 0.10);
  color: var(--hpc-text-muted);
}

.hpc-chip--type-guide,
.hpc-chip--type-assessment,
.hpc-chip--type-protocol,
.hpc-chip--type-tool,
.hpc-chip--type-latest-research,
.hpc-chip--type-science-deep-dive,
.hpc-chip--type-glossary,
.hpc-chip--type-news {
  color: rgba(var(--cat-rgb, 255, 255, 255), 0.92);
  border-color: rgba(var(--cat-rgb, 255, 255, 255), 0.20);
  background: rgba(var(--cat-rgb, 255, 255, 255), 0.08);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 119;
  opacity: 0;
  background: rgba(4, 7, 13, 0.72);
  backdrop-filter: blur(8px);
  transition: opacity 200ms ease;
}

.mobile-overlay.open {
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(100vw, 460px);
  height: 100dvh;
  padding: 18px;
  background: linear-gradient(180deg, #09101d 0%, #0d1526 100%);
  border-left: 1px solid rgba(243, 245, 251, 0.08);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.36);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: calc(100dvh - 36px);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(243, 245, 251, 0.08);
}


.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(243, 245, 251, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--hpc-text-soft);
}



.mobile-nav {
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__section {
  border-bottom: 1px solid rgba(243, 245, 251, 0.08);
}

.mobile-nav__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.mobile-nav__trigger-main,
.mobile-nav__title-wrap,
.mobile-nav__panel-inner {
  display: grid;
  gap: 8px;
}



.mobile-nav__title {
  color: var(--hpc-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mobile-nav__chev {
  color: var(--hpc-text-faint);
  transition: transform 180ms ease;
}

.mobile-nav__section.open .mobile-nav__chev {
  transform: rotate(180deg);
}

.mobile-nav__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid) var(--ease);
  overflow: hidden;
}
.mobile-nav__section.open .mobile-nav__panel {
  grid-template-rows: 1fr;
  padding-bottom: 18px;
}
.mobile-nav__panel[hidden] {
  display: grid;
  grid-template-rows: 0fr;
}
.mobile-nav__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.mobile-nav__panel-inner {
  gap: 14px;
}




.mobile-nav__feature,
.mobile-nav__link {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 245, 251, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}


.mobile-nav__link {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}


.mobile-nav__hub {
  width: 100%;
}

.notice.notice-warning {
  width: min(var(--hpc-max), calc(100vw - (var(--hpc-pad) * 2)));
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(242, 193, 78, 0.18);
  border-radius: 16px;
  background: rgba(242, 193, 78, 0.08);
  color: var(--hpc-text-soft);
}

.nav__item.is-current .nav__trigger,
.mobile-nav__section.is-current > .mobile-nav__trigger {
  color: var(--hpc-text);
}

.is-current,
.is-current-parent {
  position: relative;
}

@media (max-width: 1279px) {
  .nav__bar { gap: 12px; }
  .nav__trigger { padding-inline: 8px; font-size: 12px; gap: 4px; }
  .nav__trigger .nav-icon { width: 15px; height: 15px; opacity: 0.82; }
  .nav__trigger::after { left: 8px; right: 8px; }
  .nav__logo-mark { font-size: 28px; }
  .masthead__feature { max-width: 360px; }
  .nav__tools-link { display: none; }
  .nav__cta { padding: 10px 16px; letter-spacing: 1.5px; }
  .mega__inner--canon { grid-template-columns: 280px 1fr 180px 180px; gap: 16px; padding: 24px 28px; }
  .mega__cat-num { font-size: 30px; }
  .mega__cat-name { font-size: 16px; }
  .mega__cover { min-height: 280px; }
  .mega__cover-body { padding: 16px; }
  .mega__feat-title { font-size: 15px; }
  .mega__feat-item-title { font-size: 13px; }
  .mega__feat-item--primary .mega__feat-item-title { font-size: 14px; }
}

@media (max-width: 1023px) {
  .masthead__inner {
    min-height: 40px;
  }

  .masthead__date,
  .masthead__weather-temp,
  .masthead__sun-rise,
  .masthead__sun-set {
    font-size: 10px;
  }

  .masthead__feature {
    max-width: 280px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mega {
    display: none;
  }
}

@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-overlay {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .masthead__inner {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 6px;
  }

  .masthead__left,
  .masthead__right {
    width: 100%;
    justify-content: space-between;
  }

  .masthead__right {
    padding-top: 6px;
  }

  .masthead__feature {
    max-width: none;
    flex: 1 1 auto;
  }
}

@media (max-width: 720px) {
  .contain,
  .nav__bar,
  .notice.notice-warning {
    width: calc(100vw - 32px);
  }

  .masthead__left {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 0;
    width: 100%;
  }

  .masthead__seg {
    min-height: 34px;
    padding-inline: 10px;
  }

  .masthead__seg:first-child {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .masthead__right {
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }

  .masthead__feature {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .masthead__feature-meta {
    white-space: normal;
  }

  .masthead__search {
    min-width: 42px;
    padding-inline: 12px;
    font-size: 0;
  }

  .masthead__search svg {
    margin: 0;
  }

  .nav__bar {
    min-height: 68px;
  }

  .nav__logo {
    min-width: 0;
  }

  .nav__logo-mark {
    font-size: 26px;
  }

  .nav__logo-meta {
    letter-spacing: 0.14em;
  }

  .mobile-menu {
    width: 100vw;
    padding: 16px;
  }

  .mobile-menu__body {
    min-height: calc(100dvh - 32px);
  }
}

@media (max-width: 560px) {
  .masthead__left {
    grid-template-columns: 1fr;
  }

  .masthead__seg {
    border-right: 0;
    border-bottom: 1px solid rgba(243, 245, 251, 0.08);
    padding-left: 0;
  }

  .masthead__seg:last-child {
    border-bottom: 0;
  }

  .masthead__right {
    padding-top: 10px;
  }

  .mobile-nav__trigger {
    padding-block: 16px;
  }


  .mobile-nav__title {
    font-size: 16px;
  }

}


@media (forced-colors: active) {
  .mega__sub,
  .mega__feat-card,
  .mega__feat-tool,
  .mobile-nav__feature,
  .mobile-nav__link,
  .mobile-nav__hub {
    border-color: ButtonBorder !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }

  .mega__sub.is-current,
  .mega__sub.is-current-parent,
  .nav__item.open .nav__trigger,
  .nav__trigger.is-current,
  .mobile-nav__section.is-current > .mobile-nav__trigger {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}


/* ==========================================
   STAGE 2 DESKTOP CANONICAL OVERRIDE LAYER
   ========================================== */
.mega__glass {
  overflow: hidden;
  border: 1px solid rgba(var(--cat-rgb,255,255,255),0.14);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset,
    0 4px 12px rgba(0,0,0,0.28),
    0 12px 36px rgba(0,0,0,0.24),
    0 32px 80px rgba(0,0,0,0.32),
    0 0 120px -20px rgba(var(--cat-rgb,255,255,255),0.14);
}
/* Inner border ring — double-border glass effect */
.mega__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
  border: 1px solid rgba(var(--cat-rgb,255,255,255),0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(0,0,0,0.18);
}
/* Top edge light streak */
.mega__glass::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(90deg, transparent 5%, rgba(var(--cat-rgb,255,255,255),0.28) 25%, rgba(255,255,255,0.14) 50%, rgba(var(--cat-rgb,255,255,255),0.28) 75%, transparent 95%);
}
/* Frosted glass layer — the actual blur surface */
.mega__bg {
  position: relative;
  background:
    linear-gradient(180deg, rgba(12,18,35,0.68), rgba(8,13,26,0.78) 50%, rgba(6,10,22,0.74));
  backdrop-filter: blur(80px) saturate(1.4);
  -webkit-backdrop-filter: blur(80px) saturate(1.4);
}
/* Top-left category ambient glow */
.mega__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 18% 22%, rgba(var(--cat-rgb,255,255,255),0.22) 0%, rgba(var(--cat-rgb,255,255,255),0.08) 40%, transparent 68%);
  filter: blur(40px);
}
/* Bottom-right secondary ambient glow */
.mega__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 45% at 82% 80%, rgba(var(--cat-rgb,255,255,255),0.10) 0%, transparent 70%);
  filter: blur(50px);
}
.mega__spotlight {
  display: block;
  position: absolute;
  width: 400px;
  height: 400px;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--cat-rgb,255,255,255),0.08) 0%, rgba(var(--cat-rgb,255,255,255),0.03) 35%, transparent 72%);
  transition: opacity 160ms var(--ease);
}
.nav__item.open .mega__spotlight { opacity: 1; }
.mega__floor {
  display: block;
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -16px;
  height: 28px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--cat-rgb,255,255,255),0.12) 0%, transparent 72%);
  filter: blur(12px);
}
/* [v22] Noise texture enabled for materiality */
.mega__noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  pointer-events: none;
  z-index: 2;
}
.mega__inner--canon {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 360px 1fr 210px 210px;
  gap: 20px;
  padding: 28px 36px 28px;
}
.mega__id--canon,
.mega__content--canon,
.mega__feat--canon { min-width: 0; }

/* ── Read column (Deep Dive + Glossary) ── */

/* ── Act column (Assessment + Protocol) ── */
.mega__feat--act .mega__feat-label {
  color: rgba(var(--type-assessment),0.50);
}
.mega__feat--act .mega__feat-hub {
  border-top-color: rgba(var(--type-assessment),0.08);
}
/* [v22] Column reveal stagger — spring open, snappy close */
.mega__id--canon,
.mega__content--canon,
.mega__feat--canon {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav__item.open .mega__id--canon {
  opacity: 1; transform: none;
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1) 0.04s, transform 0.45s cubic-bezier(0.22,1,0.36,1) 0.04s;
}
.nav__item.open .mega__content--canon {
  opacity: 1; transform: none;
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1) 0.10s, transform 0.45s cubic-bezier(0.22,1,0.36,1) 0.10s;
}
.nav__item.open .mega__feat--canon {
  opacity: 1; transform: none;
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1) 0.14s, transform 0.45s cubic-bezier(0.22,1,0.36,1) 0.14s;
}
.nav__item.open .mega__feat--act {
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1) 0.19s, transform 0.45s cubic-bezier(0.22,1,0.36,1) 0.19s;
}
.mega__id--canon {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.mega__feat--canon {
  padding-left: 20px;
  border-left: 1px solid rgba(242,193,78,0.08);
  border-image: linear-gradient(180deg, transparent, rgba(242,193,78,0.12) 30%, rgba(242,193,78,0.12) 70%, transparent) 1;
}
.mega__content--canon { display: flex; flex-direction: column; }

/* ── Hub guide (category parent — elegant header) ── */
.mega__hub-guide {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 14px 0 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--maize-10);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast) var(--ease);
}
.mega__hub-guide:hover {
  border-color: rgba(242,193,78,0.22);
  background: rgba(242,193,78,0.03);
}
.mega__hub-guide-label {
  flex-shrink: 0;
  color: var(--cat-hex);
  font: 700 13px/1 var(--hpc-font-sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.mega__hub-guide-label::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 13px;
  margin: 0 14px;
  background: rgba(242,193,78,0.35);
  vertical-align: -2px;
}
.mega__hub-guide-name {
  color: var(--hpc-text);
  font: 500 16px/1.3 var(--hpc-font-sans);
  letter-spacing: -0.01em;
}
.mega__hub-guide-meta {
  display: none;
}
.mega__hub-guide-arrow {
  margin-left: auto;
  color: rgba(242,193,78,0.60);
  font-size: 15px;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  flex-shrink: 0;
  padding-left: 12px;
}
.mega__hub-guide:hover .mega__hub-guide-arrow {
  opacity: 0.6;
  transform: translateX(3px);
}
.mega__hub-guide:hover .mega__hub-guide-name {
  color: #f0f0f0;
}
.mega__cat-num {
  margin-bottom: 10px;
  font: 800 36px/1 var(--hpc-font-brand);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(var(--cat-rgb,255,255,255),0.25), rgba(var(--cat-rgb,255,255,255),0.05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mega__cat-name {
  margin-bottom: 8px;
  color: var(--hpc-text);
  font: 700 19px/1.2 var(--hpc-font-brand);
  letter-spacing: -0.02em;
  text-shadow: none;
}
.mega__cat-desc {
  margin-bottom: 14px;
  color: var(--hpc-text-soft);
  font: 400 13px/1.6 var(--hpc-font-sans);
}
/* [v22] Removed dead .mega__cat-stat — stat_html no longer rendered */
/* [v22] Removed dead .mega__hub — cover card replaced it */
.mega__sub-label,
.mega__feat-label,
.mega__feat-type,
.mega__feat-tool-label {
  color: var(--hpc-text-faint);
  font: 500 10px/1 var(--hpc-font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mega__sub-label {
  margin-bottom: 10px;
  color: rgba(242,193,78,0.35);
}
.mega__sub-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(242,193,78,0.18);
  margin-top: 8px;
}
.mega__feat-label {
  margin-bottom: 12px;
  color: rgba(242,193,78,0.55);
}
.mega__feat-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(242,193,78,0.18);
  margin-top: 8px;
}
.mega__feat-type,
.mega__feat-tool-label { color: var(--cat-hex); letter-spacing: 0.12em; }
.mega__sub-list { display: grid; gap: 0; flex: 1; align-content: start; }

/* ── Subcategory row: inline name | guide title ── */
.mega__sub {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 14px 0;
  border-radius: 4px;
  border-bottom: 1px solid rgba(var(--cat-rgb,255,255,255),0.04);
  transition: border-color var(--t-fast) var(--ease);
}
.mega__sub:last-child { border-bottom: 0; }
.mega__sub:hover {
  border-color: rgba(var(--cat-rgb,255,255,255),0.10);
  background: rgba(var(--cat-rgb,255,255,255),0.025);
}
.mega__sub-main {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0;
  flex: 1;
}

/* Subcategory name — category-coloured inline label */
.mega__sub-name {
  flex-shrink: 0;
  color: var(--cat-hex);
  font: 600 13px/1 var(--hpc-font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.mega__sub-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--cat-rgb,255,255,255),0.35);
}

/* Separator pipe — maize accent */
.mega__sub-name::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 12px;
  background: rgba(242,193,78,0.30);
  vertical-align: -1px;
}

/* Guide title link */
.mega__sub-guide {
  color: rgba(243,245,251,0.72);
  font: 400 15px/1.35 var(--hpc-font-sans);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 0;
  transition: color var(--t-fast) var(--ease);
}
.mega__sub-guide:hover {
  color: var(--hpc-text);
}
.mega__sub-guide:hover .mega__sub-arrow {
  opacity: 0.7;
  transform: translateX(3px);
}
.mega__sub-arrow {
  color: var(--cat-hex);
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.mega__feat--canon { display: flex; flex-direction: column; gap: 6px; }
.mega__feat-card {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(240,240,240,0.08);
  border-radius: 12px;
  background: rgba(240,240,240,0.04);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.mega__feat-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242,193,78,0.15), rgba(242,193,78,0.45), rgba(242,193,78,0.15));
}
.mega__feat-card:hover {
  transform: translateY(-2px);
  background: rgba(240,240,240,0.06);
  border-color: rgba(var(--cat-rgb,255,255,255),0.15);
  box-shadow: 0 4px 16px -4px rgba(var(--cat-rgb,255,255,255),0.10);
}
.mega__feat-title {
  margin-top: 5px;
  color: var(--hpc-text);
  font: 600 16px/1.4 var(--hpc-font-sans);
  letter-spacing: -0.01em;
}
.mega__feat-meta {
  margin-top: 3px;
  color: var(--maize-50);
  font: 500 11px/1.4 var(--hpc-font-mono);
  letter-spacing: 0.02em;
}
.mega__feat-tool {
  padding: 14px 16px;
  border: 1px solid rgba(242,193,78,0.12);
  border-radius: 8px;
  background: rgba(242,193,78,0.025);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.mega__feat-tool:hover {
  transform: none;
  box-shadow: none;
  background: rgba(242,193,78,0.06);
  border-color: rgba(242,193,78,0.25);
}
.mega__feat-tool-name {
  margin-top: 3px;
  color: var(--hpc-text-soft);
  font: 600 13px/1.3 var(--hpc-font-sans);
}
.mega__feat-tool-meta {
  margin-top: 2px;
  color: var(--hpc-text-muted);
  font: 400 12px/1.4 var(--hpc-font-sans);
}


/* ═══════════════════════════════════════
   HOVER PREVIEW OVERLAY
   Glassmorphism panel overlaying cover card
   ═══════════════════════════════════════ */
.mega__preview {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--t-mid) var(--ease), visibility var(--t-mid) var(--ease), transform var(--t-mid) var(--ease-out);
  pointer-events: none;
  border-radius: 14px;
  overflow: hidden;
}
.mega__preview.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Preview hero image */
.mega__preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.mega__preview.has-image .mega__preview-img {
  opacity: 1;
  transform: scale(1.05);
  transition: opacity var(--t-mid) var(--ease), transform 8s cubic-bezier(0.2, 0, 0.2, 1);
}
/* Gradient over image */
.mega__preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,8,16,0.15) 0%, rgba(5,8,16,0.35) 35%, rgba(5,8,16,0.80) 65%, rgba(5,8,16,0.96) 100%);
  z-index: 1;
}
/* No image fallback — frosted glass */
.mega__preview:not(.has-image)::before {
  background: linear-gradient(180deg, rgba(8,12,22,0.60) 0%, rgba(5,8,16,0.95) 100%);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}
/* Category glow */
.mega__preview::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at 20% 20%, rgba(var(--cat-rgb,255,255,255),0.12), transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.mega__preview-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.mega__preview-type {
  font: 600 10px/1 var(--hpc-font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cat-hex);
  opacity: 0.90;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.mega__preview-title {
  font: 700 18px/1.25 var(--hpc-font-sans);
  color: var(--hpc-text);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.mega__preview-desc {
  font: 400 12.5px/1.55 var(--hpc-font-sans);
  color: rgba(243,245,251,0.72);
  max-height: 4.7em;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.mega__preview-cta {
  margin-top: 6px;
  font: 600 12px/1 var(--hpc-font-sans);
  color: rgba(242,193,78,0.85);
  transition: color var(--t-fast) var(--ease), gap var(--t-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Type-tinted preview labels */
.mega__preview[data-active-type="deep-dive"] .mega__preview-type { color: rgba(var(--type-deep-dive),0.85); }
.mega__preview[data-active-type="glossary"] .mega__preview-type { color: rgba(var(--type-glossary),0.85); }
.mega__preview[data-active-type="assessment"] .mega__preview-type { color: rgba(var(--type-assessment),0.85); }
.mega__preview[data-active-type="protocol"] .mega__preview-type { color: rgba(var(--type-protocol),0.85); }
.mega__preview[data-active-type="tool"] .mega__preview-type { color: rgba(var(--type-tool),0.85); }
.mega__preview[data-active-type="cheat-sheet"] .mega__preview-type { color: rgba(var(--type-cheat-sheet),0.85); }

/* Hide preview in reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mega__preview {
    transition-duration: 0.01ms !important;
  }
}

/* Hide preview on narrow screens */
@media (max-width: 1279px) {
  .mega__preview { display: none; }
}

/* ── Cover card (full-height hero + identity overlay) ── */
.mega__cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(var(--cat-rgb,255,255,255),0.04);
  border: 1px solid rgba(var(--cat-rgb,255,255,255),0.10);
  transition: border-color var(--t-fast) var(--ease);
  text-decoration: none;
  color: inherit;
}
.mega__cover:hover {
  border-color: rgba(var(--cat-rgb,255,255,255),0.22);
}
.mega__cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out), filter var(--t-mid) var(--ease);
}
.mega__cover:hover .mega__cover-photo {
  transform: scale(1.04);
  filter: brightness(1.06);
}
.mega__cover-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(4,7,13,0.02) 0%,
      rgba(4,7,13,0.08) 25%,
      rgba(4,7,13,0.38) 50%,
      rgba(4,7,13,0.78) 70%,
      rgba(4,7,13,0.95) 100%),
    linear-gradient(90deg, rgba(var(--cat-rgb,255,255,255),0.10), transparent 40%);
  pointer-events: none;
}
.mega__cover-body {
  position: relative;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mega__cover .mega__cat-num {
  margin-bottom: 2px;
}
.mega__cover .mega__cat-name {
  margin-bottom: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.mega__cover .mega__cat-desc {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(243,245,251,0.72);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.mega__cover-foot {
  margin-top: 4px;
}
.mega__cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--maize-80);
  font: 600 12px/1 var(--hpc-font-sans);
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.mega__cover:hover .mega__cover-cta {
  gap: 10px;
  color: var(--maize-95);
}


/* ═══════════════════════════════════════
   CONTENT TYPE MICRO-BRANDING SYSTEM
   Type-specific icons, colours, and visual treatments
   ═══════════════════════════════════════ */

/* ── Type accent colours ── */
:root {
  --type-deep-dive: 96,165,250;     /* Sky blue — research depth */
  --type-glossary: 163,177,196;     /* Silver — reference */
  --type-assessment: 87,211,155;    /* Green — diagnostic */
  --type-protocol: 242,193,78;      /* Amber — daily action */
  --type-review: 196,115,88;        /* Copper — product evaluation */
  --type-guide: 240,240,240;        /* White — authority default */
}

/* ── Type label colouring ── */
.mega__feat-item[data-type="deep-dive"] .mega__feat-item-type {
  color: rgba(var(--type-deep-dive),0.85);
}
.mega__feat-item[data-type="glossary"] .mega__feat-item-type {
  color: rgba(var(--type-glossary),0.85);
}
.mega__feat-item[data-type="assessment"] .mega__feat-item-type {
  color: rgba(var(--type-assessment),0.85);
}
.mega__feat-item[data-type="protocol"] .mega__feat-item-type {
  color: rgba(var(--type-protocol),0.85);
}
.mega__feat-item[data-type="review"] .mega__feat-item-type {
  color: rgba(var(--type-review),0.85);
}

/* ── Type icon ── */
.mega__feat-item-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: -1px;
  opacity: 0.70;
}
.mega__feat-item:hover .mega__feat-item-icon {
  opacity: 0.95;
}
.mega__feat-item-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

/* ── Primary card type accent bar matches content type ── */
.mega__feat-item--primary[data-type="deep-dive"]::before {
  background: linear-gradient(90deg, rgba(var(--type-deep-dive),0.15), rgba(var(--type-deep-dive),0.50), rgba(var(--type-deep-dive),0.15));
}

/* ── Type-tinted hover borders ── */
.mega__feat-item[data-type="deep-dive"]:hover {
  border-color: rgba(var(--type-deep-dive),0.18);
}
.mega__feat-item[data-type="glossary"]:hover {
  border-color: rgba(var(--type-glossary),0.18);
}
.mega__feat-item[data-type="assessment"]:hover {
  border-color: rgba(var(--type-assessment),0.18);
}
.mega__feat-item[data-type="protocol"]:hover {
  border-color: rgba(var(--type-protocol),0.18);
}
.mega__feat-item[data-type="review"]:hover {
  border-color: rgba(var(--type-review),0.18);
}

/* ── Affordance arrow inherits type colour ── */
.mega__feat-item[data-type="deep-dive"]::after { color: rgba(var(--type-deep-dive),0.25); }
.mega__feat-item[data-type="glossary"]::after { color: rgba(var(--type-glossary),0.25); }
.mega__feat-item[data-type="assessment"]::after { color: rgba(var(--type-assessment),0.25); }
.mega__feat-item[data-type="protocol"]::after { color: rgba(var(--type-protocol),0.25); }
.mega__feat-item[data-type="review"]::after { color: rgba(var(--type-review),0.25); }

.mega__feat-item[data-type="deep-dive"]:hover::after { color: rgba(var(--type-deep-dive),0.60); }
.mega__feat-item[data-type="glossary"]:hover::after { color: rgba(var(--type-glossary),0.60); }
.mega__feat-item[data-type="assessment"]:hover::after { color: rgba(var(--type-assessment),0.60); }
.mega__feat-item[data-type="protocol"]:hover::after { color: rgba(var(--type-protocol),0.60); }
.mega__feat-item[data-type="review"]:hover::after { color: rgba(var(--type-review),0.60); }

/* ── Meta text inherits type colour ── */
.mega__feat-item[data-type="deep-dive"] .mega__feat-item-meta { color: rgba(var(--type-deep-dive),0.45); }
.mega__feat-item[data-type="glossary"] .mega__feat-item-meta { color: rgba(var(--type-glossary),0.45); }
.mega__feat-item[data-type="assessment"] .mega__feat-item-meta { color: rgba(var(--type-assessment),0.45); }
.mega__feat-item[data-type="protocol"] .mega__feat-item-meta { color: rgba(var(--type-protocol),0.45); }
.mega__feat-item[data-type="review"] .mega__feat-item-meta { color: rgba(var(--type-review),0.45); }

/* ── Mobile type branding ── */
.mobile-nav__feature[data-type="deep-dive"] .mobile-nav__feature-type { color: rgba(var(--type-deep-dive),0.85); }
.mobile-nav__feature[data-type="assessment"] .mobile-nav__feature-type { color: rgba(var(--type-assessment),0.85); }
.mobile-nav__feature[data-type="protocol"] .mobile-nav__feature-type { color: rgba(var(--type-protocol),0.85); }
.mobile-nav__tool[data-type="glossary"] .mobile-nav__tool-label { color: rgba(var(--type-glossary),0.85); }
.mobile-nav__tool[data-type="assessment"] .mobile-nav__tool-label { color: rgba(var(--type-assessment),0.85); }
.mobile-nav__tool[data-type="protocol"] .mobile-nav__tool-label { color: rgba(var(--type-protocol),0.85); }

/* ── Featured column ── */
.mega__feat-item {
  position: relative;
  display: block;
  padding: 12px 28px 12px 14px;
  border: 1px solid rgba(240,240,240,0.08);
  border-radius: 10px;
  background: rgba(240,240,240,0.03);
  transition: background var(--t-fast,120ms) var(--ease,ease), border-color var(--t-fast,120ms) var(--ease,ease);
}
.mega__feat-item:last-child { margin-bottom: 0; }
.mega__feat-item:hover {
  background: rgba(240,240,240,0.06);
  border-color: rgba(var(--cat-rgb,255,255,255),0.15);
}
.mega__feat-item--primary {
  padding: 16px 14px 14px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(var(--cat-rgb,255,255,255),0.05), rgba(var(--cat-rgb,255,255,255),0.02));
  border-color: rgba(var(--cat-rgb,255,255,255),0.10);
}
.mega__feat-item--primary::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242,193,78,0.15), rgba(242,193,78,0.55), rgba(242,193,78,0.15));
}
.mega__feat-item--primary:hover {
  transform: translateY(-2px);
  background: rgba(240,240,240,0.06);
  border-color: rgba(var(--cat-rgb,255,255,255),0.15);
}
.mega__feat-item-type {
  color: var(--cat-hex);
  font: 500 10px/1 var(--hpc-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mega__feat-item-title {
  margin-top: 4px;
  color: var(--hpc-text);
  font: 600 14px/1.35 var(--hpc-font-sans);
  letter-spacing: -0.01em;
}
.mega__feat-item--primary .mega__feat-item-title {
  font-size: 15px;
  font-weight: 700;
}
.mega__feat-item-meta {
  margin-top: 3px;
  color: rgba(242,193,78,0.50);
  font: 500 10px/1.4 var(--hpc-font-mono);
  letter-spacing: 0.02em;
}

/* Affordance arrow on featured items */
.mega__feat-item::after {
  content: "→";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(242,193,78,0.25);
  font-size: 14px;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mega__feat-item:hover::after {
  color: rgba(242,193,78,0.65);
  transform: translateY(-50%) translateX(2px);
}
.mega__feat-item--primary::after {
  top: auto;
  bottom: 14px;
  transform: none;
}
.mega__feat-item--primary:hover::after {
  transform: translateX(2px);
}

/* Hub CTA at bottom of featured column */
.mega__feat-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 0 0;
  border-top: 1px solid var(--maize-08);
  color: rgba(242,193,78,0.50);
  font: 600 10px/1 var(--hpc-font-mono);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.mega__feat-hub:hover {
  color: var(--maize-80);
}
.mega__feat-hub-arrow {
  font-size: 12px;
  transition: transform var(--t-fast) var(--ease);
}
.mega__feat-hub:hover .mega__feat-hub-arrow {
  transform: translateX(3px);
}


/* ==========================================
   STAGE 3 MOBILE CANONICAL OVERLAY OVERRIDE
   ========================================== */

/* [v22] Hub guide row in mobile accordion */
.mobile-nav__hub-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--maize-10);
  text-decoration: none;
  color: inherit;
}
.mobile-nav__hub-guide-label {
  flex-shrink: 0;
  color: var(--cat-hex);
  font: 700 13px/1 var(--hpc-font-sans);
  white-space: nowrap;
}
.mobile-nav__hub-guide-pipe {
  color: rgba(242,193,78,0.35);
  font-size: 14px;
}
.mobile-nav__hub-guide-title {
  color: rgba(243,245,251,0.60);
  font: 400 13px/1.3 var(--hpc-font-sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-nav__hub-guide:hover .mobile-nav__hub-guide-title {
  color: rgba(243,245,251,0.85);
}

.mobile-overlay {
  background: rgba(4, 7, 13, 0.74);
  backdrop-filter: blur(8px);
}

.mobile-menu {
  width: 100vw;
  max-width: none;
  padding: 0;
  border-left: 0;
  box-shadow: none;
  background: #0a101d;
  transition: transform 260ms ease;
}

.mobile-menu__header {
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(243, 245, 251, 0.08);
  background: rgba(10, 16, 29, 0.96);
}

.mobile-menu__brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mobile-menu__brand-mark {
  color: var(--hpc-text);
  font: 700 28px/0.9 var(--hpc-font-brand);
  letter-spacing: 0.02em;
}

.mobile-menu__brand-meta {
  color: var(--hpc-text-faint);
  font: 600 9px/1 var(--hpc-font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-menu__close {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

.mobile-menu__body {
  grid-template-rows: 1fr auto;
  gap: 0;
  min-height: calc(100dvh - 64px);
}

.mobile-nav {
  padding: 8px 0 8px;
}

.mobile-nav__section {
  border-bottom: 1px solid rgba(243, 245, 251, 0.08);
}

.mobile-nav__trigger {
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 20px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  border-left: 3px solid transparent;
}

.mobile-nav__trigger-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav__number {
  color: rgba(var(--cat-rgb,255,255,255),0.72);
  font: 700 11px/1 var(--hpc-font-mono);
  letter-spacing: 0.12em;
}

.mobile-nav__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}


.mobile-nav__section.open > .mobile-nav__trigger,
.mobile-nav__section.is-current > .mobile-nav__trigger {
  background: rgba(var(--cat-rgb,255,255,255),0.05);
  border-left-color: var(--cat-hex, var(--hpc-gold));
}

.mobile-nav__section.open .mobile-nav__chev {
  color: var(--cat-hex, var(--hpc-gold));
}

.mobile-nav__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid) var(--ease);
  overflow: hidden;
}
.mobile-nav__section.open .mobile-nav__panel {
  grid-template-rows: 1fr;
  padding-bottom: 18px;
}
.mobile-nav__panel[hidden] {
  display: grid;
  grid-template-rows: 0fr;
}
.mobile-nav__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.mobile-nav__panel-inner {
  gap: 12px;
  padding: 0 20px;
}

.mobile-nav__detail-head {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.mobile-nav__panel-name {
  color: var(--hpc-text);
  font: 700 18px/1.2 var(--hpc-font-brand);
  letter-spacing: -0.02em;
}

.mobile-nav__thesis {
  margin: 0;
  color: var(--hpc-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.mobile-nav__feature,
.mobile-nav__tool,
.mobile-nav__link,
.mobile-nav__hub,
.mobile-nav__viewall {
  display: grid;
  gap: 8px;
}

.mobile-nav__feature,
.mobile-nav__tool {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(243, 245, 251, 0.10);
  background: rgba(255,255,255,0.035);
}

.mobile-nav__feature {
  border-top: 1px solid rgba(var(--cat-rgb,255,255,255),0.28);
}

.mobile-nav__feature-type,
.mobile-nav__tool-label {
  color: var(--cat-hex, var(--hpc-gold));
  font: 600 10px/1.2 var(--hpc-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-nav__feature-title,
.mobile-nav__tool-name {
  color: var(--hpc-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.mobile-nav__feature-meta,
.mobile-nav__tool-meta,
.mobile-nav__link-meta {
  color: var(--hpc-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.mobile-nav__subs {
  display: grid;
  gap: 10px;
}

.mobile-nav__link {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(243,245,251,0.08);
  background: rgba(255,255,255,0.02);
}

.mobile-nav__link-title {
  color: var(--hpc-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.mobile-nav__viewall {
  align-items: center;
  justify-content: center;
  grid-auto-flow: column;
  gap: 8px;
  min-height: 42px;
  color: var(--hpc-text-soft);
  font-size: 13px;
  font-weight: 600;
}

.mobile-nav__hub {
  align-items: center;
  justify-content: center;
  grid-auto-flow: column;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}

.mobile-menu__footer {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(243, 245, 251, 0.08);
  background: rgba(10, 16, 29, 0.98);
}

.mobile-menu__start {
  width: 100%;
  min-height: 48px;
}

@media (max-width: 560px) {
  .mobile-menu__header {
    min-height: 60px;
    padding-inline: 16px;
  }

  .mobile-menu__body {
    min-height: calc(100dvh - 60px);
  }

  .mobile-nav__trigger,
  .mobile-nav__panel-inner,
  .mobile-menu__footer {
    padding-inline: 16px;
  }

  .mobile-nav__title {
    font-size: 16px;
  }

  .mobile-nav__panel-name {
    font-size: 17px;
  }

  .mobile-nav__thesis {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav__tool {
    transition-duration: 80ms !important;
  }
}

@media (forced-colors: active) {
  .mobile-nav__tool {
    border-color: ButtonBorder !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }
}


/* ── Touch target enforcement (44px minimum) ── */
.mobile-nav__link {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav__hub {
  min-height: 48px;
}
.mobile-nav__hub-guide {
  min-height: 44px;
}
.mobile-nav__trigger {
  min-height: 56px;
}

/* ==========================================
   STAGE 4 HARDENING OVERRIDES
   ========================================== */
.mobile-fallback {
  display: none;
  position: relative;
  z-index: 70;
  width: min(var(--hpc-max), calc(100vw - (var(--hpc-pad) * 2)));
  margin: 0 auto;
  padding: 0 0 16px;
}

@media (max-width: 1023px) {
  html:not(.hpc-nav-js) .mobile-fallback {
    display: block;
  }
}

html.hpc-nav-js .mobile-fallback {
  display: none !important;
}

.mobile-fallback__inner {
  display: grid;
  gap: 12px;
  padding: 16px 0 0;
}

.mobile-fallback__title {
  color: var(--hpc-text-soft);
  font: 600 10px/1.2 var(--hpc-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-fallback__links {
  display: grid;
  gap: 10px;
}

.mobile-fallback__link,
.mobile-fallback__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(243,245,251,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--hpc-text);
  text-decoration: none;
}

.mobile-fallback__cta {
  border-color: rgba(242,193,78,0.22);
  color: var(--hpc-gold);
  background: rgba(242,193,78,0.06);
}

.mobile-menu[aria-hidden="true"] {
  pointer-events: none;
}

@supports not (height: 100dvh) {
  .mobile-menu,
  .mobile-menu__body {
    height: 100vh;
    min-height: calc(100vh - 64px);
  }
}

@media (hover: hover) {
  .mega__sub:hover {
    border-color: rgba(var(--cat-rgb,240,240,240), 0.10);
  }
}

@media (forced-colors: active) {
  .mobile-fallback__link,
  .mobile-fallback__cta,
  .mobile-menu,
  .mobile-menu__header,
  .mobile-menu__footer {
    background: Canvas !important;
    color: CanvasText !important;
    border-color: ButtonBorder !important;
    box-shadow: none !important;
  }

  .mobile-menu__close,
  .mobile-menu__start,
  .mobile-nav__trigger,
  .mobile-nav__hub,
  .mobile-nav__viewall {
    forced-color-adjust: auto;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .hpc-header,
  .masthead,
  .nav,
  .mega,
  .mobile-menu,
  .mobile-overlay,
  .mobile-fallback,
  .hamburger {
    display: none !important;
  }
}

/* ==========================================
   SAFE-AREA INSETS (iPhone notch + home bar)
   ========================================== */
@supports (padding-top: env(safe-area-inset-top)) {
  .mobile-menu__header {
    padding-top: max(0px, env(safe-area-inset-top));
  }

  .mobile-menu__footer {
    padding-bottom: max(20px, calc(16px + env(safe-area-inset-bottom)));
  }
}

/* ==========================================
   BACKDROP-FILTER FALLBACK
   ========================================== */
@supports not (backdrop-filter: blur(1px)) {
  .mega__bg {
    background: linear-gradient(180deg, rgba(10,16,30,0.96), rgba(6,10,22,0.98));
  }

  .nav::before {
    background: linear-gradient(180deg, rgba(8,13,24,0.99), rgba(8,13,24,0.97));
  }
}


/* ── Tool + Cheat Sheet type branding ── */
.mega__feat-item[data-type="tool"] .mega__feat-item-type { color: rgba(var(--type-tool),0.85); }
.mega__feat-item[data-type="tool"]:hover { border-color: rgba(var(--type-tool),0.18); }
.mega__feat-item[data-type="tool"]::after { color: rgba(var(--type-tool),0.25); }
.mega__feat-item[data-type="tool"]:hover::after { color: rgba(var(--type-tool),0.60); }
.mega__feat-item[data-type="tool"] .mega__feat-item-meta { color: rgba(var(--type-tool),0.45); }

.mega__feat-item[data-type="cheat-sheet"] .mega__feat-item-type { color: rgba(var(--type-cheat-sheet),0.85); }
.mega__feat-item[data-type="cheat-sheet"]:hover { border-color: rgba(var(--type-cheat-sheet),0.18); }
.mega__feat-item[data-type="cheat-sheet"]::after { color: rgba(var(--type-cheat-sheet),0.25); }
.mega__feat-item[data-type="cheat-sheet"]:hover::after { color: rgba(var(--type-cheat-sheet),0.60); }
.mega__feat-item[data-type="cheat-sheet"] .mega__feat-item-meta { color: rgba(var(--type-cheat-sheet),0.45); }

.mega__feat-item--primary[data-type="tool"]::before {
  background: linear-gradient(90deg, rgba(var(--type-tool),0.15), rgba(var(--type-tool),0.50), rgba(var(--type-tool),0.15));
}

/* Mobile type branding for Tool + Cheat Sheet */
.mobile-nav__tool[data-type="tool"] .mobile-nav__tool-label { color: rgba(var(--type-tool),0.85); }
.mobile-nav__tool[data-type="cheat-sheet"] .mobile-nav__tool-label { color: rgba(var(--type-cheat-sheet),0.85); }

/* ── Primary card accent bar for Act column types ── */
.mega__feat-item--primary[data-type="assessment"]::before {
  background: linear-gradient(90deg, rgba(var(--type-assessment),0.15), rgba(var(--type-assessment),0.50), rgba(var(--type-assessment),0.15));
}
.mega__feat-item--primary[data-type="protocol"]::before {
  background: linear-gradient(90deg, rgba(var(--type-protocol),0.15), rgba(var(--type-protocol),0.50), rgba(var(--type-protocol),0.15));
}
