:root {
  --nss-white: #ffffff;
  --nss-bg: #f3f6f9;
  --nss-panel: #f8fafc;
  --nss-ink: #061d34;
  --nss-charcoal: #243447;
  --nss-muted: #66788c;
  --nss-navy: #07385d;
  --nss-deep: #042842;
  --nss-blue: #2f78b7;
  --nss-blue-soft: #e8f3fb;
  --nss-line: #d9e3ec;
  --nss-alert: #f8d2dd;
  --nss-success: #dcefe8;
  --nss-radius: 8px;
  --nss-shadow: 0 14px 34px rgba(6, 29, 52, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nss-stitch {
  margin: 0;
  color: var(--nss-ink);
  background: var(--nss-bg);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.nss-stitch a { color: inherit; }
.nss-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: var(--nss-white);
  border-bottom: 1px solid var(--nss-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nss-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--nss-navy);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}
.nss-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: var(--nss-navy);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: -0.04em;
}
.nss-menu-toggle { display: none; }
.nss-menu-label { display: none; color: var(--nss-navy); font-size: 1.5rem; cursor: pointer; }
.nss-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.8rem;
  font-weight: 850;
}
.nss-nav > a,
.nss-drop > button,
.nss-drop-trigger {
  color: #17324a;
  text-decoration: none;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 20px 0;
}
.nss-nav a:hover,
.nss-drop > button:hover,
.nss-drop-trigger:hover { color: var(--nss-blue); }
.nss-drop { position: relative; }
.nss-drop-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 54px;
  width: 245px;
  background: #fff;
  border: 1px solid var(--nss-line);
  box-shadow: var(--nss-shadow);
  padding: 8px;
  border-radius: 8px;
  z-index: 200;
}
.nss-drop:hover .nss-drop-menu,
.nss-drop:focus-within .nss-drop-menu { display: grid; }
.nss-drop-menu a {
  text-decoration: none;
  padding: 10px 11px;
  border-radius: 5px;
  color: #17324a;
  font-weight: 750;
}
.nss-drop-menu a:hover { background: var(--nss-blue-soft); }
.nss-button,
button.nss-button {
  border: 0;
  border-radius: 5px;
  background: var(--nss-navy);
  color: #fff;
  padding: 11px 16px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.82rem;
  cursor: pointer;
}
.nss-button:visited { color: #fff; }
.nss-stitch .nss-button,
.nss-stitch .nss-button:visited { color: #fff; }
.nss-button.secondary {
  background: #fff;
  color: var(--nss-navy);
  border: 1px solid var(--nss-line);
}
.nss-button.secondary:visited { color: var(--nss-navy); }
.nss-stitch .nss-button.secondary,
.nss-stitch .nss-button.secondary:visited { color: var(--nss-navy); }
.nss-button.blue { background: var(--nss-blue); }
.nss-button.full { width: 100%; }
.nss-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.nss-kicker {
  display: block;
  color: var(--nss-blue);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.7rem;
  font-weight: 950;
  margin-bottom: 10px;
}
.nss-stitch h1 {
  margin: 0;
  color: var(--nss-navy);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.nss-stitch h2 {
  margin: 0 0 16px;
  color: var(--nss-navy);
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.nss-stitch h3 { margin: 0 0 8px; color: var(--nss-navy); line-height: 1.12; }
.nss-lede { color: #38506a; max-width: 760px; font-size: 1rem; margin: 12px 0 0; }
.nss-muted { color: var(--nss-muted); }
.nss-section { padding: 56px 0; }
.nss-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.nss-section-head p { max-width: 520px; margin: 0; color: var(--nss-muted); }
.nss-card {
  background: #fff;
  border: 1px solid var(--nss-line);
  border-radius: var(--nss-radius);
  box-shadow: 0 9px 24px rgba(6, 29, 52, 0.06);
}
.nss-thumb {
  overflow: hidden;
  background: var(--nss-blue-soft);
  border-bottom: 1px solid var(--nss-line);
}
.nss-thumb img,
.nss-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nss-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.nss-chip {
  border: 1px solid var(--nss-line);
  color: #36556f;
  background: #fff;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.nss-label {
  color: var(--nss-blue);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 950;
}
.nss-text-link {
  color: var(--nss-navy);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 950;
}
.nss-footer {
  background: #fff;
  border-top: 1px solid var(--nss-line);
  padding: 30px 40px;
  color: #66788c;
  font-size: 0.78rem;
}
.nss-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
}
.nss-footer a { color: #3f5369; display: block; margin: 7px 0; }
.nss-footer strong { color: var(--nss-navy); }

.nss-home-hero,
.nss-night-hero {
  background: var(--nss-deep);
  color: #fff;
  overflow: hidden;
}
.nss-hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 36px;
  align-items: center;
  min-height: 455px;
}
.nss-home-hero h1,
.nss-night-hero h1 { color: #fff; }
.nss-home-hero p,
.nss-night-hero p { color: #d7e8f5; }
.nss-hero-media {
  height: 365px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 62px rgba(0,0,0,0.28);
  overflow: hidden;
}
.nss-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nss-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nss-value-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: #fff;
  border-bottom: 1px solid var(--nss-line);
}
.nss-value-strip a {
  padding: 18px 10px;
  text-align: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  color: #35516a;
  border-right: 1px solid var(--nss-line);
}
.nss-feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  overflow: hidden;
}
.nss-feature-copy { padding: 32px; }
.nss-feature-media { min-height: 270px; background: var(--nss-blue-soft); }
.nss-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nss-workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}
.nss-workflow-image {
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--nss-radius);
  background: var(--nss-blue-soft);
}
.nss-workflow-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nss-workflow-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
}
.nss-workflow-steps {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.nss-workflow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--nss-line);
  border-radius: var(--nss-radius);
  background: var(--nss-panel);
}
.nss-workflow-step strong {
  display: block;
  color: var(--nss-navy);
  margin-bottom: 2px;
}
.nss-step-number {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--nss-deep);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}
.nss-resource-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.nss-resource-map-card {
  padding: 18px;
}
.nss-resource-map-card h3 {
  margin-bottom: 10px;
}
.nss-link-list {
  display: grid;
  gap: 8px;
}
.nss-link-list a {
  color: #26475f;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
}
.nss-link-list a:hover {
  color: var(--nss-blue);
}
.nss-continuity-details {
  margin-top: 16px;
  border: 1px solid var(--nss-line);
  border-radius: var(--nss-radius);
  background: #fff;
  padding: 12px 14px;
}
.nss-continuity-details summary {
  cursor: pointer;
  color: var(--nss-navy);
  font-weight: 900;
}
.nss-continuity-details .nss-chip-row {
  margin-top: 12px;
}
.nss-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nss-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nss-resource-card { overflow: hidden; }
.nss-resource-card .nss-thumb { height: 148px; }
.nss-resource-body { padding: 16px; }

