/*!
 * InterGlobal Blog Stylesheet — FLAW #13 fix.
 * Self-hosted replacement for the runtime Tailwind CDN. Ships only the
 * utilities + components actually used by /blog/_TEMPLATE_V3.html so the
 * blog can hit Lighthouse ≥95/90/90 without runtime JIT compilation.
 * --------------------------------------------------------------------
 * Sections:
 *   1. Tokens + base
 *   2. Typography helpers
 *   3. Layout utilities (grid, flex, spacing)
 *   4. Color utilities (bg, text, border)
 *   5. Components (nav, blog content, TL;DR, FAQ, lead magnet, etc.)
 *   6. Responsive overrides (md/lg breakpoints)
 */

/* ---------- 1. Tokens + base ---------- */
:root {
    --ig-violet-400: #a78bfa;
    --ig-violet-500: #8b5cf6;
    --ig-violet-600: #7c3aed;
    --ig-cyan-400: #22d3ee;
    --ig-cyan-500: #06b6d4;
    --ig-dark-950: #050507;
    --ig-dark-900: #0a0a0f;
    --ig-dark-800: #0d0d14;
    --ig-text: #d1d5db;
    --ig-muted: #9ca3af;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.6; color: #fff; background: var(--ig-dark-950); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ---------- 2. Typography ---------- */
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; font-weight: 700; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-3xl { font-size: 1.875rem; }
.text-2xl { font-size: 1.5rem; }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.15; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ---------- 3. Layout ---------- */
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
/* ponytail: max-w-6xl was used by V3/Tifo without a CSS rule → full-bleed wide posts. Keep as alias of 4xl. */
.max-w-6xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-32 { padding-top: 8rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.-mt-4 { margin-top: -1rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.h-20 { height: 5rem; }
.h-10 { height: 2.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-auto { width: auto; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-full { width: 100%; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.rounded-full { border-radius: 9999px; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-lg { border-radius: 0.5rem; }
.transition-colors { transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
.transition-all { transition: all 300ms ease; }
.transition-opacity { transition: opacity 300ms ease; }
.duration-500 { transition-duration: 500ms; }
.border-t { border-top: 1px solid; }

/* ---------- 4. Colors ---------- */
.bg-dark-950 { background-color: var(--ig-dark-950); }
.bg-dark-900 { background-color: var(--ig-dark-900); }
.bg-dark-800\/95 { background-color: rgba(13,13,20,0.95); }
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-violet-400 { color: var(--ig-violet-400); }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.border-white\/10 { border-color: rgba(255,255,255,0.10); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-from), var(--tw-gradient-to, transparent)); }
.from-violet-950\/20 { --tw-gradient-from: rgba(46,16,101,0.2); }
.via-dark-950 { --tw-gradient-via: var(--ig-dark-950); background-image: linear-gradient(to bottom, var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to)); }
.to-dark-950 { --tw-gradient-to: var(--ig-dark-950); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-violet-500 { --tw-gradient-from: var(--ig-violet-500); }
.to-cyan-500 { --tw-gradient-to: var(--ig-cyan-500); }

.backdrop-blur-xl { backdrop-filter: blur(24px); }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:bg-white\/5:hover { background-color: rgba(255,255,255,0.05); }
.hover\:text-white:hover { color: #fff; }
.group:hover .group-hover\:opacity-80 { opacity: 0.8; }
.group:hover .group-hover\:text-violet-400 { color: var(--ig-violet-400); }
.scroll-smooth { scroll-behavior: smooth; }

/* ---------- 5. Components ---------- */
.nav-link { color: #cbd5e1; padding: 0.5rem 1rem; border-radius: 0.5rem; transition: color 200ms ease, background-color 200ms ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; background: linear-gradient(135deg, var(--ig-violet-500), var(--ig-violet-600)); color: #fff; border-radius: 9999px; font-weight: 600; transition: transform 200ms ease, box-shadow 200ms ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(139,92,246,0.35); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 9999px; font-weight: 600; }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

#reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--ig-violet-500), var(--ig-cyan-400)); z-index: 9999; transition: width 100ms ease; }

.blog-category { display: inline-flex; align-items: center; padding: 0.375rem 0.875rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 9999px; background: rgba(139,92,246,0.15); color: var(--ig-violet-400); border: 1px solid rgba(139,92,246,0.2); }

.blog-post-content { line-height: 1.8; }
.blog-post-content h2 { font-size: 1.875rem; font-weight: 700; color: #fff; margin-top: 2.5rem; margin-bottom: 1rem; scroll-margin-top: 6rem; }
.blog-post-content h3 { font-size: 1.5rem; font-weight: 600; color: var(--ig-violet-400); margin-top: 2rem; margin-bottom: 0.75rem; scroll-margin-top: 6rem; }
.blog-post-content p { color: var(--ig-muted); margin-bottom: 1.5rem; font-size: 1.125rem; }
.blog-post-content ul, .blog-post-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--ig-muted); }
.blog-post-content li { margin-bottom: 0.5rem; font-size: 1.125rem; }
.blog-post-content ul li { list-style-type: disc; }
.blog-post-content ol li { list-style-type: decimal; }
.blog-post-content a { color: var(--ig-cyan-400); text-decoration: underline; text-underline-offset: 3px; }
.blog-post-content a:hover { color: var(--ig-violet-400); }
.blog-post-content blockquote { border-left: 4px solid var(--ig-violet-500); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--ig-text); }
.blog-post-content img { border-radius: 1rem; margin: 2rem 0; width: 100%; }
.text-highlight { color: #fff; font-weight: 600; background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(34,211,238,0.2)); padding: 0.1em 0.4em; border-radius: 0.25em; }

.tldr-card { background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(34,211,238,0.06)); border: 1px solid rgba(139,92,246,0.2); border-radius: 1.25rem; padding: 1.75rem 2rem; margin: 1.5rem 0 2rem; position: relative; }
.tldr-card::before { content: 'TL;DR'; position: absolute; top: -0.7rem; left: 1.25rem; background: linear-gradient(135deg, var(--ig-violet-500), var(--ig-violet-600)); color: #fff; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; padding: 0.35rem 0.7rem; border-radius: 0.5rem; }
.tldr-card p { color: #e5e7eb; font-size: 1.05rem; margin: 0; }
.tldr-card ul { margin-top: 0.75rem; padding-left: 1.25rem; color: #cbd5e1; font-size: 0.98rem; }

.aeo-answer { background: rgba(34,211,238,0.05); border-left: 4px solid var(--ig-cyan-400); border-radius: 0 1rem 1rem 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.aeo-answer p { margin: 0; color: #e5e7eb; font-size: 1.05rem; }
.aeo-answer p strong { color: var(--ig-cyan-400); }

.faq-section { margin: 4rem 0; padding: 3rem; background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(34,211,238,0.04)); border-radius: 2rem; border: 1px solid rgba(139,92,246,0.15); position: relative; overflow: hidden; }
.faq-title { font-size: 1.75rem; font-weight: 700; color: #fff; margin-bottom: 2rem; }
.faq-item { margin-bottom: 1rem; border-radius: 1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; transition: all 300ms ease; }
.faq-item:hover { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.05); }
.faq-item summary { padding: 1.25rem 1.5rem; font-weight: 600; color: #fff; cursor: pointer; display: flex; justify-content: space-between; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--ig-violet-500); transition: transform 300ms ease; }
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 1.25rem 1.5rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

#toc-nav { position: fixed; top: 50%; right: 1.5rem; transform: translateY(-50%); width: 220px; max-height: 60vh; overflow-y: auto; padding: 1rem; background: rgba(12,12,20,0.92); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.06); border-radius: 1rem; z-index: 40; font-size: 0.82rem; }
#toc-nav .toc-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ig-violet-400); margin-bottom: 0.5rem; padding: 0 0.5rem; }
#toc-nav a { display: block; padding: 0.35rem 0.5rem; color: #a1a1aa; text-decoration: none; border-radius: 0.375rem; margin-bottom: 0.125rem; transition: all 200ms ease; }
#toc-nav a.active { color: #fff; background: rgba(139,92,246,0.15); }
@media (max-width: 1279px) { #toc-nav { display: none; } }

.listen-bar { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.55rem 1.1rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(139,92,246,0.25); border-radius: 9999px; color: #fff; font-size: 0.85rem; cursor: pointer; transition: all 250ms ease; }
.listen-bar:hover { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.5); }
.listen-bar svg { width: 18px; height: 18px; }
.listen-bar.playing { background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.5); }

.lead-magnet { display: grid; grid-template-columns: 1fr; gap: 1.5rem; background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(139,92,246,0.05)); border: 1px solid rgba(34,211,238,0.2); border-radius: 1.5rem; padding: 2rem; margin: 3rem 0; align-items: center; }
.lead-magnet h3 { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.lead-magnet p { color: #cbd5e1; margin-bottom: 1rem; }
.lead-magnet form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lead-magnet input[type="email"] { flex: 1; min-width: 200px; padding: 0.75rem 1rem; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; color: #fff; font-size: 0.95rem; }
.lead-magnet input[type="email"]:focus { outline: none; border-color: var(--ig-cyan-400); }
.lead-magnet button { padding: 0.75rem 1.5rem; background: linear-gradient(135deg, var(--ig-cyan-400), var(--ig-cyan-500)); color: #fff; border-radius: 0.75rem; font-weight: 600; }
.lead-magnet button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34,211,238,0.3); }

.author-footer { display: grid; grid-template-columns: 1fr; gap: 1.25rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 1.5rem; padding: 1.75rem; margin: 3rem 0 2rem; }
.author-footer .author-avatar { width: 96px; height: 96px; border-radius: 9999px; object-fit: cover; border: 2px solid rgba(139,92,246,0.4); background: linear-gradient(135deg, var(--ig-violet-500), var(--ig-cyan-500)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 2rem; }
.author-footer h4 { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.15rem; }
.author-footer .author-credentials { color: var(--ig-cyan-400); font-size: 0.85rem; margin-bottom: 0.65rem; }
.author-footer .author-bio { color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.65rem; }
.author-footer .author-social a { color: var(--ig-violet-400); font-size: 0.85rem; margin-right: 1rem; }
.author-footer .author-social a:hover { color: #fff; }

.related-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 2rem 0; }
.related-card { display: block; padding: 1.25rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem; transition: all 250ms ease; }
.related-card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,0.3); }
.related-card .related-cat { color: var(--ig-cyan-400); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.related-card h5 { color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.4; }

.repurpose-rail { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.repurpose-rail a, .repurpose-rail button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 9999px; color: #cbd5e1; font-size: 0.8rem; transition: all 250ms ease; }
.repurpose-rail a:hover, .repurpose-rail button:hover { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.3); color: #fff; }

.lang-switcher { display: inline-flex; gap: 0.35rem; padding: 0.25rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 9999px; }
.lang-switcher a { padding: 0.35rem 0.8rem; font-size: 0.75rem; font-weight: 600; color: #9ca3af; border-radius: 9999px; transition: all 200ms ease; }
.lang-switcher a.active { background: rgba(139,92,246,0.2); color: #fff; }

cite[data-source] { font-style: normal; font-size: 0.85em; color: var(--ig-violet-400); }
cite[data-source]::before { content: '↗ '; opacity: 0.65; }

/* Premium components */
.stat-card { background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(6,182,212,0.05)); border: 1px solid rgba(139,92,246,0.2); border-radius: 1.25rem; padding: 2rem; margin: 2rem 0; text-align: center; }
.stat-card .stat-number { display: block; font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, var(--ig-violet-400), var(--ig-cyan-400)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.stat-card .stat-label { color: var(--ig-muted); font-size: 0.95rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1rem; margin: 2rem 0; padding: 1.5rem; background: rgba(255,255,255,0.02); border-radius: 1rem; border: 1px solid rgba(255,255,255,0.06); }
.stats-row .stat-item { text-align: center; }
.stats-row .stat-value { font-size: 1.75rem; font-weight: 700; background: linear-gradient(135deg, var(--ig-violet-400), var(--ig-cyan-400)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.stats-row .stat-desc { font-size: 0.8rem; color: var(--ig-muted); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.25rem; margin: 2rem 0; }
.feature-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 1rem; padding: 1.5rem; transition: all 300ms ease; }
.feature-card:hover { border-color: rgba(139,92,246,0.3); transform: translateY(-4px); }
.feature-card h4 { color: #fff; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--ig-muted); font-size: 0.9rem; margin: 0; }
.step-grid { display: grid; gap: 1.5rem; margin: 2rem 0; counter-reset: step-counter; }
.step-card { display: flex; gap: 1.25rem; padding: 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 1rem; counter-increment: step-counter; }
.step-card::before { content: counter(step-counter); flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(34,211,238,0.15)); border-radius: 12px; color: #fff; }
.step-card h4 { color: #fff; font-weight: 600; margin-bottom: 0.5rem; }
.step-card p { color: var(--ig-muted); margin: 0; }
.info-card { display: flex; gap: 1.25rem; padding: 1.5rem; background: linear-gradient(135deg, rgba(139,92,246,0.04), transparent); border: 1px solid rgba(139,92,246,0.12); border-radius: 1rem; margin: 1.5rem 0; }
.info-card .info-icon { flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(34,211,238,0.1)); border-radius: 14px; }
.info-card h4 { color: #fff; font-weight: 600; margin-bottom: 0.5rem; }
.info-card p { color: var(--ig-muted); margin: 0; }
.cta-button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: linear-gradient(135deg, var(--ig-violet-500), var(--ig-violet-600)); border-radius: 9999px; color: #fff; font-weight: 600; text-decoration: none; transition: all 300ms ease; }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,92,246,0.4); }
.tip-card { display: flex; gap: 1rem; background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.2); border-radius: 1rem; padding: 1.25rem; margin: 1.75rem 0; }
.tip-card strong { color: #4ade80; }
.warning-card { display: flex; gap: 1rem; background: rgba(251,146,60,0.06); border: 1px solid rgba(251,146,60,0.2); border-radius: 1rem; padding: 1.25rem; margin: 1.75rem 0; }
.warning-card strong { color: #fb923c; }
.quote-card { background: rgba(139,92,246,0.05); border-left: 4px solid var(--ig-violet-500); border-radius: 0 1rem 1rem 0; padding: 1.5rem; margin: 2rem 0; }
.quote-card blockquote { font-size: 1.15rem; font-style: italic; color: var(--ig-text); margin: 0 0 0.5rem; }
.quote-card cite { color: var(--ig-violet-400); font-size: 0.9rem; }
.key-takeaways { background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(6,182,212,0.06)); border: 1px solid rgba(139,92,246,0.15); border-radius: 1rem; padding: 1.5rem; margin: 2rem 0; }
.key-takeaways h4 { color: #fff; font-weight: 600; margin-bottom: 0.75rem; }
.cta-box { background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(124,58,237,0.06)); border: 1px solid rgba(139,92,246,0.25); border-radius: 1rem; padding: 1.5rem; margin: 2rem 0; text-align: center; }
.cta-box strong { color: #fff; }

/* Tables (comparison-table + any table inside post content) */
.blog-post-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem; overflow: hidden; display: block; overflow-x: auto; }
.blog-post-content table thead th { background: rgba(139,92,246,0.12); color: var(--ig-violet-400); font-weight: 700; font-size: 0.85rem; text-align: left; padding: 0.9rem 1.25rem; white-space: nowrap; }
.blog-post-content table tbody td { padding: 0.85rem 1.25rem; color: var(--ig-text); font-size: 0.95rem; border-top: 1px solid rgba(255,255,255,0.06); vertical-align: top; }
.blog-post-content table tbody tr:hover { background: rgba(139,92,246,0.05); }
.blog-post-content table tbody td:first-child { color: #fff; font-weight: 600; }

.comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.25rem; margin: 2rem 0; }
.comparison-grid > div { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem; padding: 1.5rem; }
.comparison-grid h4 { color: #fff; font-weight: 700; margin-bottom: 0.75rem; }

.highlight-box { background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(139,92,246,0.05)); border: 1px solid rgba(34,211,238,0.2); border-radius: 1rem; padding: 1.5rem; margin: 2rem 0; }
.highlight-box strong { color: var(--ig-cyan-400); }
.summary-box, .next-steps { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-left: 4px solid var(--ig-violet-500); border-radius: 0 1rem 1rem 0; padding: 1.5rem; margin: 2rem 0; }
.summary-box h4, .next-steps h4 { color: #fff; font-weight: 700; margin-bottom: 0.75rem; }
.quick-answer { background: rgba(34,211,238,0.05); border-left: 4px solid var(--ig-cyan-400); border-radius: 0 1rem 1rem 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; color: #e5e7eb; }
.quick-answer strong { color: var(--ig-cyan-400); }

/* Scroll-driven reveal for legacy figure.reveal (compositor-only, a11y-guarded) */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .blog-post-content .reveal { animation: ig-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    }
}
@keyframes ig-reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- 6. Responsive ---------- */
@media (min-width: 768px) {
    .md\:text-5xl { font-size: 3rem; }
    .md\:flex-row { flex-direction: row; }
    .lead-magnet { grid-template-columns: 2fr 1fr; }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
    .author-footer { grid-template-columns: 96px 1fr; }
}
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Self-hosted Inter (woff2 from variable font) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: local('Inter'), url('/fonts/inter-variable.woff2') format('woff2-variations');
}
