/**
 * Article Components (Insights & Case Studies)
 *
 * The single insight and single case study pages are built from the same
 * markup and this one stylesheet: 3-column layout (table of contents rail,
 * article, right rail), callout, numbered points, related cards and the
 * conference band. Components only case studies fill (key figures, company
 * facts, logo hero) are drawn in the same style.
 *
 * Fonts and colors come only from the --whu-* variables that
 * whu_article_theme_vars_css() (includes/article/article-functions.php)
 * builds from the theme options, so the pages follow the site's own rules:
 *   article title      → H2 option     section titles → H4 option
 *   labels / eyebrows  → H6 option     lead text, quotes → quote option
 *   body text          → content option, text color
 *   dark surfaces      → header/footer blue
 * The few values below that have no theme option are copied from existing
 * site components (noted next to each).
 */

/* .whu-article-page: the components also work inside other pages (events list). */
body.whu-article,
.whu-article-page {
    /* Homepage "News & Media Coverage" items: title 19/25, source line 14/20. */
    --whu-item-title-size: 19px;
    --whu-item-title-lh: 25px;
    --whu-meta-size: 14px;
    --whu-meta-lh: 20px;
    /* Profile subtitles and H6 labels use 1px tracking. */
    --whu-label-spacing: 1px;
    /* Homepage pill button ("Secure Your Seat Today"). */
    --whu-btn-size: 12px;
    --whu-btn-lh: 42px;
    --whu-btn-radius: 22px;
    /* H2 tracking on the site (section headings, post titles). */
    --whu-h2-spacing: 1.2px;
    /* Light surfaces are a tint of the link color, as on the homepage's light rows. */
    --whu-tint: color-mix(in srgb, var(--whu-link) 10%, var(--whu-bg));
    --whu-tint-soft: color-mix(in srgb, var(--whu-link) 5%, var(--whu-bg));
    --whu-on-dark-muted: color-mix(in srgb, var(--whu-dark-text) 75%, transparent);
}

/* Sticky rails sit below the fixed site header (js/article.js uses the same offsets). */
body.whu-article {
    --whu-sticky-top: 130px;
}

body.whu-article.admin-bar {
    --whu-sticky-top: 162px;
}

/* Allow sticky positioning by preventing hidden overflow on page ancestors */
html,
body.whu-article {
    overflow-x: clip !important;
}

body.whu-article #page,
body.whu-article #main,
body.whu-article #middle,
body.whu-article .middle_inner,
body.whu-article .middle_inner .content_wrap {
    overflow: visible !important;
}

/* ── Container & Theme Reset ─────────────────────────────────────────────── */
body.whu-article #middle {
    background: var(--whu-bg) !important;
}

body.whu-article .middle_inner {
    padding: 0 !important;
}

/* The pages print their own title. Insight posts have the theme heading
   disabled; case studies do not, so their heading is reduced to the same
   result: only .headline_outer's top padding stays, which keeps the content
   below the fixed header. */
body.whu-article .headline_outer {
    min-height: auto !important;
    background-image: none !important;
}

body.whu-article .headline_outer .headline_color,
body.whu-article .headline_outer .headline_inner {
    display: none !important;
}

body.whu-article .middle_inner .content_wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.whu-article .middle_content.entry {
    padding: 0 !important;
    margin: 0 !important;
}

body.whu-article .blog.opened-article {
    padding: 0 !important;
    margin: 0 !important;
}

.whu-article-page {
    font-family: var(--whu-font);
    font-size: var(--whu-body-size);
    line-height: var(--whu-body-lh);
    color: var(--whu-text);
    background: var(--whu-bg);
}

.whu-article-page * {
    box-sizing: border-box;
}

/* The theme sizes every <a> and <h1–h6> globally; inside the page each
   component sets its own values, everything else inherits. */
