/*
 * Blog overview (Blog/Index), blog articles (Blog/BlogDetail) and blog search (Blog/Search) content area.
 * The theme stylesheet is purged, so these components carry their own styles instead of
 * relying on utility classes that may not exist in the build. Header and footer are untouched.
 * Colours match the homepage and Help Center and are redefined under html.uc-dark.
 */

.bl {
    --bl-bg: #FBF8F4;
    --bl-surface: #FFFFFF;
    --bl-hover: #F4EFE8;
    --bl-border: #EFE9E1;
    --bl-border-strong: #E2DBCF;
    --bl-rule: #E8E2D8;
    --bl-text: #14201C;
    --bl-text-body: #2B2722;
    --bl-text-2: #4A4640;
    --bl-text-3: #5B5650;
    --bl-dot: #C9C1B4;
    --bl-accent: #0E5A49;
    --bl-accent-hover: #0A4537;
    --bl-accent-ink: #0E5A49;
    --bl-accent-soft: #E3EFEA;
    --bl-on-accent: #FFFFFF;
    --bl-deep: #0B3B31;
    --bl-chip-on-bg: #14201C;
    --bl-chip-on-fg: #FFFFFF;
    --bl-latest-bg: #FBEFC8;
    --bl-latest-fg: #6E5210;
    --bl-quote: #0B3B31;
    --bl-code-bg: #F4EFE8;
    --bl-shadow-card: 0 26px 44px -28px rgba(11, 59, 49, .4);
    --bl-shadow-hero: 0 40px 80px -50px rgba(11, 59, 49, .6);

    background: var(--bl-bg);
    color: var(--bl-text);
    /* clip, not hidden: hidden would make this a scroll container and break the sticky contents */
    overflow-x: clip;
}

.uc-dark .bl {
    --bl-bg: #101513;
    --bl-surface: #171D1B;
    --bl-hover: #1E2624;
    --bl-border: #252D2A;
    --bl-border-strong: #313B37;
    --bl-rule: #252D2A;
    --bl-text: #EEF3F1;
    --bl-text-body: #D6DEDA;
    --bl-text-2: #B7C1BD;
    --bl-text-3: #9CA7A2;
    --bl-dot: #4A5551;
    --bl-accent: #17846A;
    --bl-accent-hover: #1C9A7C;
    --bl-accent-ink: #5FC4A6;
    --bl-accent-soft: #173029;
    --bl-chip-on-bg: #EEF3F1;
    --bl-chip-on-fg: #101513;
    --bl-latest-bg: #3A3016;
    --bl-latest-fg: #F0D58A;
    --bl-quote: #BFE3D6;
    --bl-code-bg: #1E2624;
    --bl-shadow-card: 0 26px 44px -28px rgba(0, 0, 0, .7);
    --bl-shadow-hero: 0 40px 80px -50px rgba(0, 0, 0, .8);
}

.bl *,
.bl *::before,
.bl *::after {
    box-sizing: border-box;
}

/* The theme forces `svg :not([fill="none"]) { fill: currentColor }`; restore normal inheritance. */
.bl svg :not([fill]) {
    fill: inherit;
}

.bl a {
    color: var(--bl-accent-ink);
}

.bl a:hover {
    color: var(--bl-accent-hover);
}

.uc-dark .bl a:hover {
    color: #8AD8BF;
}

.bl h1,
.bl h2,
.bl h3 {
    color: var(--bl-text);
    font-family: inherit;
}

.bl-container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 575px) {
    .bl-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.bl .bl-h2 {
    margin: 0;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.bl-link {
    font-weight: 600;
    padding: 6px 0;
    text-decoration: none;
    white-space: nowrap;
}

.bl-link:hover {
    text-decoration: underline;
}

/* Buttons */
.bl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--bl-accent);
    background: var(--bl-accent);
    color: var(--bl-on-accent) !important;
    padding: 13px 22px;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

.bl-btn:hover {
    background: var(--bl-accent-hover);
    border-color: var(--bl-accent-hover);
}

.bl-btn--ghost {
    background: var(--bl-surface);
    border-color: var(--bl-border-strong);
    color: var(--bl-text) !important;
}

.bl-btn--ghost:hover {
    background: var(--bl-surface);
    border-color: var(--bl-accent-ink);
}

.bl-btn--outline {
    background: var(--bl-surface);
    border-color: var(--bl-text);
    color: var(--bl-text) !important;
    border-radius: 999px;
    padding: 13px 26px;
}

.bl-btn--outline:hover {
    background: var(--bl-text);
    border-color: var(--bl-text);
    color: var(--bl-bg) !important;
}

.bl-btn[aria-busy="true"] {
    opacity: .7;
    pointer-events: none;
}

/* Images and text covers */
.bl-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bl-cover--text {
    position: absolute;
    inset: 0;
    background: var(--bl-deep);
    color: #FFFFFF;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow: hidden;
}

/* A link whose clickable area covers its whole card */
.bl-stretched {
    color: inherit !important;
    text-decoration: none;
}

.bl-stretched::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.bl-stretched:focus-visible {
    outline: none;
}

/* Team byline (the brand mark stands in for an author photo) */
.bl-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--bl-text-3);
    text-align: left;
}

