/* nadchemical.com — editorial stylesheet (Red Hat Display 400 + Manrope 400/500) */

:root {
  --ndc-white: #FFFFFF;
  --ndc-rose-pale: #F7E3DF;
  --ndc-stone: #F2EFEC;
  --ndc-ink: #221C1C;
  --ndc-muted: #524646;
  --ndc-rosewood: #8E3B46;
  --ndc-rosewood-deep: #732C36;
  --ndc-line: rgba(34, 28, 28, 0.11);
  --ndc-line-soft: rgba(34, 28, 28, 0.07);
  --ndc-radius-lg: 28px;
  --ndc-radius-md: 20px;
  --ndc-radius-sm: 14px;
  --ndc-display: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ndc-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ndc-max: 1152px;
  --ndc-gutter: clamp(20px, 4vw, 46px);
}

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

html {
  background: var(--ndc-white);
  color: var(--ndc-ink);
  font-family: var(--ndc-body);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ndc-white);
  color: var(--ndc-ink);
  font-family: var(--ndc-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--ndc-rosewood);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--ndc-rosewood-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 2.5px solid var(--ndc-rosewood);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--ndc-display);
  font-weight: 400;
  color: var(--ndc-ink);
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 500;
  color: var(--ndc-ink);
}

.ndc-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ndc-rosewood);
  color: var(--ndc-white);
  padding: 12px 18px;
  font-weight: 500;
  z-index: 100;
}

.ndc-skip:focus {
  left: 16px;
  top: 16px;
  border-radius: 999px;
}

.ndc-wrap {
  width: min(var(--ndc-max), calc(100% - var(--ndc-gutter) * 2));
  margin-inline: auto;
}

/* Inset pale-rose source notice the width of the reading grid */
.ndc-notice-band {
  padding-top: 12px;
  background: var(--ndc-white);
}

.ndc-notice {
  background: var(--ndc-rose-pale);
  color: var(--ndc-ink);
  border-radius: var(--ndc-radius-sm);
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.42;
  text-align: center;
}

.ndc-notice-copy a {
  margin-left: 6px;
  white-space: nowrap;
}

.ndc-notice a {
  color: var(--ndc-rosewood);
  font-weight: 500;
  text-decoration: underline;
}

/* Offset header: identity row + separate white navigation row */
.ndc-header {
  background: var(--ndc-white);
  padding-top: 16px;
}

.ndc-identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-bottom: 14px;
}

.ndc-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ndc-ink);
  flex-shrink: 0;
}

.ndc-brand-lockup:hover {
  color: var(--ndc-ink);
}

.ndc-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
}

.ndc-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--ndc-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ndc-ink);
}

.ndc-wordmark-plus {
  font-family: var(--ndc-body);
  font-weight: 500;
  color: var(--ndc-rosewood);
  font-size: 1.55rem;
  transform: translateY(-0.1em);
}

.ndc-header-line {
  margin: 0;
  font-family: var(--ndc-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ndc-muted);
}

.ndc-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ndc-line);
  background: var(--ndc-white);
  color: var(--ndc-ink);
  font-family: var(--ndc-body);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.ndc-menu-mark {
  width: 16px;
  height: 10px;
  border-block: 1.5px solid currentColor;
}

.ndc-nav-band {
  background: var(--ndc-white);
  border-top: 1px solid var(--ndc-line-soft);
  border-bottom: 1px solid var(--ndc-line-soft);
}

.ndc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding-block: 10px;
}

.ndc-nav a {
  text-decoration: none;
  color: var(--ndc-ink);
  font-weight: 500;
  font-size: 0.96875rem;
  padding: 8px 14px;
  border-radius: 999px;
  line-height: 1.25;
}

.ndc-nav a:hover {
  background: var(--ndc-rose-pale);
  color: var(--ndc-rosewood);
}

.ndc-nav a[aria-current="page"] {
  color: var(--ndc-rosewood);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.ndc-pill,
.ndc-text-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  line-height: 1.3;
}

.ndc-pill {
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ndc-rosewood);
  color: var(--ndc-white);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.ndc-pill:hover {
  background: var(--ndc-rosewood-deep);
  color: var(--ndc-white);
}

