/* ── CASE STUDY INNER PAGES ── */

/* ── PAGE WRAPPER ─────────────────────────────────────────── */
.cs-page {
    width: 100%;
}

/* ── FULL-BLEED PANELS ────────────────────────────────────── */
.cs-panel-white {
    background: var(--bg-card);
    width: 100%;
}

.cs-panel-grey {
    background: var(--bg);
    width: 100%;
}

/* ── INNER CONSTRAINED CONTENT ────────────────────────────── */
.cs-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 96px 48px 64px;
}

#cs-inner-extra-padding {
    padding-top: 60px;
}

/* ── NAV PROJECT TITLE (fade in on scroll) ────────────────── */
.nav-project-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    margin-left: 12px;
}

.nav-project-title span {
    color: var(--green);
}


.nav-project-title.visible {
    opacity: 1;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.cs-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cs-h1 {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.04;
    margin-bottom: 14px;
    color: var(--text);
}

.cs-h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--text);
}

.cs-g2-left {
    max-width: 65%;
    margin-right: 5%;
}

.cs-g2-right {
    width: 35%;
}

.cs-ov-title,
.cs-h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 32px;
    margin-bottom: 14px;
    color: var(--text);
}

.cs-body {
    font-size: 16px;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 42px;
}

.cs-sl,
h8 {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--green);
    display: block;
    margin-bottom: 16px;
}

.cs-rlabel {
    font-size: 8.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin: 16px 0 8px;
    display: block;
}

/* ── GRIDS ────────────────────────────────────────────────── */
.cs-g2 {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
}

.cs-g2w {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
}

.cs-g3w {
    display: flex;
    grid-template-columns: 2fr 2fr;
    gap: 32px;
}


.cs-g4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.cs-g3w > .cs-g4 {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 32px;
}


/* ── META TABLE ───────────────────────────────────────────── */
.cs-meta {
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    background: var(--bg-card-dummy);
}

.cs-mr {
    display: flex;
    gap: 24px;
    vertical-align: middle;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.cs-mr:last-child {
    border-bottom: none;
}

.cs-mk {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    vertical-align: middle;
    color: var(--text-muted);
    min-width: 52px;
    padding-top: 3px;
}

.cs-mv {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
}

.cs-mv a {
    text-decoration: none;
    color: var(--green);
}

.cs-mv a:hover {
    text-decoration: underline;
    color: var(--green-light);
}


/* ── PHASE CARDS ──────────────────────────────────────────── */
.cs-phases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.theme08.overview .cs-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.cs-ph {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.cs-phn {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--green);
    margin-bottom: 8px;
}

.cs-ph h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    min-height: 46px;
    padding-bottom: 8px;
}

.cs-ph p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.65;
}


#appscreensmall {
    width: 68%;
    margin-top: 24px;
}

#appscreenfull {
    width: 100%;
}

/* ── RESEARCH / STEP CARDS (same style as phase cards) ───── */
.cs-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 16px;
    background: var(--bg-card);
}

.cs-card-lbl {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.cs-card-green {
    color: var(--green) !important;
}

/* ── PHONE PLACEHOLDERS ───────────────────────────────────── */
.cs-phones6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
}