.whu-article-page a,
.whu-article-page button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.whu-article-page h1,
.whu-article-page h2,
.whu-article-page h3,
.whu-article-page h4,
.whu-article-page h5,
.whu-article-page h6 {
    font-family: var(--whu-font);
}

/* Same box as the theme's .content_wrap / .header_mid_inner / .footer_inner
   (in-conference css/style.css + adaptive.css): 980px, 1200px from 1440px,
   full width from 1024px down, 20px side padding — so the page lines up
   with the header and footer. */
.whu-article-container {
    width: 980px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

@media only screen and (min-width: 1440px) {
    .whu-article-container {
        width: 1200px;
    }
}

@media only screen and (max-width: 1024px) {
    .whu-article-container {
        width: 100%;
    }
}

/* ── Typography ──────────────────────────────────────────────────────────── */
/* Label (H6 option): eyebrows, rail labels, card topics. */
.whu-article-label {
    font-size: var(--whu-h6-size);
    line-height: var(--whu-h6-lh);
    font-weight: var(--whu-h6-weight);
    text-transform: var(--whu-h6-transform);
    letter-spacing: var(--whu-label-spacing);
}

/* Article title: same rule as the site's post titles (H2 option). */
.whu-article-page .whu-article-title {
    margin: 0;
    font-size: var(--whu-h2-size);
    line-height: var(--whu-h2-lh);
    font-weight: var(--whu-h2-weight);
    letter-spacing: var(--whu-h2-spacing);
    color: var(--whu-heading);
}

/* Every section heading in the article uses the H4 option. */
.whu-article-page .whu-article-heading {
    font-size: var(--whu-h4-size);
    line-height: var(--whu-h4-lh);
    font-weight: var(--whu-h4-weight);
    letter-spacing: normal;
    color: var(--whu-heading);
}

/* Date · reading time · … line under the title. */
.whu-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: var(--whu-meta-size);
    line-height: var(--whu-meta-lh);
    color: var(--whu-text);
}

.whu-article-meta__dot {
    color: var(--whu-border);
}

/* Body copy from the editor. */
.whu-article-prose {
    font-size: var(--whu-body-size);
    line-height: var(--whu-body-lh);
    color: var(--whu-text);
}

.whu-article-prose p:last-child {
    margin-bottom: 0;
}

.whu-article-prose a {
    color: var(--whu-link);
}

.whu-article-prose a:hover {
    color: var(--whu-hover);
}

.whu-article-page .whu-article-prose h2,
.whu-article-page .whu-article-prose h3,
.whu-article-page .whu-article-prose h4 {
    margin: 28px 0 12px;
    font-size: var(--whu-h3-size);
    line-height: var(--whu-h3-lh);
    font-weight: var(--whu-h3-weight);
    letter-spacing: normal;
    color: var(--whu-heading);
}

/* ── Pill Button (homepage button) ───────────────────────────────────────── */
.whu-article-page .whu-article-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 40px;
    border: 1px solid var(--whu-link);
    border-radius: var(--whu-btn-radius);
    background: transparent;
    color: var(--whu-link);
    font-size: var(--whu-btn-size);
    line-height: var(--whu-btn-lh);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: var(--whu-label-spacing);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.whu-article-page .whu-article-btn:hover {
    background: var(--whu-link);
    color: var(--whu-bg);
    text-decoration: none;
}

.whu-article-page .whu-article-btn--on-dark {
    border-color: var(--whu-dark-text);
    color: var(--whu-dark-text);
}

.whu-article-page .whu-article-btn--on-dark:hover {
    background: var(--whu-dark-text);
    color: var(--whu-heading);
}

/* ── Breadcrumb Bar ──────────────────────────────────────────────────────── */
.whu-article-breadcrumb-bar {
    border-bottom: 1px solid var(--whu-border);
    background: var(--whu-bg);
}

