/* NCPSA shared site styles: brand tokens, header, footer, base typography */

:root {
  --ncpsa-green: #134B3A;
  --ncpsa-green-deep: #08221A;
  --ncpsa-green-black: #061B15;
  --ncpsa-cream: #fcfaf7;
  --ncpsa-line: #D8D8D8;
  --ncpsa-muted: #B3B3B3;
  --ncpsa-ink: #282828;
  --font-serif: "Hedvig Letters Serif", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --container-max: 1280px;
  --section-pad-y: clamp(64px, 8vw, 120px);
  --section-pad-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ncpsa-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ncpsa-green-black);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ncpsa-green); text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: 0.7; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

/* ------ HEADER ------ */

.site-header {
  background: var(--ncpsa-green);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header > .container {
  max-width: none;
  padding-left: clamp(16px, 2vw, 32px);
  padding-right: clamp(16px, 2vw, 32px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 38px;
  align-items: center;
}

.site-nav-list > li { position: relative; }

.site-nav-list a {
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 0;
  display: inline-block;
  border-bottom: 1.5px solid transparent;
}

.site-nav-list a.is-active {
  border-bottom-color: #fff;
}

.site-nav-list a:hover,
.site-nav-list .has-submenu:hover > a {
  opacity: 1;
  border-bottom-color: rgba(255,255,255,0.85);
}

.site-nav-list .has-submenu > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
}

.submenu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 340px;
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 110;
  overflow: hidden;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  color: var(--ncpsa-green-black);
  padding: 14px 26px;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.005em;
  border-bottom: none;
  transition: background .15s ease, color .15s ease;
}

.submenu a:hover {
  background: var(--ncpsa-green);
  color: #fff;
  opacity: 1;
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ncpsa-green-black);
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform .2s ease, background .2s ease;
}

.btn-portal:hover {
  background: var(--ncpsa-cream);
  opacity: 1;
  transform: scale(0.97);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ------ EDITORIAL UTILITIES (shared across sections) ------ */

.ed-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ncpsa-green);
  display: inline-block;
}

.eyebrow-num {
  color: rgba(19, 75, 58, 0.55);
  margin-right: 4px;
}

.ed-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--ncpsa-green);
  border: 0;
  margin: 28px 0;
}

.ed-rule-full {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ncpsa-line);
  border: 0;
  margin: 0;
}

.ed-num {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1;
  color: var(--ncpsa-green);
  display: inline-block;
}

.ed-h {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ncpsa-green-black);
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
}

/* ------ SUBPAGE HERO — dark forest, text only ------ */

.subpage-hero {
  position: relative;
  isolation: isolate;
  background-color: var(--ncpsa-green-black);
  background-image:
    linear-gradient(180deg, rgba(8,34,26,0.84) 0%, rgba(6,27,21,0.96) 100%),
    url("/assets/images/framework-bg.webp");
  background-size: cover;
  background-position: center 30%;
  color: #fff;
  padding: clamp(72px, 8vw, 112px) 0 clamp(64px, 7vw, 96px);
  overflow: hidden;
}
.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 110%, rgba(19,75,58,0.55), transparent 55%),
    radial-gradient(ellipse at 90% -10%, rgba(255,255,255,0.05), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.subpage-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  position: relative;
  z-index: 1;
}
.subpage-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.subpage-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.45);
}
.subpage-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: 0.003em;
  max-width: 22ch;
}
.subpage-hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}
.subpage-hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0;
  max-width: 60ch;
  font-weight: 400;
}

/* Shared subpage label */
.subpage-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ncpsa-green);
  position: relative;
  display: inline-block;
}
.subpage-label::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--ncpsa-green);
  margin-bottom: 20px;
}

/* ------ GOVERNANCE / COMMISSIONER GRID ------ */

.gov-section {
  background: var(--ncpsa-cream);
  padding: clamp(80px, 10vw, 132px) 0;
}
.gov-section.is-white {
  background: #fff;
}
.gov-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
.gov-section-header {
  margin-bottom: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.gov-section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ncpsa-green-black);
  margin: 0;
  max-width: 24ch;
}
.gov-section-header .subpage-label { margin-bottom: 0; }
.gov-section-header p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #3a3a3a;
  margin: 0;
}
@media (max-width: 820px) {
  .gov-section-header { grid-template-columns: 1fr; align-items: start; }
}

.gov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
.gov-card {
  display: flex;
  flex-direction: column;
}
.gov-card-photo {
  position: relative;
  aspect-ratio: 685 / 1024;
  overflow: hidden;
  background: #e8edea;
  border-radius: 2px;
  margin-bottom: 18px;
}
.gov-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gov-card-role {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ncpsa-green);
  margin-bottom: 6px;
  display: block;
}
.gov-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ncpsa-green-black);
  margin: 0 0 6px;
}
.gov-card-org {
  font-size: 0.92rem;
  line-height: 1.4;
  color: #555;
  margin: 0;
}
.gov-card-year {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #888;
  margin-top: 4px;
  display: inline-block;
}
@media (max-width: 1024px) {
  .gov-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gov-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gov-grid { grid-template-columns: 1fr; }
}

/* Smaller compact list for officers / ex-officio (no photos or with photo strip) */
.gov-officers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ncpsa-line);
  border-bottom: 1px solid var(--ncpsa-line);
}
.gov-officers li {
  padding: clamp(24px, 2.6vw, 32px) clamp(20px, 2.4vw, 32px);
  border-right: 1px solid var(--ncpsa-line);
}
.gov-officers li:last-child { border-right: 0; }
.gov-officers .gov-card-role {
  margin-bottom: 8px;
}
.gov-officers h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ncpsa-green-black);
  margin: 0 0 4px;
}
.gov-officers p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}
@media (max-width: 768px) {
  .gov-officers { grid-template-columns: 1fr; }
  .gov-officers li { border-right: 0; border-bottom: 1px solid var(--ncpsa-line); }
  .gov-officers li:last-child { border-bottom: 0; }
}

