/* =========================================================
   BLOGEST — SINGLE POST TEMPLATE
   Design System: Minimal Premium Editorial
   Version: 1.0
   ========================================================= */
 
/* ---------------------------------------------------------
   CSS CUSTOM PROPERTIES
   --------------------------------------------------------- */
:root {
  --accent:       #5B3FA6;
  --accent-dim:   #7355C2;
  --accent-faint: #5B3FA614;
  --black:        #0A0A0B;
  --ink:          #1A1A1E;
  --ink-soft:     #3A3A42;
  --ink-muted:    #6B6B78;
  --ink-faint:    #9D9DAA;
  --border:       #E8E8EE;
  --border-soft:  #F0F0F5;
  --surface:      #FAFAFA;
  --white:        #FFFFFF;
 
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
 
  --reading-width: 680px;
  --layout-max:    1280px;
  --sidebar-w:     320px;
  --gap:           48px;
}
 
/* ---------------------------------------------------------
   RESET & BASE
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
html { scroll-behavior: smooth; font-size: 16px; }
 
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
 
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
 
 
/* =========================================================
   READING PROGRESS BAR
   ========================================================= */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}
 
 
 
/* =========================================================
   ARTICLE HERO
   ========================================================= */
.article-hero {
  padding: 64px 40px 0;
  max-width: var(--layout-max);
  margin: 0 auto;
  animation: fadeUp 0.7s ease both;
}
 
.article-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.article-category::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
 
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--black);
  max-width: 860px;
  margin-bottom: 32px;
}
 
.article-meta {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
 
.meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.meta-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.meta-author-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #8B6FD4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}
.meta-author-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.meta-author-role {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 1px;
}
 
.meta-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 20px;
}
 
.meta-item {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.meta-item + .meta-item { margin-left: 18px; }
.meta-icon {
  width: 14px;
  height: 14px;
  opacity: 0.55;
}
 
/* Featured Image */
.article-featured-image {
  margin: 48px 0 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  animation: fadeUp 0.8s 0.15s ease both;
}
.article-featured-image img {
  width: 100%;
  height: clamp(360px, 55vw, 600px);
  object-fit: cover;
  display: block;
}
.article-featured-image-placeholder {
  width: 100%;
  height: clamp(360px, 55vw, 600px);
  background: linear-gradient(160deg, #1A1A2E 0%, #16213E 40%, #0F3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.article-featured-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(91,63,166,0.35) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(91,63,166,0.15) 0%, transparent 50%);
}
 
 
 
/* =========================================================
   MAIN CONTENT LAYOUT — TWO COLUMN
   ========================================================= */
.article-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 40px 80px;
  align-items: start;
}
 
.article-main { min-width: 0; }
 
 
/* =========================================================
   TABLE OF CONTENTS — SIDEBAR SHARED STYLES
   ========================================================= */
.toc-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-list li { position: relative; }
.toc-list a {
  display: block;
  padding: 6px 10px 6px 12px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-radius: 4px;
  transition: all 0.2s;
  position: relative;
  line-height: 1.5;
}
.toc-list a:hover {
  color: var(--accent);
  background: var(--accent-faint);
}
.toc-list a.active {
  color: var(--accent);
  font-weight: 500;
}
.toc-list a.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--accent);
  border-radius: 2px;
}
.toc-list.level-2 a { padding-left: 28px; font-size: 0.8125rem; color: var(--ink-muted); }
.toc-list.level-2 a:hover { color: var(--accent); }
 
 
/* =========================================================
   ARTICLE CONTENT — TYPOGRAPHY SYSTEM
   ========================================================= */
.article-content {
  max-width: var(--reading-width);
  margin-top: 52px;
  animation: fadeUp 0.8s 0.25s ease both;
}
 
/* Paragraphs */
.article-content p {
  font-size: 1.0625rem;
  line-height: 1.82;
  color: var(--ink-soft);
  margin-bottom: 1.75em;
  font-weight: 300;
}
.article-content p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.25rem;
  line-height: 0.8;
  font-weight: 700;
  color: var(--black);
  margin-right: 10px;
  margin-top: 8px;
  padding-bottom: 4px;
}
 
