/* =============================================================
   Performacentric – Blog Article Page Styles
   Covers: shared tokens, header, footer, article hero, prose
   typography, sidebar (TOC + CTA), newsletter CTA variants,
   social share, related insights, responsive breakpoints.
   ============================================================= */

/* ─── RESET & CUSTOM PROPERTIES ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --primary:          #076476;
  --primary-dark:     #054e5c;
  --primary-deep:     #004b59;

  /* Text hierarchy */
  --text-heading:     #1a1c1c;
  --text-body:        #1a1c1c;
  --text-secondary:   #3f484b;
  --text-muted:       #6f797c;
  --text-light:       #94a3b8;

  /* Surfaces */
  --white:            #ffffff;
  --bg-page:          #ffffff;
  --bg-card:          #f3f3f4;
  --bg-blockquote:    #eeeeee;
  --bg-newsletter:    #eef7f8;
  --border:           rgba(191, 200, 204, 0.3);
  --border-solid:     #bfc8cc;
  --border-nav:       #f3f4f6;

  /* Accent */
  --accent-light:     #97def3;
  --badge-bg:         rgba(7, 100, 118, 0.1);

  /* Article typography scale */
  --prose-base:       18px;
  --prose-line:       1.7;
  --prose-gap:        1.6em;

  /* Layout */
  --article-max:      720px;
  --sidebar-width:    300px;
  --container-px:     32px;

  /* Fonts */
  --font-display:     'Manrope', sans-serif;
  --font-body:        'Inter', 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: var(--prose-line);
  -webkit-font-smoothing: antialiased;
}

/* ─── ACCESSIBILITY ───────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── SHARED LAYOUT ───────────────────────────────────────────── */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ─── BUTTON ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-dark); }

/* ─── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border-nav);
  display: flex;
  align-items: center;
}

.nav {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 40px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links li + li { margin-left: 32px; }
.nav-links a { font-size: 14px; font-weight: 600; color: #334155; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links .nav-link--active { color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-heading); border-radius: 2px; transition: all 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border-nav); padding: 16px var(--container-px) 24px; flex-direction: column; list-style: none; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.nav-mobile.open { display: flex; }
.nav-mobile li + li { border-top: 1px solid var(--border-nav); }
.nav-mobile a { display: block; padding: 12px 0; font-size: 15px; font-weight: 600; color: #334155; text-decoration: none; }

/* ─── ARTICLE HEADER ──────────────────────────────────────────── */
.article-header {
  background: var(--white);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.article-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.article-breadcrumb {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.article-breadcrumb:hover { color: var(--primary); }

.article-category-badge {
  display: inline-flex;
  align-items: center;
  background: var(--badge-bg);
  color: var(--primary-deep);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 12px 4px;
  border-radius: 4px;
}

.article-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 860px;
  text-align: center;
}

.article-summary {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 672px;
  text-align: center;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-solid);
}

.author-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.author-name { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-heading); }
.article-meta-detail { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text-secondary); }

.article-meta-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label { font-size: 13px; font-weight: 500; color: var(--text-muted); }

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border-solid);
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.share-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ─── FEATURED IMAGE ──────────────────────────────────────────── */
.featured-image-wrap { padding: 32px 0 0; background: var(--white); }

.featured-image {
  position: relative;
  height: 440px;
  background: linear-gradient(135deg, #004b59 0%, #076476 40%, #0a8fa8 70%, #0d9dba 100%);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Subtle grid pattern overlay */
.featured-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Glowing orbs */
.featured-image::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(151, 222, 243, 0.15);
  border-radius: 50%;
  filter: blur(60px);
}

.featured-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,75,89,0.5) 0%, transparent 60%);
}

.featured-image-caption {
  position: relative;
  z-index: 1;
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

/* ─── ARTICLE LAYOUT ──────────────────────────────────────────── */
.article-layout {
  padding: 64px 0 80px;
  position: relative;
}

/* Floating social share */
.social-share-float {
  position: fixed;
  top: 50%;
  left: max(16px, calc((100vw - 1280px) / 2 - 60px));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--border-solid);
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.social-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.article-body-container {
  display: grid;
  grid-template-columns: var(--article-max) var(--sidebar-width);
  gap: 64px;
  align-items: start;
}

/* ─── PROSE TYPOGRAPHY ────────────────────────────────────────── */
.article-content {
  min-width: 0;
}

.article-content section { margin-bottom: 48px; }

.article-lead {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--prose-gap);
}

.article-content p {
  font-size: var(--prose-base);
  font-weight: 400;
  color: var(--text-body);
  line-height: var(--prose-line);
  margin-bottom: var(--prose-gap);
}

