/* Shared navigation: dark glass shell, light disclosure panels. */
.site-header { position: relative; z-index: 50; gap: 24px; }
.site-header .brand { flex-shrink: 0; }
.site-header .brand img { width: 54px; height: 42px; }
.site-header .brand > span { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.04em; line-height: 1; padding: 0; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.theme-toggle { display: grid; place-items: center; position: relative; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #ffffff08; box-shadow: inset 0 0 0 1px #ffffff14; color: #d2d0cc; }
.theme-toggle .site-icon { grid-area: 1 / 1; width: 19px; height: 19px; }
.theme-toggle .theme-sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
html[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
.site-header .primary-nav { display: flex; gap: 2px; align-items: center; padding: 5px; font-size: 14px; color: #d2d0cc; background: linear-gradient(180deg, #ffffff12, #ffffff04); border: 1px solid #ffffff16; box-shadow: inset 0 1px 0 #ffffff0c, inset 0 -1px 0 #0003, 0 5px 18px #0001; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.site-header .nav-link, .site-header .nav-trigger { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 44px; border-radius: 100px; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 1.5; color: inherit; background: transparent; }
.site-icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.site-header .nav-trigger > .site-icon { width: 16px; height: 16px; color: #a9a7a3; transition: transform .18s ease; }
.site-header .nav-trigger[aria-expanded="true"] > .site-icon { transform: rotate(180deg); }
.nav-dropdown { position: relative; }
.site-header .nav-trigger[aria-expanded="true"], .site-header .is-current > .nav-trigger { background: #ffffff0c; color: #fff; box-shadow: inset 0 1px 0 #ffffff09; }
.nav-popover { position: absolute; top: calc(100% + 17px); left: -6px; width: 318px; padding: 10px; border-radius: 24px; border: 1px solid #d8d8d6; background: #fbfbfa; color: #252522; box-shadow: 0 16px 40px #0004, 0 3px 9px #0002, inset 0 1px 0 #fff; animation: nav-reveal .16s ease-out; }
.nav-popover::before { content: ''; position: absolute; left: 0; right: 0; height: 20px; top: -20px; }
.nav-popover-right { left: auto; right: -6px; }
.site-header .nav-popover-link { display: flex; align-items: center; gap: 16px; padding: 15px 13px; border-radius: 15px; color: #252522; }
.nav-item-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #dadad7; border-radius: 13px; color: #e94e43; background: #fff; box-shadow: 0 2px 3px #00000008; }
.nav-popover-link strong { display: block; font-size: 16px; font-weight: 650; line-height: 1.5; }
.nav-popover-link small { display: block; font-size: 12px; color: #74746e; margin-top: 2px; }
.site-header .nav-popover-link[aria-current="page"] { background: #f0efed; }
.site-header .nav-get { padding: 12px 18px; font-size: 14px; font-weight: 600; gap: 12px; white-space: nowrap; min-height: 46px; background: linear-gradient(180deg, #ffffff18, #ffffff08); border: 1px solid #ffffff1a; box-shadow: inset 0 1px 0 #ffffff16, inset 0 -1px 0 #0003, 0 4px 15px #0001; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.site-header .nav-get img { filter: invert(1); opacity: .85; }
.mobile-nav-toggle { display: none; }
@keyframes nav-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) {
  .site-header .nav-link:hover, .site-header .nav-trigger:hover { color: #fff; background: #ffffff0c; }
  .site-header .nav-popover-link:hover { background: #eeedeb; color: #111; }
  .site-header .nav-get:hover { background: linear-gradient(180deg, #ffffff24, #ffffff10); }
}
@media (max-width: 1000px) {
  .site-header { gap: 15px; }
  .site-header .nav-link, .site-header .nav-trigger { padding-inline: 12px; }
}
@media (max-width: 900px) {
  .site-header { height: 88px; }
  .site-header .brand { margin-right: auto; }
  .site-header .mobile-nav-toggle { display: flex; align-items: center; justify-content: center; padding: 10px 12px; min-width: 44px; min-height: 44px; border-radius: 100px; background: #ffffff08; border: 1px solid #ffffff16; font-size: 0; }
  .mobile-nav-toggle .site-icon { width: 17px; height: 17px; }
  .site-header .primary-nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% - 4px); padding: 10px; border-radius: 22px; background: #252524f5; box-shadow: 0 16px 32px #0004, inset 0 1px 0 #ffffff12; }
  .site-header .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
  .site-header .nav-link, .site-header .nav-trigger { display: flex; width: 100%; min-height: 48px; justify-content: space-between; padding-inline: 16px; border-radius: 12px; }
  .nav-popover { position: relative; top: auto; left: auto; right: auto; width: auto; margin: 5px 0 9px; box-shadow: none; border-radius: 17px; padding: 6px; }
  .nav-popover::before { display: none; }
  .site-header .nav-popover-link { display: flex; padding: 12px; }
  .site-header .nav-get { min-height: 44px; padding: 10px 14px; }
}
@media (max-width: 420px) {
  .site-header { gap: 9px; height: 80px; }
  .site-header .nav-get { padding-inline: 13px; }
  .site-header .nav-get img { display: none; }
  .site-header .brand img { width: 48px; height: 38px; }
  .site-header .brand > span { font-size: 16px; }
  .header-actions { gap: 7px; }
}
@media (max-width: 360px) { .site-header .nav-get { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav-popover { animation: none; } }
