/* NVPDR CMS placeholder — federal-style layout, distinct palette (not CMS.gov) */

:root {
  --nv-teal: #1e4a52;
  --nv-teal-hover: #163942;
  --nv-teal-soft: #2a6570;
  --hero-bg: #f3f0f8;
  --page-bg: #ffffff;
  --strip-bg: #ebe6f2;
  --text: #1a1d21;
  --text-muted: #4a5565;
  --border: #dcd7e5;
  --accent-warm: rgba(255, 168, 124, 0.42);
  --accent-mist: rgba(120, 190, 210, 0.25);
  --shadow-card: 0 6px 28px rgba(30, 74, 82, 0.09);
  --radius-pill: 999px;
  --radius-card: 12px;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--page-bg);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

#main {
  max-width: 100%;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--nv-teal);
  color: #fff;
  z-index: 100;
  border-radius: 4px;
}

.skip-link:focus {
  left: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-banner {
  background: linear-gradient(90deg, #e8f4f6 0%, #f5eef8 100%);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.gov-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.5rem;
  background: var(--strip-bg);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gov-strip-flag {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #bf2b2b 0 35%, #fff 35% 70%, #2a4b8d 70%);
  flex-shrink: 0;
  opacity: 0.85;
}

.header-main {
  border-bottom: 1px solid var(--border);
}

.header-main-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--nv-teal);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-util {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.util-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
}

.util-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.util-nav a:hover {
  color: var(--nv-teal);
  text-decoration: underline;
}

.icon-search {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--nv-teal);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-search:hover {
  background: var(--nv-teal-hover);
}

.primary-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 0.75rem;
}

.primary-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.primary-nav-list li {
  margin: 0;
}

.nav-faux {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  padding: 0.5rem 0.65rem;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 4px;
}

.nav-faux:hover {
  background: rgba(30, 74, 82, 0.06);
}

.nav-faux .chev {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-search {
  background: var(--hero-bg);
  padding: 2.75rem 1.5rem 3.25rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--nv-teal);
  letter-spacing: -0.03em;
}

.hero-lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 46rem;
  font-size: 1.05rem;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.search-field-wrap {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  min-height: 52px;
}

.search-field-wrap:focus-within {
  border-color: var(--nv-teal-soft);
  box-shadow: 0 0 0 3px rgba(42, 101, 112, 0.15);
}

.search-lead-icon {
  color: var(--text-muted);
  display: flex;
}

.search-input {
  flex: 1;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  min-width: 0;
  outline: none;
  background: transparent;
}

.search-submit {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--nv-teal);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 1.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.search-submit:hover {
  background: var(--nv-teal-hover);
}

.search-submit-arrow {
  font-size: 1.1rem;
  opacity: 0.9;
}

.featured-section {
  max-width: 1180px;
  margin: -2rem auto 0;
  padding: 0 1.5rem 2.5rem;
  position: relative;
  z-index: 1;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border);
}

.featured-tabs {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  background: linear-gradient(180deg, #faf9fc 0%, #f5f2fa 100%);
  border-right: 1px solid var(--border);
}

.tab {
  font-family: inherit;
  text-align: left;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-left: 4px solid transparent;
  line-height: 1.35;
}

.tab:hover {
  color: var(--text);
  background: rgba(30, 74, 82, 0.05);
}

.tab.active {
  font-weight: 700;
  color: var(--nv-teal);
  border-left-color: var(--nv-teal);
  background: rgba(255, 255, 255, 0.65);
}

.featured-body {
  position: relative;
  min-height: 320px;
}

.panel {
  display: none;
  grid-template-columns: 1fr minmax(160px, 42%);
  gap: 1.5rem;
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  align-items: stretch;
  min-height: 320px;
}

.panel.active {
  display: grid;
}

.panel-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--nv-teal);
}

.panel-copy p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.btn-outline {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--nv-teal);
  background: #fff;
  border: 2px solid var(--nv-teal);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(30, 74, 82, 0.06);
}

.panel-visual {
  position: relative;
  border-radius: 8px;
  background: linear-gradient(145deg, #eef5f7 0%, #f8f4fb 100%);
  overflow: hidden;
  min-height: 200px;
}

.panel-visual .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
}

.panel-visual .blob-a {
  width: 180px;
  height: 180px;
  right: -30px;
  top: 20%;
  background: var(--accent-warm);
}

.panel-visual .blob-b {
  width: 120px;
  height: 120px;
  right: 18%;
  bottom: 10%;
  background: var(--accent-mist);
}

.panel-visual .grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(30, 74, 82, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 74, 82, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.panel-visual.variant-2 .blob-a {
  background: rgba(255, 190, 150, 0.5);
}
.panel-visual.variant-3 .blob-a {
  background: rgba(140, 200, 210, 0.45);
}
.panel-visual.variant-4 .blob-b {
  background: rgba(255, 168, 124, 0.35);
}
.panel-visual.variant-5 .blob-a {
  background: rgba(180, 160, 220, 0.35);
}

.top-resources {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section-heading {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--nv-teal);
}

.resource-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.resource-list a {
  color: var(--nv-teal-soft);
  font-weight: 600;
}

.resource-list a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--hero-bg);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
  max-width: 52rem;
  margin-inline: auto;
}

@media (max-width: 880px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .tab {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.6rem 0.75rem;
  }

  .tab.active {
    border-bottom-color: var(--nv-teal);
    border-left-color: transparent;
  }

  .panel {
    grid-template-columns: 1fr;
  }

  .panel-visual {
    min-height: 160px;
    order: -1;
  }
}