.whu-article-breadcrumb {
    padding: 14px 0;
    font-size: var(--whu-meta-size);
    line-height: var(--whu-meta-lh);
    color: var(--whu-text);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.whu-article-breadcrumb a {
    color: var(--whu-link);
    text-decoration: none;
    transition: color 0.15s;
}

.whu-article-breadcrumb a:hover {
    color: var(--whu-hover);
}

.whu-article-breadcrumb__sep {
    color: var(--whu-border);
}

.whu-article-breadcrumb__current {
    color: var(--whu-text);
}

/* ── Table of Contents & Reading Progress ────────────────────────────────── */
.whu-article-toc-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whu-article-toc-block__label {
    color: var(--whu-text);
}

.whu-article-toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--whu-meta-size);
    line-height: var(--whu-meta-lh);
}

.whu-article-toc__link {
    display: block;
    padding: 8px 12px;
    border-left: 2px solid transparent;
    color: var(--whu-text);
    text-decoration: none;
    transition: all 0.15s ease;
}

.whu-article-toc__link:hover {
    color: var(--whu-link);
    text-decoration: none;
}

.whu-article-toc__link.is-active {
    border-left-color: var(--whu-link);
    background: var(--whu-tint-soft);
    color: var(--whu-link);
}

.whu-article-progress {
    height: 4px;
    background: var(--whu-border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
    width: 100%;
}

.whu-article-progress__fill {
    width: 0%;
    height: 100%;
    background: var(--whu-link);
    border-radius: 2px;
    transition: width 0.08s ease-out;
}

/* ── Callout: the one tinted box in an article (insight summary, case study
   dilemma). The text inside is regular body copy. ──────────────────────── */
.whu-article-callout {
    background: var(--whu-tint-soft);
    padding: 32px;
}

.whu-article-page .whu-article-callout .whu-article-heading {
    margin: 0 0 24px;
}

.whu-article-callout__text,
.whu-article-callout__text p {
    font-size: var(--whu-body-size);
    line-height: var(--whu-body-lh);
    color: var(--whu-text);
}

.whu-article-callout__text p {
    margin: 0 0 16px;
}

.whu-article-callout__text p:last-child {
    margin-bottom: 0;
}

/* ── Numbered points: left rule only, so it does not compete with the
   callout (insight takeaways, case study lessons). ─────────────────────── */
.whu-article-points {
    border-left: 2px solid var(--whu-link);
    padding: 4px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.whu-article-page .whu-article-points .whu-article-heading {
    margin: 0;
}

.whu-article-points__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.whu-article-points__item {
    display: flex;
    gap: 18px;
    align-items: baseline;
}

.whu-article-points__num {
    font-size: var(--whu-h6-size);
    line-height: var(--whu-body-lh);
    letter-spacing: var(--whu-label-spacing);
    color: var(--whu-link);
    min-width: 24px;
}

.whu-article-points__text {
    font-size: var(--whu-body-size);
    line-height: var(--whu-body-lh);
    color: var(--whu-text);
}

/* ── 3-Column Body Grid ──────────────────────────────────────────────────── */
.whu-article-grid {
    padding-top: 48px;
    padding-bottom: 72px;
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: flex-start;
}

/* ── Left Rail (TOC) ─────────────────────────────────────────────────── */
.whu-article-left-rail {
    flex: 1 1 190px;
    max-width: 210px;
    align-self: stretch;
}

.whu-article-rail-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--whu-sticky-top);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.whu-article-rail-label {
    color: var(--whu-text);
}

/* ── Main Column (Article) ───────────────────────────────────────────────── */
.whu-article-main-col {
    flex: 999 1 560px;
    min-width: 0;
    max-width: 720px;
}

.whu-article-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Header & Meta */
.whu-article-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Hero Image */
.whu-article-hero {
    margin: 0;
    overflow: hidden;
    background: var(--whu-tint);
    max-height: 440px;
}

.whu-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Article section: H4 title over body copy (The Insight, …) */
.whu-article-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.whu-article-page .whu-article-section__title {
    margin: 0 0 6px;
}

/* Reflection question: quote option on the dark surface */
.whu-article-question {
    background: var(--whu-dark-bg);
    color: var(--whu-dark-text);
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.whu-article-page .whu-article-question__eyebrow {
    margin: 0;
    color: var(--whu-dark-text);
}

.whu-article-page .whu-article-question__quote {
    margin: 0;
    font-size: var(--whu-quote-size);
    line-height: var(--whu-quote-lh);
    font-weight: var(--whu-quote-weight);
    font-style: normal;
    border: none;
    padding: 0;
    background: none;
    color: var(--whu-dark-text);
}

.whu-article-question__quote::before,
.whu-article-question__quote::after {
    content: none;
}

/* Topics Tag Pills */
.whu-article-topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
}

.whu-article-topics__label {
    color: var(--whu-text);
}

.whu-article-topics__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.whu-article-page .whu-article-pill {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--whu-border);
    border-radius: var(--whu-btn-radius);
    background: var(--whu-bg);
    font-size: var(--whu-small-size);
    line-height: var(--whu-small-lh);
    letter-spacing: var(--whu-label-spacing);
    text-transform: uppercase;
    color: var(--whu-link);
    text-decoration: none;
    transition: all 0.15s ease;
}

