/* ══ The blog in the Playground look ══
 * views/look/blog.ejs (the index, a tag, an author and a post), on top of the kit (public/css/look.css). Every rule
 * starts with .lk-blog, the page's body class. A post's body is the kit's .lk-prose at reading width, with every block
 * lib/blog-store.js keeps: headings, lists, quotes, callouts, tables, code, pictures, buttons, the contents, the
 * framework cards and the project card (public/js/blog.js launches the first and paints the second), side by side
 * columns, questions and dividers. The author's picture is partials/blog-avatar.ejs's st-blog-avatar. */

.lk-blog {
    /* Code: light words on the ink ground, as the home's terminals. */
    --bl-code: #17131f;
    --bl-code-ink: #ece8f6;
    /* The reading column: about 70 characters a line. */
    --bl-read: 44rem;
}

@media (min-width: 1600px) {
    .lk-blog {
        --bl-read: 48rem;
    }
}

/* The reading width, for a post's head, its body and its author. */
.lk-blog .lk-wrap--narrow {
    width: min(var(--lk-frame), calc(var(--bl-read) + 2 * var(--lk-inset)));
}

.lk-blog .bl-back {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    color: var(--lk-muted);
    font: 600 14px/1.3 var(--lk-mono);
    text-decoration: none;
}

.lk-blog .bl-back:hover {
    color: var(--lk-ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* A tag's colour: Blog lilac, Update mint, Guide sky; any other tag sun. */
.lk-blog .bl-tag {
    background: var(--lk-sun);
}

.lk-blog .bl-tag--blog { background: var(--lk-lilac); }
.lk-blog .bl-tag--update { background: var(--lk-mint); }
.lk-blog .bl-tag--guide { background: var(--lk-sky); }
.lk-blog .bl-tag--story,
.lk-blog .bl-tag--stories { background: var(--lk-rose); }

/* An author's picture, or their letter on a yellow circle (the team: the bolt on purple). */
.lk-blog .st-blog-avatar {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 50%;
    background: var(--lk-y);
    color: var(--lk-on-y);
    font: 900 18px/1 var(--lk-disp);
    object-fit: cover;
    text-transform: uppercase;
}

.lk-blog .st-blog-avatar--md {
    width: 64px;
    height: 64px;
    font-size: 26px;
}

.lk-blog .st-blog-avatar--lg {
    width: 120px;
    height: 120px;
    box-shadow: var(--lk-sh);
    font-size: 48px;
}

.lk-blog .st-blog-avatar--team {
    background: var(--lk-brand);
    color: var(--lk-on-brand);
}

/* ── The index, a tag and an author: the head ── */

.lk-blog .bl-hero {
    padding: 48px 0 56px;
    border-bottom: var(--lk-bw) solid var(--lk-line);
}

@media (min-width: 900px) {
    .lk-blog .bl-hero {
        padding: 72px 0 72px;
    }
}

.lk-blog .bl-hero-title {
    font-size: clamp(42px, 5.4vw, 72px);
}

.lk-blog .bl-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.lk-blog .bl-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 999px;
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-sm);
    color: var(--lk-ink);
    font: 700 15px/1.2 var(--lk-body);
    text-decoration: none;
}

.lk-blog .bl-filter-chip:hover {
    background: var(--lk-lilac);
}

.lk-blog .bl-filter-chip.is-active {
    background: var(--lk-ink);
    box-shadow: 3px 3px 0 var(--lk-brand);
    color: var(--lk-bg);
}

.lk-blog .bl-filter-n {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--lk-surface-2);
    color: var(--lk-muted);
    font: 700 12px/1.5 var(--lk-mono);
}

.lk-blog .bl-filter-chip.is-active .bl-filter-n {
    background: var(--lk-y);
    color: var(--lk-on-y);
}

/* An author's page: the picture beside their name and words. */
.lk-blog .bl-profile-card {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 700px) {
    .lk-blog .bl-profile-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 36px;
    }
}

