/* ──────────────────────────────────────────────────────────
   Blog Post Template - Savvy AI CFO
   Built on colors_and_type.css. Inherits all tokens.
   ────────────────────────────────────────────────────────── */
@import url('./colors_and_type.css');

/* ── Layout primitives ─────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ── NAV (canonical - matches index.html homepage) ─────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13,27,46,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 60px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; color: var(--slate);
  padding: 7px 13px; border-radius: 6px;
  transition: color 0.2s, background 0.2s; letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--parchment); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 600 !important; padding: 8px 18px !important; border-radius: 7px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer; background: none; border: none;
  padding: 4px; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--parchment); border-radius: 2px; transition: all 0.3s;
}

/* Keep the in-article breadcrumb unaffected by the sitewide nav{} rule */
nav.crumbs {
  position: static; top: auto; z-index: auto;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: none;
}

/* ── ARTICLE HEADER ────────────────────────────────────── */
.article-header {
  position: relative; overflow: hidden;
  padding: 84px 0 56px;
  border-bottom: 0.5px solid var(--border);
}
.article-header::before {
  content:''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(212,168,75,0.09) 1px, transparent 1px);
  background-size: 36px 36px; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}
.article-header::after {
  content:''; position: absolute; top: -240px; right: -180px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212,168,75,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.article-header-glow {
  position: absolute; bottom: -200px; left: -200px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(32,212,160,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.article-header-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }

.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--slate-dim);
  margin-bottom: 28px; letter-spacing: 0.02em;
}
.crumbs a { color: var(--slate); transition: color .2s; }
.crumbs a:hover { color: var(--gold); }
.crumbs-sep { opacity: 0.5; }

.article-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold-dim); border: 0.5px solid var(--gold-border);
  color: var(--gold); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 26px;
}
.article-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

.article-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700; line-height: 1.10; letter-spacing: -0.015em;
  color: var(--fg); margin-bottom: 22px;
  text-wrap: balance;
}
.article-title em { font-style: italic; color: var(--gold); }

.article-deck {
  font-family: var(--body);
  font-size: 1.15rem; line-height: 1.7;
  color: var(--slate); max-width: 680px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.article-meta {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-top: 28px; border-top: 0.5px solid var(--border);
}
.article-byline { display: flex; align-items: center; gap: 12px; }
.byline-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 0.5px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; color: var(--gold);
  font-size: 0.95rem; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.byline-name { font-size: 0.92rem; font-weight: 600; color: var(--fg); line-height: 1.2; }
.byline-role { font-size: 0.75rem; color: var(--slate-dim); margin-top: 3px; letter-spacing: 0.02em; }

.meta-divider {
  width: 1px; height: 28px; background: var(--border);
}
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--slate); }
.meta-item svg { color: var(--slate-dim); flex-shrink: 0; }

.share-cluster { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: transparent; border: 0.5px solid var(--border-md);
  color: var(--slate); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.share-btn:hover { border-color: var(--gold-border); color: var(--gold); background: var(--gold-dim); }

/* ── BODY LAYOUT ───────────────────────────────────────── */
.article-body-wrap { padding: 64px 0 80px; }
.article-body-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 56px;
  align-items: start;
}

/* ── TABLE OF CONTENTS ─────────────────────────────────── */
.toc {
  position: sticky; top: 100px;
  font-size: 0.85rem;
}
.toc-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin: 0; }
.toc-list a {
  display: block; padding: 9px 0 9px 14px;
  border-left: 1px solid var(--border);
  color: var(--slate); font-size: 0.85rem; line-height: 1.4;
  transition: color .2s, border-color .2s;
}
.toc-list a:hover { color: var(--fg); border-color: var(--slate-dim); }
.toc-list a.active { color: var(--gold); border-color: var(--gold); }
.toc-list li.toc-sub a { padding-left: 24px; font-size: 0.8rem; color: var(--slate-dim); }

.toc-foot {
  margin-top: 22px; padding-top: 18px;
  border-top: 0.5px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.toc-foot-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--slate);
  background: transparent; border: 0.5px solid var(--border-md);
  border-radius: 7px; padding: 8px 12px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s; text-align: left;
}
.toc-foot-btn:hover { border-color: var(--gold-border); color: var(--gold); background: var(--gold-dim); }

/* ── ARTICLE PROSE ─────────────────────────────────────── */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 28px; }

