.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-site-header .theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--hairline, #e2e8f0);
  background: var(--soft, #f8fafc);
  color: var(--ink, #0f172a);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.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;
  }
}

/* Sitewide floating promo widget (see site-nav.js initPromoWidget) */
.pdv-promo-widget {
  display: block;
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 950;
  width: 112px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
  transition: transform .15s ease, box-shadow .15s ease;
  animation: pdv-promo-in .35s ease;
}
.pdv-promo-widget:hover,
.pdv-promo-widget:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .36);
}
.pdv-promo-widget img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.pdv-promo-widget-close {
  position: fixed;
  left: 108px;
  bottom: 94px;
  z-index: 951;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .15);
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .2);
}
@keyframes pdv-promo-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.pdv-promo-widget[hidden], .pdv-promo-widget-close[hidden] { display: none; }
@media (max-width: 640px) {
  .pdv-promo-widget { width: 86px; left: 10px; bottom: 10px; }
  .pdv-promo-widget-close { left: 76px; bottom: 76px; width: 20px; height: 20px; }
  /* Non-dismissible interview-page widget (site-nav.js adds this class only
     in that case): reserve its footprint instead of floating over content,
     since there's no close button here to get out from under it. 86px wide
     at the image's 150:373 ratio is ~214px tall; 10px bottom offset + a
     little breathing room = 236px. */
  body.pdv-promo-reserve-space { padding-bottom: 236px; }
}
