/* POS pilot — scoped under body.cs-v2 only (pos-app.html) */

body.cs-v2 {
  --fs-large: clamp(26px, 2.6vw, 32px);
  --fs-body: 17px;
  --lh-large: 1.25;
  --lh-body: 1.7;
  --cs-v2-phase-gap: 80px;
  --cs-v2-col: 720px;
  --space-text: 16px;
  --space-block: 24px;
}

@media (max-width: 767px) {
  body.cs-v2 {
    --fs-body: 16px;
    --cs-v2-phase-gap: 56px;
  }
}

/* Typography reset inside case study (not nav / footer / more) */
body.cs-v2 .hero,
body.cs-v2 .hero-image,
body.cs-v2 .sb-case.pos-summary-shell,
body.cs-v2 .cs-v2-study {
  font-family: "Poppins", sans-serif;
}

body.cs-v2 .hero h1,
body.cs-v2 .cs-v2-study .cs-v2-heading,
body.cs-v2 .cs-v2-study .cs-turning .section-chapter,
body.cs-v2 .cs-v2-study .cs-question__q,
body.cs-v2 .cs-v2-study .cs-v2-aha-text,
body.cs-v2 .cs-v2-study .cs-v2-result-num,
body.cs-v2 .pos-summary-shell .sb-glance__pct {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-large) !important;
  line-height: var(--lh-large) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: var(--ink) !important;
}

body.cs-v2 .cs-v2-study,
body.cs-v2 .pos-summary-shell {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

body.cs-v2 .cs-v2-study p,
body.cs-v2 .cs-v2-study li,
body.cs-v2 .cs-v2-study .cs-v2-subtitle,
body.cs-v2 .cs-v2-study .cs-v2-phase-label,
body.cs-v2 .pos-summary-shell p,
body.cs-v2 .pos-summary-shell li,
body.cs-v2 .pos-summary-shell .sb-label,
body.cs-v2 .cs-v2-study .screen-caption,
body.cs-v2 .cs-v2-study .cs-caption,
body.cs-v2 .cs-v2-study .cs-v2-decision__title,
body.cs-v2 .cs-v2-study .cs-v2-result-label,
body.cs-v2 .cs-v2-study .cs-v2-list strong,
body.cs-v2 .cs-v2-study .cs-turning__prose p,
body.cs-v2 .cs-v2-study .cs-turning__shift-label,
body.cs-v2 .cs-v2-study .cs-turning__shift-text,
body.cs-v2 .cs-v2-study .cs-question__lead,
body.cs-v2 .cs-v2-study .cs-label,
body.cs-v2 .cs-v2-study .proto-poster-t,
body.cs-v2 .cs-v2-study .proto-poster-h,
body.cs-v2 .cs-v2-study .proto-note,
body.cs-v2 .cs-v2-study table,
body.cs-v2 .cs-v2-study .pos-ujm-title,
body.cs-v2 .cs-v2-study .pos-ujm-subtitle,
body.cs-v2 .cs-v2-study .pos-ujm-persona-name,
body.cs-v2 .cs-v2-study .pos-ujm-persona-role,
body.cs-v2 .cs-v2-study .pos-ujm-label-box,
body.cs-v2 .cs-v2-study .pos-ujm-step-cell,
body.cs-v2 .cs-v2-study .pos-ujm-legend-item {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

body.cs-v2 .pos-summary-shell .sb-glance__statement {
  font-weight: 600 !important;
  color: var(--ink) !important;
}

body.cs-v2 .cs-v2-study p,
body.cs-v2 .cs-v2-study .cs-v2-body,
body.cs-v2 .cs-v2-study p.reveal {
  font-weight: 400;
  color: var(--body);
  max-width: var(--cs-v2-col);
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
}

body.cs-v2 .cs-v2-study .cs-match-img.cs-turning p,
body.cs-v2 .cs-v2-study .cs-match-img.sb-glance p,
body.cs-v2 .cs-v2-study .cs-v2-decision > p {
  max-width: none !important;
}

body.case-study-page.cs-v2 .cs-v2-study .cs-v2-heading + .cs-v2-decision {
  margin-top: var(--space-block);
}

body.cs-v2 .cs-v2-study .cs-v2-meta,
body.cs-v2 .cs-v2-study .screen-caption,
body.cs-v2 .cs-v2-study .cs-caption,
body.cs-v2 .cs-v2-study cite,
body.cs-v2 .cs-v2-study .cs-v2-findings li span.cs-v2-meta {
  color: var(--meta);
  font-weight: 400;
}

body.cs-v2 .cs-v2-study .cs-v2-heading,
body.cs-v2 .cs-v2-study .cs-v2-subtitle,
body.cs-v2 .cs-v2-study .cs-v2-decision__title,
body.cs-v2 .cs-v2-study .cs-v2-quote p {
  font-weight: 600;
  color: var(--ink);
}

body.cs-v2 .cs-v2-study .cs-v2-phase-label {
  font-weight: 600;
  color: var(--accent-2);
}

body.cs-v2 .cs-v2-study .cs-v2-result-num {
  color: var(--accent-2) !important;
}

body.cs-v2 .cs-v2-study a:not(.back-btn):not(.anna-nav a):not(.footer-built__link):not(.footer-social a) {
  color: var(--blue);
}

body.cs-v2 .cs-v2-study .cs-v2-reflect-yellow {
  font-weight: 600;
  color: var(--accent-2);
}

/* Hide old section chrome */
body.cs-v2 .cs-v2-study .section-header,
body.cs-v2 .cs-v2-study .section-icon,
body.cs-v2 .cs-v2-study .cs-sec-eyebrow,
body.cs-v2 .cs-v2-study .divider,
body.cs-v2 .cs-v2-study .cs-turning__eyebrow,
body.cs-v2 .cs-v2-study .cs-turning .cs-sec-eyebrow {
  display: none !important;
}

body.cs-v2 .cs-v2-study .section-chapter {
  margin-top: 0 !important;
}

/* Phase layout */
body.cs-v2 .cs-v2-study .cs-v2-phase + .cs-v2-phase {
  border-top: 1px solid var(--frame-line);
  margin-top: var(--cs-v2-phase-gap);
  padding-top: var(--cs-v2-phase-gap);
}

body.cs-v2 .cs-v2-study .cs-v2-phase-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}

body.cs-v2 .cs-v2-study .cs-v2-phase-label-row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--accent-2);
}