.nss-library-shell,
.nss-planner-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
  background: #fff;
  border-left: 1px solid var(--nss-line);
  border-right: 1px solid var(--nss-line);
}
.nss-sidebar {
  background: #f7f9fb;
  border-right: 1px solid var(--nss-line);
  padding: 28px 18px;
}
.nss-sidebar h2 {
  font-size: 1.22rem;
  line-height: 1.05;
  margin: 0 0 22px;
}
.nss-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 850;
}
.nss-side-link.active,
.nss-side-link:hover { background: #98cbfa; color: #052845; }
.nss-main { min-width: 0; padding: 40px; }
.nss-search {
  width: 100%;
  border: 1px solid var(--nss-line);
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  margin: 18px 0 24px;
}
.nss-split-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}
.nss-latest-list { display: grid; gap: 13px; }
.nss-list-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  text-decoration: none;
}
.nss-list-row .nss-thumb { height: 68px; border: 1px solid var(--nss-line); border-radius: 5px; }
.nss-mini-list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--nss-line);
  color: #12324d;
  font-weight: 850;
  text-decoration: none;
}

.nss-tool-page { background: #eef3f8; }
.nss-tool-frame {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  background: #f3f6fb;
  border-left: 1px solid #d4ddea;
  border-right: 1px solid #d4ddea;
  min-height: calc(100vh - 58px);
  padding: 34px 40px 0;
}
.nss-alert {
  background: var(--nss-alert);
  color: #82253b;
  border: 1px solid #efb9c9;
  padding: 14px 18px;
  font-weight: 850;
  font-size: 0.84rem;
  margin-bottom: 28px;
}
.nss-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 38px;
}
.nss-tool-layout > *,
.nss-panel,
.nss-field,
.nss-result,
.nss-card,
.nss-chip-row {
  min-width: 0;
}
.nss-panel {
  background: rgba(255,255,255,0.72);
  border: 1px solid #d8e2ea;
  border-radius: 6px;
  padding: 22px;
}
.nss-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #cfdae5;
  margin: -22px -22px 22px;
}
.nss-tab {
  padding: 14px 12px;
  text-align: center;
  border: 0;
  background: transparent;
  color: #36445a;
  font-weight: 900;
}
.nss-tab.active { color: var(--nss-navy); border-bottom: 3px solid var(--nss-navy); }
.nss-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nss-field label {
  display: block;
  color: #32455c;
  font-weight: 950;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.nss-field input,
.nss-field textarea,
.nss-field select {
  width: 100%;
  border: 1px solid #d7e0e9;
  background: #fff;
  border-radius: 4px;
  padding: 13px 12px;
  font: inherit;
  color: var(--nss-ink);
}
.nss-field textarea { min-height: 112px; resize: vertical; }
.nss-result {
  display: none;
  margin-top: 18px;
  background: #fff;
  border-left: 4px solid var(--nss-blue);
  padding: 16px;
  min-height: 54px;
}
.nss-result.active { display: block; }
.nss-result strong { color: var(--nss-navy); font-size: 1.4rem; }
.nss-tool-photo {
  height: 215px;
  margin-top: 24px;
  border-radius: 7px;
  overflow: hidden;
}
.nss-tool-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nss-reference-card {
  background: var(--nss-deep);
  color: #fff;
  padding: 22px;
  border-radius: 6px;
  margin-top: 18px;
}
.nss-reference-card h3 { color: #fff; }
.nss-mobile-action { display: none; }

.nss-planner-shell { grid-template-columns: 220px minmax(0, 1fr) 285px; }
.nss-planner-center { padding: 44px 34px; background: #f4f7fa; min-width: 0; }
.nss-planner-right { padding: 32px 20px; background: #fff; border-left: 1px solid var(--nss-line); }
.nss-timeline {
  background: #fff;
  border: 1px solid var(--nss-line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 22px;
}
.nss-time-row {
  display: grid;
  grid-template-columns: 82px 1fr 1fr;
  min-height: 88px;
  border-bottom: 1px solid var(--nss-line);
}
.nss-time-row:last-child { border-bottom: 0; }
.nss-time-label { background: #eaf2f8; padding: 18px 14px; color: var(--nss-navy); font-weight: 950; }
.nss-task-box {
  margin: 12px;
  padding: 12px;
  border: 1px solid #d8e2ea;
  border-radius: 5px;
  background: #fff;
  font-size: 0.84rem;
}
.nss-mini-panel {
  background: #fff;
  border: 1px solid var(--nss-line);
  border-radius: 7px;
  padding: 18px;
  margin-bottom: 18px;
}
.nss-priority-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px;
  background: #f8fafc;
  border: 1px solid var(--nss-line);
  margin-top: 9px;
}
.nss-priority-number { color: var(--nss-blue); font-weight: 950; }

.nss-nutrition-page {
  background: #f4f7fa;
}
.nss-nutrition-hero {
  padding: 54px 0 36px;
  background: #fff;
  border-bottom: 1px solid var(--nss-line);
}
.nss-nutrition-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
}
.nss-nutrition-hero h1 {
  max-width: 720px;
  font-size: clamp(2.35rem, 5.4vw, 4.7rem);
}
.nss-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.nss-image-panel {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 8px;
  border: 1px solid var(--nss-line);
  background: #eaf1f7;
  box-shadow: var(--nss-shadow);
}
.nss-image-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
}
.nss-image-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nss-navy);
  border: 1px solid rgba(216, 226, 234, 0.9);
  border-radius: 6px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(6, 29, 52, 0.1);
}
.nss-fuel-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.nss-timeline-card {
  padding: 20px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nss-timeline-card .nss-time-pill {
  width: fit-content;
  border-radius: 999px;
  background: var(--nss-blue-soft);
  color: var(--nss-navy);
  padding: 6px 9px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nss-timeline-card p,
.nss-strategy-card p,
.nss-nocturnal-row p,
.nss-toolkit-card p {
  margin: 0;
  color: #4f6578;
}
.nss-editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.86fr);
  gap: 28px;
  align-items: stretch;
}
.nss-editorial-copy {
  display: grid;
  gap: 14px;
}
.nss-strategy-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--nss-line);
  border-radius: 8px;
}
.nss-dark-feature {
  background: var(--nss-deep);
  color: #fff;
  border-radius: 8px;
  padding: 34px;
  overflow: hidden;
}
.nss-dark-feature h2,
.nss-dark-feature h3 {
  color: #fff;
}
.nss-dark-feature p {
  color: #d8e6ef;
}
.nss-micro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 30px;
  align-items: center;
}
.nss-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.nss-checkpoint {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 7px;
  padding: 14px;
  color: #fff;
  font-weight: 900;
}
.nss-dark-feature .nss-image-panel {
  min-height: 300px;
  border-color: rgba(255,255,255,0.18);
  box-shadow: none;
}
.nss-dark-feature .nss-image-panel img {
  min-height: 300px;
}
.nss-nocturnal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.nss-nocturnal-row {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--nss-line);
  border-radius: 8px;
}
.nss-toolkit-band {
  background: #e9eef3;
  border: 1px solid #d8e2ea;
  border-radius: 10px;
  padding: 32px;
}
.nss-toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.nss-toolkit-card {
  display: block;
  background: #fff;
  border: 1px solid var(--nss-line);
  border-radius: 8px;
  padding: 18px;
  text-decoration: none;
}
.nss-toolkit-card:hover {
  border-color: var(--nss-blue);
  box-shadow: 0 10px 24px rgba(6, 29, 52, 0.08);
}
.nss-nutrition-cta {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.nss-nutrition-cta .nss-hero-actions {
  justify-content: center;
}

@media (max-width: 920px) {
  .nss-topbar { padding: 0 18px; }
  .nss-menu-label { display: block; }
  .nss-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 58px;
    background: #fff;
    border-bottom: 1px solid var(--nss-line);
    padding: 14px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .nss-menu-toggle:checked ~ .nss-nav { display: flex; }
  .nss-nav > a,
  .nss-drop > button,
  .nss-drop-trigger { padding: 8px 0; text-align: left; }
  .nss-drop-menu { position: static; display: grid; width: 100%; box-shadow: none; border-radius: 6px; margin-top: 8px; }
  .nss-wrap { width: min(100% - 32px, 1180px); }
  .nss-library-shell,
  .nss-planner-shell,
  .nss-tool-frame { width: 100%; }
  .nss-library-shell,
  .nss-planner-shell { display: block; border: 0; }
  .nss-sidebar { border-right: 0; border-bottom: 1px solid var(--nss-line); padding: 18px; }
  .nss-main,
  .nss-planner-center,
  .nss-planner-right { padding: 26px 18px; }
  .nss-hero-grid,
  .nss-feature-row,
  .nss-workflow-panel,
  .nss-resource-map,
  .nss-split-list,
  .nss-tool-layout,
  .nss-form-grid,
  .nss-grid,
  .nss-grid.four,
  .nss-planner-shell { grid-template-columns: 1fr; }
  .nss-section-head { align-items: start; flex-direction: column; }
  .nss-home-hero,
  .nss-night-hero { padding: 36px 0; }
  .nss-hero-grid { min-height: auto; }
  .nss-home-hero h1,
  .nss-night-hero h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); line-height: 1.04; letter-spacing: -0.035em; }
  .nss-hero-media { height: 245px; }
  .nss-workflow-image { min-height: 260px; }
  .nss-workflow-copy { padding: 24px; }
  .nss-hero-actions .nss-button { width: 100%; }
  .nss-value-strip { grid-template-columns: repeat(2, 1fr); }
  .nss-value-strip a { min-width: 0; overflow-wrap: anywhere; }
  .nss-card,
  .nss-feature-row,
  .nss-workflow-panel,
  .nss-resource-map-card { max-width: 100%; }
  .nss-chip,
  .nss-text-link,
  .nss-button { white-space: normal; text-align: center; }
  .nss-section-head,
  .nss-feature-copy,
  .nss-resource-body,
  .nss-workflow-copy { min-width: 0; }
  .nss-tool-frame { padding: 22px 16px 86px; border: 0; }
  .nss-tool-layout { margin-top: 28px; }
  .nss-tabs,
  .nss-form-grid,
  .nss-form-grid[style] { grid-template-columns: 1fr !important; }
  .nss-tool-page .nss-hero-actions { align-items: stretch; }
  .nss-tool-page .nss-hero-actions .nss-button { width: 100%; }
  .nss-field input,
  .nss-field select,
  .nss-field textarea,
  .nss-result pre { max-width: 100%; }
  .nss-mobile-action {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: #eef3f8;
    border-top: 1px solid #d4ddea;
    z-index: 60;
  }
  .nss-mobile-action .nss-button { width: 100%; }
  .nss-time-row { grid-template-columns: 1fr; }
  .nss-nutrition-hero { padding: 34px 0 26px; }
  .nss-nutrition-hero-grid,
  .nss-editorial-split,
  .nss-micro-grid,
  .nss-fuel-timeline,
  .nss-nocturnal-grid,
  .nss-toolkit-grid { grid-template-columns: 1fr; }
  .nss-image-panel,
  .nss-image-panel img { min-height: 248px; }
  .nss-dark-feature { padding: 24px 18px; border-radius: 8px; margin-left: 0; margin-right: 0; }
  .nss-check-grid { grid-template-columns: 1fr; }
  .nss-toolkit-band { padding: 24px 18px; border-radius: 8px; }
  .nss-footer { padding: 26px 18px; }
  .nss-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .nss-stitch h1 { font-size: 2.05rem; line-height: 1; }
  .nss-section { padding: 38px 0; }
  .nss-footer-grid { grid-template-columns: 1fr; }
}