.ndc-arrow {
  display: inline-block;
  flex: 0 0 auto;
  line-height: 1;
}

.ndc-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: end;
  padding-block: clamp(34px, 3.5vw, 52px) 28px;
}

.ndc-home-hero h1 {
  max-width: 20ch;
  margin: 0 0 16px;
  font-size: clamp(2.45rem, 4.6vw, 3.875rem);
  letter-spacing: -0.018em;
  line-height: 1.035;
  text-wrap: balance;
}

.ndc-hero-lead {
  max-width: 57ch;
  color: var(--ndc-muted);
}

.ndc-article-links {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ndc-article-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 45px;
  padding-block: 9px;
  border-bottom: 1px solid var(--ndc-line);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  text-decoration: none;
}

.ndc-article-links a:hover {
  text-decoration: underline;
}

.ndc-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.92fr);
  grid-template-areas: "large large tall" "small-left small-right tall";
  gap: 10px;
  margin-bottom: clamp(42px, 7vw, 90px);
}

.ndc-bento-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--ndc-radius-lg);
  background: var(--ndc-stone);
  display: flex;
  flex-direction: column;
}

.ndc-bento-card.is-large { grid-area: large; }
.ndc-bento-card.is-tall { grid-area: tall; background: var(--ndc-rose-pale); }
.ndc-bento-card.is-small-left { grid-area: small-left; background: #F5EBE9; }
.ndc-bento-card.is-small-right { grid-area: small-right; }

.ndc-bento-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
}

.ndc-bento-card.is-large .ndc-bento-media {
  aspect-ratio: 1.68;
}

.ndc-bento-card.is-tall .ndc-bento-media {
  flex: 1;
  aspect-ratio: auto;
  min-height: 340px;
}

.ndc-bento-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ndc-bento-card.is-large img { object-position: 63% center; }
.ndc-bento-card.is-tall img { object-position: 50% 62%; }
.ndc-bento-card.is-small-right img { object-position: center 54%; }

.ndc-bento-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: clamp(16px, 2vw, 26px);
}

.ndc-bento-card.is-tall .ndc-bento-copy {
  flex: 0 0 auto;
}

.ndc-bento-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.16;
  text-wrap: balance;
}

.ndc-bento-card.is-large h2,
.ndc-bento-card.is-tall h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
}

@media (min-width: 761px) {
  .ndc-bento-card.is-tall img {
    inset: auto 0 0;
    height: calc(100% + clamp(96px, 13vw, 190px));
    object-position: 55% center;
  }

  .ndc-bento-card.is-tall h2 {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    width: fit-content;
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ndc-white);
  }
}

.ndc-bento-copy p {
  margin-bottom: 10px;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ndc-muted);
}

.ndc-bento-copy .ndc-text-cta {
  margin-top: auto;
  font-size: 0.96875rem;
}

.ndc-wide-band-img {
  width: 100%;
  height: clamp(240px, 36vw, 495px);
  object-fit: cover;
  object-position: 50% 55%;
}

.ndc-wide-band-inner,
.ndc-warm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 90px);
  padding-block: clamp(34px, 5vw, 70px);
  align-items: start;
}

.ndc-wide-band-inner h2,
.ndc-warm-lead h2 {
  margin-bottom: 0;
  max-width: 19ch;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.ndc-wide-band-inner p,
.ndc-warm-lead p {
  margin-bottom: 12px;
  color: var(--ndc-muted);
}

.ndc-warm-band {
  background: var(--ndc-stone);
}

.ndc-warm-lead h2 {
  margin-bottom: 16px;
}

.ndc-warm-grid .ndc-article-links {
  align-self: center;
}

/* INNER PAGES: Split Photo Hero + Type-Led Editorial Hero */
.ndc-inner-hero {
  padding-block: clamp(1.35rem, 2.5vw, 2.2rem);
  background: var(--ndc-white);
}

.ndc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--ndc-muted);
  margin-bottom: 18px;
}

.ndc-breadcrumb a {
  color: var(--ndc-rosewood);
  font-weight: 500;
  text-decoration: none;
}

