body.niw-hub {
  --bg: #e9f1ec;
  --surface: #fbfdfb;
  --ink: #17211f;
  --muted: #596461;
  --line: #ccdcd4;
  --brand: #0f6c5a;
  --brand-dark: #173c33;
  --shadow: 0 18px 46px rgba(23, 60, 51, 0.07);
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 255, 255, 0.8), transparent 32rem),
    linear-gradient(180deg, #e8f0eb 0%, #eef5f1 48%, #e7f0eb 100%);
  color: var(--ink);
  letter-spacing: 0;
}

.niw-hub .site-header {
  background: rgba(244, 249, 246, 0.9);
  border-bottom-color: rgba(173, 196, 184, 0.72);
  box-shadow: 0 1px 0 rgba(23, 60, 51, 0.03);
}

.niw-hub .main {
  width: min(1180px, calc(100% - 48px));
}

.niw-hub [id] {
  scroll-margin-top: 92px;
}

.niw-hub .topic-hero {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: clamp(44px, 6vw, 76px);
  align-items: center;
  padding: clamp(76px, 8vw, 104px) 0 clamp(66px, 7vw, 88px);
}

.niw-hub .topic-hero > div {
  max-width: 760px;
}

.niw-hub .eyebrow {
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.niw-hub h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(38px, 3.8vw, 50px);
  font-weight: 760;
  line-height: 1.36;
  letter-spacing: -0.018em;
}

.niw-hub .hero-title-line {
  display: block;
  white-space: nowrap;
}

.niw-hub h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 760;
  line-height: 1.32;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.niw-hub h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 740;
  line-height: 1.5;
  text-wrap: balance;
}

.niw-hub p,
.niw-hub li {
  line-height: 1.82;
}

.niw-hub .lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.85;
}

.niw-hub .section-lead {
  margin-bottom: 0;
}

.niw-hub .actions {
  gap: 12px;
  margin-top: 32px;
}

.niw-hub .button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 108, 90, 0.12);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.niw-hub .button:hover {
  transform: translateY(-1px);
}

.niw-hub .button.secondary {
  background: rgba(251, 253, 251, 0.72);
  border-color: #bfd2c8;
  box-shadow: none;
}

.niw-hub .card {
  padding: clamp(28px, 3vw, 34px);
  border-color: rgba(185, 207, 196, 0.86);
  border-radius: 20px;
  background: rgba(251, 253, 251, 0.94);
  box-shadow: var(--shadow);
}

.niw-hub .card .muted {
  margin-bottom: 0;
  line-height: 1.85;
}

.niw-hub .tag {
  margin-bottom: 18px;
  padding: 5px 11px;
  background: #deeee6;
  color: #185b4d;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.niw-hub .hub-card {
  align-self: center;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 3.6vw, 42px);
  border-color: #b8d0c4;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(252, 254, 252, 0.98), rgba(237, 246, 241, 0.98));
  box-shadow: 0 24px 64px rgba(23, 60, 51, 0.1);
}

.niw-hub .hub-card h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 2.3vw, 29px);
  line-height: 1.4;
}

.niw-hub .hub-card .muted {
  margin-bottom: 26px;
}

.niw-hub .hub-card .button {
  align-self: flex-end;
  min-width: 214px;
}

.niw-hub .section {
  padding: clamp(60px, 7vw, 84px) 0;
}

.niw-hub .section > .grid {
  margin-top: 32px;
}

.niw-hub .grid,
.niw-hub .logic-grid {
  gap: clamp(22px, 2.6vw, 30px);
}

.niw-hub #niw-basics .card,
.niw-hub #niw-entry .card,
.niw-hub .knowledge-band .card {
  height: 100%;
}

.niw-hub #niw-entry .card,
.niw-hub .knowledge-band .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.niw-hub #niw-entry .card > a:last-child {
  margin-top: 24px;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.niw-hub .logic-grid .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 30px 32px;
}

.niw-hub .logic-grid .step {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin: 0 0 22px;
  padding: 0;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #b9d2c6;
  border-radius: 12px;
  background: #deeee6;
  color: #185b4d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.06em;
}