.cs-pxs {
    border-radius: 9px;
    aspect-ratio: 9/18;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.cs-pxs-wf {
    background: var(--border);
}

.cs-pxs-hifi {
    background: #c8d8ec;
}

.cs-phone-lg {
    background: var(--surface);
    border-radius: 18px;
    aspect-ratio: 9/19;
    /*box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8.5px;
    color: var(--text-faint);
}

.cs-wf-split {
    /*display: grid;
    grid-template-columns: repeat(4, 1fr) 14px 1fr 1fr;
    gap: 7px;*/
    margin: 42px 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.cs-wf-split img {
    width: 100%;
    height: auto;
}

.cs-wf-split span {
    margin: 24px 0 12px;
    color: var(--text);
}

.cs-wf-split:last-child {
    border-bottom: 0px;
    padding-bottom: 0px;
}


.cs-img-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 24px;
    margin-bottom: 42px;
}

.cs-img-split img {
    width: 90%;
    height: auto;
    text-align: center;
    margin: 0 auto;
}


.cs-img-split .cs-phone-lg {
    padding: 24px;
    display: grid;
    grid-gap: 0;
    gap: 0px;
    align-items: baseline;
}

.cs-img-split .cs-phone-lg span,
.cs-phone-solo span,
h8 {
    color: var(--text);
    font-weight: 700;
    padding-left: 12px;
    text-transform: none;
}

.cs-phone-solo {
    background: var(--surface);
    padding: 40px 24px 24px;
    border-radius: 18px;
    /*box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);*/
    display: inline-block;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    margin-bottom: 42px;
}

.cs-phone-solo.no-background-color {
    background: none;
    padding-left: 16px;
    padding-right: 16px;
}


.cs-less-height {
    margin-top: 40px;
}

.cs-phone-solo-left,
.cs-phone-solo p {
    display: block;
    width: 100%;
    text-align: left;
}

.margin-fix {
    margin-bottom: 32px;
}

.cs-phone-solo p {
    font-size: 14px;
    line-height: auto;
    padding-left: 12px;
    margin: 12px 0 24px;
}

.cs-phone-solo-wrapper .reduced {
    height: auto;
    width: 95%;
}

.lookup {
    vertical-align: top;
}

.imaverticalpng {
    max-width: 90%;
    height: auto;
}

/* ── INSIGHT BOX — blue tint ──────────────────────────────── */
#process {
    background: var(--green-pale);
    border-top: 1px solid var(--green-glow);
    border-bottom: 1px solid var(--green-glow);
}


.cs-insight-box,
.cs-insight-box-inverted {
    background: #ddeeff;
    border-radius: 0px 8px 8px 0;
    padding: 18px 22px;
    display: flex;
    border-left: 8px solid var(--blue2);
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.cs-insight-box-inverted {
    border-left-width: 0;
    border-right: 8px solid var(--blue2);
    border-radius: 8px 0px 0px 8px;
}


[data-theme="dark"] .cs-insight-box,
[data-theme="dark"] .cs-insight-box-inverted {
    background: #03101a;
    border-color: #11222f;
}

.cs-iq p {
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    color: #1a1a18;
    line-height: 1.3;
    margin-bottom: 4px;
}

[data-theme="dark"] .cs-iq p {
    color: #e8f2ff;
}

.cs-iq cite {
    font-size: 8.5px;
    color: #5a7a9a;
    font-style: normal;
}

[data-theme="dark"] .cs-iq cite {
    color: #7aa0c0;
}

.cs-ik {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3d6fa0;
    margin-bottom: 6px;
    display: block;
}

[data-theme="dark"] .cs-ik {
    color: #7ab0e0;
}

.cs-insight-img {
    width: auto;
    display: inline-block;
    justify-content: right;
    overflow: hidden;
    background: url(../IMGS/theme6/t6_5.svg) no-repeat center right;
    background-size: contain;
    min-height: 120px;
    min-width: 120px;
}

.cs-insight-img .theme5 {
    overflow: hidden;
    background: url(../IMGS/theme6/t6_5.svg) no-repeat center right;
    background-size: contain;
}

.theme4 .cs-insight-img {
    overflow: hidden;
    background: url(../IMGS/theme4/th0_000.svg) no-repeat center right;
    background-size: contain;
}

.cs-insight-img.theme8 {
    overflow: hidden;
    background: url(../IMGS/theme8/th8_000.svg) no-repeat center right;
    background-size: contain;
}


.theme1 .cs-insight-img {
    overflow: hidden;
    background: url(../IMGS/theme1/t5_01_4.svg) no-repeat center right;
    background-size: contain;
}

.theme3.cs-insight-img {
    overflow: hidden;
    background: url(../IMGS/theme3/t3_.svg) no-repeat center right;
    background-size: contain;
}

.theme2 .cs-insight-img {
    overflow: hidden;
    background: url(../IMGS/theme2/t2_.svg) no-repeat center right;
    background-size: contain;
}


[data-theme="dark"] .cs-insight-img {
    width: auto;
    display: inline-block;
    justify-content: right;
    overflow: hidden;
    background: url(../IMGS/theme6/t6_5_dk.svg) no-repeat center right;
    background-size: contain;
    min-height: 120px;
    min-width: 120px;
}

[data-theme="dark"] .theme4 .cs-insight-img {
    overflow: hidden;
    background: url(../IMGS/theme4/th0_001.svg) no-repeat center right;
    background-size: contain;
}

[data-theme="dark"] .cs-insight-img.theme5 {
    overflow: hidden;
    background: url(../IMGS/theme5/t5_01_4.svg) no-repeat center right;
    background-size: contain;
}

[data-theme="dark"] .cs-insight-img.theme8 {
    overflow: hidden;
    background: url(../IMGS/theme8/th8_001.svg) no-repeat center right;
    background-size: contain;
}

[data-theme="dark"] .theme1 .cs-insight-img {
    overflow: hidden;
    background: url(../IMGS/theme1/t5_01_4_2.svg) no-repeat center right;
    background-size: contain;
}

[data-theme="dark"] .theme3.cs-insight-img {
    overflow: hidden;
    background: url(../IMGS/theme3/t3_.svg) no-repeat center right;
    background-size: contain;
}


[data-theme="dark"] .theme2 .cs-insight-img {
    overflow: hidden;
    background: url(../IMGS/theme2/t2_.svg) no-repeat center right;
    background-size: contain;
}


/* ── KIDS CLUB ──────────────────────────────────────── */
.patch5 .cs-card-lbl,
.patch5 .cs-probh,
.theme4 .cs-probh

/*.patch8 .cs-card-lbl*/
    {
    min-height: 46px;
}


/* ── 3-COLUMN PROBLEM GRID ────────────────────────────────── */
.cs-probs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0 4px;
}

