/**
 * Single Insight Post Stylesheet
 *
 * Layout for Conference Insights & Executive Insights single posts.
 *
 * Fonts and colors come only from the --whu-* variables that
 * whu_insight_theme_vars_css() (includes/insights/insight-functions.php)
 * builds from the theme options, so the page follows the site's own rules:
 *   article title      → H2 option     section titles → H4 option
 *   labels / eyebrows  → H6 option     lead text, reflection quote → 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).
 */

body.whu-single-insight {
    /* 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);
}

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

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

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

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

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

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

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

.whu-insight-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-insight-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-insight-page a,
.whu-insight-page button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.whu-insight-page h1,
.whu-insight-page h2,
.whu-insight-page h3,
.whu-insight-page h4,
.whu-insight-page h5,
.whu-insight-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-insight-container {
    width: 980px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* Shared label style (H6 option): eyebrows, rail labels, badges. */
.whu-insight-rail-label,
.whu-insight-topics-label,
.whu-insight-cta-band__eyebrow,
.whu-insight-card__topic {
    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);
}

/* Pill button (homepage button). */
.whu-insight-page .whu-insight-cta-band__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    border: 1px solid var(--whu-dark-text);
    border-radius: var(--whu-btn-radius);
    background: transparent;
    color: var(--whu-dark-text);
    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-insight-page .whu-insight-cta-band__btn:hover {
    background: var(--whu-dark-text);
    color: var(--whu-heading);
    text-decoration: none;
}

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

.whu-insight-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-insight-breadcrumb a {
    color: var(--whu-link);
    text-decoration: none;
    transition: color 0.15s;
}

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

.whu-insight-sep {
    color: var(--whu-border);
}

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

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

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

.whu-insight-rail-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

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

.whu-insight-rail-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

.whu-insight-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-insight-toc__link:hover {
    color: var(--whu-link);
    text-decoration: none;
}

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

/* Reading Progress */
.whu-insight-progress-track {
    height: 4px;
    background: var(--whu-border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
    width: 100%;
}

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

/* Share Buttons */
.whu-insight-share-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whu-insight-page .whu-insight-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--whu-border);
    border-radius: 0;
    font-size: var(--whu-meta-size);
    line-height: var(--whu-meta-lh);
    color: var(--whu-text);
    background: var(--whu-bg);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.whu-insight-page .whu-insight-share-btn:hover {
    border-color: var(--whu-link);
    color: var(--whu-link);
    text-decoration: none;
}

.whu-insight-page .whu-insight-share-btn.is-copied {
    border-color: var(--whu-link);
    background: var(--whu-tint-soft);
    color: var(--whu-link);
}

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

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

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

.whu-insight-dot {
    color: var(--whu-border);
}

/* Article title: same rule as the site's post titles (H2 option). */
.whu-insight-page .whu-insight-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-insight-meta-info {
    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);
}

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

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

.whu-insight-page .whu-insight-section-eyebrow {
    margin: 0 0 24px;
}

/* Section 1: Executive Summary. The only tinted box in the article; the text
   inside is regular body copy. */
.whu-insight-summary {
    background: var(--whu-tint-soft);
    padding: 32px;
}

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

.whu-insight-summary__text p {
    margin: 0 0 16px;
}

.whu-insight-summary__text p:last-child {
    margin-bottom: 0;
}

/* Every section heading in the article (all <h2>) uses the H4 option. */
.whu-insight-page .whu-insight-section-eyebrow,
.whu-insight-page .whu-insight-takeaways__title,
.whu-insight-page .whu-insight-body__title,
.whu-insight-page .whu-insight-question__eyebrow {
    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);
}

/* Section 2: Key Takeaways. Left rule only, so it does not compete with the
   summary box above. */
