/*
 * Blog pages (blogs.index, blogs.show): the marketing layer's blog classes. Every value comes from the mk- tokens in
 * marketing.css, so the dark colour mode needs nothing here. Mobile first, same breakpoints as marketing.css.
 * Classes: mk-bhead (index / topic header), mk-topics, mk-bcards / mk-bcard / mk-bcover, mk-pager,
 *          mk-crumbs, mk-ahead (article header), mk-art (article grid), mk-toc, mk-share, mk-prose (editor HTML),
 *          mk-postcta, mk-tags, mk-blank (empty state), mk-sechead (section head with a link), mk-bnote (staff notice).
 */

/* ---------- Blog header: short, type-only version of the hero (index and topic pages) ---------- */
/* Same navy ground, light and dot grid as mk-hero; no photo, no card. */
.mk-hero.mk-bhead { padding-bottom: 36px; }
.mk-bhead__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 20px; }
.mk-bhead__eyebrow {
    display: inline-flex; align-items: center; gap: 9px; font-family: var(--mk-mono); font-size: 12px; font-weight: 500;
    letter-spacing: 1.4px; text-transform: uppercase; color: var(--mk-dim);
}
.mk-bhead__eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mk-on-anchor-info); }
.mk-bhead__h1 { max-width: 980px; font-size: 40px; line-height: 1.04; font-weight: 700; letter-spacing: -1.6px; color: #fff; text-wrap: balance; }
.mk-bhead__h1 em {
    font-style: normal; color: #fff; text-decoration: underline; text-decoration-color: var(--mk-green);
    text-decoration-thickness: 4px; text-underline-offset: 7px; text-decoration-skip-ink: none;
}
.mk-bhead__lead { max-width: 640px; font-size: 16.5px; line-height: 1.6; color: var(--mk-card-text); }
.mk-bhead .mk-topics { margin-top: 10px; }
.mk-bhead .mk-crumbs { margin-bottom: -6px; }
@media (min-width: 1024px) {
    .mk-hero.mk-bhead { padding-bottom: 56px; }
    .mk-bhead__body { gap: 20px; padding-top: 40px; }
    .mk-bhead__h1 { font-size: 68px; line-height: 1; letter-spacing: -3px; }
    .mk-bhead__h1 em { text-decoration-thickness: 6px; text-underline-offset: 11px; }
    .mk-bhead__lead { font-size: 19px; }
    .mk-bhead .mk-topics { margin-top: 14px; }
}

/* Topic links on the dark hero: outlined pills, the current one white. 44px targets. */
.mk-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-topics a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); color: #DCE6F2;
    font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.mk-topics a:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.mk-topics a b { font-family: var(--mk-mono); font-size: 12px; font-weight: 500; color: var(--mk-dim); }
