:root {
  --navy: #0A2E5C;
  --navy-dark: #09376f;
  --blue: #2f6fc2;
  --blue-soft: #eef4fb;
  --yellow: #f4b400;
  --yellow-soft: #fff5cc;
  --cream: #f5f7fb;
  --white: #ffffff;
  --text-dark: #19345a;
  --text-mid: #5b6f8c;
  --border: #dde6f2;
  --shadow-soft: 0 8px 24px rgba(18, 59, 112, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  transition: 0.2s ease;
}

/* HERO */
.article-hero {
  background: linear-gradient(135deg, #0a468e 0%, #1c67c2 100%);
  padding: 90px 0 70px;
}

.article-hero-inner {
  width: min(1280px, 90%);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: #f0c34f;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 180, 0, 0.16);
  border: 1px solid rgba(244, 180, 0, 0.28);
  color: #f4c542;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ee26b;
  display: inline-block;
}

.article-hero h1 {
  margin: 0 0 18px;
  max-width: 780px;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-item {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

/* LAYOUT */
.article-layout {
  width: min(1280px, 90%);
  margin: 0 auto;
  padding: 56px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

/* TOP META BAND */
.cs-meta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-bottom: 40px;
  padding: 6px 0 0;
}

.cs-meta-item {
  min-width: 140px;
}

.cs-meta-label {
  font-size: 10px;
  font-weight: 700;
  color: #6a7ea0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.cs-meta-value {
  font-size: 14px;
  font-weight: 700;
  color: #24456f;
  line-height: 1.45;
}

/* ARTICLE TYPOGRAPHY */
.article-body h2 {
  margin: 38px 0 18px;
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 700;
  color: #163a67;
  letter-spacing: -0.02em;
}

.article-body h3 {
  margin: 28px 0 14px;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 700;
  color: #163a67;
}

.article-body p {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.95;
  color: #617592;
}

.article-body ul,
.article-body ol {
  padding-left: 20px;
  margin: 0 0 20px;
}

.article-body li {
  margin-bottom: 10px;
  color: #617592;
  font-size: 16px;
  line-height: 1.8;
}

.article-body strong {
  color: #163a67;
}

.article-body a {
  color: #2f6fc2;
  text-decoration: underline;
}

/* STATS */
.stats-band {
  background: #0a3d83;
  border-radius: 18px;
  padding: 28px 26px;
  margin: 20px 0 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-result {
  text-align: center;
}

.stat-result-num {
  display: block;
  font-family: 'Playfair Display', serif;
  color: #f4b400;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-result-lbl {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.5;
  max-width: 150px;
  margin: 0 auto;
}

/* CTA BLOCK INSIDE ARTICLE */
.article-cta {
  margin-top: 42px;
}

.article-cta h3 {
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: #163a67;
}

.article-cta p {
  margin-bottom: 14px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f6fc2;
  font-weight: 700;
  text-decoration: underline;
}

/* AUTHOR */
.author-bio {
  margin-top: 38px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  gap: 16px;
}

.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0d4b94;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-bio-name {
  font-size: 20px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #163a67;
  margin-bottom: 4px;
}

.author-bio-role {
  color: #2f6fc2;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.author-bio-text {
  color: #617592;
  font-size: 15px;
  line-height: 1.75;
}

/* SIDEBAR */
.article-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid #e4ebf4;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: none;
}

.sidebar-card h4,
.cta-card h4 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #28456d;
}

/* TOC */
.toc-card {
  padding: 18px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e4ebf4;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li + li {
  margin-top: 6px;
}

.toc-link,
.toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
}

.toc-link:hover,
.toc-list a:hover {
  background: #f3f7fc;
}

.toc-link.active,
.toc-list a.active {
  background: #eaf2fc;
}

.toc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c8dc;
  flex-shrink: 0;
}

.toc-text {
  font-size: 12px;
  line-height: 1.45;
  color: #7b8ea8;
  font-weight: 500;
}

.toc-link.active .toc-dot {
  background: #4d84cf;
}

.toc-link.active .toc-text {
  color: #3d73bd;
  font-weight: 600;
}

/* fallback if you still use old markup */
.toc-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c8dc;
  flex-shrink: 0;
}

.toc-list a {
  font-size: 12px;
  line-height: 1.45;
  color: #7b8ea8;
  font-weight: 500;
}

.toc-list a.active,
.toc-list a:hover {
  color: #3d73bd;
}

.toc-list a.active::before,
.toc-list a:hover::before {
  background: #4d84cf;
}

/* SIDEBAR CTA */
.cta-card {
  background: #0a4c97;
  border-radius: 16px;
  padding: 20px 16px;
  color: #ffffff;
  text-align: center;
}

.cta-card h4 {
  color: #f4b400;
  margin-bottom: 10px;
  font-size: 20px;
}

.cta-card p {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.btn-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 42px;
  background: #f4b400;
  color: #0b376c;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
}

.btn-cta:hover {
  background: #ffd056;
}

/* RELATED ARTICLES */
.related-card {
  padding: 18px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e4ebf4;
}

.related-card h4 {
  margin: 0 0 12px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #28456d;
}

.related-article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  padding: 10px 0;
}

.related-article + .related-article {
  border-top: 1px solid #edf2f7;
}

.related-thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef4fb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.related-thumb span,
.related-thumb-icon {
  font-size: 14px;
  line-height: 1;
}

.related-content {
  min-width: 0;
  flex: 1;
}

.related-title {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  color: #26456b;
  margin-bottom: 4px;
}

.related-meta {
  font-size: 10px;
  line-height: 1.3;
  color: #95a4ba;
}

/* SHARE */
.share-card h4 {
  font-size: 18px;
}

.tag-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  border: 1px solid #e3ebf5;
  background: #ffffff;
  color: #5f7391;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover {
  background: #eef4fb;
  color: #2f6fc2;
  border-color: #d2e1f1;
}

.share-copy-btn {
  font-family: inherit;
}