.lk-blog .bl-profile-copy .lk-h1 {
    font-size: clamp(42px, 5vw, 68px);
}

.lk-blog .bl-profile-role {
    margin-top: 12px;
    font: 700 16px/1.4 var(--lk-mono);
}

.lk-blog .bl-profile-bio {
    margin-top: 14px;
}

.lk-blog .bl-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.lk-blog .bl-links .lk-chip {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 14px;
    text-decoration: none;
}

.lk-blog .bl-links .lk-chip:hover {
    background: var(--lk-lilac);
}

/* ── The list of posts ── */

.lk-blog .bl-list {
    padding: 56px 0 96px;
}

.lk-blog .bl-list-title {
    margin-bottom: 32px;
}

.lk-blog .bl-grid {
    display: grid;
    gap: 28px;
}

@media (min-width: 700px) {
    .lk-blog .bl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .lk-blog .bl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lk-blog .bl-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-lg);
    color: var(--lk-ink);
    text-decoration: none;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.lk-blog .bl-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--lk-shadow);
}

.lk-blog .bl-card:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--lk-shadow);
}

.lk-blog .bl-card-cover,
.lk-blog .bl-card-art {
    aspect-ratio: 16 / 9;
    border-bottom: var(--lk-bw) solid var(--lk-line);
}

.lk-blog .bl-card-cover {
    display: block;
    background: var(--lk-surface-2);
}

.lk-blog .bl-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No cover: the tag's colour on dots, with the bolt on a sticker. */
.lk-blog .bl-card-art {
    display: grid;
    place-items: center;
    background-image: var(--lk-dots);
}

.lk-blog .bl-card-art svg {
    width: 64px;
    height: 64px;
    padding: 12px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 18px;
    background: var(--lk-y);
    box-shadow: var(--lk-sh);
    color: var(--lk-ink);
    transform: rotate(-6deg);
}

.lk-blog .bl-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 22px 24px;
}

.lk-blog .bl-card-title {
    font: 800 22px/1.18 var(--lk-disp);
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.lk-blog .bl-card:hover .bl-card-title {
    text-decoration: underline;
    text-decoration-color: var(--lk-y);
    text-decoration-thickness: 5px;
    text-underline-offset: 2px;
}

.lk-blog .bl-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: var(--lk-muted);
    font-size: 15.5px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.lk-blog .bl-card-meta {
    margin-top: auto;
    padding-top: 6px;
    color: var(--lk-muted);
    font: 600 13px/1.4 var(--lk-mono);
}

/* The newest post leads across the whole row, its cover beside its words. */
@media (min-width: 900px) {
    .lk-blog .bl-grid > .bl-card:first-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    }

    .lk-blog .bl-grid > .bl-card:first-child .bl-card-cover,
    .lk-blog .bl-grid > .bl-card:first-child .bl-card-art {
        height: 100%;
        min-height: 300px;
        border-right: var(--lk-bw) solid var(--lk-line);
        border-bottom: 0;
    }

    .lk-blog .bl-grid > .bl-card:first-child .bl-card-body {
        justify-content: center;
        padding: 36px;
    }

    .lk-blog .bl-grid > .bl-card:first-child .bl-card-title {
        font-size: clamp(28px, 2.6vw, 38px);
        font-weight: 900;
        line-height: 1.08;
    }

    .lk-blog .bl-grid > .bl-card:first-child .bl-card-excerpt {
        font-size: 17px;
        -webkit-line-clamp: 4;
    }
}

.lk-blog .bl-empty .bl-empty-ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 14px;
    background: var(--lk-lilac);
    box-shadow: var(--lk-sh-sm);
}

.lk-blog .bl-empty svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lk-blog .bl-empty p {
    color: var(--lk-ink);
    font: 800 20px/1.3 var(--lk-disp);
}

/* ── A post: its head ── */

.lk-blog .bl-post-head {
    padding: 44px 0 56px;
    border-bottom: var(--lk-bw) solid var(--lk-line);
}