.prose p {
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--parchment);
  text-wrap: pretty;
}
.prose p.lead {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--fg);
  font-weight: 400;
}
.prose p em { color: var(--gold); font-family: var(--display); font-style: italic; font-weight: 600; }
.prose p strong { color: var(--fg); font-weight: 600; }

.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 1.95rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--fg); margin-top: 64px;
  position: relative; padding-top: 32px;
  border-top: 0.5px solid var(--border);
  text-wrap: balance;
}
.prose h2 em { font-style: italic; color: var(--gold); }
.prose h2::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 48px; height: 1px; background: var(--gold);
}

.prose h3 {
  font-family: var(--display);
  font-size: 1.35rem; font-weight: 600; line-height: 1.3;
  color: var(--fg); margin-top: 42px;
}
.prose h3 em { font-style: italic; color: var(--gold); }

.prose h4 {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-top: 32px;
}

.prose ul, .prose ol {
  padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
.prose ul li, .prose ol li {
  font-size: 1.05rem; line-height: 1.7; color: var(--parchment);
  padding-left: 32px; position: relative;
}
.prose ul li::before {
  content: ''; position: absolute; left: 6px; top: 0.75em;
  width: 8px; height: 1px; background: var(--gold);
}
.prose ol { counter-reset: prose-counter; }
.prose ol li { counter-increment: prose-counter; }
.prose ol li::before {
  content: counter(prose-counter, decimal-leading-zero);
  position: absolute; left: 0; top: 0.05em;
  font-family: var(--display); font-weight: 700;
  color: var(--gold); font-size: 0.95rem; letter-spacing: 0.02em;
}

.prose a {
  color: var(--gold); border-bottom: 1px solid var(--gold-border);
  transition: border-color .2s, color .2s;
}
.prose a:hover { border-color: var(--gold); color: var(--gold-light); }

/* ── PULL QUOTE ────────────────────────────────────────── */
.pullquote {
  margin: 48px 0;
  padding: 36px 0 36px 40px;
  border-left: 2px solid var(--gold);
  position: relative;
}
.pullquote::before {
  content: '\201C';
  position: absolute; left: 24px; top: 8px;
  font-family: var(--display); font-size: 4rem; line-height: 1;
  color: var(--gold-dim); color: rgba(212,168,75,0.35);
  pointer-events: none;
}
.pullquote p {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 500; line-height: 1.45;
  color: var(--fg); margin: 0;
  text-wrap: balance;
}
.pullquote p em { font-style: italic; color: var(--gold); font-weight: 600; }
.pullquote-attrib {
  display: block; margin-top: 16px;
  font-family: var(--sans); font-size: 0.82rem;
  color: var(--slate-dim); letter-spacing: 0.04em;
}

/* ── FIGURE / IMAGE PLACEHOLDER ────────────────────────── */
.fig {
  margin: 48px 0; width: 100%;
}
.fig-frame {
  background: var(--navy-mid);
  border: 0.5px solid var(--border-md);
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.fig-frame::before {
  content:''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0px, transparent 14px,
    rgba(212,168,75,0.05) 14px, rgba(212,168,75,0.05) 15px
  );
}
.fig-frame::after {
  content:''; position: absolute; top:0; left:0; right:0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.fig-tag {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.08em; color: var(--slate-dim);
  background: var(--navy); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 8px 14px;
}
.fig-caption {
  margin-top: 14px;
  font-size: 0.82rem; color: var(--slate-dim);
  line-height: 1.55; letter-spacing: 0.01em;
}
.fig-caption strong { color: var(--slate); font-weight: 600; }

/* ── KPI ROW (inline data callout) ─────────────────────── */
.inline-kpis {
  margin: 40px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.inline-kpi {
  background: var(--navy-mid); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 20px;
  position: relative; overflow: hidden;
}
.inline-kpi::before {
  content:''; position: absolute; top:0; left:0; right:0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.inline-kpi-label {
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate-dim); font-weight: 600;
}
.inline-kpi-value {
  font-family: var(--display); font-size: 1.85rem; font-weight: 700;
  color: var(--fg); margin-top: 8px; line-height: 1;
}
.inline-kpi-value span { color: var(--gold); }
.inline-kpi-foot {
  margin-top: 6px; font-size: 0.78rem; color: var(--teal); font-weight: 600;
}
.inline-kpi-foot.down { color: var(--red); }
.inline-kpi-foot.neutral { color: var(--slate-dim); }

/* ── CALLOUT BOX (sidenote / aside) ────────────────────── */
.callout {
  margin: 40px 0;
  background: var(--navy-mid); border: 0.5px solid var(--border-md);
  border-radius: 14px; padding: 24px 26px;
  display: grid; grid-template-columns: 38px 1fr; gap: 16px;
  align-items: flex-start;
}
.callout-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--gold-dim); border: 0.5px solid var(--gold-border);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.callout-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.callout-body {
  font-size: 0.98rem; line-height: 1.7; color: var(--parchment);
}
.callout-body em { font-family: var(--display); font-style: italic; color: var(--gold); font-weight: 600; }

/* ── CODE / DATA BLOCK ─────────────────────────────────── */
.codeblock {
  margin: 40px 0;
  background: var(--navy-mid); border: 0.5px solid var(--border-md);
  border-radius: 12px; overflow: hidden;
}
.codeblock-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 0.5px solid var(--border);
  background: rgba(0,0,0,0.18);
}
.codeblock-title {
  font-family: var(--mono); font-size: 0.76rem;
  color: var(--slate); letter-spacing: 0.04em;
}
.codeblock-tag {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 10px;
  background: rgba(32,212,160,0.12); color: var(--teal);
}
.codeblock pre {
  margin: 0; padding: 20px;
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.7;
  color: var(--parchment); overflow-x: auto;
}
.codeblock pre .comment { color: var(--slate-dim); }
.codeblock pre .accent { color: var(--gold); }
.codeblock pre .ok { color: var(--teal); }

/* ── INLINE CTA (mid-article) ──────────────────────────── */
.inline-cta {
  margin: 56px 0;
  background: var(--navy-mid); border: 0.5px solid var(--border-md);
  border-radius: 14px; padding: 32px 32px;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.inline-cta::before {
  content:''; position: absolute; top:0; left:0; right:0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.inline-cta-eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.inline-cta h3 {
  font-family: var(--display); font-size: 1.45rem;
  font-weight: 600; color: var(--fg); margin-top: 10px;
  line-height: 1.3;
}
.inline-cta h3 em { font-style: italic; color: var(--gold); }
.inline-cta p {
  font-size: 0.92rem; color: var(--slate); line-height: 1.65;
  margin-top: 8px; max-width: 460px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  font-weight: 600; font-size: 0.9rem; padding: 14px 26px; border-radius: 8px;
  border: none; cursor: pointer; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--parchment);
  font-weight: 500; font-size: 0.9rem; padding: 13px 22px; border-radius: 8px;
  border: 0.5px solid var(--border-md); cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--gold-border); background: var(--gold-dim); transform: translateY(-1px); }

/* ── ASIDE COL (right rail) ────────────────────────────── */
.aside-rail { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.rail-card {
  background: var(--navy-mid); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 20px;
}
.rail-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.rail-stat-value {
  font-family: var(--display); font-size: 1.65rem; font-weight: 700;
  color: var(--fg); line-height: 1;
}
.rail-stat-value em { color: var(--gold); font-style: italic; }
.rail-stat-label { font-size: 0.78rem; color: var(--slate-dim); margin-top: 8px; line-height: 1.5; }

.rail-list { display: flex; flex-direction: column; gap: 12px; }
.rail-list-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.82rem; color: var(--slate); line-height: 1.55;
}
.rail-list-item svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }

