/*
 * Content templates: blog archive, work archive, and shared pieces used by
 * single posts and case studies. Theme tokens (--mhb-*) make every part work
 * in light and dark mode.
 */
.mhb-cx {
    --cx-accent: var(--mhb-green, #22c55e);
    --cx-accent-2: var(--mhb-teal, #14b8a6);
    --cx-radius: 20px;
    background: var(--mhb-bg);
    color: var(--mhb-text);
    font-family: var(--mhb-font-display);
    padding-bottom: clamp(64px, 9vw, 120px);
}

.mhb-cx__wrap {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1240px;
    padding-inline: clamp(16px, 4vw, 40px);
    width: 100%;
}

/* Hero */
.mhb-cx-hero {
    padding-block: clamp(56px, 9vw, 112px) clamp(28px, 4vw, 44px);
}

.mhb-cx-eyebrow {
    align-items: center;
    background: var(--mhb-brand-soft, rgba(34, 197, 94, 0.14));
    border: 1px solid color-mix(in srgb, var(--cx-accent) 30%, transparent);
    border-radius: 999px;
    color: var(--cx-accent);
    display: inline-flex;
    font-family: var(--mhb-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.14em;
    margin: 0 0 22px;
    padding: 6px 12px;
    text-transform: uppercase;
}

.mhb-cx-eyebrow::before {
    background: currentColor;
    border-radius: 50%;
    content: "";
    height: 6px;
    width: 6px;
}

.mhb-cx-hero h1 {
    color: var(--mhb-text);
    font-size: clamp(2.6rem, 6.4vw, 5.2rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0 0 22px;
    max-width: 14ch;
}

.mhb-cx-hero h1 span {
    background: linear-gradient(120deg, var(--cx-accent), var(--cx-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mhb-cx-hero__lead {
    color: var(--mhb-text-muted);
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.65;
    margin: 0;
    max-width: 60ch;
}

.mhb-cx-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.mhb-cx-hero__stats strong {
    color: var(--mhb-text);
    display: block;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.mhb-cx-hero__stats span {
    color: var(--mhb-text-muted);
    font-size: 0.85rem;
}

/* Toolbar: category chips + search */
.mhb-cx-toolbar {
    align-items: center;
    border-block: 1px solid var(--mhb-border);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    justify-content: space-between;
    margin-bottom: clamp(28px, 4vw, 44px);
    padding-block: 16px;
}

.mhb-cx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.mhb-cx-chip {
    align-items: center;
    background: transparent;
    border: 1px solid var(--mhb-border-strong);
    border-radius: 999px;
    color: var(--mhb-text-muted);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.mhb-cx-chip small {
    color: inherit;
    font-family: var(--mhb-font-mono);
    font-size: 0.72rem;
    opacity: 0.7;
}

.mhb-cx-chip:hover,
.mhb-cx-chip:focus-visible {
    border-color: var(--cx-accent);
    color: var(--mhb-text);
}

.mhb-cx-chip.is-active {
    background: linear-gradient(135deg, var(--cx-accent), var(--cx-accent-2));
    border-color: transparent;
    color: #04130a;
}

.mhb-cx-search {
    align-items: center;
    background: var(--mhb-surface);
    border: 1px solid var(--mhb-border-strong);
    border-radius: 999px;
    display: flex;
    flex: 0 1 380px;
    gap: 4px;
    padding: 4px 4px 4px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mhb-cx-search:focus-within {
    border-color: var(--cx-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-accent) 18%, transparent);
}

.mhb-cx-search svg {
    color: var(--mhb-text-muted);
    flex: none;
    height: 18px;
    width: 18px;
}

.mhb-cx-search input[type="search"] {
    background: transparent;
    border: 0;
    color: var(--mhb-text);
    flex: 1;
    font: inherit;
    font-size: 0.95rem;
    min-width: 0;
    outline: none;
    padding: 8px 4px;
}

.mhb-cx-search select {
    background: transparent;
    border: 0;
    color: var(--mhb-text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    outline: none;
    padding: 8px 4px;
}

.mhb-cx-search select option {
    background: var(--mhb-bg-soft);
    color: var(--mhb-text);
}

.mhb-cx-search button {
    background: linear-gradient(135deg, var(--cx-accent), var(--cx-accent-2));
    border: 0;
    border-radius: 999px;
    color: #04130a;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    min-height: 38px;
    padding: 0 16px;
    transition: filter 0.2s;
}

.mhb-cx-search button:hover,
.mhb-cx-search button:focus-visible {
    filter: brightness(1.08);
}

.mhb-cx-note {
    align-items: center;
    color: var(--mhb-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -16px 0 28px;
}

.mhb-cx-note a {
    color: var(--cx-accent);
    font-weight: 600;
}

/* Cards */
.mhb-cx-grid {
    display: grid;
    gap: clamp(16px, 2.4vw, 28px);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.mhb-cx-card {
    background: var(--mhb-surface);
    border: 1px solid var(--mhb-border);
    border-radius: var(--cx-radius);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mhb-cx-card:hover,
.mhb-cx-card:focus-within {
    border-color: color-mix(in srgb, var(--cx-accent) 45%, var(--mhb-border));
    box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--cx-accent) 55%, transparent);
    transform: translateY(-4px);
}

.mhb-cx-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px 24px;
}

.mhb-cx-meta {
    align-items: center;
    color: var(--mhb-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-family: var(--mhb-font-mono);
    font-size: 0.72rem;
    gap: 6px 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mhb-cx-meta .is-tag {
    color: var(--cx-accent);
    font-weight: 700;
}

.mhb-cx-meta span + span::before {
    color: var(--mhb-text-dim);
    content: "•";
    margin-right: 12px;
}

.mhb-cx-card h2,
.mhb-cx-card h3 {
    font-size: clamp(1.2rem, 1.6vw, 1.38rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.22;
    margin: 0;
}

.mhb-cx-card h2 a,
.mhb-cx-card h3 a {
    color: var(--mhb-text);
    text-decoration: none;
}

/* The title link covers the whole card. */
.mhb-cx-card h2 a::after,
.mhb-cx-card h3 a::after {
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.mhb-cx-card h2 a:focus-visible,
.mhb-cx-card h3 a:focus-visible {
    outline: none;
}

.mhb-cx-card:has(h2 a:focus-visible),
.mhb-cx-card:has(h3 a:focus-visible) {
    outline: 2px solid var(--cx-accent);
    outline-offset: 3px;
}

.mhb-cx-card p {
    color: var(--mhb-text-muted);
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
}

.mhb-cx-card__foot {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.mhb-cx-more {
    align-items: center;
    color: var(--cx-accent);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 6px;
}

.mhb-cx-more::after {
    content: "→";
    transition: transform 0.2s ease;
}

.mhb-cx-card:hover .mhb-cx-more::after {
    transform: translateX(4px);
}

.mhb-cx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mhb-cx-tags li {
    border: 1px solid var(--mhb-border-strong);
    border-radius: 999px;
    color: var(--mhb-text-muted);
    font-family: var(--mhb-font-mono);
    font-size: 0.7rem;
    padding: 4px 9px;
}

.mhb-cx-card__ext {
    color: var(--mhb-text-muted);
    font-size: 0.85rem;
    position: relative;
    text-decoration: none;
    z-index: 2;
}

.mhb-cx-card__ext:hover {
    color: var(--cx-accent);
}

/* Cover: real image, or generated art from the title and category. */
.mhb-cx-cover {
    aspect-ratio: 16 / 9;
    background: var(--mhb-bg-soft);
    display: block;
    overflow: hidden;
    position: relative;
}

.mhb-cx-cover img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    width: 100%;
}

.mhb-cx-card:hover .mhb-cx-cover img {
    transform: scale(1.04);
}

.mhb-cx-art {
    --h: 150;
    background:
        radial-gradient(circle at 85% 15%, hsl(var(--h) 80% 55% / 0.55), transparent 55%),
        radial-gradient(circle at 10% 100%, hsl(calc(var(--h) + 40) 75% 50% / 0.45), transparent 55%),
        linear-gradient(135deg, hsl(var(--h) 45% 12%), hsl(calc(var(--h) + 30) 50% 8%));
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 18px 20px;
    position: relative;
}

.mhb-cx-art::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
    position: absolute;
}

.mhb-cx-art__bar {
    display: flex;
    gap: 6px;
    position: relative;
}

.mhb-cx-art__bar i {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.mhb-cx-art__label {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    align-self: flex-start;
    display: inline-block;
    font-family: var(--mhb-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    padding: 5px 10px;
    position: relative;
    text-transform: uppercase;
}

.mhb-cx-art__title {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    max-width: 20ch;
    overflow: hidden;
    position: relative;
    text-wrap: balance;
}

.mhb-cx-art__mono {
    color: rgba(255, 255, 255, 0.16);
    font-size: clamp(6rem, 12vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.8;
    position: absolute;
    right: 18px;
    bottom: 10px;
}

/* Featured (first) item */
.mhb-cx-featured {
    margin-bottom: clamp(24px, 3vw, 36px);
}

@media (min-width: 900px) {
    .mhb-cx-featured {
        display: grid;
        grid-template-columns: 1.25fr 1fr;
    }

    .mhb-cx-featured .mhb-cx-cover {
        aspect-ratio: auto;
        min-height: 340px;
    }

    .mhb-cx-featured .mhb-cx-card__body {
        justify-content: center;
        padding: clamp(28px, 3.5vw, 48px);
    }

    .mhb-cx-featured h2 {
        font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    }
}

.mhb-cx-featured__flag {
    background: linear-gradient(135deg, var(--cx-accent), var(--cx-accent-2));
    border-radius: 999px;
    color: #04130a;
    font-family: var(--mhb-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    left: 16px;
    letter-spacing: 0.1em;
    padding: 5px 10px;
    position: absolute;
    text-transform: uppercase;
    top: 16px;
    z-index: 1;
}

/* Pagination */
.mhb-cx-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: clamp(36px, 5vw, 56px);
}

.mhb-cx-pagination .page-numbers {
    align-items: center;
    border: 1px solid var(--mhb-border-strong);
    border-radius: 999px;
    color: var(--mhb-text);
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 14px;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.mhb-cx-pagination a.page-numbers:hover,
.mhb-cx-pagination a.page-numbers:focus-visible {
    background: var(--mhb-brand-soft, rgba(34, 197, 94, 0.14));
    border-color: var(--cx-accent);
}

.mhb-cx-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--cx-accent), var(--cx-accent-2));
    border-color: transparent;
    color: #04130a;
}

.mhb-cx-pagination .page-numbers.dots {
    border: 0;
    min-width: auto;
}

.mhb-cx-pagination__status {
    color: var(--mhb-text-muted);
    flex-basis: 100%;
    font-size: 0.85rem;
    margin-top: 6px;
    text-align: center;
}

/* Empty state */
.mhb-cx-empty {
    border: 1px dashed var(--mhb-border-strong);
    border-radius: var(--cx-radius);
    padding: clamp(36px, 6vw, 64px) 24px;
    text-align: center;
}

.mhb-cx-empty h2 {
    font-size: 1.4rem;
    margin: 0 0 10px;
}

.mhb-cx-empty p {
    color: var(--mhb-text-muted);
    margin: 0 0 20px;
}

/* Buttons */
.mhb-cx-btn {
    align-items: center;
    border: 1px solid var(--mhb-border-strong);
    border-radius: 999px;
    color: var(--mhb-text);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.mhb-cx-btn:hover,
.mhb-cx-btn:focus-visible {
    background: var(--mhb-brand-soft, rgba(34, 197, 94, 0.14));
    border-color: var(--cx-accent);
    color: var(--mhb-text);
    transform: translateY(-2px);
}

.mhb-cx-btn.is-primary {
    background: linear-gradient(135deg, var(--cx-accent), var(--cx-accent-2));
    border-color: transparent;
    color: #04130a;
}

.mhb-cx-btn.is-primary:hover,
.mhb-cx-btn.is-primary:focus-visible {
    box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--cx-accent) 70%, transparent);
    color: #04130a;
    filter: brightness(1.08) saturate(1.1);
}

.mhb-cx-back {
    align-items: center;
    border: 1px solid var(--mhb-border-strong);
    border-radius: 999px;
    color: var(--mhb-text-muted);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.mhb-cx-back:hover,
.mhb-cx-back:focus-visible {
    background: var(--mhb-brand-soft, rgba(34, 197, 94, 0.14));
    border-color: var(--cx-accent);
    color: var(--mhb-text);
}

/* Closing call to action */
.mhb-cx-cta {
    align-items: center;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--cx-accent) 22%, transparent), transparent 60%),
        var(--mhb-surface);
    border: 1px solid color-mix(in srgb, var(--cx-accent) 30%, var(--mhb-border));
    border-radius: 24px;
    display: grid;
    gap: 20px 40px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: clamp(48px, 7vw, 88px);
    padding: clamp(26px, 4vw, 44px);
}

.mhb-cx-cta h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 8px;
}

.mhb-cx-cta p {
    color: var(--mhb-text-muted);
    margin: 0;
    max-width: 52ch;
}

.mhb-cx-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 760px) {
    .mhb-cx-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .mhb-cx-chips {
        flex-wrap: nowrap;
        margin-inline: calc(-1 * clamp(16px, 4vw, 40px));
        overflow-x: auto;
        padding-inline: clamp(16px, 4vw, 40px);
        scrollbar-width: none;
    }

    .mhb-cx-chips::-webkit-scrollbar {
        display: none;
    }

    .mhb-cx-search {
        flex-basis: auto;
    }

    .mhb-cx-cta {
        grid-template-columns: 1fr;
    }

    .mhb-cx-cta__actions .mhb-cx-btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mhb-cx-card,
    .mhb-cx-card:hover,
    .mhb-cx-cover img,
    .mhb-cx-btn:hover {
        transform: none;
        transition: none;
    }
}

.mhb-cx-result {
    background: var(--mhb-brand-soft, rgba(34, 197, 94, 0.14));
    border-radius: 10px;
    color: var(--mhb-text) !important;
    font-size: 0.9rem !important;
    padding: 8px 12px;
}

.mhb-cx-result strong {
    color: var(--cx-accent);
}

/* ── Single article (single-post-page block) ─────────────────────────── */
.mhb-single-post-page.mhb-single-post-page {
    background: var(--mhb-bg);
    color: var(--mhb-text);
    padding: 0;
}

.mhb-art {
    --cx-accent: var(--mhb-green, #22c55e);
    --cx-accent-2: var(--mhb-teal, #14b8a6);
}

.mhb-art__wrap {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1160px;
    padding-inline: clamp(16px, 4vw, 40px);
    width: 100%;
}

.mhb-art__hero {
    background:
        radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--cx-accent) 12%, transparent), transparent 45%);
    border-bottom: 1px solid var(--mhb-border);
    padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
}

.mhb-art__meta {
    align-items: center;
    color: var(--mhb-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 8px 14px;
    margin: 28px 0 18px;
}

.mhb-art__meta span + span::before {
    color: var(--mhb-text-dim);
    content: "•";
    margin-right: 14px;
}

.mhb-art__cat {
    background: var(--mhb-brand-soft, rgba(34, 197, 94, 0.14));
    border-radius: 999px;
    color: var(--cx-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    text-decoration: none;
    text-transform: uppercase;
}

.mhb-art__cat:hover {
    background: var(--cx-accent);
    color: #04130a;
}

.mhb-art__title {
    color: var(--mhb-text);
    font-family: var(--mhb-font-display);
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.06;
    margin: 0 0 18px;
    max-width: 22ch;
    text-wrap: balance;
}

.mhb-art__lede {
    color: var(--mhb-text-muted);
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 62ch;
}

.mhb-art__byline {
    align-items: center;
    border-top: 1px solid var(--mhb-border);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding-top: 20px;
}

.mhb-art__author {
    align-items: center;
    display: flex;
    gap: 12px;
}

.mhb-art__author strong {
    color: var(--mhb-text);
    display: block;
    font-size: 0.98rem;
}

.mhb-art__author small {
    color: var(--mhb-text-muted);
    font-size: 0.85rem;
}

.mhb-art__avatar {
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--mhb-bg), 0 0 0 4px color-mix(in srgb, var(--cx-accent) 60%, transparent);
}

.mhb-art__share {
    display: flex;
    gap: 8px;
}

.mhb-art__icon {
    align-items: center;
    background: transparent;
    border: 1px solid var(--mhb-border-strong);
    border-radius: 50%;
    color: var(--mhb-text-muted);
    cursor: pointer;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
    width: 40px;
}

.mhb-art__icon svg {
    height: 18px;
    width: 18px;
}

.mhb-art__icon:hover,
.mhb-art__icon:focus-visible,
.mhb-art__icon.is-copied {
    background: var(--mhb-brand-soft, rgba(34, 197, 94, 0.14));
    border-color: var(--cx-accent);
    color: var(--cx-accent);
}

.mhb-art__cover {
    margin-block: clamp(28px, 4vw, 44px) 0;
}

.mhb-art__cover img {
    aspect-ratio: 16 / 8;
    border-radius: 22px;
    box-shadow: 0 0 0 1px var(--mhb-border);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

/* Reading column + sticky rail */
.mhb-art__grid {
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr);
    padding-block: clamp(36px, 5vw, 60px);
}

@media (min-width: 1024px) {
    .mhb-art__grid {
        grid-template-columns: minmax(0, 720px) 280px;
        justify-content: space-between;
    }
}

.mhb-art__main {
    min-width: 0;
}

.mhb-single-post-page .mhb-art .mhb-single-post__content {
    margin: 0;
    max-width: none;
}

.mhb-art__rail {
    display: none;
}

@media (min-width: 1024px) {
    .mhb-art__rail {
        display: block;
    }

    .mhb-art__rail-inner {
        display: grid;
        gap: 16px;
        position: sticky;
        top: 100px;
    }
}

.mhb-art__toc {
    border-left: 2px solid var(--mhb-border-strong);
    padding: 4px 0 4px 16px;
}

.mhb-art__rail-label {
    color: var(--mhb-text);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mhb-art__toc nav {
    display: grid;
    gap: 2px;
}

.mhb-art__toc .mhb-toc-link {
    border: 0;
    border-radius: 8px;
    color: var(--mhb-text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-left: -18px;
    padding: 6px 10px 6px 16px;
    position: relative;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.mhb-art__toc .mhb-toc-link:hover {
    color: var(--mhb-text);
}

.mhb-art__toc .mhb-toc-link.is-active {
    background: var(--mhb-brand-soft, rgba(34, 197, 94, 0.14));
    color: var(--mhb-text);
    font-weight: 600;
}

.mhb-art__toc .mhb-toc-link.is-active::before {
    background: var(--cx-accent);
    border-radius: 2px;
    bottom: 6px;
    content: "";
    left: 0;
    position: absolute;
    top: 6px;
    width: 2px;
}

.mhb-art__mini-cta {
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--cx-accent) 25%, transparent), transparent 70%),
        var(--mhb-surface);
    border: 1px solid color-mix(in srgb, var(--cx-accent) 35%, var(--mhb-border));
    border-radius: 18px;
    padding: 18px;
}

.mhb-art__mini-cta strong {
    color: var(--mhb-text);
    display: block;
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.mhb-art__mini-cta p {
    color: var(--mhb-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 14px;
}

.mhb-art__mini-cta .mhb-cx-btn {
    min-height: 42px;
    width: 100%;
}

.mhb-art__toc-mobile {
    border: 1px solid var(--mhb-border-strong);
    border-radius: 14px;
    margin-bottom: 28px;
}

.mhb-art__toc-mobile summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    padding: 14px 16px;
}

.mhb-art__toc-mobile summary::after {
    content: "+";
    float: right;
    font-weight: 400;
}

.mhb-art__toc-mobile[open] summary::after {
    content: "–";
}

.mhb-art__toc-mobile nav {
    border-top: 1px solid var(--mhb-border);
    display: grid;
    padding: 8px;
}

.mhb-art__toc-mobile a {
    border-radius: 8px;
    color: var(--mhb-text-muted);
    padding: 9px 10px;
    text-decoration: none;
}

@media (min-width: 1024px) {
    .mhb-art__toc-mobile {
        display: none;
    }
}

/* End of article */
.mhb-art__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.mhb-art__tags a {
    border: 1px solid var(--mhb-border-strong);
    border-radius: 999px;
    color: var(--mhb-text-muted);
    font-size: 0.85rem;
    padding: 5px 12px;
    text-decoration: none;
}

.mhb-art__tags a:hover {
    border-color: var(--cx-accent);
    color: var(--mhb-text);
}

.mhb-art__endshare {
    align-items: center;
    border-block: 1px solid var(--mhb-border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 36px;
    padding-block: 18px;
}

.mhb-art__endshare > span {
    color: var(--mhb-text);
    font-weight: 600;
}

.mhb-art__bio {
    align-items: flex-start;
    background: var(--mhb-surface);
    border: 1px solid var(--mhb-border);
    border-radius: 20px;
    display: flex;
    gap: 18px;
    margin-top: 32px;
    padding: clamp(20px, 3vw, 28px);
}

.mhb-art__bio .mhb-art__avatar {
    flex: none;
}

.mhb-art__bio-kicker {
    color: var(--mhb-text-muted);
    font-family: var(--mhb-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mhb-art__bio h2 {
    color: var(--mhb-text);
    font-size: 1.3rem;
    margin: 4px 0 8px;
}

.mhb-art__bio h2::before {
    content: none !important;
}

.mhb-art__bio p {
    color: var(--mhb-text-muted);
    line-height: 1.6;
    margin: 0 0 10px;
}

.mhb-art__bio a {
    color: var(--cx-accent);
    font-weight: 700;
    text-decoration: none;
}

/* Closing panel: offer + newsletter */
.mhb-art__cta {
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.35), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(20, 184, 166, 0.3), transparent 50%),
        #07130d;
    border-radius: 28px;
    color: #fff;
    display: grid;
    gap: clamp(24px, 4vw, 48px);
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    margin-bottom: clamp(48px, 7vw, 80px);
    padding: clamp(28px, 5vw, 56px);
}

.mhb-art__cta-kicker {
    color: #4ade80;
    font-family: var(--mhb-font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mhb-art__cta h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 10px 0 12px;
}

.mhb-art__cta p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 46ch;
}

.mhb-art__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mhb-art__cta .mhb-cx-btn:not(.is-primary) {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.mhb-art__cta .mhb-cx-btn:not(.is-primary):hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4ade80;
    color: #fff;
}

.mhb-art__cta-news {
    align-self: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 22px;
}

.mhb-art__cta-news > strong {
    color: #fff;
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.mhb-art__cta-news .mhb-newsletter {
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
}

.mhb-art__cta-news .mhb-newsletter__label,
.mhb-art__cta-news .mhb-newsletter__note {
    color: rgba(255, 255, 255, 0.7);
}

.mhb-art__cta-news .mhb-newsletter input[type="email"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mhb-art__cta-news .mhb-newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 860px) {
    .mhb-art__cta {
        grid-template-columns: 1fr;
    }

    .mhb-art__byline {
        align-items: flex-start;
        flex-direction: column;
    }

    .mhb-art__bio {
        flex-direction: column;
    }

    .mhb-art__cta-actions .mhb-cx-btn {
        flex: 1 1 auto;
    }
}

/* Closing panel is always dark: beat older page/article text rules. */
.mhb-single-post-page .mhb-art__cta h2,
.mhb-single-post-page .mhb-art__cta-news > strong {
    color: #fff !important;
}

.mhb-single-post-page .mhb-art__cta p {
    color: rgba(255, 255, 255, 0.75) !important;
}

.mhb-art__cta > div {
    min-width: 0;
}

.mhb-art__cta-news .mhb-newsletter__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mhb-art__cta-news .mhb-newsletter__row input[type="email"] {
    flex: 1 1 180px;
    min-width: 0;
}

.mhb-art__cta-news .mhb-newsletter__label {
    color: rgba(255, 255, 255, 0.75) !important;
    display: block;
    font-size: 0.92rem;
    margin-bottom: 10px;
}