@media (min-width: 900px) {
    .lk-blog .bl-post-head {
        padding: 64px 0 72px;
    }
}

/* With a cover, the band runs on under its top. */
.lk-blog .bl-post-head--cover {
    padding-bottom: clamp(96px, 12vw, 160px);
}

.lk-blog .bl-draft {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-warn-bg);
    box-shadow: var(--lk-sh-sm);
    font-weight: 700;
}

.lk-blog .bl-post-title {
    margin-top: 16px;
    font-size: clamp(36px, 4.4vw, 60px);
    overflow-wrap: anywhere;
}

.lk-blog .bl-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.lk-blog .bl-byline-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.lk-blog .bl-byline-name {
    font-weight: 800;
}

.lk-blog .bl-byline-name a {
    color: var(--lk-ink);
    text-decoration: underline;
    text-decoration-color: var(--lk-line-soft);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.lk-blog .bl-byline-name a:hover {
    text-decoration-color: var(--lk-y);
}

.lk-blog .bl-byline-role {
    margin-left: 6px;
    color: var(--lk-muted);
    font-weight: 500;
}

.lk-blog .bl-byline-role::before {
    content: "· ";
}

.lk-blog .bl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    color: var(--lk-muted);
    font: 500 13.5px/1.45 var(--lk-mono);
}

.lk-blog .bl-meta-item + .bl-meta-item::before {
    content: "·";
    margin: 0 8px;
}

.lk-blog .bl-post-lead {
    max-width: none;
    margin-top: 26px;
    font-size: clamp(18px, 1.4vw, 21px);
}

.lk-blog .bl-cover-wrap {
    position: relative;
    z-index: 1;
    width: min(var(--lk-frame), calc(64rem + 2 * var(--lk-inset)));
    margin-top: calc(-1 * clamp(64px, 9vw, 124px));
}

.lk-blog .bl-cover {
    margin: 0;
    overflow: hidden;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-surface-2);
    box-shadow: var(--lk-sh-lg);
}

.lk-blog .bl-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.lk-blog .bl-post-main {
    padding-top: 56px;
    padding-bottom: 96px;
}

/* An article on another site: where to read it. */
.lk-blog .bl-external {
    display: grid;
    justify-items: start;
    gap: 16px;
    padding: 28px;
    background: var(--lk-lilac);
}

.lk-blog .bl-external-ico {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 14px;
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-sm);
}

.lk-blog .bl-external-ico svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lk-blog .bl-external-note {
    font: 800 22px/1.25 var(--lk-disp);
}

/* ── A post: its body, in .lk-prose ── */