/* Homepage editorial polish layer */
.nss-homepage {
  background: #f4f7fa;
  overflow: hidden;
}
.nss-editorial-hero {
  position: relative;
  min-height: 650px;
  padding: 86px 0 72px;
  isolation: isolate;
  overflow: hidden;
}
.nss-editorial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 40, 66, 0.98) 0%, rgba(4, 40, 66, 0.86) 44%, rgba(4, 40, 66, 0.55) 100%),
    linear-gradient(0deg, rgba(4, 40, 66, 0.65), rgba(4, 40, 66, 0.22));
}
.nss-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.92) contrast(1.04);
}
.nss-editorial-hero .nss-hero-grid {
  min-height: 490px;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.62fr);
  align-items: end;
  gap: 44px;
}
.nss-hero-copy {
  max-width: 790px;
}
.nss-editorial-hero h1 {
  color: #fff;
  font-size: clamp(3.1rem, 6.8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 880px;
}
.nss-editorial-hero .nss-lede {
  color: #e8f3fb;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.55;
  max-width: 720px;
  margin-top: 20px;
}
.nss-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.nss-hero-chips span {
  color: #dcecf8;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.nss-hero-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.nss-hero-panel img {
  width: 100%;
  height: 255px;
  display: block;
  object-fit: cover;
}
.nss-hero-panel-body {
  padding: 18px;
}
.nss-hero-panel-body strong {
  display: block;
  color: var(--nss-ink);
  font-size: 1.02rem;
  line-height: 1.28;
  margin-top: 5px;
}
.nss-homepage .nss-button {
  border-radius: 6px;
}
.nss-homepage .nss-button.blue {
  background: #2f78b7;
}
.nss-homepage .nss-button.secondary {
  border-color: rgba(255, 255, 255, 0.82);
}
.nss-value-strip {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: -30px auto 0;
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(6, 29, 52, 0.12);
  overflow: hidden;
}
.nss-value-strip a {
  min-height: 58px;
}
.nss-start-section {
  padding-top: 72px;
}
.nss-pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.nss-pathway-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 238px;
  padding: 22px;
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(6, 29, 52, 0.06);
  text-decoration: none;
}
.nss-pathway-card.featured {
  background: #062d4a;
  border-color: #062d4a;
  color: #fff;
}
.nss-pathway-card.featured .nss-label,
.nss-pathway-card.featured small,
.nss-pathway-card.featured strong {
  color: #fff;
}
.nss-path-icon,
.nss-tool-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #e8f3fb;
  color: var(--nss-navy);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}
