/* Shared public-page hero theme, taken from the existing landing page.
   Explicit hooks keep product previews, dashboard tools and page bodies scoped out.
   !important bridges older inline/page-specific theme overrides during adoption. */
:root {
  --np-hero-background: linear-gradient(145deg, #060f1e 0%, #0b2218 55%, #082a38 100%);
  --np-hero-title: #f0fdf4;
  --np-hero-copy: #c4dfd8;
  --np-hero-accent: linear-gradient(100deg, #5eead4 15%, #7dd3fc 85%);
  --np-hero-action: linear-gradient(120deg, #0b7a70 0%, #0d857b 45%, #087da5 100%);
}

.np-brand-hero[data-np-hero] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--np-hero-background) !important;
  color: var(--np-hero-title);
}

/* The same soft teal and sky glows used by the landing page. */
.np-brand-hero[data-np-hero]::before,
.np-brand-hero[data-np-hero]::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: auto;
  z-index: -1;
  border: 0;
  border-radius: 0;
  transform: none;
  opacity: 1;
  mask-image: none;
  pointer-events: none;
}
.np-brand-hero[data-np-hero]::before {
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, .13) 0%, transparent 65%);
}
.np-brand-hero[data-np-hero]::after {
  bottom: -80px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, .13) 0%, transparent 70%);
}

/* The homepage retains its current composition, type scale and compact spacing. */
.np-brand-hero[data-np-hero="page"] {
  padding-block: 2rem 1.75rem !important;
  font-family: "Outfit", system-ui, sans-serif;
}
.np-brand-hero[data-np-hero="page"] [data-np-hero-title] {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(2.3rem, 4vw, 3.4rem) !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  color: var(--np-hero-title) !important;
  text-wrap: balance;
  margin-bottom: .85rem;
}
.np-brand-hero[data-np-hero="page"] [data-np-hero-accent] {
  background: var(--np-hero-accent) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  font-style: italic;
  padding-right: .14em;
  margin-right: -.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.np-brand-hero[data-np-hero="page"] [data-np-hero-lead] {
  color: var(--np-hero-copy) !important;
  font-size: .95rem !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}
.np-brand-hero[data-np-hero="page"] [data-np-hero-kicker] {
  color: #99f6e4 !important;
  font-size: .7rem !important;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.np-brand-hero[data-np-hero="page"] [data-np-hero-primary],
.np-brand-hero[data-np-hero="page"] [data-np-hero-secondary] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .75rem 1.3rem !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  font: 700 .875rem/1.4 "Outfit", system-ui, sans-serif !important;
  text-align: center;
  text-decoration: none;
}
.np-brand-hero[data-np-hero="page"] [data-np-hero-primary] {
  background: var(--np-hero-action) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(14, 165, 233, .18) !important;
}
.np-brand-hero[data-np-hero="page"] [data-np-hero-secondary] {
  background: transparent !important;
  color: #d4e9e4 !important;
  border-color: rgba(94, 234, 212, .45) !important;
  box-shadow: none !important;
}
.np-brand-hero[data-np-hero="page"] [data-np-hero-secondary]:hover {
  background: rgba(94, 234, 212, .08) !important;
  border-color: #5eead4 !important;
}
.np-brand-hero[data-np-hero="page"] :is(a, button, input):focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 4px;
}
.np-brand-hero[data-np-hero="page"] :is(.sh-breadcrumbs, .crumb, .hero-crumb, .tj-crumb),
.np-brand-hero[data-np-hero="page"] :is(.sh-breadcrumbs, .crumb, .hero-crumb, .tj-crumb) a,
.np-brand-hero[data-np-hero="page"] :is(.assessment-facts, .hero-trust-item, .sh-hero-trust span, .tnc-hero-trust span, .tj-hero-trust span, .msn-stat-l) {
  color: #b9d6d0 !important;
}

/* Topic shortcuts previously sat on a pale hero. Keep them readable on the shared theme. */
.np-brand-hero[data-np-hero] .assessment-shortcuts {
  border-color: rgba(153, 246, 228, .3);
}
.np-brand-hero[data-np-hero] .assessment-shortcuts :is(h2, strong) {
  color: #f0fdf4;
}
.np-brand-hero[data-np-hero] .assessment-shortcuts :is(a, .sh-section-label) {
  color: #99f6e4;
  border-color: rgba(153, 246, 228, .2);
}
.np-brand-hero[data-np-hero] .assessment-shortcuts small {
  color: #b9d6d0;
}

/* Match the landing page's clear white search field, including on mobile. */
.np-brand-hero[data-np-hero] .res-hero-search-wrap {
  background: transparent;
  border: 0;
  backdrop-filter: none;
  filter: none;
}
.np-brand-hero[data-np-hero] .res-hero-search-inner {
  background: #fdfffe;
  border: 1px solid #a9d3cb;
  border-radius: 12px;
  color: #0b7a70;
}
.np-brand-hero[data-np-hero] .res-hero-search-inner svg {
  color: #0b7a70;
}
.np-brand-hero[data-np-hero] .rh-search-input {
  min-width: 0;
  color: #163b3a;
}
.np-brand-hero[data-np-hero] .rh-search-input::placeholder {
  color: #52657a;
  opacity: 1;
}
.np-brand-hero[data-np-hero] .rh-search-kbd {
  background: #edf7f4;
  border-color: #c6ded7;
  color: #52657a;
}
.np-brand-hero[data-np-hero] .np-search-shortcuts {
  color: #c4dfd8;
}
.np-brand-hero[data-np-hero] .np-search-shortcuts button {
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .np-brand-hero[data-np-hero="page"] {
    padding-block: 1.35rem 1.15rem !important;
  }
  .np-brand-hero[data-np-hero="page"] [data-np-hero-title] {
    font-size: clamp(1.85rem, 7.5vw, 2.3rem) !important;
    line-height: 1.08 !important;
  }
  .np-brand-hero[data-np-hero="page"] [data-np-hero-lead] {
    font-size: .875rem !important;
    line-height: 1.6 !important;
  }
}