.lk-blog .bl-body {
    max-width: none;
    font-size: 18px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.lk-blog .bl-body > * + * {
    margin-top: 1.15em;
}

.lk-blog .bl-body > :first-child {
    margin-top: 0;
}

.lk-blog .bl-body .bl-h2 {
    margin-top: 2.1em;
    font-size: clamp(27px, 2.4vw, 34px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.lk-blog .bl-body .bl-h3 {
    margin-top: 1.7em;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.lk-blog .bl-body .bl-h2 + *,
.lk-blog .bl-body .bl-h3 + * {
    margin-top: 0.7em;
}

.lk-blog .bl-body strong,
.lk-blog .bl-body b {
    font-weight: 800;
}

.lk-blog .bl-body a:hover {
    text-decoration-color: var(--lk-y);
}

.lk-blog .bl-body s {
    color: var(--lk-muted);
}

.lk-blog .bl-items li::marker {
    color: var(--lk-brand-deep);
    font-weight: 800;
}

.lk-blog .bl-quote {
    position: relative;
    margin: 1.8em 0;
    padding: 24px 26px 24px 30px;
    border: var(--lk-bw) solid var(--lk-line);
    border-left-width: 8px;
    border-radius: var(--lk-r);
    background: var(--lk-sun);
    box-shadow: var(--lk-sh);
    font: 700 clamp(20px, 1.7vw, 23px)/1.45 var(--lk-disp);
    letter-spacing: -0.01em;
}

/* A callout: a note, a tip, the key point or a warning, each with its icon and its colour. */
.lk-blog .bl-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding: 18px 20px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-sky);
    box-shadow: var(--lk-sh-sm);
    font-size: 16.5px;
    line-height: 1.6;
}

.lk-blog .bl-callout--tip { background: var(--lk-mint); }
.lk-blog .bl-callout--key { background: var(--lk-sun); }
.lk-blog .bl-callout--warning { background: var(--lk-rose); }

.lk-blog .bl-callout-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 50%;
    background: var(--lk-surface);
}

.lk-blog .bl-callout-icon svg {
    width: 20px;
    height: 20px;
}

.lk-blog .bl-callout--key .bl-callout-icon {
    background: var(--lk-y);
}

.lk-blog .bl-callout-copy > * + * {
    margin-top: 4px;
}

.lk-blog .bl-callout-title {
    font: 800 17.5px/1.35 var(--lk-disp);
}

.lk-blog .bl-callout-copy:has(.bl-callout-title:only-child) .bl-callout-title,
.lk-blog .bl-callout-text:only-child {
    padding-top: 5px;
}

.lk-blog .bl-cta {
    margin-top: 1.8em;
    margin-bottom: 1.8em;
    text-align: center;
}

.lk-blog .bl-cta--left {
    text-align: left;
}

.lk-blog .bl-body .bl-cta-btn {
    max-width: 100%;
    color: var(--lk-ink);
    text-decoration: none;
    white-space: normal;
}

.lk-blog .bl-body .bl-cta-btn.lk-btn--yellow {
    color: var(--lk-on-y);
}

/* The contents: each section's heading, numbered. */
.lk-blog .bl-toc {
    margin-top: 0;
    margin-bottom: 2em;
    padding: 20px 24px 22px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-lilac);
    box-shadow: var(--lk-sh);
}

.lk-blog .bl-toc-title {
    color: var(--lk-brand-deep);
    font: 700 13px/1.3 var(--lk-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lk-blog .bl-toc-list {
    display: grid;
    gap: 4px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: bl-toc;
}

.lk-blog .bl-toc-list li {
    counter-increment: bl-toc;
}

.lk-blog .bl-toc-list li + li {
    margin-top: 0;
}

.lk-blog .bl-toc-list a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 5px 0;
    color: var(--lk-ink);
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.lk-blog .bl-toc-list a::before {
    content: counter(bl-toc, decimal-leading-zero);
    flex: 0 0 auto;
    color: var(--lk-brand-deep);
    font: 700 13px var(--lk-mono);
}

.lk-blog .bl-toc-list a:hover {
    text-decoration: underline;
    text-decoration-color: var(--lk-brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Pictures: small, medium, the column, or wider than the column on a laptop. */
.lk-blog .bl-figure {
    margin: 1.9em auto;
}

.lk-blog .bl-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface-2);
    box-shadow: var(--lk-sh);
}

.lk-blog .bl-figure--small {
    max-width: 360px;
}

.lk-blog .bl-figure--medium {
    max-width: 540px;
}

.lk-blog .bl-figure--full {
    position: relative;
    left: 50%;
    width: min(calc(100vw - 32px), 1080px);
    transform: translateX(-50%);
}

.lk-blog .bl-body figcaption {
    margin-top: 12px;
    color: var(--lk-muted);
    font-size: 14.5px;
    line-height: 1.5;
    text-align: center;
}

/* Tables: the kit's, scrolling on their own when wide. */
.lk-blog .bl-table {
    margin: 1.9em 0;
}

.lk-blog .bl-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh);
}

.lk-blog .bl-table-scroll:focus-visible {
    outline: 3px solid var(--lk-focus);
    outline-offset: 3px;
}

.lk-blog .bl-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
    line-height: 1.5;
}