.nss-pathway-card.featured .nss-path-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.nss-pathway-card strong {
  color: var(--nss-ink);
  font-size: 1.08rem;
  line-height: 1.2;
}
.nss-pathway-card small {
  color: var(--nss-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.nss-editorial-split-band {
  background: #fff;
}
.nss-editorial-split {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 0;
  background: #062d4a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(6, 29, 52, 0.13);
}
.nss-image-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
}
.nss-editorial-copy {
  padding: clamp(28px, 5vw, 62px);
  align-self: center;
  color: #e8f3fb;
}
.nss-editorial-copy h2 {
  color: #fff;
}
.nss-editorial-copy p {
  font-size: 1.02rem;
  max-width: 620px;
}
.nss-editorial-copy .nss-text-link {
  color: #fff;
}
.nss-tool-shelf-section {
  background: #f4f7fa;
}
.nss-tool-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.nss-tool-shelf a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(6, 29, 52, 0.06);
  text-decoration: none;
}
.nss-tool-shelf strong,
.nss-app-grid strong,
.nss-resource-preview-row strong,
.nss-brain-preview-grid strong,
.nss-problem-grid strong {
  display: block;
  color: var(--nss-ink);
}
.nss-tool-shelf small,
.nss-resource-preview-row span,
.nss-problem-grid small {
  display: block;
  color: var(--nss-muted);
  line-height: 1.35;
}
.nss-tool-shelf em,
.nss-app-grid em {
  grid-column: 2;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f3fb;
  color: #185f99;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nss-stage-section {
  background: #fff;
}
.nss-stage-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #d9e3ec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.nss-stage-editorial a {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 20px 22px;
  align-items: center;
  min-height: 96px;
  border-bottom: 1px solid #d9e3ec;
  text-decoration: none;
}
.nss-stage-editorial a:nth-child(odd) {
  border-right: 1px solid #d9e3ec;
}
.nss-stage-editorial span {
  color: #2f78b7;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nss-stage-editorial strong {
  color: var(--nss-ink);
  font-size: 1rem;
  line-height: 1.35;
}
.nss-dashboard-section {
  background: #edf3f8;
}
.nss-dashboard-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}
.nss-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.nss-app-grid a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: 9px;
  text-decoration: none;
}
.nss-app-grid span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  background: #062d4a;
  color: #fff;
  border-radius: 9px;
  font-weight: 950;
  font-size: 0.72rem;
}
.nss-dashboard-image img,
.nss-printable-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 22px 46px rgba(6, 29, 52, 0.16);
}
.nss-dashboard-image img {
  min-height: 390px;
}
.nss-printable-section {
  background: #fff;
}
.nss-printable-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 22px;
}
.nss-printable-copy {
  padding: 30px;
  background: #f4f7fa;
  border: 1px solid #d9e3ec;
  border-radius: 12px;
}
.nss-resource-preview-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.nss-resource-preview-row a,
.nss-brain-preview-grid a {
  display: block;
  padding: 12px;
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(6, 29, 52, 0.05);
}
.nss-resource-preview-row img,
.nss-brain-preview-grid img {
  width: 100%;
  height: 142px;
  object-fit: cover;
  display: block;
  border-radius: 7px;
  margin-bottom: 10px;
  border: 1px solid #e2e9f0;
}
.nss-brain-section {
  background: #f4f7fa;
}
.nss-brain-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.nss-brain-preview-grid span {
  display: block;
  color: #2f78b7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 950;
}
.nss-problem-section {
  background: #fff;
}
.nss-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.nss-problem-grid a {
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #d9e3ec;
  border-radius: 10px;
  text-decoration: none;
}
.nss-problem-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #062d4a;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 950;
}
.nss-credibility-section {
  background: #f4f7fa;
}
.nss-credibility-card {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 30px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  background: #062d4a;
  border-radius: 12px;
  color: #dcecf8;
  box-shadow: 0 22px 48px rgba(6, 29, 52, 0.16);
}
.nss-credibility-card h2,
.nss-final-cta h2 {
  color: #fff;
}
.nss-credibility-card .nss-muted {
  color: #c2d5e4;
}
.nss-credibility-card img {
  width: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}
