/* Shared styles for Health Library article pages (and the paper pages, which reuse them). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body { background: #ffffff; }
.navbar { background: rgba(244,245,245,1); }
.navbar.scrolled { background: rgba(244,245,245,0.45); }

/* ─── Article Hero Card ──────────────────────────────── */
.article-hero {
  max-width: 860px;
  width: calc(100% - 24px);
  margin: 66px auto 0;
  border-radius: 22px;
  overflow: hidden;
  background: #F4F5F5;
}

.article-hero-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.article-hero-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 56px 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.article-date {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6e6e73;
  letter-spacing: 0.02em;
}

.article-hero-title {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin: 0;
}

/* ─── Article Content ────────────────────────────────── */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 56px 64px;
}

.article-content h2 {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.3px;
  margin: 64px 0 20px;
  line-height: 1.18;
}

.article-content h3 {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.1px;
  margin: 48px 0 14px;
  line-height: 1.25;
}

.article-content p {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.76;
  margin: 0 0 24px;
  letter-spacing: 0.004em;
}

.article-content p.lead {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.55;
  letter-spacing: -0.1px;
  margin-bottom: 40px;
}

/* Inline image — full bleed within card */
.article-inline-img {
  width: calc(100% + 112px);
  margin-left: -56px;
  border-radius: 0;
  margin-top: 40px;
  margin-bottom: 12px;
  display: block;
}

.article-img-caption {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6e6e73;
  text-align: left;
  margin: 0 0 40px;
  line-height: 1.5;
}

/* Graph cards — clean white with subtle shadow */
.article-graph {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 28px 28px;
  margin: 40px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.article-graph-title {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
}

.article-graph svg {
  width: 100%;
  height: auto;
  display: block;
}

.article-graph-caption {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 16px 0 0;
}

/* Numbered list — Apple-clean style */
.article-content ol {
  padding-left: 0;
  counter-reset: article-counter;
  list-style: none;
  margin: 28px 0 36px;
}

.article-content ol li {
  counter-increment: article-counter;
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  color: #1d1d1f;
  line-height: 1.76;
  margin-bottom: 28px;
  padding-left: 40px;
  position: relative;
}

.article-content ol li::before {
  content: counter(article-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1d1d1f;
}

.article-content ol li strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* Pull quote — elegant left border */
.article-highlight {
  background: transparent;
  border-left: 3px solid #1d1d1f;
  border-radius: 0;
  padding: 4px 0 4px 32px;
  margin: 48px 0;
}

.article-highlight p {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #1d1d1f;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.2px;
  margin: 0;
}

/* Stats row — large numbers, minimal */
.article-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 44px 0;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.article-stat {
  background: #ffffff;
  border-radius: 0;
  padding: 32px 20px;
  text-align: center;
  position: relative;
}

.article-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: #e8e8ed;
}

.article-stat-number {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -1px;
  margin: 0;
  line-height: 1;
}

.article-stat-label {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6e6e73;
  margin: 10px 0 0;
  line-height: 1.4;
}

/* Divider — minimal Apple style */
.article-divider {
  width: 100%;
  height: 1px;
  background: #d2d2d7;
  border-radius: 0;
  margin: 48px 0;
}

/* ─── Footer ──────────────────────────────────────────── */
.footer-legal-section {
  position: relative;
  z-index: 10;
  background: #ffffff;
  border-top: none;
  padding: 20px 40px 48px;
  max-width: 1100px;
  margin: 60px auto 0;
}
.legal-block p {
  color: #a1a1a6;
  font-size: 12px;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .article-hero {
    width: calc(100% - 16px);
    border-radius: 18px;
    margin-top: 56px;
  }
  .article-hero-img { height: 280px; }
  .article-hero-body { padding: 32px 28px 16px; }
  .article-hero-title { font-size: 30px; }
  .article-content { padding: 0 28px 40px; }
  .article-content h2 { font-size: 24px; margin-top: 48px; }
  .article-content h3 { font-size: 19px; margin-top: 36px; }
  .article-inline-img { width: calc(100% + 56px); margin-left: -28px; }
  .article-stats { grid-template-columns: 1fr; gap: 0; }
  .article-stat:not(:last-child)::after { display: none; }
  .article-stat:not(:last-child) { border-bottom: 1px solid #e8e8ed; }
  .article-stat-number { font-size: 36px; }
  .article-highlight { padding: 2px 0 2px 24px; margin: 36px 0; }
  .article-highlight p { font-size: 19px; }
  .footer-legal-section { padding: 36px 24px 32px; }
}

@media (max-width: 480px) {
  .article-hero {
    width: calc(100% - 12px);
    border-radius: 16px;
    margin-top: 48px;
  }
  .article-hero-img { height: 200px; }
  .article-hero-body { padding: 24px 20px 12px; }
  .article-hero-title { font-size: 26px; letter-spacing: -0.5px; }
  .article-content { padding: 0 20px 32px; }
  .article-content h2 { font-size: 22px; }
  .article-content p { font-size: 16px; }
  .article-content p.lead { font-size: 19px; }
  .article-inline-img { width: calc(100% + 40px); margin-left: -20px; }
  .article-graph { padding: 20px 16px 16px; border-radius: 14px; }
  .article-stat { padding: 24px 16px; }
  .article-stat-number { font-size: 32px; }
  .article-highlight p { font-size: 18px; }
  .footer-legal-section { padding: 28px 16px 24px; }
}

