/* ==========================================================================
   LekkerLogic blog: the index (blog-*) and article (post-*) pages in /blog.
   Loaded after site.css and built on its tokens and primitives (dark-only, like the site).
   Article pages put class="blog-article" on <body>. Not "blog-post": site.css uses that
   name for the homepage teaser card.
   Sections:
     1  Shared (gutter, breadcrumb, card meta, cover, call to action, footer)
     2  Blog index (featured article, article rows, topics)
     3  Article grid + header (title, dek, facts bar)
     4  Article rail (contents, reading progress)
     5  Article body (type, takeaways, lists, steps, tables, figures)
     6  Article end (note, share, keep reading)
     7  Responsive
     8  Print
   ========================================================================== */

/* 1 Shared ---------------------------------------------------------------- */
/* Anchor jumps clear the 64px sticky nav with room to spare */
html { scroll-padding-top: 96px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--fg-4); }
.crumbs a { transition: color .15s; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg-2); }

/* One meta line for every article card: topic in the signal color, then date and reading time */
.post-meta-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.post-topic { color: var(--signal); }

/* Share-card cover: the image repeats the title, so it is decorative (alt="") next to the real heading */
.post-cover { overflow: hidden; background: var(--bg); }
.post-cover img { display: block; width: 100%; height: auto; transition: transform .2s var(--ease); }

/* Whole-card links: the title link is stretched over the card; the focus ring goes on the card */
.post-card h2 a::after, .post-tile h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.post-card h2 a:focus-visible, .post-tile h3 a:focus-visible { outline: none; }
.post-card:has(h2 a:focus-visible), .post-tile:has(h3 a:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.post-card-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--fg); }
.post-card-more i { color: var(--signal); transition: transform .2s var(--ease); }
.post-card:hover .post-card-more i, .post-tile:hover .post-card-more i { transform: translateX(3px); }

.blog-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding: 24px 28px; border: 1px solid color-mix(in srgb, var(--signal) 32%, transparent); border-radius: var(--radius); background: radial-gradient(120% 140% at 0 0, var(--signal-tint), transparent 60%); }
.blog-cta p { max-width: 46em; margin: 0; font-size: 15.5px; line-height: 1.55; }
.blog-cta p b { color: var(--fg); font-weight: 600; }

.blog-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.blog-foot .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.blog-foot .mark { width: 28px; height: 28px; }
.blog-foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.blog-foot ul a { font-size: 14.5px; color: var(--fg-2); transition: color .15s; }
.blog-foot ul a:hover { color: var(--fg); }
.blog-foot p { flex-basis: 100%; font-size: 13px; color: var(--fg-3); }

/* 2 Blog index ------------------------------------------------------------ */
.blog-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.blog-head h1 { max-width: 17em; margin-top: 24px; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.028em; font-stretch: 96%; text-wrap: balance; }
.blog-lede { max-width: 40em; margin-top: 16px; font-size: 19px; line-height: 1.5; text-wrap: pretty; }

.blog-list { padding: 56px 0 0; }
.blog-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

.post-card { position: relative; }
.post-card h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); line-height: 1.14; letter-spacing: -.022em; font-stretch: 96%; text-wrap: balance; }
.post-card h2 a { color: var(--fg); }
.post-card-body > p:not(.post-meta-line) { max-width: 40em; margin-top: 12px; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.post-card .tags { margin-top: 18px; }
.post-card-more { margin-top: 22px; }

/* Featured: the newest article in a panel, its cover beside the text. The cover column
   stretches to the text height and centers the image on the page color, so a taller text
   column never crops the card (it is mostly text and would lose words). */
.post-card.is-featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-1); overflow: hidden; transition: border-color .15s, background-color .15s; }
.post-card.is-featured:hover { border-color: var(--line-3); }
.is-featured .post-cover { display: flex; align-items: center; border-right: 1px solid var(--line-2); }
.is-featured .post-card-body { display: flex; flex-direction: column; padding: 32px 36px; }
.is-featured h2 { margin-top: 14px; }
.is-featured .post-card-more { margin-top: auto; padding-top: 22px; }
.post-card:hover .post-cover img { transform: scale(1.015); }