.cs-probs2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 12px 0 4px;
}

.cs-probs5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 12px 0 4px;
}


.cs-prob {
    padding: 14px 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cs-probh {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.cs-card p,
.cs-prob p,
.small-size-font {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── SOLUTION LAYOUT ──────────────────────────────────────── */
.cs-sol2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 26px;
}

.cs-annots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
}

.cs-ann {
    border-left: 2px solid var(--border);
    padding-left: 10px;
}

.cs-ann p {
    font-size: 9.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

.cs-img-box {
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ── GREY CONTAINER (widgets, hero states) ────────────────── */
.cs-grey-box {
    background: var(--bg);
    border-radius: 14px;
    padding: 20px;
}

/* ── WIDGETS ──────────────────────────────────────────────── */
.cs-wgts {
    display: flex;
    gap: 8px;
}

.cs-wgt {
    flex: 1;
    border-radius: 10px;
    padding: 12px 10px;
    min-height: 66px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cs-wt {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.cs-wl {
    font-size: 7.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* ── WEATHER STATE CARDS ──────────────────────────────────── */
.cs-wxgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.cs-wxc {
    border-radius: 10px;
    padding: 13px 11px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cs-wxtemp {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.cs-wxdesc {
    font-size: 7.5px;
    font-weight: 500;
    margin-top: 2px;
}

.cs-wxicon {
    font-size: 15px;
    margin-bottom: 4px;
}

.cs-wx-light .cs-wxtemp,
.cs-wx-light .cs-wxdesc {
    color: #fff;
}

.cs-wx-muted .cs-wxtemp,
.cs-wx-muted .cs-wxdesc {
    color: #6a8090;
}

.cs-wx-dark .cs-wxtemp,
.cs-wx-dark .cs-wxdesc {
    color: rgba(255, 255, 255, 0.85);
}

.cs-wxblank {
    border-radius: 10px;
    min-height: 76px;
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .cs-wxblank {
    background: rgba(255, 255, 255, 0.04);
}

/* ── ICON GRID ────────────────────────────────────────────── */
.cs-iconpanel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
}

.cs-icat {
    margin-bottom: 13px;
}

.cs-icat:last-child {
    margin-bottom: 0;
}

.cs-icatlbl {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 7px;
}

.cs-irow {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.cs-ii {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 48px;
}

.cs-isym {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.cs-ilbl {
    font-size: 7.5px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}


.icon-grid {
    display: flex;
    grid-template-columns: 6fr 6fr;
    align-items: start;
    gap: 12px;
    margin-bottom: 0;
    background: var(--surface);
    padding: 12px;
    border-radius: 18px;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

.icon-grid-wrapper {
    width: 100%;
}

.icon-grid-wrapper strong {
    margin-bottom: 4px;
    display: block;
    font-size: 12px;
    width: auto;
    min-height: 38px;
}

.icon-grid-img {}


/* ── OUTCOME / REFLECTIONS ────────────────────────────────── */
.cs-outcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
}

.cs-outcome-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cs-outcome-h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 5px 0 8px;
    line-height: 1.35;
    color: var(--text);
}

/* ── IMAGE PLACEHOLDER ────────────────────────────────────── */
.cs-imgph {
    background: var(--surface);
    border: 1px solid var(--surface);
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text);
    padding: 24px 32px;
    min-height: 320px;
}

.cs-imgph p {
    display: block;
    padding-bottom: 12px;
}

/* ── FOOTER FULL WIDTH ────────────────────────────────────── */
.site-footer-wrap {
    width: 100%;
}


/* ── Chapter divider ── */
.cs-chapter {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 64px 0 48px;
}

.cs-chapter-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent, #0066cc);
    white-space: nowrap;
    opacity: .7;
}

.cs-chapter-line {
    flex: 1;
    height: 1px;
    background: var(--border, #e0e0e0);
}

.cs-chapter-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-secondary, #888);
    white-space: nowrap;
}

/* ── Chapter intro banner ── */
.cs-chapter-banner {
    border-left: 3px solid var(--accent, #0066cc);
    padding: 24px 28px;
    margin-bottom: 40px;
    background: var(--surface-subtle, rgba(0, 102, 204, .04));
    border-radius: 0 8px 8px 0;
}

.cs-chapter-banner .cs-eyebrow {
    margin-bottom: 6px;
}

.cs-chapter-banner .cs-h2 {
    margin-bottom: 10px;
}

/* ── Pill tag ── */
.cs-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--tag-bg, #f0f4f8);
    color: var(--text-secondary, #666);
    margin-right: 6px;
    margin-bottom: 16px;
}

.cs-tag.tag-concept {
    background: #fff4e0;
    color: #a06000;
}

.cs-tag.tag-shipped {
    background: #e6f4ea;
    color: #1a7a3a;
}

.cs-tag.tag-ui {
    background: #eef2ff;
    color: #3a4cc0;
}

/* ── Two-up screen layout (lighter than cs-img-split) ── */
.cs-screens-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 32px 0;
}

.cs-screens-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.cs-screen-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aligned-center {
    text-align: center;
    background: var(--bg);
    padding: 24px 0;
}


#accommodation .cs-screen-item {
    text-align: center;
    background: var(--bg);
    padding: 24px 0;
}

.cs-screen-round-pic {
    width: 90%;
    height: auto;
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    border: 3px solid #000;
    margin: 0 auto;
}

#illustrations .cs-screen-item img,
#account-config .cs-screen-item img {
    background: var(--bg);
    border-radius: 4px;
}


#account-config .cs-screen-item img {
    border: 2px solid var(--bg);
}


.cs-screen-item img {
    width: 100%;
    border-radius: 12px;
}

#app-shell .cs-screen-item img,
#messages .cs-screen-item img,
#validation .cs-screen-item img,
#account-config .cs-screen-item img,
#tables .cs-screen-item img,
#supplier-review .cs-screen-item img,
#email .cs-screen-item img {
    width: 100%;
    border-radius: 4px;
}

.cs-screen-caption {
    font-size: 12px;
    color: var(--text-secondary, #888);
    font-weight: 500;
}

/* ── Before / After ── */
.cs-before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border, #e5e5e5);
}

.cs-ba-side {
    padding: 16px 20px;
}

.cs-ba-side:first-child {
    border-right: 1px solid var(--border, #e5e5e5);
}

.cs-ba-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: .5;
}

.cs-ba-side:first-child .cs-ba-label {
    color: var(--text, #333);
}

.cs-ba-side:last-child .cs-ba-label {
    color: var(--accent, #0066cc);
}

.cs-ba-side img {
    width: 100%;
    border-radius: 8px;
}

/* ── Concept notice ── */
.cs-concept-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #fff8e6;
    border: 1px solid #f5d78a;
    border-radius: 8px;
    margin-bottom: 32px;
    font-size: 13px;
    color: #7a5500;
    line-height: 1.5;
}

.cs-concept-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.rounder {
    border-radius: 24px;
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cs-panel-white {}

    .nav-left {
        line-height: 14px;
    }

    .cs-g2 {
        display: inline-block;
    }

    .cs-g2-left {
        max-width: 100%;
        margin-right: 0%;
    }

    .cs-g2-right {
        width: 100%;
    }

    .nav-project-title {
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 170px;
        white-space: nowrap;
    }

    .cs-phases {
        display: grid;
        grid-template-columns: repeat(2, 1fr);

    }

    .cs-g4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 13px;
    }

    .cs-phone-solo-wrapper img {
        width: 90%;
        height: auto;
    }

    .cs-phone-solo {
        background: var(--surface);
        padding: 24px 12px 24px;
        margin-bottom: 22px;
        font-size: 12px;
    }

    .icon-grid-img imgx {
        width: 30px;
        height: auto;
    }

    .icon-grid-wrapper strong {
        height: 58px;
    }

    .cs-outcome-grid {
        display: inline-block;
    }

    .cs-less-height {
        margin-top: 16px;
    }

    .cs-imgph.prev-version {
        display: none;
    }

    .cs-imgph.prev-version img {
        height: auto;
        width: 100%;
    }

    .cs-inner {
        padding-bottom: 24px;
    }

    /* ── 11P ─── */
    #cocus .retro-sticker-img {
        width: 100%;
        height: auto;
        text-align: center;
        margin: 0 auto;
    }

    .cs-h1 {
        font-size: 48px;
    }

    /* ── 08P ─── */
    .theme08 .cs-phases,
    .theme08 .cs-probs2,
    .patch8 .cs-g4 {
        grid-template-columns: repeat(1, 1fr) !important;
    }


    /* ── 07P ─── */
    #meet-the-team .cs-img-split.cs-img-split-flex {
        display: inline-block;
    }

    .cs-phone-lg.cs-phone-lg-pb {
        margin-top: 32px;
    }

    /* ── 06P ─── */
    .themetui .cs-g2w {
        display: inline-block;
    }

    .themetui .cs-g4,
    .themetui .cs-probs5 {
        grid-template-columns: repeat(1, 1fr)
    }

    /* ── 04P ─── */
    .tui-weather .cs-g4,
    .tui-weather .cs-probs,
    .tui-weather .cs-img-split {
        grid-template-columns: repeat(1, 1fr);
    }

    .tui-weather .icon-grid {
        display: grid;
        grid-template-columns: 6fr 6fr;
    }


    /* ── 06P ─── */
    .themetui .cs-g2w {
        display: inline-block;
    }

    .themetui .cs-g4,
    .themetui .cs-probs5 {
        grid-template-columns: repeat(1, 1fr)
    }

    /* ── 03P ─── */
    .buildium-bills .cs-g2w {
        display: inline-block;
    }

    .buildium-bills .cs-g4 {
        grid-template-columns: repeat(1, 1fr);
    }

    /* ── 02P ─── */
    .map-schedulling .cs-g2w,
    .map-schedulling .cs-img-split {
        display: inline-block;
    }

    .map-schedulling .cs-g4 {
        grid-template-columns: repeat(1, 1fr);
    }

    .map-schedulling .cs-phone-lg:last-child {
        margin-top: 32px;
    }

    .map-schedulling .cs-phone-solo-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .map-schedulling .cs-phone-solo-wrapper img {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ── 01P ─── */
    .map-to-mission .cs-g2w,
    .map-to-mission .cs-img-split {
        display: inline-block;
    }

    .map-to-mission .cs-g2w_right {
        margin: 0 auto;
        text-align: center !important;
    }

    .map-to-mission .cs-g2w_right img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .map-to-mission .cs-g4,
    .map-to-mission .cs-img-split,
    .map-to-mission .cs-probs {
        grid-template-columns: repeat(1, 1fr);
    }

    .map-to-mission .cs-phone-lg:last-child {
        margin-top: 32px;
    }

    .map-to-mission .cs-phone-solo-wrapper,
    .map-to-mission .cs-imgph {
        padding-left: 0;
        padding-right: 0;
    }

}


@media (max-width: 768px) {

    .cs-screens-2,
    .cs-screens-3,
    .cs-before-after {
        grid-template-columns: 1fr;
    }

    .cs-ba-side:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border, #e5e5e5);
    }

    .cs-phases {
        grid-template-columns: repeat(1, 1fr);
    }

}


/* ── DARK HERO STRIP ──────────────────────────────────────── */
.cs-dark-strip {
    background: #0d1117;
    line-height: 0;
}

.cs-dark-strip img {
    width: 100%;
    display: block;
}

/* ── ACQUISITION CONTEXT BLOCK ────────────────────────────── */
.cs-acq-block {
    background: var(--green-pale);
    border: 1px solid var(--green-glow);
    border-radius: 12px;
    padding: 32px 36px;
    margin: 32px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cs-acq-block h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    color: var(--text);
}

.cs-acq-block p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.cs-acq-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.cs-acq-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.03em;
}

