/* CFO Speaks landing page — black & gold */

.page-template-page-cfo-speaks #cfo-premium-body,
.page-template-page-master-classes #cfo-premium-body,
.page-template-page-platinum-series #cfo-premium-body,
.page-template-page-workshops #cfo-premium-body,
.page-template-page-rivalries #cfo-premium-body,
.page-template-page-videos-new #cfo-premium-body,
.page-template-page-gallery-new #cfo-premium-body,
.page-template-page-free-toolkits #cfo-premium-body,
.page-template-page-models-plan #cfo-premium-body,
.page-template-page-top40-pe-firms-cfo-career-intelligence #cfo-premium-body,
.page-template-page-top50-vc-firms-cfo-career-intelligence #cfo-premium-body,
.page-template-page-top60-executive-recruiters-cfo #cfo-premium-body,
.page-template-page-top40-business-schools-global #cfo-premium-body,
.page-template-page-top60-finance-accounting-professors #cfo-premium-body,
.page-template-page-top60-journals-finance-accounting-economics #cfo-premium-body,
.page-template-page-top60-finance-accounting-associations #cfo-premium-body,
.page-template-page-top180-consulting-firms-global #cfo-premium-body,
.page-template-page-top30-business-schools-finance #cfo-premium-body,
.page-template-page-sitemap-new #cfo-premium-body,
.single-efcfo_custom_topic #cfo-premium-body,
body.cfo-cs-hero-layout#cfo-premium-body,
.cfo-cs-hero-layout #cfo-premium-body,
.tax-efcfo_masterclass_cat #cfo-premium-body {
    background: #050505 !important;
}

.page-template-page-cfo-speaks .cfo-top-bar,
.page-template-page-cfo-speaks .cfo-sub-nav-topics,
.page-template-page-master-classes .cfo-top-bar,
.tax-efcfo_masterclass_cat .cfo-top-bar,
.tax-efcfo_cfo_speaks_cat .cfo-sub-nav-topics {
    display: none;
}

.mcca-count {
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cs-gold);
    margin: 0;
}

.mcca-grid {
    margin-bottom: 2rem;
}

.cs-page {
    --cs-black: #050505;
    --cs-black-soft: #0a0a0a;
    --cs-black-card: #0d0d0d;
    --cs-black-elevated: #111111;
    --cs-gold: #b8943f;
    --cs-gold-light: #d4bc6e;
    --cs-gold-dim: rgba(184, 148, 63, 0.12);
    --cs-gold-border: rgba(184, 148, 63, 0.22);
    --cs-cream: #f5f0e6;
    --cs-muted: #8a8694;

    background: var(--cs-black);
    color: var(--cs-cream);
    padding-top: 0;
    margin-top: 0;
}

.cs-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 50% -15%, rgba(184, 148, 63, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, var(--cs-black-soft) 0%, var(--cs-black) 100%);
    border-bottom: 1px solid rgba(184, 148, 63, 0.15);
    padding-top: 48px;
}

/* Edge-to-edge hero band (break out of any padded layout) */
.cs-page > .cs-hero,
.thub-page > .thub-hero-banner,
.cfo-cs-hero-layout > .cs-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

body.admin-bar .cs-hero {
    /* padding-top: calc(32px + 104px); */
}

@media screen and (max-width: 782px) {
    body.admin-bar .cs-hero {
        /* padding-top: calc(46px + 104px); */
    }
}

.cs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(184, 148, 63, 0.04) 50%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            rgba(184, 148, 63, 0.02) 0,
            rgba(184, 148, 63, 0.02) 1px,
            transparent 1px,
            transparent 64px
        );
    opacity: 0.45;
    pointer-events: none;
}

.cs-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(184, 148, 63, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3.25rem;
    text-align: center;
}

.cs-hero-brand {
    margin: 0 0 2rem;
}

.cs-hero-brand-text {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cs-hero-brand-text span {
    color: #0a0a0a;
    background: var(--cs-gold);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.cs-hero-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cs-gold);
    margin: 0 0 1rem;
}

.cs-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.75rem, 5.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--cs-cream);
    margin: 0 0 0.85rem;
    line-height: 1.08;
}

.cs-tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-style: italic;
    color: rgba(212, 188, 110, 0.92);
    margin: 0 0 1.35rem;
}

.cs-desc {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(245, 240, 230, 0.72);
    font-weight: 300;
}

