/* BH Content Hub — namespaced frontend styles. */
body.bhch-active .bhch-shell,
body.bhch-active .bhch-shell * {
    box-sizing: border-box;
}

body.bhch-active .bhch-shell {
    background: #f7f9fc;
    color: #101828;
    overflow: hidden;
}

body.bhch-active .bhch-wrap {
    width: min(calc(100% - 40px), var(--bhch-max));
    margin-inline: auto;
}

body.bhch-active .bhch-hero {
    position: relative;
    padding: clamp(56px, 7vw, 110px) 0 clamp(44px, 6vw, 90px);
    background:
        radial-gradient(circle at 86% 14%, rgba(11,102,255,.16), transparent 34%),
        radial-gradient(circle at 12% 86%, rgba(123,92,255,.13), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f3f7ff 58%, #eef4ff 100%);
}

body.bhch-active .bhch-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(16,24,40,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16,24,40,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 90%);
}

body.bhch-active .bhch-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
    gap: clamp(34px, 5vw, 74px);
    align-items: center;
}

body.bhch-active .bhch-kicker,
body.bhch-active .bhch-section-eyebrow,
body.bhch-active .bhch-side-label {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 800;
}

body.bhch-active .bhch-kicker,
body.bhch-active .bhch-kicker a {
    color: var(--bhch-accent);
    text-decoration: none;
}

body.bhch-active .bhch-title {
    margin: 16px 0 20px;
    font-size: clamp(42px, 5vw, 76px);
    line-height: .98;
    letter-spacing: -.045em;
    color: #0b1220;
    max-width: 14ch;
}

body.bhch-active .bhch-excerpt {
    max-width: 62ch;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.65;
    color: #475467;
}

body.bhch-active .bhch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 28px;
    color: #667085;
    font-size: 14px;
}

body.bhch-active .bhch-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body.bhch-active .bhch-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 12px;
    color: #98a2b3;
}

body.bhch-active .bhch-featured-media {
    position: relative;
}

body.bhch-active .bhch-featured-media::before {
    content: "";
    position: absolute;
    width: 76%;
    aspect-ratio: 1;
    right: -10%;
    top: -14%;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bhch-accent) 22%, transparent);
    filter: blur(40px);
    opacity: .7;
}

body.bhch-active .bhch-featured-media img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--bhch-radius);
    box-shadow: 0 30px 80px rgba(16,24,40,.18);
}

body.bhch-active .bhch-body-section {
    padding: clamp(50px, 7vw, 96px) 0;
}

body.bhch-active .bhch-reading-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}

body.bhch-active .bhch-content {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: var(--bhch-radius);
    padding: clamp(28px, 4vw, 56px);
    box-shadow: 0 16px 46px rgba(16,24,40,.06);
    font-size: 18px;
    line-height: 1.82;
}

body.bhch-active .bhch-content > :first-child { margin-top: 0; }
body.bhch-active .bhch-content > :last-child { margin-bottom: 0; }
body.bhch-active .bhch-content h2,
body.bhch-active .bhch-content h3,
body.bhch-active .bhch-content h4 {
    color: #101828;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-top: 1.8em;
}
body.bhch-active .bhch-content h2 { font-size: clamp(30px, 3vw, 42px); }
body.bhch-active .bhch-content h3 { font-size: clamp(24px, 2.2vw, 32px); }
body.bhch-active .bhch-content a { color: var(--bhch-accent); }
body.bhch-active .bhch-content img { max-width: 100%; height: auto; border-radius: calc(var(--bhch-radius) * .65); }
body.bhch-active .bhch-content blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    background: #f6f8fb;
    border-left: 4px solid var(--bhch-accent);
    border-radius: 0 calc(var(--bhch-radius) * .55) calc(var(--bhch-radius) * .55) 0;
}

body.bhch-active .bhch-side-card {
    position: sticky;
    top: 110px;
}