.mk-topics a[aria-current="page"] { background: #fff; border-color: #fff; color: #0B1628; }
.mk-topics a[aria-current="page"] b { color: #4A5568; }
.mk-topics__label { width: 100%; margin-bottom: 4px; font-family: var(--mk-mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mk-dim); }

/* Short hero: category pages and the article (no 560px visual). */
.mk-hero--short { padding-bottom: 40px; }
.mk-hero--short .mk-hero__body { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Section head with a count or a link on the right ---------- */
.mk-sechead { display: flex; flex-direction: column; gap: 10px; }
.mk-sechead__aside { font-family: var(--mk-mono); font-size: 13px; color: var(--mk-muted); }
.mk-sechead .mk-link { align-self: flex-start; }
.mk-h2--list { font-size: 32px; }
.mk-sec__inner--48 { --mk-gap: 48px; --mk-gap-sm: 24px; }

/* ---------- Post cards ---------- */
.mk-bcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.mk-bcard { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mk-bcard__media {
    position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; isolation: isolate;
    background: var(--mk-soft);
}
.mk-bcard__media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.mk-bcard__media::after {
    content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}
/* Without images the card is text only: a bordered panel from 768px. */
.mk-bcard__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mk-bcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--mk-muted); }
.mk-bcard__meta time { font-variant-numeric: tabular-nums; }
.mk-bcard__title {
    font-size: 17.5px; line-height: 1.25; font-weight: 700; letter-spacing: -0.3px; color: var(--mk-ink);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-wrap: pretty;
}
.mk-bcard__title a { color: inherit; }
.mk-bcard__title a::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 16px; }
.mk-bcard:hover .mk-bcard__title { color: var(--mk-link); }
.mk-bcard__excerpt { display: none; font-size: 15.5px; line-height: 1.6; color: var(--mk-body); }
.mk-bcard__read { display: none; }

.mk-bcat {
    display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 8px; white-space: nowrap;
    background: var(--mk-tint); color: var(--mk-tint-fg); font-size: 12.5px; font-weight: 600; letter-spacing: 0;
}
a.mk-bcat { min-height: 44px; height: auto; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.mk-bcat--dark { background: var(--mk-anchor-fill); border: 1px solid var(--mk-anchor-line); color: #DCE6F2; }

@media (min-width: 768px) {
    .mk-bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
    .mk-bcard { gap: 18px; }
    .mk-bcard__media { border-radius: 20px; }
    .mk-bcard__title { font-size: 21px; letter-spacing: -0.5px; }
    .mk-bcard__title a::after { border-radius: 20px; }
    .mk-bcard--plain { padding: 24px; border: 1px solid var(--mk-line); border-radius: 20px; background: var(--mk-surface); }
    .mk-bcard__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    .mk-bcard__body { gap: 10px; }
}
@media (min-width: 1024px) {
    .mk-bcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
    .mk-h2--list { font-size: 44px; letter-spacing: -1.8px; }
    .mk-sechead { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
    .mk-sechead .mk-link { align-self: auto; }
}

/* Cover for a post without a featured image: the dark card ground, the hero dot grid and its one blue light, the category in type. */
.mk-bcover {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px;
    background-color: var(--mk-cover);
    background-image:
        radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1.3px),
        radial-gradient(360px 220px at var(--cov-x, 90%) 0%, rgba(111,168,220,0.22), transparent 70%);
    background-size: 18px 18px, auto;
    color: #fff;
}
.mk-bcover--seo { --cov-x: 92%; }
.mk-bcover--content { --cov-x: 18%; }
.mk-bcover--links { --cov-x: 60%; }
.mk-bcover--guest { --cov-x: 100%; }
.mk-bcover--pr { --cov-x: 38%; }
.mk-bcover__t { font-size: 13px; line-height: 1.05; font-weight: 700; letter-spacing: -0.3px; color: #fff; }
@media (min-width: 768px) {
    .mk-bcover { padding: 22px 24px; gap: 10px; }
    .mk-bcover__t { font-size: 34px; letter-spacing: -1.4px; max-width: 80%; }
}

/* ---------- Pagination (Laravel paginator, restyled) ---------- */
.mk-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--mk-line); }
.mk-pager__nums { display: none; gap: 6px; }
.mk-pager__count { font-family: var(--mk-mono); font-size: 13px; color: var(--mk-muted); }
/* The buyer app's pager (bx-pages): 32 tall, radius 8, link-coloured, the current page blue. */
.mk-pager a, .mk-pager span.is-off, .mk-pager [aria-current] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 32px; height: 32px; padding: 0 10px;
    border-radius: 8px; border: 1px solid var(--mk-control-line); background: var(--mk-white); color: var(--mk-green-text);
    font-size: 13px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.mk-pager a:hover { background: var(--mk-green-wash); color: var(--mk-green-ink); }
.mk-pager a:focus-visible { outline: 2px solid var(--mk-focus); outline-offset: 2px; border-radius: 8px; }
.mk-pager [aria-current] { background: var(--mk-green-deep); border-color: var(--mk-green-deep); color: #fff; }
.mk-pager span.is-off { color: var(--mk-muted); opacity: 0.5; }
.mk-pager__gap { display: inline-flex; align-items: flex-end; height: 32px; padding: 0 4px 8px; color: var(--mk-muted); }
@media (min-width: 768px) {
    .mk-pager__nums { display: flex; }
    .mk-pager__count { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.mk-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
.mk-crumbs li { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--mk-dim); }
.mk-crumbs li + li::before { content: '/'; padding: 0 6px; color: rgba(255,255,255,0.28); }
.mk-crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: #DCE6F2; font-weight: 500; }
.mk-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.mk-crumbs [aria-current] { color: var(--mk-dim); }

/* ---------- Article header ---------- */
.mk-ahead { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.mk-ahead__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.mk-ahead__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.mk-ahead__h1 { overflow-wrap: break-word; font-size: 36px; line-height: 1.06; font-weight: 700; letter-spacing: -1.4px; color: #fff; text-wrap: balance; }
.mk-ahead__dek { font-size: 17px; line-height: 1.6; color: var(--mk-card-text); max-width: 620px; }
.mk-ahead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--mk-dim); }
.mk-ahead__meta li { display: inline-flex; align-items: center; gap: 8px; }
.mk-ahead__meta li > svg { color: var(--mk-dim); }
.mk-ahead__meta b { font-weight: 600; color: #fff; }
.mk-ahead__media .mk-visual__frame { aspect-ratio: 16 / 9; background: var(--mk-navy); }
.mk-ahead__media img { object-fit: contain; object-position: center; filter: none; mix-blend-mode: normal; }
.mk-ahead__media .mk-visual__frame::before,
.mk-ahead__media .mk-visual__frame::after { content: none; }
.mk-ahead__media .mk-bcover { justify-content: flex-start; padding: 26px 28px; }
.mk-ahead__media .mk-bcover__t { font-size: 26px; letter-spacing: -1px; }
@media (min-width: 1024px) {
    .mk-ahead { gap: 28px; padding-top: 24px; }
    .mk-ahead__grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; align-items: center; }
    .mk-ahead__grid--solo { grid-template-columns: minmax(0, 900px); }
    .mk-ahead__h1 { font-size: 60px; line-height: 1.02; letter-spacing: -2.6px; }
    .mk-ahead__dek { font-size: 20px; }
    .mk-ahead__media .mk-visual__frame { width: 460px; height: auto; border-radius: 24px; }
}

/* ---------- Rail promo: the guest posts banner above the contents, desktop rail only ---------- */
.mk-rail-promo { display: none; }
@media (min-width: 1024px) {
    /* No shadow or lift: the rail scrolls, so it would clip anything drawn outside the banner. */
    .mk-rail-promo { display: block; flex-shrink: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--mk-line); transition: opacity .2s ease; }
    .mk-rail-promo img { display: block; width: 100%; height: auto; }
    .mk-rail-promo:hover { opacity: .92; }
    .mk-rail-promo:focus-visible { outline: 3px solid var(--mk-focus); outline-offset: -3px; }
}

/* ---------- Article grid: contents rail + reading column ---------- */
/* .mk-sec clips its overflow, which would stop the rail sticking; the article section has nothing to clip. */
.mk-sec--article { overflow: visible; }
.mk-art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.mk-art__main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.mk-art__rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (min-width: 1024px) {
    /* Reading column left of centre, contents rail on the right. The rail comes first in the HTML (phones show it
       above the post), so the grid places it. The marketing nav scrolls away, so the rail sticks 24px from the top
       and scrolls on its own when the list is longer than the window. */
    .mk-art { grid-template-columns: minmax(0, 680px) 272px; column-gap: 112px; justify-content: center; align-items: start; }
    .mk-art__main { grid-column: 1; grid-row: 1; }
    .mk-art__rail {
        grid-column: 2; grid-row: 1; position: sticky; top: 24px; max-height: calc(100vh - 48px);
        overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-inline-end: 4px;
    }
    /* The rail scrolls, so it would clip a focus ring drawn outside its links and buttons. */
    .mk-art__rail :is(a, button):focus-visible { outline-offset: -3px; }
}

/* The contents and share links are drawn twice: folded above the post and under it on phones and tablets,
   in the sticky rail from 1024px. Only one copy is ever displayed. */
.mk-art .mk-toc--rail, .mk-art .mk-share--rail { display: none; }
@media (min-width: 1024px) {
    .mk-art .mk-toc--fold, .mk-art .mk-share--foot { display: none; }
    .mk-art .mk-toc--rail, .mk-art .mk-share--rail { display: flex; }
}

/* Contents: the post's H2s (ids added when the page is drawn). Phones fold it into a <details>. */
.mk-toc { display: flex; flex-direction: column; gap: 8px; }
.mk-toc__label { font-family: var(--mk-mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mk-muted); }
.mk-toc ol { display: flex; flex-direction: column; }
.mk-toc a {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px;
    font-size: 14.5px; line-height: 1.3; font-weight: 500; color: var(--mk-body);
}
.mk-toc a::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--mk-control-line); }
.mk-toc a:hover { background: var(--mk-soft); color: var(--mk-ink); }
.mk-toc a[aria-current="true"] { background: var(--mk-soft); color: var(--mk-ink); font-weight: 650; }
.mk-toc a[aria-current="true"]::before { background: var(--mk-link); box-shadow: 0 0 0 3px rgba(42,111,174,0.2); }
.mk-toc__progress { height: 4px; margin: 2px 12px 6px; border-radius: 2px; background: var(--mk-line); overflow: hidden; }
.mk-toc__progress span { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--mk-link); }