/* Earlier articles: one row each, on the site's 3/9 grid (meta | text + cover) */
.blog-list-sub { margin: 56px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.post-card.is-row { display: grid; grid-template-columns: calc((100% - 32px) * .25) minmax(0, 1fr) minmax(0, 300px); gap: 16px 32px; padding: 32px 0; border-bottom: 1px solid var(--line-2); }
.is-row .post-meta-line { flex-direction: column; gap: 8px; padding-top: 6px; }
.is-row .post-cover { align-self: start; border: 1px solid var(--line-2); border-radius: 10px; }

.blog-topics { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 32px; padding: 48px 0 72px; }
.blog-topics p { max-width: 44em; margin-bottom: 16px; font-size: 16px; }
.blog-index .blog-cta { margin-bottom: 96px; }

/* 3 Article grid + header ------------------------------------------------- */
/* One grid for the header and the body: contents rail | reading column | free space.
   The header starts on the reading column's edge, so title, takeaways and text share one left edge.
   The reading column is 640px: about 72 characters a line at 18px. */
.post-grid { --col: 640px; display: grid; grid-template-columns: 240px minmax(0, var(--col)) minmax(0, 1fr); column-gap: 80px; }

.post-head { padding: 56px 0 0; }
.post-head-in { grid-column: 2 / -1; min-width: 0; }
.post-head h1 { max-width: 19em; margin-top: 24px; font-size: clamp(2rem, 1.35rem + 2.2vw, 3.2rem); line-height: 1.06; letter-spacing: -.028em; font-stretch: 96%; text-wrap: balance; }
.post-dek { max-width: var(--col); margin-top: 20px; font-size: 20px; line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
/* Facts bar: who, when, how long. Laid out like the site's spec rows */
.post-facts { display: flex; flex-wrap: wrap; gap: 12px 48px; max-width: var(--col); margin: 32px 0 0; padding: 16px 0; border-block: 1px solid var(--line); }
.post-facts dt { font: 500 11px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.post-facts dd { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--fg); }

/* 4 Article rail ---------------------------------------------------------- */
/* Placement: takeaways, rail and body are siblings in that order, so on one column the
   contents box sits between the takeaways and the text. On wide screens the rail moves to
   column 1 and sticks while the reader scrolls. */
.post-layout { align-items: start; padding-top: 40px; padding-bottom: 72px; }
.post-key, .post-foot { grid-column: 2; min-width: 0; }
/* The body also owns the free column on the right, so a dense figure (class="is-wide") can
   break out into it; everything else keeps the reading measure */
.post-body { grid-column: 2 / -1; min-width: 0; }
.post-body > * { max-width: var(--col); }
.post-body > .post-fig.is-wide { max-width: none; }
/* padding-top puts "On this page" on the same line as "Key takeaways" (1px border + 22px padding) */
.post-rail { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 96px; padding-top: 23px; }

/* Contents: a <details> so it can fold away on narrow screens (blog.js opens it on wide ones) */
.post-toc summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; border-radius: 6px; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc-count { margin-left: auto; font: 500 12px/1.4 var(--mono); color: var(--fg-3); }
.post-toc summary i { font-size: 18px; color: var(--fg-2); transition: transform .2s var(--ease); }
.post-toc details[open] summary i { transform: rotate(180deg); }
.post-toc ol { margin-top: 14px; border-left: 1px solid var(--line-2); counter-reset: toc; }
.post-toc a { counter-increment: toc; position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 7px 0 7px 16px; font-size: 14px; line-height: 1.4; color: var(--fg-2); border-radius: 0 6px 6px 0; transition: color .15s; }
.post-toc a::before { content: counter(toc, decimal-leading-zero); font: 500 11.5px/1.7 var(--mono); color: var(--fg-3); }
.post-toc a:hover { color: var(--fg); }
/* Section in view (set by blog.js): brighter text and a signal tick on the track */
.post-toc a[aria-current] { color: var(--fg); }
.post-toc a[aria-current]::before { color: var(--signal); }
.post-toc a[aria-current]::after { content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--signal); }

/* Reading progress: a hairline along the bottom of the sticky nav, scaled by blog.js */
.post-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.post-progress span { display: block; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; }

/* 5 Article body ---------------------------------------------------------- */
/* Running text is a step brighter than --fg-2 for long reading on the dark canvas */
.post-body { --read: color-mix(in srgb, var(--fg-2) 72%, var(--fg)); counter-reset: sec; padding-top: 40px; }
.post-body > p { margin-top: 20px; font-size: 18px; line-height: 1.7; color: var(--read); text-wrap: pretty; }
.post-body > p:first-child { margin-top: 0; }
.post-body strong { font-weight: 600; color: var(--fg); }
.post-body p a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
.post-body p a:hover { color: var(--signal); }

/* Section headings carry the same index as the contents list. The index is hidden from
   screen readers (the alt text after the slash), with a plain fallback first. */
.post-body > h2 { counter-increment: sec; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: clamp(1.5rem, 1.25rem + .8vw, 1.85rem); line-height: 1.18; letter-spacing: -.022em; font-stretch: 96%; text-wrap: balance; }
.post-body > h2::before { content: counter(sec, decimal-leading-zero); content: counter(sec, decimal-leading-zero) / ''; display: block; margin-bottom: 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--signal); }
.post-body > h2 + p { margin-top: 16px; }
.post-body > h3 { margin-top: 40px; font-size: 20px; line-height: 1.3; letter-spacing: -.014em; }
.post-body > h3 + p { margin-top: 10px; }

