/* ═══════════════════════════════════════════════════════════════
   post.css: the article surface for /blog/<slug>

   One file, written once, replacing the five stacked rewrites in
   blog-article.css. Posts load exactly two stylesheets: post-chrome.css
   (the nav and footer, generated from style.css) and this.

   The page is built for reading, measured rather than guessed:
     - a 1040px column at 22px on desktop, about 100 real characters a
       line. Neel chose this on 3 Oct 2026: it restores the proportions of
       the August template he liked best ("pretty zoomed in"), after the
       640px and 760px columns both read as narrow. Measure line length
       from rendered line boxes, never `ch` units (one ch in Satoshi is the
       digit 0, 15px at 22px; the average character is 9.5px).
     - laptops and iPad landscape keep the contents rail and give the rest
       of the width to the column; iPad portrait and phones run full width,
       and phones run images edge to edge.
     - a compact near-black header so the article starts on the first
       screen, one left edge shared by the headline and the text.
     - contents on the left, and a quiet zone on the right that figures
       and tables break out into, so a wide screen is used by the things
       that need width instead of by longer lines.
     - six type sizes, six text colours, every text colour at 4.5:1 or
       better on the ground it sits on.
   ═══════════════════════════════════════════════════════════════ */

@font-face{font-family:"Satoshi";src:url("/fonts/satoshi-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Satoshi";src:url("/fonts/satoshi-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Satoshi";src:url("/fonts/satoshi-900.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap}

:root{
  /* ground and ink. Ratios are against --paper unless noted. */
  --paper:#fbfaf7;          /* warm reading ground, never pure white (DESIGN.md) */
  --paper-2:#f3f0ea;        /* panels: short answer, tables, FAQ, author */
  --card:#ffffff;
  --ink:#14110d;            /* headings, 18.0:1 */
  --ink-2:#3b362f;          /* body copy, 11.5:1 */
  --muted:#655e54;          /* meta and captions, 6.1:1 (5.6:1 on --paper-2) */
  --link:#b33a0a;           /* links, 5.7:1 (5.2:1 on --paper-2) */
  --accent:#ff5a1f;         /* brand orange: markers and the one button, never text on light */
  --good:#1a744b;
  --warn:#b4341a;
  --line:rgba(20,16,12,.12);
  --line-soft:rgba(20,16,12,.07);
  --black:#08070a;
  --on-dark:#ffffff;
  --on-dark-2:#bababa;      /* 10.4:1 on --black */
  --on-dark-accent:#ff8a5c; /* 8.7:1 on --black */

  --font:"Satoshi",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --r:12px;
  --r-lg:20px;

  /* the grid: contents rail, reading column, breakout zone */
  --rail:240px;
  --measure:1040px;
  --zone:0px;
  --gap:72px;
  --gutter:40px;
  --frame:calc(var(--rail) + var(--measure) + var(--gap));
  --frame-wide:1320px;      /* the blog index and topic pages at every width */
  --nav-h:64px;

  /* six sizes. Phones swap in smaller values of the same steps below. */
  --fs-meta:14px;
  --fs-ui:16px;
  --fs-body:22px;
  --fs-lede:26px;
  --fs-h2:34px;
  --fs-h1:60px;

  /* names the ported figure components still use */
  --art-ink:var(--ink);
  --art-ink-2:var(--ink-2);
  --art-muted:var(--muted);
  --art-paper:var(--paper-2);
  --art-bg:var(--card);
  --art-border:var(--line);
  --art-border-soft:var(--line-soft);
  --art-accent:var(--accent);
  --art-link:var(--link);
  --art-warn:var(--warn);
  --art-good:var(--good);
  --art-r:var(--r);
  --art-r-lg:var(--r-lg);
}

/* ── Page ─────────────────────────────────────────────────────── */
/* The site nav parks its off-canvas phone menu past the right edge. Clip it
   rather than hide it: overflow:hidden on an ancestor would kill the sticky
   contents rail. */
html{scroll-behavior:auto;-webkit-text-size-adjust:100%;overflow-x:clip}
body.post-page{overflow-x:clip}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body.post-page{
  margin:0;
  background:var(--paper);
  color:var(--ink-2);
  font-family:var(--font);
  font-size:var(--fs-ui);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
.post-page main{display:block}
::selection{background:rgba(255,90,31,.24);color:var(--ink)}
.post-hero ::selection,.post-cta ::selection{background:rgba(255,90,31,.5);color:#fff}
.ic{width:1em;height:1em;fill:currentColor;flex:0 0 auto;display:inline-block;vertical-align:-.125em}

/* Focus is always visible, and never the brand orange on a light ground,
   where it measures 3:1. The nav's logo had its ring removed on purpose
   (style.css, outline:none !important); it comes back here. */
.post-page :focus-visible{outline:2px solid var(--link);outline-offset:3px;border-radius:4px}
.post-page .premium-nav :focus-visible,
.post-page .premium-footer :focus-visible,
.post-hero :focus-visible,
.post-cta :focus-visible{outline-color:#fff}
.post-page .logo-link:focus-visible{outline:2px solid #fff !important;outline-offset:4px !important}

.skip-link{
  position:absolute;left:16px;top:-80px;z-index:10002;
  background:var(--card);color:var(--ink);
  font:700 var(--fs-ui)/1 var(--font);
  padding:14px 18px;border-radius:var(--r);
  box-shadow:0 8px 24px -8px rgba(0,0,0,.35);text-decoration:none;
}
.skip-link:focus{top:12px}

/* The marketing stylesheet sets perspective on body (a leftover of its 3D tilt cards), which makes body the
   containing block of every position:fixed box: the progress bar and the phone menu were pinned to the top of
   the document instead of the screen. Nothing on a guide is in 3D, so it goes. */
body.post-page{perspective:none}

/* reading progress, the one moving thing on the page */
.post-progress{position:fixed;inset:0 0 auto 0;height:3px;z-index:10001;pointer-events:none}
.post-progress span{display:block;height:100%;width:100%;background:var(--accent);transform-origin:0 50%;transform:scaleX(0)}

/* ── The frame every block shares, so there is one left edge ───── */
.post-frame{
  box-sizing:border-box;
  max-width:calc(var(--frame) + (var(--gutter) * 2));
  margin:0 auto;
  padding:0 var(--gutter);
  display:grid;
  grid-template-columns:var(--rail) minmax(0,var(--measure));
  column-gap:var(--gap);
}

/* ── Header: near-black, compact, the text column's left edge ─── */
.post-hero{background:var(--black);color:var(--on-dark);padding:40px 0 44px}
.post-head{grid-column:2;min-width:0}
.post-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 18px;font-size:var(--fs-meta);line-height:1.4;color:var(--on-dark-2)}
.post-crumb a{color:var(--on-dark-2);text-decoration:none;padding:6px 0}
.post-crumb a:hover{color:#fff;text-decoration:underline;text-underline-offset:.2em}
.post-crumb .ic{width:12px;height:12px;opacity:.7}
.post-head h1{
  margin:0 0 18px;
  font-family:var(--font);
  font-size:var(--fs-h1);line-height:1.08;font-weight:700;letter-spacing:-.025em;
  color:var(--on-dark);
  max-width:19em;
  text-wrap:balance;
  text-shadow:none;
}
.post-lede{margin:0 0 28px;max-width:var(--measure);font-size:var(--fs-lede);line-height:1.5;color:var(--on-dark-2)}

.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
.post-by{display:flex;align-items:center;gap:12px}
.post-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#26232b;flex:0 0 auto}
.post-by-text{display:flex;flex-direction:column;line-height:1.3}
.post-author{font-size:var(--fs-ui);font-weight:700;color:var(--on-dark);text-decoration:none}
a.post-author:hover{text-decoration:underline;text-underline-offset:.2em}
.post-role{font-size:var(--fs-meta);color:var(--on-dark-2)}
.post-facts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;row-gap:4px;font-size:var(--fs-meta);color:var(--on-dark-2)}
.post-facts li{display:flex;align-items:center}
.post-facts li + li::before{content:"";width:3px;height:3px;border-radius:50%;background:currentColor;margin:0 10px;opacity:.8}
.post-facts a{color:var(--on-dark-2);text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:.2em}
.post-facts a:hover{color:var(--on-dark);text-decoration-color:currentColor}
.post-checked{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-size:var(--fs-meta);color:var(--on-dark-2)}
.post-checked .ic{width:18px;height:18px;color:var(--on-dark-accent)}

/* ── Body grid ────────────────────────────────────────────────── */
.post-body{margin-top:48px;padding-bottom:96px}
.post-rail{grid-column:1;grid-row:1;align-self:start;position:sticky;top:calc(var(--nav-h) + 28px);max-height:calc(100vh - var(--nav-h) - 56px);overflow:auto;scrollbar-width:none;padding:4px 4px 12px 0}
.post-rail::-webkit-scrollbar{display:none}
.art-prose{grid-column:2;grid-row:1;min-width:0}
.post-toc-m{display:none}

.post-toc-h{margin:0 0 10px;font-size:var(--fs-meta);font-weight:700;color:var(--ink)}
.post-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.post-toc a{display:block;padding:7px 10px;margin-left:-10px;border-radius:8px;font-size:var(--fs-meta);line-height:1.35;color:var(--muted);text-decoration:none;transition:background-color .15s ease,color .15s ease}
.post-toc a:hover{color:var(--ink);background:var(--paper-2)}
.post-toc a[aria-current]{color:var(--ink);font-weight:700;background:var(--paper-2)}

.post-share-mini{margin-top:24px;padding-top:16px;border-top:1px solid var(--line-soft)}
.post-share-mini p{margin:0 0 8px;font-size:var(--fs-meta);font-weight:700;color:var(--ink)}
.post-share-mini div{display:flex;gap:6px}
.post-share-mini a,.post-share-mini button{
  width:40px;height:40px;display:grid;place-items:center;border-radius:50%;
  border:1px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer;padding:0;
  transition:border-color .15s ease,background-color .15s ease
}
.post-share-mini a:hover,.post-share-mini button:hover{border-color:rgba(20,16,12,.35)}
.post-share-mini .ic{width:18px;height:18px}

/* ── Reading type ─────────────────────────────────────────────── */
.art-prose{font-size:var(--fs-body);line-height:1.7;color:var(--ink-2);font-family:var(--font)}
.art-prose > *:first-child{margin-top:0}
.art-prose p,.art-prose li,.art-prose blockquote,.art-prose dd{max-width:none}
.art-prose p{margin:0 0 1.15em}
.art-prose h2,.art-prose h3{font-family:var(--font);color:var(--ink);text-shadow:none;text-wrap:balance;scroll-margin-top:calc(var(--nav-h) + 24px)}
.art-prose h2{font-size:var(--fs-h2);line-height:1.2;font-weight:700;letter-spacing:-.02em;margin:2.1em 0 .55em;position:relative}
.art-prose h3{font-size:var(--fs-lede);line-height:1.3;font-weight:700;letter-spacing:-.01em;margin:1.7em 0 .45em}
.art-prose a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em;text-decoration-color:rgba(179,58,10,.45);transition:text-decoration-color .15s ease}
.art-prose a:hover{text-decoration-color:currentColor;text-decoration-thickness:2px}
.art-prose b,.art-prose strong{font-weight:700;color:var(--ink)}
.art-prose i,.art-prose em{font-style:italic}

/* heading links: show on hover or focus, copy the section's address */
.h-anchor{position:absolute;left:-36px;top:50%;transform:translateY(-50%);width:28px;height:28px;display:grid;place-items:center;border-radius:6px;color:var(--muted);opacity:0;transition:opacity .15s ease}
.art-prose h2:hover .h-anchor,.h-anchor:focus-visible{opacity:1}
.h-anchor:hover{color:var(--ink);background:var(--paper-2)}
.h-anchor .ic{width:16px;height:16px}
.art-prose a.h-anchor{text-decoration:none}

/* lists: a drawn dot for bullets, a real step marker for steps */
.art-prose ul,.art-prose ol{margin:0 0 1.2em;padding:0;list-style:none}
.art-prose li{position:relative;margin:0}
.art-prose li + li{margin-top:.55em}
.art-prose ul > li{padding-left:1.35em}
.art-prose ul > li::before{content:"";position:absolute;left:.3em;top:.66em;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.art-prose ol{counter-reset:step}
.art-prose ol > li{counter-increment:step;padding-left:2.4em;min-height:1.65em}
.art-prose ol > li::before{
  content:counter(step);
  position:absolute;left:0;top:.12em;
  width:1.5em;height:1.5em;border-radius:50%;
  display:grid;place-items:center;
  background:var(--paper-2);border:1px solid var(--line);
  color:var(--ink);font-size:var(--fs-meta);font-weight:700;line-height:1;
  font-variant-numeric:tabular-nums;
}
.art-prose li > ul,.art-prose li > ol{margin:.55em 0 0}

.art-prose blockquote{margin:1.8em 0;padding:22px 26px;background:var(--paper-2);border-radius:var(--r);color:var(--ink);font-weight:400}
.art-prose blockquote p:last-child{margin-bottom:0}
.art-prose hr{border:0;height:0;margin:2.4em 0}
.art-prose code{font-size:.9em;background:var(--paper-2);padding:.1em .35em;border-radius:6px}

/* figures and images */
.art-prose figure{margin:2.4em 0}
.art-prose figure img,.blog-post-image img{display:block;width:100%;height:auto;border-radius:var(--r-lg);background:var(--paper-2);border:0}
.blog-post-image img{box-shadow:0 1px 2px rgba(20,16,12,.06),0 22px 48px -28px rgba(20,16,12,.32)}
.art-prose > figure.blog-post-image{margin-top:2.6em;margin-bottom:2.8em}
.art-prose figcaption,.blog-post-image figcaption{margin-top:12px;font-size:var(--fs-meta);line-height:1.5;color:var(--muted);max-width:var(--measure)}

/* ── Short answer, from the post's TL;DR ──────────────────────── */
.post-answer{background:var(--paper-2);border-radius:var(--r-lg);padding:26px 30px 24px;margin:0 0 2.2em}
.art-prose .post-answer h2{font-size:var(--fs-body);letter-spacing:-.01em;margin:0 0 .7em}
.art-prose .post-answer ul{margin:0}
.art-prose .post-answer li + li{margin-top:.6em}
/* early call to action under the short answer: one line, the matching service page, the free audit */
.post-cta-mini{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin:-.9em 0 2.2em;padding:16px 20px 16px 22px;background:var(--card);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:var(--r)}
.art-prose .post-cta-mini p{margin:0;flex:1 1 320px;font-size:var(--fs-ui);line-height:1.5;color:var(--ink)}
.art-prose .post-cta-mini p a{font-weight:700}
.art-prose a.post-cta-mini-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;background:var(--accent);color:var(--black);font-size:var(--fs-ui);font-weight:700;line-height:1;border-radius:999px;text-decoration:none;white-space:nowrap}
.art-prose a.post-cta-mini-btn:hover{background:#ff7440;color:var(--black);text-decoration:none}

/* ── The in-article pitch, set apart from the argument ────────── */
.post-pitch{background:var(--paper-2);border-radius:var(--r-lg);padding:28px 32px 26px;margin:2.6em 0}
.art-prose .post-pitch h2{font-size:var(--fs-lede);margin:0 0 .5em;letter-spacing:-.01em}
.post-pitch > :last-child{margin-bottom:0}

/* ── FAQ, at body size, inside the column ──────────────────────── */
.ava-faq-list{margin:0 0 1em;border-top:1px solid var(--line)}
.ava-faq{border-bottom:1px solid var(--line)}
.ava-faq summary{
  list-style:none;cursor:pointer;position:relative;
  padding:18px 48px 18px 0;
  font-size:var(--fs-body);line-height:1.4;font-weight:700;color:var(--ink);
}
.ava-faq summary::-webkit-details-marker{display:none}
.ava-faq summary .ic{position:absolute;right:8px;top:50%;width:20px;height:20px;margin-top:-10px;color:var(--muted);transition:transform .2s cubic-bezier(.16,1,.3,1)}
.ava-faq[open] summary .ic{transform:rotate(180deg)}
.ava-faq summary:hover{color:var(--link)}
.ava-faq-a{padding:0 0 20px}
.ava-faq-a p{margin:0 0 .8em}
.ava-faq-a p:last-child{margin:0}

/* ── Sources: the fact-checking, made visible ──────────────────── */
.art-prose .post-sources ol{counter-reset:step}
.post-sources ol > li{font-size:var(--fs-ui);line-height:1.5;padding-left:2.4em}
.post-sources ol > li::before{width:1.75em;height:1.75em;font-size:13px;top:0}
.post-sources ol > li + li{margin-top:.7em}
.post-sources .src-host{display:block;font-size:var(--fs-meta);color:var(--muted)}

/* ── Share, author, the ask, what to read next ─────────────────── */
.post-end{margin-top:3em}
.post-share{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 28px}
.post-share-label{flex-basis:100%;font-size:var(--fs-meta);font-weight:700;color:var(--ink);margin:0 0 2px}
.post-share a,.post-share button{
  display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;
  border:1px solid var(--line);border-radius:999px;background:var(--card);
  font:700 var(--fs-meta)/1 var(--font);color:var(--ink);text-decoration:none;cursor:pointer;
  transition:border-color .15s ease
}
.post-share a:hover,.post-share button:hover{border-color:rgba(20,16,12,.35)}
.post-share .ic{width:18px;height:18px}
.art-prose .post-share a{text-decoration:none;color:var(--ink)}

.post-author-box{display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;align-items:start;background:var(--paper-2);border-radius:var(--r-lg);padding:24px 26px}
.post-author-box img{width:64px;height:64px;border-radius:50%;object-fit:cover}
.post-author-box p{margin:0;font-size:var(--fs-ui);line-height:1.55;color:var(--ink-2)}
.post-author-box .who{font-size:var(--fs-ui);font-weight:700;color:var(--ink);margin-bottom:2px}
.post-author-box .role{font-size:var(--fs-meta);color:var(--muted);margin-bottom:10px}
.art-prose .post-author-box .who a{color:var(--ink);text-decoration:none}
.art-prose .post-author-box .who a:hover{text-decoration:underline;text-underline-offset:.2em}
.post-author-box .more{margin-top:12px}
.art-prose .post-author-box .more a{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--link);text-decoration:none}
.art-prose .post-author-box .more a:hover{text-decoration:underline;text-underline-offset:.2em}
.post-author-box .more .ic{width:16px;height:16px}

/* ── The author page (/author/shilpi-dudani): the post header and column ─ */
.author-id{display:flex;align-items:center;gap:22px;margin:0 0 20px}
.author-photo{width:96px;height:96px;border-radius:50%;object-fit:cover;background:#26232b;flex:0 0 auto}
.author-page .post-head h1{margin:0}
.author-role{margin:6px 0 0;font-size:var(--fs-ui);color:var(--on-dark-2)}
.author-links{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 24px}
.author-links a{display:inline-flex;align-items:center;gap:8px;padding:8px 0;font-size:var(--fs-ui);font-weight:700;color:var(--on-dark);text-decoration:none}
.author-links a:hover{text-decoration:underline;text-underline-offset:.2em}
.author-links .ic{width:20px;height:20px;color:var(--on-dark-accent)}
.author-page .art-prose .post-related-list{margin-bottom:.4em}
.author-page .post-end{margin-top:3.2em}
.art-prose .author-topic-more{margin:14px 0 0;font-size:var(--fs-ui)}
.art-prose .author-topic-more a{display:inline-flex;align-items:center;gap:6px;font-weight:700;text-decoration:none}
.art-prose .author-topic-more a:hover{text-decoration:underline;text-underline-offset:.2em}
.author-topic-more .ic{width:16px;height:16px}

.post-cta{margin:28px 0 0;background:var(--black);color:var(--on-dark);border-radius:var(--r-lg);padding:40px 44px 42px}
.art-prose .post-cta h2{color:var(--on-dark);margin:0 0 .35em;font-size:var(--fs-h2)}
.post-cta p{color:var(--on-dark-2);margin:0 0 24px}
.art-prose a.post-btn,.post-btn{
  display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:12px 26px;box-sizing:border-box;border-radius:999px;
  background:var(--accent);color:var(--black);font:700 var(--fs-ui)/1.3 var(--font);text-decoration:none;
  transition:background-color .15s ease
}
.art-prose a.post-btn:hover,.post-btn:hover{background:#ff7440;color:var(--black);text-decoration:none}
.post-btn .ic{width:18px;height:18px}

/* ── Free-audit button, on every blog page (3 Nov 2026) ─────────
   One orange pill, the site's one button colour, with a black disc that
   carries the arrow. It sits bottom right once the reader is past the header
   and steps aside where the page already asks (the early ask, the closing
   panel, the footer). It starts hidden and post.js shows it; the partial's
   <noscript> rule keeps it visible when scripts are off.
   Ink on the orange is 6.0:1. The pill edge against the paper is 3.0:1, so the
   black disc and the shadow carry the shape. Focus is a white ring inside an
   ink ring, so it reads on paper and on dark. */
.audit-fab{
  position:fixed;z-index:900;
  right:max(24px,env(safe-area-inset-right,0px));bottom:max(24px,env(safe-area-inset-bottom,0px));
  display:flex;align-items:center;gap:18px;box-sizing:border-box;min-height:60px;padding:6px 6px 6px 24px;
  background:var(--accent);color:var(--ink);border-radius:999px;text-decoration:none;
  box-shadow:0 14px 30px -12px rgba(8,7,10,.55),0 2px 6px rgba(8,7,10,.18);
  -webkit-tap-highlight-color:transparent;
  opacity:0;visibility:hidden;translate:0 16px;
  transition:background-color .15s ease,box-shadow .15s ease,transform .12s ease,translate .3s cubic-bezier(.2,.7,.2,1),opacity .3s cubic-bezier(.2,.7,.2,1),visibility 0s linear .3s
}
.audit-fab-text{display:grid;gap:2px}
.audit-fab-label{font:900 17px/1.15 var(--font);letter-spacing:-.01em}
.audit-fab-sub{font:500 13px/1.2 var(--font)}
.audit-fab-go{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--black);color:#fff;transition:transform .2s cubic-bezier(.2,.7,.2,1)}
.audit-fab-go .ic{width:20px;height:20px}
.audit-fab:hover{background:#ff7440;box-shadow:0 18px 34px -12px rgba(8,7,10,.6),0 2px 6px rgba(8,7,10,.18)}
.audit-fab:hover .audit-fab-go{transform:translateX(3px)}
.audit-fab:active{transform:scale(.97)}
.audit-fab:focus-visible{outline:none;box-shadow:0 0 0 3px #fff,0 0 0 6px var(--ink),0 14px 30px -12px rgba(8,7,10,.55)}
.audit-fab.is-on{opacity:1;visibility:visible;translate:0 0;transition:background-color .15s ease,box-shadow .15s ease,transform .12s ease,translate .3s cubic-bezier(.2,.7,.2,1),opacity .3s cubic-bezier(.2,.7,.2,1),visibility 0s}

.post-related{margin-top:3.2em}
.art-prose .post-related h2{margin-top:0}
.art-prose .post-related-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
.art-prose .post-related-list > li{padding:0;margin:0}
.art-prose .post-related-list > li::before{content:none}
.art-prose a.post-card{
  display:flex;flex-direction:column;height:100%;box-sizing:border-box;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 22px 20px;
  text-decoration:none;color:var(--ink-2);
  transition:border-color .15s ease,transform .2s cubic-bezier(.16,1,.3,1)
}
.art-prose a.post-card:hover{border-color:rgba(20,16,12,.3)}
.post-card-t{font-size:var(--fs-ui);line-height:1.35;font-weight:700;color:var(--ink);margin:0 0 8px}
.post-card-d{font-size:var(--fs-meta);line-height:1.5;color:var(--ink-2);margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-card-m{margin-top:auto;font-size:var(--fs-meta);color:var(--muted)}
.art-prose a.post-card:hover .post-card-t{text-decoration:underline;text-underline-offset:.18em}

/* ── The blog index (/blog) and the topic pages (/blog/topics/…) ─────
   The post header and frame, with the body spanning the whole frame. Card
   titles are h3 under an h2 per section, so the outline reads as a page. */
.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}
.hub-page .post-head{grid-column:1 / -1}
.hub-page .post-head h1{max-width:22em}
.hub{grid-column:1 / -1;min-width:0;padding:48px 0 96px}
.hub-section{margin:0 0 56px}
.hub-section:focus{outline:none}
.hub-h{margin:0 0 20px;font:700 var(--fs-h2)/1.2 var(--font);letter-spacing:-.02em;color:var(--ink)}
.hub-count{margin-left:8px;font-size:var(--fs-ui);font-weight:400;letter-spacing:0;color:var(--muted)}
.hub-by{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0}
.hub-by p{margin:0;font-size:var(--fs-meta);color:var(--on-dark-2)}
.hub-by a{color:var(--on-dark);font-weight:700;text-decoration:none}
.hub-by a:hover{text-decoration:underline;text-underline-offset:.2em}
.hub-by .post-facts{margin-left:6px}
.hub-by .post-facts a{color:var(--on-dark-2);font-weight:400;text-decoration:underline;text-underline-offset:.2em}
.hub-services{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;margin:22px 0 0;font-size:var(--fs-ui);color:var(--on-dark-2)}
.hub-services a{display:inline-flex;align-items:center;gap:6px;padding:6px 0;font-weight:700;color:var(--on-dark);text-decoration:none}
.hub-services a:hover{text-decoration:underline;text-underline-offset:.2em}
.hub-services .ic{width:16px;height:16px;color:var(--on-dark-accent)}

.guide-search{position:relative;max-width:var(--measure);margin:28px 0 0}
.guide-search .ic{position:absolute;left:18px;top:50%;width:20px;height:20px;transform:translateY(-50%);color:var(--on-dark-2);pointer-events:none}
.guide-search input{
  width:100%;height:54px;box-sizing:border-box;padding:0 20px 0 50px;border-radius:999px;
  border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.06);color:var(--on-dark);
  font:400 var(--fs-ui)/1 var(--font);-webkit-appearance:none;appearance:none
}
.guide-search input::placeholder{color:var(--on-dark-2);opacity:1}
.guide-search input:focus{outline:2px solid var(--on-dark-accent);outline-offset:2px;border-color:transparent}
.guide-search input::-webkit-search-cancel-button{filter:invert(1)}
.is-searching .hub-lead{display:none}

.hub-feature{display:block;box-sizing:border-box;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:36px 40px 34px;text-decoration:none;color:var(--ink-2);transition:border-color .15s ease}
.hub-feature:hover{border-color:rgba(20,16,12,.3)}
.hub-feature-t{margin:0 0 12px;max-width:26em;font:700 var(--fs-h2)/1.2 var(--font);letter-spacing:-.02em;color:var(--ink);text-wrap:balance}
.hub-feature:hover .hub-feature-t{text-decoration:underline;text-underline-offset:.15em;text-decoration-thickness:2px}
.hub-feature-d{margin:0 0 16px;max-width:40em;font-size:var(--fs-body);line-height:1.55}
.hub-feature-m{margin:0;font-size:var(--fs-meta);color:var(--muted)}

.hub-topics,.hub-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hub-topics > li,.hub-grid > li{margin:0;padding:0;min-width:0}
.hub-grid > li[hidden]{display:none}
.hub-topic{display:flex;flex-direction:column;height:100%;box-sizing:border-box;background:var(--paper-2);border-radius:var(--r-lg);padding:22px 22px 20px;text-decoration:none;color:var(--ink-2)}
.hub-topic-t{margin:0 0 6px;font:700 var(--fs-body)/1.3 var(--font);color:var(--ink)}
.hub-topic:hover .hub-topic-t{text-decoration:underline;text-underline-offset:.18em}
.hub-topic-d{margin:0 0 16px;font-size:var(--fs-ui);line-height:1.5}
.hub-topic-m{display:flex;align-items:center;gap:6px;margin:auto 0 0;font-size:var(--fs-meta);font-weight:700;color:var(--link)}
.hub-topic-m .ic{width:16px;height:16px}

.hub .post-card{display:flex;flex-direction:column;height:100%;box-sizing:border-box;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 22px 20px;text-decoration:none;color:var(--ink-2);transition:border-color .15s ease}
.hub .post-card:hover{border-color:rgba(20,16,12,.3)}
.hub .post-card:hover .post-card-t{text-decoration:underline;text-underline-offset:.18em}
.post-card-k{margin:0 0 8px;font-size:var(--fs-meta);font-weight:700;color:var(--link)}
.hub .post-card-t{margin:0 0 8px;font:700 var(--fs-ui)/1.35 var(--font);color:var(--ink)}
.hub-none{margin:8px 0 0;font-size:var(--fs-ui);color:var(--muted)}

.hub-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.hub-chips a{display:inline-flex;align-items:center;gap:8px;min-height:44px;box-sizing:border-box;padding:0 18px;border:1px solid var(--line);border-radius:999px;background:var(--card);font:700 var(--fs-meta)/1 var(--font);color:var(--ink);text-decoration:none}
.hub-chips a:hover{border-color:rgba(20,16,12,.35)}
.hub-chips span{font-weight:400;color:var(--muted)}
.hub .post-cta h2{margin:0 0 .35em;font:700 var(--fs-h2)/1.2 var(--font);letter-spacing:-.02em;color:var(--on-dark)}
.hub-end{max-width:calc(var(--measure) + var(--gap) + var(--zone))}

/* ── Wide screens: the reading list goes to three across ────────── */
@media (min-width:1200px){
  .art-prose .post-related-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ── Laptop and iPad landscape: the contents stay, the column takes the rest ─ */
@media (max-width:1399px){
  :root{--gutter:24px;--gap:48px;--rail:210px;--fs-body:21px;--fs-lede:24px;--fs-h2:32px;--fs-h1:52px}
  .hub-page .post-frame{grid-template-columns:minmax(0,1fr);max-width:calc(var(--frame-wide) + (var(--gutter) * 2))}
  .hub-page .post-head{grid-column:1}
}

/* ── Tablet and phone: one column, contents fold into a bar ────── */
@media (max-width:1023px){
  :root{--fs-h1:42px}
  .hub-topics,.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .post-frame{grid-template-columns:minmax(0,1fr);max-width:none}
  .post-head{grid-column:1}
  .post-rail{display:none}
  .art-prose{grid-column:1;grid-row:auto}
  .post-body{margin-top:0}
  .post-toc-m{
    display:block;grid-column:1;
    position:sticky;top:var(--nav-h);z-index:40;
    margin:0 calc(-1 * var(--gutter)) 28px;padding:0 var(--gutter);
    background:var(--paper);border-bottom:1px solid var(--line);
  }
  .post-toc-m summary{
    list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:52px;
    font-size:var(--fs-meta);font-weight:700;color:var(--ink)
  }
  .post-toc-m summary::-webkit-details-marker{display:none}
  .post-toc-m .cur{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;color:var(--muted)}
  .post-toc-m summary .ic{width:18px;height:18px;color:var(--muted);transition:transform .2s ease}
  .post-toc-m[open] summary .ic{transform:rotate(180deg)}
  .post-toc-m ol{max-height:60vh;overflow:auto;padding-bottom:12px}
  .h-anchor{display:none}
  .hub-page .post-frame{max-width:none}
}
@media (max-width:640px){
  :root{--gutter:18px;--fs-h1:32px;--fs-lede:20px;--fs-body:19px;--fs-h2:25px}
  .post-hero{padding:28px 0 32px}
  .post-crumb{margin-bottom:14px}
  .post-lede{margin-bottom:22px}
  .post-meta{gap:12px 20px}
  .post-answer,.post-pitch{padding:22px 22px 20px;border-radius:var(--r)}
  .post-cta-mini{padding:14px 16px 16px 18px}
  .art-prose a.post-cta-mini-btn{width:100%}
  .audit-fab{right:max(16px,env(safe-area-inset-right,0px));bottom:max(16px,env(safe-area-inset-bottom,0px));gap:14px;min-height:56px;padding:6px 6px 6px 20px}
  .audit-fab-sub{display:none}
  .audit-fab-label{font-size:16px}
  .audit-fab-go{width:44px;height:44px}
  .post-cta{padding:30px 24px 32px;border-radius:var(--r)}
  .art-prose a.post-btn{width:100%;justify-content:space-between;border-radius:var(--r)}
  .art-prose .post-related-list{grid-template-columns:minmax(0,1fr)}
  .post-author-box{grid-template-columns:52px minmax(0,1fr);padding:20px}
  .post-author-box img{width:52px;height:52px}
  .art-prose figure img{border-radius:var(--r)}
  .art-prose > figure.blog-post-image{margin-left:calc(-1 * var(--gutter));margin-right:calc(-1 * var(--gutter))}
  .art-prose > figure.blog-post-image img{border-radius:0;box-shadow:none}
  .art-prose > figure.blog-post-image figcaption{padding:0 var(--gutter)}
  .author-id{gap:16px}
  .author-photo{width:72px;height:72px}
  .hub{padding:32px 0 64px}
  .hub-section{margin-bottom:44px}
  .hub-topics,.hub-grid{grid-template-columns:minmax(0,1fr)}
  .hub-feature{padding:24px 22px 22px;border-radius:var(--r)}
  .hub .post-card,.hub-topic{border-radius:var(--r)}
  .hub-by .post-facts{margin-left:0;flex-basis:100%}
}

@media (prefers-reduced-motion:reduce){
  .post-page *,.post-page *::before,.post-page *::after{transition:none !important;animation:none !important}
}

@media print{
  .premium-nav,.premium-footer,.post-rail,.post-toc-m,.post-progress,.post-share,.post-share-mini,.post-cta,.post-cta-mini,.audit-fab,.post-related,.skip-link,.h-anchor,.mobile-menu{display:none !important}
  body.post-page{background:#fff;color:#000}
  .post-hero{background:none;color:#000;padding:0 0 12pt}
  .post-head h1,.post-lede,.post-author,.post-role,.post-facts,.post-crumb,.post-checked{color:#000 !important}
  .post-frame{display:block;max-width:none;padding:0}
  .art-prose{font-size:11.5pt;line-height:1.5;color:#000}
  .art-prose a{color:#000}
  .post-sources a::after{content:" " attr(href);font-size:9pt;word-break:break-all}
  .art-prose figure,.art-prose table,.avf,.ava-diagram,.post-answer{break-inside:avoid}
}

/* ═══════════════════════════════════════════════════════════════
   Ported components. These classes live inside post bodies, so their
   rules come across from blog-article.css. Changes from the originals:
   type sizes folded onto the scale above (14px and 16px), and the
   uppercase letter-spaced tags turned into sentence-case labels.
   ═══════════════════════════════════════════════════════════════ */

/* tables: scroll inside their own box, never the page */
.blog-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);margin:2.2em 0;background:var(--card)}
.blog-table-wrap table{border-collapse:collapse;width:100%;min-width:460px;font-variant-numeric:tabular-nums}
.blog-table-wrap th,.blog-table-wrap td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line-soft);font-size:var(--fs-ui);line-height:1.5}
.blog-table-wrap thead th{background:var(--paper-2);color:var(--ink);font-weight:700;font-size:var(--fs-meta)}
.blog-table-wrap tbody tr:last-child td{border-bottom:0}
.blog-table-wrap td:first-child{color:var(--ink);font-weight:700}

.ava-mock-table th{padding:1rem 1.35rem;font-size:var(--fs-meta)}
.ava-mock-table td{padding:1.05rem 1.35rem;line-height:1.45}
.ava-mock-table tr.is-parent td{padding-top:1.15rem;padding-bottom:1.15rem}
.ava-mock-table td.is-child{padding-left:3rem}
.ava-mock-table td.is-child::before{left:1.75rem}
.ava-mock-table td.is-child::after{left:1.75rem;width:.75rem}
.ava-mock-sheet th,.ava-mock-sheet td{padding:1rem 1.35rem}
.ava-mock-frame{box-shadow:0 1px 2px rgba(20,16,12,.04),0 12px 32px -20px rgba(20,16,12,.18)}

/* the inline diagram: crawlable text, not a flat image */
.ava-diagram{margin:2.4em 0;padding:28px;background:var(--paper-2);border-radius:var(--r-lg)}
.ava-diagram-title{font-weight:700;font-size:var(--fs-ui);color:var(--ink);margin-bottom:16px}
.ava-diagram-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.ava-diagram-col{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px 20px}
.ava-diagram-col--warn{background:#fdf7f5}
.ava-diagram-col--good{background:#f5faf7}
.ava-diagram-tag{display:inline-block;font-size:var(--fs-meta);font-weight:700;color:var(--muted);margin-bottom:10px}
.art-prose .ava-diagram ol{counter-reset:art-dg;margin:0}
.art-prose .ava-diagram ol > li{counter-increment:art-dg;padding-left:1.9em;font-size:var(--fs-meta);line-height:1.5;min-height:0}
.art-prose .ava-diagram ol > li + li{margin-top:.5em}
.art-prose .ava-diagram ol > li::before{content:counter(art-dg);width:1.45em;height:1.45em;top:0;font-size:12px;background:var(--paper-2)}
.ava-diagram-out{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line);font-size:var(--fs-meta);font-weight:700;color:var(--ink)}
.ava-diagram-col--warn .ava-diagram-out{color:var(--warn)}
.ava-diagram-col--good .ava-diagram-out{color:var(--good)}

/* one post carries the older inline CTA box */
.ava-cta-inline{margin:2.6em 0;padding:28px 32px;background:var(--paper-2);border-radius:var(--r-lg)}
.ava-cta-inline-h{font-size:var(--fs-lede);font-weight:700;color:var(--ink);margin:0 0 .5em}
.ava-cta-inline p{margin:0 0 .9em}
.art-prose a.ava-cta-inline-btn,.ava-cta-inline-btn{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;background:var(--accent);color:var(--black);font:700 var(--fs-ui)/1 var(--font);text-decoration:none}
.art-prose a.ava-cta-inline-btn:hover{background:#ff7440;color:var(--black)}

@media (max-width:640px){
  .ava-diagram,.avf{padding:20px}
}

/* the figure system (.avf): HTML diagrams that reflow on a phone.
   Ported from blog-article.css with the size, weight and case changes noted above. */
.avf{
  margin:2.75rem 0;
  padding:1.75rem;
  background:var(--art-paper);
  border:1px solid var(--art-border);
  border-radius:var(--art-r-lg);
}
.avf__t{
  font-family:'Satoshi','Inter',system-ui,sans-serif;
  font-weight:700; font-size:var(--fs-ui); line-height:1.3;
  color:var(--art-ink); letter-spacing:-.015em; margin:0 0 1.25rem;
}
.avf p{margin:0}
/* the caption: where the figure's facts come from and when they were checked */
.avf > figcaption{margin:1.25rem 0 0; padding-top:.85rem; border-top:1px solid var(--art-border); max-width:none}

/* .art-prose styles every ul, ol and li in the article, and those rules
   outrank a single class. Reset inside a figure, then re-apply below. */
.art-prose .avf ul,.art-prose .avf ol{padding-left:0;list-style:none;margin:0}
.art-prose .avf li{padding-left:0;margin-top:0;position:relative;min-height:0}
.art-prose .avf li::before{content:none;background:none;width:auto;height:auto;left:auto;top:auto}
/* steps and flow use <li class="avf-card">, so give the padding back */
.avf li.avf-card{padding:1.15rem 1.25rem}

/* ── shared card ───────────────────────────────────────────── */
.avf-card{
  background:#fff;
  border:1px solid var(--art-border);
  border-radius:var(--art-r);
  padding:1.15rem 1.25rem;
}
.avf-card.is-warn{background:rgba(180,52,26,.05); border-color:rgba(180,52,26,.16)}
.avf-card.is-good{background:rgba(28,122,79,.05); border-color:rgba(28,122,79,.16)}
.avf-card.is-acc {background:rgba(255,90,31,.06); border-color:rgba(255,90,31,.18)}

.avf-tag{
  display:block; font-size:var(--fs-meta); font-weight:700;
  color:var(--art-muted); margin-bottom:.7rem;
}
.is-warn>.avf-tag{color:var(--art-warn)}
.is-good>.avf-tag{color:var(--art-good)}
.is-acc >.avf-tag{color:var(--art-link)}

.avf-lead{font-size:var(--fs-ui); font-weight:700; color:var(--art-ink); line-height:1.4; margin-bottom:.7rem !important}
.avf-h{font-size:var(--fs-meta); font-weight:700; color:var(--art-ink); line-height:1.35}
.avf-p{font-size:var(--fs-meta); line-height:1.55; color:var(--art-ink-2); margin-top:.5rem !important}
.avf-note{font-size:var(--fs-meta); line-height:1.55; color:var(--art-muted); margin-top:1.1rem !important}

.avf-list{list-style:none; margin:0; padding:0}
.avf .avf-list li{
  position:relative; padding-left:1.1rem; margin-top:.45rem;
  font-size:var(--fs-meta); line-height:1.5; color:var(--art-ink-2);
}
.avf .avf-list li:first-child{margin-top:0}
.avf .avf-list li::before{
  content:""; position:absolute; left:0; top:.55em;
  width:5px; height:5px; border-radius:50%; background:var(--art-muted);
}
.avf .is-warn .avf-list li::before{background:var(--art-warn)}
.avf .is-good .avf-list li::before{background:var(--art-good)}
.avf .is-acc  .avf-list li::before{background:var(--art-accent)}

.avf-out{
  margin-top:.9rem !important; padding-top:.75rem;
  border-top:1px solid var(--art-border);
  font-size:var(--fs-meta); font-weight:700; line-height:1.4; color:var(--art-ink);
}
.is-warn>.avf-out{color:var(--art-warn)}
.is-good>.avf-out{color:var(--art-good)}
.is-acc >.avf-out{color:var(--art-link)}

.avf-num{
  display:inline-grid; place-items:center;
  width:1.5rem; height:1.5rem; border-radius:50%;
  margin-right:.55rem; vertical-align:-.32rem;
  background:var(--art-ink); color:#fff;
  font-size:var(--fs-meta); font-weight:700;
}
.is-warn .avf-num{background:var(--art-warn)}
.is-good .avf-num{background:var(--art-good)}
.is-acc  .avf-num{background:var(--art-accent)}

/* ── layouts ───────────────────────────────────────────────── */
.avf-cols,.avf-grid{display:grid; gap:.9rem; grid-template-columns:repeat(auto-fit,minmax(255px,1fr))}
.avf-grid.is-3{grid-template-columns:repeat(auto-fit,minmax(215px,1fr))}
/* four items sit two by two, never three and one left over */
.avf-grid:has(> :nth-child(4):last-child){grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.avf-grid{list-style:none; margin:0; padding:0}
.avf-steps{counter-reset:none}

/* rows: label above value on narrow, two columns from 560px */
.avf-rows{margin:0}
.avf-rows dt{
  font-size:var(--fs-meta); font-weight:700; color:var(--art-muted); margin-top:.85rem;
}
.avf-rows dt:first-child{margin-top:0}
.avf-rows dd{margin:.2rem 0 0; font-size:var(--fs-meta); line-height:1.5; color:var(--art-ink-2)}
.avf-rows dd.is-hot{font-weight:700; color:var(--art-ink)}
.is-warn .avf-rows dd.is-hot{color:var(--art-warn)}
.is-good .avf-rows dd.is-hot{color:var(--art-good)}
.is-acc  .avf-rows dd.is-hot{color:var(--art-link)}

/* ── flow ──────────────────────────────────────────────────── */
.avf-flow{
  list-style:none; margin:0; padding:0;
  display:grid; gap:.9rem; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}
.avf-step{
  display:block; font-size:var(--fs-meta); font-weight:700;
  color:var(--art-muted); margin-bottom:.5rem;
}
.is-warn>.avf-step{color:var(--art-warn)}
.is-good>.avf-step{color:var(--art-good)}
.is-acc >.avf-step{color:var(--art-link)}

/* ── path ──────────────────────────────────────────────────── */
.avf-crumbs{
  list-style:none; margin:0 0 1.1rem; padding:0;
  display:flex; flex-wrap:wrap; align-items:center; gap:.45rem;
}
.avf .avf-crumbs li{
  background:#fff; border:1px solid var(--art-border); border-radius:10px;
  padding:.5rem .8rem; font-size:var(--fs-meta); font-weight:600; color:var(--art-ink-2);
}
.avf .avf-crumbs li.is-last{
  background:rgba(255,90,31,.07); border-color:rgba(255,90,31,.28);
  color:var(--art-link); font-weight:700;
}
.avf .avf-crumbs li+li{position:relative; margin-left:.85rem}
.avf .avf-crumbs li+li::before{
  content:"›"; position:absolute; left:-.95rem; top:50%; transform:translateY(-52%);
  color:var(--art-muted); font-size:var(--fs-ui); font-weight:700;
}
.avf-rows--split dt{
  position:relative; padding-left:1.5rem;
  font-size:var(--fs-meta); font-weight:700; text-transform:none;
  letter-spacing:0; color:var(--art-ink);
}
.avf-rows--split dt::before{
  position:absolute; left:0; top:0; font-size:var(--fs-meta); font-weight:700;
}
.avf-rows--split dt.is-plain::before{content:"•"; color:var(--art-muted)}
.avf-rows--split dt.is-good::before{content:"✓"; color:var(--art-good)}
.avf-rows--split dt.is-warn::before{content:"!"; color:var(--art-warn); left:.3rem}
.avf-rows--split dd{padding-left:1.5rem}
@media (min-width:640px){
  .avf-rows--split{display:grid; grid-template-columns:minmax(150px,.8fr) 1.3fr; column-gap:1.25rem}
  .avf-rows--split dt{margin-top:.9rem}
  .avf-rows--split dd{margin-top:.9rem; padding-left:0}
  .avf-rows--split dt:first-child,.avf-rows--split dt:first-child+dd{margin-top:0}
}

/* ── matrix ────────────────────────────────────────────────── */
.avf-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch}
.avf-matrix{width:100%; min-width:440px; border-collapse:collapse; background:#fff; border-radius:var(--art-r); overflow:hidden}
.avf-matrix thead th{white-space:nowrap}
.avf-matrix th,.avf-matrix td{padding:.7rem .8rem; text-align:center; font-size:var(--fs-meta); border-bottom:1px solid var(--art-border-soft)}
.avf-matrix thead th{font-size:var(--fs-meta); font-weight:700; color:var(--art-muted)}
.avf-matrix tbody th{text-align:left; font-weight:600; color:var(--art-ink); white-space:nowrap}
.avf-matrix tbody tr:last-child th,.avf-matrix tbody tr:last-child td{border-bottom:0}
.avf-matrix .is-yes span{color:var(--art-good); font-weight:700}
.avf-matrix .is-no  span{color:var(--art-warn); font-weight:700}
.avf-matrix .is-na{color:var(--art-muted); font-size:var(--fs-meta)}
/* one or two columns fit a phone, so they wrap instead of scrolling */
.avf-matrix:not(:has(thead th:nth-of-type(3))){min-width:0}
.avf-matrix:not(:has(thead th:nth-of-type(3))) tbody th{white-space:normal}

/* ── timeline: a left rail, which reads on any width ───────── */
.avf-time{list-style:none; margin:0; padding:0 0 0 1.4rem; position:relative}
.avf-time::before{content:""; position:absolute; left:.32rem; top:.4rem; bottom:.4rem; width:2px; background:var(--art-border)}
.avf .avf-time li{position:relative; margin-top:1rem}
.avf .avf-time li:first-child{margin-top:0}
.avf .avf-time li::before{
  content:""; position:absolute; left:-1.4rem; top:.42rem;
  width:.78rem; height:.78rem; border-radius:50%;
  background:var(--art-ink); box-shadow:0 0 0 3px var(--art-paper);
}
.avf .avf-time li.is-warn::before{background:var(--art-warn)}
.avf .avf-time li.is-good::before{background:var(--art-good)}
.avf-time li.is-acc::before {background:var(--art-accent)}
.avf-when{display:block; font-size:var(--fs-meta); font-weight:700; color:var(--art-muted); margin-bottom:.35rem}
.avf .avf-time li.is-warn .avf-when{color:var(--art-warn)}
.avf .avf-time li.is-good .avf-when{color:var(--art-good)}
.avf .avf-time li.is-acc  .avf-when{color:var(--art-link)}

/* ── funnel and stack ──────────────────────────────────────── */
.avf-funnel,.avf-stack{list-style:none; margin:0; padding:0}
.avf .avf-funnel li,.avf .avf-stack li{display:flex; align-items:center; gap:.85rem; margin-top:.5rem}
.avf .avf-stack li{display:grid; grid-template-columns:minmax(0,15rem) minmax(0,1fr); align-items:center}
.avf-stack .avf-bar{min-width:0}
.avf .avf-funnel li:first-child,.avf .avf-stack li:first-child{margin-top:0}
.avf-bar{
  display:flex; align-items:center; justify-content:space-between; gap:.7rem;
  background:#fff; border:1px solid var(--art-border); border-radius:10px;
  padding:.7rem 1rem; font-size:var(--fs-meta); font-weight:700; color:var(--art-ink);
  flex:1 1 auto;
}
.avf-funnel .avf-bar{flex:0 0 auto; width:var(--w,100%); justify-content:center; text-align:center}
.avf-bar.is-warn{background:rgba(180,52,26,.06); border-color:rgba(180,52,26,.18); color:var(--art-warn)}
.avf-bar.is-good{background:rgba(28,122,79,.06); border-color:rgba(28,122,79,.18); color:var(--art-good)}
.avf-bar.is-acc {background:rgba(255,90,31,.07); border-color:rgba(255,90,31,.2);  color:var(--art-link)}
.avf-side{font-size:var(--fs-meta); line-height:1.45; color:var(--art-muted); flex:1 1 40%}
.avf-side.is-warn{color:var(--art-warn); font-weight:600}
@media (max-width:620px){
  .avf .avf-funnel li,.avf .avf-stack li{flex-direction:column; align-items:stretch; gap:.3rem}
  .avf .avf-stack li{grid-template-columns:minmax(0,1fr)}
  .avf-funnel .avf-bar{width:100%}
  .avf-side{padding:0 .2rem .3rem}
}

/* ── converge ──────────────────────────────────────────────── */
.avf-conv{display:grid; gap:.9rem; grid-template-columns:1fr}
@media (min-width:760px){.avf-conv{grid-template-columns:.85fr 1.15fr; align-items:center}}
.avf-srcs{list-style:none; margin:0; padding:0; display:grid; gap:.45rem}
.avf .avf-srcs li{font-size:var(--fs-meta); font-weight:600; color:var(--art-ink); padding:.65rem .9rem}
.avf-target .avf-h{font-size:var(--fs-ui)}

/* ── layers ────────────────────────────────────────────────── */
.avf-layers{display:grid; gap:.9rem}
.avf-layer.is-dashed{border-style:dashed}
.avf-fields{list-style:none; margin:0; padding:0; display:grid; gap:.4rem}
.avf .avf-fields li{
  display:flex; align-items:center; justify-content:space-between; gap:.7rem;
  background:#fff; border:1px solid var(--art-border); border-radius:8px;
  padding:.55rem .75rem; font-size:var(--fs-meta); font-weight:600; color:var(--art-ink);
}
.avf .avf-fields li.is-empty{background:transparent; border-style:dashed; color:var(--art-muted); font-weight:500}
.avf-fields b{
  font-size:var(--fs-meta); font-weight:700; color:var(--art-good); white-space:nowrap;
}
.avf .avf-fields li.is-empty b{color:var(--art-warn)}

/* ── gauges ────────────────────────────────────────────────── */
.avf-gauges .avf-card{text-align:center}
.avf-dial{display:block; width:112px; max-width:100%; margin:0 auto .2rem}
.avf-read{font-size:var(--fs-ui); font-weight:700; line-height:1.1; color:var(--art-good)}
.is-warn .avf-read{color:var(--art-warn)}
.avf-gauges .avf-out{border-top:0; padding-top:.4rem; margin-top:.6rem !important}

@media (max-width:640px){
  .avf{padding:1.25rem; margin:2rem 0; border-radius:var(--art-r)}
  .avf__t{font-size:var(--fs-ui)}
}