.mk-toc--fold { border-radius: 18px; border: 1px solid var(--mk-line); background: var(--mk-surface); }
.mk-toc--fold summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px;
    list-style: none; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--mk-ink);
}
.mk-toc--fold summary::-webkit-details-marker { display: none; }
.mk-toc--fold summary small { font-family: var(--mk-mono); font-size: 12px; font-weight: 500; color: var(--mk-muted); }
.mk-toc--fold .mk-qa__icon { width: 30px; height: 30px; }
.mk-toc--fold ol { padding: 0 8px 10px; }
.mk-toc--fold .mk-qa__icon .mk-m { display: none; }
.mk-toc--fold[open] .mk-qa__icon { background: var(--mk-ink-fill); color: #fff; }
.mk-toc--fold[open] .mk-qa__icon .mk-m { display: block; }
.mk-toc--fold[open] .mk-qa__icon .mk-v { display: none; }

/* Share: three plain links, no scripts beyond "Copy link". */
.mk-share { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--mk-line); }
.mk-share__row { display: flex; flex-wrap: wrap; gap: 8px; }
/* The buyer app's line button (bx-btn): 38 tall, radius 9, 13.5/600. */
.mk-share__row a, .mk-share__row button {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px;
    border: 1px solid var(--mk-control-line); background: var(--mk-white); color: var(--mk-ink);
    font-size: 13.5px; font-weight: 600; line-height: 1; transition: background-color 0.15s ease;
}
.mk-share__row a:hover, .mk-share__row button:hover { background: var(--mk-hover); }
.mk-share__row :is(a, button):focus-visible { outline: 2px solid var(--mk-focus); outline-offset: 2px; border-radius: 9px; }
/* "Share…" stays hidden until the script finds a share sheet; the button rule above would otherwise show it. */
.mk-share__row [hidden] { display: none; }