body.cs-v2 .cs-v2-study .cs-v2-heading {
  margin: 0 0 20px;
}

body.cs-v2 .cs-v2-study .cs-v2-subtitle {
  margin: 24px 0 12px;
}

body.cs-v2 .cs-v2-study p + p,
body.cs-v2 .cs-v2-study .cs-v2-list li + li {
  margin-top: 16px;
}

body.cs-v2 .cs-v2-study .cs-v2-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--cs-v2-col);
}

body.cs-v2 .cs-v2-study .cs-v2-list li {
  position: relative;
  padding-left: 1.1em;
}

body.cs-v2 .cs-v2-study .cs-v2-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--body);
}

body.cs-v2 .cs-v2-study .cs-v2-findings {
  list-style: none;
  counter-reset: cs-v2-finding;
}

body.cs-v2 .cs-v2-study .cs-v2-findings li {
  counter-increment: cs-v2-finding;
  padding-left: 2.25em;
}

body.cs-v2 .cs-v2-study .cs-v2-findings li::before {
  content: counter(cs-v2-finding) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--accent-2);
}

body.cs-v2 .cs-v2-study .cs-v2-findings li + li {
  margin-top: 16px;
}

/* Decisions — frameless, content-track aligned */
body.case-study-page.cs-v2 .cs-v2-study .cs-v2-decision {
  --cs-wide-track: min(1200px, calc(100vw - 64px));
  width: var(--cs-wide-track);
  max-width: var(--cs-wide-track);
  margin-left: calc((100% - var(--cs-wide-track)) / 2);
  margin-right: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}

body.cs-v2 .cs-v2-study .cs-v2-decision {
  margin-top: 0;
}

body.cs-v2 .cs-v2-study .cs-v2-decision + .cs-v2-decision {
  margin-top: calc(var(--space-block) * 1.5);
}

body.cs-v2 .cs-v2-study .cs-v2-decision__title {
  margin: 0 0 var(--space-text);
  font-weight: 600 !important;
  color: var(--ink) !important;
}

body.cs-v2 .cs-v2-study .cs-v2-decision > p:not(.cs-v2-decision__title) {
  margin: 0 0 var(--space-block);
  max-width: none !important;
}

body.cs-v2 .cs-v2-study .cs-v2-decision .screens-section,
body.cs-v2 .cs-v2-study .cs-v2-decision .pos-transformation-strip {
  margin-top: var(--space-block);
  max-width: none;
}

/* Turning aha in large type */
body.cs-v2 .cs-v2-study .cs-turning__callout-block {
  margin: 24px 0;
}

body.cs-v2 .cs-v2-study .cs-v2-aha-text {
  margin: 8px 0 0;
}

body.cs-v2 .cs-v2-study .cs-turning__callout-label {
  font-size: var(--fs-body) !important;
  font-weight: 600;
  color: var(--accent-2);
}

/* Results grid */
body.cs-v2 .cs-v2-study .cs-v2-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: var(--space-block) 0;
  max-width: none;
}

@media (max-width: 899.98px) {
  body.cs-v2 .cs-v2-study .cs-v2-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479.98px) {
  body.cs-v2 .cs-v2-study .cs-v2-results-grid {
    grid-template-columns: 1fr;
  }
}

body.cs-v2 .cs-v2-study .cs-v2-result-num {
  margin: 0;
  white-space: nowrap;
}

body.cs-v2 .cs-v2-study .cs-v2-result-label {
  margin: 8px 0 0;
  font-weight: 400 !important;
  color: var(--body) !important;
}

body.cs-v2 .cs-v2-study .cs-v2-quote {
  margin: 24px 0;
  max-width: var(--cs-v2-col);
}

body.cs-v2 .cs-v2-study .cs-v2-quote .cs-quote__icon {
  display: none;
}