.rail-share {
  display: flex; gap: 8px;
}

/* ── TAGS ──────────────────────────────────────────────── */
.article-tags {
  margin-top: 56px; padding-top: 32px;
  border-top: 0.5px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.tags-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--slate-dim); margin-right: 8px;
}
.tag-pill {
  font-size: 0.78rem; color: var(--slate);
  background: var(--navy-mid); border: 0.5px solid var(--border-md);
  border-radius: 20px; padding: 6px 14px;
  transition: border-color .2s, color .2s, background .2s; cursor: pointer;
}
.tag-pill:hover { border-color: var(--gold-border); color: var(--gold); background: var(--gold-dim); }

/* ── AUTHOR BIO ────────────────────────────────────────── */
.author-bio-section {
  padding: 56px 0; background: var(--navy-mid);
  border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border);
}
.author-bio {
  max-width: 820px; margin: 0 auto;
  display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; align-items: center;
}
.author-avatar-lg {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  border: 0.5px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; color: var(--gold);
  font-size: 1.5rem;
}
.author-bio-eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.author-bio h3 {
  font-family: var(--display); font-size: 1.3rem; font-weight: 600;
  color: var(--fg); margin-bottom: 4px;
}
.author-bio-role { font-size: 0.85rem; color: var(--slate-dim); margin-bottom: 10px; }
.author-bio p {
  font-size: 0.95rem; color: var(--slate); line-height: 1.65;
  max-width: 540px;
}
.author-bio p em { font-family: var(--display); font-style: italic; color: var(--gold); font-weight: 600; }