.cs-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.65rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(184, 148, 63, 0.18);
    border-radius: 6px;
}

.cs-hero-count-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    color: var(--cs-cream);
}

.cs-hero-count-divider {
    width: 1px;
    height: 22px;
    background: rgba(184, 148, 63, 0.35);
}

.cs-hero-count-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--cs-gold);
}

/* Split-line hero stat (Master Class landing format) */
.cs-hero-count--split {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    width: 100%;
    max-width: min(720px, 92vw);
    margin: 0.5rem auto 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.cs-hero-count--split .cs-hero-count-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22) 20%, rgba(255, 255, 255, 0.22) 80%, transparent);
}

.cs-hero-count--split .cs-hero-count-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    min-width: 8rem;
    padding: 0 0.5rem;
}

.cs-hero-count--split .cs-hero-count-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--cs-cream);
}

.cs-hero-count--split .cs-hero-count-label {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(212, 188, 110, 0.9);
}

/* Resource landing pages — shared hero layout */
:is(
    .page-template-page-master-classes,
    .page-template-page-business-models,
    .page-template-page-financial-architecture,
    .page-template-page-platinum-series,
    .page-template-page-workshops,
    .page-template-page-rivalries,
    .page-template-page-cfo-speaks,
    .page-template-page-videos-new,
    .page-template-page-gallery-new,
    .page-template-page-sitemap-new,
    .single-efcfo_custom_topic,
    .cfo-cs-hero-layout,
    .cfo-cs-hero-layout
) .cs-hero {
    padding-top: var(--cfo-header-offset, 64px);
    border-bottom: 1px solid rgba(184, 148, 63, 0.12);
    background:
        radial-gradient(ellipse 130% 85% at 50% -25%, rgba(184, 148, 63, 0.16) 0%, transparent 58%),
        linear-gradient(180deg, #0b0b0b 0%, #060606 52%, #000 100%);
}

body.admin-bar :is(
    .page-template-page-master-classes,
    .page-template-page-business-models,
    .page-template-page-financial-architecture,
    .page-template-page-platinum-series,
    .page-template-page-workshops,
    .page-template-page-rivalries,
    .page-template-page-cfo-speaks,
    .page-template-page-videos-new,
    .page-template-page-gallery-new,
    .page-template-page-sitemap-new,
    .single-efcfo_custom_topic,
    .cfo-cs-hero-layout
) .cs-hero,
body.admin-bar.cfo-cs-hero-layout .cs-hero {
    padding-top: calc(32px + var(--cfo-header-offset, 64px));
}

:is(
    .page-template-page-master-classes,
    .page-template-page-business-models,
    .page-template-page-financial-architecture,
    .page-template-page-platinum-series,
    .page-template-page-workshops,
    .page-template-page-rivalries,
    .page-template-page-cfo-speaks,
    .page-template-page-videos-new,
    .page-template-page-gallery-new,
    .single-efcfo_custom_topic,
    .cfo-cs-hero-layout
) .cs-hero::before {
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(184, 148, 63, 0.04) 0,
            rgba(184, 148, 63, 0.04) 1px,
            transparent 1px,
            transparent 12px
        );
    opacity: 0.65;
}

:is(
    .page-template-page-master-classes,
    .page-template-page-business-models,
    .page-template-page-financial-architecture,
    .page-template-page-platinum-series,
    .page-template-page-workshops,
    .page-template-page-rivalries,
    .page-template-page-cfo-speaks,
    .page-template-page-videos-new,
    .page-template-page-gallery-new,
    .single-efcfo_custom_topic,
    .cfo-cs-hero-layout
) .cs-hero::after {
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%),
        radial-gradient(ellipse 100% 75% at 50% 0%, rgba(184, 148, 63, 0.11) 0%, transparent 72%);
}

