/* Blog (/blog, /blog/:slug) - the public reader for posts written from the
   channel's videos. Loaded after style.css + instrument.css and leans on the
   --in-* tokens; the numbers mirror the study-guide reader (.sgd-*: 1180 wrap,
   220px rail + 44px gap + 868px column, 19/1.72 prose) so the two long-form
   readers feel like one site. Everything here is .blg-* on purpose: .dd-prose
   is shared with the admin previews and must not change, and directive blocks
   (callouts, figures, checks, charts, chapters) bring their own styles from
   deep-dive.css. No Tailwind utilities in the blog views, so a purge can never
   strip one of their classes. */

/* ── Base ── */
body.blg { background: var(--in-panel); color: var(--in-ink); }
.blg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 64px; }
.blg-lab { font-family: var(--in-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--in-ink3); }
.blg-lab--or { color: var(--in-orange); }
.blg-lab--dim { color: var(--in-ink4); }
.blg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Breadcrumb (views/includes/breadcrumb.ejs variant 'blog') ── */
.blg-crumb { display: flex; align-items: center; gap: 8px; padding: 22px 0 4px; flex-wrap: wrap; }
.blg-crumb a, .blg-crumb span { font-family: var(--in-mono); font-size: 11px; letter-spacing: .06em; color: var(--in-ink4); text-decoration: none; }
.blg-crumb a:hover { color: var(--in-orange); }
.blg-crumb .cur { color: var(--in-ink2); }
@media (max-width: 640px) { .blg-crumb.bc-hide-current-sm .cur, .blg-crumb.bc-hide-current-sm .cur ~ *, .blg-crumb.bc-hide-current-sm span:nth-last-child(2) { display: none; } }

/* Admin preview banner */
.blg-preview { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; padding: 10px 14px; background: var(--in-orange-tint); border: 1px solid var(--in-orange-edge); border-radius: 9px; font-size: 14px; color: var(--in-ink2); }
.blg-preview b { color: var(--in-ink); font-weight: 600; }

/* ── Hero ── */
.blg-hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: start; padding: 22px 0 34px; }
.blg-hero--solo { grid-template-columns: minmax(0, 868px); }
.blg-kicker { display: inline-flex; align-items: center; gap: 9px; background: var(--in-panel2); border: 1px solid var(--in-hairline); border-radius: 999px; padding: 6px 13px; margin-bottom: 18px; flex-wrap: wrap; }
.blg-lamp { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--in-ink4); box-shadow: 0 0 0 3px rgba(35,35,32,.06); }
.blg-lamp.is-or { background: var(--in-orange); box-shadow: 0 0 0 3px rgba(229,90,18,.16); }
.blg-lamp.is-re { background: var(--in-re); box-shadow: 0 0 0 3px rgba(196,68,46,.16); }
.blg-lamp.is-gr { background: var(--in-gr); box-shadow: 0 0 0 3px rgba(46,158,107,.16); }
.blg-hero h1 { font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -.042em; margin: 0 0 16px; color: var(--in-ink); text-wrap: balance; }
.blg-hero h1 .dot, .blg-index__head h1 .dot { color: var(--in-orange); }
.blg-hero__sub { color: var(--in-ink2); font-size: 19px; line-height: 1.6; max-width: 600px; margin: 0 0 22px; }
.blg-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.blg-metatag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--in-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--in-ink3); background: var(--in-well); border: 1px solid var(--in-well-edge); border-radius: 7px; padding: 6px 10px; box-shadow: var(--in-inset); }
.blg-metatag b { color: var(--in-ink); font-weight: 400; }