body.bhch-active .bhch-side-inner {
    background: #101828;
    color: #fff;
    padding: 26px;
    border-radius: var(--bhch-radius);
    box-shadow: 0 16px 46px rgba(16,24,40,.13);
}
body.bhch-active .bhch-side-label { color: #a9c6ff; margin-bottom: 12px; }
body.bhch-active .bhch-side-title { font-weight: 800; line-height: 1.35; font-size: 18px; }
body.bhch-active .bhch-side-cats { margin-top: 18px; font-size: 13px; line-height: 1.5; }
body.bhch-active .bhch-side-cats a { color: #dbe7ff; text-decoration: none; }

body.bhch-active .bhch-related-section {
    padding: 0 0 clamp(64px, 8vw, 110px);
}
body.bhch-active .bhch-section-head { margin-bottom: 24px; }
body.bhch-active .bhch-section-eyebrow { color: var(--bhch-accent); margin-bottom: 8px; }
body.bhch-active .bhch-section-head h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -.035em;
    color: #101828;
}
body.bhch-active .bhch-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
body.bhch-active .bhch-card {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: var(--bhch-radius);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 32px rgba(16,24,40,.055);
    transition: transform .2s ease, box-shadow .2s ease;
}
body.bhch-active .bhch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(16,24,40,.10);
}
body.bhch-active .bhch-card-media img,
body.bhch-active .bhch-card-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
body.bhch-active .bhch-card-placeholder { background: linear-gradient(135deg, #e9efff, #f5f7fb); }
body.bhch-active .bhch-card-copy { padding: 22px; }
body.bhch-active .bhch-card-date { font-size: 12px; color: #667085; margin-bottom: 8px; }
body.bhch-active .bhch-card h3 { margin: 0; font-size: 21px; line-height: 1.28; color: #101828; }
body.bhch-active .bhch-card-cta { margin-top: 18px; color: var(--bhch-accent); font-weight: 700; }

@media (max-width: 980px) {
    body.bhch-active .bhch-hero-grid,
    body.bhch-active .bhch-reading-grid {
        grid-template-columns: 1fr;
    }
    body.bhch-active .bhch-title { max-width: none; }
    body.bhch-active .bhch-side-card { position: static; }
    body.bhch-active .bhch-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body.bhch-active .bhch-wrap { width: min(calc(100% - 24px), var(--bhch-max)); }
    body.bhch-active .bhch-card-grid { grid-template-columns: 1fr; }
    body.bhch-active .bhch-content { font-size: 17px; }
    body.bhch-active .bhch-meta span:not(:last-child)::after { display: none; }
}

/* =========================================================
   BH Content Hub — Hub Pages
   ========================================================= */
body.bhch-hub-active .bhch-hub-shell {
    background: #f6f8fc;
}

body.bhch-hub-active .bhch-hub-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 118px) 0 clamp(58px, 7vw, 100px);
    background:
        radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--bhch-accent) 20%, transparent), transparent 28%),
        radial-gradient(circle at 8% 92%, rgba(114, 77, 255, .10), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f2f6ff 58%, #eef4ff 100%);
    border-bottom: 1px solid #e5eaf2;
}

body.bhch-hub-active .bhch-hub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .42;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(16, 24, 40, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 40, .04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 94%);
}

body.bhch-hub-active .bhch-hub-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
    gap: clamp(30px, 6vw, 90px);
    align-items: center;
}

body.bhch-hub-active .bhch-hub-eyebrow,
body.bhch-hub-active .bhch-toolbar-label,
body.bhch-hub-active .bhch-footer-strip-eyebrow {
    color: var(--bhch-accent);
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .16em;
    font-weight: 800;
    text-transform: uppercase;
}

body.bhch-hub-active .bhch-hub-title {
    margin: 14px 0 18px;
    max-width: 17ch;
    color: #0c1527;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(40px, 4.6vw, 68px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.038em;
    text-wrap: balance;
}

body.bhch-hub-active .bhch-hub-subtitle {
    max-width: 660px;
    margin: 0;
    color: #475467;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.65;
}

body.bhch-hub-active .bhch-hub-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    color: #667085;
    font-size: 14px;
}

body.bhch-hub-active .bhch-hub-stats strong {
    color: #101828;
}

