/* ── Shared article styles ────────────────────────────── */
.article-page { padding-top: var(--nav-h); }

/* Back bar */
.article-nav-bar {
  border-bottom: 1px solid var(--g-100);
  padding: 0.85rem 0;
  background: #fff;
}
.article-nav-bar a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--g-400);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.article-nav-bar a:hover { color: var(--teal-2); }

/* ── Hero header ── */
.article-hero {
  background: var(--navy);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(74,139,139,0.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.article-hero .container { position: relative; max-width: 900px; }
.article-hero-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.article-hero-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-2);
  background: rgba(74,139,139,0.15);
  border: 1px solid rgba(74,139,139,0.3);
  padding: 4px 10px;
  border-radius: 999px;
}
.article-hero-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 760px;
}
.article-hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 600px;
}
.article-hero-accent {
  width: 48px;
  height: 3px;
  background: var(--teal-2);
  border-radius: 2px;
  margin-top: 1.5rem;
}

/* keep old .article-header fallback for pages not yet migrated */
.article-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--g-100); max-width: 760px; }
.article-category-row { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.article-cat-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-2); background: rgba(74,139,139,0.1); border: 1px solid rgba(74,139,139,0.25);
  padding: 4px 10px; border-radius: 999px;
}
.article-date { font-size: 13px; color: var(--g-400); }
.article-header h1 { font-size: clamp(1.6rem,3.5vw,2.25rem); font-weight: 800; color: var(--g-900); line-height: 1.2; margin-bottom: 0.75rem; }
.article-header-accent { width: 40px; height: 3px; background: var(--teal-2); border-radius: 2px; margin-top: 1rem; }

/* ── Layout ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 3rem 0 4rem;
  align-items: start;
}
.article-body { max-width: 720px; }
.article-sidebar { position: sticky; top: calc(var(--nav-h) + 2rem); }

/* ── Body typography ── */
.article-body > p:first-of-type {
  font-size: 18px;
  color: var(--g-700);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.article-body p { font-size: 16px; color: var(--g-600); line-height: 1.85; margin-bottom: 1.25rem; }
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--g-900);
  margin: 2.75rem 0 0.85rem;
  padding-left: 1rem;
  border-left: 3px solid var(--teal-2);
  line-height: 1.3;
}
.article-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--g-800); margin: 1.5rem 0 0.5rem; }
.article-body strong { color: var(--g-800); font-weight: 600; }

/* ── Stat grid ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  border-radius: var(--rad-xl);
  overflow: hidden;
  margin: 2.25rem 0;
  background: var(--navy);
  border: 1px solid rgba(74,139,139,0.2);
}
.stat-cell {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  background: linear-gradient(135deg, rgba(74,139,139,0.06), transparent);
}
.stat-cell:nth-child(even) { border-right: none; }
.stat-cell:nth-last-child(-n+2) { border-bottom: none; }
.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--teal-2);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.stat-desc { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.55; }

/* ── Pull quote ── */
.pull-quote {
  background: linear-gradient(135deg, rgba(74,139,139,0.07), rgba(74,139,139,0.03));
  border-left: 4px solid var(--teal-2);
  border-radius: 0 var(--rad-lg) var(--rad-lg) 0;
  padding: 1.5rem 2rem;
  margin: 2.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--g-800);
  line-height: 1.65;
  position: relative;
}
.pull-quote::before {
  content: '"';
  font-size: 4rem;
  font-weight: 900;
  color: var(--teal-2);
  opacity: 0.25;
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  line-height: 1;
}

/* ── Callout grid ── */
.article-callout {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: var(--g-100);
  border: 1px solid var(--g-150);
  border-radius: var(--rad-lg);
  overflow: hidden;
  margin: 2rem 0;
}
.callout-cell { background: var(--g-50); padding: 1.25rem 1.5rem; text-align: center; }
.callout-num { font-size: 1.6rem; font-weight: 700; color: var(--teal-2); line-height: 1; margin-bottom: 4px; }
.callout-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g-500); }

/* ── Data table ── */
.data-table-wrap { margin: 2rem 0; overflow-x: auto; }
.data-table-title { font-size: 12px; font-weight: 600; color: var(--g-400); text-align: center; margin-bottom: 0.5rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--g-500); border-bottom: 2px solid var(--g-150); padding: 10px 12px; text-align: left;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--g-100); color: var(--g-700); }
.data-table td:first-child { font-weight: 600; color: var(--teal-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--g-50); }

/* ── Ways grid ── */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--g-100);
  border: 1px solid var(--g-150);
  border-radius: var(--rad-lg);
  overflow: hidden;
  margin: 2rem 0;
}
.way-cell { background: #fff; padding: 1.5rem; }
.way-num { font-size: 1.75rem; font-weight: 700; color: var(--teal-2); line-height: 1; margin-bottom: 0.5rem; }
.way-type { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g-500); margin-bottom: 0.4rem; }
.way-title { font-size: 14px; font-weight: 600; color: var(--g-800); margin-bottom: 0.4rem; }
.way-desc { font-size: 13px; color: var(--g-500); line-height: 1.6; }

/* ── Article category label (in body) ── */
.article-category {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-2); margin-bottom: 0.75rem;
}

/* ── References ── */
.references {
  border-top: 1px solid var(--g-100);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}
.references h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--g-400); margin-bottom: 0.75rem;
}
.references ol { padding-left: 1.25rem; margin: 0; }
.references li { font-size: 12px; color: var(--g-400); line-height: 1.6; margin-bottom: 4px; }

/* ── Sidebar ── */
.sidebar-toc {
  border: 1px solid var(--g-150);
  border-radius: var(--rad-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--g-50);
}
.sidebar-toc-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--g-400); margin-bottom: 0.75rem;
}
.sidebar-toc a {
  display: block; font-size: 13px; color: var(--g-600); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid var(--g-100); line-height: 1.4; transition: color .15s;
}
.sidebar-toc a:last-child { border-bottom: none; }
.sidebar-toc a:hover { color: var(--teal-2); }

.sidebar-cta {
  background: var(--navy);
  border-radius: var(--rad-lg);
  padding: 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sidebar-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(74,139,139,0.12) 1px, transparent 1px);
  background-size: 18px 18px;
}
.sidebar-cta > * { position: relative; }
.sidebar-cta h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; line-height: 1.6; }

/* ── Keep reading ── */
.keep-reading {
  border-top: 2px solid var(--g-100);
  padding-top: 2.5rem;
  margin-top: 1rem;
}
.keep-reading-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--g-400); margin-bottom: 1.5rem;
}
.keep-reading-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.keep-reading-card {
  text-decoration: none;
  border: 1px solid var(--g-150);
  border-radius: var(--rad-lg);
  padding: 1.5rem;
  display: block;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  background: #fff;
}
.keep-reading-card:hover {
  border-color: var(--teal-2);
  box-shadow: 0 4px 16px rgba(74,139,139,0.12);
  transform: translateY(-2px);
}
.keep-reading-card .article-category { margin-bottom: 0.5rem; }
.keep-reading-card h4 { font-size: 14px; font-weight: 600; color: var(--g-800); line-height: 1.45; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-hero { padding: 2.5rem 0 2rem; }
  .article-hero h1 { font-size: 1.6rem; }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-sidebar { position: static; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .ways-grid { grid-template-columns: 1fr; }
  .keep-reading-grid { grid-template-columns: 1fr; }
  .article-callout { grid-template-columns: 1fr 1fr; }
  .article-body h2 { font-size: 1.2rem; }
}