.whu-article-page .whu-article-pill:hover,
.whu-article-page .whu-article-pill.is-active {
    background: var(--whu-link);
    border-color: var(--whu-link);
    color: var(--whu-bg);
    text-decoration: none;
}

/* Post count inside a filter pill */
.whu-article-pill__count {
    margin-left: 6px;
    opacity: 0.6;
}

/* ── Listing Pages (page-article-listing.php) ────────────────────────────── */
.whu-article-listing {
    background: transparent;
    padding-bottom: 50px;
}

.whu-article-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.whu-article-page .whu-article-filter__status {
    margin: -12px 0 24px;
}

.whu-article-filter__status a {
    color: var(--whu-link);
    text-decoration: none;
}

.whu-article-filter__status a:hover {
    color: var(--whu-hover);
}

/* About this reflection note */
.whu-article-note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 24px;
    border: 1px solid var(--whu-border);
    background: var(--whu-alt);
}

.whu-article-note__icon {
    flex: none;
    margin-top: 2px;
    stroke: var(--whu-text);
}

.whu-article-note__text {
    font-size: var(--whu-meta-size);
    line-height: var(--whu-meta-lh);
    color: var(--whu-text);
}

.whu-article-note__text strong {
    font-weight: normal;
    color: var(--whu-heading);
}

/* ── Podcast episode card (template-parts/article/podcast-episode.php) ──── */
/* Under "Continue the Conversation" on Executive Insights: cover, episode,
   in-page player (js/article.js) and the platform links. */
.whu-article-episode {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--whu-border);
    background: var(--whu-alt);
}

/* Cover on the left; episode info, player and links on the right. */
.whu-article-episode__cover {
    grid-row: 1 / span 3;
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.whu-article-episode__head,
.whu-article-episode__player,
.whu-article-episode__links {
    grid-column: 2;
}

.whu-article-episode__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.whu-article-episode__label {
    color: var(--whu-link);
}

.whu-article-page .whu-article-episode__title {
    margin: 0;
    font-size: var(--whu-item-title-size);
    line-height: var(--whu-item-title-lh);
    color: var(--whu-heading);
}

.whu-article-page .whu-article-episode__meta {
    margin: 0;
    font-size: var(--whu-meta-size);
    line-height: var(--whu-meta-lh);
    color: var(--whu-text);
}

/* Player: play button, seek bar, time */
.whu-article-episode__player {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.whu-article-page .whu-article-episode__play {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--whu-link);
    color: var(--whu-bg);
    cursor: pointer;
    transition: background 0.15s ease;
}

.whu-article-page .whu-article-episode__play:hover {
    background: var(--whu-heading);
}

.whu-article-episode__icon-pause,
.whu-article-episode.is-playing .whu-article-episode__icon-play {
    display: none;
}

.whu-article-episode.is-playing .whu-article-episode__icon-pause {
    display: block;
}

/* Seek bar: a range input; js/article.js sets --whu-progress. */
.whu-article-episode__progress {
    --whu-progress: 0%;
    flex: 1;
    min-width: 0;
    height: 4px;
    margin: 0;
    border-radius: 2px;
    background: linear-gradient(to right, var(--whu-link) var(--whu-progress), var(--whu-border) var(--whu-progress));
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.whu-article-episode__progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--whu-link);
}