.bl-byline strong {
    color: var(--bl-text);
    font-weight: 600;
}

.bl-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bl-accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.bl-avatar--md {
    width: 40px;
    height: 40px;
}

.bl-avatar--lg {
    width: 56px;
    height: 56px;
}

/* ------------------------------------------------------------------ */
/* Overview: masthead                                                  */
/* ------------------------------------------------------------------ */

.bl-masthead {
    /* The site navigation overlays the top of the page, so the masthead clears it. */
    padding-top: 120px;
    padding-bottom: 28px;
}

@media (min-width: 992px) {
    .bl-masthead {
        padding-top: 144px;
    }
}

.bl-masthead__row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 56px;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--bl-rule);
    padding-bottom: 36px;
}

.bl-masthead__intro {
    flex: 1 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bl-eyebrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--bl-accent-ink);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bl .bl-masthead__title {
    margin: 0;
    font-size: clamp(44px, 6vw, 80px);
    line-height: .98;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.bl-masthead__lead {
    margin: 0;
    font-size: 19px;
    line-height: 1.55;
    color: var(--bl-text-2);
    max-width: 560px;
}

.bl-search {
    flex: 0 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bl-search label {
    font-size: 14px;
    font-weight: 600;
    color: var(--bl-text);
}

.bl-search__field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border-strong);
    border-radius: 12px;
    padding: 0 6px 0 14px;
    color: var(--bl-text-3);
}

.bl-search__field:focus-within {
    border-color: var(--bl-accent-ink);
    box-shadow: 0 0 0 3px var(--bl-accent-soft);
}

.bl-search__field svg {
    flex: 0 0 auto;
}

.bl-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    font: inherit;
    font-size: 16px;
    padding: 13px 0;
    background: transparent;
    color: var(--bl-text);
}

.bl-search input::placeholder {
    color: var(--bl-text-3);
    opacity: 1;
}