/* ── METRICS ──────────────────────────────────────────────── */
.cs-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.cs-metric {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
}

.cs-metric-val {
    font-size: 40px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.04em;
    line-height: 1;
}

.cs-metric-lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── TIMELINE ─────────────────────────────────────────────── */
.cs-timeline {
    margin: 24px 0;
    position: relative;
}

.cs-timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.cs-tl-item {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    position: relative;
}

.cs-tl-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.cs-tl-body {
    padding-top: 6px;
}

.cs-tl-body h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.cs-tl-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── INLINE IMAGE HELPERS ─────────────────────────────────── */
.cs-img-full {
    width: 100%;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cs-img-full img {
    width: 100%;
    height: auto;
    display: block;
}

.cs-img-caption {
    font-size: 11px;
    color: var(--text-faint);
    text-align: center;
    margin-top: 8px;
    letter-spacing: 0.02em;
}

.cs-img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.cs-img-pair-item {
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}

.cs-img-pair-item img {
    width: 100%;
    height: auto;
    display: block;
}

.cs-img-trio-wrapper {
    text-align: left;
    padding: 36px 0;
}


.cs-img-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.cs-img-trio-item {
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
    background: var(--surface);
}

.cs-img-trio-item img {
    width: 94%;
    margin-top: 4%;
    margin-left: 2%;
    height: auto;
    /*display: block;*/
}

/* ── BEFORE / AFTER SLIDER ────────────────────────────────── */
.before-ba-wrap {
    background: var(--bg-card-hover);
    border-radius: 14px;
    margin: 16px auto 12px;
    padding: 32px 20px 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.ba-wrap {
    position: relative;
    overflow: hidden;
    margin: 0;
    cursor: crosshair;
    user-select: none;
    text-align: center;
}

.ba-after {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.ba-after img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}


.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    transition: width 0.05s linear;
}

.ba-before img {
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}


.theme8 .ba-after img,
.theme8 .ba-before img {
    /*
    max-width: 80%;
    height: auto;*/
}


.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    pointer-events: none;
    transition: left 0.05s linear;
    background: var(--green);
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    font-size: 13px;
    background: var(--green);
    color: #fff;
}

