/* Strategic execution case study: Stitch "Individual Case Study" editorial layout. */

main.container-fluid.theme-page:has(.eald-cstudy) {
    background: var(--eald-cstudy-page-bg, #f9f9f7);
}

main.container-fluid.theme-page:has(.eald-cstudy) > .eald-cstudy {
    margin-top: 0;
}

.eald-case-study-detail-shell.eald-cstudy {
    --eald-cstudy-page-bg: #f9f9f7;
    --eald-cstudy-bg: #f9f9f7;
    --eald-cstudy-text: #041920;
    --eald-cstudy-muted: #42484a;
    --eald-cstudy-secondary: #725b2b;
    --eald-cstudy-outline-variant: #c2c7ca;
    --eald-cstudy-surface-low: #f4f4f2;
    --eald-cstudy-surface-high: #e8e8e6;
    --eald-cstudy-impact-bg: #041920;
    --eald-cstudy-impact-fg: #ffffff;
    --eald-cstudy-impact-accent: #ffdea2;
    --eald-cstudy-card-border: rgba(42, 39, 37, 0.12);
    --eald-cstudy-stat-muted: #73787a;

    margin-bottom: 0;
    padding-top: clamp(2rem, 5vw, 3rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
    background: var(--eald-cstudy-bg);
    color: var(--eald-cstudy-text);
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] .eald-case-study-detail-shell.eald-cstudy,
html[data-bs-theme="dark"] .eald-case-study-detail-shell.eald-cstudy {
    --eald-cstudy-page-bg: #041920;
    --eald-cstudy-bg: #041920;
    --eald-cstudy-text: #f9fafb;
    --eald-cstudy-muted: #aebfc6;
    --eald-cstudy-secondary: #e9c176;
    --eald-cstudy-outline-variant: rgba(148, 163, 184, 0.35);
    --eald-cstudy-surface-low: rgba(15, 23, 35, 0.55);
    --eald-cstudy-surface-high: rgba(30, 41, 59, 0.45);
    --eald-cstudy-impact-bg: #0b1e26;
    --eald-cstudy-impact-fg: #f9fafb;
    --eald-cstudy-impact-accent: rgba(233, 193, 118, 0.82);
    --eald-cstudy-card-border: rgba(148, 163, 184, 0.22);
    --eald-cstudy-stat-muted: #94a3b8;
}

html[data-theme="dark"] main.container-fluid.theme-page:has(.eald-cstudy),
html[data-bs-theme="dark"] main.container-fluid.theme-page:has(.eald-cstudy) {
    background: var(--eald-cstudy-page-bg);
}

.eald-cstudy-container {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

/* Back link */
.eald-cstudy-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--eald-cstudy-stat-muted);
    transition: color 0.2s ease;
}

.eald-cstudy-back:hover,
.eald-cstudy-back:focus-visible {
    color: var(--eald-cstudy-text);
}

.eald-cstudy-back__icon {
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 1px;
}

.eald-cstudy-back__text {
    padding-top: 1px;
}

/* Header */
.eald-cstudy-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--eald-cstudy-secondary);
}

.eald-cstudy-display {
    margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--eald-cstudy-text);
}

/* Impact callout */
.eald-cstudy-impact {
    position: relative;
    padding: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
    border-radius: 0.5rem;
    background: var(--eald-cstudy-impact-bg);
    color: var(--eald-cstudy-impact-fg);
    box-shadow: 0 24px 50px rgba(4, 25, 32, 0.18);
    overflow: hidden;
}

html[data-theme="dark"] .eald-cstudy-impact,
html[data-bs-theme="dark"] .eald-cstudy-impact {
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.eald-cstudy-impact__glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 222, 162, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.eald-cstudy-impact__inner {
    position: relative;
    z-index: 1;
}

.eald-cstudy-impact__kicker {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--eald-cstudy-impact-accent);
}

.eald-cstudy-impact__stat {
    margin: 0;
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 1.55rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--eald-cstudy-impact-fg);
}

/* Hero image */
.eald-cstudy-hero-figure {
    margin: 0 0 clamp(2.5rem, 6vw, 4rem);
    border-radius: 0.75rem;
    overflow: hidden;
    filter: grayscale(1);
    transition: filter 0.65s ease;
}

.eald-cstudy-hero-figure:hover {
    filter: grayscale(0);
}

@media (prefers-reduced-motion: reduce) {
    .eald-cstudy-hero-figure {
        filter: none;
        transition: none;
    }
}

.eald-cstudy-hero-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

/* Individual coaching hero: subtle zoom toward central subject (high-angle crowd shot). */
.eald-cstudy-hero-figure--coaching-focus .eald-cstudy-hero-img {
    transform: scale(1.14);
    transform-origin: 50% 42%;
}

/* Sections */
.eald-cstudy-section {
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.eald-cstudy-section__ruleline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.eald-cstudy-section__growline {
    flex: 1;
    height: 1px;
    background: var(--eald-cstudy-outline-variant);
}

.eald-cstudy-section__shortline {
    width: 3rem;
    height: 1px;
    background: var(--eald-cstudy-outline-variant);
}

.eald-cstudy-section__label {
    margin: 0;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--eald-cstudy-secondary);
}

.eald-cstudy-prose {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--eald-cstudy-muted);
}

.eald-cstudy-prose p {
    margin: 0 0 1rem;
}

.eald-cstudy-prose p:last-child {
    margin-bottom: 0;
}

/* Metric cards */
.eald-cstudy-metrics {
    display: grid;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 640px) {
    .eald-cstudy-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

.eald-cstudy-metric {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 0.5rem;
    border: 1px solid var(--eald-cstudy-card-border);
    background: var(--eald-cstudy-surface-low);
}

.eald-cstudy-metric__kicker {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--eald-cstudy-stat-muted);
}

.eald-cstudy-metric__value {
    margin: 0 0 0.35rem;
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--eald-cstudy-text);
}

.eald-cstudy-metric__note {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--eald-cstudy-muted);
}

/* CTA */
.eald-cstudy-cta {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--eald-cstudy-outline-variant);
    text-align: center;
}

.eald-cstudy-cta__kicker {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--eald-cstudy-secondary);
}

.eald-cstudy-cta__btn {
    display: inline-block;
    padding: 0.9rem 2.75rem;
    border-radius: 0.125rem;
    background: var(--eald-cstudy-text);
    color: var(--eald-cstudy-bg);
    font-family: "Noto Serif", Georgia, serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.eald-cstudy-cta__btn:hover,
.eald-cstudy-cta__btn:focus-visible {
    opacity: 0.92;
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .eald-cstudy-cta__btn:hover,
    .eald-cstudy-cta__btn:focus-visible {
        transform: none;
    }
}