.whu-insight-takeaways {
    border-left: 2px solid var(--whu-link);
    padding: 4px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.whu-insight-page .whu-insight-takeaways__title {
    margin: 0;
}

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

.whu-insight-takeaways__item {
    display: flex;
    gap: 18px;
    align-items: baseline;
}

.whu-insight-takeaways__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-insight-takeaways__text {
    font-size: var(--whu-body-size);
    line-height: var(--whu-body-lh);
    color: var(--whu-text);
}

/* Section 3: The Insight (Body Copy) */
.whu-insight-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.whu-insight-page .whu-insight-body__title {
    margin: 0 0 6px;
}

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


.whu-insight-body__content p:last-child {
    margin-bottom: 0;
}

.whu-insight-body__content a {
    color: var(--whu-link);
}

.whu-insight-body__content a:hover {
    color: var(--whu-hover);
}

.whu-insight-page .whu-insight-body__content h2,
.whu-insight-page .whu-insight-body__content h3,
.whu-insight-page .whu-insight-body__content 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);
}

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

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

.whu-insight-page .whu-insight-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-insight-question__quote::before,
.whu-insight-question__quote::after {
    content: none;
}

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

.whu-insight-topics-label {
    color: var(--whu-text);
}

.whu-insight-topics-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.whu-insight-page .whu-insight-topic-pill,
.whu-insight-page .whu-insight-explore-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-insight-page .whu-insight-topic-pill:hover,
.whu-insight-page .whu-insight-explore-pill:hover {
    background: var(--whu-link);
    border-color: var(--whu-link);
    color: var(--whu-bg);
    text-decoration: none;
}

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

.whu-insight-about-icon {
    flex: none;
    margin-top: 2px;
    stroke: var(--whu-text);
}

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

.whu-insight-about-text strong {
    font-weight: normal;
    color: var(--whu-heading);
}

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

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

.whu-insight-explore-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.whu-insight-latest-list {
    display: flex;
    flex-direction: column;
}

.whu-insight-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-insight-latest-item:last-child {
    border-bottom: 1px solid var(--whu-border);
}

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

.whu-insight-latest-item:hover .whu-insight-latest-item__title {
    color: var(--whu-link);
}

.whu-insight-latest-item__meta {
    font-size: var(--whu-small-size);
    line-height: var(--whu-small-lh);
    color: var(--whu-text);
}

/* ── Bottom Section: Continue Reading ───────────────────────────────────── */
.whu-insight-continue-section {
    background: var(--whu-tint);
    padding: 64px 0;
}

.whu-insight-continue-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-insight-page .whu-insight-continue-title,
.whu-insight-page .whu-insight-cta-band__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);
}

.whu-insight-page .whu-insight-continue-title {
    color: var(--whu-heading);
}

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

.whu-insight-page .whu-insight-continue-all:hover {
    color: var(--whu-hover);
}

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

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

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

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

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

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

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

.whu-insight-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--whu-link);
}

.whu-insight-card__thumb-placeholder svg {
    stroke: currentColor;
}

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

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

.whu-insight-page .whu-insight-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-insight-card:hover .whu-insight-card__title {
    color: var(--whu-link);
}

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

.whu-insight-card__meta {
    margin-top: auto;
    padding-top: 8px;
    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-insight-cta-band {
    background: var(--whu-heading);
    color: var(--whu-dark-text);
    padding: 56px 0;
}

.whu-insight-cta-band__eyebrow {
    color: var(--whu-on-dark-muted);
}

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

.whu-insight-cta-band__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 680px;
}

.whu-insight-page .whu-insight-cta-band__title {
    color: var(--whu-dark-text);
}

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

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

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

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

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

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

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

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

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

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

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

    .whu-insight-continue-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-insight-body-grid {
        padding-top: 28px;
        padding-bottom: 48px;
        gap: 28px;
    }

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

    .whu-insight-question,
    .whu-insight-summary {
        padding: 32px 24px;
    }

    .whu-insight-takeaways {
        padding: 4px 24px;
    }

    .whu-insight-continue-grid {
        grid-template-columns: 1fr;
    }
}
