/* ═══════════════════════════════════════════════════════════════════════════
   RuralBytesTamil blog: index (blog.html) and article template (blog-*.html)
   Sits on rb.css (tokens, nav, footer, buttons, closing band). Replaces the
   old site.css + blog.css on these seven pages.
   Index: one white sheet holds the title and the lead article; the rest of
   the archive is a ruled list on the grey ground.
   Article: one long white sheet; a left rail for the way back, a 68ch
   reading column, ink type, one vermilion for marks.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────── shared: nav current page, announcement bar ───────────────
   The page's own nav link reads as "you are here": ink, red underline. */


/* ═══════════════════════════ BLOG INDEX ═══════════════════════════ */
/* The white sheet is the masthead only: title, one line, the feed. */
.bi { padding-top: 8px; padding-bottom: var(--gut); }
.bi-sheet { background: var(--sheet); padding: 56px var(--sheet-pad) 52px; }
.bi-h1 {
    max-width: 11em;
    font-size: clamp(60px, 6.3vw, 92px);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -0.052em;
    text-wrap: balance;
}
.bi-h1 i { font-style: normal; color: var(--red); }
.bi-intro { margin-top: 28px; font-size: 19px; line-height: 1.5; color: #3a3a3a; }
/* The feed link runs inline after the sentence and leaves the line box
   alone. On touch screens and phones it takes its own line instead, as a
   44px-tall block, so the tap target is met without a gap mid-paragraph. */
.bi-intro .ln { display: inline; padding: 0; margin-left: 10px; font-size: 19px; white-space: nowrap; }
@media (pointer: coarse), (max-width: 820px) {
    .bi-intro .ln { display: flex; align-items: center; width: fit-content; min-height: 44px; margin: 6px 0 -10px; }
}

/* P5: the lead article shares the masthead's white sheet. Under the intro,
   an ink rule; then the headline at display size on the left and, in the
   right column, its meta and excerpt, so the sheet's full width is used.
   The headline link covers the whole block. */
.bi-sheet { padding-bottom: 56px; }
.bi-lead {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    /* F3: title, then its meta straight under it; the 1fr row takes any
       extra height of the excerpt, so the meta never drifts to the foot. */
    grid-template-rows: auto 1fr auto;
    column-gap: var(--col-gap);
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1.5px solid var(--ink);
}
.bi-lead-body { display: contents; }
.bi-d { font-size: 16px; line-height: 1.45; color: #3a3a3a; }
.bi-d b { display: block; color: var(--ink); font-weight: 500; }
.bi-lead-t {
    grid-column: 1 / span 7; grid-row: 1;
    max-width: 12em;
    /* Capped well under the page H1 (92px): the H1 stays the largest type. */
    font-size: clamp(40px, 3.9vw, 56px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -0.052em;
    text-wrap: balance;
}
/* F1: the meta sits under the headline and the excerpt starts level with
   it, so neither column leaves a void. */
.bi-lead .bi-d { grid-column: 1 / span 7; grid-row: 2 / span 2; align-self: start; margin-top: 24px; font-size: 17px; }
.bi-lead-x { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: start; padding-top: 4px; font-size: 19px; line-height: 1.5; color: #3a3a3a; }
.bi-lead-t a { text-decoration: none; }
.bi-lead-t a::after { content: ""; position: absolute; inset: 0; }
.bi-lead-t a:focus-visible { outline: none; }
.bi-lead:has(a:focus-visible) { outline: 2px solid var(--red-ink); outline-offset: 6px; }
.bi-go {
    /* P6: directly under the excerpt, in the same column. F6: the meta
       spans rows 2-3, so row 3 starts at the excerpt's foot and the link's
       words sit ~24px under it; both columns end together. */
    grid-column: 8 / span 5; grid-row: 3;
    justify-self: start; align-self: start;
    display: inline-flex; align-items: center; gap: 12px;
    min-height: 44px; margin-top: 16px; margin-bottom: -8px;
    font-size: 18px; font-weight: 500;
    text-decoration: none;
}
/* F3: the words are underlined, the arrow is not. */
.bi-go-t { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.bi-go-ar { display: inline-block; text-decoration: none; }
.bi-lead:hover .bi-lead-t a, .bi-lead:hover .bi-go { color: var(--red-ink); }

/* P6: the archive shares the lead's white sheet, under one ink rule. Each
   row is one link; hovering the row underlines its title in vermilion. */
.bi-more { margin-top: 64px; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.bi-more .h2 { font-size: clamp(34px, 3vw, 44px); }
.bi-rows { margin-top: 12px; }
.bi-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    padding: 30px 0 34px;
    border-bottom: 1px solid var(--rule);
}
.bi-row .bi-d { grid-column: 1 / span 3; padding-top: 6px; }
.bi-row-body { grid-column: 4 / -1; }
.bi-row-t {
    font-size: clamp(26px, 2.3vw, 34px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.032em;
    text-wrap: balance;
}
.bi-row-t a { text-decoration: none; }
.bi-row-t a::after { content: ""; position: absolute; inset: 0; }
.bi-row-t a:focus-visible { outline: none; }
.bi-row:has(a:focus-visible) { outline: 2px solid var(--red-ink); outline-offset: 4px; }
.bi-row-x { margin-top: 12px; font-size: 18px; line-height: 1.55; color: #3a3a3a; }
.bi-row:hover .bi-row-t a {
    color: var(--red-ink);
    text-decoration: underline; text-decoration-color: var(--red);
    text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}


/* ═══════════════════════════ ARTICLE ═══════════════════════════ */
.post { padding-top: 8px; }
.post .close { margin-top: var(--gut); }
/* One measure: back link, title, meta, standfirst, body, share and bio all
   share one left edge and one 680px column, centred on the sheet. */
.post-sheet {
    --measure: 680px;
    position: relative;
    background: var(--sheet);
    padding: 48px var(--sheet-pad) 72px;
}
.post-sheet > * { max-width: var(--measure); margin-inline: auto; min-width: 0; }

/* The way back sits above the title, on the column's edge. */
.post-sheet > .back-to-blog {
    display: flex; align-items: center; width: fit-content;
    margin-inline: max(0px, calc((100% - var(--measure)) / 2)) auto;
    min-height: 44px; margin-bottom: 20px;
    font-size: 16px; color: #3a3a3a;
    text-decoration: underline; text-decoration-color: #a9a9a9;
    text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.back-to-blog:hover { color: var(--red-ink); text-decoration-color: var(--red); }

.article-title {
    font-size: clamp(40px, 3.9vw, 58px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.article-meta {
    display: grid;
    grid-template-columns: 48px auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0; row-gap: 2px;
    align-items: center;
    margin-top: 28px;
    font-size: 16px; line-height: 1.4; color: #3a3a3a;
}
.article-meta .byline, .author-bio .byline { display: block; }
.article-meta .byline {
    grid-row: 1 / span 2;
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover; object-position: 50% 22%;
    filter: grayscale(1);
}
.article-meta > * { margin-left: 14px; }
.article-meta > .byline { margin-left: 0; }
.article-author { grid-column: 2 / -1; align-self: end; color: var(--ink); font-weight: 500; }
.article-date { grid-column: 2; grid-row: 2; align-self: start; }
.article-meta .article-category { grid-column: 3; grid-row: 2; align-self: start; margin-left: 0; }
.article-meta .article-category::before { content: "\00B7"; margin: 0 10px; }

/* The summary is the article's standfirst: one step up from the body, same
   column, no label. */
.post-sheet > .article-tldr {
    margin-top: 32px;
    font-size: 22px;
    line-height: 1.45;
    letter-spacing: -0.014em;
    color: var(--ink);
}

/* Contents rail: 1200px and up only. P6: the sheet becomes a grid, the
   rail (220) + gap (56) + the 680px column, centred as one pair. The back
   link and the title span the whole pair; the standfirst, body, share and
   bio sit in the column; the rail runs beside them from the standfirst to
   the bio, so its sticky list follows the reader to the end. */
.post-toc { display: none; }
@media (min-width: 1200px) {
    .post-sheet {
        --rail: 220px; --rail-gap: 56px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--rail) var(--rail-gap) minmax(0, var(--measure)) minmax(0, 1fr);
        align-items: start;
    }
    .post-sheet > * { grid-column: 4; max-width: none; margin-inline: 0; }
    .post-sheet > .back-to-blog { grid-column: 2 / 5; margin-inline: 0; }
    .post-sheet > .article-header { grid-column: 2 / 5; }
    .post-sheet > .article-header .article-title {
        max-width: 19em;
        font-size: clamp(42px, 3.45vw, 52px);
        line-height: 1.03;
    }
    .post-sheet > .post-toc {
        display: block;
        grid-column: 2; grid-row: 3 / 6;
        align-self: stretch;
        margin-top: 36px;
        /* F3: a hairline runs the rail's full height beside the body, so the
           column reads as one continuous rail; the list is sticky inside it. */
        padding-right: 28px;
        border-right: 2px solid var(--rule);
    }
    .post-sheet > .post-toc-m { display: none; }
}
.post-toc-inner { position: sticky; top: 104px; }
.post-toc-h { font-size: 15px; font-weight: 600; color: var(--ink); padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.post-toc ol { list-style: none; padding: 0; margin: 0; }
.post-toc li { border-bottom: 1px solid var(--rule); }
.post-toc a {
    display: block;
    padding: 10px 0 10px 12px;
    min-height: 44px;
    font-size: 15px; line-height: 1.4; color: #3a3a3a;
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
}
.post-toc a:hover { color: var(--red-ink); }
.post-toc a[aria-current="location"] { color: var(--ink); font-weight: 500; border-left-color: var(--red); }
.article-content h2[id] { scroll-margin-top: 96px; }

/* F3: under 1200px the rail is hidden; the same links sit above the body
   in a collapsed disclosure. */
.post-sheet > .post-toc-m {
    margin-top: 36px;
    border-top: 1.5px solid var(--ink);
    border-bottom: 1px solid var(--rule);
}
.post-toc-m summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 52px;
    font-size: 16px; font-weight: 600; color: var(--ink);
    cursor: pointer; list-style: none;
}
.post-toc-m summary::-webkit-details-marker { display: none; }
.post-toc-m summary::after {
    content: "+"; font-size: 24px; font-weight: 400; line-height: 1;
    transition: transform .2s ease;
}
.post-toc-m[open] summary::after { transform: rotate(45deg); }
.post-toc-m summary:hover { color: var(--red-ink); }
.post-toc-m summary:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 2px; }
.post-toc-m ol { list-style: none; padding: 0 0 10px; margin: 0; }
.post-toc-m li { border-top: 1px solid var(--rule); }
.post-toc-m a {
    display: flex; align-items: center;
    min-height: 44px; padding: 8px 0;
    font-size: 16px; line-height: 1.4; color: #3a3a3a;
    text-decoration: none;
}
.post-toc-m a:hover { color: var(--red-ink); }
@media (prefers-reduced-motion: reduce) { .post-toc-m summary::after { transition: none; } }

/* ─────────────── the reading column ─────────────── */
.post-sheet > .article-content {
    /* F3: no rule between the standfirst and the body; the space does it. */
    margin-top: 48px;
    font-size: 19px;
    line-height: 1.68;
    color: var(--ink);
    font-feature-settings: "ss01" 0;
}
.article-content > * + * { margin-top: 1.05em; }
.article-content p { text-wrap: pretty; }
.article-content strong { font-weight: 600; color: var(--ink); }
.article-content em { font-style: italic; }
/* The deck (an italic first line in some posts) is set roman. */
.article-content > p:first-child em:only-child { font-style: normal; color: inherit; }
/* A short audience line ("A guide for people who are not programmers")
   belongs to the standfirst, not the body: it sits straight under the
   standfirst in the same voice, and the body's top rule moves below it. */
.post-sheet > .article-content:has(> .article-deck:first-child) { margin-top: 10px; }
.article-content > .article-deck {
    margin-bottom: 48px;
    font-size: 22px; line-height: 1.45; letter-spacing: -0.014em;
}
.article-content > .article-deck + * { margin-top: 0; }
/* Under 1200px the contents disclosure sits between standfirst and deck. */
.post-sheet > .post-toc-m + .article-content:has(> .article-deck:first-child) { margin-top: 32px; }
@media (min-width: 1200px) { .post-sheet > .post-toc-m + .article-content:has(> .article-deck:first-child) { margin-top: 10px; } }
.article-content > .article-deck em { font-style: normal; color: inherit; font-weight: 400; }

.article-content h2 {
    margin-top: 2em;
    font-size: clamp(30px, 2.5vw, 38px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--ink);
    text-wrap: balance;
}
.article-content h2 + * { margin-top: .75em; }
.article-content h2 + .highlight-box, .article-content h2 + .phase-box, .article-content h2 + .example-box { margin-top: 1.4em; }
.article-content h3 {
    margin-top: 2em;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.article-content h3 + * { margin-top: .45em; }
.article-content h4 {
    margin-top: 1.8em;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.article-content h4 + * { margin-top: .35em; }

.article-content a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}
.article-content a:hover { color: var(--red-ink); }

/* Lists: plain ink dots and ink numerals. F1: the vermilion is kept for the
   one pull-quote rule, so bullets no longer read as a third callout. */
.article-content ul, .article-content ol { padding-left: 1.5em; }
.article-content li + li { margin-top: .45em; }
.article-content li > ul, .article-content li > ol { margin-top: .45em; }
.article-content ul > li { position: relative; }
.article-content ul > li::before {
    content: "";
    position: absolute; left: -1.05em; top: .66em;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ink);
}
.article-content ul ul > li::before { background: transparent; border: 1.5px solid var(--ink); }
.article-content ol { list-style: decimal; }
.article-content ol > li { padding-left: .25em; }
.article-content ol > li::marker { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Pull quotes: big, ink, a vermilion rule on the left. */
.article-content blockquote {
    margin-top: 1.6em; margin-bottom: 1.6em;
    padding: 4px 0 4px 26px;
    border-left: 3px solid var(--red);
    font-size: clamp(22px, 1.75vw, 26px);
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: -0.022em;
    color: var(--ink);
}
.article-content blockquote + * { margin-top: 0; }
.article-content blockquote p + p { margin-top: .6em; }

.article-content hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.4em; }

/* Code, should a post carry any. */
.article-content code, .article-content kbd {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: .86em;
    background: #f1f1f1;
    padding: .1em .35em;
}
.article-content pre {
    overflow-x: auto;
    background: var(--night); color: #f2f2f2;
    padding: 22px 24px;
    font-size: 16px; line-height: 1.55;
}
.article-content pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.article-content img { max-width: 100%; height: auto; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 17px; }
.article-content th, .article-content td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.article-content th { font-weight: 600; border-bottom: 1.5px solid var(--ink); }

/* Callouts. F4: two treatments only in an article.
   1. Pull quote: the blockquote above (large ink type, vermilion rule).
   2. Note: every highlight, phase and example box, whatever it holds
      (key insight, steps, lists, before/after prompts), is plain body text
      under one thin ink rule with a bold heading in body size. No fill, no
      side border, no red, no larger type. */
.highlight-box, .phase-box, .example-box {
    margin-top: 32px; margin-bottom: 1.8em;
    padding: 16px 0 0;
    background: none;
    border: 0; border-top: 1px solid var(--ink);
    font-size: inherit; line-height: inherit;
}
.article-content .highlight-box + *, .article-content .phase-box + *, .article-content .example-box + * { margin-top: 0; }
.highlight-box > * + *, .phase-box > * + *, .example-box > * + * { margin-top: .6em; }
.article-content .highlight-box > h3:first-child,
.article-content .phase-box > h3:first-child,
.article-content .example-box > h4:first-child,
.article-content .highlight-box > h4:first-child,
.article-content .phase-box > h4:first-child { margin-top: 0; }
/* F5: the note's label is set as a subheading (h3 scale, weight 600), not
   a bold body line, so the article keeps two heading levels. */
.article-content .highlight-box > h3, .article-content .highlight-box > h4,
.article-content .phase-box > h3, .article-content .phase-box > h4,
.article-content .example-box > h4 {
    font-size: 20px; line-height: 1.3; font-weight: 600;
    letter-spacing: -0.015em; text-transform: none; color: var(--ink);
}
.highlight-box > h3 + *, .highlight-box > h4 + *, .phase-box > h3 + *, .phase-box > h4 + *, .example-box > h4 + * { margin-top: .5em; }
.highlight-box p, .phase-box p, .example-box p, .highlight-box li, .phase-box li, .example-box li {
    font-size: inherit; line-height: inherit; letter-spacing: normal; font-weight: 400; color: var(--ink);
}
.example-box + .example-box { margin-top: -.4em; }
.example-box .negative { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink-2); text-decoration-thickness: 1px; }
.example-box .positive { color: var(--ink); font-weight: 600; }

/* P5 decision: the hashtag row is hidden on screen (markup kept). */
.article-content > .article-tags { display: none !important; }
/* Tags close the article as a plain line of words. */
.article-content > .article-tags {
    margin-top: 56px; padding-top: 18px;
    border-top: 1px solid var(--rule);
    display: flex; flex-wrap: wrap; gap: 2px 16px;
}
.article-tags .tag { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); background: none; padding: 0; border: 0; }

/* ─────────────── author block ───────────────
   F5: one ruled block ends the article: the B/W portrait, who wrote it,
   one next step (the workshop, in the closing band's words) and the share
   links as a quiet line at its foot. No fill. */
.post-sheet > .author-bio {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1.5px solid var(--ink);
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
}
.author-bio .byline {
    display: block;
    width: 112px; height: 112px; border-radius: 50%;
    object-fit: cover; object-position: 50% 22%;
    filter: grayscale(1);
}
.author-body { grid-column: 2; min-width: 0; }
.author-body > * + * { margin-top: 10px; }
.author-bio h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.author-bio p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.author-bio p strong { color: var(--ink); font-weight: 600; }
.author-bio p a {
    color: var(--ink); font-weight: 500;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
    display: inline-block; padding-block: 10px; margin-block: -10px;
}
.author-bio p a:hover { color: var(--red-ink); text-decoration-color: var(--red); }
/* The one next step: ink words underlined in vermilion, the arrow plain. */
.author-body > .author-next { margin-top: 18px; }
.author-bio .author-next a {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0; margin: 0;
    font-size: 19px; font-weight: 500; color: var(--ink);
    text-decoration: none;
}
.author-next-t { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.author-bio .author-next a:hover { color: var(--red-ink); }
/* Share: a quiet line of text links under a hairline, inside the block. */
.author-body > .share-section {
    margin-top: 22px; padding-top: 6px;
    border-top: 1px solid var(--rule);
    display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px;
}
.author-bio .share-section h3 { font-size: 16px; font-weight: 400; letter-spacing: -0.005em; line-height: 1.4; color: var(--ink-2); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0 22px; }
.share-btn {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 0;
    border: 0; background: none;
    font-size: 16px; font-weight: 500; color: var(--ink);
    text-decoration: underline; text-decoration-thickness: 1px;
    text-decoration-color: #a9a9a9; text-underline-offset: 4px;
}
.share-btn:hover { color: var(--red-ink); text-decoration-color: var(--red); }

/* ═══════════════════ responsive ═══════════════════ */
@media (max-width: 1100px) {
    .bi-lead-t { grid-column: 1 / span 6; }
    .bi-lead .bi-d { grid-column: 1 / span 6; }
    .bi-lead-x, .bi-go { grid-column: 7 / span 6; }
    .bi-row .bi-d { grid-column: 1 / span 3; }
    .bi-row-body { grid-column: 4 / span 9; }

}

@media (max-width: 820px) {
    .bi-sheet { padding: 32px var(--sheet-pad) 32px; }
    .bi-h1 { font-size: clamp(44px, 12.4vw, 72px); line-height: .97; }
    .bi-intro { margin-top: 18px; font-size: 17px; }
    .bi-intro .ln { margin-left: 0; font-size: 17px; }
    .bi-lead { display: flex; flex-direction: column; margin-top: 32px; padding-top: 18px; }
    .bi-lead-t { order: 1; margin-top: 0; max-width: none; }
    .bi-lead .bi-d { order: 2; padding-top: 0; margin-top: 12px; align-self: auto; }
    .bi-lead-x { order: 3; }
    .bi-go { order: 4; margin-bottom: 0; align-self: flex-start; }
    .bi-lead .bi-d { font-size: 15px; }
    .bi-lead .bi-d b { display: inline; }
    .bi-lead .bi-d b::after { content: " \00B7 "; font-weight: 400; color: #3a3a3a; }
    .bi-lead-t { font-size: clamp(34px, 9.4vw, 48px); line-height: 1; }
    .bi-lead-x { margin-top: 16px; font-size: 17px; }
    .bi-go { margin-top: 6px; font-size: 16px; }

    .bi-more { margin-top: 40px; padding-top: 20px; }
    .bi-more .h2 { font-size: clamp(34px, 9.4vw, 48px); }
    .bi-rows { margin-top: 6px; }
    .bi-row { display: block; padding: 18px 0 22px; }
    .bi-row .bi-d { padding-top: 0; font-size: 15px; }
    .bi-row .bi-d b { display: inline; }
    .bi-row .bi-d b::after { content: " \00B7 "; font-weight: 400; color: #3a3a3a; }
    .bi-row-body { margin-top: 6px; }
    .bi-row-t { font-size: 23px; line-height: 1.16; }
    .bi-row-x { margin-top: 8px; font-size: 16px; }

    .post-sheet { padding: 24px var(--sheet-pad) 40px; }
    .post-sheet > .back-to-blog { margin: 0 0 8px; font-size: 15px; }
    .article-title { font-size: clamp(32px, 9.8vw, 40px); line-height: 1.04; letter-spacing: -0.04em; }
    .article-meta { margin-top: 22px; font-size: 15px; grid-template-columns: 44px minmax(0, 1fr); row-gap: 0; }
    .article-meta .byline { grid-row: 1 / span 3; width: 44px; height: 44px; }
    .article-meta .article-category { grid-column: 2; grid-row: 3; margin-left: 14px; }
    .article-meta .article-category::before { content: none; }
    .post-sheet > .article-tldr { margin-top: 22px; font-size: 19px; line-height: 1.45; }
    .post-sheet > .article-content { margin-top: 36px; font-size: 18px; line-height: 1.65; }
    .post-sheet > .post-toc-m { margin-top: 26px; }
    .article-content h2 { margin-top: 2.2em; font-size: 28px; }
    .article-content h3 { font-size: 21px; }
    .article-content h4 { font-size: 18px; }
    .article-content blockquote { padding-left: 18px; font-size: 21px; }
    .highlight-box, .phase-box, .example-box { padding-top: 14px; }
    .article-content > .article-tags { margin-top: 40px; }
    /* The portrait and the heading share a row; the rest runs full width. */
    .post-sheet > .author-bio { margin-top: 48px; padding-top: 24px; grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; row-gap: 0; }
    .author-bio .byline { width: 96px; height: 96px; grid-row: 1; }
    .author-body { display: contents; }
    .author-body > h3 { grid-column: 2; grid-row: 1; align-self: center; font-size: 20px; }
    .author-body > p, .author-body > .share-section { grid-column: 1 / -1; }
    .author-body > h3 + p { margin-top: 18px; }
    .author-bio p { font-size: 16px; }
    .author-body > .author-next { margin-top: 14px; }
    .author-bio .author-next a { font-size: 18px; }
    .author-body > .share-section { margin-top: 16px; column-gap: 18px; }
    .author-bio .share-section h3 { font-size: 15px; }
    .share-buttons { column-gap: 18px; }
}

/* ─────────────── closing band: the vermilion kolam band ───────────────
   F1: the same red band that ends the homepage, workshop and certification
   pages (rb.css .close, the #kolam symbol drawn by rb-motion.js on view).
   One inner edge: the band's copy starts on the page's text line. */
.bl-close .wrap { padding-left: calc(var(--gut) + var(--sheet-pad)); padding-right: calc(var(--gut) + var(--sheet-pad)); }
.bl-close .fine a { color: #fff; }
/* F5: the kolam sits whole inside the band at every desktop width, as on
   the workshop and certification pages. The drawing fills 87% of its box,
   so a 6.4% inset per side puts the drawn line on the page's inner edge.
   Phones use rb.css. */
@media (min-width: 1360px) {
    .bl-close .close-kolam {
        --ks: clamp(460px, 38vw, 600px);
        width: var(--ks); height: var(--ks); margin-top: calc(var(--ks) / -2);
        right: calc(var(--gut) + var(--sheet-pad) - var(--ks) * .064);
    }
}
/* 821-1359: the copy needs the width, so the kolam sits whole under it on
   the inner right edge. */
@media (min-width: 821px) and (max-width: 1359px) {
    .bl-close .wrap { padding-bottom: 392px; }
    .bl-close .close-kolam { width: 320px; height: 320px; top: auto; bottom: 36px; right: calc(var(--gut) + var(--sheet-pad) - 20px); margin-top: 0; }
}
/* Posts: the band's one button at the size of the site's primary CTA. */
.post .bl-close .btn-light { min-height: 64px; padding: 0 30px; font-size: 18px; }
@media (max-width: 820px) { .post .bl-close .btn-light { min-height: 60px; font-size: 17px; } }
/* Posts: the same band as the blog index, at the same height. The copy is
   one line and one button, so the copy block keeps the index band's height
   and the kolam keeps the index band's size and place. On wide screens the
   copy centres on the kolam. */
@media (min-width: 821px) and (max-width: 1359px) {
    .post .bl-close .close-copy { min-height: 400px; }
}
@media (min-width: 1360px) {
    .post .bl-close .close-copy { min-height: min(calc(15.2vw + 332px), 590px); display: flex; flex-direction: column; justify-content: center; }
}