/* ── The video: a facade until the reader asks for it ── */
.blg-hero__media { min-width: 0; }
.blg-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--in-black); border: 1px solid var(--in-black-edge); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 18px 40px -22px rgba(35,35,32,.7); }
.blg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blg-video__facade { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.blg-video__facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, filter .35s ease; }
.blg-video__facade:hover img { transform: scale(1.015); filter: brightness(.93); }
.blg-video__facade.is-bare { background: linear-gradient(160deg, var(--in-black2), var(--in-black)); }
.blg-video__bare-title { position: absolute; left: 24px; right: 90px; bottom: 22px; font-weight: 700; font-size: clamp(18px, 2vw, 24px); letter-spacing: -.02em; line-height: 1.2; color: #F0EEE4; }
.blg-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding-left: 4px; background: linear-gradient(180deg, #F06A24, var(--in-orange)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -8px rgba(194,74,11,.8); transition: transform .15s ease; }
.blg-video__facade:hover .blg-video__play, .blg-video__facade:focus-visible .blg-video__play { transform: translate(-50%, -50%) scale(1.06); }
.blg-video__facade:focus-visible { outline: 3px solid var(--in-orange); outline-offset: -3px; }
.blg-video__facade.is-locked .blg-video__play { padding-left: 0; background: var(--in-black2); }
.blg-video__dur { position: absolute; right: 12px; bottom: 12px; font-family: var(--in-mono); font-size: 11px; letter-spacing: .06em; color: #fff; background: rgba(20,20,18,.78); border-radius: 6px; padding: 4px 8px; }
.blg-video__start { position: absolute; left: 12px; bottom: 12px; font-family: var(--in-mono); font-size: 11px; letter-spacing: .06em; color: #fff; background: var(--in-orange); border-radius: 6px; padding: 4px 8px; }
.blg-video__start[hidden] { display: none; }
.blg-video__note { margin: 10px 2px 0; font-size: 13px; color: var(--in-ink3); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.blg-video__note a { color: var(--in-ink2); text-decoration: none; border-bottom: 1px solid var(--in-hairline); }
.blg-video__note a:hover { color: var(--in-orange); border-bottom-color: var(--in-orange-edge); }
.blg-hero__figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--in-well-edge); box-shadow: var(--in-lift); }
.blg-hero__figure img { width: 100%; height: auto; display: block; }

/* Chapters under the player */
.blg-chapters { margin-top: 16px; background: var(--in-well); border: 1px solid var(--in-well-edge); border-radius: 12px; box-shadow: var(--in-inset); }
.blg-chapters summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.blg-chapters summary::-webkit-details-marker { display: none; }
.blg-chapters summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--in-ink4); border-bottom: 2px solid var(--in-ink4); transform: rotate(45deg); transition: transform .15s ease; }
.blg-chapters[open] summary::after { transform: rotate(-135deg); }
.blg-chapters ol { list-style: none; margin: 0; padding: 0 6px 8px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.blg-chapters button { width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 7px 8px; background: none; border: 0; border-radius: 7px; cursor: pointer; text-align: left; font-family: inherit; color: var(--in-ink2); }
.blg-chapters button:hover, .blg-chapters button:focus-visible { background: var(--in-panel2); color: var(--in-ink); }
.blg-chapters button.is-now { background: var(--in-orange-tint); color: var(--in-ink); }
.blg-chapters .t { font-family: var(--in-mono); font-size: 11.5px; color: var(--in-orange); flex: none; width: 44px; }
.blg-chapters .n { font-size: 15px; line-height: 1.4; }

/* ── Body: "On this page" + the article ── */
.blg-body { display: grid; grid-template-columns: 220px minmax(0, 868px); gap: 44px; align-items: start; padding-top: 6px; border-top: 1px solid var(--in-hairline); }
.blg-body--solo { grid-template-columns: minmax(0, 868px); }
.blg-toc-wrap { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; padding-top: 26px; }
.blg-toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 2px solid var(--in-well-edge); }
.blg-toc a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.35; color: var(--in-ink3); text-decoration: none; }
.blg-toc a:hover { color: var(--in-ink); }
.blg-toc a[aria-current="true"] { color: var(--in-ink); border-left-color: var(--in-orange); font-weight: 600; }
.blg-toc-m { display: none; margin: 18px 0 24px; background: var(--in-well); border: 1px solid var(--in-well-edge); border-radius: 10px; box-shadow: var(--in-inset); }
.blg-toc-m summary { cursor: pointer; padding: 11px 14px; font-weight: 600; font-size: 15px; color: var(--in-ink); }
.blg-toc-m ol { margin: 0; padding: 0 16px 12px 34px; }
.blg-toc-m li { margin: 6px 0; }
.blg-toc-m a { color: var(--in-ink2); text-decoration: none; }
.blg-content { min-width: 0; padding-top: 22px; }