.bl-search__submit {
    flex: 0 0 auto;
    border: 0;
    background: var(--bl-accent);
    color: var(--bl-on-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.bl-search__submit:hover {
    background: var(--bl-accent-hover);
}

.bl-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 22px;
}

.bl-chip {
    border: 1px solid var(--bl-border-strong);
    background: var(--bl-surface);
    color: var(--bl-text) !important;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.bl-chip:hover {
    border-color: var(--bl-text);
}

.bl-chip[aria-current="page"] {
    border-color: var(--bl-chip-on-bg);
    background: var(--bl-chip-on-bg);
    color: var(--bl-chip-on-fg) !important;
    font-weight: 600;
}

@media (max-width: 575px) {
    /* A scrollable row of topics on phones */
    .bl-topics {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        scrollbar-width: none;
    }

    .bl-topics::-webkit-scrollbar {
        display: none;
    }

    .bl-chip {
        white-space: nowrap;
    }
}

/* ------------------------------------------------------------------ */
/* Overview: featured post                                             */
/* ------------------------------------------------------------------ */

.bl-featured-wrap {
    padding-top: 20px;
    padding-bottom: 56px;
}

.bl-featured {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: 28px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.bl-featured__media {
    flex: 1.35 1 520px;
    min-width: 0;
    min-height: 360px;
    position: relative;
    background: var(--bl-accent-soft);
}

.bl-featured__media .bl-cover {
    position: absolute;
    inset: 0;
}

.bl-featured__media .bl-cover--text {
    font-size: clamp(28px, 3vw, 40px);
    padding: 40px;
}

.bl-featured__body {
    flex: 1 1 380px;
    min-width: 0;
    padding: clamp(28px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.bl-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bl-badge {
    background: var(--bl-accent-soft);
    color: var(--bl-accent-ink);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
}

.bl-badge--latest {
    background: var(--bl-latest-bg);
    color: var(--bl-latest-fg);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bl .bl-featured__title {
    margin: 0;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.bl-featured__dek {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--bl-text-2);
}

.bl-featured .bl-byline {
    margin-top: 4px;
}

@media (max-width: 575px) {
    .bl-featured {
        border-radius: 20px;
    }

    .bl-featured__media {
        min-height: 220px;
    }
}

/* Hover lift for every post card */
.bl-featured:hover,
.bl-card:hover {
    transform: translateY(-3px);
}

.bl-featured:hover {
    box-shadow: var(--bl-shadow-card);
}

.bl-featured:hover .bl-featured__title a,
.bl-card:hover .bl-card__title a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.bl-featured:focus-within,
.bl-card:focus-within {
    outline: 2px solid var(--bl-accent-ink);
    outline-offset: 4px;
}

/* ------------------------------------------------------------------ */
/* Overview: grid                                                      */
/* ------------------------------------------------------------------ */

.bl-list {
    padding-bottom: 72px;
}

.bl-list__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.bl-list__count {
    font-size: 14px;
    color: var(--bl-text-3);
}

.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 36px 24px;
}

@media (max-width: 575px) {
    .bl-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.bl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 20px;
    transition: transform .18s ease;
}

.bl-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: var(--bl-accent-soft);
    transition: box-shadow .18s ease;
}

.bl-card:hover .bl-card__media {
    box-shadow: var(--bl-shadow-card);
}

.bl-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 4px;
}

.bl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
    font-size: 13px;
    color: var(--bl-text-3);
}

.bl-meta__topic {
    color: var(--bl-accent-ink);
    font-weight: 600;
}

.bl-meta__dot {
    color: var(--bl-dot);
}

.bl .bl-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 700;
}

.bl-card__dek {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--bl-text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bl-empty {
    text-align: center;
    padding: 56px 24px;
    background: var(--bl-surface);
    border: 1px dashed var(--bl-border-strong);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.bl-empty strong {
    font-size: 18px;
}

.bl-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 48px;
}

.bl-more__status {
    font-size: 13px;
    color: var(--bl-text-3);
}

/* ------------------------------------------------------------------ */
/* Call to action (both pages)                                         */
/* ------------------------------------------------------------------ */

.bl-cta {
    padding-bottom: 96px;
}

.bl-cta__row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--bl-rule);
    padding-top: 48px;
}

.bl-cta__text {
    flex: 1 1 480px;
    min-width: 0;
}

.bl-cta__text .bl-h2 {
    margin-bottom: 8px;
}

.bl-cta__text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--bl-text-2);
}

.bl-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ------------------------------------------------------------------ */
/* Article: header                                                     */
/* ------------------------------------------------------------------ */