/* ---------- Reading column: the editor's HTML (Quill), styled ---------- */
.mk-prose { font-size: 17px; line-height: 1.75; color: var(--mk-body); overflow-wrap: break-word; }
.mk-prose > * + * { margin-top: 1.15em; }
/* Quill saves inline colours (rgb(0,0,0) on a transparent ground): the page's colours win, in both colour modes. */
.mk-prose [style*="color"] { color: inherit !important; background-color: transparent !important; }
.mk-prose .ql-ui { display: none; }
.mk-prose h2 {
    margin-top: 2.1em; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -1px; color: var(--mk-ink);
    scroll-margin-top: 24px; text-wrap: balance;
}
.mk-prose h3 { margin-top: 1.8em; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.4px; color: var(--mk-ink); scroll-margin-top: 24px; }
.mk-prose h2 + *, .mk-prose h3 + * { margin-top: 0.6em; }
.mk-prose p:empty, .mk-prose h2:empty { display: none; }
.mk-prose strong, .mk-prose b { font-weight: 650; color: var(--mk-ink); }
.mk-prose a {
    color: var(--mk-link); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px;
    text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.mk-prose a:hover { color: var(--mk-link-hover); text-decoration-color: currentColor; }
.mk-prose :is(ul, ol) { padding-inline-start: 1.5em; }
.mk-prose li + li { margin-top: 0.5em; }
.mk-prose ul, .mk-prose ol > li[data-list="bullet"] { list-style: disc; }
.mk-prose ol, .mk-prose ol > li[data-list="ordered"] { list-style: decimal; }
.mk-prose li { padding-inline-start: 0.3em; }
.mk-prose li::marker { color: var(--mk-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-prose blockquote {
    margin-block: 1.8em; padding: 26px 0 0; border-top: 1.5px solid var(--mk-ink);
    font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -0.5px; color: var(--mk-ink); text-wrap: pretty;
}
.mk-prose blockquote::before { content: '\201C'; display: block; height: 30px; font-size: 64px; line-height: 0.9; color: var(--mk-line-strong); }
.mk-prose code { padding: 0.1em 0.38em; border-radius: 6px; background: var(--mk-soft); border: 1px solid var(--mk-line); font-family: var(--mk-mono); font-size: 0.86em; color: var(--mk-ink); }
.mk-prose pre {
    padding: 20px 22px; border-radius: 18px; background: var(--mk-navy); border: 1px solid var(--mk-anchor-line); overflow-x: auto;
    font-family: var(--mk-mono); font-size: 14px; line-height: 1.7; color: #DCE6F2; tab-size: 2;
}
.mk-prose pre code { padding: 0; border: 0; background: none; font-size: inherit; color: inherit; }
.mk-prose pre .t { color: var(--mk-dim); }
.mk-prose pre .s { color: var(--mk-green-light); }
.mk-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.mk-prose figure img { width: 100%; border-radius: 20px; }
.mk-prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.mk-prose h4 { margin-top: 1.6em; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--mk-ink); }
.mk-prose figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--mk-muted); }
.mk-prose hr { height: 1px; border: 0; background: var(--mk-line); margin-block: 2.4em; }