/* ── Prose ── */
.blg-prose { font-size: 19px; line-height: 1.72; color: var(--in-ink2); }
/* A 720px measure for text; figures, charts, diagrams, scenes, tables and code
   take the whole 868px column. */
.blg-prose > * { max-width: 720px; }
.blg-prose > :is(.dd-figure, .dd-viz-figure, .dd-chart, .lts-scene, .lts-scene-sync, .vl-source-card, .blg-table, table, pre, .code-block-wrapper, .dd-quiz-card, .dd-callout-summary, .iqv-plate) { max-width: none; }
.blg-prose > *:first-child { margin-top: 0; }
/* Element rules sit inside :where() - zero specificity - so every directive
   block's own classes (.dd-check-q, .dd-quiz-list, .ddc-foot ...) beat them,
   while they still beat Tailwind's preflight (ul{list-style:none},
   a{color:inherit}, p{margin:0}) by coming later. */
:where(.blg-prose) p { margin: 0 0 18px; }
:where(.blg-prose) :is(strong, b) { color: var(--in-ink); font-weight: 600; }
:where(.blg-prose) a { color: var(--in-orange); text-decoration: none; border-bottom: 1px solid var(--in-orange-edge); }
:where(.blg-prose) a:hover { color: var(--in-orangeD); border-bottom-color: currentColor; }
:where(.blg-prose) h2 { font-weight: 700; font-size: 29px; letter-spacing: -.03em; line-height: 1.18; color: var(--in-ink); margin: 52px 0 16px; scroll-margin-top: 84px; text-wrap: balance; }
:where(.blg-prose) h3 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.3; color: var(--in-ink); margin: 32px 0 10px; scroll-margin-top: 84px; }
:where(.blg-prose) h4 { font-weight: 700; font-size: 17.5px; letter-spacing: -.01em; color: var(--in-ink); margin: 24px 0 8px; }
:where(.blg-prose) ul { list-style: disc; margin: 0 0 18px; padding-left: 24px; }
:where(.blg-prose) ol { list-style: decimal; margin: 0 0 18px; padding-left: 26px; }
:where(.blg-prose) li { margin: 0 0 8px; }
:where(.blg-prose) li::marker { color: var(--in-ink4); }
:where(.blg-prose) blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--in-orange); color: var(--in-ink2); }
:where(.blg-prose) blockquote > :last-child { margin-bottom: 0; }
:where(.blg-prose) hr { border: 0; height: 1px; background: var(--in-hairline); margin: 32px 0; }
:where(.blg-prose) img { max-width: 100%; height: auto; }
:where(.blg-prose) code { font-family: var(--in-mono); font-size: .84em; background: var(--in-panel2); border: 1px solid var(--in-hairline); border-radius: 5px; padding: 1px 6px; color: var(--in-ink); }
:where(.blg-prose) pre { margin: 0 0 22px; border-radius: 10px; overflow-x: auto; }
/* Prism's pre[class*=language-] and code[class*=language-] (0,1,1) set the
   margin, font-size: 1em and a Consolas stack, beating the zero-specificity
   rules above: code would inherit the 19px prose size and a different face.
   These carry the site's mono at 15px (13.5px on a phone). */
.blg-prose pre[class*="language-"] { margin: 0 0 22px; font-size: 15px; line-height: 1.6; }
.blg-prose pre[class*="language-"] > code { font-family: var(--in-mono); font-size: inherit; line-height: inherit; }
@media (max-width: 640px) { .blg-prose pre[class*="language-"] { font-size: 13.5px; } }
/* A before/after code pair stacks at a 1000px VIEWPORT; the blog's column is
   868px even on a wide screen, so side by side each panel clipped its code
   behind a scrollbar. Stacked, each gets the whole column. */
.blg-prose .iqv-anatomy-pair { grid-template-columns: minmax(0, 1fr); }
/* Touch screens show the Copy button all the time: give it its own band so it
   never sits on the first line of code. */
