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

body.ndm-modern-shell {
  --ndm-blue: #082a4d;
  --ndm-blue-deep: #061728;
  --ndm-blue-bright: #1f65a8;
  --ndm-red: #d21f32;
  --ndm-ink: #111827;
  --ndm-muted: #697586;
  --ndm-line: #dbe3ee;
  --ndm-bg: #eef3f9;
  --ndm-card: #ffffff;
  --ndm-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --ndm-soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  background: var(--ndm-bg);
  color: var(--ndm-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.ndm-modern-shell img {
  max-width: 100%;
}

body.ndm-modern-shell a {
  color: inherit;
  text-decoration: none;
}

body.ndm-modern-shell a:hover {
  color: var(--ndm-blue-bright);
}

body.ndm-modern-shell .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

body.admin-bar.ndm-modern-shell .ndm-site-header {
  top: 32px;
}

.ndm-site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 227, 238, 0.9);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
}

.ndm-header-top {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 90px;
  padding: 12px 24px;
}

.ndm-brand {
  display: inline-flex;
  grid-column: 2;
  justify-self: center;
}

.ndm-brand img {
  display: block;
  height: auto;
  max-height: 58px;
  width: min(390px, 56vw);
}

.ndm-header-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  grid-column: 3;
  justify-self: end;
}

.ndm-search {
  align-items: center;
  background: #f5f8fc;
  border: 1px solid var(--ndm-line);
  border-radius: 999px;
  display: flex;
  height: 44px;
  padding: 0 5px 0 16px;
}

.ndm-search input {
  background: transparent;
  border: 0;
  color: var(--ndm-ink);
  font-size: 14px;
  outline: 0;
  width: 150px;
}