:is(
    .page-template-page-master-classes,
    .page-template-page-business-models,
    .page-template-page-financial-architecture,
    .page-template-page-platinum-series,
    .page-template-page-workshops,
    .page-template-page-rivalries,
    .page-template-page-cfo-speaks,
    .page-template-page-videos-new,
    .page-template-page-gallery-new,
    .single-efcfo_custom_topic,
    .cfo-cs-hero-layout
) .cs-hero-inner {
    padding: 3.25rem clamp(1.25rem, 4vw, 2.5rem) 3.75rem;
    max-width: min(1100px, 100%);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

:is(
    .page-template-page-master-classes,
    .page-template-page-business-models,
    .page-template-page-financial-architecture,
    .page-template-page-platinum-series,
    .page-template-page-workshops,
    .page-template-page-rivalries,
    .page-template-page-cfo-speaks,
    .page-template-page-videos-new,
    .page-template-page-gallery-new,
    .single-efcfo_custom_topic,
    .cfo-cs-hero-layout
) .cs-tagline {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    margin-bottom: 1.15rem;
    color: rgba(212, 188, 110, 0.95);
}

:is(
    .page-template-page-master-classes,
    .page-template-page-business-models,
    .page-template-page-financial-architecture,
    .page-template-page-platinum-series,
    .page-template-page-workshops,
    .page-template-page-rivalries,
    .page-template-page-cfo-speaks,
    .page-template-page-videos-new,
    .page-template-page-gallery-new,
    .single-efcfo_custom_topic,
    .cfo-cs-hero-layout
) .cs-title {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: clamp(2.35rem, 4.8vw, 3.5rem);
    margin-bottom: 1.35rem;
    line-height: 1.05;
}

:is(
    .page-template-page-master-classes,
    .page-template-page-business-models,
    .page-template-page-financial-architecture,
    .page-template-page-platinum-series,
    .page-template-page-workshops,
    .page-template-page-rivalries,
    .page-template-page-cfo-speaks,
    .page-template-page-videos-new,
    .page-template-page-gallery-new,
    .single-efcfo_custom_topic,
    .cfo-cs-hero-layout
) .cs-desc {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    font-size: 0.98rem;
    line-height: 1.85;
    color: rgba(245, 240, 230, 0.76);
    font-weight: 400;
}

:is(
    .page-template-page-master-classes,
    .page-template-page-business-models,
    .page-template-page-financial-architecture,
    .page-template-page-platinum-series,
    .page-template-page-workshops,
    .page-template-page-rivalries,
    .page-template-page-cfo-speaks,
    .page-template-page-videos-new,
    .page-template-page-gallery-new,
    .single-efcfo_custom_topic,
    .cfo-cs-hero-layout
) .cs-hero-count--split {
    width: min(100%, calc(100vw - 3rem));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

/* Directory pages reset * { margin:0 } — keep cs-hero centered */
body.cfo-cs-hero-layout .cs-hero {
    width: 100%;
}

body.cfo-cs-hero-layout .cs-hero-inner,
body.cfo-cs-hero-layout .cs-desc,
body.cfo-cs-hero-layout .cs-hero-count--split {
    margin-left: auto;
    margin-right: auto;
}

body.cfo-cs-hero-layout .cs-hero-inner {
    text-align: center;
}

.cs-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.cs-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.cs-stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-gold-dim);
    border: 1px solid var(--cs-gold-border);
    border-radius: 8px;
    font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cs-stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cs-cream);
}

.cs-stat-sub {
    display: block;
    font-size: 12px;
    color: var(--cs-muted);
}

/* Results bar */
.cs-results {
    background: var(--cs-black-card);
    border-bottom: 1px solid rgba(184, 148, 63, 0.12);
}

.cs-results-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: start;
    gap: 2.5rem;
}

.cs-results-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cs-gold);
    margin: 0;
    line-height: 1.35;
    padding-top: 0.15rem;
}

.cs-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem 1.75rem;
}

.cs-result-item {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.cs-result-marker {
    width: 2px;
    min-height: 100%;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--cs-gold) 0%, rgba(184, 148, 63, 0.15) 100%);
    border-radius: 1px;
}

.cs-result-item strong {
    display: block;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--cs-cream);
    margin-bottom: 0.35rem;
}

.cs-result-item span {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(138, 134, 148, 0.95);
}

/* Explore grid — black & gold */
.cs-explore {
    padding: 4rem 0 5rem;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(184, 148, 63, 0.1) 0%, transparent 55%),
        linear-gradient(180deg, var(--cs-black-soft) 0%, var(--cs-black) 100%);
    border-top: 1px solid var(--cs-gold-border);
}

.cs-explore-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cs-explore-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2.2px;
    color: var(--cs-gold);
    text-align: center;
    margin: 0 0 0.85rem;
    text-transform: uppercase;
}

.cs-explore-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 600;
    color: var(--cs-cream);
    text-align: center;
    margin: 0 0 0.75rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.cs-explore-sub {
    text-align: center;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(245, 240, 230, 0.65);
    margin: 0 auto 2.25rem;
    max-width: 560px;
    font-weight: 300;
}

