.pdv-site-header,
.site-header.pdv-site-header,
.ps-header.pdv-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: auto;
  min-height: 68px;
  overflow: visible;
  border-bottom: 1px solid var(--hairline, #e2e8f0);
  background: var(--glass, rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(16px);
}

.pdv-nav {
  width: min(100% - 32px, var(--container, 1160px));
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.pdv-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink, #0f172a);
  font-family: Outfit, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.pdv-logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green, #15803d), #047857);
  font-size: 0.85rem;
  font-weight: 800;
}

.pdv-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.pdv-nav-menu {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  color: var(--body, #334155);
  font-size: 14px;
  font-weight: 600;
}

.pdv-nav-menu > a,
.pdv-nav-trigger {
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 8px 4px;
  min-height: 44px;
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
}

.pdv-nav-menu > a:hover,
.pdv-nav-trigger:hover {
  color: var(--green, var(--ps-primary, #15803d));
}

.pdv-nav-prep {
  color: var(--green, var(--ps-primary, #15803d)) !important;
  font-weight: 800;
}

.pdv-nav-item {
  position: relative;
}

.pdv-nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--hairline, #e2e8f0);
  border-radius: 14px;
  background: var(--card, #ffffff);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  z-index: 20;
}

.pdv-nav-dropdown a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  color: var(--ink, #0f172a);
  text-decoration: none;
  border-radius: 10px;
}

.pdv-nav-dropdown a:hover,
.pdv-nav-dropdown a:focus-visible {
  background: var(--soft, #f8fafc);
  color: var(--green, var(--ps-primary, #15803d));
}

.pdv-nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--hairline, #e2e8f0);
  border-radius: 10px;
  background: var(--soft, #f8fafc);
  color: var(--ink, #0f172a);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.pdv-nav a:focus-visible,
.pdv-nav-trigger:focus-visible,
.pdv-nav-toggle:focus-visible,
.pdv-site-header .theme-toggle:focus-visible {
  outline: 2px solid var(--green, var(--ps-primary, #15803d));
  outline-offset: 2px;
}

.pdv-sample-label {
  font-weight: 700;
  color: var(--green, #15803d);
}

@media (max-width: 900px) {
  .pdv-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .pdv-nav-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 1001;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 16px 24px;
    background: var(--card, #ffffff);
    border-bottom: 1px solid var(--hairline, #e2e8f0);
  }
  body.pdv-nav-open { overflow: hidden; }
  body.pdv-nav-open .pdv-nav-menu { display: flex; }
  .pdv-nav-dropdown {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 8px;
    background: transparent;
  }
  .pdv-nav-menu > a,
  .pdv-nav-trigger {
    width: 100%;
    text-align: left;
    padding: 12px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdv-nav-dropdown,
  .pdv-nav-menu {
    transition: none;
  }
}