/* ── RELATED POSTS ─────────────────────────────────────── */
.related-section { padding: 96px 0; }
.related-header { text-align: center; margin-bottom: 48px; }
.related-eyebrow {
  display: inline-block; color: var(--gold);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
}
.related-title {
  font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 700; color: var(--fg);
}
.related-title em { font-style: italic; color: var(--gold); }

.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.related-card {
  background: var(--navy-mid); border: 0.5px solid var(--border);
  border-radius: 14px; padding: 26px;
  transition: border-color .2s, transform .2s;
  cursor: pointer; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
}
.related-card::after {
  content:''; position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-dim), transparent);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.related-card:hover { border-color: var(--gold-border); transform: translateY(-4px); }
.related-card:hover::after { opacity: 1; }
.related-card-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.related-tag {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
}
.related-card h3 {
  font-family: var(--display); font-size: 1.15rem; font-weight: 600;
  color: var(--fg); line-height: 1.3; text-wrap: balance;
}
.related-card h3 em { font-style: italic; color: var(--gold); }
.related-card p {
  font-size: 0.85rem; color: var(--slate-dim); line-height: 1.6;
}
.related-card-foot {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 0.5px solid var(--border);
}
.related-card-meta { font-size: 0.74rem; color: var(--slate-dim); letter-spacing: 0.02em; }
.related-card-arrow { color: var(--gold); display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 500; }

/* ── NEWSLETTER STRIP ──────────────────────────────────── */
.newsletter-strip {
  padding: 80px 0; position: relative; overflow: hidden;
  border-top: 0.5px solid var(--border);
}
.newsletter-strip::before {
  content:''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,168,75,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.newsletter-inner {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto; text-align: center;
}
.newsletter-inner h2 {
  font-family: var(--display); font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700; color: var(--fg); margin-bottom: 14px;
}
.newsletter-inner h2 em { font-style: italic; color: var(--gold); }
.newsletter-inner > p {
  font-size: 1rem; color: var(--slate); max-width: 520px;
  margin: 0 auto 28px; line-height: 1.65;
}
.newsletter-form {
  display: flex; gap: 10px; max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1; background: var(--navy-mid);
  border: 0.5px solid var(--border-md);
  border-radius: 8px; padding: 12px 16px;
  font-family: var(--body); font-size: 0.9rem; color: var(--fg);
  outline: none; transition: border-color .2s;
}
.newsletter-input::placeholder { color: var(--slate-dim); }
.newsletter-input:focus { border-color: var(--gold-border); }
.newsletter-foot {
  margin-top: 16px;
  font-size: 0.74rem; color: var(--slate-dim); letter-spacing: 0.02em;
}

/* ── FOOTER (canonical - matches index.html homepage) ──── */
footer { background: var(--navy-mid); border-top: 0.5px solid var(--border); padding: 56px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 12px; }
.footer-brand-desc { font-size: 0.82rem; color: var(--slate-dim); line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 600; color: var(--parchment); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.footer-col a { font-size: 0.82rem; color: var(--slate-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 0.5px solid var(--border); flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.78rem; color: var(--slate-dim); }
.footer-copy a { color: var(--slate-dim); transition: color 0.2s; }
.footer-copy a:hover { color: var(--gold); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.78rem; color: var(--slate-dim); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* ── READING PROGRESS BAR ──────────────────────────────── */
.reading-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 300; transition: width .15s linear;
  box-shadow: 0 0 10px rgba(212,168,75,0.4);
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .article-body-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .aside-rail { display: none; }
}
@media (max-width: 820px) {
  .container { padding: 0 24px; }
  .article-header { padding: 56px 0 40px; }
  .article-body-wrap { padding: 40px 0 64px; }
  .article-body-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .article-meta { gap: 14px; }
  .meta-divider { display: none; }
  .share-cluster { m