.ndc-breadcrumb a:hover {
  text-decoration: underline;
}

.ndc-split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}

.ndc-split-copy h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  line-height: 1.09;
  letter-spacing: -0.018em;
  margin-bottom: 18px;
}

@media (min-width: 761px) {
  .ndc-research-heading {
    text-wrap: balance;
  }
}

.ndc-page-lead {
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--ndc-muted);
  margin-bottom: 26px;
  max-width: 54ch;
}

.ndc-key-list {
  margin: 20px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 1rem;
  line-height: 1.5;
}

.ndc-key-list li::marker {
  color: var(--ndc-rosewood);
}

.ndc-split-figure {
  margin: 0;
  position: relative;
}

.ndc-split-figure img {
  width: 100%;
  aspect-ratio: 6 / 6.2;
  max-height: 540px;
  object-fit: cover;
  border-radius: var(--ndc-radius-lg);
}

.ndc-split-figure figcaption,
.ndc-section-photo figcaption {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ndc-muted);
}

.ndc-section-photo {
  margin: 28px 0 0;
}

.ndc-section-photo img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: var(--ndc-radius-lg);
}

/* Type-led editorial hero for FAQ, References, About, Contact */
.ndc-type-hero {
  background: var(--ndc-stone);
  border-radius: var(--ndc-radius-lg);
  padding: clamp(28px, 4.2vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.ndc-type-hero h1 {
  font-size: clamp(2.1rem, 3.7vw, 3.25rem);
  line-height: 1.09;
  letter-spacing: -0.018em;
  margin-bottom: 16px;
}

.ndc-type-hero > div:only-child {
  grid-column: 1 / -1;
}

.ndc-type-hero .ndc-page-lead {
  margin-bottom: 0;
}

/* INNER PAGE READING LAYOUT: Sticky Left TOC + Main Prose Column */
.ndc-article-shell {
  padding-block: clamp(1.5rem, 3.5vw, 3rem) clamp(3.5rem, 6vw, 5.5rem);
}

.ndc-reading-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}

.ndc-toc {
  position: sticky;
  top: 28px;
  background: var(--ndc-stone);
  border-radius: 20px;
  padding: 20px;
}

.ndc-toc-title {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ndc-ink);
  margin: 0 0 12px;
}

.ndc-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.ndc-toc-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.38;
  color: var(--ndc-muted);
  border-left: 3px solid transparent;
}

.ndc-toc-list a:hover,
.ndc-toc-list a.is-active {
  background: var(--ndc-white);
  color: var(--ndc-rosewood);
  border-left-color: var(--ndc-rosewood);
}

.ndc-prose-col {
  min-width: 0;
  max-width: 780px;
}

.ndc-article-section {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.ndc-article-section:last-child {
  margin-bottom: 0;
}

.ndc-article-section h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.014em;
  margin-bottom: 16px;
}

.ndc-article-section p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ndc-ink);
}

.ndc-article-section > p,
.ndc-prose-col > p,
.ndc-article-list,
.ndc-clinical-note {
  max-width: 66ch;
}

/* RHYTHM BREAKERS INSIDE INNER PAGES */
.ndc-visual-panel {
  margin: 28px 0 8px;
  background: var(--ndc-stone);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 30px);
}

.ndc-article-list {
  padding-left: 24px;
  display: grid;
  gap: 10px;
}

.ndc-visual-title {
  font-family: var(--ndc-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.22;
  color: var(--ndc-ink);
  margin: 0 0 8px;
}

.ndc-visual-sub {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ndc-muted);
  margin: 0 0 20px;
}

/* Bar charts */
.ndc-bars {
  display: grid;
  gap: 14px;
}

.ndc-bar-row {
  background: var(--ndc-white);
  border-radius: 14px;
  padding: 14px 16px;
}

.ndc-bar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.ndc-bar-label {
  font-weight: 500;
  color: var(--ndc-ink);
}

.ndc-bar-val {
  font-weight: 500;
  color: var(--ndc-rosewood);
}