/* Category archive hero (masterclass-category/*) — compact banner */
.mcca-hero.cs-hero {
    border-bottom: 1px solid var(--cs-gold-border);
    padding-top: 80px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184, 148, 63, 0.07) 0%, transparent 55%),
        var(--cs-black-soft);
}

body.admin-bar .mcca-hero.cs-hero {
    padding-top: calc(32px + 80px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .mcca-hero.cs-hero {
        padding-top: calc(46px + 80px);
    }
}

.mcca-hero-inner {
    max-width: 1100px;
    padding: 1rem 1.5rem 1.75rem;
    text-align: center;
}

.mcca-hero-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
    text-align: left;
}

.mcca-eyebrow {
    margin: 0 !important;
    flex: 1;
    min-width: 0;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 10px !important;
    font-style: normal !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cs-gold) !important;
    text-align: left;
}

.mcca-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cs-gold);
    text-decoration: none !important;
    background: var(--cs-gold-dim);
    border: 1px solid var(--cs-gold-border);
    border-radius: 999px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.mcca-hero-back:hover {
    color: var(--cs-gold-light);
    border-color: var(--cs-gold);
    background: rgba(184, 148, 63, 0.18);
}

.mcca-hero-back:focus-visible {
    outline: 2px solid rgba(184, 148, 63, 0.55);
    outline-offset: 3px;
}

.mcca-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 0.45rem;
}

.mcca-term-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    line-height: 1;
    background: rgba(184, 148, 63, 0.1);
    border: 1px solid rgba(184, 148, 63, 0.22);
    border-radius: 10px;
    flex-shrink: 0;
}

.mcca-title {
    font-size: clamp(1.5rem, 3.5vw, 2.35rem) !important;
    letter-spacing: -0.02em;
    margin: 0 !important;
    line-height: 1.12 !important;
}

.mcca-desc {
    max-width: 680px;
    margin: 0 auto 0.5rem !important;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(245, 240, 230, 0.78);
}

.mcca-hero .mcca-count {
    display: none;
}

.mcca-grid-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.mcca-page .mcca-grid-section .cs-explore-inner {
    max-width: 1320px;
}

.mcca-grid-section .cs-explore-inner {
    max-width: 1400px;
}

@media (max-width: 640px) {
    .mcca-hero.cs-hero {
        padding-top: 72px;
    }

    body.admin-bar .mcca-hero.cs-hero {
        padding-top: calc(46px + 72px);
    }

    .mcca-hero-inner {
        padding: 0.5rem 1rem 1.1rem;
    }

    .mcca-hero-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .mcca-eyebrow {
        flex: 1 1 100%;
        text-align: center;
    }

    .mcca-hero-back {
        margin: 0 auto;
    }
}

/* Category tabs — full width above search */
.cs-category-tabs {
    max-width: 100%;
    margin: 0 auto 1.5rem;
}

.cs-category-tabs .cs-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 2px;
}

.cs-explore-toolbar {
    max-width: 900px;
    margin: 0 auto 1.25rem;
}

.cs-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: var(--cs-black-card);
    border: 1px solid var(--cs-gold-border);
    border-radius: 999px;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cs-search-icon {
    display: flex;
    color: var(--cs-muted);
    flex-shrink: 0;
}

.cs-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 15px;
    color: var(--cs-cream);
    outline: none;
}

.cs-search-input::placeholder {
    color: var(--cs-muted);
}

.cs-filter-status {
    text-align: center;
    font-size: 13px;
    color: var(--cs-muted);
    margin: 0 0 1rem;
    min-height: 1.25rem;
}

.cs-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--cs-muted);
    font-size: 15px;
}

.cs-no-results.is-hidden {
    display: none;
}

/* Filter tabs */
.cs-tabs-wrap {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 2.25rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(184, 148, 63, 0.12);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cs-tabs-wrap::-webkit-scrollbar {
    display: none;
}

.cs-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    min-width: min-content;
}

.cs-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--cs-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cs-tab-icon {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.85;
}

.cs-tab-label {
    line-height: 1.2;
}

.cs-tab:hover {
    color: var(--cs-cream);
    background: rgba(255, 255, 255, 0.04);
}

