﻿/* ── Case Study Page Styles ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: #ffffff;
    color: #233D4D;
}

.cs-hero {
    background: #ffffff;
    padding: 60px 2rem 70px;
    position: relative;
    overflow: hidden;
}

.cs-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cs-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #233D4D;
    margin-bottom: 1rem;
}

.cs-hero-subtitle {
    font-size: 1.05rem;
    color: #4a6473;
    line-height: 1.7;
    max-width: 60ch;
    margin-bottom: 2rem;
}

.cs-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cs-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    background: rgba(35,61,77,0.08);
    border: 1px solid rgba(35,61,77,0.15);
    color: #233D4D !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cs-btn-back:hover {
    background: rgba(35,61,77,0.14);
    border-color: rgba(35,61,77,0.3);
    color: #233D4D !important;
}

.cs-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #FE7F2D, #FE7F2D);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(254,127,45,0.3);
}

.cs-btn-view:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #233D4D !important;
}

/* Overview bar */
.cs-overview {
    background: #f5f7f8;
    border-bottom: 1px solid rgba(35,61,77,0.08);
}

.cs-overview-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cs-overview-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(35,61,77,0.1);
}

.cs-overview-item:first-child {
    border-left-color: #FE7F2D;
}

.cs-overview-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a6473;
}

.cs-overview-value {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #233D4D;
}

/* Body */
.cs-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Poster preview */
.cs-poster-preview {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(35,61,77,0.17);
    border: 1px solid rgba(35,61,77,0.1);
}

.cs-poster-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.cs-poster-caption {
    background: #f5f7f8;
    padding: 0.85rem 1.25rem;
    font-size: 0.82rem;
    color: #4a6473;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(35,61,77,0.08);
}

/* Divider */
.cs-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(35,61,77,0.1), transparent);
}

/* Section blocks */
.cs-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cs-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--site-orange-ink);
    background: rgba(254,127,45,0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    width: fit-content;
}

.cs-section h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #233D4D;
    line-height: 1.25;
}

.cs-section p {
    font-size: 1rem;
    color: #4a6473;
    line-height: 1.8;
}

/* Steps */
.cs-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cs-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(35,61,77,0.04);
    border-radius: 14px;
    border: 1px solid rgba(35,61,77,0.08);
}

.cs-step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FE7F2D, #FE7F2D);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-step-content h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #233D4D;
    margin-bottom: 0.3rem;
}

.cs-step-content p {
    font-size: 0.9rem;
    color: #4a6473;
    line-height: 1.65;
    margin: 0;
}

/* Tools */
.cs-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.cs-tool {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: rgba(35,61,77,0.04);
    border: 1px solid rgba(35,61,77,0.08);
    border-radius: 12px;
}

.cs-tool-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FE7F2D, #FE7F2D);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.cs-tool-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #233D4D;
    margin-bottom: 0.2rem;
}

.cs-tool-use {
    font-size: 0.78rem;
    color: #4a6473;
    line-height: 1.5;
}

/* Outcomes */
.cs-outcomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.cs-outcome {
    padding: 1.25rem;
    background: rgba(35,61,77,0.04);
    border: 1px solid rgba(35,61,77,0.08);
    border-top: 3px solid #FE7F2D;
    border-radius: 14px;
    text-align: center;
}

.cs-outcome-icon {
    font-size: 1.4rem;
    color: var(--site-orange-ink);
    margin-bottom: 0.5rem;
}

.cs-outcome-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #233D4D;
    margin-bottom: 0.3rem;
}

.cs-outcome-desc {
    font-size: 0.78rem;
    color: #4a6473;
    line-height: 1.5;
}

/* Lessons */
.cs-lessons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.cs-lesson {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: rgba(35,61,77,0.04);
    border-radius: 12px;
    border: 1px solid rgba(35,61,77,0.08);
}