@media (hover: none) { .blg-prose pre[class*="language-"] { padding-top: 42px; } }
:where(.blg-prose) pre code { background: none; border: 0; padding: 0; font-size: 15px; color: inherit; }
/* Tables: machined wells. Only the article's own tables (direct children, or
   wrapped by the script in .blg-table for sideways scrolling) - a chart's
   "Show the numbers" table keeps its own look. */
.blg-table { overflow-x: auto; margin: 8px 0 24px; border-radius: 10px; }
:where(.blg-prose > table, .blg-table > table) { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 24px; font-size: 15.5px; background: var(--in-well); border: 1px solid var(--in-well-edge); border-radius: 10px; overflow: hidden; box-shadow: var(--in-inset); }
:where(.blg-table > table) { margin: 0; }
:where(.blg-prose > table, .blg-table > table) thead th { text-align: left; font-family: var(--in-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--in-ink3); background: var(--in-panel2); padding: 10px 14px; border-bottom: 1px solid var(--in-hairline); }
:where(.blg-prose > table, .blg-table > table) tbody td { padding: 11px 14px; border-bottom: 1px solid var(--in-hairline); color: var(--in-ink2); line-height: 1.55; vertical-align: top; }
:where(.blg-prose > table, .blg-table > table) tbody tr:last-child td { border-bottom: 0; }
:where(.blg-prose > table, .blg-table > table) tbody td strong { color: var(--in-ink); }
/* Four or more columns (blogSeo.wrapTables marks them): on a phone each row
   becomes a card and each cell carries its column's name, instead of four
   columns squeezed to a word per line. The header stays for screen readers. */
@media (max-width: 640px) {
   .blg-table--stack { overflow: visible; }
   .blg-table--stack table, .blg-table--stack tbody, .blg-table--stack tr, .blg-table--stack td { display: block; width: auto; }
   .blg-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
   .blg-table--stack tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--in-hairline); }
   .blg-table--stack tbody tr:last-child { border-bottom: 0; }
   .blg-table--stack tbody td { padding: 0; border-bottom: 0; }
   .blg-table--stack tbody td + td { margin-top: 10px; }
   .blg-table--stack tbody td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--in-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--in-ink3); }
   .blg-table--stack tbody td:first-child { color: var(--in-ink); font-weight: 600; }
   .blg-table--stack tbody td:first-child::before { content: none; }
}
/* A timeline span's label is cut to one line with an ellipsis by the
   diagram's own CSS; on a phone a two-unit span is about 45px wide, so "one
   pass" became "...". In a post it wraps instead. */
@media (max-width: 640px) {
   .blg-prose .iqv-tlspan-label { white-space: normal; overflow-wrap: break-word; text-overflow: clip; }
}
/* A comparison of two options fits a phone once the diagram's 480px floor
   goes (the floor keeps three or more columns readable; those still scroll). */
@media (max-width: 640px) {
   .blg-prose .iqv-cmp:not(:has(thead th:nth-child(4))) { min-width: 0; }
   .blg-prose .iqv-cmp:not(:has(thead th:nth-child(4))) :is(th, td) { padding-left: 8px; padding-right: 8px; }
   .blg-prose .iqv-cmp:not(:has(thead th:nth-child(4))) tbody th { white-space: normal; }
}
/* A diagram code panel with more code off to the right (blog-reader.js). */
.blg-prose .iqv-code.blg-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
/* Baked blocks inside the prose. Links inside them keep the block's look. */
.blg-prose :is(.dd-callout, .dd-figure, .dd-check, .dd-chart, .iqv-plate, .dd-quiz-card) { margin: 26px 0; }
.blg-prose > .dd-callout-summary:first-child { margin-top: 0; }
.blg-prose :is(.dd-chart, .dd-quiz-card, .dd-check, .iqv-plate) a { border-bottom: 0; }
/* A chart's wide layout is drawn at 720px; here the card is the full 868px
   column, so let it scale up (text grows with it) instead of leaving a gutter. */
.blg-prose .dd-chart .ddc-svg--wide { max-width: none; }
/* Preflight makes images display:block, so the figure's text-align cannot
   centre them: auto margins do, keeping picture and caption on one axis. */