/* Key takeaways: the first thing under the header */
.post-key { padding: 22px 28px 14px; border: 1px solid color-mix(in srgb, var(--signal) 30%, transparent); border-radius: var(--radius); background: radial-gradient(120% 120% at 0 0, var(--signal-tint), transparent 60%), var(--bg-1); }
.post-key h2 { display: flex; align-items: center; gap: 8px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--signal); }
.post-key h2 i { font-size: 15px; }
.post-key ul { margin-top: 8px; }
.post-key li { display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 11px 0; font-size: 16.5px; line-height: 1.55; color: var(--fg); text-wrap: pretty; }
.post-key li + li { border-top: 1px solid var(--line); }
.post-key li::before { content: ''; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--signal); }

/* Lead-in lists: a bold claim, its explanation underneath, a small diamond marker */
/* Dividers only between items: the h2 rule above already closes off the section */
.post-points { margin-top: 20px; }
.post-points li { position: relative; padding: 16px 0 16px 28px; }
.post-points li + li, .post-steps li + li { border-top: 1px solid var(--line); }
.post-points li::before { content: ''; position: absolute; left: 2px; top: 24px; width: 7px; height: 7px; border: 1.5px solid var(--signal); border-radius: 1px; transform: rotate(45deg); }
.post-points b { display: block; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--fg); }
.post-points span { display: block; margin-top: 4px; font-size: 16.5px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }

/* Numbered steps: the number sits in a small box so it never reads as a section index */
.post-steps { margin-top: 20px; counter-reset: step; }
.post-steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; padding: 16px 0; }
.post-steps li::before { content: counter(step); grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-3); border-radius: 7px; background: var(--bg-2); font: 500 12.5px/1 var(--mono); color: var(--fg); }
.post-steps b { grid-column: 2; padding-top: 2px; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--fg); }
.post-steps span { grid-column: 2; margin-top: 4px; font-size: 16.5px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }

/* Tables and figures: captions sit above, as in the whitepaper */
.post-fig { margin: 32px 0 0; }
.post-fig figcaption { margin-bottom: 10px; font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.post-fig figcaption b { margin-right: 8px; font: 500 12px/1.5 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--fg); }
.post-tw { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); }
.post-t { width: 100%; border-collapse: collapse; }
.post-t th, .post-t td { padding: 12px 16px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.5; border-top: 1px solid var(--line); }
.post-t thead th { border-top: 0; padding-block: 11px; background: var(--bg-2); font: 500 11px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.post-t tbody th { width: 24%; font-weight: 600; color: var(--fg); }
.post-t td { color: var(--fg-2); }
.post-t td + td, .post-t th + td, .post-t th + th { border-left: 1px solid var(--line); }
.post-t.is-vs thead th:last-child { color: var(--signal); }
.post-t.is-vs td:last-child { color: var(--fg); background: color-mix(in srgb, var(--signal) 4%, transparent); }
.post-fig .post-note { margin-top: 10px; }
.post-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: var(--radius); }
.post-fig > a { display: block; border-radius: var(--radius); }
.post-fig + .post-steps, .post-fig + .post-points { margin-top: 32px; }
.post-fig + p { margin-top: 32px; }