.whu-article-episode__progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: var(--whu-link);
}

.whu-article-episode__time {
    flex: none;
    font-size: var(--whu-small-size);
    line-height: var(--whu-small-lh);
    color: var(--whu-text);
    font-variant-numeric: tabular-nums;
}

.whu-article-episode__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 16px;
}

.whu-article-page .whu-article-episode__alt {
    font-size: var(--whu-meta-size);
    line-height: var(--whu-meta-lh);
    color: var(--whu-link);
    text-decoration: none;
}

.whu-article-page .whu-article-episode__alt:hover {
    color: var(--whu-hover);
}

/* /podcasts/ list: [podcast_episode_list], one card per episode. */
.whu-article-episode-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent;
}

.whu-article-page .whu-article-episode__title a {
    color: inherit;
    text-decoration: none;
}

.whu-article-page .whu-article-episode__title a:hover {
    color: var(--whu-link);
}

/* Phones: cover next to the episode info; player and links full width below. */
@media (max-width: 600px) {
    .whu-article-episode {
        grid-template-columns: 72px minmax(0, 1fr);
        column-gap: 16px;
        padding: 20px;
    }

    .whu-article-episode__cover {
        grid-row: 1;
        width: 72px;
        height: 72px;
    }

    .whu-article-episode__player,
    .whu-article-episode__links {
        grid-column: 1 / -1;
    }
}

/* Older posts without a linked episode: series line above the
   [podcast_player] block (styled in style.css). */
.whu-article-page .whu-article-podcast__source {
    margin: 0;
    font-size: var(--whu-body-size);
    line-height: var(--whu-body-lh);
    color: var(--whu-text);
}

.whu-article-podcast__source strong {
    font-weight: normal;
    color: var(--whu-heading);
}

/* The page's link reset above would give the player's buttons body text
   size; keep the player's own button type (style.css, .podcast-player-block__btn). */
.whu-article-page .podcast-player-block a.podcast-player-block__btn {
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}

/* Phones: the two buttons do not fit side by side; stack them. */
@media (max-width: 480px) {
    .whu-article-page .podcast-player-block a.podcast-player-block__btn {
        width: 100%;
    }
}

/* ── Right Rail (Topics, Latest) ────────────────────────────────────────── */
.whu-article-right-rail {
    flex: 1 1 260px;
    max-width: 290px;
}

/* Explore Topics */
.whu-article-explore {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whu-article-explore__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Latest Insights List */
.whu-article-latest {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.whu-article-latest__list {
    display: flex;
    flex-direction: column;
}

.whu-article-latest__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--whu-border);
    text-decoration: none;
    transition: all 0.15s ease;
}

.whu-article-latest__item:last-child {
    border-bottom: 1px solid var(--whu-border);
}

.whu-article-latest__title {
    font-size: var(--whu-body-size);
    line-height: var(--whu-item-title-lh);
    color: var(--whu-heading);
    transition: color 0.15s;
}

.whu-article-latest__item:hover .whu-article-latest__title {
    color: var(--whu-link);
}

.whu-article-latest__meta {
    font-size: var(--whu-small-size);
    line-height: var(--whu-small-lh);
    color: var(--whu-text);
}