.ndc-bar-track {
  display: block;
  appearance: none;
  width: 100%;
  height: 12px;
  border: 0;
  background: var(--ndc-stone);
  border-radius: 999px;
  overflow: hidden;
}

.ndc-bar-track::-webkit-meter-bar {
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: var(--ndc-stone);
}

.ndc-bar-track::-webkit-meter-optimum-value {
  background: var(--ndc-rosewood);
  border-radius: inherit;
}

.ndc-bar-track::-moz-meter-bar {
  background: var(--ndc-rosewood);
  border-radius: inherit;
}

/* Comparison tables */
.ndc-table-wrap {
  overflow-x: auto;
  background: var(--ndc-white);
  border-radius: 16px;
  border: 1px solid var(--ndc-line-soft);
}

.ndc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ndc-table th,
.ndc-table td {
  text-align: left;
  padding: 13px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--ndc-line-soft);
}

.ndc-table thead th {
  background: var(--ndc-rose-pale);
  color: var(--ndc-ink);
  font-weight: 500;
  font-size: 0.9375rem;
}

.ndc-table tbody tr:last-child td {
  border-bottom: 0;
}

.ndc-table-label {
  display: none;
}

/* Two-column contrast cards (Brain scans vs memory, IV NAD+ vs IV NR) */
.ndc-contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ndc-contrast-box {
  background: var(--ndc-white);
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid var(--ndc-line-soft);
}

.ndc-contrast-box.is-accent {
  border-color: var(--ndc-rosewood);
}

.ndc-contrast-box h4 {
  font-size: 1.3rem;
  line-height: 1.24;
  margin: 0 0 10px;
}

.ndc-contrast-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.52;
  color: var(--ndc-muted);
}

/* 4-card Safety Matrix & 3-card Editorial/Contact Grids */
.ndc-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ndc-mini-card {
  background: var(--ndc-white);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--ndc-line-soft);
}

.ndc-mini-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.ndc-mini-card p {
  font-size: 0.95rem;
  line-height: 1.52;
  color: var(--ndc-muted);
  margin: 0;
}

/* Code-drawn SVG figure container */
.ndc-svg-figure {
  margin: 26px 0 8px;
}

.ndc-svg-figure img {
  width: 100%;
  border-radius: 22px;
}

.ndc-svg-figure figcaption {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ndc-muted);
}

.ndc-diagram-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
}

.ndc-diagram-viewer {
  width: min(1040px, calc(100% - 32px));
  max-width: none;
  padding: 16px;
  border: 1px solid var(--ndc-line);
  border-radius: var(--ndc-radius-lg);
  background: var(--ndc-white);
  color: var(--ndc-ink);
}

.ndc-diagram-viewer::backdrop {
  background: rgba(34, 28, 28, 0.4);
}

.ndc-diagram-viewer form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.ndc-diagram-full {
  max-height: 65vh;
  overflow: auto;
  overscroll-behavior: contain;
}

.ndc-diagram-full img {
  display: block;
  width: 960px;
  max-width: none;
  height: auto;
}

/* PROMISE CLINICAL DECISION ASIDE on /safety — strictly non-clickable prose note */
.ndc-clinical-note {
  margin-top: 24px;
  background: var(--ndc-stone);
  border-left: 4px solid var(--ndc-rosewood);
  border-radius: 0 18px 18px 0;
  padding: 22px 26px;
}

.ndc-clinical-note p {
  margin: 0;
  font-size: 1.03125rem;
  line-height: 1.68;
  color: var(--ndc-ink);
}

/* REFERENCES PAGE */
.ndc-ref-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ndc-ref-item {
  background: var(--ndc-stone);
  border-radius: 18px;
  padding: 18px 22px;
}

.ndc-ref-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 6px;
}

.ndc-ref-authors {
  font-weight: 500;
  color: var(--ndc-ink);
  font-size: 1rem;
}

.ndc-ref-journal {
  font-size: 0.9375rem;
  color: var(--ndc-muted);
}

.ndc-ref-note {
  font-size: 0.96875rem;
  line-height: 1.55;
  color: var(--ndc-ink);
  margin: 0 0 8px;
}

