/* post — page-local rules for /blog/<slug>, v2 design language (10 Nov). Loaded AFTER v2.css; scoped under body.v2-post. Token-only.
   The article body is rendered markdown (no classes), so its elements are styled under .v2-prose: a ~68ch reading column on the
   light surface. The old .page-content.prose rules in chrome.css no longer match (wrapper replaced) and are re-created here,
   including the funnel components (.stat-callout, .post-cta-card, .post-foot/.tag, .lead, .post-hero-img, .page-cta) posts embed. */
:where(.v2-post), :where(.v2-post) :where(*, *::before, *::after) { box-sizing: border-box; }
html, body { overflow-x: clip; }
.v2-post { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* Hero: long titles, so a smaller display step than the shared short hero */
.v2-post .v2-hero-short { padding-bottom: 32px; }
.v2-post .v2-hero h1 { font-size: clamp(2rem, 5vw, 3.75rem); max-width: 20em; line-height: 1.02; }
.v2-post .post-meta { margin: 22px 0 0; font-size: var(--fs-3); color: var(--v2-on-ink-mute); }
.v2-post .post-meta .dot { margin: 0 8px; opacity: .6; }

/* Reading column */
.v2-post .v2-content { padding-top: var(--v2-sec); padding-bottom: var(--v2-sec); }
.v2-post .v2-prose > * { max-width: 43rem; margin-left: 0; margin-right: auto; }   /* left on the frame, under the heading (12 Nov) */
.v2-post .v2-prose { font-size: var(--v2-fs-prose); line-height: 1.8; }
.v2-post .v2-prose p { font-size: var(--v2-fs-prose); line-height: 1.8; color: var(--text-muted); margin-top: 0; margin-bottom: 1.15em; overflow-wrap: break-word; }
.v2-post .v2-prose .lead { font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.6; color: var(--text); margin-bottom: 1.4em; }
.v2-post .v2-prose a:not(.page-cta) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.v2-post .v2-prose a:not(.page-cta):hover { text-decoration-thickness: 2px; }
.v2-post .v2-prose a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.v2-post .v2-prose strong { color: var(--text); font-weight: 700; }
.v2-post .v2-prose em { font-style: italic; }

/* Headings */
.v2-post .v2-prose h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -.03em; line-height: 1.12; color: var(--text); margin-top: 2.2em; margin-bottom: .55em; text-wrap: balance;
}
.v2-post .v2-prose h3 { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 700; font-size: var(--fs-5); letter-spacing: -.015em; line-height: 1.25; color: var(--text); margin-top: 1.8em; margin-bottom: .4em; }
.v2-post .v2-prose h4 { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 700; font-size: var(--fs-3); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-top: 1.6em; margin-bottom: .4em; }

/* Lists */
.v2-post .v2-prose ul, .v2-post .v2-prose ol { padding-left: 1.4em; margin-top: 0; margin-bottom: 1.2em; color: var(--text-muted); }
.v2-post .v2-prose li { margin: 0 0 .5em; padding-left: .2em; }
.v2-post .v2-prose li::marker { color: var(--accent); font-weight: 700; }
.v2-post .v2-prose li > ul, .v2-post .v2-prose li > ol { margin-top: .5em; margin-bottom: 0; }

/* Blockquote: the article takeaway, as a card */
.v2-post .v2-prose blockquote {
  margin-top: 1.6em; margin-bottom: 1.6em; padding: 22px 26px; border: 0; border-left: 4px solid var(--accent);
  background: var(--surface-alt); border-radius: 0 20px 20px 0;
}
.v2-post .v2-prose blockquote p { margin: 0 0 .7em; font-style: italic; color: var(--text); }
.v2-post .v2-prose blockquote p:last-child { margin-bottom: 0; }

.v2-post .v2-prose hr { border: none; border-top: 1px solid var(--border); margin-top: 2.4em; margin-bottom: 2.4em; }