.ba-label {
    position: absolute;
    top: 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.ba-label-before {
    left: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.ba-label-after {
    right: 14px;
    background: var(--green);
    color: #fff;
}

/* ── BEFORE/AFTER SECTION PANEL ───────────────────────────── */
#beforeafter {
    background: var(--bg);
    width: 100%;
}

/* ── RESPONSIVE ADDITIONS ─────────────────────────────────── */
@media (max-width: 900px) {
    .cs-acq-block {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
    }

    .cs-metrics {
        grid-template-columns: 1fr;
    }

    .cs-img-pair {
        grid-template-columns: 1fr;
    }

    .cs-img-trio {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .cs-img-trio {
        grid-template-columns: 1fr;
    }
}


/* ── DESIGN SYSTEMS — 11-design-lab ────────────────────────── */

/* Tag variants */
.tag-ds {
    background: #f0f0fe;
    color: #4040b0;
}

.tag-tools {
    background: #f5f0fe;
    color: #6030a0;
}

.tag-collab {
    background: #e8f8f0;
    color: #1a6a40;
}

/* Stat row */
.cs-ds-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 28px 0 36px;
}

.cs-ds-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
}

.cs-ds-stat-val {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--green);
    line-height: 1;
    margin-bottom: 6px;
}

.cs-ds-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Tool pills */
.cs-ds-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 28px;
}