.post-note { max-width: 60em; font-size: 13.5px; line-height: 1.55; color: var(--fg-3); }
/* A note in the running text (an assumption behind a figure) keeps the note size, not the body size */
.post-body > p.post-note { max-width: var(--col); margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--fg-3); }

/* Callout: one statement set apart from the running text, such as a policy. Same panel as the takeaways. */
.post-callout { margin-top: 32px; padding: 20px 28px 22px; border: 1px solid color-mix(in srgb, var(--signal) 30%, transparent); border-radius: var(--radius); background: radial-gradient(120% 120% at 0 0, var(--signal-tint), transparent 60%), var(--bg-1); }
.post-callout .mono-label { display: flex; align-items: center; gap: 8px; color: var(--signal); }
.post-callout .mono-label i { font-size: 15px; }
.post-callout p:not(.mono-label) { margin-top: 12px; font-size: 16.5px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.post-callout + p { margin-top: 32px; }

/* 6 Article end ----------------------------------------------------------- */
.post-foot { margin-top: 48px; }
.post-foot > .post-note { padding-top: 20px; border-top: 1px solid var(--line); }
.post-foot .blog-cta { margin-top: 24px; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.post-share .mono-label { margin-right: 8px; }
.post-share .btn i { font-size: 15px; color: var(--fg-2); }
.post-share .btn.is-done i { color: var(--signal); }

/* Keep reading: a full-width band after the article, the next article and one related page */
.post-more { padding: 56px 0 96px; border-top: 1px solid var(--line); }
.post-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.post-more-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px; }
.post-tile { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-1); overflow: hidden; transition: border-color .15s; }
.post-tile:hover { border-color: var(--line-3); }
.post-tile .post-cover { display: flex; align-items: center; border-right: 1px solid var(--line-2); }
.post-tile:hover .post-cover img { transform: scale(1.015); }
.post-tile-body { display: flex; flex-direction: column; padding: 24px 28px; }
.post-tile .mono-label { color: var(--fg-3); }
.post-tile h3 { margin-top: 12px; font-size: 19px; line-height: 1.3; letter-spacing: -.014em; text-wrap: balance; }
.post-tile h3 a { color: var(--fg); }
.post-tile-body > p:not(.post-meta-line, .mono-label) { margin-top: 10px; font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.post-tile .post-card-more { margin-top: auto; padding-top: 18px; }
.post-tile.is-related { display: flex; }
.post-tile.is-related .post-tile-body { flex: 1; }
.post-tile-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--bg-2); font-size: 19px; color: var(--signal); }

/* 7 Responsive ------------------------------------------------------------ */
/* Below 1120px there is no room for the rail: one column, contents folded under the takeaways */
@media (max-width: 1120px) {
    /* The single column keeps the 640px measure and centers on tablets */
    .post-grid { grid-template-columns: minmax(0, var(--col)); justify-content: center; column-gap: 0; }
    .post-head-in, .post-key, .post-body, .post-foot, .post-rail { grid-column: 1; grid-row: auto; }
    .post-rail { position: static; margin-top: 16px; padding-top: 0; }
    .post-toc details { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-1); }
    .post-toc summary { min-height: 52px; padding: 0 18px; }
    .post-toc ol { margin: 0 18px 14px; }
    .post-body { padding-top: 40px; }
}
/* Wide screens: the contents list is always open, so its summary is a plain label */
@media (min-width: 1121px) {
    .post-toc summary { cursor: default; pointer-events: none; }
    .post-toc-count, .post-toc summary i { display: none; }
}