.blg-prose figure.dd-figure:not(.dd-viz-figure) img { margin-left: auto; margin-right: auto; border-radius: 10px; border: 1px solid var(--in-well-edge); background: var(--in-paper); }
.blg-prose img.blg-zoomable { cursor: zoom-in; }
.blg-prose img.blg-zoomable:focus-visible { outline: 3px solid var(--in-orange); outline-offset: 3px; }
.blg-prose figure.dd-figure figcaption { font-size: 14px; line-height: 1.5; color: var(--in-ink3); margin-top: 8px; }
/* A chapter marker: a small "play from here" pill above the section it opens,
   with the video's own name for that part beside it. */
.blg-prose .dd-chapter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 48px 0 12px; padding: 0; border: 0; }
.blg-prose .dd-chapter + h2 { margin-top: 0; }
.blg-prose .dd-chapter-play { display: inline-flex; align-items: center; gap: 6px; font-family: var(--in-mono); font-weight: 400; font-size: 11px; letter-spacing: .06em; color: var(--in-orangeD); background: var(--in-panel); border: 1px solid var(--in-hairline); border-radius: 999px; padding: 4px 11px; cursor: pointer; box-shadow: var(--in-lift); }
.blg-prose .dd-chapter-play:hover, .blg-prose .dd-chapter-play:focus-visible { border-color: var(--in-orange); color: var(--in-orange); background: var(--in-panel); }
.blg-prose .dd-chapter-title { font-family: var(--in-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--in-ink4); }