/* ── Bottom CTA Band: Join Next Conference ───────────────────────────────── */
/* The heading blue (#2658A1 in the theme options) sets the band apart from
   the footer blue below it, the same pairing the homepage rows use. */
.whu-article-cta {
    background: var(--whu-heading);
    color: var(--whu-dark-text);
    padding: 56px 0;
}

.whu-article-cta__eyebrow {
    color: var(--whu-on-dark-muted);
}

.whu-article-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.whu-article-cta__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 680px;
}

/* Section heading like the homepage ("Featured Speakers"): H2 option. */
.whu-article-page .whu-article-cta__title {
    margin: 0;
    font-size: var(--whu-h2-size);
    line-height: var(--whu-h2-lh);
    font-weight: var(--whu-h2-weight);
    letter-spacing: var(--whu-h2-spacing);
    color: var(--whu-dark-text);
}

.whu-article-cta__sub {
    margin: 0;
    font-size: var(--whu-body-size);
    line-height: var(--whu-body-lh);
    color: var(--whu-on-dark-muted);
}

/* Logo instead of a photo (case studies): shown whole on a white panel. */
.whu-article-hero--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 40px;
    border: 1px solid var(--whu-border);
    background: var(--whu-bg);
}

.whu-article-hero--logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Body whose own <h2> are the article's sections (case studies): the <h2>
   use the section title rule (H4 option) instead of the H3 option. */
.whu-article-page .whu-article-prose--sections h2 {
    margin: 40px 0 16px;
    font-size: var(--whu-h4-size);
    line-height: var(--whu-h4-lh);
    font-weight: var(--whu-h4-weight);
    scroll-margin-top: var(--whu-sticky-top);
}

.whu-article-page .whu-article-prose--sections > h2:first-child {
    margin-top: 0;
}

/* Key figures (case studies): figure in the H4 option (section titles),
   label as H6. */
.whu-article-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.whu-article-kpi {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    border: 1px solid var(--whu-border);
    background: var(--whu-bg);
}

.whu-article-kpi__value {
    font-size: var(--whu-h4-size);
    line-height: var(--whu-h4-lh);
    font-weight: var(--whu-h4-weight);
    color: var(--whu-heading);
}

.whu-article-kpi__label {
    color: var(--whu-text);
}

/* Fact rows in the right rail (case study company profile), drawn like
   the "Latest" list. */
.whu-article-facts-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.whu-article-facts {
    margin: 0;
    padding: 0;
}

.whu-article-facts__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--whu-border);
}

.whu-article-facts__row:last-child {
    border-bottom: 1px solid var(--whu-border);
}

.whu-article-facts__term {
    font-size: var(--whu-small-size);
    line-height: var(--whu-small-lh);
    font-weight: normal;
    color: var(--whu-text);
}

.whu-article-facts__value {
    margin: 0;
    font-size: var(--whu-body-size);
    line-height: var(--whu-item-title-lh);
    color: var(--whu-heading);
}

.whu-article-facts-block .whu-article-btn {
    margin-top: 14px;
}

/* ── Related Articles ("Continue reading") ───────────────────────────────── */
.whu-article-related {
    background: var(--whu-tint);
    padding: 64px 0;
}

.whu-article-related__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
}

/* Section headings like the homepage ("Featured Speakers"): H2 option. */
.whu-article-page .whu-article-related__title {
    margin: 0;
    font-size: var(--whu-h2-size);
    line-height: var(--whu-h2-lh);
    font-weight: var(--whu-h2-weight);
    letter-spacing: var(--whu-h2-spacing);
    color: var(--whu-heading);
}

.whu-article-page .whu-article-related__all {
    font-size: var(--whu-meta-size);
    line-height: var(--whu-meta-lh);
    color: var(--whu-link);
    text-decoration: none;
}

.whu-article-page .whu-article-related__all:hover {
    color: var(--whu-hover);
}