.article-content p:last-child { margin-bottom: 0; }

.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  margin-top: 36px;
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  padding-left: 0;
  margin-bottom: var(--prose-gap);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-content ol { counter-reset: article-counter; }

.article-content ul li,
.article-content ol li {
  font-size: var(--prose-base);
  color: var(--text-body);
  line-height: var(--prose-line);
  padding-left: 28px;
  position: relative;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.article-content ol li {
  counter-increment: article-counter;
}

.article-content ol li::before {
  content: counter(article-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.article-content li strong { font-weight: 700; color: var(--text-heading); }

.article-content blockquote {
  background: var(--bg-blockquote);
  border-left: 4px solid var(--primary-deep);
  padding: 28px 32px 28px 40px;
  margin: 32px 0;
  border-radius: 0 4px 4px 0;
}

.article-content blockquote p {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-deep);
  line-height: 1.4;
  font-style: normal;
  margin-bottom: 12px;
}

.article-content blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  color: var(--text-secondary);
}

.article-cta-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.article-cta-link:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ─── AUTHOR BIO ──────────────────────────────────────────────── */
.author-bio {
  border-top: 1px solid var(--border-solid);
  padding-top: 48px;
  margin-top: 64px;
}

.author-bio-inner {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border-solid);
  border-radius: 8px;
  padding: 28px;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-bio-body { flex: 1; min-width: 0; }

.author-bio-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.author-bio-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.author-bio-links { display: flex; gap: 20px; flex-wrap: wrap; }

.author-bio-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-deep);
  text-decoration: none;
  transition: color 0.15s;
}
.author-bio-link:hover { color: var(--primary); text-decoration: underline; }

/* ─── INLINE NEWSLETTER CTA ───────────────────────────────────── */
.newsletter-cta--inline {
  background: var(--bg-newsletter);
  border: 1px solid rgba(7, 100, 118, 0.12);
  border-radius: 8px;
  padding: 36px 40px;
  margin: 48px 0;
}

.newsletter-cta__heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 8px;
}

.newsletter-cta__heading--light {
  color: var(--white);
}

.newsletter-cta__subtext {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.newsletter-cta__subtext--light {
  color: rgba(255,255,255,0.85);
}

/* ─── SHARED NEWSLETTER FORM ──────────────────────────────────── */
.newsletter-form-row {
  display: flex;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #6f797c;
  background: var(--white);
  margin-bottom: 10px;
}

.newsletter-form-row--dark {
  border-color: rgba(255,255,255,0.35);
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-heading);
  background: transparent;
  border: none;
  outline: none;
}