/* Overview phase — summary full width */
body.cs-v2 .cs-v2-phase--overview {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

body.cs-v2 .cs-v2-phase--overview .cs-v2-phase-label-row {
  margin-bottom: 24px;
}

body.cs-v2 .pos-summary-shell {
  margin-bottom: 0;
}

body.cs-v2 .cs-platform-note {
  max-width: var(--cs-v2-col);
}

/* Platform note: same wide track as At a glance card (not centred in sb-wrap) */
body.case-study-page.cs-v2 .pos-summary-shell .sb-wrap > .cs-platform-note.cs-match-img {
  --cs-wide-track: min(1200px, calc(100vw - 64px));
  width: var(--cs-wide-track) !important;
  max-width: var(--cs-wide-track) !important;
  margin-left: calc((100% - var(--cs-wide-track)) / 2) !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Wide media escapes text column only for layout wrappers */
body.cs-v2 .cs-v2-study .wide,
body.cs-v2 .cs-v2-study .pos-ujm-strip,
body.cs-v2 .cs-v2-study .pos-affinity-strip,
body.cs-v2 .cs-v2-study .pos-transformation-strip,
body.cs-v2 .cs-v2-study .screens-section,
body.cs-v2 .cs-v2-study .proto-embed,
body.cs-v2 .cs-v2-study .ds-sheet-figure {
  max-width: none;
}

body.cs-v2 .hero-tag,
body.cs-v2 .hero-subtitle,
body.cs-v2 .meta-label,
body.cs-v2 .meta-value {
  font-size: var(--fs-body) !important;
  font-family: "Poppins", sans-serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

body.cs-v2 .hero h1 {
  font-size: var(--fs-large) !important;
}

body.cs-v2 .hero-subtitle {
  font-weight: 400;
  color: var(--body);
}

body.cs-v2 .cs-v2-study .screens-label,
body.cs-v2 .pos-summary-shell .sb-glance__body,
body.cs-v2 .pos-summary-shell .sb-glance__result-sub,
body.cs-v2 .pos-summary-shell .sb-glance__result-line,
body.cs-v2 .pos-summary-shell .sb-glance__result-meta,
body.cs-v2 .pos-summary-shell .sb-glance__list,
body.cs-v2 .pos-summary-shell .cs-summary-jump__link,
body.cs-v2 .cs-v2-study .ds-sheet-figure figcaption,
body.cs-v2 .cs-v2-study .cs-turning__callout,
body.cs-v2 .cs-v2-study .cs-turning__callout-accent {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

body.cs-v2 .cs-v2-study .pos-ujm *,
body.cs-v2 .cs-v2-study .pos-ujm-label-box {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
}

/* Affinity board — diagram typography (page stylesheet sizes, not two-size rule) */
body.case-study-page.cs-v2 .cs-v2-study .pos-affinity-wrap .pos-aff-heading {
  display: none !important;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-affinity-wrap .pos-aff-cluster-name {
  font-family: var(--serif) !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: -0.2px !important;
  text-transform: none !important;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-affinity-wrap .pos-aff-note {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-affinity-wrap .pos-aff-note-quote {
  font-family: var(--font-body) !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  font-style: italic !important;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-affinity-wrap .pos-aff-insight-text {
  font-family: var(--font-body) !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: rgba(0, 0, 0, 0.45) !important;
}

body.case-study-page.cs-v2 #connect .pos-affinity-strip {
  --cs-wide-track: min(1200px, calc(100vw - 64px));
  width: var(--cs-wide-track);
  max-width: var(--cs-wide-track);
  margin-left: calc((100% - var(--cs-wide-track)) / 2);
  margin-right: 0;
  margin-top: var(--space-block);
  margin-bottom: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

body.case-study-page.cs-v2 #connect .pos-affinity-strip + .cs-v2-subtitle {
  margin-top: var(--space-block) !important;
}

body.case-study-page.cs-v2 #connect .pos-affinity-embed.wide {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-bottom: 0;
}

body.cs-v2 .cs-v2-study .cs-turning {
  max-width: none;
}

body.cs-v2 .cs-v2-study .cs-v2-quote p {
  font-weight: 600;
  color: var(--ink);
}

body.cs-v2 .cs-v2-study h2.section-chapter,
body.cs-v2 .cs-v2-study .cs-turning h2.section-chapter,
body.case-study-page.cs-v2 .cs-v2-study .cs-turning h2#turning-point {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-large) !important;
  line-height: var(--lh-large) !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em !important;
}

body.cs-v2 .cs-v2-study .cs-sec-num {
  display: none !important;
}

body.cs-v2 .hero-image .screen-caption,
body.cs-v2 .cs-v2-study .screen-caption,
body.cs-v2 .cs-v2-study figcaption.cs-caption {
  font-size: var(--fs-body) !important;
}

body.cs-v2 .cs-v2-study .proto-poster,
body.cs-v2 .cs-v2-study .proto-link {
  font-size: var(--fs-body) !important;
}

body.cs-v2 .cs-v2-study .aside-note__bubble-text {
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
}

body.cs-v2 .cs-v2-study .cs-v2-subtitle {
  font-size: var(--fs-body) !important;
}

body.cs-v2 .cs-v2-study figcaption,
body.cs-v2 .cs-v2-study .cs-v2-quote cite {
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  color: var(--meta);
}

/* Final two-size enforcement (overrides page inline + cs-design on this page only) */
body.cs-v2 .hero :is(
    p, li, a, cite, figcaption, button, .meta-label, .meta-value, .hero-tag, .hero-subtitle
  ),
body.cs-v2 .hero-image :is(p, .screen-caption),
body.cs-v2 .cs-v2-study :is(
    p:not(.cs-v2-result-num):not(.cs-v2-one-question__q), li, a, cite, figcaption, button, span, .cs-v2-subtitle, .cs-v2-decision__title,
    .cs-label, .cs-question__lead, .cs-turning__shift-label, .cs-turning__shift-text,
    .cs-turning__callout-label, .screen-caption, .cs-caption, .proto-poster-t, .proto-poster-h,
    .proto-link, .proto-note, .aside-note__bubble-text, .pos-ujm-title, .pos-ujm-subtitle,
    .pos-ujm-persona-name, .pos-ujm-persona-role, .pos-ujm-legend-item, .pos-ujm-step-cell,
    .pos-ujm-label-box, .cs-v2-result-label, .sb-label, .sb-glance__body, .sb-glance__result-sub,
    .sb-glance__result-line, .sb-glance__result-meta, .sb-glance__list, .cs-summary-jump__link,
    .cs-platform-note, .cs-v2-quote p
  ) {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-style: normal !important;
}

body.cs-v2 .hero h1,
body.cs-v2 .cs-v2-study :is(
    h2.cs-v2-heading, h2.section-chapter, .cs-v2-aha-text, .cs-question__q, .cs-v2-result-num
  ),
body.cs-v2 .pos-summary-shell .sb-glance__pct {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-large) !important;
  line-height: var(--lh-large) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: var(--accent-2) !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

body.case-study-page.cs-v2 .pos-summary-shell .sb-glance__statement {
  max-width: none !important;
}

body.cs-v2 .cs-v2-study .cs-v2-result-num {
  color: var(--accent-2) !important;
}

body.cs-v2 .cs-v2-study .cs-v2-quote p {
  font-weight: 600 !important;
  color: var(--ink) !important;
}

/* ── Match Before/After image track (same as .case-study-page .wide) ── */
body.case-study-page.cs-v2 .cs-match-img {
  --cs-wide-track: min(1200px, calc(100vw - 64px));
  width: var(--cs-wide-track);
  max-width: var(--cs-wide-track) !important;
  margin-left: calc((100% - var(--cs-wide-track)) / 2);
  margin-right: 0;
  position: static;
  left: auto;
  transform: none;
  box-sizing: border-box;
  overflow: visible;
}

body.case-study-page.cs-v2 p.cs-match-img,
body.case-study-page.cs-v2 ul.cs-match-img,
body.case-study-page.cs-v2 ol.cs-match-img,
body.case-study-page.cs-v2 h2.cs-match-img,
body.case-study-page.cs-v2 .cs-match-img.cs-v2-results-grid,
body.case-study-page.cs-v2 .cs-match-img.cs-v2-quote,
body.case-study-page.cs-v2 .cs-match-img.cs-v2-phase-label-row {
  display: block;
}

body.case-study-page.cs-v2 .cs-match-img.cs-v2-phase-label-row {
  display: flex;
}

body.case-study-page.cs-v2 .content.case-main.cs-v2-study > .section > p.cs-match-img:not(.section-subtitle):not(.hc-results-impact-lede):not(.cs-caption):not(.cs-aside):not(.cs-callout):not(.cs-structure__title):not(.cs-structure__line),
body.case-study-page.cs-v2 .content.case-main.cs-v2-study > .section > h2.cs-match-img,
body.case-study-page.cs-v2 .content.case-main.cs-v2-study > .section > ul.cs-match-img,
body.case-study-page.cs-v2 .content.case-main.cs-v2-study > .section > ol.cs-match-img {
  width: var(--cs-wide-track) !important;
  max-width: var(--cs-wide-track) !important;
  margin-left: calc((100% - var(--cs-wide-track)) / 2) !important;
  margin-right: 0 !important;
}

/*
 * UI design gallery pages (02 / 03 / 11): `main` is capped at `--cs-track` (820px) like Back-office.
 * The rules above size `.cs-match-img` to `--cs-wide-track` (~1200px) with a centering margin — wider
 * than the parent — which shifts overview copy and tags right and overflows the viewport.
 */
body.case-study-page.cs-v2 main.content.case-main.ui-design-gallery.cs-v2-study .cs-match-img {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.case-study-page.cs-v2 main.content.case-main.ui-design-gallery.cs-v2-study > .section > p.cs-match-img:not(.section-subtitle):not(.hc-results-impact-lede):not(.cs-caption):not(.cs-aside):not(.cs-callout):not(.cs-structure__title):not(.cs-structure__line),
body.case-study-page.cs-v2 main.content.case-main.ui-design-gallery.cs-v2-study > .section > h2.cs-match-img,
body.case-study-page.cs-v2 main.content.case-main.ui-design-gallery.cs-v2-study > .section > ul.cs-match-img,
body.case-study-page.cs-v2 main.content.case-main.ui-design-gallery.cs-v2-study > .section > ol.cs-match-img {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Inside cards/frames: no wide-track breakout (frame only uses .cs-match-img) */
body.case-study-page.cs-v2 .cs-match-img.cs-turning :is(.cs-turning__column, .cs-turning__prose, .cs-turning__prose p, .cs-turning__shift, .cs-turning__callout-block, .cs-v2-aha-text, h2.section-chapter),
body.case-study-page.cs-v2 .cs-match-img.cs-v2-one-question :is(p),
body.case-study-page.cs-v2 .cs-match-img.sb-glance :is(.sb-wrap, .sb-glance__problem, .sb-glance__lower, .sb-glance__col, p, ul, li, .cs-summary-jump, .sb-label, .sb-glance__pct, .sb-glance__result-sub, .sb-glance__result-line, .sb-glance__result-meta, .sb-glance__body, .sb-glance__list) {
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.case-study-page.cs-v2 .cs-match-img.sb-glance .sb-glance__statement {
  max-width: none !important;
}

body.case-study-page.cs-v2 .cs-match-img.sb-glance .sb-glance__pct {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-large) !important;
  line-height: var(--lh-large) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: var(--accent-2) !important;
}

body.case-study-page.cs-v2 .cs-v2-study p.cs-v2-result-num {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-large) !important;
  line-height: var(--lh-large) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: var(--accent-2) !important;
}

body.case-study-page.cs-design-page.cs-v2 .content.case-main .cs-turning .cs-turning__prose > p,
body.case-study-page.cs-design-page.cs-v2 .sb-case .cs-turning .cs-turning__prose.sb-text > p {
  max-width: none !important;
  width: 100% !important;
}

body.case-study-page.cs-v2 .cs-match-img.cs-turning .cs-turning__prose > p,
body.case-study-page.cs-v2 .cs-match-img.cs-turning .cs-turning__prose p {
  max-width: none !important;
  width: 100% !important;
}

body.case-study-page.cs-v2 .cs-v2-study .cs-v2-decision :is(.cs-v2-decision__title, > p) {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.case-study-page.cs-v2 .cs-v2-study .ds-sheet-figure > figcaption.cs-caption {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  font-weight: 400 !important;
  color: var(--meta) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

body.case-study-page.cs-v2 .cs-match-img.cs-v2-quote,
body.case-study-page.cs-v2 .cs-match-img.cs-v2-results-grid {
  width: var(--cs-wide-track) !important;
  max-width: var(--cs-wide-track) !important;
  margin-left: calc((100% - var(--cs-wide-track)) / 2) !important;
  margin-right: 0 !important;
}

body.case-study-page.cs-v2 .content.case-main > .section > p:not(.section-subtitle):not(.hc-results-impact-lede):not(.cs-caption):not(.cs-aside):not(.cs-callout):not(.cs-structure__title):not(.cs-structure__line),
body.case-study-page.cs-design-page.cs-v2 .content.case-main.sb-case.cs-v2-study section > p:not(.cs-turning__eyebrow):not(.hero-subtitle):not(.cs-turning__callout-label),
body.case-study-page.cs-v2 .content.case-main.cs-v2-study section > p:not(.cs-turning__eyebrow):not(.hero-subtitle),
body.cs-design-page.cs-v2 .content.case-main section > p:not(.cs-turning__eyebrow):not(.hero-subtitle) {
  font-family: "Poppins", sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
  color: var(--body) !important;
  max-width: var(--cs-v2-col) !important;
}

@media (max-width: 767px) {
  body.case-study-page.cs-v2 .content.case-main > .section > p:not(.section-subtitle):not(.hc-results-impact-lede):not(.cs-caption):not(.cs-aside):not(.cs-callout):not(.cs-structure__title):not(.cs-structure__line),
  body.case-study-page.cs-design-page.cs-v2 .content.case-main.sb-case.cs-v2-study section > p:not(.cs-turning__eyebrow):not(.hero-subtitle):not(.cs-turning__callout-label),
  body.cs-design-page.cs-v2 .content.case-main section > p:not(.cs-turning__eyebrow):not(.hero-subtitle) {
    font-size: 16px !important;
  }
}

body.case-study-page.cs-v2 .cs-v2-study figcaption.cs-caption,
body.case-study-page.cs-v2 .cs-v2-study .screen-caption,
body.case-study-page.cs-v2 .hero-image .screen-caption,
body.case-study-page.cs-v2 .cs-v2-study cite {
  font-size: 17px !important;
  line-height: 1.7 !important;
}

@media (max-width: 767px) {
  body.case-study-page.cs-v2 .cs-v2-study figcaption.cs-caption,
  body.case-study-page.cs-v2 .cs-v2-study .screen-caption,
  body.case-study-page.cs-v2 .hero-image .screen-caption,
  body.case-study-page.cs-v2 .cs-v2-study cite {
    font-size: 16px !important;
  }
}

/* Hero captions: match shared case-study.css spacing (Back-office reference) over generic cs-v2 .screen-caption */
body.case-study-page.cs-v2 .hero-image > p.screen-caption.cs-caption {
  margin-top: 12px !important;
  text-align: center !important;
}

body.case-study-page.cs-v2 .content.case-main.cs-v2-study .section-chapter,
body.case-study-page.cs-v2 .content.case-main.cs-v2-study .cs-turning h2.section-chapter {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-large) !important;
  line-height: var(--lh-large) !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

body.case-study-page.cs-v2 .hero h1 {
  font-size: var(--fs-large) !important;
  line-height: var(--lh-large) !important;
  font-weight: 600 !important;
  font-family: "Poppins", sans-serif !important;
}

/* ── Introduction: “one question” accent bar (no box) ── */
body.case-study-page.cs-v2 .cs-match-img.cs-v2-one-question {
  margin-top: var(--space-block) !important;
  margin-bottom: var(--space-block) !important;
  padding: 0 0 0 23px !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  background-image: linear-gradient(var(--accent-2), var(--accent-2)) !important;
  background-size: 3px 100% !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
}

body.case-study-page.cs-v2 .cs-v2-one-question::before {
  display: none !important;
  content: none !important;
}

body.case-study-page.cs-v2 .cs-v2-one-question > .cs-v2-subtitle {
  margin: 0 0 var(--space-text) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  font-weight: 600 !important;
  color: var(--accent-2) !important;
}

body.case-study-page.cs-v2 #introduction .cs-v2-one-question + .cs-v2-subtitle {
  margin-top: calc(var(--space-block) * 2) !important;
}

body.case-study-page.cs-v2 .cs-v2-one-question__lead {
  margin: 0 0 var(--space-text) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  font-weight: 400 !important;
  color: var(--body) !important;
  max-width: none !important;
}

body.case-study-page.cs-v2 .cs-v2-one-question__q {
  margin: 0 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-large) !important;
  line-height: var(--lh-large) !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  max-width: none !important;
}

@media (max-width: 767px) {
  body.case-study-page.cs-v2 .cs-v2-one-question__lead {
    font-size: 16px !important;
  }
}

/* ── User journey map: diagram typography (exempt from two-size rule) ── */
body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-title {
  font-family: "Poppins", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: var(--text) !important;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-subtitle,
body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-persona-name,
body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-persona-role {
  font-family: "Poppins", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-persona-name {
  font-weight: 600 !important;
  color: var(--text) !important;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-legend-item,
body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-y-label {
  font-family: "Poppins", sans-serif !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-legend-item {
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm-chart-svg-wrap .pos-ujm-label-layer {
  z-index: 1;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm-chart-svg-wrap svg.pos-ujm-journey {
  position: relative;
  z-index: 2;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm-journey circle {
  stroke: var(--surface) !important;
  stroke-width: 2 !important;
  paint-order: stroke fill;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-label-box {
  font-family: "Poppins", sans-serif !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  padding: 6px 8px !important;
  max-width: 120px !important;
  white-space: normal !important;
  box-sizing: border-box !important;
  z-index: 1;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-label-connector {
  position: absolute;
  width: 1px;
  background: var(--frame-line);
  pointer-events: none;
  z-index: 0;
}

body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-step-cell {
  font-family: "Poppins", sans-serif !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
}

@media (max-width: 1024px) {
  body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-label-box {
    max-width: 118px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 899.98px) {
  body.case-study-page.cs-v2 .cs-v2-study .pos-ujm-chart-scroll-inner {
    min-width: 960px !important;
  }
}

@media (max-width: 767px) {

  body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-label-box {
    max-width: 118px !important;
  }

  body.case-study-page.cs-v2 .cs-v2-study .pos-ujm .pos-ujm-step-row {
    margin-top: 32px !important;
  }
}

/* ── Enforce fixes after two-size block ── */
body.case-study-page.cs-design-page.cs-v2 .pos-summary-shell .cs-match-img.sb-glance p.sb-glance__pct,
body.case-study-page.cs-design-page.cs-v2 .content.case-main.cs-v2-study p.cs-v2-result-num {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-large) !important;
  line-height: var(--lh-large) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: var(--accent-2) !important;
}

body.case-study-page.cs-design-page.cs-v2 .content.case-main.cs-v2-study .cs-match-img.cs-turning .cs-turning__prose > p {
  max-width: none !important;
  width: 100% !important;
}

body.case-study-page.cs-design-page.cs-v2 .pos-summary-shell .sb-glance__statement {
  max-width: none !important;
}

/* Design section — phone groups (framed inner width), centred in wide track */
body.case-study-page.cs-v2 .cs-v2-decision .screens-section > .screens-grid {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

body.case-study-page.cs-v2 .cs-v2-decision .screens-section > .screen-wrap.screen-wrap--natural-photo {
  width: 100%;
  max-width: 754px;
  margin-left: auto;
  margin-right: auto;
}

body.case-study-page.cs-v2 .cs-v2-decision .screen-wrap {
  width: 100%;
  max-width: 100%;
}

body.case-study-page.cs-v2 .cs-v2-decision .screen-wrap img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 860px) {
  body.case-study-page.cs-v2 .cs-v2-decision .screens-grid.col-3 {
    grid-template-columns: repeat(3, 242px);
    gap: 14px;
  }

  body.case-study-page.cs-v2 .cs-v2-decision .screens-grid.col-2 {
    width: 754px;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, calc((100% - 32px) / 3)));
    gap: 14px;
    justify-content: start;
  }

  body.case-study-page.cs-v2 .cs-v2-decision .screens-grid.col-3 .screen-wrap,
  body.case-study-page.cs-v2 .cs-v2-decision .screens-grid.col-2 .screen-wrap {
    max-width: none;
  }

  body.case-study-page.cs-v2 .cs-v2-decision img[src*="Add_discount_to_cart.png"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (min-width: 376px) and (max-width: 859.98px) {
  body.case-study-page.cs-v2 .cs-v2-decision .screens-grid.col-3,
  body.case-study-page.cs-v2 .cs-v2-decision .screens-grid.col-2 {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 678px;
  }

  body.case-study-page.cs-v2 .cs-v2-decision .screens-section > .screen-wrap.screen-wrap--natural-photo {
    max-width: 678px;
  }
}

@media (max-width: 375.98px) {
  body.case-study-page.cs-v2 .cs-v2-decision .screens-grid.col-3,
  body.case-study-page.cs-v2 .cs-v2-decision .screens-grid.col-2 {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 285px;
  }

  body.case-study-page.cs-v2 .cs-v2-decision .screens-section > .screen-wrap.screen-wrap--natural-photo {
    max-width: 285px;
  }
}

/* ── Before/after compare: title + zoom hint (Simple Booking & POS) ── */
body.cs-v2 .cs-v2-compare-title {
  font-family: "Poppins", sans-serif;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--accent-2);
  line-height: var(--lh-body);
  margin: 0 0 12px;
}

body.cs-v2 .cs-v2-compare-block {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

body.cs-v2 figcaption.cs-v2-zoom-hint {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  text-align: center;
  color: var(--meta) !important;
  font-size: var(--fs-body) !important;
  font-weight: 400 !important;
  margin-top: 12px;
  margin-bottom: 0;
}

body.cs-v2 .cs-v2-zoom-hint__icon {
  width: 16px;
  height: 16px;
  stroke: var(--meta);
  flex-shrink: 0;
}

body.cs-v2 .cs-v2-swipe-hint {
  display: none;
  flex-basis: 100%;
  text-align: center;
  color: var(--meta);
  font-size: var(--fs-body);
  font-weight: 400;
}

@media (max-width: 900px) {
  body.cs-v2 .cs-v2-compare-block:has(.sb-scroll-x) .cs-v2-swipe-hint {
    display: block;
  }
}

body.case-study-page.cs-v2 .cs-v2-decision .pos-transformation-figure.cs-v2-compare-block {
  margin-left: auto;
  margin-right: auto;
}

/* Simple Booking — Design section: space between media blocks */
body.case-study-page.cs-v2 .sb-case #design .cs-v2-decision .screens-section > * + * {
  margin-top: var(--space-block) !important;
}

body.case-study-page.cs-v2 .sb-case #design .cs-v2-decision .screens-section + .cs-match-img.cs-v2-list,
body.case-study-page.cs-v2 .sb-case #design .cs-v2-decision .cs-match-img.cs-v2-list + .screens-section {
  margin-top: var(--space-block);
}

body.case-study-page.cs-v2 .sb-case #design .cs-v2-decision:last-of-type + .cs-match-img.cs-v2-subtitle {
  margin-top: var(--space-block);
}

body.case-study-page.cs-v2 .sb-case #design > .cs-match-img.cs-v2-subtitle + .cs-match-img {
  margin-top: 0;
}

body.case-study-page.cs-v2 .sb-case #design > .cs-match-img + .sb-ds-sheets.wide {
  margin-top: var(--space-block);
}

body.case-study-page.cs-v2 .sb-case #design .cs-customer-view > .cs-caption {
  margin-top: 12px;
}

/* Simple Booking — image / list / image stacks (e.g. Adviser in Decision 4) */
body.case-study-page.cs-v2 .cs-v2-decision-media-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: calc(var(--space-block) * 2) !important;
  row-gap: calc(var(--space-block) * 2) !important;
  margin-top: var(--space-block) !important;
  width: 100%;
  max-width: none;
}

body.case-study-page.cs-v2 .cs-v2-decision-media-stack .screens-section,
body.case-study-page.cs-v2 .cs-v2-decision-media-stack .cs-match-img.cs-v2-list {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.case-study-page.cs-v2 .sb-case #design figure.sb-ds-sheet > figcaption.cs-caption {
  margin-top: 12px;
  margin-bottom: 0;
}

body.case-study-page.cs-v2 .cs-v2-study .cs-v2-compare-title {
  color: var(--accent-2) !important;
}

body.case-study-page.cs-v2 .cs-v2-study .cs-customer-view__label {
  color: var(--accent-2) !important;
}

/* ── Healthcare (healthcare.html) ── */
body.case-study-page.cs-v2:has(.content.hc-case) > .hero {
  overflow: visible;
}

body.case-study-page.cs-v2:has(.content.hc-case) > .hero .meta-strip,
body.case-study-page.cs-v2:has(.content.hc-case) > .hero .hero-subtitle {
  --hc-meta-width: min(calc(var(--cs-track) * 1.15), calc(100vw - 2 * var(--cs-pad, 32px)));
  box-sizing: border-box;
  width: var(--hc-meta-width);
  max-width: var(--hc-meta-width);
  margin-left: calc((100% - var(--hc-meta-width)) / 2);
  margin-right: calc((100% - var(--hc-meta-width)) / 2);
}

body.case-study-page.cs-v2:has(.content.hc-case) > .hero .hero-subtitle {
  text-align: center;
}

body.case-study-page.cs-v2:has(.content.hc-case) > .hero .meta-value {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Design decisions — space between step cards / tables and screenshots */
body.case-study-page.cs-v2 .hc-case .cs-v2-decision > .hc-wizard-steps-grid {
  margin-top: var(--space-block);
}

body.case-study-page.cs-v2 .hc-case .cs-v2-decision > .hc-wizard-steps-grid + :is(.hc-featured-screens, .hc-wizard-gallery),
body.case-study-page.cs-v2 .hc-case .cs-v2-decision > table.cs-table.data-table + :is(.hc-featured-screens, .hc-wizard-gallery),
body.case-study-page.cs-v2 .hc-case .cs-v2-decision > table.cs-table.data-table + p {
  margin-top: calc(var(--space-block) * 2) !important;
}

body.case-study-page.cs-v2 .hc-case .hc-wizard-steps-grid {
  --cs-wide-track: min(1200px, calc(100vw - 64px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: var(--cs-wide-track);
  max-width: var(--cs-wide-track);
  margin-left: calc((100% - var(--cs-wide-track)) / 2);
  margin-right: 0;
  box-sizing: border-box;
}

@media (min-width: 640px) and (max-width: 899.98px) {
  body.case-study-page.cs-v2 .hc-case .hc-wizard-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  body.case-study-page.cs-v2 .hc-case .hc-wizard-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.case-study-page.cs-v2 .hc-case .hc-wizard-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-sizing: border-box;
  text-align: left;
}

body.case-study-page.cs-v2 .hc-case .hc-wizard-step-card__num {
  display: block;
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-body) !important;
  font-weight: 600 !important;
  line-height: var(--lh-body) !important;
  color: var(--accent-2) !important;
  margin: 0 0 8px;
}

body.case-study-page.cs-v2 .hc-case .hc-wizard-step-card h4 {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-body) !important;
  font-weight: 600 !important;
  line-height: var(--lh-body) !important;
  color: var(--ink) !important;
  margin: 0 0 8px;
}

body.case-study-page.cs-v2 .hc-case .hc-wizard-step-card p {
  font-family: "Poppins", sans-serif !important;
  font-size: var(--fs-body) !important;
  font-weight: 400 !important;
  line-height: var(--lh-body) !important;
  color: var(--body) !important;
  margin: 0;
  max-width: none !important;
}

body.case-study-page.cs-v2 .hc-case .hc-featured-screens {
  --cs-wide-track: min(1200px, calc(100vw - 64px));
  --hc-featured-max: min(880px, calc(var(--cs-wide-track) * 0.8));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-block);
  width: var(--cs-wide-track);
  max-width: var(--cs-wide-track);
  margin-left: calc((100% - var(--cs-wide-track)) / 2);
  margin-right: 0;
  box-sizing: border-box;
}

body.case-study-page.cs-v2 .hc-case .hc-featured-screens .hc-wizard-shot {
  width: 100%;
  max-width: var(--hc-featured-max);
  align-items: center;
  text-align: center;
}

body.case-study-page.cs-v2 .hc-case .hc-featured-screens .hc-wizard-shot__frame {
  width: 100%;
  max-width: var(--hc-featured-max);
  margin-left: auto;
  margin-right: auto;
}

body.case-study-page.cs-v2 .hc-case .hc-featured-screens .hc-wizard-shot__frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

body.case-study-page.cs-v2 .hc-case .hc-featured-screens .hc-wizard-caption,
body.case-study-page.cs-v2 .hc-case .hc-featured-screens .cs-caption {
  text-align: center;
  max-width: var(--hc-featured-max);
  margin-left: auto;
  margin-right: auto;
}

body.case-study-page.cs-v2 .hc-case .cs-v2-decision > table.cs-table.data-table,
body.case-study-page.cs-v2 .hc-case #discover .hc-persona-table {
  display: table !important;
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
  box-sizing: border-box;
}

body.case-study-page.cs-v2 .hc-case .cs-v2-decision > table.cs-table.data-table th:first-child,
body.case-study-page.cs-v2 .hc-case .cs-v2-decision > table.cs-table.data-table td:first-child {
  width: 16%;
}

body.case-study-page.cs-v2:has(.content.hc-case) .content.case-main > .section > * + .hc-persona-panel {
  margin-top: var(--cs-gap) !important;
}

body.case-study-page.cs-v2 .hc-case #discover .hc-persona-table th[scope="row"] {
  width: 22% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Mobile case study — phone hi-fi (same 242px frames + 14px gap as POS col-3) */
body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screens-section > .screens-grid {
  display: grid;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  justify-items: center;
}

body.case-study-page.cs-v2 .content.mob-case #design {
  --mob-phone-w: 242px;
}

/* Second row in same decision: tighter gap from first row */
body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screens-section + .screens-section {
  margin-top: var(--space-text) !important;
}

/* Same frame for every phone mock (onboarding and userflow assets) */
body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screen-item {
  width: var(--mob-phone-w);
  max-width: 100%;
}

body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screen-wrap {
  width: 100%;
  aspect-ratio: 472 / 1024;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screen-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

@media (min-width: 860px) {
  body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screens-grid.col-3 {
    grid-template-columns: repeat(3, 242px);
  }

  body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screens-grid.mob-screens-row--4 {
    grid-template-columns: repeat(4, 242px);
  }

  body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screens-grid.col-3 .screen-wrap,
  body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screens-grid.mob-screens-row--4 .screen-wrap {
    max-width: none;
  }
}

@media (min-width: 640px) and (max-width: 859.98px) {
  body.case-study-page.cs-v2 .content.mob-case #design {
    --mob-phone-w: calc((min(1006px, calc(100vw - 64px)) - 42px) / 4);
  }

  body.case-study-page.cs-v2 .content.mob-case #design .cs-v2-decision .screens-grid.col-3 {
    grid-template-columns: repeat(3, var(--mob-phone-w)) !important;
    width: fit-content !important;
    max-width: calc(3 * var(--mob-phone-w) + 28px) !important;
  }

  body.case-study-page.cs-v2 .content.mob-case #design .cs-v2-decision .screens-grid.mob-screens-row--4 {
    grid-template-columns: repeat(4, var(--mob-phone-w)) !important;
    width: fit-content !important;
    max-width: calc(4 * var(--mob-phone-w) + 42px) !important;
  }
}

@media (min-width: 376px) and (max-width: 639.98px) {
  body.case-study-page.cs-v2 .content.mob-case #design {
    --mob-phone-w: calc((min(100vw, 100%) - 48px - 14px) / 2);
  }

  body.case-study-page.cs-v2 .content.mob-case #design .cs-v2-decision .screens-grid.col-3 {
    grid-template-columns: repeat(3, var(--mob-phone-w)) !important;
    width: fit-content !important;
    max-width: calc(3 * var(--mob-phone-w) + 28px) !important;
  }

  body.case-study-page.cs-v2 .content.mob-case #design .cs-v2-decision .screens-grid.mob-screens-row--4 {
    grid-template-columns: repeat(2, var(--mob-phone-w)) !important;
    width: fit-content !important;
    max-width: calc(2 * var(--mob-phone-w) + 14px) !important;
  }
}

@media (max-width: 375.98px) {
  body.case-study-page.cs-v2 .content.mob-case #design {
    --mob-phone-w: calc((100vw - 48px - 14px) / 2);
  }

  body.case-study-page.cs-v2 .content.mob-case #design .cs-v2-decision .screens-grid.col-3 {
    grid-template-columns: repeat(2, var(--mob-phone-w)) !important;
    width: fit-content !important;
    max-width: calc(2 * var(--mob-phone-w) + 14px) !important;
  }

  body.case-study-page.cs-v2 .content.mob-case #design .cs-v2-decision .screens-grid.mob-screens-row--4 {
    grid-template-columns: repeat(2, var(--mob-phone-w)) !important;
    width: fit-content !important;
    max-width: calc(2 * var(--mob-phone-w) + 14px) !important;
  }
}

/* Single phone screen, centred (same 242px track as POS on desktop) */
body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screens-grid.mob-screens-centered-one {
  display: grid;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
  body.case-study-page.cs-v2 .mob-case .cs-v2-decision .screens-grid.mob-screens-centered-one {
    grid-template-columns: 242px;
  }
}