.cs-lesson-icon {
    color: var(--site-orange-ink);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.cs-lesson p {
    font-size: 0.9rem;
    color: #4a6473;
    line-height: 1.65;
    margin: 0;
}

.cs-lesson strong {
    color: #233D4D;
    font-weight: 700;
}

/* Force button text colours — overrides global a{}
.cs-hero-actions .cs-btn-view,
.cs-hero-actions .cs-btn-back {
    color: inherit !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cs-hero { padding: 40px 1.25rem 60px; }
    .cs-overview-inner { grid-template-columns: repeat(2, 1fr); padding: 1.25rem; }
    .cs-body { padding: 2.5rem 1.25rem; gap: 3rem; }
    .cs-tools { grid-template-columns: 1fr; }
    .cs-outcomes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .cs-overview-inner { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .cs-outcomes { grid-template-columns: 1fr; }
    .cs-hero-actions { flex-direction: column; }
    .cs-btn-back, .cs-btn-view { justify-content: center; }
}

/* ── LIKE & SHARE ───────────────────────────────────── */
.cs-engage {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(35,61,77,0.03);
    border: 1px solid rgba(35,61,77,0.08);
    border-radius: 14px;
}
@keyframes like-pop { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(1)} }

.cs-engage-right { display: flex; align-items: center; gap: 0.5rem; }
.cs-share-label { font-size: 0.78rem; color: #4a6473; margin-right: 0.25rem; }
.cs-share-btn {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; cursor: pointer;
    border: 1px solid rgba(35,61,77,0.12);
    color: #4a6473 !important;
    background: rgba(35,61,77,0.04);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    font-family: inherit;
}
.cs-share-btn svg { display: block; }
.cs-share-btn:hover { transform: translateY(-2px); }
.cs-share-btn--twitter:hover { background: #000; border-color: #555; color: #233D4D !important; }
.cs-share-btn--linkedin:hover { background: #FE7F2D; border-color: #FE7F2D; color: #fff !important; }
.cs-share-btn--copy:hover { background: rgba(254,127,45,0.12); border-color: rgba(254,127,45,0.4); color: var(--site-orange-ink) !important; }
.cs-share-btn--copy.copied { background: rgba(254,127,45,0.12); border-color: rgba(254,127,45,0.35); color: var(--site-orange-ink) !important; }
@keyframes comment-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* Responsive */
@media (max-width: 600px) {
    .cs-engage { flex-direction: column; align-items: flex-start; }
}

/* ── LIGHTBOX ───────────────────────────────────────── */
.cs-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    animation: lb-in 0.2s ease;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.cs-lightbox__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.cs-lightbox__close {
    position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(35,61,77,0.1);
    border: 1px solid rgba(35,61,77,0.2);
    color: #233D4D; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.cs-lightbox__close:hover { background: rgba(254,127,45,0.3); transform: scale(1.1); }

.cs-lightbox__content {
    position: relative; z-index: 1;
    max-width: min(90vw, 900px);
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    animation: lb-scale 0.25s ease;
}
@keyframes lb-scale { from { transform: scale(0.92); } to { transform: scale(1); } }

.cs-lightbox__content img {
    width: 100%; height: auto;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(35,61,77,0.24);
    border: 1px solid rgba(35,61,77,0.1);
}

.cs-lightbox__download {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.6rem 1.25rem; border-radius: 8px;
    background: rgba(35,61,77,0.1);
    border: 1px solid rgba(35,61,77,0.2);
    color: #233D4D !important; font-size: 0.875rem; font-weight: 700;
    transition: background 0.2s;
}
.cs-lightbox__download:hover { background: rgba(254,127,45,0.25); border-color: rgba(254,127,45,0.5); }

/* =====================================================
   EDITORIAL LAYER — aligns the case study with the
   articles and the site system.
   ===================================================== */
.cs-hero {
  background: var(--site-bg, #ffffff) !important;
  border-bottom: 1px solid var(--site-line, rgba(35,61,77,.08)) !important;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem clamp(2.5rem, 5vw, 3.5rem) !important;
}
.cs-hero::before, .cs-hero::after { display: none !important; }
.cs-hero-inner { max-width: 760px !important; }
.cs-kicker {
  display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.25rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--site-orange-ink);
}
.cs-kicker a { color: var(--site-text-3, #4a6473); text-decoration: none; }
.cs-kicker a:hover { color: #233D4D; }
.cs-kicker span { color: var(--site-text-3, #4a6473); font-weight: 400; }
.cs-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.35rem) !important; line-height: 1.08 !important;
  letter-spacing: -0.03em !important; text-wrap: balance; max-width: 18ch;
}
.cs-hero-subtitle { color: var(--site-text-2, #4a6473) !important; font-size: clamp(1.05rem, 1.6vw, 1.15rem) !important; line-height: 1.75 !important; max-width: 60ch; }
.cs-hero-actions { gap: 0.85rem !important; margin-top: 2rem !important; }
.cs-btn-view, .cs-btn-back {
  height: 46px; padding: 0 1.3rem !important; border-radius: 10px !important;
  font-weight: 600 !important; box-shadow: none !important; transform: none !important;
  display: inline-flex !important; align-items: center; gap: 0.55rem;
}
.cs-btn-view { background: var(--site-orange, #FE7F2D) !important; border: 1px solid var(--site-orange, #FE7F2D) !important; color: #fff !important; }
.cs-btn-view:hover { background: #e96f1f !important; }
.cs-btn-back { background: transparent !important; border: 1px solid var(--site-line-2, rgba(35,61,77,.14)) !important; color: #233D4D !important; }
.cs-btn-back:hover { border-color: rgba(35,61,77,.35) !important; }

/* Overview: hairline facts row */
.cs-overview { background: var(--site-bg, #ffffff) !important; border: 0 !important; }
.cs-overview-inner { max-width: 760px !important; border-bottom: 1px solid var(--site-line, rgba(35,61,77,.08)); padding: 1.5rem 0 !important; }
.cs-overview-item { border-left: 0 !important; padding-left: 0 !important; }
.cs-overview-item + .cs-overview-item { border-left: 1px solid var(--site-line, rgba(35,61,77,.08)) !important; padding-left: 1.25rem !important; }

/* Sections: numbered eyebrow labels */
.cs-body { counter-reset: cs-sec; }
.cs-section-label {
  counter-increment: cs-sec;
  background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important;
  display: flex !important; align-items: center; gap: 0.75rem;
  font-size: 0.78rem !important; font-weight: 700 !important; letter-spacing: 0.14em !important;
  text-transform: uppercase; color: var(--site-orange-ink) !important;
}
.cs-section-label::before {
  content: counter(cs-sec, decimal-leading-zero);
  color: var(--site-text-3, #4a6473); font-variant-numeric: tabular-nums;
}
.cs-section h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem) !important; letter-spacing: -0.02em !important; line-height: 1.2 !important; }
.cs-divider { background: var(--site-line, rgba(35,61,77,.08)) !important; height: 1px !important; }

/* Steps: an indexed list instead of stacked cards */
.cs-steps { border-top: 1px solid var(--site-line-2, rgba(35,61,77,.14)); gap: 0 !important; }
.cs-step {
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  border-bottom: 1px solid var(--site-line, rgba(35,61,77,.08)) !important;
  padding: 1.25rem 0 !important; gap: 1.25rem !important;
}
.cs-step-num {
  background: none !important; box-shadow: none !important; border-radius: 0 !important;
  width: 2.5rem !important; height: auto !important; min-width: 2.5rem;
  font-family: var(--site-display, sans-serif) !important; font-weight: 800 !important;
  font-size: 1.5rem !important; line-height: 1 !important; letter-spacing: -0.04em;
  color: transparent !important; -webkit-text-stroke: 1px rgba(254,127,45,.75);
  justify-content: flex-start !important;
}

/* Tools and outcomes: flat tiles, outlined icons */
.cs-tool, .cs-outcome {
  background: #f5f7f8 !important; border: 1px solid var(--site-line-2, rgba(35,61,77,.14)) !important;
  border-radius: 14px !important; box-shadow: none !important; transform: none !important;
}
.cs-outcome { text-align: left !important; }
.cs-tool-icon, .cs-outcome-icon {
  background: transparent !important; box-shadow: none !important;
  border: 1px solid rgba(254,127,45,.45) !important; color: var(--site-orange-ink) !important;
}
.cs-tool-icon i, .cs-outcome-icon i { color: var(--site-orange-ink) !important; }
.cs-outcome-icon { margin-left: 0 !important; margin-right: 0 !important; }

/* Lessons: hairline rows */
.cs-lesson {
  background: none !important; border: 0 !important; border-radius: 0 !important;
  border-bottom: 1px solid var(--site-line, rgba(35,61,77,.08)) !important;
  padding: 1rem 0 !important;
}
.cs-lesson i { color: var(--site-orange-ink) !important; }

/* Share row */
.cs-engage { background: none !important; border: 0 !important; padding: 0 !important; justify-content: flex-start !important; }
.cs-share-label { font-size: 0.75rem !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.cs-continue { padding-left: 0 !important; padding-right: 0 !important; }
.cs-kicker a { color: var(--site-text-3, #4a6473) !important; }
.cs-kicker a:hover { color: #233D4D !important; }
.cs-kicker { color: var(--site-orange-ink) !important; }