.cs-tab.is-active {
    color: var(--cs-cream);
    font-weight: 600;
    background: rgba(184, 148, 63, 0.12);
    border-color: rgba(184, 148, 63, 0.28);
}

.cs-tab.is-active .cs-tab-icon {
    opacity: 1;
}

.cs-tab:focus-visible {
    outline: 2px solid rgba(184, 148, 63, 0.55);
    outline-offset: 2px;
}

/* Category cards grid */
.cs-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 0 auto;
}

.cs-category-card {
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.35rem 1.15rem;
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(184, 148, 63, 0.07) 0%, transparent 55%),
        rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(184, 148, 63, 0.16);
    border-radius: 14px;
    text-decoration: none !important;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    min-height: 210px;
    position: relative;
    overflow: hidden;
}

.cs-category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 148, 63, 0.04) 0%, transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.cs-category-card:hover {
    border-color: rgba(184, 148, 63, 0.38);
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(184, 148, 63, 0.12) 0%, transparent 55%),
        rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.cs-category-card:hover::after {
    opacity: 1;
}

.cs-category-card.is-hidden {
    display: none;
}

.cs-category-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cs-category-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.35rem;
    line-height: 1;
    background: rgba(184, 148, 63, 0.1);
    border: 1px solid rgba(184, 148, 63, 0.22);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cs-category-card-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(184, 148, 63, 0.9);
}

.cs-category-card-title {
    margin: 0 0 0.6rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cs-cream);
    line-height: 1.3;
}

.cs-category-card-sub {
    margin: -0.35rem 0 0.65rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cs-gold);
}

.cs-category-card-desc {
    margin: 0;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(138, 134, 148, 0.95);
    flex-grow: 1;
}

.cs-category-card-desc--placeholder {
    font-style: italic;
    opacity: 0.85;
}

.cs-category-card-footer {
    margin-top: 1.1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(184, 148, 63, 0.12);
}

.cs-category-card-meta {
    margin: 0 0 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(138, 134, 148, 0.85);
}

.cs-category-card-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cs-gold);
    transition: color 0.2s ease;
}

.cs-category-card:hover .cs-category-card-link {
    color: var(--cs-gold-light);
}

.cs-tab.is-hidden {
    display: none;
}

/* Legacy tile grid (unused on CFO Speaks) */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 18px;
    margin-top: 0;
}

.cs-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px 18px;
    background: var(--cs-black-card);
    border: 1px solid var(--cs-gold-border);
    border-radius: 10px;
    text-decoration: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 168px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cs-tile:hover {
    border-color: var(--cs-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(184, 148, 63, 0.15);
}

.cs-tile:focus-visible {
    outline: 2px solid rgba(184, 148, 63, 0.6);
    outline-offset: 3px;
}

.cs-tile.is-hidden {
    display: none;
}

.cs-tile-id {
    align-self: flex-start;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cs-muted);
    margin-bottom: 6px;
}

.cs-tile-cat {
    align-self: flex-start;
    display: block;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cs-gold);
    margin-bottom: 10px;
    line-height: 1.3;
}

.cs-tile-icon {
    width: 52px;
    height: 52px;
    margin: 2px 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--cs-gold-dim);
    border: 1px solid var(--cs-gold-border);
    overflow: hidden;
}

.cs-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-tile-icon span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cs-gold);
}

.cs-tile-title {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cs-cream);
    margin: 0;
    letter-spacing: 0;
}

.cs-empty {
    text-align: center;
    padding: 3rem;
    color: var(--cs-muted);
    background: var(--cs-black-card);
    border: 1px dashed var(--cs-gold-border);
    border-radius: 8px;
}