/* Headings */
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 3em 0 0.75em;
  padding-top: 0.5em;
  position: relative;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 2.25em 0 0.65em;
}
.article-content h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 2em 0 0.5em;
}
 
/* Links */
.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(91,63,166,0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-content a:hover { text-decoration-color: var(--accent); }
 
/* Blockquote */
.article-content blockquote {
  margin: 2.5em 0;
  padding: 36px 40px 36px 48px;
  position: relative;
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  border-left: 4px solid var(--accent);
}
.article-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: 16px; left: 20px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
}
.article-content blockquote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0;
  font-weight: 400;
}
.article-content blockquote p::first-letter { float: none; font-size: inherit; font-weight: inherit; color: inherit; margin: 0; }
.article-content blockquote cite {
  display: block;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  font-style: normal;
  font-family: var(--font-body);
}
.article-content blockquote cite::before { content: '— '; }
 
/* Lists */
.article-content ul, .article-content ol {
  margin: 0 0 1.75em 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-content ul li, .article-content ol li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 28px;
  position: relative;
  font-weight: 300;
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 6px; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.article-content ol { counter-reset: ol-counter; }
.article-content ol li { counter-increment: ol-counter; }
.article-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0; top: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  width: 22px;
  text-align: right;
}
 
/* Code */
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.article-content pre {
  background: var(--black);
  border-radius: 8px;
  padding: 28px 32px;
  overflow-x: auto;
  margin: 2em 0;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
}
.article-content pre::before {
  content: 'CODE';
  position: absolute;
  top: 12px; right: 16px;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-mono);
}
.article-content pre code {
  font-size: 0.875rem;
  background: none;
  color: #A8E6CF;
  padding: 0;
  border: none;
  line-height: 1.7;
}
 
/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9375rem;
}
.article-content thead { border-bottom: 2px solid var(--black); }
.article-content th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.article-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 300;
}
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:hover td { background: var(--surface); }
 
/* Article Images */
.article-content figure {
  margin: 2.5em 0;
}
.article-content figure img {
  width: 100%;
  border-radius: 6px;
}
.article-content figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}
 
/* Horizontal Rule */
.article-content hr {
  border: none;
  margin: 3em auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.article-content hr::before {
  content: '· · ·';
  font-size: 1.25rem;
  letter-spacing: 0.5em;
  color: var(--ink-faint);
  font-family: var(--font-display);
}
 
/* Pull quote / highlight */
.article-content .pull-quote {
  margin: 2.5em 0;
  padding: 0;
  border-left: none;
  background: none;
  text-align: center;
}
.article-content .pull-quote p {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.5;
  font-style: italic;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0;
}
.article-content .pull-quote p::first-letter { float: none; font-size: inherit; font-weight: inherit; }
 
 
/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.article-tags .tag-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-right: 4px;
  align-self: center;
}
.article-tag {
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--ink-soft);
  transition: all 0.2s;
  cursor: pointer;
}
.article-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-faint);
}
 
 
/* =========================================================
   AUTHOR BIO CARD (bottom of article)
   ========================================================= */
.author-bio {
  margin-top: 64px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--surface);
  animation: fadeUp 0.8s 0.35s ease both;
}
.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #8B6FD4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.author-bio-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}
.author-bio-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
.author-bio-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-muted);
  font-weight: 300;
  margin-bottom: 16px;
}
.author-bio-links { display: flex; gap: 10px; }
.author-bio-link {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--ink-soft);
  transition: all 0.2s;
  cursor: pointer;
}
.author-bio-link:hover { border-color: var(--accent); color: var(--accent); }
 
 
/* =========================================================
   RELATED ARTICLES
   ========================================================= */