.newsletter-input::placeholder { color: #6b7280; }

.newsletter-form-row:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.newsletter-btn {
  flex-shrink: 0;
  padding: 0 24px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.newsletter-btn:hover { background: var(--primary-dark); }
.newsletter-btn:disabled { background: #8ab7be; cursor: not-allowed; }

.newsletter-btn--dark {
  background: var(--white);
  color: var(--primary-deep);
  font-weight: 700;
}

.newsletter-btn--dark:hover { background: #e8f5f7; }

.form-status {
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 8px;
}

.form-status[hidden] { display: none; }
.form-status--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-status--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-status--info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.newsletter-legal {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.newsletter-legal a { color: var(--text-muted); text-decoration: underline; }
.newsletter-legal a:hover { color: var(--primary); }

.newsletter-legal--light { color: rgba(151, 222, 243, 0.8); }
.newsletter-legal--light a { color: inherit; }

/* ─── BLOCK NEWSLETTER CTA ────────────────────────────────────── */
.newsletter-cta--block {
  background: var(--primary);
  padding: 80px 0;
}

.newsletter-cta-block-inner {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  justify-content: space-between;
}

.newsletter-block-copy {
  flex: 1;
  min-width: 0;
  max-width: 520px;
}

.newsletter-block-form {
  flex-shrink: 0;
  width: 100%;
  max-width: 440px;
}

.newsletter-block-form .newsletter-form-row {
  border-color: rgba(255,255,255,0.35);
}

.newsletter-block-form .newsletter-input {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.newsletter-block-form .newsletter-input::placeholder {
  color: rgba(255,255,255,0.55);
}

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  border-radius: 4px;
}

/* TOC */
.sidebar-widget--toc {
  border: 1px solid var(--border);
  padding: 24px;
}

.sidebar-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-widget-title--sm { font-size: 13px; }

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc-counter;
}

.toc-list li { counter-increment: toc-counter; }

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
  line-height: 1.35;
  transition: background 0.12s, color 0.12s;
}

.toc-list a::before {
  content: counter(toc-counter);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--bg-card);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toc-list a:hover {
  background: var(--bg-card);
  color: var(--primary);
}

.toc-list a.toc-active {
  background: var(--badge-bg);
  color: var(--primary-deep);
  font-weight: 600;
}

.toc-list a.toc-active::before {
  background: var(--primary);
  color: var(--white);
}

/* CTA widget */
.sidebar-widget--cta {
  background: var(--primary-deep);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.sidebar-cta-glow {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(45, 212, 191, 0.2);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.sidebar-cta-body { position: relative; z-index: 1; }

.sidebar-cta-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.sidebar-cta-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 12px;
}

.sidebar-cta-desc {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary-deep);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}

.sidebar-cta-btn:hover { background: #e8f5f7; }

/* Topic tags */
.sidebar-widget--topics {
  border: 1px solid var(--border);
  padding: 24px;
}

.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.topic-tag {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(191,200,204,0.3);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.topic-tag:hover {
  background: var(--primary-deep);
  color: var(--white);
  border-color: var(--primary-deep);
}

/* ─── RELATED INSIGHTS ────────────────────────────────────────── */
.related-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.related-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  border: 1px solid rgba(191,200,204,0.15);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.related-card:hover { box-shadow: 0 4px 20px -4px rgba(0,75,89,0.12); }

.related-card-image {
  height: 180px;
}

.related-card-image--1 {
  background: linear-gradient(135deg, #0a2342 0%, #1a4a72 100%);
}

.related-card-image--2 {
  background: linear-gradient(135deg, #1a3a2a 0%, #2d7a50 100%);
}

.related-card-image--3 {
  background: linear-gradient(135deg, #2a1a3a 0%, #5a2d7a 100%);
}

.related-card-body { padding: 24px; }

.related-card-category {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.related-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 10px;
}

.related-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.related-card-title a:hover { color: var(--primary); }

.related-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── COPY TOAST ──────────────────────────────────────────────── */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-heading);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}

.copy-toast[hidden] { display: none; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-nav);
  padding: 80px 0;
}

.footer-inner { display: flex; flex-direction: column; gap: 64px; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.footer-brand { display: flex; flex-direction: column; gap: 32px; }
.footer-logo img { height: 50px; width: auto; display: block; }
.footer-brand .btn-primary { align-self: flex-start; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border-nav);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 12px; font-weight: 500; color: var(--text-light); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12px; font-weight: 500; color: var(--text-light); text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: var(--primary); }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */

/* Wide screens: show floating social share */
@media (max-width: 1380px) {
  .social-share-float { display: none; }
}

/* Tablet/desktop breakpoint */
@media (max-width: 1100px) {
  :root {
    --article-max: 100%;
    --sidebar-width: 280px;
  }
}

@media (max-width: 960px) {
  .article-body-container {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .sidebar-widget--toc { order: 0; }
  .sidebar-widget--cta { order: 1; }
  .sidebar-widget--topics { grid-column: span 2; order: 2; }

  .newsletter-cta-block-inner {
    flex-direction: column;
    gap: 32px;
  }

  .newsletter-block-copy { max-width: 100%; }
  .newsletter-block-form { max-width: 100%; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Article header */
  .article-title { font-size: 32px; }
  .article-summary { font-size: 16px; }
  .article-meta { gap: 16px; }
  .article-meta-share { display: none; } /* show via floating share only on mobile */

  /* Featured image */
  .featured-image { height: 280px; }

  /* Article layout */
  .article-layout { padding: 40px 0 56px; }

  /* Article content */
  .article-content h2 { font-size: 24px; }
  .article-content h3 { font-size: 20px; }
  .article-lead { font-size: 18px; }

  /* Sidebar */
  .article-sidebar { grid-template-columns: 1fr; }
  .sidebar-widget--topics { grid-column: span 1; }

  /* Newsletter CTA */
  .newsletter-cta--inline { padding: 28px 24px; }
  .newsletter-cta--block { padding: 56px 0; }

  /* Related */
  .related-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --container-px: 20px; }

  .article-title { font-size: 26px; }

  .newsletter-form-row {
    flex-direction: column;
    height: auto;
    border: none;
    gap: 10px;
    background: transparent;
  }

  .newsletter-input {
    height: 50px;
    border: 1px solid #6f797c;
    border-radius: 4px;
    padding: 0 16px;
    background: var(--white);
  }

  .newsletter-btn { height: 50px; border-radius: 4px; }
  .newsletter-form-row:focus-within { outline: none; }
  .newsletter-input:focus { outline: 2px solid var(--primary); }

  .newsletter-block-form .newsletter-input {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
    color: var(--white);
  }

  .footer-links { grid-template-columns: 1fr; }
}
