/* Blog. Drag styling via the tokens in /styles.css. Tokens, header, footer and .wrap all come from /styles.css.
   Everything here is post-specific and prefixed post-/callout-/steps/sources. */

.post-wrap{max-width:1152px}
.post-wrap > *{max-width:68ch}

.post-head{padding-block:56px 34px;border-bottom:1px solid var(--line)}
.post-head h1{font-family:var(--display);font-weight:700;font-size:clamp(32px,5vw,50px);
  line-height:1.08;letter-spacing:-.035em;margin:0 0 20px;max-width:20ch;text-wrap:balance}
.post-head .eyebrow a{color:inherit;text-decoration:none}
.post-head .eyebrow a:hover{text-decoration:underline}
.post-standfirst{font-family:var(--display);font-size:clamp(18px,2.2vw,21px);line-height:1.5;
  color:var(--ink-soft);max-width:60ch;margin:0}
.post-meta{display:flex;flex-wrap:wrap;gap:6px 22px;margin:26px 0 0;font-size:14px;
  color:var(--ink-faint)}
.post-meta span:not(:last-child)::after{content:"";}

.post-body{padding-block:44px 24px;font-size:17.5px;line-height:1.7}
.post-body p{margin:0 0 20px;color:var(--ink-soft)}
.post-body strong{color:var(--ink)}
.post-body h2{font-family:var(--display);font-weight:700;font-size:clamp(23px,3.2vw,30px);
  line-height:1.2;letter-spacing:-.018em;margin:46px 0 16px;color:var(--ink);text-wrap:balance}
.post-body h3{font-weight:700;font-size:19px;line-height:1.35;letter-spacing:-.01em;margin:32px 0 10px;color:var(--text)}
.post-body a{color:var(--link)}
.post-body q{quotes:'"' '"';font-style:italic;color:var(--ink)}

.callout{background:var(--paper-2);border-left:3px solid var(--violet);border-radius:0 var(--radius) var(--radius) 0;
  padding:22px 26px;margin:28px 0}
.callout p{margin:0;color:var(--ink);font-family:var(--display);font-size:19px;line-height:1.5}
.callout-figure{border-left-color:var(--pink);background:var(--card);border:1px solid var(--line);
  border-left:3px solid var(--pink);border-radius:0 var(--radius) var(--radius) 0}
.callout-figure p{font-family:var(--body);font-size:17px;line-height:1.6}
.callout-note{margin-top:12px !important;font-size:13.5px !important;color:var(--ink-faint) !important;
  font-family:var(--body) !important;line-height:1.55 !important}

.steps{counter-reset:s;list-style:none;padding:0;margin:26px 0}
.steps li{counter-increment:s;position:relative;padding:0 0 16px 44px;color:var(--ink-soft)}
.steps li::before{content:counter(s);position:absolute;left:0;top:0;width:26px;height:26px;
  border-radius:50%;background:var(--violet);color:#fff;font-size:13px;font-weight:600;
  display:flex;align-items:center;justify-content:center;font-family:var(--body)}

.sources{list-style:none;padding:0;margin:20px 0 0;font-size:15px}
.sources li{padding:12px 0;border-bottom:1px solid var(--line);color:var(--ink-faint);line-height:1.55}
.sources li:first-child{border-top:1px solid var(--line)}

.corrections{margin-top:34px !important;padding:18px 22px;background:var(--paper-2);
  border-radius:var(--radius);font-size:15px !important;line-height:1.6 !important}

.post-author{display:flex;gap:18px;margin:44px 0 0;padding:24px 0 0;border-top:1px solid var(--line)}
.post-author-name{font-weight:600;color:var(--ink) !important;margin:0 0 6px !important;font-size:16px}
.post-author-bio{font-size:14.5px !important;line-height:1.6 !important;color:var(--ink-faint) !important;margin:0 !important}

/* Index */
.blog-head{padding-block:56px 30px;border-bottom:1px solid var(--line)}
.blog-head h1{font-family:var(--display);font-weight:700;font-size:clamp(34px,5.2vw,52px);
  line-height:1.06;letter-spacing:-.035em;margin:0 0 18px}
.post-list{list-style:none;padding:0;margin:0}
.post-list li{border-bottom:1px solid var(--line);padding:30px 0}
.post-list h2{font-family:var(--display);font-weight:700;font-size:clamp(20px,2.6vw,25px);
  line-height:1.25;margin:0 0 10px;letter-spacing:-.015em}
.post-list h2 a{color:var(--ink);text-decoration:none}
.post-list h2 a:hover{color:var(--violet)}
.post-list p{margin:0 0 10px;color:var(--ink-soft);font-size:16.5px;line-height:1.6;max-width:68ch}
.post-list .post-meta{margin:0}
.blog-empty{padding:44px 0 0;color:var(--ink-faint);font-size:16px}

/* Vertical rhythm for the index list. padding-block, not the shorthand, so the
   .wrap gutter survives and the list lines up with the header above it. */
.blog-list-wrap{padding-block:36px 60px}

/* Category label on a post */
.post-cat{display:inline-block;font-size:11.5px;letter-spacing:.11em;text-transform:uppercase;
  font-weight:600;color:var(--violet);background:#F1EAFD;padding:4px 9px;border-radius:5px;
  text-decoration:none}
