/* Case study pages — a faithful copy of the old site's layout (rail + metadata row + italic headings + framed panels),
   set in Switzer. Each page supplies its own palette via the body class. */
body.cs {
  --hero: #f1e7d7; --ac: #855932; --panel: #fffcf7; --pbd: #8a7b69; --title: #826f5d;
  --hl: #855933; --rt: #4a2f18; --rd: #5e5044; --emoji: #c77824;
  background: #fff; color: #141414; font-family: var(--font);
}
body.cs--netflix { --hero: #3b3b3b; --ac: #8f1615; --panel: #fffafa; --pbd: #8f1313; --title: #8c0000; --hl: #8e1313; --rt: #8e1313; --rd: #141414; }
body.cs--navi { --hero: #ffecc9; --ac: #cc7624; --panel: #fff9ed; --pbd: #aa6c0f; --title: #cc7624; --hl: #cb7624; }

/* hero band: colour bar + phone artwork, full bleed */
.cs-hero { background: var(--hero); position: relative; zoom: var(--z); }
.cs-hero__bar { height: 90px; position: relative; max-width: 1512px; margin: 0 auto; }
.cs-logo { position: absolute; left: 100px; top: 30px; width: 27px; }
.cs-logo img { width: 27px; height: auto; }
.cs-hero__img { display: block; width: 100%; max-width: 2200px; margin: 0 auto; aspect-ratio: 1513 / 542; object-fit: cover; }
.cs-hero__cap { position: absolute; left: 0; right: 0; top: 131px; text-align: center; font-size: 24px; line-height: 36px; font-weight: 500; color: #e0d889; letter-spacing: -0.02em; }

/* two columns: sticky rail + content */
.cs-wrap { zoom: var(--z); display: grid; grid-template-columns: 383px minmax(0, 1fr); max-width: 1512px; margin: 0 auto; }
.cs-rail { position: sticky; top: 56px; align-self: start; height: 800px; margin-top: 10px; border-right: 1px solid #c7c7c7; padding: 54px 0 0 87px; }
.cs-rail__icon { width: 66px; height: 66px; border-radius: 10px; display: block; }
.cs-rail__title { margin: 24px 0 0; max-width: 260px; font-size: 38px; line-height: 45.6px; font-weight: 400; letter-spacing: -0.06em; color: var(--title); }
.cs-rail__icon + .cs-rail__title { margin-top: 23px; }
.cs-rail:not(:has(.cs-rail__icon)) .cs-rail__title { margin-top: 38px; }
.cs-toc { position: absolute; left: 87px; top: 358px; display: flex; flex-direction: column; }
.cs-toc__h { font-size: 16px; line-height: 19.2px; font-style: italic; letter-spacing: -0.02em; color: #787878; margin-bottom: 17px; }
.cs-toc a { font-size: 18px; line-height: 21.6px; letter-spacing: -0.01em; color: #5d5d5d; padding: 5px 0; transition: color 0.25s; }
.cs-toc a:hover, .cs-toc a.is-active { color: #141414; }
.cs-main { min-width: 0; padding: 58px 104px 140px 80px; }

/* type */
.cs-meta { display: flex; justify-content: flex-start; gap: 96px; flex-wrap: wrap; max-width: 100%; }
@media (max-width: 1499px) { .cs-meta { gap: 64px; } }
.cs-meta small { display: block; font-size: 14px; line-height: 16.8px; letter-spacing: 0.02em; color: #787878; text-transform: uppercase; }
.cs-meta span { display: block; font-size: 18px; line-height: 27px; letter-spacing: -0.01em; color: #141414; }
.cs-meta small + span { margin-top: 10px; }
.cs-q { margin-top: 58px; font-size: 24px; line-height: 36px; font-weight: 500; font-style: italic; letter-spacing: -0.05em; color: var(--ac); }
.cs-sec { margin-top: 94px; scroll-margin-top: 30px; }
.cs-q + .cs-sec { margin-top: 94px; }
.eb { font-size: 14px; line-height: 16.8px; letter-spacing: 0.02em; text-transform: uppercase; color: #787878; }
.h3i { margin-top: 10px; font-size: 24px; line-height: 36px; font-weight: 500; font-style: italic; letter-spacing: -0.05em; color: var(--ac); }
.p { margin-top: 8px; font-size: 18px; line-height: 27px; letter-spacing: -0.02em; color: #141414; max-width: 945px; }
.p + .p, .p-gap { margin-top: 27px; }
.p b, .hl { font-weight: 600; color: var(--hl); }
.p i.hl2, .hl2 { color: var(--hl); font-weight: 400; }
.p em { font-style: italic; }
.p a { color: var(--hl); text-decoration: underline; text-underline-offset: 3px; }
.p .blue { color: #1d56b8; font-style: italic; }
.gray { color: #808080; font-style: italic; }
.fig { margin: 38px auto 0; display: block; }
.fig img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* framed panels */
.pnl { background: var(--panel); border: 1px solid var(--pbd); border-radius: 16px; width: 945px; max-width: calc(100% - 8px); margin-left: 8px; }
.pnl-list { margin-top: 38px; display: flex; flex-direction: column; gap: 16px; }
.pnl-row { display: grid; grid-template-columns: 51px minmax(0, 1fr); align-items: center; min-height: 88px; padding: 0 35px; font-size: 18px; line-height: 27px; letter-spacing: -0.02em; }
.pnl-row--e { min-height: 94px; grid-template-columns: 69px minmax(0, 1fr); }
.num { font-family: "Instrument Serif", Georgia, serif; font-size: 32px; line-height: 48px; letter-spacing: 0.02em; }
.emo { font-family: "Instrument Serif", Georgia, serif; font-size: 32px; line-height: 48px; }

/* personas */
.persona { margin-top: 29px; display: flex; gap: 48px; align-items: flex-start; }
.persona img { width: 170px; height: auto; flex: none; margin-top: 12px; }
.persona__t { max-width: 746px; font-size: 18px; line-height: 30.6px; letter-spacing: -0.03em; }
.persona__t p { margin: 0; }
.persona__t .hl { display: block; }
.persona__t ul { margin: 0; padding-left: 22px; }

/* features (Roomie) */
.frow { display: flex; align-items: center; width: 959px; max-width: 100%; margin: 28px 0 0 2px; }
.fp { flex: 0 0 430px; height: 120px; display: flex; align-items: center; gap: 36px; padding: 0 35px; margin: 0; width: auto; max-width: none; font-size: 18px; line-height: 27px; letter-spacing: -0.02em; font-weight: 600; color: var(--hl); }
.fp .emo { font-size: 42px; line-height: 63px; width: 43px; flex: none; font-weight: 400; color: #141414; }
.fp span:last-child { max-width: 280px; }
.arw { flex: 1; display: grid; place-items: center; }
.arw svg { width: 51px; height: 20px; }
.fbody { display: flex; align-items: center; gap: 55px; margin: 56px 0 0 27px; }
.fbody img { width: 289px; height: auto; flex: none; }
.chk { display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 27px; letter-spacing: -0.02em; }
.chk li { list-style: none; }
.chk ul { margin: 0; padding: 0; display: contents; }
.f-p { margin-top: 40px; }

/* reflection panels */
.rp { padding: 22px 36px 26px; margin-top: 16px; }
.rp:first-of-type { margin-top: 38px; }
.rp__h { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 27px; font-style: italic; letter-spacing: -0.02em; color: var(--rt); }
.rp__h .emo { font-size: 24px; line-height: 36px; color: var(--emoji); font-style: normal; }
.rp p { margin: 6px 0 0; font-size: 16px; line-height: 24px; letter-spacing: -0.02em; color: var(--rd); }

/* Netflix-specific */
.ms { display: flex; align-items: flex-end; gap: 36px; margin-top: 38px; }
.ms video { width: 227px; height: auto; display: block; flex: none; background: transparent; }
.ms .eb { margin-bottom: 0; }
.ms__t { font-size: 24px; line-height: 36px; letter-spacing: -0.03em; max-width: 327px; margin-top: 12px; }
.ms--flow { justify-content: center; margin-top: 60px; }
.q35 { margin-top: 26px; font-size: 35px; line-height: 52.5px; font-weight: 600; font-style: italic; letter-spacing: -0.05em; color: var(--hl); }
.strip { margin: 38px -104px 0 -80px; padding: 0 80px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.strip img { height: 374px; width: auto; flex: none; scroll-snap-align: start; border-radius: 4px; }
.pc { margin-top: 38px; display: flex; flex-direction: column; gap: 28px; }
.pc__r { display: flex; gap: 20px; align-items: center; }
.pc__l { flex: 0 0 180px; align-self: stretch; min-height: 99px; display: grid; place-items: center; text-align: center; padding: 0 20px; border: 2px solid #8a1717; border-radius: 8px; background: var(--panel); font-size: 18px; line-height: 27px; font-weight: 600; font-style: italic; color: #543c3c; letter-spacing: -0.02em; }
.pc__l.is-pick { background: #8a1717; color: #fff0f0; }
.pc__t { display: flex; flex-direction: column; gap: 22px; }
.pc__t div { display: flex; gap: 12px; font-size: 18px; line-height: 27px; letter-spacing: -0.02em; }
.pc__t div::before { content: "+"; color: #00ad26; font-size: 28px; line-height: 27px; font-weight: 700; width: 18px; flex: none; }
.pc__t div.neg::before { content: "–"; color: #bd3020; }
.ol { margin-top: 28px; display: flex; flex-direction: column; gap: 30px; list-style: none; padding: 0; counter-reset: n; }
.ol li { counter-increment: n; position: relative; }
.ol h4 { margin: 0; font-size: 24px; line-height: 36px; font-weight: 600; font-style: italic; letter-spacing: -0.04em; color: #181818; display: flex; gap: 12px; }
.ol h4::before { content: counter(n) "."; }
.ol li.good h4 { color: #0e7a26; }
.ol p { margin: 10px 0 0 31px; font-size: 18px; line-height: 27px; letter-spacing: -0.02em; max-width: 928px; }
.ol .bad { color: #8a1a1a; }
.ol .ok { color: #0e7a26; }
.ol li.good::before { content: ""; position: absolute; left: -34px; top: -6px; width: 72px; height: 32px; border: 3px solid #d5d8d6; border-radius: 50%; transform: rotate(-8deg); border-right-color: transparent; }
.h4b { margin-top: 30px; font-size: 24px; line-height: 36px; font-weight: 600; letter-spacing: -0.04em; color: #181818; }
.cmp { display: grid; margin-top: 38px; gap: 0 30px; }
.cmp--2 { grid-template-columns: 1fr 1fr; }
.cmp--3 { grid-template-columns: repeat(3, 1fr); gap: 0 60px; }
.cmp__c { text-align: center; }
.cmp__c h5 { margin: 0 0 26px; font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: -0.02em; }
.cmp__c img { margin: 0 auto; max-width: 100%; height: auto; }
.cmp__c ul { margin: 22px auto 0; padding: 0; list-style: none; text-align: left; font-size: 14px; line-height: 21px; letter-spacing: -0.01em; display: flex; flex-direction: column; gap: 10px; width: fit-content; max-width: 331px; }
.cmp--3 .cmp__c ul { max-width: 246px; }
.cmp--3 .cmp__c img { width: 195px; }

/* Navi's rail is a touch wider in the original */
.cs-wrap--navi { grid-template-columns: 388px minmax(0, 1fr); }
.cs-wrap--navi .cs-rail { padding-left: 59px; }
.cs-wrap--navi .cs-main { padding-left: 81px; }

@media (max-width: 1100px) {
  .cs-wrap, .cs-wrap--navi { grid-template-columns: minmax(0, 1fr); }
  .cs-rail, .cs-wrap--navi .cs-rail { position: static; height: auto; margin: 0; border: 0; padding: 40px 32px 0; }
  .cs-toc { display: none; }
  .cs-main, .cs-wrap--navi .cs-main { padding: 40px 32px 90px; }
  .pnl, .frow { width: 100%; }
  .cs-logo { left: 32px; }
}
@media (max-width: 760px) {
  .frow { flex-direction: column; gap: 16px; }
  .fp { flex-basis: auto; width: 100%; height: auto; padding: 22px; }
  .arw svg { transform: rotate(90deg); }
  .fbody, .ms, .persona, .pc__r { flex-direction: column; align-items: flex-start; margin-left: 0; }
  .cmp--2, .cmp--3 { grid-template-columns: 1fr; gap: 40px; }
  .cs-q { font-size: 21px; }
  .q35 { font-size: 26px; line-height: 38px; }
  .cs-hero__cap { top: 90px; font-size: 18px; line-height: 26px; }
  .strip { margin-left: -32px; margin-right: -32px; padding: 0 32px; }
  .strip img { height: 240px; }
}