body.bhch-hub-active .bhch-hub-orbit {
    position: relative;
    width: min(31vw, 390px);
    aspect-ratio: 1;
    justify-self: end;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 31%, rgba(255,255,255,.36) 32% 58%, transparent 59%);
}

body.bhch-hub-active .bhch-orbit-core {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 132px;
    height: 116px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    padding: 14px;
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(16,24,40,.16), 0 0 0 12px rgba(255,255,255,.78);
}

body.bhch-hub-active .bhch-orbit-core img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 88px;
    object-fit: contain;
}

body.bhch-hub-active .bhch-orbit-ring {
    position: absolute;
    inset: 11%;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--bhch-accent) 34%, #d8e2f5);
}

body.bhch-hub-active .bhch-orbit-ring-b {
    inset: 24%;
    border-style: dashed;
}

body.bhch-hub-active .bhch-orbit-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bhch-accent);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--bhch-accent) 15%, transparent);
}
body.bhch-hub-active .dot-1 { top: 14%; left: 50%; }
body.bhch-hub-active .dot-2 { right: 14%; bottom: 29%; }
body.bhch-hub-active .dot-3 { left: 15%; bottom: 26%; }

body.bhch-hub-active .bhch-hub-toolbar-section {
    padding: 32px 0 18px;
}

body.bhch-hub-active .bhch-hub-toolbar {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    border: 1px solid #e3e8f0;
    border-radius: calc(var(--bhch-radius) * .78);
    box-shadow: 0 12px 34px rgba(16,24,40,.05);
}

body.bhch-hub-active .bhch-toolbar-title {
    margin-top: 4px;
    color: #101828;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
}

body.bhch-hub-active .bhch-hub-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 520px);
}

body.bhch-hub-active .bhch-hub-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    padding: 0 15px;
    background: #fff;
    color: #101828;
    font-size: 15px;
    outline: none;
}

body.bhch-hub-active .bhch-hub-search input[type="search"]:focus {
    border-color: var(--bhch-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bhch-accent) 13%, transparent);
}

body.bhch-hub-active .bhch-hub-search button,
body.bhch-hub-active .bhch-clear-search {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0 18px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

body.bhch-hub-active .bhch-hub-search button {
    border: 1px solid var(--bhch-accent);
    background: var(--bhch-accent);
    color: #fff;
}

body.bhch-hub-active .bhch-clear-search {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
}

body.bhch-hub-active .bhch-featured-story-section {
    padding: 18px 0 30px;
}

body.bhch-hub-active .bhch-featured-story {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    align-items: stretch;
    overflow: hidden;
    background: #101828;
    border-radius: var(--bhch-radius);
    text-decoration: none;
    box-shadow: 0 26px 68px rgba(16,24,40,.16);
    transition: transform .22s ease, box-shadow .22s ease;
}

body.bhch-hub-active .bhch-featured-story:hover {
    transform: translateY(-3px);
    box-shadow: 0 34px 84px rgba(16,24,40,.21);
}

body.bhch-hub-active .bhch-featured-story-media {
    min-width: 0;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef3fa;
}

body.bhch-hub-active .bhch-featured-story-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    background: #eef3fa;
}

body.bhch-hub-active .bhch-featured-story-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
}

body.bhch-hub-active .bhch-featured-story-placeholder,
body.bhch-hub-active .bhch-hub-card-placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 75% 25%, color-mix(in srgb, var(--bhch-accent) 52%, transparent), transparent 30%),
        linear-gradient(135deg, #1d2939, #0b1220);
}

body.bhch-hub-active .bhch-featured-story-placeholder span,
body.bhch-hub-active .bhch-hub-card-placeholder span {
    color: rgba(255,255,255,.88);
    font-size: 52px;
    font-weight: 900;
}

body.bhch-hub-active .bhch-featured-story-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 64px);
    color: #fff;
}

body.bhch-hub-active .bhch-featured-badge {
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 7px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bhch-accent) 22%, transparent);
    color: #dbeafe;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .13em;
    font-weight: 900;
}