.lk-blog .bl-table th,
.lk-blog .bl-table td {
    padding: 12px 16px;
    border-bottom: 1.5px solid var(--lk-line-soft);
    text-align: left;
    vertical-align: top;
}

.lk-blog .bl-table thead th {
    border-bottom: var(--lk-bw) solid var(--lk-line);
    background: var(--lk-surface-2);
    color: var(--lk-muted);
    font: 700 12.5px/1.35 var(--lk-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lk-blog .bl-table tbody th {
    font-weight: 800;
}

.lk-blog .bl-table tbody tr:last-child > * {
    border-bottom: 0;
}

.lk-blog .bl-table--rowheads tbody th {
    background: var(--lk-surface-2);
}

/* Code: the file's name and language on the window's bar, the code on ink. */
.lk-blog .bl-code {
    margin: 1.9em 0;
    overflow: hidden;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--bl-code);
    /* Purple, as the kit's shadows on ink: an ink shadow would melt into the code's ground. */
    box-shadow: 6px 6px 0 var(--lk-brand);
}

.lk-blog .bl-code-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 14px;
    border-bottom: var(--lk-bw) solid var(--lk-line);
    background: var(--lk-surface-2);
}

.lk-blog .bl-code-dots {
    display: flex;
    gap: 6px;
}

.lk-blog .bl-code-dots i {
    width: 11px;
    height: 11px;
    border: 1.5px solid var(--lk-line);
    border-radius: 50%;
    background: var(--lk-rose);
}

.lk-blog .bl-code-dots i:nth-child(2) { background: var(--lk-y); }
.lk-blog .bl-code-dots i:nth-child(3) { background: var(--lk-mint); }

.lk-blog .bl-code-file {
    min-width: 0;
    overflow: hidden;
    padding: 3px 12px;
    border: 1.5px solid var(--lk-line-soft);
    border-radius: 999px;
    background: var(--lk-surface);
    color: var(--lk-ink);
    font: 600 13px/1.4 var(--lk-mono);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lk-blog .bl-code-lang {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 6px;
    margin-left: auto;
    font-size: 13px;
    line-height: 1.3;
}

.lk-blog .bl-code-lang strong {
    font-weight: 800;
}

.lk-blog .bl-code-lang small {
    color: var(--lk-muted);
    font: 600 12px var(--lk-mono);
}

.lk-blog .bl-code-pre {
    margin: 0;
    padding: 18px 20px 20px;
    overflow-x: auto;
    background: var(--bl-code);
    color: var(--bl-code-ink);
    font: 500 14.5px/1.7 var(--lk-mono);
    tab-size: 4;
}

.lk-blog .bl-code-pre code {
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
}

.lk-blog .bl-code-pre:focus-visible {
    outline: 3px solid var(--lk-y);
    outline-offset: -5px;
}

/* The framework cards: each launches its stack (public/js/blog.js). */
.lk-blog .bl-fw {
    display: grid;
    gap: 14px;
    margin: 1.9em 0;
}

.lk-blog .bl-fw-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 14px;
}

.lk-blog .bl-fwcard {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 12px 14px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-sm);
    color: var(--lk-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lk-blog .bl-fwcard:hover {
    transform: translate(-1px, -1px);
    box-shadow: var(--lk-sh);
}

.lk-blog .bl-fwcard:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--lk-shadow);
}

.lk-blog .bl-fwcard.is-loading {
    opacity: 0.65;
    cursor: progress;
}

.lk-blog .bl-fwcard-glyph {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--lk-line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--fw) 16%, var(--lk-surface));
    color: var(--fw);
}

.lk-blog .bl-fwcard-glyph svg {
    width: 24px;
    height: 24px;
}

.lk-blog .bl-fwcard-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.lk-blog .bl-fwcard-name {
    font: 800 16px/1.25 var(--lk-disp);
}

.lk-blog .bl-fwcard-sub {
    color: var(--lk-muted);
    font-size: 13.5px;
}

