/* ClickedTools — research articles stylesheet
   Editorial long-form layout sitting on top of case-study.css design tokens.
   Loaded AFTER case-study.css. Pages link both. */

.research-hero {
    position: relative;
    padding: 110px 24px 56px;
    background: var(--dark);
    color: #fff;
    overflow: hidden;
}

.research-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 600px at 20% 0%, rgba(212, 113, 58, 0.10), transparent 60%),
        radial-gradient(700px 500px at 90% 100%, rgba(123, 143, 168, 0.08), transparent 65%);
    pointer-events: none;
}

.research-hero-inner {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    z-index: 1;
}

/* In-hero video frame (video sits at top, text below it) */
.research-hero .research-video-frame {
    margin-bottom: 36px;
}

.research-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.research-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.research-breadcrumb a:hover,
.research-breadcrumb a:focus-visible {
    color: var(--green);
}

.research-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.2);
}

.research-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--green);
    background: rgba(212, 113, 58, 0.10);
    border: 1px solid rgba(212, 113, 58, 0.32);
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.research-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

.research-hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 12px;
    max-width: 38ch;
}

/* Text-led hero (no in-hero video). Bumps the typography back up so the
   page does not feel under-weighted. */
.research-hero--text {
    padding-top: 170px;
    padding-bottom: 72px;
}

.research-hero--text h1 {
    font-weight: 700;
    font-size: clamp(2.1rem, 4.8vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 22ch;
    margin-bottom: 22px;
}

.research-hero--text .research-hero-dek {
    font-size: clamp(1.04rem, 1.35vw, 1.16rem);
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 32px;
}

.research-hero--text .research-eyebrow {
    font-size: 0.74rem;
    padding: 8px 14px;
    margin-bottom: 22px;
}

.research-hero-dek {
    font-size: 0.96rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 60ch;
    margin-bottom: 24px;
}

.research-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.research-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.research-meta-item .lbl {
    font-family: var(--font-body);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.4);
}

.research-meta-item .val {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
}

/* PRIMARY CTA — compact dark band sitting between hero and body.
   Reader hits this before the long-form breakdown. */
.research-primary-cta {
    background: var(--dark);
    padding: 28px 24px 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.research-primary-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 100% 0%, rgba(212, 113, 58, 0.08), transparent 70%);
    pointer-events: none;
}

.research-primary-cta-inner {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.research-primary-cta-text {
    flex: 1 1 360px;
    min-width: 260px;
}

.research-primary-cta-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--green);
    margin-bottom: 8px;
}

.research-primary-cta-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.25;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.research-primary-cta-body {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    margin: 0;
    max-width: 60ch;
}

.research-primary-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--dark);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 22px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.research-primary-cta-btn:hover {
    background: #E07F46;
    transform: translateY(-1px);
}

.research-primary-cta-btn svg {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-primary-cta-btn:hover svg {
    transform: translateX(3px);
}

/* Optional standalone video section (used when video is NOT the hero).
   Current article layout places .research-video-frame inside .research-hero. */
.research-video-section {
    background: var(--dark);
    padding: 64px 24px 80px;
    position: relative;
    overflow: hidden;
}

.research-video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 400px at 80% 100%, rgba(212, 113, 58, 0.07), transparent 60%);
    pointer-events: none;
}

.research-video-inner {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.research-video-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--green);
    margin-bottom: 18px;
}

.research-video-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: research-pulse 1.6s infinite;
}

@keyframes research-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.research-video-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 28px;
    max-width: 24ch;
}

.research-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.research-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.research-video-caption {
    margin-top: 16px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 60ch;
}

/* NEXT-ARTICLE CARD — the primary CTA after the video */
.research-next {
    background: var(--dark);
    padding: 0 24px 96px;
}

.research-next-inner {
    max-width: 960px;
    margin: 0 auto;
}

.research-next-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    background: linear-gradient(135deg, #1E1E1C 0%, #242422 100%);
    border: 1px solid rgba(212, 113, 58, 0.20);
    border-radius: 20px;
    padding: 36px 32px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.research-next-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 200px at 100% 0%, rgba(212, 113, 58, 0.10), transparent 70%);
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0.6;
}

.research-next-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 113, 58, 0.50);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.research-next-card:hover::after {
    opacity: 1;
}

@media (min-width: 760px) {
    .research-next-card {
        grid-template-columns: 1.4fr auto;
        align-items: center;
        padding: 40px 44px;
        gap: 36px;
    }
}

.research-next-content {
    position: relative;
    z-index: 1;
}

.research-next-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--green);
    margin-bottom: 14px;
}

.research-next-eyebrow::before {
    content: '→';
    font-size: 0.95rem;
    line-height: 1;
}

.research-next-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    line-height: 1.18;
    letter-spacing: -0.022em;
    color: #fff;
    margin-bottom: 12px;
}

.research-next-dek {
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    max-width: 56ch;
}

.research-next-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--dark);
    background: var(--green);
    padding: 14px 22px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.research-next-card:hover .research-next-cta {
    background: #E07F46;
}

