/*
 * Blog v3: reading typography for the CMS article body (#summary.bv3-prose) and FAQ answers. CSS only: the HTML is unchanged.
 * base.css resets lists, paragraph margins and 16px text inside .home-v3; this file restores long-form defaults.
 * Never hide content with selectors that guess: only p:empty and p.bv3-empty (added by page.js for whitespace-only paragraphs).
 */
.blog-v3 .bv3-prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }

/* Inline-style taming: CMS spans and fonts carry pasted sizes, colours and backgrounds. Font family is set by skin.css. */
.blog-v3 .bv3-prose :is(p, span, li, font, td, th, strong, em, b, i, a, u, small, sup, sub) { font-size: inherit !important; line-height: inherit !important; color: inherit !important; background-color: transparent !important; }
.blog-v3 .bv3-prose :is(sup, sub) { font-size: .75em !important; line-height: 0 !important; }
.blog-v3 .bv3-prose :is(strong, b) { font-weight: 600; color: var(--ink) !important; }

/* Paragraphs and spacing */
.blog-v3 .bv3-prose p { margin: 0 0 1.1em; }
.blog-v3 .bv3-prose > :first-child { margin-top: 0; }
.blog-v3 .bv3-prose p:empty, .blog-v3 .bv3-prose p.bv3-empty, .blog-v3 .bv3-prose br.bv3-trail { display: none; }

/* Links */
.blog-v3 .bv3-prose a { color: var(--brand-deep) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.blog-v3 .bv3-prose a:hover { text-decoration-thickness: 2px; }
.blog-v3 .bv3-prose a :is(span, strong, b, em, font) { color: inherit !important; }

/* Headings (a body <h1>, in 7 posts, takes h2 size and spacing; the tag is unchanged) */
.blog-v3 .bv3-prose :is(h1, h2, h3, h4, h5, h6) { color: var(--ink); text-wrap: balance; scroll-margin-top: calc(var(--bv3-header, 72px) + 16px); }
.blog-v3 .bv3-prose :is(h1, h2, h3, h4, h5, h6) :is(span, strong, b, em, font, a) { font-size: inherit !important; line-height: inherit !important; color: inherit !important; background-color: transparent !important; }
.blog-v3 .bv3-prose :is(h1, h2) { margin: 2.2em 0 .6em; font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.blog-v3 .bv3-prose h3 { margin: 1.8em 0 .5em; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.blog-v3 .bv3-prose :is(h4, h5, h6) { margin: 1.6em 0 .4em; font-size: 19px; line-height: 1.35; font-weight: 600; }

/* Lists (restored) */
.blog-v3 .bv3-prose ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1.1em; }
.blog-v3 .bv3-prose ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1.1em; }
.blog-v3 .bv3-prose ul ul { list-style: circle; margin: .4em 0 0; }
.blog-v3 .bv3-prose :is(ul, ol) :is(ul, ol) { margin-bottom: 0; }
.blog-v3 .bv3-prose li { margin: 0; padding-left: .2em; }
.blog-v3 .bv3-prose li + li { margin-top: .4em; }
.blog-v3 .bv3-prose li::marker { color: var(--brand-deep); }
.blog-v3 .bv3-prose li > p { margin: 0; }

/* Media */
.blog-v3 .bv3-prose img { display: block; max-width: 100%; height: auto; margin: 1.5em auto; border-radius: 12px; }
.blog-v3 .bv3-prose :is(iframe, video) { display: block; max-width: 100%; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 1.5em 0; border: 0; border-radius: 12px; }
.blog-v3 .bv3-prose figure { margin: 1.5em 0; }
.blog-v3 .bv3-prose figcaption { font-size: 16px; color: var(--mute); text-align: center; }

/* Tables: scroll sideways inside the column, never the page */
.blog-v3 .bv3-prose table { display: block; max-width: 100%; width: max-content; min-width: 100%; overflow-x: auto; margin: 1.5em 0; border-collapse: collapse; border: 1px solid var(--l200); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.blog-v3 .bv3-prose :is(td, th) { padding: 8px 12px; font-size: 16px !important; line-height: 1.5 !important; vertical-align: top; text-align: left; border: 1px solid var(--l200); overflow-wrap: normal; min-width: 8ch; }
.blog-v3 .bv3-prose :is(td, th) p { margin: 0 0 .5em; }
.blog-v3 .bv3-prose tr:first-child > :is(td, th), .blog-v3 .bv3-prose thead :is(td, th) { background-color: var(--l100) !important; font-weight: 600; color: var(--ink) !important; }

/* Quotes, rules, code */
.blog-v3 .bv3-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--l300); color: var(--ink-2); font-size: inherit; line-height: inherit; }
.blog-v3 .bv3-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--l200); }
.blog-v3 .bv3-prose :is(code, pre) { font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important; font-size: 16px; }
.blog-v3 .bv3-prose pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--l100); }

/* Tablet and desktop: 20px text in the 680px column gives about 68 characters a line (measured: 18px gave 76). */
@media (min-width: 768px) {
    .blog-v3 .bv3-prose { font-size: 20px; line-height: 1.65; }
    .blog-v3 .bv3-prose :is(h1, h2) { font-size: 30px; }
    .blog-v3 .bv3-prose h3 { font-size: 24px; }
    .blog-v3 .bv3-prose :is(h4, h5, h6) { font-size: 21px; }
    .blog-v3 .bv3-faq-a.bv3-prose { font-size: 18px; line-height: 1.65; }
}
@media (max-width: 767px) {
    .blog-v3 .bv3-prose { font-size: 17px; }
    .blog-v3 .bv3-prose :is(h1, h2) { font-size: 24px; }
    .blog-v3 .bv3-prose h3 { font-size: 20px; }
    .blog-v3 .bv3-prose :is(h4, h5, h6) { font-size: 18px; }
}

/* ---------- Review fixes (28 Nov 2026) ---------- */
/* "1) text" paragraphs are turned into <ol class="bv3-numlist"> by BlogV3Page::tidyBody(): list spacing, not paragraph gaps. */
.blog-v3 .bv3-prose ol.bv3-numlist { margin: .2em 0 1.2em; padding-left: 1.6em; }
.blog-v3 .bv3-prose ol.bv3-numlist > li { display: list-item; list-style: decimal outside; padding-left: .3em; }
.blog-v3 .bv3-prose ol.bv3-numlist > li + li { margin-top: .45em; }
.blog-v3 .bv3-prose ol.bv3-numlist > li::marker { font-weight: 600; }
/* Wide in-body images fill the text column from its left edge (they were centred 28px in, and other posts ran full width). */
.blog-v3 .bv3-prose img.bv3-img-wide { width: 100%; max-width: 100%; margin: 1.4em 0; }
.blog-v3 .bv3-prose p > a:only-child > img.bv3-img-wide, .blog-v3 .bv3-prose p > img.bv3-img-wide:only-child { margin: .4em 0; }
@media (max-width: 767px) {
    /* Infographics shrink below reading size on phones: a light frame and a tap target to open them full size (wired in page.js). */
    .blog-v3 .bv3-prose img.bv3-img-wide { border: 1px solid var(--l200); }
}