.cs-ds-tool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.cs-ds-tool svg {
    flex-shrink: 0;
}

/* Contribution grid */
.cs-ds-contrib {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 24px 0 32px;
}

.cs-ds-contrib-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.cs-ds-contrib-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    margin-top: 5px;
}

.cs-ds-contrib-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cs-ds-contrib-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

/* Green callout (e.g. two-branch note, First Choice variant) */
.cs-ds-callout {
    background: var(--green-pale);
    border: 1px solid var(--green-glow);
    border-left: 3px solid var(--green);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 20px 0 28px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.cs-ds-callout strong {
    color: var(--text);
    font-weight: 600;
}

/* Muted side-note callout */
.cs-ds-sidenote {
    background: var(--surface);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 20px 0 32px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
    border: 1px solid var(--border);
}

.cs-ds-sidenote strong {
    color: var(--text);
    font-weight: 600;
}

/* Evolution timeline */
.cs-ds-timeline {
    margin: 28px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.cs-ds-timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.cs-ds-tl-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0 0 28px 0;
    position: relative;
}

.cs-ds-tl-item:last-child {
    padding-bottom: 0;
}

.cs-ds-tl-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cs-ds-tl-body {
    padding-top: 6px;
    flex: 1;
}

.cs-ds-tl-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.cs-ds-tl-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Image placeholder */
.cs-ds-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Image showcase block (e.g. Basecone export screenshot) */
.cs-ds-img-showcase {
    vertical-align: top;
    background: var(--blue3);
    border-radius: 18px;
    text-align: center;
    padding: 24px;
    margin-bottom: 64px;
}

.cs-ds-img-showcase img {
    max-width: 90%;
    height: auto;
}

/* Callout with no top margin — used after timeline */
.cs-ds-callout.no-top-margin {
    margin-top: 0;
}

/* ── DS responsive ── */
@media (max-width: 768px) {
    .cs-ds-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-ds-contrib {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .cs-ds-stats {
        grid-template-columns: 1fr 1fr;
    }
}


/* ── THEME 07 — TUI Other Work ──────────────────────────────── */

/* Inline header icon (tree image next to h1) */
#icon {
    max-width: 60px;
    height: auto;
}

/* Screen item — centred phone presentation tile */
.cs-screen-item.cs-screen-tile {
    text-align: center;
    background: var(--bg);
    padding: 24px 0;
}

/* Screen item — text column with right margin (account section) */
.cs-screen-item.cs-screen-text-col {
    margin-right: 24px;
}

/* img — phone mockup with dark bezel border */
.cs-screen-img-phone {
    width: 90%;
    height: auto;
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    border: 3px solid #000;
    margin: 0 auto;
    display: block;
}

/* img — phone mockup, no border */
.cs-screen-img-phone-nb {
    width: 90%;
    height: auto;
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    display: block;
}

/* img — tighter radius for inline room-selection card */
.cs-screen-img-room {
    border-radius: 42px;
}

/* img — illustration rounded (before/after + carousel rows) */
.cs-screen-img-illus {
    width: 90%;
    height: auto;
    border-radius: 46px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin: 0 auto;
    display: block;
}

/* img — SVG illustration, centred, natural size */
.cs-screen-img-illus-auto {
    text-align: center;
    margin: 0 auto;
    display: block;
}

/* Before/After wrapper — surface background override */
.cs-before-after.cs-ba-surface {
    background: var(--surface);
}

/* img — before/after phone screenshot with soft border */
.cs-ba-img-phone {
    border-radius: 46px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* cs-img-split flex override (meet the team layout) */
.cs-img-split.cs-img-split-flex {
    display: flex;
}

/* cs-phone-lg — extra bottom padding (schedule panel alignment) */
.cs-phone-lg.cs-phone-lg-pb {
    padding-bottom: 102px;
}

/* Locked wall */
.lock-wall {
    margin-top: 40px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    max-width: 480px;
}

.lock-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.lock-wall h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.lock-wall p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.pw-error {
    color: #e53e3e;
    font-size: 13px;
}


/* ── THEME 10 — RETROSPECTIVE ─────────────────────────────── */

/* Page header extra top padding (replaces #cs-inner-extra-papdding id) */
.cs-inner-extra-padding {
    padding-top: 60px;
}

/* ── Image placeholders ── */
.retro-ph {
    width: 100%;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 40px 20px;
    min-height: 220px;
}

.retro-ph svg {
    opacity: 0.35;
}

.retro-ph.tall {
    min-height: 340px;
}

.retro-ph.short {
    min-height: 140px;
}

/* ── Design system comparison cards ── */
.retro-ds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.retro-ds-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 18px;
}

.retro-ds-card.chosen {
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green);
}