.research-next-cta svg {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-next-card:hover .research-next-cta svg {
    transform: translateX(4px);
}

/* The detail-body intro label that softens the existing breakdown */
.research-body-intro {
    max-width: 720px;
    margin: 0 auto 0;
    padding-bottom: 18px;
}

.research-body-intro p {
    font-family: var(--font-body);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    font-weight: 700;
}

/* ARTICLE BODY */
.research-body {
    background: var(--cream);
    padding: 88px 24px 120px;
}

.research-body-inner {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--font-body);
    color: var(--text-body);
}

.research-body p,
.research-body ul,
.research-body ol {
    font-size: 1.04rem;
    line-height: 1.78;
    color: var(--text-body);
}

.research-body p {
    margin-bottom: 1.5em;
}

.research-body p:has(+ h2),
.research-body p:has(+ h3) {
    margin-bottom: 2em;
}

.research-body h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.05rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--dark);
    margin: 3.2em 0 0.8em;
    scroll-margin-top: 90px;
}

.research-body h2:first-child {
    margin-top: 0;
}

.research-body h2::before {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--green);
    margin-bottom: 22px;
    border-radius: 100px;
}

.research-body h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--dark);
    margin: 2.2em 0 0.7em;
    scroll-margin-top: 90px;
}

.research-body ul,
.research-body ol {
    margin: 0 0 1.5em 0;
    padding-left: 0;
    list-style: none;
}

.research-body li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.55em;
    line-height: 1.7;
}

.research-body ul > li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.78em;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

.research-body ol {
    counter-reset: research-ol;
}

.research-body ol > li {
    counter-increment: research-ol;
}

.research-body ol > li::before {
    content: counter(research-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--green);
    line-height: 1.78;
}

.research-body strong {
    color: var(--dark);
    font-weight: 700;
}

.research-body em {
    font-style: italic;
    color: var(--dark);
}

.research-body a {
    color: var(--green-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s;
}

.research-body a:hover,
.research-body a:focus-visible {
    color: var(--green);
}

/* Section break: light horizontal rule + space */
.research-rule {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 4em 0;
    max-width: 280px;
}

/* Callout boxes for critical info */
.research-callout {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid var(--green);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 2em 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.research-callout--warn {
    border-left-color: #B55E2E;
    background: linear-gradient(180deg, #FFF8F2 0%, #FFFFFF 100%);
}

.research-callout-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--green);
    margin-bottom: 10px;
}

.research-callout--warn .research-callout-label {
    color: #B55E2E;
}

.research-callout p {
    margin-bottom: 0;
    font-size: 0.99rem;
    line-height: 1.7;
    color: var(--text-body);
}

.research-callout p + p {
    margin-top: 1em;
}

/* Checklist sections */
.research-checklist h3 {
    margin-top: 1.4em;
    margin-bottom: 0.4em;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
    color: var(--text-muted);
    font-weight: 700;
}

.research-checklist ul > li {
    padding-left: 36px;
    margin-bottom: 0.7em;
}

.research-checklist ul > li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    border-radius: 5px;
    top: 0.42em;
    left: 0;
}

/* Article footer / CTA */
.research-footer-cta {
    background: var(--dark);
    color: #fff;
    padding: 88px 24px;
}

.research-footer-cta-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.research-footer-cta .section-label {
    color: var(--green);
    margin-bottom: 18px;
}

.research-footer-cta h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.6vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 18px;
}

.research-footer-cta p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 52ch;
    margin: 0 auto 28px;
}

.research-footer-cta .btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.research-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 24px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s;
}

.research-cta-btn--primary {
    background: var(--green);
    color: var(--dark);
}

.research-cta-btn--primary:hover {
    transform: translateY(-1px);
    background: #E07F46;
}

.research-cta-btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.research-cta-btn--secondary:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

/* Disclaimer footnote */
.research-disclaimer {
    margin-top: 4em;
    padding: 18px 22px;
    border: 1px dashed rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    font-size: 0.84rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.65;
}

/* LISTING PAGE */
.research-list-hero {
    background: var(--dark);
    color: #fff;
    padding: 180px 24px 80px;
}

.research-list-hero-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.research-list-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 18px;
    max-width: 16ch;
}

.research-list-hero h1 .green {
    color: var(--green);
}

.research-list-hero p {
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    max-width: 56ch;
}

.research-list-grid-wrap {
    background: var(--cream);
    padding: 72px 24px 120px;
}

.research-list-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 760px) {
    .research-list-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.research-list-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 36px 32px 32px;
    text-decoration: none;
    color: var(--text-body);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.research-list-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--green);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(20, 20, 19, 0.10);
    border-color: rgba(0, 0, 0, 0.10);
}

.research-list-card:hover::before {
    transform: scaleY(1);
}

.research-list-card-num {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--green);
}

.research-list-card h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--dark);
}

.research-list-card p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.research-list-card-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.research-list-card-meta .pill {
    background: rgba(212, 113, 58, 0.10);
    color: var(--green-dim);
    padding: 5px 12px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}

.research-list-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--dark);
    margin-top: auto;
    padding-top: 8px;
}

.research-list-card-link svg {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-list-card:hover .research-list-card-link svg {
    transform: translateX(3px);
}

/* On mobile, dial back hero padding */
@media (max-width: 600px) {
    .research-hero,
    .research-list-hero {
        padding-top: 130px;
    }

    .research-body {
        padding: 56px 20px 72px;
    }

    .research-body p,
    .research-body ul,
    .research-body ol {
        font-size: 1rem;
    }
}