body.bhch-hub-active .bhch-featured-meta {
    color: #98a2b3;
    font-size: 13px;
}

body.bhch-hub-active .bhch-featured-story h2 {
    margin: 12px 0 16px;
    color: #fff;
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

body.bhch-hub-active .bhch-featured-story p {
    margin: 0;
    color: #d0d5dd;
    font-size: 16px;
    line-height: 1.7;
}

body.bhch-hub-active .bhch-featured-cta {
    margin-top: 28px;
    color: #fff;
    font-weight: 800;
}

body.bhch-hub-active .bhch-hub-grid-section {
    padding: 8px 0 clamp(70px, 8vw, 110px);
}

body.bhch-hub-active .bhch-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

body.bhch-hub-active .bhch-hub-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: var(--bhch-radius);
    box-shadow: 0 12px 34px rgba(16,24,40,.055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.bhch-hub-active .bhch-hub-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--bhch-accent) 28%, #e3e8ef);
    box-shadow: 0 20px 48px rgba(16,24,40,.10);
}

body.bhch-hub-active .bhch-hub-card-media {
    display: block;
    overflow: hidden;
    background: #eef2f8;
}

body.bhch-hub-active .bhch-hub-card-media img,
body.bhch-hub-active .bhch-hub-card-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .35s ease;
}

body.bhch-hub-active .bhch-hub-card:hover .bhch-hub-card-media img {
    transform: scale(1.025);
}

body.bhch-hub-active .bhch-hub-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

body.bhch-hub-active .bhch-hub-card-meta {
    color: #667085;
    font-size: 12px;
}

body.bhch-hub-active .bhch-hub-card-meta span {
    margin: 0 4px;
    color: #98a2b3;
}

body.bhch-hub-active .bhch-hub-card h2 {
    margin: 10px 0 12px;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.2;
    letter-spacing: -.03em;
}

body.bhch-hub-active .bhch-hub-card h2 a {
    color: #101828;
    text-decoration: none;
}

body.bhch-hub-active .bhch-hub-card p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.65;
}