.related-articles {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.related-card {
  cursor: pointer;
  group: true;
}
.related-card-img {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 4/3;
  background: var(--surface);
  position: relative;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-card-cat {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.related-card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.related-card:hover .related-card-title { color: var(--accent); }
.related-card-meta {
  font-size: 0.75rem;
  color: var(--ink-faint);
}
 
 
/* =========================================================
   RIGHT SIDEBAR
   ========================================================= */
.article-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fadeUp 0.9s 0.3s ease both;
}
 
/* Sidebar Widget Base */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.sidebar-widget-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-faint);
}
.sidebar-widget-body { padding: 20px; }
 
/* TOC Sidebar Widget */
.sidebar-toc { background: var(--white); }
.sidebar-toc .toc-progress-bar {
  height: 3px;
  background: var(--border-soft);
  position: relative;
  overflow: hidden;
}
.sidebar-toc .toc-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s linear;
}
.sidebar-toc .toc-list a {
  font-size: 0.8125rem;
  padding: 7px 8px 7px 14px;
}
.sidebar-toc .toc-list.level-2 a { font-size: 0.75rem; }
 
/* Share Widget */
.share-widget .share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-faint); }
.share-btn svg { width: 14px; height: 14px; opacity: 0.7; }
.share-copy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 10px;
  background: var(--surface);
  border-radius: 6px;
  margin-top: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.share-copy:hover { color: var(--accent); border-color: var(--accent); }
 
/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(160deg, var(--black) 0%, #1A1238 100%);
  border: none;
  position: relative;
  overflow: hidden;
}
.newsletter-widget::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(91,63,166,0.3) 0%, transparent 70%);
}
.newsletter-widget .sidebar-widget-header {
  border-bottom-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
}
.newsletter-widget .sidebar-widget-body { padding: 24px; }
.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.newsletter-sub {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 300;
}
.newsletter-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--white);
  outline: none;
  font-family: var(--font-body);
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-btn {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body);
}
.newsletter-btn:hover { background: var(--accent-dim); transform: translateY(-1px); }
.newsletter-fine {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin-top: 10px;
}
 
/* Trending Posts Widget */
.trending-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: opacity 0.2s;
}
.trending-post:last-child { border-bottom: none; padding-bottom: 0; }
.trending-post:first-child { padding-top: 0; }
.trending-post:hover { opacity: 0.7; }
.trending-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  width: 18px;
  flex-shrink: 0;
  padding-top: 3px;
}
.trending-content { flex: 1; min-width: 0; }
.trending-cat {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
}
.trending-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-meta { font-size: 0.6875rem; color: var(--ink-faint); }
 
 
/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}
 
 
/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 1024px) {
  :root { --sidebar-w: 280px; --gap: 36px; }
  .article-layout { grid-template-columns: 1fr var(--sidebar-w); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .related-card:last-child { display: none; }
}
 
 
/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */
@media (max-width: 768px) {
  .site-header-placeholder { padding: 0 20px; }
  .site-header-placeholder nav { display: none; }
 
  .article-hero { padding: 40px 20px 0; }
  .article-title { font-size: 2rem; }
 
  .article-layout {
    grid-template-columns: 1fr;
    padding: 0 20px 60px;
    gap: 0;
  }
 
  .article-sidebar {
    position: static;
    margin-top: 48px;
    order: 2;
  }
 
  /* On mobile, hide TOC in sidebar — it shows inline above content */
  .sidebar-toc { display: none; }
 
  .article-content { margin-top: 36px; }
  .article-content p { font-size: 1rem; line-height: 1.75; }
  .article-content h2 { font-size: 1.5rem; }
  .article-content h3 { font-size: 1.25rem; }
  .article-content blockquote { padding: 24px 24px 24px 32px; }
  .article-content blockquote p { font-size: 1.0625rem; }
  .article-content .pull-quote p { font-size: 1.25rem; }
  .article-content pre { padding: 20px; }
 
  .author-bio {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-bio-avatar { margin: 0 auto; }
  .author-bio-links { justify-content: center; }
 
  .related-grid { grid-template-columns: 1fr; }
  .related-card:nth-child(n+2) { display: none; }
 
 
}
 
 
/* =========================================================
   SCROLL ANIMATIONS utility
   ========================================================= */
.article-content > * {
  animation: fadeUp 0.6s ease both;
}