.ndc-ref-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.9375rem;
}

.ndc-ref-links a {
  font-weight: 500;
}

/* 404 PAGE */
.ndc-missing {
  padding-block: clamp(4rem, 10vw, 7rem);
  max-width: 660px;
}

.ndc-missing h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.ndc-missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* FOOTER */
.ndc-footer {
  background: var(--ndc-white);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ndc-line-soft);
}

.ndc-footer-shell {
  background: var(--ndc-stone);
  border-radius: var(--ndc-radius-lg);
  padding: clamp(26px, 4vw, 44px);
}

.ndc-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) repeat(3, minmax(0, 0.65fr));
  gap: 28px 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ndc-line);
}

.ndc-footer-col h2 {
  font-family: var(--ndc-body);
  font-weight: 500;
  font-size: 0.96875rem;
  color: var(--ndc-ink);
  margin: 0 0 12px;
}

.ndc-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ndc-footer-col a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ndc-muted);
}

.ndc-footer-col a:hover {
  color: var(--ndc-rosewood);
}

.ndc-footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ndc-muted);
}

.ndc-footer-disclaimer {
  max-width: 72ch;
  margin: 0;
}

.ndc-footer-copy {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ndc-reading-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ndc-toc {
    position: static;
  }

  .ndc-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ndc-notice {
    padding-inline: 12px;
  }

  .ndc-header {
    padding-top: 12px;
  }

  .ndc-identity-row {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-bottom: 12px;
  }

  .ndc-header.is-enhanced .ndc-menu-btn {
    display: inline-flex;
    margin-left: auto;
    min-height: 44px;
  }

  .ndc-header-line {
    flex: 1 0 100%;
    order: 3;
    font-size: 0.96875rem;
    text-wrap: balance;
  }

  .ndc-nav {
    flex-direction: column;
    align-items: stretch;
    padding-block: 8px;
  }

  .ndc-header.is-enhanced .ndc-nav:not(.is-open) {
    display: none;
  }

  .ndc-nav a {
    padding: 12px 10px;
    min-height: 44px;
    border-radius: 10px;
  }

  .ndc-home-hero,
  .ndc-split-hero,
  .ndc-type-hero,
  .ndc-wide-band-inner,
  .ndc-warm-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .ndc-home-hero {
    padding-block: 26px 24px;
  }

  .ndc-home-hero h1 {
    max-width: 23ch;
    margin-bottom: 12px;
  }

  .ndc-home-hero .ndc-article-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .ndc-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "large large" "small-left small-right" "tall tall";
  }

  .ndc-bento-card {
    border-radius: 22px;
  }

  .ndc-bento-card.is-tall .ndc-bento-media {
    flex: initial;
    min-height: 0;
    aspect-ratio: 1.15;
  }

  .ndc-bento-card.is-small-left .ndc-bento-media,
  .ndc-bento-card.is-small-right .ndc-bento-media {
    aspect-ratio: 1.25;
  }

  .ndc-wide-band-img {
    object-position: 86% center;
  }

  .ndc-wide-band-inner h2,
  .ndc-warm-lead h2 {
    max-width: 23ch;
  }

  .ndc-split-figure img {
    aspect-ratio: 1.25;
  }

  .ndc-table,
  .ndc-table tbody,
  .ndc-table tbody tr,
  .ndc-table td {
    display: block;
  }

  .ndc-table {
    min-width: 0;
  }

  .ndc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ndc-table tbody tr + tr {
    border-top: 1px solid var(--ndc-line);
  }

  .ndc-table td {
    padding: 8px 14px;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .ndc-table td:first-child {
    background: var(--ndc-rose-pale);
  }

  .ndc-table td:last-child {
    padding-bottom: 14px;
  }

  .ndc-table-label {
    display: block;
    margin-bottom: 2px;
    color: var(--ndc-muted);
    font-weight: 500;
  }

  .ndc-contrast-grid,
  .ndc-quad-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ndc-footer-copy {
    white-space: normal;
  }
}

@media (max-width: 365px) {
  .ndc-bento-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "large" "small-left" "small-right" "tall";
  }

  .ndc-footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
