/*
 * Blog editorial layer. Loaded last in <head> on every /blog page so it wins over the
 * per-post inline <style> blocks (which carried the purple gradients, pills and tinted
 * boxes) without having to hand-edit 85 copies of them.
 *
 * Colours are the V2 tokens from src/theme/tokens.js. Rules of this layer:
 *   - no gradients, no glows, no coloured fills behind body content
 *   - one accent (blue) used for links, the step label and the primary button only
 *   - summary boxes are quiet: a rule, a small label, the text
 */
:root {
  --ed-bg: #FFFFFF;
  --ed-tint: #F7F8FA;
  --ed-ink: #1C1B18;
  --ed-body: #33322E;
  --ed-muted: #5C5952;
  --ed-dim: #6E6B64;
  --ed-rule: rgba(0, 0, 0, 0.08);
  --ed-blue: #3452D9;
  --ed-blue-hov: #2A43B8;
  --ed-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --ed-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ed-measure: 700px;
}

html body { background: var(--ed-bg) !important; color: var(--ed-body); font-family: var(--ed-sans) !important; -webkit-font-smoothing: antialiased; }
body a { color: var(--ed-blue); }
body a:hover { color: var(--ed-blue-hov); }

/* ---------- Header: one nav for every post ---------- */
body .site-header { background: #fff !important; border-bottom: 1px solid var(--ed-rule) !important; box-shadow: none !important; backdrop-filter: none !important; position: sticky; top: 0; z-index: 50; }
body .site-header .site-nav { max-width: 1100px; margin: 0 auto; height: 60px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; background: none !important; border: 0 !important; }
body .nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--ed-ink) !important; text-decoration: none !important; letter-spacing: -0.01em; }
body .nav-logo img { width: 24px; height: 24px; border-radius: 6px; }
body .nav-links { display: flex; align-items: center; gap: 26px; }
body .nav-links a { font-size: 14px; font-weight: 500; color: var(--ed-muted) !important; text-decoration: none !important; }
body .nav-links a:hover { color: var(--ed-ink) !important; }
body .nav-links a.nav-cta { background: var(--ed-blue) !important; color: #fff !important; padding: 8px 16px; border-radius: 8px; box-shadow: none !important; }
body .nav-links a.nav-cta:hover { background: var(--ed-blue-hov) !important; }
@media (max-width: 640px) { body .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Article header: no gradient, left-aligned, serif ---------- */
body .hero, body .post-hero, body .article-header {
  background: var(--ed-bg) !important; color: var(--ed-ink) !important; text-align: left !important;
  padding: 56px 24px 8px !important; border: 0 !important;
}
body .hero::before, body .hero::after, body .post-hero::before, body .post-hero::after { display: none !important; }
body .hero > .container, body .post-hero > .container { max-width: var(--ed-measure) !important; margin: 0 auto; padding: 0 !important; }
body .hero h1, body .post-hero h1, body .article-header h1 {
  font-family: var(--ed-serif) !important; font-weight: 600 !important; color: var(--ed-ink) !important;
  font-size: clamp(32px, 5vw, 46px) !important; line-height: 1.12 !important; letter-spacing: -0.015em !important;
  margin: 10px 0 16px !important; max-width: none !important; background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
body .hero h1 em, body .hero h1 span, body .post-hero h1 em, body .post-hero h1 span { font-style: normal !important; color: inherit !important; background: none !important; -webkit-text-fill-color: currentColor !important; font-family: inherit !important; }
body .post-intro, body .hero-sub, body .article-subtitle { font-size: 19px !important; line-height: 1.6 !important; color: var(--ed-muted) !important; max-width: none !important; margin: 0 0 18px !important; }
body .hero .breadcrumb, body .post-meta, body .hero .meta, body .article-meta {
  font-size: 13.5px !important; color: var(--ed-dim) !important; opacity: 1 !important; letter-spacing: 0 !important; text-transform: none !important;
}
body .hero .breadcrumb a, body .post-meta a { color: var(--ed-muted) !important; }
body .updated-badge { background: none !important; color: var(--ed-dim) !important; border: 0 !important; padding: 0 !important; font-size: inherit !important; font-weight: 400 !important; border-radius: 0 !important; }
body .updated-badge::before { content: '· '; }
body .hero .eyebrow, body .post-hero .eyebrow { background: none !important; border: 0 !important; padding: 0 !important; color: var(--ed-blue) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.08em !important; text-transform: uppercase; box-shadow: none !important; }
body .hero .eyebrow::before, body .post-hero .eyebrow::before { display: none !important; }

/* Share: quiet text links under the meta line */
body .share-bar { display: flex !important; gap: 16px !important; align-items: center; margin: 14px 0 0 !important; flex-wrap: wrap; }
body .share-bar > span { font-size: 13px; color: var(--ed-dim); }
body .share-bar a, body .share-bar button {
  background: none !important; color: var(--ed-muted) !important; border: 0 !important; padding: 0 !important;
  font: 500 13px var(--ed-sans) !important; display: inline-flex !important; align-items: center; gap: 6px; cursor: pointer; text-decoration: none !important;
}
body .share-bar a:hover, body .share-bar button:hover { color: var(--ed-ink) !important; }

/* ---------- Reading column ---------- */
body .article, body .post-body, body .article-body, body .blog-article { background: var(--ed-bg) !important; }
body .article > .container, body .post-body > .container, body .post-body.container, body .article-body {
  max-width: var(--ed-measure) !important; margin-left: auto; margin-right: auto;
}
body .article, body .post-body { padding-top: 24px !important; }
body .article p, body .post-body p, body .article-body p, body .article li, body .post-body li, body .article-body li {
  font-size: 18px; line-height: 1.75; color: var(--ed-body);
}
body .article h2, body .post-body h2, body .article-body h2 {
  font-family: var(--ed-serif) !important; font-weight: 600 !important; color: var(--ed-ink) !important;
  font-size: clamp(25px, 3.4vw, 31px) !important; line-height: 1.22 !important; letter-spacing: -0.01em !important;
  margin: 52px 0 14px !important; padding: 0 !important; border: 0 !important; background: none !important;
}
body .article h3, body .post-body h3, body .article-body h3 {
  font-family: var(--ed-sans) !important; font-weight: 650 !important; color: var(--ed-ink) !important;
  font-size: 19px !important; line-height: 1.35 !important; margin: 32px 0 10px !important;
}
body .article strong, body .post-body strong { color: var(--ed-ink); }
body .article img, body .post-body img, body .article-body img { border-radius: 10px !important; box-shadow: none !important; }
body article img[fetchpriority], body .article img:first-of-type { width: 100%; height: auto; }

/* ---------- Summary blocks: quiet, ruled, no tinted fills ---------- */
body .key-takeaways, body .quick-answer, body .callout, body .callout-tip, body .toc {
  background: var(--ed-tint) !important; border: 0 !important; border-radius: 10px !important;
  box-shadow: none !important; padding: 22px 26px !important; margin: 28px 0 !important;
}
body .quick-answer, body .callout, body .callout-tip { background: transparent !important; border-left: 3px solid var(--ed-blue) !important; border-radius: 0 !important; padding: 4px 0 4px 22px !important; }
body .key-takeaways-label, body .toc-label, body .toc h2, body .quick-answer > p:first-child[style], body .quick-answer-label {
  display: block; font: 600 12px var(--ed-sans) !important; letter-spacing: 0.08em !important; text-transform: uppercase !important;
  color: var(--ed-dim) !important; margin: 0 0 10px !important; background: none !important; padding: 0 !important;
}
body .key-takeaways ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
body .key-takeaways li { position: relative; padding-left: 20px !important; margin: 0 0 8px !important; font-size: 16.5px !important; line-height: 1.6 !important; }
body .key-takeaways li::before { content: '' !important; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ed-ink) !important; }
body .key-takeaways li svg, body .key-takeaways li img { display: none !important; }
body .quick-answer p { font-size: 17px !important; color: var(--ed-body) !important; }
body .toc ol, body .toc ul { margin: 0 0 0 18px !important; padding: 0 !important; }
body .toc li { font-size: 15.5px !important; margin: 0 0 6px !important; line-height: 1.5 !important; }
body .toc a { color: var(--ed-body) !important; text-decoration: none; }
body .toc a:hover { color: var(--ed-blue) !important; text-decoration: underline; }

/* Verdict / bottom line: was a purple gradient slab */
body .verdict-box {
  background: var(--ed-bg) !important; color: var(--ed-body) !important; border: 1px solid var(--ed-rule) !important;
  border-top: 3px solid var(--ed-ink) !important; border-radius: 0 0 10px 10px !important; box-shadow: none !important; padding: 22px 26px !important; margin: 32px 0 !important;
}
body .verdict-box h3, body .verdict-box h4 { color: var(--ed-ink) !important; font: 650 17px var(--ed-sans) !important; margin: 0 0 8px !important; }
body .verdict-box p { color: var(--ed-body) !important; opacity: 1 !important; font-size: 17px !important; margin: 0 !important; }

/* Numbered steps: were a pill + a squeezed title column */
body .step-block {
  display: block !important; background: none !important; border: 0 !important; border-top: 1px solid var(--ed-rule) !important;
  border-radius: 0 !important; box-shadow: none !important; padding: 22px 0 6px !important; margin: 0 !important;
}
body .step-block:last-of-type { border-bottom: 1px solid var(--ed-rule) !important; margin-bottom: 28px !important; }
body .step-block .step-num {
  display: block !important; background: none !important; color: var(--ed-blue) !important; padding: 0 !important; border-radius: 0 !important;
  font: 600 12px var(--ed-sans) !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; margin: 0 0 6px !important;
  width: auto !important; height: auto !important; min-width: 0 !important;
}
body .step-block h3 { margin: 0 0 8px !important; width: auto !important; }
body .step-block p { font-size: 17.5px !important; }

/* Stats and pull quotes */
body .stat-highlight {
  background: none !important; border: 0 !important; border-left: 3px solid var(--ed-ink) !important; border-radius: 0 !important;
  box-shadow: none !important; padding: 2px 0 2px 22px !important; margin: 28px 0 !important;
  font-family: var(--ed-serif) !important; font-size: 21px !important; line-height: 1.5 !important; color: var(--ed-ink) !important;
}
body .stat-highlight:has(.stat-item) { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; border-left: 0 !important; padding: 0 !important; font-family: var(--ed-sans) !important; }
body .stat-item { background: none !important; border: 0 !important; border-top: 2px solid var(--ed-ink) !important; border-radius: 0 !important; padding: 12px 0 0 !important; box-shadow: none !important; }
body .stat-item .stat-number, body .stat-item strong:first-child { font: 600 30px var(--ed-serif) !important; color: var(--ed-ink) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
body .stat-item .stat-label, body .stat-item p { font-size: 15px !important; color: var(--ed-muted) !important; }
body .pull-quote {
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  margin: 40px 0 !important; padding: 0 0 0 26px !important; border-left: 3px solid var(--ed-blue) !important;
}
body .pull-quote p { font-family: var(--ed-serif) !important; font-style: italic !important; font-size: 23px !important; line-height: 1.45 !important; color: var(--ed-ink) !important; margin: 0 !important; }
body .pull-quote::before, body .pull-quote::after { display: none !important; }

/* Tables */
body table.comparison-table, body .compare-table, body .post-body table, body .article table {
  width: 100%; border-collapse: collapse !important; font-size: 15px !important; margin: 26px 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important;
}
body .comparison-wrap { overflow-x: auto; border: 0 !important; box-shadow: none !important; }
body .post-body th, body .article th, body .comparison-table th {
  background: none !important; color: var(--ed-ink) !important; font-weight: 600 !important; text-align: left;
  border-bottom: 2px solid var(--ed-ink) !important; padding: 10px 12px !important; font-size: 13.5px !important;
}
body .post-body td, body .article td, body .comparison-table td { border-bottom: 1px solid var(--ed-rule) !important; padding: 11px 12px !important; background: none !important; color: var(--ed-body); line-height: 1.5; }
body .comparison-table tr:nth-child(even) td { background: none !important; }
body .check { color: #10A56E !important; } body .cross { color: #D64545 !important; } body .partial { color: #8A6A2E !important; }

/* ---------- Product CTAs: one flat component everywhere ---------- */
body .inline-cta, body .post-cta, body .cta-block, body .blog-cta-section > .container {
  background: var(--ed-tint) !important; color: var(--ed-body) !important; border: 0 !important; border-radius: 12px !important;
  box-shadow: none !important; padding: 28px 30px !important; margin: 40px 0 !important; text-align: left !important;
}
body .blog-cta-section { background: var(--ed-bg) !important; padding: 8px 24px 24px !important; border: 0 !important; }
body .blog-cta-section > .container { max-width: var(--ed-measure) !important; margin: 0 auto !important; }
body .inline-cta::before, body .inline-cta::after, body .cta-block::before, body .post-cta::before { display: none !important; }
body .inline-cta h3, body .post-cta h3, body .cta-block h2, body .blog-cta-section h2 {
  font: 600 22px/1.3 var(--ed-serif) !important; color: var(--ed-ink) !important; margin: 0 0 8px !important; letter-spacing: -0.005em !important;
}
body .inline-cta p, body .post-cta p, body .cta-block p, body .blog-cta-section p { color: var(--ed-muted) !important; font-size: 16px !important; opacity: 1 !important; margin: 0 0 16px !important; }
body .inline-cta-eyebrow, body .blog-cta-section .eyebrow { font: 600 12px var(--ed-sans) !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; color: var(--ed-blue) !important; background: none !important; padding: 0 !important; border: 0 !important; margin: 0 0 8px !important; }
body .inline-cta .btn-white, body .btn.btn-primary, body .post-cta .btn, body .cta-btn {
  display: inline-block; background: var(--ed-blue) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
  padding: 11px 20px !important; font: 600 15px var(--ed-sans) !important; box-shadow: none !important; text-decoration: none !important; transform: none !important;
}
body .inline-cta .btn-white:hover, body .btn.btn-primary:hover, body .post-cta .btn:hover { background: var(--ed-blue-hov) !important; }
body .cta-fine { font-size: 13px !important; color: var(--ed-dim) !important; margin: 12px 0 0 !important; }
body .cta-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
body .cta-badge { background: none !important; border: 0 !important; padding: 0 !important; font-size: 13.5px !important; color: var(--ed-muted) !important; }
body .cta-badge-check { color: var(--ed-blue) !important; background: none !important; }
body .cta-btn-row { display: flex; gap: 12px; justify-content: flex-start !important; }

/* Newsletter box */
body .inline-email-capture { background: none !important; border: 0 !important; border-top: 1px solid var(--ed-rule) !important; border-bottom: 1px solid var(--ed-rule) !important; border-radius: 0 !important; padding: 26px 0 !important; margin: 44px 0 !important; text-align: left !important; }
body .inline-email-capture > p:first-child { font: 600 12px var(--ed-sans) !important; letter-spacing: 0.08em !important; text-transform: uppercase; color: var(--ed-dim) !important; margin: 0 0 6px !important; }
body .inline-email-capture > p:nth-child(2) { font: 600 21px/1.3 var(--ed-serif) !important; color: var(--ed-ink) !important; margin: 0 0 6px !important; }
body .inline-email-capture > p:nth-child(3) { font-size: 15.5px !important; color: var(--ed-muted) !important; margin: 0 0 16px !important; }
body .inline-email-form { display: flex !important; gap: 8px !important; justify-content: flex-start !important; flex-wrap: wrap; max-width: 460px; }
body .inline-email-form input { flex: 1 1 220px; border: 1px solid rgba(0,0,0,0.16) !important; border-radius: 8px !important; padding: 10px 12px !important; font: 15px var(--ed-sans) !important; background: #fff !important; }
body .inline-email-form button { background: var(--ed-ink) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; padding: 10px 18px !important; font: 600 14px var(--ed-sans) !important; cursor: pointer; }

/* ---------- Byline, sources, FAQ, related, footer ---------- */
body .author-bio-section { background: var(--ed-bg) !important; padding: 8px 24px 32px !important; border: 0 !important; }
body .author-bio { background: none !important; border: 0 !important; border-top: 1px solid var(--ed-rule) !important; border-radius: 0 !important; box-shadow: none !important; padding: 22px 0 0 !important; display: block !important; }
body .author-avatar { display: none !important; }
body .author-name { font: 600 15px var(--ed-sans) !important; color: var(--ed-ink) !important; }
body .author-creds { font-size: 13.5px !important; color: var(--ed-dim) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; margin: 2px 0 8px !important; }
body .author-desc { font-size: 15px !important; color: var(--ed-muted) !important; font-style: normal !important; }

body .sources-section { border-top: 1px solid var(--ed-rule) !important; }
body .sources-section h2 { font: 600 13px var(--ed-sans) !important; letter-spacing: 0.08em !important; text-transform: uppercase; color: var(--ed-dim) !important; margin: 0 0 12px !important; }
body .sources-section li, body .sources-section p { font-size: 14.5px !important; line-height: 1.6 !important; color: var(--ed-muted) !important; }
body .how-to-cite { background: var(--ed-tint) !important; border: 0 !important; border-radius: 10px !important; font-size: 14px !important; }

body .faq-section { background: var(--ed-bg) !important; border-top: 1px solid var(--ed-rule) !important; padding: 48px 24px !important; }
body .faq-section > .container { max-width: var(--ed-measure) !important; margin: 0 auto; }
body .faq-section h2 { font: 600 clamp(25px, 3.4vw, 31px)/1.2 var(--ed-serif) !important; color: var(--ed-ink) !important; margin: 0 0 18px !important; }
body .faq-item { background: none !important; border: 0 !important; border-bottom: 1px solid var(--ed-rule) !important; border-radius: 0 !important; box-shadow: none !important; padding: 18px 0 !important; margin: 0 !important; }
body .faq-item h3, body .faq-q { font: 650 17.5px/1.4 var(--ed-sans) !important; color: var(--ed-ink) !important; margin: 0 0 8px !important; }
body .faq-item p, body .faq-a { font-size: 16.5px !important; color: var(--ed-body) !important; margin: 0 !important; }

body .related-links, body .related-section { background: var(--ed-tint) !important; border-top: 0 !important; padding: 44px 24px !important; }
body .related-links > .container, body .related-section > .container { max-width: var(--ed-measure) !important; margin: 0 auto !important; }
body .related-links h2, body .related-section h2 { font: 600 13px var(--ed-sans) !important; letter-spacing: 0.08em !important; text-transform: uppercase; color: var(--ed-dim) !important; margin: 0 0 14px !important; }
body .related-links ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: block !important; columns: 2 260px; column-gap: 32px; }
body .related-links li { margin: 0 0 10px !important; break-inside: avoid; }
body .related-links a { font-size: 15.5px; color: var(--ed-ink) !important; text-decoration: none; }
body .related-links a:hover { color: var(--ed-blue) !important; text-decoration: underline; }
body .related-card { background: #fff !important; border: 1px solid var(--ed-rule) !important; box-shadow: none !important; border-radius: 10px !important; transform: none !important; }
body .related-card-cat { background: none !important; color: var(--ed-dim) !important; padding: 0 !important; }

body .site-footer { background: var(--ed-bg) !important; color: var(--ed-dim) !important; border-top: 1px solid var(--ed-rule) !important; }
body .site-footer a { color: var(--ed-muted) !important; }

/* Floating chrome that read as template filler */
body #btt { display: none !important; }
body #rp { background: var(--ed-blue) !important; height: 2px !important; }
body .proof-strip { display: none !important; }
body .anchor-link { color: var(--ed-dim) !important; }

@media (max-width: 640px) {
  body .hero, body .post-hero { padding: 36px 20px 4px !important; }
  body .article, body .post-body { padding-left: 20px !important; padding-right: 20px !important; }
  body .article p, body .post-body p, body .article li, body .post-body li { font-size: 17px; }
  body .inline-cta, body .post-cta, body .cta-block, body .blog-cta-section > .container { padding: 22px 20px !important; }
  body .pull-quote p { font-size: 20px !important; }
}

/* blog.css gives these a gradient tile + glow and a check-icon disc; neutralise both */
body .step-block .step-num { box-shadow: none !important; font-style: normal !important; justify-content: flex-start !important; }
body .step-block:hover { box-shadow: none !important; border-color: var(--ed-rule) !important; }
body .key-takeaways li { display: block !important; }
body .key-takeaways li::before { background-image: none !important; min-width: 0 !important; margin: 0 !important; border-radius: 50% !important; }

/* ---------- Blog index + topic hubs ---------- */
body .blog-index-hero { background: var(--ed-bg) !important; border-bottom: 1px solid var(--ed-rule) !important; text-align: left !important; padding: 64px 24px 40px !important; }
body .blog-index-hero > .container { max-width: 1040px !important; margin: 0 auto; }
body .blog-index-hero h1 { font: 600 clamp(34px, 5vw, 52px)/1.1 var(--ed-serif) !important; letter-spacing: -0.015em !important; color: var(--ed-ink) !important; max-width: 760px; margin: 0 0 14px !important; }
body .blog-index-hero .sub { margin: 0 !important; max-width: 620px !important; font-size: 18px !important; color: var(--ed-muted) !important; }

body .category-row { display: flex; flex-wrap: wrap; gap: 6px 22px !important; margin-bottom: 36px !important; border-bottom: 1px solid var(--ed-rule); padding-bottom: 14px; }
body .cat-pill { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; font: 500 14.5px var(--ed-sans) !important; color: var(--ed-muted) !important; }
body .cat-pill:hover { color: var(--ed-ink) !important; text-decoration: none; }
body .cat-pill.active { color: var(--ed-ink) !important; font-weight: 600 !important; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
body .cat-pill-dot { display: none !important; }

body .featured-article { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; transform: none !important; gap: 32px !important; }
body .featured-article-img { border-radius: 10px !important; overflow: hidden; }
body .featured-article-img-overlay { display: none !important; }
body .featured-article-body { padding: 4px 0 !important; background: none !important; }
body .featured-label { background: none !important; border: 0 !important; padding: 0 !important; color: var(--ed-blue) !important; font: 600 12px var(--ed-sans) !important; letter-spacing: 0.08em !important; text-transform: uppercase; }
body .featured-label::before { display: none !important; }
body .featured-article h2 { font: 600 clamp(26px, 3.4vw, 34px)/1.18 var(--ed-serif) !important; color: var(--ed-ink) !important; letter-spacing: -0.01em !important; }
body .featured-article p { color: var(--ed-muted) !important; font-size: 17px !important; }
body .featured-read-more { color: var(--ed-blue) !important; }

body .section-header h2 { font: 600 28px var(--ed-serif) !important; color: var(--ed-ink) !important; }
body .section-header-count { color: var(--ed-dim) !important; background: none !important; }

/* Cards: the gradient cover + clipboard icon becomes a plain category label */
body .blog-grid { gap: 0 32px !important; }
body .b-card { background: none !important; border: 0 !important; border-top: 1px solid var(--ed-rule) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; padding: 0 !important; overflow: visible !important; }
body .b-card:hover h3 { color: var(--ed-blue) !important; }
body .b-cover { height: auto !important; min-height: 0 !important; background: none !important; padding: 18px 0 0 !important; display: block !important; }
body .b-cover::before, body .b-cover::after, body .b-cover svg { display: none !important; }
body .b-cover-tag { position: static !important; background: none !important; border: 0 !important; padding: 0 !important; color: var(--ed-dim) !important; font: 600 11.5px var(--ed-sans) !important; letter-spacing: 0.08em !important; text-transform: uppercase; backdrop-filter: none !important; }
body .b-body { padding: 8px 0 26px !important; }
body .b-body h3 { font: 600 20px/1.3 var(--ed-serif) !important; color: var(--ed-ink) !important; margin: 0 0 8px !important; transition: color .15s; }
body .b-body p { font-size: 15px !important; color: var(--ed-muted) !important; line-height: 1.55 !important; }
body .b-meta { color: var(--ed-dim) !important; }
body .b-read { color: var(--ed-blue) !important; }

body .index-cta { background: var(--ed-tint) !important; border: 0 !important; box-shadow: none !important; border-radius: 12px !important; text-align: left !important; }
body .index-cta h2 { font: 600 28px/1.2 var(--ed-serif) !important; color: var(--ed-ink) !important; }
body .index-cta h2 .italic, body h2 .italic, body h1 .italic { font-family: inherit !important; font-style: normal !important; color: inherit !important; }
body .index-cta p { color: var(--ed-muted) !important; }
body .index-cta .fine { color: var(--ed-dim) !important; }
body input#blog-search { border: 1px solid rgba(0,0,0,0.14) !important; border-radius: 8px !important; }

body .b-cover { aspect-ratio: auto !important; }
body .grad-indigo, body .grad-cyan, body .grad-blue { font-weight: inherit !important; background: none !important; -webkit-text-fill-color: currentColor !important; color: inherit !important; font-family: inherit !important; font-style: normal !important; }
/* Topic hubs reuse .hero with a centred CTA row and a full-bleed photo */
body .hero .cta-row { justify-content: flex-start !important; margin-top: 8px; }
body .hero .btn-ghost { background: none !important; border: 1px solid rgba(0,0,0,0.14) !important; color: var(--ed-ink) !important; border-radius: 8px !important; box-shadow: none !important; }
body .hero + img, body .hero + div > img, body .hero + figure img { display: block; max-width: 1040px; width: calc(100% - 48px); margin: 24px auto 0; border-radius: 10px; height: auto; max-height: 420px; object-fit: cover; }
body > .toc, body > .key-takeaways { max-width: var(--ed-measure); margin-left: auto !important; margin-right: auto !important; }

/* Hub intro wrapper (photo + TOC): was a full-bleed blue band */
body .hub-intro { max-width: var(--ed-measure); margin: 24px auto 0; padding: 0 24px; background: none; }
body .hub-intro > img { width: 100% !important; max-height: 340px !important; border-radius: 10px; }

/* =====================================================================
   v2: magazine layer
   ===================================================================== */
body .article h2, body .post-body h2, body .article-body h2 { scroll-margin-top: 84px; }

/* Hero: kicker -> headline -> deck -> byline/meta -> share, on both templates */
body .post-hero > .container, body .hero > .container { display: flex; flex-direction: column; }
body .hero .breadcrumb, body .hero .eyebrow { order: 0; }
body .post-hero .ed-kicker, body .hero .ed-kicker { order: 1; }
body .post-hero h1, body .hero h1 { order: 2; }
body .post-hero .post-intro, body .hero .hero-sub { order: 3; }
body .post-hero .post-meta, body .hero .meta { order: 4; }
body .post-hero .share-bar, body .hero .share-bar { order: 5; }
body .hero .cta-row { order: 6; }
body .hero .breadcrumb { margin-bottom: 18px !important; }
body .ed-kicker { margin: 0 0 4px !important; font: 600 13px var(--ed-sans) !important; letter-spacing: 0.08em; text-transform: uppercase; }
body .ed-kicker a { color: var(--ed-blue) !important; text-decoration: none !important; }
body .hero h1, body .post-hero h1 { font-size: clamp(34px, 5.2vw, 54px) !important; line-height: 1.08 !important; margin: 6px 0 18px !important; text-wrap: balance; }
body .post-intro, body .hero-sub { font-size: clamp(18px, 2.2vw, 21px) !important; line-height: 1.55 !important; text-wrap: pretty; }
body .post-meta, body .hero .meta { padding-top: 16px; border-top: 1px solid var(--ed-rule); margin-top: 4px !important; }
body .post-meta::before, body .hero .meta::before {
  content: ''; display: inline-block; width: 22px; height: 22px; border-radius: 6px; vertical-align: -6px; margin-right: 9px;
  background: url(/favicon.png) center / cover no-repeat;
}
body .share-bar { margin-top: 10px !important; }

/* Cover photo: wider than the text column */
body img.ed-cover {
  display: block; width: min(1040px, calc(100vw - 48px)) !important; max-width: none !important; height: auto !important; max-height: none !important;
  aspect-ratio: 16 / 8; object-fit: cover; border-radius: 12px !important;
  position: relative; left: 50%; transform: translateX(-50%); margin: 12px 0 44px !important;
}

/* Body rhythm */
body .article p, body .post-body p, body .article-body p { text-wrap: pretty; }
body .post-body ol > li::marker, body .article ol > li::marker, body .article-body ol > li::marker { color: var(--ed-blue); font-weight: 600; }
body .post-body ul > li::marker, body .article ul > li::marker, body .article-body ul > li::marker { color: var(--ed-dim); }
body .article blockquote, body .post-body blockquote { margin: 32px 0; padding: 0 0 0 24px; border-left: 3px solid var(--ed-blue); font: italic 21px/1.5 var(--ed-serif); color: var(--ed-ink); }
body .article p a, body .article li a, body .post-body p a, body .post-body li a {
  text-decoration: underline; text-decoration-color: rgba(52, 82, 217, 0.35); text-underline-offset: 3px; text-decoration-thickness: 1px;
}
body .article p a:hover, body .post-body p a:hover { text-decoration-color: currentColor; }
body .toc a, body .key-takeaways a { text-decoration: none !important; }
body .key-takeaways { border-top: 3px solid var(--ed-ink) !important; border-radius: 0 0 10px 10px !important; }

/* Ranked app cards and their tags */
body .app-card { background: #fff !important; border: 1px solid var(--ed-rule) !important; border-radius: 12px !important; box-shadow: none !important; padding: 26px 28px !important; margin: 24px 0 !important; }
body .app-card h3 { margin-top: 0 !important; }
body .ranked-badge { background: var(--ed-ink) !important; color: #fff !important; border-radius: 6px !important; font: 600 12px var(--ed-sans) !important; padding: 3px 8px !important; box-shadow: none !important; }
body .pills { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 14px; }
body .pill, body .pill.green, body .pill.orange, body .price-tag, body .tagline {
  background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important;
  font: 500 13px var(--ed-sans) !important; color: var(--ed-dim) !important;
}
body .pros-cons-col, body .pros, body .cons { background: none !important; border: 0 !important; }

@media (max-width: 760px) {
  body .post-body table, body .article table, body .comparison-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body img.ed-cover { width: calc(100vw - 32px) !important; aspect-ratio: 16 / 10; border-radius: 10px !important; margin-bottom: 32px !important; }
}

/* Sticky "On this page" rail (built by editorial.js) */
.ed-rail {
  position: fixed; top: 96px; width: 230px; max-height: calc(100vh - 140px); overflow: auto;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 20;
}
.ed-rail.is-on { opacity: 1; visibility: visible; transform: none; }
.ed-rail-label { font: 600 11.5px var(--ed-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-dim); margin: 0 0 12px; }
.ed-rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ed-rule); }
.ed-rail li { margin: 0; }
.ed-rail ol a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font: 400 13.5px/1.4 var(--ed-sans); color: var(--ed-muted); text-decoration: none; }
.ed-rail ol a:hover { color: var(--ed-ink); }
.ed-rail ol a.is-active { color: var(--ed-ink); font-weight: 600; border-left-color: var(--ed-blue); }
.ed-rail-cta { display: block; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ed-rule); font: 600 13.5px/1.4 var(--ed-sans); color: var(--ed-blue) !important; text-decoration: none; }
@media (max-width: 1199px) { .ed-rail { display: none; } }

/* Keep reading: three photo cards */
body .keep-reading { background: var(--ed-tint); padding: 56px 24px 64px; border-top: 1px solid var(--ed-rule); }
body .kr-inner { max-width: 1040px; margin: 0 auto; }
body .keep-reading h2 { font: 600 30px/1.2 var(--ed-serif) !important; color: var(--ed-ink) !important; margin: 0 0 26px !important; }
body .kr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
body .kr-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none !important; color: inherit; }
body .kr-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 6px; background: #e9ebef; transition: opacity .2s; }
body .kr-card:hover img { opacity: .9; }
body .kr-cat { font: 600 11.5px var(--ed-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-dim); }
body .kr-title { font: 600 19px/1.3 var(--ed-serif); color: var(--ed-ink); }
body .kr-card:hover .kr-title { color: var(--ed-blue); }
@media (max-width: 760px) { body .kr-grid { grid-template-columns: 1fr; gap: 24px; } body .keep-reading { padding: 40px 16px 48px; } }
body .keep-reading + .related-links { background: var(--ed-bg) !important; }

/* Index cards with real cover photos */
body .b-cover { position: relative !important; padding: 0 !important; }
body .b-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #e9ebef; margin: 0 0 14px; }
body .b-card { border-top: 0 !important; padding-bottom: 8px !important; }
body .b-card:hover .b-cover img { opacity: .9; }
body .blog-grid { gap: 12px 32px !important; }

/* Mobile tables: an earlier rule forced overflow visible; scroll inside the table instead */
@media (max-width: 760px) {
  body table.comparison-table, body .compare-table, body .post-body table, body .article table, body .article-body table {
    display: block !important; overflow-x: auto !important; max-width: 100% !important;
  }
}
body .hero .quick-answer { order: 3; margin-top: 4px !important; }

@media (max-width: 760px) { body .app-card { padding: 18px 16px !important; } body .blog-index-hero { padding: 40px 20px 28px !important; } }

/* Standalone pages (editorial policy): same reading column and type as posts */
body .ed-page { max-width: var(--ed-measure) !important; margin: 0 auto; padding: 56px 24px 64px !important; }
body .ed-page > .badge { display: inline-block; background: none !important; border: 0 !important; padding: 0 !important; color: var(--ed-blue) !important; font: 600 13px var(--ed-sans) !important; letter-spacing: 0.08em; text-transform: uppercase; }
body .ed-page > h1 { font: 600 clamp(34px, 5.2vw, 50px)/1.1 var(--ed-serif) !important; color: var(--ed-ink) !important; letter-spacing: -0.015em; margin: 8px 0 12px !important; }
body .ed-page > .meta { color: var(--ed-dim) !important; font-size: 14px !important; padding-bottom: 18px; border-bottom: 1px solid var(--ed-rule); margin-bottom: 28px !important; }
body .ed-page h2 { font: 600 clamp(24px, 3.2vw, 29px)/1.25 var(--ed-serif) !important; color: var(--ed-ink) !important; margin: 44px 0 12px !important; }
body .ed-page p, body .ed-page li { font-size: 17.5px; line-height: 1.75; color: var(--ed-body); }
body .ed-page .policy-card, body .ed-page .source-tier, body .ed-page .contact-block { background: var(--ed-tint) !important; border: 0 !important; border-radius: 10px !important; box-shadow: none !important; padding: 20px 24px !important; }
body .ed-page .tier-label { font: 600 12px var(--ed-sans) !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-dim) !important; }
body .ed-page table { width: 100%; border-collapse: collapse; font-size: 15px; }
body .ed-page th { text-align: left; border-bottom: 2px solid var(--ed-ink); padding: 10px 12px; background: none !important; color: var(--ed-ink) !important; }
body .ed-page td { border-bottom: 1px solid var(--ed-rule); padding: 10px 12px; }

/* Generated covers (scripts/build-covers.mjs) are 1200x630 with the headline set inside the
   image, so every slot that shows one keeps that ratio and never crops. */
body img.ed-cover { aspect-ratio: 1200 / 630 !important; object-fit: contain !important; background: #FBFAF7; }
body .kr-card img, body .b-cover img, body .featured-article-img img, body img.hub-cover {
  aspect-ratio: 1200 / 630 !important; object-fit: cover; height: auto !important; max-height: none !important;
}
body .hub-intro img.hub-cover { width: 100% !important; border-radius: 10px; }
body .featured-article-img { aspect-ratio: auto !important; height: auto !important; }
body .featured-article-img img { width: 100%; display: block; }
@media (max-width: 760px) { body img.ed-cover { aspect-ratio: 1200 / 630 !important; } }

/* Logo is <picture> (WebP + PNG fallback); keep it laid out like the old bare <img>. */
picture:has(> img[src="/logo-56.png"]) { display: inline-flex; line-height: 0; flex-shrink: 0; }