.retro-ds-card-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.retro-ds-card.chosen .retro-ds-card-label {
    color: var(--green);
}

.retro-ds-card-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.retro-ds-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.65;
}

.retro-ds-chosen-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
}

/* ── Challenge exercise cards ── */
.retro-challenge-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: 28px 0;
}

.retro-challenge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

/* Variant: grey background card (challenges 2 & 3) */
.retro-challenge-card--bg {
    background: var(--bg);
}

.retro-challenge-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    gap: 8px;
}

/* Gallery layout variant for challenge 1 */
.retro-challenge-img--gallery {
    aspect-ratio: unset;
    display: block;
    text-align: left;
    padding: 32px 0;
}

.retro-challenge-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Indented label inside the gallery image block */
.retro-challenge-img-label {
    display: block;
    padding-left: 12%;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Gallery images (challenge 1 — indented, auto height) */
.retro-challenge-gallery-img {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 0 auto 24px;
}

.retro-challenge-body {
    padding: 16px 18px 18px;
}

/* Variant: challenge body on card-bg (challenges 2 & 3) */
.retro-challenge-body--card {
    background: var(--bg-card);
}

.retro-challenge-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.retro-challenge-body p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Tag inside challenge body (adds bottom margin) */
.retro-challenge-tag {
    margin-bottom: 10px;
}

/* Screens grid with horizontal padding (challenges 2 & 3) */
.retro-challenge-screens-pad {
    padding: 0 24px;
}

/* Screen item: no background, tight padding */
.retro-screen-item--bare {
    background: none;
    padding: 4px 12px;
}

/* Hero single-screen item inside challenge card */
.retro-screen-item--hero {
    padding: 42px 32px 24px;
}

/* Caption indented to match gallery label alignment */
.retro-caption-indented {
    padding-left: 12%;
}

/* Phone border colour variant: purple (challenge 3) */
.cs-screen-img-phone--purple {
    border-color: #6d63aa;
}

/* ── Cocus event / lecture callout ── */
.retro-event-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--green-pale);
    border: 1px solid var(--green-glow);
    border-left: 3px solid var(--green);
    border-radius: 0 10px 10px 0;
    padding: 22px 26px;
    margin: 28px 0;
}