.lk-blog .bl-fwcard-go {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* A project from Discover (public/js/blog.js paints its framework's logo and colour). */
.lk-blog .bl-catalog {
    margin: 1.9em 0;
}

.lk-blog .bl-project {
    max-width: 440px;
    margin: 0 auto;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r-lg);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-lg);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.lk-blog .bl-project:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--lk-shadow);
}

/* A pupil's card to a page the server refuses them: its words, no link, so nothing moves. */
.lk-blog .bl-project--closed:hover {
    transform: none;
    box-shadow: var(--lk-sh-lg);
}

.lk-blog .bl-body .bl-project-link {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: var(--lk-r-lg);
    color: var(--lk-ink);
    text-decoration: none;
}

.lk-blog .bl-project-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lk-blog .bl-project .st-share-card-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--lk-line);
    border-radius: 12px;
    background: var(--lk-surface-2);
}

.lk-blog .bl-project .st-share-card-avatar svg {
    width: 24px;
    height: 24px;
}

.lk-blog .bl-project-id {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.lk-blog .bl-project-user {
    color: var(--lk-muted);
    font: 600 13px var(--lk-mono);
}

.lk-blog .bl-project-title {
    overflow: hidden;
    font: 800 18px/1.25 var(--lk-disp);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lk-blog .bl-project-fw {
    flex: 0 0 auto;
    font: 700 13px var(--lk-body);
}

.lk-blog .bl-project-desc {
    color: var(--lk-muted);
    font-size: 15.5px;
    line-height: 1.5;
}

.lk-blog .bl-project-cta {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 6px;
    padding: 6px 14px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 10px;
    background: var(--lk-y);
    box-shadow: var(--lk-sh-sm);
    font: 700 14px/1.2 var(--lk-body);
}

.lk-blog .bl-project-cta svg {
    width: 15px;
    height: 15px;
}

/* Side by side: two to four columns from a tablet, one under the other on a phone. */
.lk-blog .bl-compare {
    display: grid;
    gap: 14px;
    margin: 1.9em 0;
}

@media (min-width: 640px) {
    .lk-blog .bl-compare {
        grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
    }
}

.lk-blog .bl-compare-col {
    min-width: 0;
    padding: 18px 20px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-rose);
    font-size: 16px;
    line-height: 1.6;
}

.lk-blog .bl-compare-col:nth-child(2) { background: var(--lk-mint); }
.lk-blog .bl-compare-col:nth-child(3) { background: var(--lk-sky); }
.lk-blog .bl-compare-col:nth-child(4) { background: var(--lk-sun); }

.lk-blog .bl-body .bl-compare-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

/* Questions: each opens its answer. */
.lk-blog .bl-faq {
    display: grid;
    gap: 12px;
    margin: 1.9em 0;
}

.lk-blog .bl-faq-item {
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-sm);
}

.lk-blog .bl-faq-item[open] {
    background: var(--lk-surface-2);
}

.lk-blog .bl-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 12px 18px;
    font: 800 17px/1.35 var(--lk-disp);
    list-style: none;
    cursor: pointer;
}

.lk-blog .bl-faq-q::-webkit-details-marker {
    display: none;
}

.lk-blog .bl-faq-q:focus-visible {
    outline-offset: -3px;
    border-radius: var(--lk-r);
}

.lk-blog .bl-faq-sign {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    padding: 4px;
    border: 1.5px solid var(--lk-line);
    border-radius: 50%;
    background: var(--lk-y);
    fill: none;
    stroke: var(--lk-ink);
    stroke-width: 2.6;
    stroke-linecap: round;
    transition: transform 0.15s ease;
}

.lk-blog .bl-faq-item[open] .bl-faq-sign {
    transform: rotate(45deg);
}

.lk-blog .bl-faq-a {
    padding: 0 18px 16px;
    color: var(--lk-muted);
    font-size: 16.5px;
    line-height: 1.6;
}