body.bhch-hub-active .bhch-hub-card-cta {
    margin-top: auto;
    padding-top: 20px;
    color: var(--bhch-accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

body.bhch-hub-active .bhch-pagination {
    margin-top: 40px;
}

body.bhch-hub-active .bhch-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.bhch-hub-active .bhch-pagination a,
body.bhch-hub-active .bhch-pagination span {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    background: #fff;
    color: #344054;
    text-decoration: none;
    font-weight: 700;
}

body.bhch-hub-active .bhch-pagination .current {
    border-color: var(--bhch-accent);
    background: var(--bhch-accent);
    color: #fff;
}

body.bhch-hub-active .bhch-empty-section {
    padding: 30px 0 90px;
}

body.bhch-hub-active .bhch-empty-card {
    padding: 70px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: var(--bhch-radius);
}

body.bhch-hub-active .bhch-empty-mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: #101828;
    color: #fff;
    font-weight: 900;
}

body.bhch-hub-active .bhch-empty-card h2 {
    margin: 0 0 8px;
    color: #101828;
}

body.bhch-hub-active .bhch-empty-card p {
    color: #667085;
}

body.bhch-hub-active .bhch-empty-card a {
    color: var(--bhch-accent);
    font-weight: 800;
}

@media (max-width: 980px) {
    body.bhch-hub-active .bhch-hub-hero-inner {
        grid-template-columns: 1fr;
    }
    body.bhch-hub-active .bhch-hub-orbit {
        width: min(78vw, 360px);
        justify-self: start;
    }
    body.bhch-hub-active .bhch-hub-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    body.bhch-hub-active .bhch-hub-search {
        width: 100%;
    }
    body.bhch-hub-active .bhch-featured-story {
        grid-template-columns: 1fr;
    }
    body.bhch-hub-active .bhch-featured-story-media,
    body.bhch-hub-active .bhch-featured-story-media img,
    body.bhch-hub-active .bhch-featured-story-placeholder {
        min-height: 360px;
    }
    body.bhch-hub-active .bhch-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.bhch-hub-active .bhch-hub-title {
        max-width: none;
    }
    body.bhch-hub-active .bhch-hub-orbit {
        display: none;
    }
    body.bhch-hub-active .bhch-hub-search {
        align-items: stretch;
        flex-direction: column;
    }
    body.bhch-hub-active .bhch-hub-search button,
    body.bhch-hub-active .bhch-clear-search {
        width: 100%;
    }
    body.bhch-hub-active .bhch-featured-story-media,
    body.bhch-hub-active .bhch-featured-story-media img,
    body.bhch-hub-active .bhch-featured-story-placeholder {
        min-height: 250px;
    }
    body.bhch-hub-active .bhch-hub-grid {
        grid-template-columns: 1fr;
    }
    body.bhch-hub-active .bhch-hub-card-copy {
        padding: 20px;
    }
}

/* v1.1.2: never crop the Featured story artwork. */
@media (max-width: 820px) {
    body.bhch-hub-active .bhch-featured-story-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    body.bhch-hub-active .bhch-featured-story-media img {
        height: 100%;
        object-fit: contain;
    }
}


/* v1.1.4 — Featured story: full 16:9 artwork with no letterbox space.
 * Built from the stable v1.1.2 baseline. On desktop the artwork defines the
 * card height, while the copy is compacted to fit beside it. */
@media (min-width: 821px) {
    body.bhch-hub-active .bhch-featured-story {
        grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
        align-items: stretch;
    }

    body.bhch-hub-active .bhch-featured-story-media {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
        align-self: stretch;
        background: transparent;
    }

    body.bhch-hub-active .bhch-featured-story-media img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        object-fit: cover;
        object-position: center center;
        background: transparent;
    }

    body.bhch-hub-active .bhch-featured-story-copy {
        min-width: 0;
        padding: clamp(24px, 2.75vw, 40px);
        justify-content: center;
    }

    body.bhch-hub-active .bhch-featured-badge {
        margin-bottom: 12px;
        padding: 6px 9px;
        font-size: 10px;
    }

    body.bhch-hub-active .bhch-featured-meta {
        font-size: 12px;
    }

    body.bhch-hub-active .bhch-featured-story h2 {
        margin: 9px 0 12px;
        font-size: clamp(27px, 2.45vw, 39px);
        line-height: 1.06;
        letter-spacing: -.035em;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    body.bhch-hub-active .bhch-featured-story p {
        font-size: 14px;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    body.bhch-hub-active .bhch-featured-cta {
        margin-top: 17px;
        font-size: 14px;
    }
}

/* Keep the mobile/tablet featured artwork edge-to-edge and uncropped for the
 * normal 16:9 Billion Hopes featured-image format. */
@media (max-width: 820px) {
    body.bhch-hub-active .bhch-featured-story-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
        background: transparent;
    }
    body.bhch-hub-active .bhch-featured-story-media img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        object-fit: cover;
        object-position: center center;
        background: transparent;
    }
}

/* =========================================================
   v1.1.12 — compact four-blog hero + Hub controls
   Baseline: v1.1.10. All unrelated card/header/footer styles untouched.
   ========================================================= */

/* Compact hero: approximately 40% shorter than the v1.1.10 Hub hero. */
body.bhch-hub-active .bhch-hub-hero {
    padding: clamp(28px, 3.3vw, 46px) 0 clamp(26px, 3vw, 42px);
}

body.bhch-hub-active .bhch-hub-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr);
    gap: clamp(28px, 4.5vw, 66px);
}

body.bhch-hub-active .bhch-hub-title {
    margin: 8px 0 10px;
    max-width: 24ch;
    font-size: clamp(34px, 3.8vw, 56px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

body.bhch-hub-active .bhch-hub-subtitle {
    max-width: 760px;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.5;
}

body.bhch-hub-active .bhch-hub-stats {
    margin-top: 16px;
}

body.bhch-hub-active .bhch-hub-orbit {
    width: min(22vw, 250px);
}

body.bhch-hub-active .bhch-hub-orbit .bhch-orbit-dot {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--bhch-accent) 13%, transparent);
}

