/* Maldo case study: the case-study.css layout with Maldo's teal and warm yellow in place of Profits' red. */
body.cs-maldo { --profile-red: #2FBFA8; --pr-rgb: 47 191 168; --gold: #F8B400; }

.cs-maldo .cs-bridge-q { max-width: 36ch; }
.cs-maldo .cs-bridge-q mark { background: linear-gradient(transparent 62%, rgb(47 191 168 / 34%) 62%) no-repeat 0 0 / 100% 100%; }
.cs-maldo .cs-hl.s1 { border-color: #2FBFA8; background: rgb(47 191 168 / 16%); }
.cs-maldo .cs-hl.s2 { border-color: #5B9BFF; background: rgb(91 155 255 / 14%); }
.cs-maldo .cs-hl.s3 { border-color: #F8B400; background: rgb(248 180 0 / 16%); }

/* In-page jump bar: six sections, one line, scrolls on a narrow phone */
.cs-maldo .cs-switch { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cs-maldo .cs-switch::-webkit-scrollbar { display: none; }
.cs-maldo .cs-switch a { flex: none; white-space: nowrap; }

/* With / without: this is a new product, there is no old screen to compare */
@media (max-width: 820px) {
  .cs-maldo .cs-then-now > div:not(.hd) .t::before { content: "Without: "; }
  .cs-maldo .cs-then-now > div:not(.hd) .n::before { content: "With: "; }
}

/* Survey results: two small bar charts side by side */
.mx-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; }
.mx-chart { margin: 0; padding: 22px 22px 18px; border: 1px solid var(--rule); border-radius: 16px; background: #141416; }
.mx-chart figcaption { margin-bottom: 18px; }
.mx-chart figcaption b { display: block; color: var(--bright); font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.mx-chart figcaption span { color: var(--muted); font-size: 12px; }
.mx-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin-bottom: 14px; }
.mx-bar:last-child { margin-bottom: 0; }
.mx-bar p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.45; }
.mx-bar em { color: var(--bright); font-size: 13px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.mx-bar i { position: relative; grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 6px; background: #26262A; }
.mx-bar i::after { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: #3B6F69; content: ""; }
.mx-bar.is-top i::after { background: var(--profile-red); }
@media (max-width: 760px) { .mx-charts { grid-template-columns: minmax(0, 1fr); } }

/* Interview quotes */
.mx-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.mx-quotes li { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 20px 20px 18px; border: 1px solid var(--rule); border-radius: 16px; background: #141416; }
.mx-quotes blockquote { margin: 0; color: var(--bright); font-size: 14px; line-height: 1.7; }
.mx-quotes blockquote::before { display: block; height: 22px; color: var(--profile-red); font-size: 34px; line-height: 1; content: "“"; }
.mx-quotes cite { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 860px) { .mx-quotes { grid-template-columns: minmax(0, 1fr); } }

/* Tables: fundraisers and donors, the three questions, testers' findings, task results */
.mx-table-wrap { margin: 28px 0 0; overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: #141416; scrollbar-width: none; }
.mx-table-wrap::-webkit-scrollbar { display: none; }
.mx-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
.mx-table th, .mx-table td { padding: 16px 18px; vertical-align: top; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.6; }
.mx-table thead th, .mx-table thead td { border-top: 0; padding-top: 18px; padding-bottom: 16px; color: var(--bright); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.mx-table thead th small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.mx-table tbody td { color: var(--text); }
.mx-table tbody td strong { color: var(--bright); font-weight: 600; }
.mx-table tbody th { width: 120px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.mx-table .num { color: var(--bright); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mx-table .num s { color: var(--muted); text-decoration: none; }
.mx-table .num s::after { margin: 0 6px; color: var(--profile-red); content: "→"; }
.mx-table-wrap + .cs-prose, .mx-personas + .cs-prose, .mx-shots + .cs-prose, .mx-quotes + .cs-prose, .mx-charts + .cs-prose, .mx-score + .cs-prose, .mx-its + .cs-prose { margin-top: 40px; }

/* Two personas */
.mx-personas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.mx-personas li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 20px; border: 1px solid var(--rule); border-radius: 16px; background: #141416; }
.mx-personas .av { display: grid; width: 44px; height: 44px; grid-row: 1 / span 3; place-items: center; border-radius: 50%; background: rgb(47 191 168 / 16%); color: var(--profile-red); font-size: 16px; font-weight: 600; }
.mx-personas li.is-donor .av { background: rgb(248 180 0 / 16%); color: var(--gold); }
.mx-personas h4 { color: var(--bright); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.mx-personas .who { color: var(--muted); font-size: 12px; }
.mx-personas p:last-child { margin-top: 6px; color: var(--text); font-size: 13px; line-height: 1.65; }
@media (max-width: 760px) { .mx-personas { grid-template-columns: minmax(0, 1fr); } }

/* Screens side by side */
.mx-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; }
.mx-shot { margin: 0; }
.mx-shot-img { position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 18px; background: #F6F8F7; aspect-ratio: var(--ar, 393 / 560); }
.mx-shot-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.mx-shot figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.mx-shot figcaption b { color: var(--bright); font-size: 13.5px; font-weight: 600; }
@media (max-width: 640px) {
  .mx-shots { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(220px, 78%); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mx-shots::-webkit-scrollbar { display: none; }
  .mx-shot { scroll-snap-align: start; }
}

/* Test results: four big numbers */
.mx-score { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.mx-score li { padding: 20px 22px 18px; border: 1px solid var(--rule); border-radius: 16px; background: #141416; }
.mx-score .lbl { margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.mx-score .big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; color: var(--bright); font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mx-score .big s { color: var(--muted); font-size: 20px; font-weight: 500; text-decoration: none; }
.mx-score .big s::after { margin-left: 12px; color: var(--profile-red); font-size: 20px; content: "→"; }
.mx-score .big em { color: var(--profile-red); font-style: normal; }
.mx-score p { margin: 8px 0 0; color: var(--text); font-size: 13px; line-height: 1.6; }
@media (max-width: 640px) { .mx-score { grid-template-columns: minmax(0, 1fr); } }

/* Iterations: before and after, straight from the testing board */
.mx-its { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; }
.mx-it { margin: 0; }
.mx-it img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.mx-it figcaption { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.mx-it figcaption b { color: var(--bright); font-weight: 600; }