.niw-hub .logic-grid h3 {
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.52;
}

.niw-hub .knowledge-band {
  margin: 30px 0;
  padding: clamp(40px, 5vw, 60px);
  border: 1px solid rgba(185, 207, 196, 0.82);
  border-radius: 28px;
  background: rgba(248, 252, 249, 0.62);
  box-shadow: 0 16px 48px rgba(23, 60, 51, 0.045);
}

.niw-hub .knowledge-band .actions {
  margin-top: 34px;
}

.niw-hub .split-section {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

.niw-hub .checklist-card {
  padding: clamp(30px, 3.3vw, 38px);
  background: rgba(251, 253, 251, 0.88);
}

.niw-hub .clean-list {
  gap: 14px;
  margin-top: 20px;
}

.niw-hub .clean-list li {
  padding-left: 20px;
}

.niw-hub .clean-list li::before {
  top: 13px;
}

.niw-hub .final-panel {
  margin: 34px 0 clamp(64px, 8vw, 96px);
  padding: clamp(38px, 5vw, 58px);
  border-color: #b8d0c4;
  border-radius: 28px;
  background: linear-gradient(135deg, #dcebe3, #edf5f0);
  box-shadow: 0 20px 56px rgba(23, 60, 51, 0.07);
}

.niw-hub .final-panel h2 {
  max-width: 760px;
}

.niw-hub .final-panel .section-lead {
  max-width: none;
  text-align: center;
}

.niw-hub .final-panel .actions {
  justify-content: center;
}

.niw-hub .resume-banner {
  margin-top: 28px;
  padding: 22px 24px;
  border-color: #b8d0c4;
  border-radius: 18px;
  background: rgba(247, 252, 249, 0.94);
}

.niw-hub .footer {
  border-top-color: rgba(173, 196, 184, 0.78);
  background: rgba(225, 237, 230, 0.62);
}

@media (max-width: 900px) {
  .niw-hub .topic-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .niw-hub .topic-hero > div {
    max-width: 820px;
  }

  .niw-hub .hub-card {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .niw-hub .main {
    width: min(100% - 32px, 680px);
  }

  .niw-hub [id] {
    scroll-margin-top: 132px;
  }

  .niw-hub .topic-hero {
    padding: 54px 0 44px;
  }

  .niw-hub h1 {
    font-size: clamp(31px, 7vw, 40px);
    line-height: 1.38;
  }

  .niw-hub h2 {
    font-size: clamp(27px, 7vw, 34px);
  }

  .niw-hub .section {
    padding: 54px 0;
  }

  .niw-hub .grid,
  .niw-hub .logic-grid {
    gap: 20px;
  }

  .niw-hub .hub-card .button {
    align-self: stretch;
  }

  .niw-hub .knowledge-band {
    margin: 18px 0;
    padding: 34px 26px;
  }

  .niw-hub .split-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .niw-hub .split-section > * {
    width: 100%;
    min-width: 0;
  }

  .niw-hub .final-panel {
    margin: 24px 0 58px;
    padding: 34px 26px;
  }
}

@media (max-width: 520px) {
  .niw-hub h1 {
    font-size: clamp(25px, 7.2vw, 31px);
    line-height: 1.4;
  }

  .niw-hub h2 {
    font-size: 27px;
  }

  .niw-hub h3,
  .niw-hub .logic-grid h3 {
    font-size: 19px;
  }

  .niw-hub .lead {
    font-size: 17px;
  }

  .niw-hub .card,
  .niw-hub .hub-card,
  .niw-hub .logic-grid .card,
  .niw-hub .checklist-card {
    padding: 25px;
  }

  .niw-hub .logic-grid .step {
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: 12px;
  }

  .niw-hub .topic-hero > div > .actions .button,
  .niw-hub .final-panel .actions .button {
    width: 100%;
  }

  .niw-hub .hub-card .button {
    align-self: flex-start;
    width: calc(100% - 30px);
    min-width: 0;
  }
}