/* ------ RESOURCES NAV (shared closing CTA above footer) ------ */

.ed-resources {
  background: var(--ncpsa-cream);
  padding: clamp(64px, 8vw, 104px) 0;
  border-top: 1px solid var(--ncpsa-line);
}
.ed-resources-header {
  text-align: center;
  margin-bottom: clamp(44px, 5vw, 64px);
}
.ed-resources-header .eyebrow {
  margin-bottom: 14px;
  display: inline-block;
}
.ed-resources-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ncpsa-green-black);
  margin: 0 auto;
  max-width: 32ch;
}
.ed-resources-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ncpsa-line);
  border-bottom: 1px solid var(--ncpsa-line);
}
.ed-resources-nav a {
  display: block;
  padding: clamp(28px, 3.5vw, 44px) clamp(20px, 3vw, 36px);
  color: var(--ncpsa-green-black);
  text-align: center;
  transition: background .25s ease, color .25s ease;
  position: relative;
  border-right: 1px solid var(--ncpsa-line);
}
.ed-resources-nav a:last-child { border-right: 0; }
.ed-resources-nav a:hover {
  opacity: 1;
  background: #fff;
  color: var(--ncpsa-green);
}
.ed-resources-nav .nav-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ncpsa-green);
  display: block;
  margin-bottom: 12px;
}
.ed-resources-nav h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.25;
  color: inherit;
  margin: 0 0 10px;
}
.ed-resources-nav p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #555;
  margin: 0 auto 16px;
  max-width: 32ch;
}
.ed-resources-nav .nav-arrow {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ncpsa-green);
  display: inline-block;
  transition: transform .3s ease;
}
.ed-resources-nav a:hover .nav-arrow { transform: translateX(6px); }

@media (max-width: 820px) {
  .ed-resources-nav { grid-template-columns: 1fr; }
  .ed-resources-nav a { border-right: 0; border-bottom: 1px solid var(--ncpsa-line); }
  .ed-resources-nav a:last-child { border-bottom: 0; }
}

/* ------ FOOTER ------ */

.site-footer {
  background: var(--ncpsa-green);
  color: #fff;
  padding: clamp(56px, 7vw, 88px) 0 32px;
}

.site-footer > .ed-container {
  max-width: none;
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: auto 1.6fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.footer-logo img {
  height: 78px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-about {
  text-align: center;
}
.footer-about p {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 56ch;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}
.footer-links li:last-child { margin-bottom: 0; }

.footer-links a {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-links a::before {
  content: "\2192";
  font-family: var(--font-serif);
  color: var(--ncpsa-gold, #c8a857);
  font-size: 1.1em;
  line-height: 1;
  transition: transform .2s ease;
}
.footer-links a:hover {
  color: #fff;
  opacity: 1;
}
.footer-links a:hover::before { transform: translateX(4px); }

.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .footer-mark {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
}

/* ------ RESPONSIVE: header / footer ------ */

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ncpsa-green-black);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0 24px;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--section-pad-x);
  }
  .site-nav-list > li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav-list a {
    padding: 14px 0;
    font-size: 0.95rem;
  }
  .submenu {
    position: static;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 12px 16px;
  }
  .submenu a { color: rgba(255,255,255,0.8); padding: 8px 0; }
  .submenu a:hover { background: transparent; color: #fff; }
  .btn-portal {
    margin: 16px var(--section-pad-x) 0;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .footer-logo img { height: 64px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ========== VIDEO CARD — universal cover overlay (logo + title + play) ========== */
.video-card { position: relative; aspect-ratio: 16/9; width: 100%; overflow: hidden; background: #000; border-radius: 4px; box-shadow: 0 20px 60px rgba(8,34,26,0.18); }
.video-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.video-card-cover {
  position: absolute; inset: 0; z-index: 2;
  background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.9)), url('/assets/images/hero-home.webp');
  background-size: cover, cover;
  background-position: center, center;
  border: 0; cursor: pointer;
  font-family: inherit; color: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(6px, 1.6vw, 20px);
  padding: clamp(12px, 3.5%, 44px);
  text-align: center;
  transition: opacity .4s ease, visibility .4s;
  overflow: hidden;
}
.video-card-cover-logo {
  width: auto;
  height: clamp(32px, 14%, 100px);
  max-width: 64%;
  filter: none !important;
  flex-shrink: 0;
}
.video-card-cover-title {
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 1.35vw, 1.3rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ncpsa-green-black);
  margin: 0;
  max-width: 24ch;
  letter-spacing: 0.003em;
}
.video-card-cover-play {
  width: clamp(40px, 8%, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ncpsa-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .25s ease;
  box-shadow: 0 14px 32px rgba(8,34,26,0.28);
  flex-shrink: 0;
}
.video-card-cover:hover .video-card-cover-play { background: var(--ncpsa-green-deep); transform: scale(1.08); }
.video-card-cover-play svg { width: 40%; height: 40%; margin-left: 7%; fill: #fff; }
.video-card[data-playing] .video-card-cover { opacity: 0; visibility: hidden; pointer-events: none; }

/* Gold callout item in the Resources submenu — links to the school directory */
.submenu a.submenu-gold {
  background: #d4a843;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.submenu a.submenu-gold:hover {
  background: #b89035;
  color: #fff;
}