.post-cat:hover{background:#E7DBFB}

/* ── One measure ─────────────────────────────────────────────────────────
   Everything in a post body sits at the prose measure, figures and tables
   included (ruled 23 Sep 2026: anything wider than the text reads as broken).
   So tables are designed to fit it: four columns at most, short cells, and
   below 640px each row becomes a labelled card rather than a sideways scroll.
   The rule is .post-wrap > * {max-width:68ch} above. Do not add exceptions. */

/* ── Flowchart ───────────────────────────────────────────────────────────
   Real HTML, not SVG: it reflows at any width, and its text is plain text an
   answer engine can quote. */
.flow{margin:30px 0}
.flow-steps{list-style:none;margin:0;padding:0;display:grid;gap:30px;counter-reset:none}
.flow-steps > li{position:relative;border-radius:var(--r-md);padding:14px 18px;
  font-size:15.5px;line-height:1.5}
.flow-steps > li + li::before{content:"No";position:absolute;left:28px;top:-30px;height:30px;
  border-left:1.5px solid var(--border);padding-left:10px;display:flex;align-items:center;
  font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
/* the first connector is a plain arrow: "No" only labels a decision's exit */
.flow-steps > li:nth-child(2)::before{content:""}
.flow-start{background:var(--surface-inverse);color:var(--on-dark);font-weight:600}
.flow-q{background:var(--surface);border:1px solid var(--border);display:flex;
  align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.flow-ask{color:var(--text);flex:1 1 260px}
.flow-exit{display:inline-flex;align-items:center;gap:8px;background:#E6F4EA;color:var(--success-text);
  font-weight:600;font-size:14px;padding:6px 12px;border-radius:999px;white-space:nowrap}
.flow-yes{font-size:11px;letter-spacing:.06em;text-transform:uppercase;opacity:.8}
.flow-end{background:#FCE8E6;border:1.5px solid #C5221F}
.flow-bill{display:block;font-weight:700;color:#A50E0E;margin-bottom:4px}
.flow-incl{display:block;color:#5C1A14;font-size:14.5px}
.flow figcaption{margin-top:12px;font-size:13.5px;color:var(--text-3);line-height:1.55}

/* ── Comparison table ────────────────────────────────────────────────────── */
.cmp-wrap{margin:28px 0;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden}
.cmp{border-collapse:collapse;width:100%;font-size:14px;line-height:1.5;table-layout:fixed}
.cmp caption{caption-side:bottom;text-align:left;padding:12px 16px;font-size:13px;
  color:var(--text-3);background:var(--surface-content);border-top:1px solid var(--border)}
.cmp col,.cmp th,.cmp td{overflow-wrap:anywhere}
.cmp thead th{text-align:left;font-size:11px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--text-3);font-weight:600;padding:12px 14px;background:var(--surface-content);
  border-bottom:1px solid var(--border);vertical-align:bottom}
.cmp thead th:first-child{width:19%}
.cmp thead th:nth-child(2){width:23%}
.cmp tbody th{text-align:left;padding:14px;font-weight:700;color:var(--text);vertical-align:top}
.cmp td{padding:14px;color:var(--text-2);vertical-align:top}
.cmp tbody tr + tr > *{border-top:1px solid var(--border-light)}
.cmp-sub{display:block;font-weight:400;font-size:12.5px;color:var(--text-3);margin-top:2px}

@media(max-width:640px){
  .cmp,.cmp tbody,.cmp tr,.cmp th,.cmp td{display:block;width:auto}
  .cmp caption{display:block;width:auto;border-top:0;border-bottom:1px solid var(--border)}
  .cmp thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .cmp tbody tr{padding:14px 16px}
  .cmp tbody tr + tr{border-top:1px solid var(--border)}
  .cmp tbody tr + tr > *{border-top:0}
  .cmp tbody th{padding:0 0 8px;font-size:16px}
  .cmp td{padding:6px 0}
  .cmp td::before{content:attr(data-label);display:block;font-size:11px;font-weight:600;
    letter-spacing:.07em;text-transform:uppercase;color:var(--text-3);margin-bottom:2px}
}

/* ── Changes to this piece ───────────────────────────────────────────────── */
/* ── Definition list of models (e.g. pricing units) ───────────────────── */
.models{margin:24px 0;border-top:1px solid var(--border)}
.models div{display:grid;grid-template-columns:170px 1fr;gap:16px;padding:14px 0;
  border-bottom:1px solid var(--border)}
.models dt{font-weight:600;color:var(--text)}
.models dd{margin:0;color:var(--text-2)}
@media(max-width:560px){.models div{grid-template-columns:1fr;gap:4px}}

.changes{margin:16px 0 0;border-top:1px solid var(--border)}
.changes div{display:grid;grid-template-columns:110px 1fr;gap:16px;padding:14px 0;
  border-bottom:1px solid var(--border);font-size:15px;line-height:1.6}
.changes dt{font-weight:600;color:var(--text)}
.changes dd{margin:0;color:var(--text-2)}
@media(max-width:560px){.changes div{grid-template-columns:1fr;gap:4px}}