/* Gentle pastel abstract identities — one per blog family. */
body.bhch-hub-active .bhch-hub-theme-ai-knowledge-centre {
    background:
        radial-gradient(ellipse at 77% 22%, rgba(176, 213, 255, .55), transparent 34%),
        radial-gradient(ellipse at 16% 88%, rgba(217, 201, 255, .36), transparent 31%),
        radial-gradient(ellipse at 46% 5%, rgba(226, 245, 255, .55), transparent 29%),
        linear-gradient(135deg, #fbfdff 0%, #f2f7ff 52%, #edf4ff 100%);
}

body.bhch-hub-active .bhch-hub-theme-natural-intelligence-by-mentor-sandy {
    background:
        radial-gradient(ellipse at 80% 22%, rgba(205, 231, 219, .58), transparent 34%),
        radial-gradient(ellipse at 12% 88%, rgba(244, 224, 197, .42), transparent 31%),
        radial-gradient(ellipse at 48% 8%, rgba(225, 216, 245, .32), transparent 27%),
        linear-gradient(135deg, #fffdf9 0%, #f5faf7 54%, #f2f6fb 100%);
}

body.bhch-hub-active .bhch-hub-theme-ai-updates-tools-models-launches {
    background:
        radial-gradient(ellipse at 80% 18%, rgba(181, 226, 248, .62), transparent 34%),
        radial-gradient(ellipse at 10% 88%, rgba(203, 213, 255, .40), transparent 31%),
        radial-gradient(ellipse at 48% 4%, rgba(208, 245, 242, .40), transparent 28%),
        linear-gradient(135deg, #fbfeff 0%, #eff8fb 52%, #eef3ff 100%);
}

body.bhch-hub-active .bhch-hub-theme-ai-career-centre {
    background:
        radial-gradient(ellipse at 79% 20%, rgba(196, 236, 224, .58), transparent 34%),
        radial-gradient(ellipse at 13% 88%, rgba(255, 221, 205, .38), transparent 31%),
        radial-gradient(ellipse at 48% 6%, rgba(203, 226, 255, .38), transparent 28%),
        linear-gradient(135deg, #fcfffd 0%, #f2faf7 52%, #f4f7ff 100%);
}

body.bhch-hub-active .bhch-hub-hero::after {
    content: "";
    position: absolute;
    right: 7%;
    bottom: -42%;
    width: 38%;
    aspect-ratio: 1.65;
    border-radius: 50%;
    background: linear-gradient(125deg, rgba(255,255,255,.52), rgba(255,255,255,0));
    filter: blur(28px);
    opacity: .72;
    pointer-events: none;
}

/* Toolbar order: search / sort / View All / topic / day-night icon. */
body.bhch-hub-active .bhch-hub-toolbar {
    gap: 18px;
}

body.bhch-hub-active .bhch-toolbar-heading {
    flex: 0 0 auto;
}

body.bhch-hub-active .bhch-hub-controls {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

body.bhch-hub-active .bhch-hub-controls form {
    margin: 0;
}

body.bhch-hub-active .bhch-hub-search {
    width: min(100%, 360px);
    flex: 1 1 300px;
}

body.bhch-hub-active .bhch-control-form {
    flex: 0 0 auto;
}

body.bhch-hub-active .bhch-control-select,
body.bhch-hub-active .bhch-view-all-button,
body.bhch-hub-active .bhch-theme-toggle {
    height: 48px;
    min-height: 48px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #fff;
    color: #344054;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    outline: none;
    box-shadow: 0 4px 14px rgba(16,24,40,.035);
}

body.bhch-hub-active .bhch-control-select {
    min-width: 132px;
    padding: 0 34px 0 13px;
    cursor: pointer;
}

body.bhch-hub-active .bhch-topic-select {
    min-width: 164px;
    max-width: 220px;
}

body.bhch-hub-active .bhch-control-select:focus {
    border-color: var(--bhch-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bhch-accent) 13%, transparent);
}

body.bhch-hub-active .bhch-view-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-decoration: none;
    white-space: nowrap;
    color: var(--bhch-accent);
    border-color: color-mix(in srgb, var(--bhch-accent) 34%, #d0d5dd);
}

body.bhch-hub-active .bhch-view-all-button:hover,
body.bhch-hub-active .bhch-view-all-button.is-active {
    background: color-mix(in srgb, var(--bhch-accent) 8%, #fff);
    border-color: var(--bhch-accent);
}

body.bhch-hub-active .bhch-theme-toggle {
    width: 48px;
    min-width: 48px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

body.bhch-hub-active .bhch-theme-icon {
    display: inline-grid;
    place-items: center;
}

body.bhch-hub-active .bhch-theme-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.bhch-hub-active .bhch-theme-icon-sun {
    display: none;
}

/* Night viewing affects only the BH Content Hub surface; site chrome is unchanged. */
body.bhch-hub-active.bhch-night-mode .bhch-hub-shell {
    background: #0b1220;
    color: #e9eef8;
}

body.bhch-hub-active.bhch-night-mode .bhch-hub-hero,
body.bhch-hub-active.bhch-night-mode .bhch-hub-theme-ai-knowledge-centre,
body.bhch-hub-active.bhch-night-mode .bhch-hub-theme-natural-intelligence-by-mentor-sandy,
body.bhch-hub-active.bhch-night-mode .bhch-hub-theme-ai-updates-tools-models-launches,
body.bhch-hub-active.bhch-night-mode .bhch-hub-theme-ai-career-centre {
    background:
        radial-gradient(ellipse at 78% 20%, rgba(40, 106, 170, .30), transparent 36%),
        radial-gradient(ellipse at 12% 90%, rgba(89, 69, 154, .22), transparent 32%),
        linear-gradient(135deg, #0d1727 0%, #101b2d 56%, #111827 100%);
    border-bottom-color: #263348;
}

body.bhch-hub-active.bhch-night-mode .bhch-hub-title,
body.bhch-hub-active.bhch-night-mode .bhch-toolbar-title,
body.bhch-hub-active.bhch-night-mode .bhch-hub-card h2 a,
body.bhch-hub-active.bhch-night-mode .bhch-empty-card h2,
body.bhch-hub-active.bhch-night-mode .bhch-hub-stats strong {
    color: #f5f7fb;
}

body.bhch-hub-active.bhch-night-mode .bhch-hub-subtitle,
body.bhch-hub-active.bhch-night-mode .bhch-hub-stats,
body.bhch-hub-active.bhch-night-mode .bhch-hub-card p,
body.bhch-hub-active.bhch-night-mode .bhch-hub-card-meta,
body.bhch-hub-active.bhch-night-mode .bhch-empty-card p {
    color: #aab6c8;
}

body.bhch-hub-active.bhch-night-mode .bhch-hub-toolbar,
body.bhch-hub-active.bhch-night-mode .bhch-hub-card,
body.bhch-hub-active.bhch-night-mode .bhch-empty-card {
    background: #121d2f;
    border-color: #263348;
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
}

body.bhch-hub-active.bhch-night-mode .bhch-hub-search input[type="search"],
body.bhch-hub-active.bhch-night-mode .bhch-control-select,
body.bhch-hub-active.bhch-night-mode .bhch-view-all-button,
body.bhch-hub-active.bhch-night-mode .bhch-theme-toggle,
body.bhch-hub-active.bhch-night-mode .bhch-clear-search,
body.bhch-hub-active.bhch-night-mode .bhch-pagination a,
body.bhch-hub-active.bhch-night-mode .bhch-pagination span {
    background: #0e1828;
    border-color: #334155;
    color: #d8e1ee;
}

body.bhch-hub-active.bhch-night-mode .bhch-hub-search input[type="search"]::placeholder {
    color: #7f8ca1;
}

body.bhch-hub-active.bhch-night-mode .bhch-pagination .current {
    background: var(--bhch-accent);
    border-color: var(--bhch-accent);
    color: #fff;
}

body.bhch-hub-active.bhch-night-mode .bhch-theme-icon-moon {
    display: none;
}

body.bhch-hub-active.bhch-night-mode .bhch-theme-icon-sun {
    display: inline-grid;
}

@media (max-width: 1100px) {
    body.bhch-hub-active .bhch-hub-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    body.bhch-hub-active .bhch-hub-controls {
        width: 100%;
        justify-content: flex-start;
    }
    body.bhch-hub-active .bhch-hub-search {
        max-width: none;
    }
}

@media (max-width: 980px) {
    body.bhch-hub-active .bhch-hub-hero {
        padding: 34px 0 32px;
    }
    body.bhch-hub-active .bhch-hub-hero-inner {
        grid-template-columns: minmax(0, 1fr) 190px;
        gap: 24px;
    }
    body.bhch-hub-active .bhch-hub-orbit {
        width: 190px;
        justify-self: end;
    }
    body.bhch-hub-active .bhch-hub-title {
        font-size: clamp(34px, 6vw, 50px);
    }
}

@media (max-width: 720px) {
    body.bhch-hub-active .bhch-hub-hero-inner {
        grid-template-columns: 1fr;
    }
    body.bhch-hub-active .bhch-hub-orbit {
        display: none;
    }
    body.bhch-hub-active .bhch-hub-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    body.bhch-hub-active .bhch-hub-search {
        grid-column: 1 / -1;
        width: 100%;
    }
    body.bhch-hub-active .bhch-control-form,
    body.bhch-hub-active .bhch-control-select,
    body.bhch-hub-active .bhch-view-all-button {
        width: 100%;
    }
    body.bhch-hub-active .bhch-theme-toggle {
        justify-self: start;
    }
}


/* v1.1.13 — toolbar micro-adjustments only. */
body.bhch-hub-active .bhch-search-box {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16,24,40,.035);
}

body.bhch-hub-active .bhch-search-box input[type="search"] {
    height: 38px;
    border: 0;
    border-radius: 10px;
    padding: 0 11px;
    box-shadow: none;
    background: transparent;
}

body.bhch-hub-active .bhch-search-box input[type="search"]:focus {
    border: 0;
    box-shadow: none;
}

body.bhch-hub-active .bhch-search-box:focus-within {
    border-color: var(--bhch-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bhch-accent) 13%, transparent);
}

body.bhch-hub-active .bhch-search-box button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    height: 38px;
    border-radius: 10px;
    padding: 0 16px;
}

body.bhch-hub-active .bhch-view-all-active-wrap {
    position: relative;
    flex: 0 0 auto;
    height: 48px;
}

body.bhch-hub-active .bhch-view-all-active-wrap .bhch-view-all-button {
    height: 48px;
    padding-right: 23px;
}

body.bhch-hub-active .bhch-view-all-close {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 2;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--bhch-accent) 42%, #d0d5dd);
    border-radius: 50%;
    background: #fff;
    color: var(--bhch-accent);
    box-shadow: 0 3px 8px rgba(16,24,40,.12);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

body.bhch-hub-active .bhch-view-all-close:hover,
body.bhch-hub-active .bhch-view-all-close:focus-visible {
    background: var(--bhch-accent);
    color: #fff;
}

body.bhch-hub-active.bhch-night-mode .bhch-search-box,
body.bhch-hub-active.bhch-night-mode .bhch-view-all-close {
    background: #0e1828;
    border-color: #334155;
    color: #d8e1ee;
}

body.bhch-hub-active.bhch-night-mode .bhch-search-box input[type="search"] {
    background: transparent;
}

@media (max-width: 720px) {
    body.bhch-hub-active .bhch-view-all-active-wrap {
        width: 100%;
    }
    body.bhch-hub-active .bhch-view-all-active-wrap .bhch-view-all-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body.bhch-hub-active .bhch-hub-search {
        flex-direction: column;
    }
    body.bhch-hub-active .bhch-search-box {
        width: 100%;
    }
    body.bhch-hub-active .bhch-search-box button {
        width: auto;
    }
}