.retro-event-card svg {
    flex-shrink: 0;
    color: var(--green);
    margin-top: 2px;
}

.retro-event-card-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.retro-event-card-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Sticker / icon-grid images ── */
.retro-sticker-img {
    max-width: 80%;
    height: auto;
    display: block;
}

.retro-sticker-img--wide {
    max-width: 85%;
}

.retro-sticker-img--narrow {
    max-width: 70%;
}

/* ── Trio image override (no top padding) ── */
.cs-img-trio-wrapper--no-top {
    padding-top: 0;
}

/* Trio images with border radius (Porto Tech Hub photos) */
.retro-trio-img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
}

/* ── Ludum Dare / game jam ── */
.retro-game-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    margin: 24px 0;
}

.retro-game-info h4 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 8px;
}

.retro-game-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
}

/* Game paragraph: right margin keeps it from running too wide */
.retro-game-p {
    margin-right: 36px;
}

.retro-game-p--spaced {
    margin-top: 12px;
}

.retro-game-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
}

.retro-game-link:hover {
    text-decoration: underline;
}

.retro-game-screens {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* LV Engine screen items */
#lvengine .cs-screen-item {
    vertical-align: top;
    text-align: center;
    background: var(--surface);
    padding: 12px;
    border-radius: 12px;
    display: grid;
}

#lvengine .cs-screen-item img {
    vertical-align: top;
    border-radius: 12px;
}

/* ── Responsive ── */
@media (max-width: 768px) {

    .retro-ds-grid,
    .retro-challenge-grid,
    .retro-game-wrap {
        grid-template-columns: 1fr;
    }
}