/* Images, figures, hero visual (stacked above the lede at every width: the column is narrow) */
.v2-post .v2-prose img { max-width: 100%; height: auto; border-radius: 20px; display: block; }
.v2-post .v2-prose figure { margin-top: 2em; margin-bottom: 2em; }
.v2-post .v2-prose figcaption { font-size: var(--fs-2); color: var(--text-subtle); text-align: center; margin-top: 10px; line-height: 1.5; }
.v2-post .v2-prose .post-hero-img {
  width: 100%; aspect-ratio: 1200 / 630; margin-top: 0; margin-bottom: 2em; float: none; border-radius: 28px;
  border: 0; box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

/* Code */
.v2-post .v2-prose code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .86em; background: var(--surface-alt); color: var(--text); padding: 2px 7px; border-radius: 6px; overflow-wrap: anywhere; }   /* em by design: sized to the parent (59·M10) */
.v2-post .v2-prose pre { background: var(--chrome); color: var(--v2-on-ink); padding: 20px 22px; border-radius: 20px; overflow-x: auto; margin-top: 1.6em; margin-bottom: 1.6em; font-size: var(--fs-2); line-height: 1.65; }
.v2-post .v2-prose pre code { background: none; color: inherit; padding: 0; overflow-wrap: normal; }

/* Tables: a card; scrolls sideways inside itself on phones, never the page */
.v2-post .v2-prose table {
  display: table; width: 100%; border-collapse: collapse; margin-top: 1.8em; margin-bottom: 1.8em;
  font-size: var(--fs-3); line-height: 1.5; background: var(--surface); border-radius: 20px;
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}
.v2-post .v2-prose th, .v2-post .v2-prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.v2-post .v2-prose th { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 700; color: var(--text); background: var(--surface-alt); }
.v2-post .v2-prose td { color: var(--text-muted); }
.v2-post .v2-prose tbody tr:last-child td { border-bottom: none; }

/* Funnel components that posts embed as raw HTML */
.v2-post .stat-callout {
  display: flex; gap: 20px; align-items: center; background: var(--surface); border: 0; border-radius: 24px; padding: 22px 26px;
  margin-top: 1.8em; margin-bottom: 1.8em; box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}
.v2-post .stat-callout .figure { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; color: var(--accent); line-height: 1; white-space: nowrap; }
.v2-post .stat-callout .label { font-size: var(--fs-3); color: var(--text-muted); line-height: 1.5; }
.v2-post .post-cta-card { background: var(--chrome); color: var(--v2-on-ink); border-radius: 28px; padding: clamp(26px, 4vw, 40px); margin-top: 2.2em; margin-bottom: 2.2em; text-align: center; }
.v2-post .post-cta-card h3 { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; font-size: var(--fs-6); letter-spacing: -.02em; color: var(--v2-on-ink); margin: 0 0 10px; }
.v2-post .post-cta-card p { color: var(--v2-on-ink-mute); font-size: var(--fs-4); line-height: 1.6; margin: 0 0 20px; }
.v2-post .page-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: var(--radius-pill);
  background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: var(--fs-3); text-decoration: none;
  transition: transform 180ms var(--v2-out), background-color 180ms var(--v2-out);
}
.v2-post .page-cta:hover { background: var(--lime-hover); transform: translateY(-2px); text-decoration: none; }
.v2-post .post-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 2.4em; padding-top: 20px; }
.v2-post .post-foot .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.v2-post .post-foot .tag { font-size: var(--fs-2); font-weight: 600; color: var(--accent); background: var(--surface-alt); padding: 6px 12px; border-radius: var(--radius-pill); }
/* phones: the table card scrolls sideways inside itself, never the page */
@media (max-width: 640px) { .v2-post .v2-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .v2-post .v2-prose th { white-space: nowrap; } }
@media (max-width: 480px) { .v2-post .stat-callout { flex-direction: column; align-items: flex-start; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .v2-post .page-cta { transition: none; } .v2-post .page-cta:hover { transform: none; } }