@media (max-width: 1400px) {
    .cs-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1100px) {
    .cs-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cs-results-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cs-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cs-hero {
        padding-top: 100px;
    }

    body.admin-bar .cs-hero {
        padding-top: calc(46px + 100px);
    }

    /* Shared cs-hero banner pages: sub-nav sits in fixed header — offset matches nav stack height */
    :is(
        .page-template-page-master-classes,
        .page-template-page-platinum-series,
        .page-template-page-workshops,
        .page-template-page-rivalries,
        .page-template-page-cfo-speaks,
        .page-template-page-videos-new,
        .page-template-page-gallery-new,
        .page-template-page-free-toolkits,
        .page-template-page-models-plan,
        .page-template-page-blogs,
        .page-template-page-data-engineering,
        .page-template-page-ai-engineering,
        .page-template-page-top40-pe-firms-cfo-career-intelligence,
        .page-template-page-top50-vc-firms-cfo-career-intelligence,
        .page-template-page-top60-executive-recruiters-cfo,
        .page-template-page-top40-business-schools-global,
        .page-template-page-top60-finance-accounting-professors,
        .page-template-page-top60-journals-finance-accounting-economics,
        .page-template-page-top60-finance-accounting-associations,
        .page-template-page-top180-consulting-firms-global,
        .page-template-page-top30-business-schools-finance,
        .single-efcfo_custom_topic,
        .cfo-cs-hero-layout
    ) .cs-hero,
    body.cfo-cs-hero-layout .cs-hero {
        padding-top: var(--cfo-header-offset, 64px);
    }

    body.admin-bar :is(
        .page-template-page-master-classes,
        .page-template-page-platinum-series,
        .page-template-page-workshops,
        .page-template-page-rivalries,
        .page-template-page-cfo-speaks,
        .page-template-page-videos-new,
        .page-template-page-gallery-new,
        .page-template-page-free-toolkits,
        .page-template-page-models-plan,
        .page-template-page-blogs,
        .page-template-page-data-engineering,
        .page-template-page-ai-engineering,
        .page-template-page-top40-pe-firms-cfo-career-intelligence,
        .page-template-page-top50-vc-firms-cfo-career-intelligence,
        .page-template-page-top60-executive-recruiters-cfo,
        .page-template-page-top40-business-schools-global,
        .page-template-page-top60-finance-accounting-professors,
        .page-template-page-top60-journals-finance-accounting-economics,
        .page-template-page-top60-finance-accounting-associations,
        .page-template-page-top180-consulting-firms-global,
        .page-template-page-top30-business-schools-finance,
        .single-efcfo_custom_topic,
        .cfo-cs-hero-layout
    ) .cs-hero,
    body.admin-bar.cfo-cs-hero-layout .cs-hero {
        padding-top: calc(46px + var(--cfo-header-offset, 64px));
    }

    .cs-hero-inner {
        padding: 1.25rem 1.25rem 2rem;
    }

    .cs-explore-inner {
        padding: 0 1.25rem;
    }

    .cs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-results-inner {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.25rem;
    }

    .cs-results-grid {
        grid-template-columns: 1fr;
    }

    .cs-hero-count {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.85rem 1.25rem;
    }

    .cs-hero-count--split {
        flex-direction: row;
        gap: 1rem;
        max-width: 100%;
        padding: 0;
    }

    .cs-hero-count--split .cs-hero-count-stat {
        min-width: 5.5rem;
    }

    .mcca-page .cs-hero-count--split .cs-hero-count-stat {
        min-width: 0;
        max-width: calc(100vw - 4.5rem);
        gap: 0.65rem;
    }

    .mcca-page .cs-hero-count--split .cs-hero-count-label {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-align: center;
        line-height: 1.35;
        letter-spacing: 0.12em;
        max-width: 100%;
    }

    .cs-hero-count-divider {
        width: 32px;
        height: 1px;
    }

    .cs-tabs-wrap,
    .cs-category-tabs {
        justify-content: flex-start;
    }

    .cs-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .cs-category-tabs .cs-tabs {
        justify-content: flex-start;
    }

    .cs-tab {
        padding: 0.65rem 0.85rem;
        font-size: 0.58rem;
    }

    .cs-tab-icon {
        font-size: 0.85rem;
    }

    .cs-category-card {
        min-height: 190px;
    }

    .cs-category-card-icon {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1.15rem;
    }

    .cs-explore-toolbar {
        max-width: 100%;
    }

    .cs-search-input {
        font-size: 14px;
    }

    .cs-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .cs-category-grid {
        grid-template-columns: 1fr;
    }
}

/* Master Class & Business Models landing — section intro */
.cs-landing-section-head {
    max-width: 760px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.cs-landing-eyebrow {
    margin: 0 0 0.65rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(184, 148, 63, 0.92);
}

.cs-landing-title {
    margin: 0 0 0.75rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 600;
    color: var(--cs-cream);
    line-height: 1.25;
}

.cs-landing-sub {
    margin: 0;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(138, 134, 148, 0.95);
}

.cs-mc-explore .cs-explore-inner,
.cs-bm-explore .cs-explore-inner {
    max-width: 1180px;
}

.cs-category-card--masterclass {
    min-height: 230px;
}

.cs-category-card--business-model {
    min-height: 230px;
    border-color: rgba(0, 210, 255, 0.18);
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(0, 210, 255, 0.06) 0%, transparent 55%),
        rgba(255, 255, 255, 0.025);
}

