:root {
  --nx197-navy: #061326;
  --nx197-pearl: #fcf9f3;
  --nx197-white: #ffffff;
  --nx197-teal: #087e91;
  --nx197-gold: #f4b400;
}

/* Premium article links that remain inside their existing content section. */
.nx-article-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 54px);
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 15px;
  border-top: 1px solid rgba(6, 19, 38, 0.14);
}

.nx-article-links__label {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  color: #687386;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nx-article-links a,
.nx-article-inline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(6, 19, 38, 0.1);
  color: var(--nx197-teal);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.42;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.nx-article-links a::after,
.nx-article-inline::after {
  content: "→";
  flex: 0 0 auto;
  color: var(--nx197-gold);
  font-size: 1rem;
  transition: transform 160ms ease;
}

.nx-article-links a:only-of-type {
  grid-column: 1 / -1;
  max-width: 720px;
}

.nx-article-links a:hover,
.nx-article-inline:hover {
  border-color: rgba(8, 126, 145, 0.48);
  color: var(--nx197-navy);
}

.nx-article-links a:hover::after,
.nx-article-inline:hover::after {
  transform: translateX(3px);
}

.nx-article-links a:focus-visible,
.nx-article-inline:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(244, 180, 0, 0.55);
  outline-offset: 3px;
}

.nx-article-inline {
  margin-top: 16px;
}

main section[class*="-dark"] .nx-article-links {
  border-top-color: rgba(255, 255, 255, 0.17);
}

main section[class*="-dark"] .nx-article-links__label {
  color: rgba(255, 255, 255, 0.56);
}

main section[class*="-dark"] .nx-article-links a,
main section[class*="-dark"] .nx-article-inline {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  color: #74dce7;
}

main section[class*="-dark"] .nx-article-links a:hover,
main section[class*="-dark"] .nx-article-inline:hover {
  color: #ffffff;
}

/* Navy / pearl / white surface rotation for primary site pages. */
.v137-editorial-section {
  background: var(--nx197-pearl);
}

.cs96-paper,
.pd97-paper,
.ss98-paper,
.wc94-paper,
.hp93-paper,
.ps91-paper,
.iv92-paper,
.exec89-paper,
.ne108-paper {
  background: var(--nx197-white);
}

.cs96-dark,
.pd97-dark,
.ss98-dark,
.se95-dark,
.wc94-dark,
.hp93-dark,
.ps91-dark,
.iv92-dark,
.exec89-dark,
.ne108-dark {
  background: var(--nx197-navy);
}

.cs96-method,
.pd97-method,
.ss98-method,
.se95-method,
.iv92-method {
  background: var(--nx197-pearl);
}

.cs96-proof,
.pd97-proof,
.ss98-proof,
.exec89-proof {
  background: var(--nx197-white);
}

.cs96-cream,
.pd97-cream,
.ss98-cream,
.wc94-cream,
.hp93-cream,
.ps91-cream,
.iv92-cream,
.exec89-cream,
.ne108-cream {
  background: var(--nx197-pearl);
}

.cs96-related,
.pd97-related,
.ss98-related,
.wc94-related,
.ps91-difference,
.wc94-method,
.hp93-method,
.ne108-teal,
.workshop107-teal {
  background: var(--nx197-white);
}

.cs96-faq-section,
.pd97-faq-section,
.ss98-faq-section,
.wc94-faq-section,
.ps91-faq-section,
.ne108-states,
.workshop107-proof-section,
.cred106-verify,
.inst90-teal {
  background: var(--nx197-pearl);
}

.se95-cream,
.se95-faq-section,
.hp93-faq-section,
.iv92-faq-section,
.workshop107-faq-section,
.cred106-faq-section,
.inst90-faq-section,
.ne108-proof-section {
  background: var(--nx197-white);
}

.se95-related,
.hp93-answer,
.hp93-proof,
.wc94-proof,
.ne108-faq-section {
  background: var(--nx197-pearl);
}

body.exec89-page main > section:nth-of-type(6).exec89-paper,
body.ar99-page main > section:nth-of-type(6).ar99-paper {
  background: var(--nx197-pearl);
}

.exec89-faq-section,
.ar99-faq-section {
  background: var(--nx197-white);
}

.about102-paper,
.ar99-paper,
.inst90-paper,
.workshop107-paper,
.cred106-paper,
.five104-paper,
.im100-paper,
.contact103-paper {
  background: var(--nx197-white);
}

.about102-cream,
.ar99-cream,
.inst90-cream,
.workshop107-cream,
.cred106-cream,
.five104-cream,
.im100-cream,
.contact103-cream {
  background: var(--nx197-pearl);
}

.about102-dark,
.ar99-dark,
.inst90-dark,
.workshop107-dark,
.cred106-dark,
.five104-dark,
.im100-dark {
  background: var(--nx197-navy);
}

.ar99-proof,
.workshop107-teal,
.im100-section.v137-gallery-section,
.contact103-paths {
  background: var(--nx197-white);
}

.five104-final,
.im100-video-track,
.im100-review-track {
  background: var(--nx197-pearl);
}

@media (min-width:768px) {
  .about102-final {
    background: var(--nx197-pearl);
  }
}

.courses87-core,
.courses87-method,
.home80-pathways,
.home80-institutions,
.contact103-channels {
  background: var(--nx197-white);
}

.courses87-institutions,
.courses87-process,
.learner-brands-section,
.home80-method,
.home80-results,
.fees101-groups,
.fees101-details,
.fees101-final {
  background: var(--nx197-pearl);
}

.courses87-professional,
.courses87-final,
.home80-professional,
.home80-practice,
.fees101-value {
  background: var(--nx197-navy);
}

.fees101-personal,
.fees101-faq,
.contact103-paths {
  background: var(--nx197-white);
}

/* Insight articles follow the same intentional surface rhythm. */
body.insight-page main > section:nth-of-type(2),
body.insight-page main > section:nth-of-type(n + 6):nth-of-type(odd),
.ins105-feature,
.ins105-final {
  background: var(--nx197-pearl);
}

body.insight-page main > section:nth-of-type(3),
body.insight-page main > section:nth-of-type(n + 6):nth-of-type(even),
.ins105-library {
  background: var(--nx197-white);
}

body.insight-page main > section:nth-of-type(4) {
  background: var(--nx197-pearl);
}

body.insight-page main > section:nth-of-type(5),
body.insight-page main > section:last-of-type {
  background: var(--nx197-navy);
}

@media (max-width: 767px) {
  .nx-article-links {
    grid-template-columns: 1fr;
    margin-top: 17px;
    padding-top: 10px;
    column-gap: 0;
  }

  .nx-article-links__label {
    margin-bottom: 2px;
    font-size: 0.64rem;
  }

  .nx-article-links a,
  .nx-article-inline {
    min-height: 0;
    padding: 10px 0;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .nx-article-inline {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-article-links a,
  .nx-article-inline,
  .nx-article-links a::after,
  .nx-article-inline::after {
    transition: none;
  }
}