.nss-resource-continuity-section {
  background: #fff;
}
.nss-continuity-details {
  margin-top: 18px;
  background: #f8fafc;
  border: 1px solid #d9e3ec;
  border-radius: 10px;
  padding: 14px 16px;
}
.nss-continuity-details summary {
  cursor: pointer;
  font-weight: 950;
  color: var(--nss-navy);
}
.nss-final-cta {
  background: var(--nss-deep);
  color: #fff;
  text-align: center;
}
.nss-final-cta p {
  max-width: 720px;
  margin: 0 auto;
  color: #dcecf8;
}
.nss-final-cta .nss-hero-actions {
  justify-content: center;
}

@media (max-width: 980px) {
  .nss-editorial-hero {
    min-height: auto;
    padding: 54px 0 46px;
  }
  .nss-editorial-hero .nss-hero-grid,
  .nss-pathway-grid,
  .nss-tool-shelf,
  .nss-dashboard-layout,
  .nss-printable-showcase,
  .nss-credibility-card {
    grid-template-columns: 1fr;
  }
  .nss-editorial-hero h1 {
    font-size: clamp(2.45rem, 10vw, 4.8rem);
    letter-spacing: -0.045em;
  }
  .nss-hero-panel {
    max-width: 620px;
  }
  .nss-editorial-split,
  .nss-resource-preview-row,
  .nss-brain-preview-grid,
  .nss-problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nss-homepage .nss-wrap,
  .nss-value-strip {
    width: min(100% - 32px, 1180px);
  }
  .nss-editorial-hero {
    padding: 34px 0 34px;
  }
  .nss-editorial-hero::before {
    background: linear-gradient(180deg, rgba(4, 40, 66, 0.97) 0%, rgba(4, 40, 66, 0.9) 58%, rgba(4, 40, 66, 0.7) 100%);
  }
  .nss-editorial-hero .nss-hero-grid {
    gap: 24px;
  }
  .nss-editorial-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
    line-height: 1;
  }
  .nss-editorial-hero .nss-lede {
    font-size: 1rem;
  }
  .nss-hero-chips {
    gap: 6px;
  }
  .nss-hero-chips span {
    font-size: 0.66rem;
    padding: 6px 8px;
  }
  .nss-hero-panel img {
    height: 170px;
  }
  .nss-value-strip {
    margin-top: 0;
    border-radius: 0 0 10px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nss-value-strip a {
    min-height: 52px;
    font-size: 0.74rem;
  }
  .nss-homepage .nss-chip,
  .nss-homepage .nss-text-link,
  .nss-homepage .nss-link-list a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .nss-homepage .nss-link-list a {
    width: 100%;
  }
  .nss-start-section {
    padding-top: 42px;
  }
  .nss-pathway-card,
  .nss-tool-shelf a,
  .nss-problem-grid a {
    min-height: auto;
    padding: 18px;
  }
  .nss-tool-shelf a {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .nss-editorial-split,
  .nss-stage-editorial,
  .nss-app-grid,
  .nss-resource-preview-row,
  .nss-brain-preview-grid,
  .nss-problem-grid {
    grid-template-columns: 1fr;
  }
  .nss-image-panel img,
  .nss-dashboard-image img,
  .nss-credibility-card img {
    min-height: 220px;
  }
  .nss-editorial-copy,
  .nss-printable-copy,
  .nss-credibility-card {
    padding: 22px;
  }
  .nss-stage-editorial a,
  .nss-stage-editorial a:nth-child(odd) {
    grid-template-columns: 1fr;
    gap: 6px;
    border-right: 0;
  }
  .nss-resource-preview-row img,
  .nss-brain-preview-grid img {
    height: 170px;
  }
  .nss-final-cta .nss-hero-actions,
  .nss-editorial-hero .nss-hero-actions {
    align-items: stretch;
  }
  .nss-final-cta .nss-button,
  .nss-editorial-hero .nss-button {
    width: 100%;
  }
}