/* Practice card (hydrated :::quiz and the post-level card) */
.blg .dd-quiz-free { font-family: var(--in-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--in-gr-text); background: var(--in-gr-tint); border: 1px solid #BCD7C6; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
.blg-practice { margin: 36px 0 0; }

/* Paywall (premium posts only) */
.blg-paywall { margin: 28px 0; padding: 26px 26px 24px; background: var(--in-panel2); border: 1px solid var(--in-hairline); border-radius: 14px; box-shadow: var(--in-inset); }
.blg-paywall h2 { margin: 6px 0 8px; font-size: 23px; font-weight: 700; letter-spacing: -.02em; color: var(--in-ink); }
.blg-paywall p { margin: 0 0 18px; font-size: 17px; line-height: 1.6; color: var(--in-ink2); }
.blg-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--in-sans); font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 9px; border: 0; cursor: pointer; text-decoration: none; background: linear-gradient(180deg, #F06A24, var(--in-orange)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 5px -1px rgba(194,74,11,.6); }
.blg-btn:hover { background: linear-gradient(180deg, #E8611C, var(--in-orangeD)); color: #fff; }

/* ── End matter ── */
.blg-end { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--in-hairline); display: flex; flex-direction: column; gap: 28px; }
.blg-end__share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.blg-channel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 30px; background: linear-gradient(180deg, var(--in-black2), var(--in-black)); border: 1px solid var(--in-black-edge); border-radius: 16px; color: #F0EEE4; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 18px 40px -22px rgba(35,35,32,.7); }
.blg-channel h2 { margin: 8px 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: #F0EEE4; }
.blg-channel p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #A6A59B; max-width: 460px; }
.blg-channel__links { display: flex; flex-wrap: wrap; gap: 12px; }
.blg-channel__link { display: inline-flex; align-items: center; gap: 11px; padding: 12px 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; text-decoration: none; color: #F0EEE4; }
.blg-channel__link:hover { background: rgba(255,255,255,.09); color: #fff; }
.blg-channel__link .k { font-family: var(--in-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #A6A59B; }
.blg-channel__link .tt { font-weight: 700; font-size: 14.5px; }
.blg-channel__link .ar { color: var(--in-orange); font-weight: 700; }
.blg-related ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.blg-related a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 16px 18px; background: var(--in-well); border: 1px solid var(--in-well-edge); border-radius: 12px; box-shadow: var(--in-inset); text-decoration: none; }
.blg-related a:hover { border-color: var(--in-orange-edge); }
.blg-related .tt { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--in-ink); }
.blg-related .sub { font-size: 14px; line-height: 1.45; color: var(--in-ink3); }

/* Image zoom */
.blg-zoom { padding: 0; border: 0; border-radius: 12px; max-width: min(1400px, 96vw); max-height: 94vh; background: var(--in-paper); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.blg-zoom::backdrop { background: rgba(20,20,18,.72); }
.blg-zoom img { display: block; max-width: min(1400px, 96vw); max-height: 94vh; width: auto; height: auto; }
.blg-zoom__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(20,20,18,.75); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* ── Index ── */
.blg-index__head { padding: 24px 0 30px; max-width: 760px; }
.blg-index__head h1 { font-weight: 700; font-size: clamp(38px, 5vw, 58px); line-height: 1.0; letter-spacing: -.045em; margin: 14px 0 16px; color: var(--in-ink); }
.blg-index__sub { color: var(--in-ink2); font-size: 19px; line-height: 1.6; margin: 0 0 20px; }
.blg-index__links { display: flex; gap: 10px; flex-wrap: wrap; }
.blg-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--in-ink2); background: linear-gradient(180deg, #F2F1EE, #E4E2DC); border: 1px solid var(--in-hairline); border-radius: 9px; padding: 8px 13px; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; text-decoration: none; }
.blg-pill:hover { color: var(--in-ink); }
.blg-feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: var(--in-well); border: 1px solid var(--in-well-edge); border-radius: 18px; overflow: hidden; box-shadow: var(--in-lift); text-decoration: none; color: inherit; }
.blg-feature:hover { border-color: var(--in-orange-edge); }
.blg-feature__media { position: relative; aspect-ratio: 16 / 9; background: var(--in-black); }
.blg-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blg-feature--solo { grid-template-columns: minmax(0, 1fr); }
.blg-feature--solo .blg-feature__text { padding: 30px 34px; }
.blg-feature--solo .blg-feature__foot { justify-content: flex-start; gap: 22px; }
.blg-feature__text { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; }
.blg-feature__text .blg-kicker { align-self: flex-start; }
.blg-feature h2 { margin: 0 0 12px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; color: var(--in-ink); text-wrap: balance; }
.blg-feature p { margin: 0 0 20px; font-size: 16.5px; line-height: 1.55; color: var(--in-ink2); }
.blg-feature__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.blg-feature__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blg-feature__go { font-weight: 700; font-size: 15px; color: var(--in-orangeD); }
.blg-list { margin-top: 40px; }
.blg-list ol { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--in-hairline); }
.blg-list a { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--in-hairline); text-decoration: none; }
.blg-list a:hover .tt { color: var(--in-orangeD); }
.blg-list__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.blg-list .tt { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--in-ink); }
.blg-list .sub { font-size: 15px; line-height: 1.5; color: var(--in-ink3); }
.blg-list__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.blg-channel--index { margin-top: 48px; }
.blg-empty { max-width: 620px; margin: 10px 0 0; padding: 36px 30px; background: var(--in-well); border: 1px solid var(--in-well-edge); border-radius: 14px; box-shadow: var(--in-inset); }
.blg-empty h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: var(--in-ink); }
.blg-empty p { margin: 0 0 18px; color: var(--in-ink2); font-size: 16px; line-height: 1.55; }

/* ── Responsive ── */
@media (max-width: 980px) {
   .blg-hero { grid-template-columns: 1fr; gap: 26px; }
   .blg-body { grid-template-columns: 1fr; gap: 0; }
   .blg-toc-wrap { display: none; }
   .blg-toc-m { display: block; }
   .blg-prose > * { max-width: none; }
   .blg-feature { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
   .blg-wrap { padding: 0 16px 48px; }
   .blg-hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
   .blg-prose, .blg-hero__sub, .blg-index__sub { font-size: 17px; }
   .blg-prose h2 { font-size: 24px; margin-top: 40px; }
   .blg-prose h3 { font-size: 20px; }
   .blg-prose h4 { font-size: 16.5px; }
   .blg-prose pre code { font-size: 13.5px; }
   .blg-video__play { width: 60px; height: 60px; }
   .blg-channel, .blg-paywall { padding: 22px 20px; }
   .blg-feature__text { padding: 22px 20px; }
   .blg-list a { grid-template-columns: 1fr; gap: 6px; }
   .blg-list__meta { flex-direction: row; align-items: center; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
   .blg-video__facade img, .blg-video__play, .blg-chapters summary::after { transition: none; }
}