.whu-article-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.whu-article-card {
    background: var(--whu-bg);
    border: 1px solid var(--whu-border);
    overflow: hidden;
    transition: border-color 0.2s;
}

.whu-article-card:hover {
    border-color: var(--whu-link);
}

.whu-article-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.whu-article-card__thumb-wrap {
    height: 160px;
    background: var(--whu-tint);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whu-article-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.whu-article-card:hover .whu-article-card__thumb {
    transform: scale(1.03);
}

/* Company logos: shown whole on a white panel instead of cropped. */
.whu-article-card__thumb-wrap--contain {
    background: var(--whu-bg);
    border-bottom: 1px solid var(--whu-border);
    padding: 32px 40px;
}

.whu-article-card__thumb-wrap--contain .whu-article-card__thumb {
    object-fit: contain;
}

.whu-article-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.whu-article-card__topic {
    color: var(--whu-link);
}

.whu-article-page .whu-article-card__title {
    margin: 0;
    font-size: var(--whu-item-title-size);
    line-height: var(--whu-item-title-lh);
    font-weight: normal;
    letter-spacing: normal;
    color: var(--whu-heading);
    transition: color 0.15s;
}

.whu-article-card:hover .whu-article-card__title {
    color: var(--whu-link);
}

.whu-article-card__excerpt {
    margin: 0;
    font-size: var(--whu-meta-size);
    line-height: var(--whu-meta-lh);
    color: var(--whu-text);
}

.whu-article-card__meta {
    margin-top: auto;
    padding-top: 8px;
    font-size: var(--whu-small-size);
    line-height: var(--whu-small-lh);
    color: var(--whu-text);
}

/* Shown but not clickable (events in the "disabled" category). */
.whu-article-card.is-disabled {
    pointer-events: none;
}

/* ── Events List ([perfect_events_list] on /events/) ─────────────────────── */
/* The page's own row CSS (.event-list, stored in the page content) makes
   .cmsmasters_text a grid and fades in every <article>. The list spans that
   grid and the cards keep the article card look. */
.event-list .cmsmasters_text > .whu-article-events {
    grid-column: 1 / -1;
}

.whu-article-page.whu-article-events .whu-article-card {
    display: block;
    opacity: 1;
    transform: none;
    animation: none;
    position: static;
}

/* ── Responsive Rules ────────────────────────────────────────────────────── */
/* 980px container (940px inside): narrower rails and gaps keep three columns. */
@media (min-width: 1101px) and (max-width: 1439px) {
    .whu-article-grid {
        gap: 32px;
    }

    .whu-article-left-rail {
        flex-basis: 160px;
        max-width: 160px;
    }

    .whu-article-main-col {
        flex-basis: 400px;
    }

    .whu-article-right-rail {
        flex-basis: 220px;
        max-width: 220px;
    }
}

@media (max-width: 1100px) {
    .whu-article-grid {
        gap: 36px;
    }

    .whu-article-left-rail {
        flex: 1 1 100%;
        max-width: 100%;
        order: 2;
    }

    .whu-article-left-rail .whu-article-rail-sticky {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .whu-article-main-col {
        order: 1;
        max-width: 100%;
    }

    .whu-article-right-rail {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .whu-article-right-rail .whu-article-rail-sticky {
        position: static;
    }

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

/* The theme keeps H2 at full size on phones (post titles, section
   headings), so the title and section headings do too. */
@media (max-width: 768px) {
    .whu-article-grid {
        padding-top: 28px;
        padding-bottom: 48px;
        gap: 28px;
    }

    .whu-article-hero {
        max-height: 260px;
    }

    .whu-article-question {
        padding: 32px 24px;
    }

    .whu-article-callout {
        padding: 32px 24px;
    }

    .whu-article-points {
        padding: 4px 24px;
    }

    .whu-article-related__grid {
        grid-template-columns: 1fr;
    }
}