.ndm-search button,
.ndm-menu-toggle {
  align-items: center;
  background: var(--ndm-blue);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.ndm-search button span {
  font-size: 21px;
  line-height: 1;
  transform: translateY(-1px);
}

.ndm-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.ndm-menu-toggle span:not(.screen-reader-text) {
  background: currentColor;
  border-radius: 99px;
  display: block;
  height: 2px;
  width: 15px;
}

.ndm-primary-nav {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 24px 12px;
}

.ndm-primary-nav a {
  border-radius: 999px;
  color: #162033;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  padding: 12px 15px;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ndm-primary-nav a:hover {
  background: #eaf1f8;
  color: var(--ndm-blue);
  transform: translateY(-1px);
}

.ndm-main {
  margin: 0 auto;
  max-width: 1440px;
  padding-bottom: 72px;
}

.ndm-hero {
  background:
    radial-gradient(circle at 20% 10%, rgba(31, 101, 168, 0.38), transparent 34%),
    linear-gradient(135deg, #061728 0%, #082a4d 58%, #0b3766 100%);
  color: #ffffff;
  display: grid;
  gap: clamp(22px, 3vw, 38px);
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.9fr) minmax(270px, 0.48fr);
  margin: 0 0 36px;
  min-height: 560px;
  padding: clamp(30px, 4.4vw, 64px);
}

.ndm-hero-copy {
  align-self: center;
  max-width: 620px;
}

.ndm-kicker {
  align-items: center;
  background: #f3f6fa;
  border: 1px solid rgba(8, 42, 77, 0.12);
  border-radius: 999px;
  color: var(--ndm-blue);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 7px 11px;
  text-transform: uppercase;
}

.ndm-kicker--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.ndm-modern-shell .ndm-hero h1,
body.ndm-modern-shell .ndm-article-hero h1 {
  color: inherit;
  font-size: clamp(34px, 3.8vw, 58px);
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.03;
  margin: 18px 0 18px;
  text-wrap: balance;
}

body.ndm-modern-shell .ndm-hero h1,
body.ndm-modern-shell .ndm-hero h1 a,
body.ndm-modern-shell .ndm-article-hero h1 {
  color: #ffffff !important;
}

body.ndm-modern-shell .ndm-hero p,
body.ndm-modern-shell .ndm-article-copy p,
body.ndm-modern-shell .ndm-archive-hero p,
body.ndm-modern-shell .ndm-archive-hero div {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.62;
  margin: 0;
  max-width: 620px;
}

.ndm-meta-row {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 750;
  gap: 10px;
  margin-top: 22px;
  text-transform: uppercase;
}

.ndm-meta-row span {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.ndm-meta-row span + span::before {
  background: var(--ndm-red);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 6px;
  width: 6px;
}

.ndm-hero-media,
.ndm-article-media {
  align-self: stretch;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  display: block;
  min-height: 380px;
  overflow: hidden;
}

.ndm-img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ndm-img--fallback {
  background: #d7dee8;
  object-fit: cover;
}

.ndm-hero-rail {
  align-self: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.ndm-rail-label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ndm-headline-link {
  display: grid;
  gap: 13px;
  grid-template-columns: 92px minmax(0, 1fr);
}

.ndm-hero-rail .ndm-headline-link {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
}

.ndm-headline-thumb {
  aspect-ratio: 1.15 / 1;
  border-radius: 14px;
  display: block;
  overflow: hidden;
}

.ndm-headline-link h3 {
  color: inherit;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.23;
  margin: 8px 0 0;
}

.ndm-hero-rail .ndm-headline-link h3,
.ndm-hero-rail .ndm-headline-link .ndm-kicker {
  color: #ffffff;
}

.ndm-hero-rail .ndm-headline-link .ndm-kicker {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.ndm-ticker {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--ndm-line);
  border-radius: 18px;
  box-shadow: var(--ndm-soft-shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0 auto 42px;
  max-width: 1180px;
  padding: 14px 18px;
}

.ndm-ticker strong {
  background: var(--ndm-red);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.ndm-ticker div {
  display: flex;
  gap: 22px;
  overflow: auto;
  white-space: nowrap;
}

.ndm-ticker a {
  color: #22304a;
  font-size: 14px;
  font-weight: 750;
}

.ndm-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin: 0 auto;
  max-width: 1180px;
}

.ndm-content-stack,
.ndm-sidebar,
.ndm-topic-grid,
.ndm-read-more,
.ndm-archive-main {
  min-width: 0;
}

.ndm-section-head {
  margin-bottom: 22px;
}

.ndm-section-head span,
.ndm-archive-hero span {
  color: var(--ndm-red);
  display: block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.ndm-section-head h2,
.ndm-archive-hero h1 {
  color: var(--ndm-ink);
  font-size: clamp(28px, 2.55vw, 42px);
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.ndm-section-head--small h2 {
  font-size: 24px;
}

.ndm-section-head--row {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.ndm-section-head--row > a {
  border: 1px solid var(--ndm-line);
  border-radius: 999px;
  color: var(--ndm-blue);
  font-size: 13px;
  font-weight: 850;
  padding: 9px 13px;
}

.ndm-card-grid {
  display: grid;
  gap: 20px;
}

.ndm-card-grid--latest {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ndm-card-grid--archive,
.ndm-card-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.ndm-card {
  background: var(--ndm-card);
  border: 1px solid var(--ndm-line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.ndm-card:hover {
  border-color: rgba(8, 42, 77, 0.22);
  box-shadow: var(--ndm-shadow);
  transform: translateY(-4px);
}

.ndm-card-media {
  aspect-ratio: 16 / 9.5;
  background: #dce4ef;
  display: block;
  overflow: hidden;
}

.ndm-card-media img,
.ndm-headline-thumb img,
.ndm-topic-list img {
  transition: transform 240ms ease, filter 240ms ease;
}

.ndm-card:hover .ndm-card-media img,
.ndm-headline-link:hover .ndm-headline-thumb img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.035);
}

.ndm-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.ndm-card h3 {
  color: var(--ndm-ink);
  font-size: clamp(18px, 1.25vw, 22px);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 12px 0 0;
}

.ndm-card--feature h3 {
  font-size: clamp(22px, 1.7vw, 28px);
}

.ndm-card p {
  color: var(--ndm-muted);
  font-size: 15px;
  line-height: 1.62;
  margin: 14px 0 0;
}

.ndm-side-panel {
  background: #ffffff;
  border: 1px solid var(--ndm-line);
  border-radius: 22px;
  box-shadow: var(--ndm-soft-shadow);
  display: grid;
  gap: 18px;
  padding: 22px;
  position: sticky;
  top: 132px;
}

body.admin-bar.ndm-modern-shell .ndm-side-panel {
  top: 164px;
}

.ndm-side-panel .ndm-headline-link {
  border-top: 1px solid var(--ndm-line);
  padding-top: 16px;
}

.ndm-side-panel .ndm-headline-link:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.ndm-topic-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 56px auto 0;
  max-width: 1180px;
}

.ndm-topic {
  background: #ffffff;
  border: 1px solid var(--ndm-line);
  border-radius: 22px;
  box-shadow: var(--ndm-soft-shadow);
  padding: 22px;
}

.ndm-topic-list {
  display: grid;
  gap: 18px;
}

.ndm-site-footer {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--ndm-line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 40px;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
}

.ndm-site-footer img {
  display: block;
  max-width: 220px;
}

.ndm-site-footer p {
  color: var(--ndm-muted);
  margin: 10px 0 0;
}

.ndm-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ndm-site-footer nav a {
  color: var(--ndm-blue);
  font-size: 14px;
  font-weight: 800;
}

.ndm-single-main {
  max-width: none;
}

.ndm-article-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(31, 101, 168, 0.34), transparent 30%),
    linear-gradient(135deg, #061728 0%, #082a4d 100%);
  color: #ffffff;
  display: grid;
  gap: clamp(24px, 3.5vw, 46px);
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 0.92fr);
  padding: clamp(30px, 4.4vw, 64px) max(24px, calc((100vw - 1180px) / 2));
}

.ndm-article-copy {
  align-self: center;
}

.ndm-article-hero h1 {
  font-size: clamp(36px, 3.7vw, 58px);
}

.ndm-article-media {
  min-height: 360px;
}

.ndm-article-layout {
  display: grid;
  gap: 30px;
  grid-template-columns: 58px minmax(0, 760px) 330px;
  margin: 42px auto 0;
  max-width: 1180px;
  padding: 0 24px;
}

.ndm-share-rail {
  align-self: start;
  display: grid;
  gap: 10px;
  position: sticky;
  top: 132px;
}

.ndm-share-rail a {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--ndm-line);
  border-radius: 50%;
  color: var(--ndm-blue);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  text-transform: uppercase;
  width: 42px;
}

.ndm-article-body {
  background: #ffffff;
  border: 1px solid var(--ndm-line);
  border-radius: 24px;
  box-shadow: var(--ndm-soft-shadow);
  color: #202938;
  font-size: 18px;
  line-height: 1.78;
  min-height: 320px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
}

.ndm-article-body > *:first-child {
  margin-top: 0;
}

.ndm-article-body p {
  margin: 0 0 1.35em;
}

.ndm-article-body h2,
.ndm-article-body h3 {
  color: var(--ndm-ink);
  font-weight: 900;
  line-height: 1.16;
  margin: 1.7em 0 0.65em;
}

.ndm-article-body img {
  border-radius: 18px;
  height: auto;
}

.ndm-read-more {
  margin: 56px auto 0;
  max-width: 1180px;
  padding: 0 24px;
}

.ndm-archive-main {
  max-width: 1180px;
  padding: 42px 24px 72px;
}

.ndm-archive-hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(31, 101, 168, 0.28), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #eaf1f8 100%);
  border: 1px solid var(--ndm-line);
  border-radius: 28px;
  margin-bottom: 34px;
  padding: clamp(28px, 4vw, 52px);
}

.ndm-archive-hero p,
.ndm-archive-hero div {
  color: var(--ndm-muted);
  margin-top: 16px;
}

body.ndm-modern-shell .ndm-archive-hero p,
body.ndm-modern-shell .ndm-archive-hero div {
  color: var(--ndm-muted) !important;
}

.ndm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 36px;
}

.ndm-pagination .page-numbers {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--ndm-line);
  border-radius: 999px;
  color: var(--ndm-blue);
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  min-height: 40px;
  padding: 0 14px;
}

.ndm-pagination .current {
  background: var(--ndm-blue);
  color: #ffffff;
}

.ndm-empty-state {
  background: #ffffff;
  border: 1px solid var(--ndm-line);
  border-radius: 24px;
  padding: 42px;
  text-align: center;
}

.ndm-empty-state h2 {
  margin: 0 0 10px;
}

.ndm-empty-state a {
  color: var(--ndm-blue);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .ndm-hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  }

  .ndm-hero-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ndm-rail-label {
    grid-column: 1 / -1;
  }

  .ndm-layout,
  .ndm-topic-grid {
    margin-left: 24px;
    margin-right: 24px;
  }

  .ndm-card-grid--archive,
  .ndm-card-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  body.admin-bar.ndm-modern-shell .ndm-site-header {
    top: 46px;
  }

  .ndm-header-top {
    grid-template-columns: auto 1fr auto;
    min-height: 66px;
    padding: 8px 16px;
  }

  .ndm-brand {
    grid-column: 1;
    justify-self: start;
  }

  .ndm-brand img {
    max-height: 42px;
    width: min(300px, 62vw);
  }

  .ndm-header-actions {
    grid-column: 3;
  }

  .ndm-search input {
    display: none;
  }

  .ndm-search {
    background: transparent;
    border: 0;
    height: 38px;
    padding: 0;
  }

  .ndm-search button,
  .ndm-menu-toggle {
    height: 38px;
    width: 38px;
  }

  .ndm-menu-toggle {
    display: inline-flex;
  }

  .ndm-primary-nav {
    display: none;
    flex-direction: column;
    padding: 8px 16px 18px;
  }

  .ndm-site-header.is-open .ndm-primary-nav {
    display: flex;
  }

  .ndm-primary-nav a {
    background: #f4f8fc;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .ndm-hero,
  .ndm-article-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 18px 32px;
  }

  .ndm-hero h1,
  .ndm-article-hero h1 {
    font-size: clamp(30px, 7.4vw, 40px);
    line-height: 1.08;
  }

  .ndm-hero-media,
  .ndm-article-media {
    min-height: 260px;
  }

  .ndm-hero-rail {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .ndm-ticker {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }

  .ndm-layout {
    grid-template-columns: 1fr;
  }

  .ndm-sidebar {
    order: 2;
  }

  .ndm-side-panel {
    position: static;
  }

  .ndm-topic-grid {
    grid-template-columns: 1fr;
  }

  .ndm-article-layout {
    grid-template-columns: 1fr;
    margin-top: 28px;
    padding: 0 18px;
  }

  .ndm-share-rail {
    display: flex;
    position: static;
  }

  .ndm-sidebar--single {
    display: none;
  }
}

@media (max-width: 680px) {
  .ndm-main {
    padding-bottom: 44px;
  }

  .ndm-hero {
    margin-bottom: 30px;
  }

  .ndm-hero p,
  .ndm-article-copy p {
    font-size: 16px;
  }

  .ndm-hero-media,
  .ndm-article-media {
    border-radius: 18px;
    min-height: 245px;
  }

  .ndm-layout,
  .ndm-topic-grid {
    margin-left: 18px;
    margin-right: 18px;
  }

  .ndm-card-grid--latest,
  .ndm-card-grid--archive,
  .ndm-card-grid--related {
    grid-template-columns: 1fr;
  }

  .ndm-section-head h2,
  .ndm-archive-hero h1 {
    font-size: 30px;
  }

  .ndm-card {
    border-radius: 18px;
  }

  .ndm-card-body {
    padding: 18px;
  }

  .ndm-card h3,
  .ndm-card--feature h3 {
    font-size: 21px;
    line-height: 1.2;
  }

  .ndm-headline-link {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .ndm-article-body {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    font-size: 17px;
    margin-left: -18px;
    margin-right: -18px;
    padding: 28px 18px;
  }

  .ndm-read-more {
    padding: 0 18px;
  }

  .ndm-archive-main {
    padding: 28px 18px 52px;
  }

  .ndm-archive-hero {
    border-radius: 20px;
    padding: 28px 22px;
  }

  .ndm-site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 18px;
  }
}