/* Tables: Quill writes no <thead>, so the first row is the header. The box scrolls sideways on phones. */
.mk-prose__table:focus-visible { outline: 3px solid var(--mk-focus); outline-offset: 3px; }
.mk-prose__table { overflow-x: auto; border-radius: 18px; border: 1px solid var(--mk-line); background: var(--mk-surface); }
.mk-prose table { width: 100%; min-width: 520px; font-size: 15px; line-height: 1.5; }
.mk-prose td, .mk-prose th { font-variant-numeric: tabular-nums; padding: 13px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--mk-line-soft); }
.mk-prose td + td { border-inline-start: 1px solid var(--mk-line-soft); }
.mk-prose tr:first-child td, .mk-prose th { background: var(--mk-soft); font-weight: 650; color: var(--mk-ink); border-bottom-color: var(--mk-line); }
.mk-prose tr:last-child td { border-bottom: 0; }

@media (min-width: 1024px) {
    .mk-prose { font-size: 18.5px; line-height: 1.75; }
    .mk-prose h2 { font-size: 36px; letter-spacing: -1.4px; }
    .mk-prose h3 { font-size: 23px; }
    .mk-prose blockquote { font-size: 27px; letter-spacing: -0.8px; }
    .mk-prose table { font-size: 16px; }
}

/* ---------- After the article: the post's own CTA (cta_text / cta_url), tags, last update ---------- */
.mk-postcta {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; border-radius: 24px;
    background-color: var(--mk-ink-fill);
}
.mk-postcta__label { font-family: var(--mk-mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mk-dim); }
.mk-postcta__hint { font-size: 16px; line-height: 1.5; color: var(--mk-card-text); }
@media (min-width: 768px) {
    .mk-postcta { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; }
    .mk-postcta > div { display: flex; flex-direction: column; gap: 6px; }
}

.mk-afoot { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--mk-line); }
.mk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mk-tags__label { margin-inline-end: 4px; font-size: 14px; font-weight: 600; color: var(--mk-ink); }
.mk-tags span:not(.mk-tags__label) {
    display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px;
    background: var(--mk-soft); border: 1px solid var(--mk-line); font-size: 13.5px; font-weight: 600; color: var(--mk-body);
}
.mk-afoot__updated { font-size: 14px; color: var(--mk-muted); }

/* ---------- Empty state (no posts in a topic) ---------- */
.mk-blank {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: 24px;
    border: 1.5px dashed var(--mk-control-line); background: var(--mk-soft);
}
.mk-blank__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mk-tint); color: var(--mk-tint-fg); }
.mk-blank h2 { font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -0.8px; color: var(--mk-ink); }
.mk-blank p { font-size: 16px; line-height: 1.6; color: var(--mk-body); max-width: 520px; }
.mk-blank__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Article header extras: the staff edit link and the notice after saving a post ---------- */
.mk-ahead__edit { display: inline-flex; align-items: center; min-height: 44px; color: #DCE6F2; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.mk-ahead__edit:hover { color: #fff; }
.mk-bnote {
    align-self: flex-start; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(155,214,106,0.45);
    background: rgba(155,214,106,0.12); color: var(--mk-green-light); font-size: 14.5px; font-weight: 600;
}

html[dir="rtl"] :is(.mk-bhead__h1, .mk-ahead__h1, .mk-bcard__title) { letter-spacing: normal; line-height: 1.4; }
