:root {
  --nsf-ink: #101f22;
  --nsf-night: #0c272a;
  --nsf-green: #24584e;
  --nsf-lime: #d9ed9d;
  --nsf-light: #f7f8f2;
  --nsf-line: #d9e0d5;
}

body.nsf-public {
  --deep-900: #132e32;
  --deep-800: #18393b;
  --ink-900: #172b2d;
  --ink-600: #465d5e;
  --ink-400: #506567;
  --teal-600: #286354;
  --teal-500: #4c8f79;
  --teal-400: #86bca7;
  --aqua-300: #c5e2cd;
  --gold-500: #d9ed9d;
  --gold-600: #4d6835;
  --gold-100: #ebf2dc;
  --page: #fafbf7;
  --foam-50: #eef3ec;
  --sand-50: #f4f5ed;
  --line: var(--nsf-line);
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --e1: 0 1px 2px #102e2420;
  --e2: 0 1px 4px #102e2414;
  --wrap: 1280px;
  --section-y: clamp(3.5rem, 7vw, 6rem);
}

.nsf-public .site-header,
.nsf-public .site-header[data-scrolled=true] {
  background: #fafbf7;
  box-shadow: none;
  border-bottom: 1px solid #dce3d8;
}

.nsf-public .site-header .site-nav a:not(.btn),
.nsf-public .site-header .logo-name,
.nsf-public .site-header .logo-sub { color: var(--nsf-night); }
.nsf-public .site-header .site-nav [aria-current=page] { text-decoration: underline; text-underline-offset: .45em; }
.nsf-public .site-header .scroll-progress { display: none; }
.nsf-public .site-header .nav-toggle { border-color: var(--nsf-line); }
.nsf-public .nav-toggle .bars i { background: var(--nsf-night); }
.nsf-public .btn { border-radius: 8px; min-height: 46px; }
.nsf-public .btn-primary, .nsf-public .site-header .nav-cta {
  color: #f6faef;
  background: var(--nsf-green);
  border-color: var(--nsf-green);
  box-shadow: none;
}
.nsf-public .btn-primary:hover, .nsf-public .site-header .nav-cta:hover { background: #183f37; }
.nsf-public .btn-primary svg, .nsf-public .btn-ghost svg { display: none; }
.nsf-public .deep-panel { background-color: var(--nsf-night); }
.nsf-public .page-hero .hero-bg::after {
  background: linear-gradient(90deg, #0a2427f0 0%, #0a2427d9 42%, #0a242766 100%);
}
.nsf-public .deep-panel .btn-primary,
.nsf-public .nsf-hero .btn-primary { background: var(--nsf-lime); border-color: var(--nsf-lime); color: var(--nsf-night); }
.nsf-public .deep-panel .btn-primary:hover,
.nsf-public .nsf-hero .btn-primary:hover { background: #edf7cb; }
.nsf-public .wave-divider, .nsf-public .art-wave { display: none; }
.nsf-public .card, .nsf-public .feature, .nsf-public .tile { box-shadow: none; border-radius: var(--r-lg); }
.nsf-public .eyebrow::before { background: currentColor; width: 18px; }
.nsf-public .eyebrow { letter-spacing: .12em; }
.nsf-public .section-head h2 { text-wrap: balance; }
.nsf-public .page-hero h1 { max-width: 20ch; }
.nsf-public .section-head.center { margin-inline: 0; text-align: left; }

.nsf-hero { color: #f5f8ed; background: var(--nsf-night); }
.nsf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(2rem, 5.2vw, 5.4rem);
  align-items: center;
  padding-block: clamp(2.7rem, 6.3vw, 6rem) clamp(2rem, 4vw, 3.25rem);
}
.nsf-kicker {
  color: var(--nsf-lime);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.nsf-hero h1 {
  color: #f6f8ef;
  font-size: clamp(2.65rem, 5.15vw, 5.1rem);
  letter-spacing: -.043em;
  line-height: .99;
  text-wrap: balance;
}
.nsf-hero-intro { max-width: 44ch; margin: 1.35rem 0 1.85rem; color: #d0e1d7; font-size: clamp(1rem, 1.5vw, 1.17rem); }
.nsf-hero .btn-ghost { border: 1px solid #9db7a5; color: #f3f8ea; background: transparent; }
.nsf-hero .btn-ghost:hover { background: #224746; }
.nsf-hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 11 / 9;
  border-radius: 16px;
  background: #25403c;
}
.nsf-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.nsf-hero-photo figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: .35rem .75rem;
  background: #112a2b;
  border-radius: 6px;
  font-size: .875rem;
}
.nsf-service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ffffff35;
  color: #e3ecdf;
  padding-block: 1rem;
  font-size: .93rem;
  font-weight: 600;
}
.nsf-service-strip li { padding: .32rem .8rem; text-align: center; }
.nsf-service-strip li + li { border-left: 1px solid #ffffff35; }
.nsf-public .tile-media:empty { background: var(--foam-50); }
.nsf-public .tile .tile-body { display: grid; gap: .55rem; }
.nsf-public .tile .tile-media:has(.badge:only-child) { min-height: 5.5rem; aspect-ratio: auto; }
.nsf-public .tile-add-on { display: none; }
.nsf-public .tile-add[aria-pressed=true] .tile-add-on { display: inline; }
.nsf-public .tile-add[aria-pressed=true] .tile-add-idle { display: none; }
.nsf-public .tile[hidden] { display: none; }

@media (max-width: 900px) {
  .nsf-public .site-header .site-nav { background: #fafbf7; border-color: var(--nsf-line); }
  .nsf-public .site-header .site-nav ul a { border-color: var(--nsf-line); }
}

@media (max-width: 800px) {
  .nsf-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .nsf-hero h1 { max-width: 14ch; }
  .nsf-hero-photo { aspect-ratio: 5 / 3; }
}
@media (max-width: 560px) {
  .nsf-hero .btn { padding-inline: .87rem; }
  .nsf-service-strip { font-size: .82rem; line-height: 1.3; }
  .nsf-service-strip li { padding-inline: .3rem; }
  .nsf-public .grid-2, .nsf-public .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

.nsf-admin, .nsf-admin * { box-sizing: border-box; }
.nsf-admin {
  margin: 0;
  background: var(--nsf-light);
  color: var(--nsf-ink);
  font: 1rem/1.5 system-ui, sans-serif;
}
.editor-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem max(1.1rem, calc((100vw - 1020px)/2));
  background: var(--nsf-night); color: #fff;
}
.editor-bar strong { display: block; }
.editor-bar span { color: #d1dfd4; font-size: .9rem; }
.editor-wrap { width: min(100% - 2.2rem, 1020px); margin: 2rem auto 5rem; }
.editor-wrap h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin: 0 0 1.25rem; line-height: 1.15; }
.editor-wrap h2 { font-size: 1.15rem; margin: .25rem 0; }
.editor-panel { padding: clamp(1.15rem, 3.5vw, 2rem); border-radius: 13px; background: white; border: 1px solid var(--nsf-line); }
.editor-auth { width: min(100%, 430px); margin: 4rem auto; }
.editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; }
.editor-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.editor-nav a { padding: .45rem .7rem; border: 1px solid var(--nsf-line); border-radius: 6px; background: white; }
.editor-nav [aria-current=page] { color: white; background: var(--nsf-green); }
.editor-wrap a { color: #1c574a; }
.editor-wrap a[aria-current=page], .editor-wrap a.editor-button { color: white; }
.editor-grid a.editor-panel { text-decoration: none; }
.editor-wrap form, .editor-wrap details[open] { display: grid; gap: 1rem; }
.editor-wrap label { display: grid; gap: .35rem; font-weight: 600; }
.editor-wrap input:not([type=checkbox]), .editor-wrap textarea, .editor-wrap select {
  width: 100%; font: inherit; font-weight: 400; border: 1px solid #79918a; border-radius: 6px;
  color: var(--nsf-ink); background: white; padding: .58rem .7rem;
}
.editor-wrap textarea { resize: vertical; }
.editor-wrap label.editor-check { display: flex; align-items: center; }
.nsf-admin button, .editor-button {
  width: fit-content; display: inline-block; border: 1px solid transparent;
  color: white; background: var(--nsf-green); border-radius: 7px;
  padding: .62rem 1rem; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none;
}
.nsf-admin .editor-secondary { background: transparent; border-color: #acbfb2; }
.editor-error, .editor-success { padding: .8rem 1rem; border-radius: 6px; }
.editor-error { color: #712319; background: #ffeeea; }
.editor-success { color: #164f39; background: #e5f5e7; }
.editor-wrap :focus-visible { outline: 3px solid #237b69; outline-offset: 3px; }
.editor-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .8rem; }
.editor-list { padding: 0; margin: 0; list-style: none; }
.editor-list li { display: flex; gap: 1rem; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--nsf-line); }
.editor-list span { color: #506560; font-size: .875rem; text-align: right; }
.editor-wrap summary { cursor: pointer; font-weight: 650; }
.editor-wrap details > label { margin-top: .8rem; }