.bl-post-head {
    max-width: 900px;
    padding-top: 120px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

@media (min-width: 992px) {
    .bl-post-head {
        padding-top: 136px;
    }
}

.bl-breadcrumb {
    font-size: 14px;
    color: var(--bl-text-3);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.bl-breadcrumb a {
    color: var(--bl-text-3) !important;
    text-decoration: none;
}

.bl-breadcrumb a:hover {
    text-decoration: underline;
}

.bl-breadcrumb .bl-breadcrumb__topic {
    color: var(--bl-accent-ink) !important;
    font-weight: 600;
}

.bl .bl-post-head__title {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.bl-post-head__dek {
    margin: 0;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.5;
    color: var(--bl-text-2);
    max-width: 680px;
}

.bl-post-head__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 28px;
    margin-top: 8px;
}

.bl-shares {
    display: flex;
    gap: 8px;
}

.bl-share {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bl-border-strong);
    background: var(--bl-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bl-text) !important;
    padding: 0;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.bl-share:hover {
    border-color: var(--bl-accent-ink);
    color: var(--bl-accent-ink) !important;
}

.bl-share.is-copied {
    border-color: var(--bl-accent);
    background: var(--bl-accent);
    color: var(--bl-on-accent) !important;
}

/* Hero image */
.bl-hero {
    margin-top: 0;
    margin-bottom: 0;
}

.bl-hero__frame {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    background: var(--bl-accent-soft);
    box-shadow: var(--bl-shadow-hero);
}

@media (max-width: 575px) {
    .bl-hero__frame {
        border-radius: 18px;
        aspect-ratio: 16 / 10;
    }
}

/* ------------------------------------------------------------------ */
/* Article: body                                                       */
/* ------------------------------------------------------------------ */

.bl-post-layout {
    padding-top: 64px;
    padding-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}

.bl-post-layout--single {
    justify-content: center;
}

@media (max-width: 575px) {
    .bl-post-layout {
        padding-top: 40px;
    }
}

.bl-toc-wrap {
    flex: 1 1 240px;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 992px) {
    .bl-toc-wrap {
        position: sticky;
        top: 96px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

.bl-toc {
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: 18px;
    padding: 20px;
}

.bl-toc__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bl-text-3);
    list-style: none;
}

.bl-toc__label::-webkit-details-marker {
    display: none;
}

.bl-toc[open] .bl-toc__label {
    margin-bottom: 12px;
}

@media (min-width: 992px) {
    /* Always open beside the article */
    .bl-toc__label {
        pointer-events: none;
    }
}

@media (max-width: 991px) {
    /* A fold-out on smaller screens */
    .bl-toc__label {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bl-toc__label::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .15s ease;
    }

    .bl-toc[open] .bl-toc__label::after {
        transform: rotate(-135deg);
    }
}

.bl-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    line-height: 1.4;
}

.bl-toc a {
    display: block;
    text-decoration: none;
    color: var(--bl-text-2) !important;
    padding: 7px 10px;
    border-left: 2px solid var(--bl-border);
}

.bl-toc a:hover {
    color: var(--bl-text) !important;
}

.bl-toc a.is-active {
    color: var(--bl-accent-ink) !important;
    font-weight: 600;
    border-left-color: var(--bl-accent-ink);
}

.bl-post {
    flex: 999 1 640px;
    min-width: 0;
    max-width: 720px;
}

@media (max-width: 991px) {
    /* Contents above the article, not in a column beside it */
    .bl-toc-wrap {
        flex-basis: 100%;
    }

    .bl-post {
        max-width: none;
    }
}

/* Article content from the editor */
.bl-prose {
    font-size: 19px;
    line-height: 1.75;
    color: var(--bl-text-body);
    overflow-wrap: break-word;
}

@media (max-width: 575px) {
    .bl-prose {
        font-size: 17px;
    }
}

.bl-prose > :first-child {
    margin-top: 0;
}

.bl-prose p {
    margin: 0 0 22px;
}

/* The opening paragraph reads as a lead */
.bl-prose > p:first-of-type {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--bl-text);
}

.bl-prose h2 {
    font-size: clamp(26px, 2.4vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin: 56px 0 18px;
    scroll-margin-top: 110px;
}

.bl-prose h3 {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.015em;
    font-weight: 700;
    margin: 40px 0 14px;
    scroll-margin-top: 110px;
}

.bl-prose h4 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--bl-text);
    margin: 32px 0 10px;
}

.bl-prose strong,
.bl-prose b {
    color: var(--bl-text);
}

.bl-prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bl-prose ul,
.bl-prose ol {
    margin: 0 0 24px;
    padding-left: 1.4em;
}

.bl-prose li {
    margin-bottom: 8px;
}

.bl-prose li::marker {
    color: var(--bl-accent-ink);
}

.bl-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.bl-prose figure {
    margin: 32px 0;
}

.bl-prose figcaption {
    font-size: 14px;
    color: var(--bl-text-3);
    margin-top: 8px;
    text-align: center;
}

.bl-prose blockquote {
    margin: 40px 0;
    padding: 4px 0 4px 28px;
    border-left: 4px solid var(--bl-accent-ink);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--bl-quote);
}

.bl-prose blockquote p {
    margin: 0;
}

.bl-prose hr {
    border: 0;
    border-top: 1px solid var(--bl-rule);
    margin: 40px 0;
}

.bl-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.5;
    display: block;
    overflow-x: auto;
}