.cs-category-card--business-model:hover {
    border-color: rgba(0, 210, 255, 0.38);
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(0, 210, 255, 0.12) 0%, transparent 55%),
        rgba(255, 255, 255, 0.04);
}

.cs-category-card--business-model .cs-category-card-eyebrow {
    color: rgba(0, 210, 255, 0.92);
}

.cs-category-card--business-model .cs-category-card-icon {
    background: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.22);
}

.cs-category-card--business-model .cs-category-card-link {
    color: #6ddcff;
}

.cs-category-card--business-model:hover .cs-category-card-link {
    color: #a8ecff;
}

.cs-mc-crosslink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.75rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(0, 210, 255, 0.16);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(0, 210, 255, 0.05) 0%, transparent 55%),
        rgba(255, 255, 255, 0.02);
}

.cs-mc-crosslink-eyebrow {
    margin: 0 0 0.35rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(138, 134, 148, 0.9);
}

.cs-mc-crosslink-title {
    margin: 0 0 0.35rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--cs-cream);
}

.cs-mc-crosslink-desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(138, 134, 148, 0.95);
    max-width: 42rem;
}

.cs-mc-crosslink-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.15rem;
    border: 1px solid rgba(0, 210, 255, 0.28);
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #6ddcff !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cs-mc-crosslink-btn:hover {
    background: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.45);
    color: #a8ecff !important;
}

.page-template-page-business-models .cs-tagline {
    color: rgba(109, 220, 255, 0.95);
}

.cs-bm-crosslink {
    border-color: rgba(184, 148, 63, 0.16);
    background:
        linear-gradient(135deg, rgba(184, 148, 63, 0.05) 0%, transparent 55%),
        rgba(255, 255, 255, 0.02);
}

.cs-bm-crosslink-btn {
    border-color: rgba(184, 148, 63, 0.28);
    color: var(--cs-gold) !important;
}

.cs-bm-crosslink-btn:hover {
    background: rgba(184, 148, 63, 0.08);
    border-color: rgba(184, 148, 63, 0.45);
    color: var(--cs-gold-light) !important;
}

@media (max-width: 768px) {
    .cs-mc-crosslink {
        flex-direction: column;
        align-items: flex-start;
    }

    .cs-mc-crosslink-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Topic playlist — "+N more sessions" tile */
.pl-thumb--more {
    cursor: pointer;
    border: 1px solid rgba(201, 168, 76, 0.24);
    background: linear-gradient(155deg, rgba(201, 168, 76, 0.14) 0%, #141414 42%, #0a0a0a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.pl-thumb--more:hover,
.pl-thumb--more:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.52);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(201, 168, 76, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    outline: none;
}

.pl-more-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px) saturate(1.1) brightness(0.42);
    transform: scale(1.12);
    pointer-events: none;
}

.pl-more-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.72) 100%),
        radial-gradient(circle at 50% 35%, rgba(201, 168, 76, 0.16) 0%, transparent 58%);
    pointer-events: none;
}

.pl-more-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    height: 100%;
    padding: 0.85rem 0.65rem;
    text-align: center;
}

.pl-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 0.15rem;
    border-radius: 8px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.28);
    color: #e8d5a3;
}

.pl-more-icon svg {
    width: 15px;
    height: 15px;
}

.pl-more-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 58px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.42);
    background: rgba(10, 10, 10, 0.55);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pl-more-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.pl-more-cta {
    margin-top: 0.2rem;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #c9a84c;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.pl-thumb--more:hover .pl-more-cta,
.pl-thumb--more:focus-visible .pl-more-cta {
    opacity: 1;
    transform: translateY(0);
    color: #e8d5a3;
}

.pl-thumb--more:hover .pl-more-ring,
.pl-thumb--more:focus-visible .pl-more-ring {
    border-color: rgba(232, 213, 163, 0.65);
    background: rgba(201, 168, 76, 0.14);
}

@media (max-width: 768px) {
    .pl-more-ring {
        min-width: 52px;
        min-height: 52px;
        font-size: 1.35rem;
    }

    .pl-more-cta {
        opacity: 1;
        transform: none;
    }
}