.lk-blog .bl-divider {
    height: 0;
    margin: 2.6em 0;
    border: 0;
    border-top: var(--lk-bw) dashed var(--lk-line-soft);
}

/* ── A post: its tags and its author ── */

.lk-blog .bl-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: var(--lk-bw) dashed var(--lk-line-soft);
}

.lk-blog .bl-post-tags .lk-chip {
    min-height: 34px;
    padding: 5px 14px;
    text-decoration: none;
}

.lk-blog .bl-post-tags .lk-chip:hover {
    box-shadow: var(--lk-sh-sm);
}

.lk-blog .bl-author {
    display: grid;
    gap: 16px;
    margin-top: 36px;
    padding: 26px 28px;
}

.lk-blog .bl-author-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lk-blog .bl-author-kicker {
    color: var(--lk-brand-deep);
    font: 700 12.5px/1.3 var(--lk-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lk-blog .bl-author-name {
    margin-top: 2px;
    font: 900 24px/1.15 var(--lk-disp);
    letter-spacing: -0.01em;
}

.lk-blog .bl-author-name a {
    color: var(--lk-ink);
    text-decoration: none;
}

.lk-blog .bl-author-name a:hover {
    text-decoration: underline;
    text-decoration-color: var(--lk-y);
    text-decoration-thickness: 4px;
}

.lk-blog .bl-author-role {
    color: var(--lk-muted);
    font-size: 15px;
}

.lk-blog .bl-author-bio {
    color: var(--lk-muted);
}

.lk-blog .bl-author-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.lk-blog .bl-author-foot .bl-links {
    margin: 0;
}

/* ── Phones ── */

@media (max-width: 559.98px) {
    .lk-blog .bl-body {
        font-size: 17px;
    }

    /* The date, Updated and the reading time, one a line. */
    .lk-blog .bl-meta {
        flex-direction: column;
    }

    .lk-blog .bl-meta-item + .bl-meta-item::before {
        content: none;
    }

    .lk-blog .bl-quote {
        padding: 18px 18px 18px 22px;
    }

    .lk-blog .bl-callout {
        gap: 12px;
        padding: 16px;
    }

    .lk-blog .bl-code-bar {
        flex-wrap: wrap;
    }

    .lk-blog .bl-code-pre {
        padding: 16px;
        font-size: 13.5px;
    }

    .lk-blog .bl-author,
    .lk-blog .bl-external {
        padding: 22px 20px;
    }

    .lk-blog .st-blog-avatar--lg {
        width: 96px;
        height: 96px;
        font-size: 40px;
    }
}

/* ── Big monitors: a little more room, as on the home ── */

@media (min-width: 1600px) {
    .lk-blog .bl-hero,
    .lk-blog .bl-post-head {
        padding-top: 96px;
    }

    .lk-blog .bl-post-head--cover {
        padding-bottom: 180px;
    }

    .lk-blog .bl-cover-wrap {
        width: min(var(--lk-frame), calc(70rem + 2 * var(--lk-inset)));
        margin-top: -140px;
    }

    .lk-blog .bl-body {
        font-size: 19px;
    }

    .lk-blog .bl-card-title {
        font-size: 24px;
    }

    .lk-blog .bl-hero-title,
    .lk-blog .bl-profile-copy .lk-h1 {
        font-size: clamp(72px, 3.8vw, 100px);
    }

    .lk-blog .bl-post-title {
        font-size: clamp(60px, 3vw, 78px);
    }
}

/* ── Less motion ── */

@media (prefers-reduced-motion: reduce) {
    .lk-blog .bl-card,
    .lk-blog .bl-fwcard,
    .lk-blog .bl-project,
    .lk-blog .bl-faq-sign {
        transition: none;
    }

    .lk-blog .bl-card:hover,
    .lk-blog .bl-card:active,
    .lk-blog .bl-fwcard:hover,
    .lk-blog .bl-fwcard:active,
    .lk-blog .bl-project:hover {
        transform: none;
    }
}

/* ══ The blog: end ══ */