.bl-prose th,
.bl-prose td {
    border: 1px solid var(--bl-border-strong);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.bl-prose th {
    background: var(--bl-hover);
    color: var(--bl-text);
}

.bl-prose code {
    background: var(--bl-code-bg);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: .88em;
}

.bl-prose pre {
    background: var(--bl-code-bg);
    border-radius: 12px;
    padding: 16px 18px;
    overflow-x: auto;
    font-size: 15px;
    line-height: 1.6;
}

.bl-prose pre code {
    background: none;
    padding: 0;
}

.bl-prose iframe,
.bl-prose video {
    max-width: 100%;
    border: 0;
    border-radius: 16px;
}

/* Editors sometimes paste fixed colours; keep the text readable in dark mode */
.uc-dark .bl-prose [style*="color"] {
    color: inherit !important;
}

.uc-dark .bl-prose [style*="background"] {
    background: transparent !important;
}

.bl-tags {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bl-tags li {
    font-size: 13px;
    color: var(--bl-text-3);
    border: 1px solid var(--bl-border-strong);
    padding: 4px 12px;
    border-radius: 999px;
}

.bl-author {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    border-top: 1px solid var(--bl-rule);
    border-bottom: 1px solid var(--bl-rule);
    padding: 24px 0;
    margin-top: 40px;
}

.bl-author__text {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bl-author__text strong {
    font-size: 17px;
}

.bl-author__text span {
    font-size: 15px;
    color: var(--bl-text-2);
}

/* Related */
.bl-related {
    padding-top: 40px;
    padding-bottom: 72px;
}

.bl-grid--related {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 575px) {
    .bl-grid--related {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bl *,
    .bl *::before,
    .bl *::after {
        animation: none !important;
        transition: none !important;
    }

    .bl-featured:hover,
    .bl-card:hover {
        transform: none;
    }
}

/* ------------------------------------------------------------------ */
/* Search results (Blog/Search)                                        */
/* ------------------------------------------------------------------ */

.bl .bl-masthead__title--search {
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.04;
}

.bl-breadcrumb--start {
    justify-content: flex-start;
}

/* The search highlighter emits theme utility classes; restyle the marks as a soft tint. */
.bl mark,
.bl mark[class] {
    background: var(--bl-accent-soft) !important;
    color: var(--bl-accent-ink) !important;
    font-weight: 600;
    padding: 0 .12em;
    border-radius: 4px;
}

.bl-topics__label {
    align-self: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--bl-text-3);
    margin-right: 4px;
    white-space: nowrap;
}

.bl-chip__count {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bl-text-3);
}

.bl-results-wrap {
    padding-top: 36px;
}

.bl-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bl-result {
    position: relative;
    display: flex;
    gap: 24px;
    align-items: stretch;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: 20px;
    padding: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bl-result:hover {
    transform: translateY(-2px);
    box-shadow: var(--bl-shadow-card);
    border-color: var(--bl-border-strong);
}

.bl-result:hover .bl-result__title a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.bl-result:focus-within {
    outline: 2px solid var(--bl-accent-ink);
    outline-offset: 4px;
}

.bl-result__media {
    flex: 0 0 220px;
    aspect-ratio: 16 / 10;
    align-self: flex-start;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: var(--bl-accent-soft);
}

.bl-result__media .bl-cover--text {
    font-size: 15px;
    padding: 14px;
}

.bl-result__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 4px 4px 0;
}

.bl .bl-result__title {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.015em;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.bl-result__dek {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--bl-text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bl-result__tags {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bl-result__tags li {
    font-size: 12px;
    color: var(--bl-text-3);
    border: 1px solid var(--bl-border-strong);
    padding: 3px 10px;
    border-radius: 999px;
}

/* Which ranking found the post */
.bl-meta .bl-badge {
    font-size: 12px;
    padding: 3px 9px;
}

.bl-badge--hybrid {
    background: var(--bl-latest-bg);
    color: var(--bl-latest-fg);
}

.bl-badge--semantic {
    background: var(--bl-hover);
    color: var(--bl-text-2);
}

.bl-empty__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bl-accent-soft);
    color: var(--bl-accent-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl-empty__text {
    margin: 0;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--bl-text-2);
    overflow-wrap: anywhere;
}

/* Pagination */
.bl-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
}

.bl-pager a,
.bl-pager span {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.bl-pager a {
    border: 1px solid var(--bl-border-strong);
    background: var(--bl-surface);
    color: var(--bl-text) !important;
}

.bl-pager a:hover {
    border-color: var(--bl-text);
}

.bl-pager .bl-pager__current {
    background: var(--bl-chip-on-bg);
    color: var(--bl-chip-on-fg);
    border: 1px solid var(--bl-chip-on-bg);
}

.bl-pager .bl-pager__gap {
    min-width: 0;
    padding: 0 4px;
    color: var(--bl-text-3);
}

.bl-pager span[aria-disabled="true"] {
    border: 1px solid var(--bl-border);
    color: var(--bl-dot);
}

[dir="rtl"] .bl-pager__step svg {
    transform: rotate(180deg);
}

@media (max-width: 575px) {
    .bl-result {
        flex-direction: column;
        gap: 14px;
        padding: 12px;
    }

    .bl-result__media {
        flex-basis: auto;
        width: 100%;
        aspect-ratio: 2 / 1;
    }

    .bl-result__body {
        padding: 0 4px 4px;
    }

    .bl-pager a,
    .bl-pager span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bl-result:hover {
        transform: none;
    }
}