@media (max-width: 960px) {
    .post-card.is-featured { grid-template-columns: minmax(0, 1fr); }
    .is-featured .post-cover { border-right: 0; border-bottom: 1px solid var(--line-2); }
    .post-card.is-row { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }
    .is-row .post-meta-line { grid-column: 1 / -1; flex-direction: row; padding-top: 0; }
    .blog-topics { grid-template-columns: minmax(0, 1fr); }
    .post-more-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .blog-head { padding: 48px 0 40px; }
    .post-head { padding-top: 40px; }
    .blog-lede { font-size: 17px; }
    .post-dek { font-size: 17.5px; }
    .post-facts { gap: 12px 32px; margin-top: 24px; }
    .is-featured .post-card-body { padding: 22px 20px 24px; }
    .post-card.is-row { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
    .is-row .post-cover { grid-row: 1; }
    .post-body > p { font-size: 17px; line-height: 1.68; }
    .post-body > h2 { margin-top: 48px; padding-top: 20px; }
    .post-key { padding: 18px 18px 10px; }
    .post-key li { font-size: 16px; }
    .post-callout { padding: 18px; }
    .post-callout p:not(.mono-label) { font-size: 16px; }
    .post-points b, .post-steps b { font-size: 16.5px; }
    .post-points span, .post-steps span { font-size: 16px; }
    /* Tables stack on phones: one block per row, headed by its row header. Cells with a
       data-label show it above the value, so a 3- or 4-column comparison reads top to
       bottom instead of scrolling sideways. The column header row is kept for screen readers only. */
    .post-t, .post-t tbody, .post-t tr, .post-t th, .post-t td { display: block; width: auto; }
    .post-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .post-t tbody tr + tr { border-top: 1px solid var(--line-2); }
    .post-t tbody tr { padding: 12px 0; }
    .post-t th, .post-t td, .post-t td + td, .post-t th + td { padding: 4px 16px; border: 0; font-size: 15px; }
    .post-t tbody th { width: auto; padding-bottom: 6px; font-size: 15.5px; }
    .post-t td + td { padding-top: 10px; }
    .post-t td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 500 10.5px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
    .post-t.is-vs td:last-child { margin-top: 6px; padding-block: 8px; background: color-mix(in srgb, var(--signal) 6%, transparent); }
    .post-t.is-vs td:last-child::before { color: var(--signal); }
    .blog-cta { padding: 20px; }
    .blog-cta .btn { width: 100%; }
    .blog-list { padding-top: 40px; }
    .blog-list-sub { margin-top: 48px; }
    .blog-topics { padding: 40px 0 56px; }
    .blog-index .blog-cta { margin-bottom: 72px; }
    .post-layout { padding-bottom: 72px; }
    .post-tile { grid-template-columns: minmax(0, 1fr); }
    .post-tile .post-cover { border-right: 0; border-bottom: 1px solid var(--line-2); }
    .post-tile-body { padding: 20px; }
    .post-more { padding: 48px 0 72px; }
}
/* Phones: 16px gutters give the text column a few more characters a line */
@media (max-width: 480px) {
    :root { --gutter: 16px; }
}

/* 8 Print: light paper, Letter, each article on one or two pages ---------- */
@media print {
    @page { size: Letter; margin: .5in .6in .45in; }
    :root {
        color-scheme: light;
        --bg: #fff; --bg-1: #fff; --bg-2: #f1f4f5; --bg-3: #e9edef;
        --line: rgba(10, 20, 25, .11); --line-2: rgba(10, 20, 25, .2); --line-3: rgba(10, 20, 25, .34);
        --fg: #0b1215; --fg-2: #2a343a; --fg-3: #56616a; --fg-4: #98a2a9;
        --signal: #0a7a58; --signal-tint: rgba(10, 122, 88, .07); --signal-ring: transparent;
        --gutter: 0px; --radius: 6px;
    }
    *, *::before, *::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; }
    html, body { background: #fff; }
    /* .post-no-print: screen-only blocks, such as dark diagrams. Screen UI never prints. */
    .nav, .skip, .post-rail, .post-progress, .crumbs, .post-share, .post-more, .post-no-print, .blog-cta .btn, .blog-foot ul, .blog-foot .brand { display: none !important; }
    .wrap { max-width: none; }
    a { text-decoration: none !important; }
    .post-grid { display: block; }

    .post-head { padding: 0; }
    .post-head h1 { max-width: none; margin-top: 0; font-size: 22px; line-height: 1.12; }
    .post-dek { max-width: none; margin-top: 5px; font-size: 11.5px; line-height: 1.45; }
    .post-facts { max-width: none; gap: 0 22px; margin-top: 8px; padding: 4px 0; }
    .post-facts div { display: flex; align-items: baseline; gap: 6px; }
    .post-facts dt { font-size: 7.4px; }
    .post-facts dd { margin: 0; font-size: 9.4px; }
    .post-layout { padding: 10px 0 0; }

    .post-body { padding-top: 10px; }
    .post-body > * { max-width: none; }
    .post-body > p { margin-top: 6px; font-size: 10.2px; line-height: 1.48; color: var(--fg-2); }
    .post-body > h2 { margin-top: 14px; padding-top: 0; border-top: 0; font-size: 13.5px; break-after: avoid; }
    .post-body > h2::before { content: none; }
    .post-body > h2 + p { margin-top: 5px; }
    .post-body > h2.post-break { break-before: page; margin-top: 0; }
    .post-key { padding: 7px 12px 4px; background: #fff; }
    .post-key h2 { font-size: 8px; }
    .post-key h2 i { font-size: 10px; }
    .post-key ul { margin-top: 2px; }
    .post-key li { grid-template-columns: 12px minmax(0, 1fr); padding: 3px 0; font-size: 9.8px; line-height: 1.4; }
    .post-key li::before { width: 4px; height: 4px; }

    .post-points, .post-steps { margin-top: 7px; }
    /* Lists go back to two columns on paper: claim | explanation */
    .post-points li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 18px; padding: 3.5px 0 3.5px 12px; font-size: 9.8px; line-height: 1.4; break-inside: avoid; }
    .post-points li::before { left: 1px; top: 7px; width: 4px; height: 4px; border-width: 1px; }
    .post-points b, .post-points span { margin: 0; font-size: 9.8px; line-height: 1.4; }
    /* Steps share the points' columns: number in the 12px marker slot, then claim | explanation */
    .post-steps li { position: relative; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 18px; padding: 3.5px 0 3.5px 12px; break-inside: avoid; }
    .post-steps li::before { position: absolute; left: 0; top: 3.5px; grid-area: auto; display: block; width: auto; height: auto; border: 0; background: none; font-size: 8px; line-height: 1.7; color: var(--signal); }
    .post-steps b { grid-column: 1; padding: 0; }
    .post-steps span { grid-column: 2; margin: 0; }
    .post-steps b, .post-steps span { font-size: 9.8px; line-height: 1.4; }

    .post-fig { margin-top: 9px; break-inside: avoid; }
    .post-fig + p, .post-fig + .post-steps, .post-fig + .post-points { margin-top: 8px; }
    .post-fig figcaption { margin-bottom: 4px; font-size: 8.8px; }
    .post-fig figcaption b { margin-right: 4px; font-size: 7.6px; }
    .post-tw { overflow: visible; }
    .post-t { min-width: 0; }
    .post-t th, .post-t td { padding: 3.5px 8px; font-size: 9.5px; line-height: 1.38; }
    .post-t thead th { padding-block: 3.5px; font-size: 7.3px; }
    .post-t.is-vs td:last-child { background: none; }
    .post-fig .post-note { margin-top: 4px; }
    .post-note { max-width: none; font-size: 8.4px; }
    .post-body > p.post-note { margin-top: 4px; font-size: 8.4px; line-height: 1.45; color: var(--fg-3); }
    .post-callout { margin-top: 8px; padding: 6px 12px; background: #fff; break-inside: avoid; }
    .post-callout .mono-label { gap: 5px; font-size: 7.6px; }
    .post-callout .mono-label i { font-size: 10px; }
    .post-callout p:not(.mono-label) { margin-top: 3px; font-size: 9.8px; line-height: 1.4; }
    .post-callout + p { margin-top: 8px; }

    .post-foot { margin-top: 12px; break-inside: avoid; }
    .post-foot > .post-note { padding-top: 5px; }
    .post-foot .blog-cta { margin-top: 6px; padding: 7px 12px; background: #fff; }
    .blog-cta p { max-width: none; font-size: 9.8px; line-height: 1.42; }
    .blog-cta p::after { content: ' lekkerlogic.com'; font: 500 9.4px/1.4 var(--mono); color: var(--signal); }
    .blog-foot { margin-top: 10px; padding: 6px 0 0; }
    .blog-foot p { font-size: 7.8px; }
}
