/* Case study: text formatter output + Monetary Value / Video / Presentation sections (Nov 2026). */

/* tnz_cs_text() output inside the existing blocks (they used to be single <p>s). */
.cs-context-text p, .cs-problem-text p, .cs-tech-impact-text p, .cs-impl-intro p, .cs-concept-text p,
.cs-premium-text-compact p, .cs-rejected-text p, .cs-arch-card-text p, .cs-phase-content p, .outcome-text p { margin: 0 0 .8em; }
.cs-context-text > :last-child, .cs-problem-text > :last-child, .cs-tech-impact-text > :last-child, .cs-impl-intro > :last-child,
.cs-concept-text > :last-child, .cs-premium-text-compact > :last-child, .cs-rejected-text > :last-child, .cs-arch-card-text > :last-child,
.cs-phase-content > :last-child, .outcome-text > :last-child { margin-bottom: 0; }
.cs-context-text ul, .cs-problem-text ul, .cs-arch-overview ul, .cs-phase-content ul, .cs-impl-intro ul, .cs-tech-impact-text ul, .cs-premium-text-compact ul {
  margin: .4em 0 .9em; padding-left: 1.2em; }
.cs-context-text li, .cs-problem-text li, .cs-arch-overview li, .cs-phase-content li, .cs-impl-intro li, .cs-tech-impact-text li, .cs-premium-text-compact li { margin-bottom: .35em; }
.cs-arch-overview p { margin: 0 0 1em; }

/* shared section shell */
.cs-x { --x-navy: #10142a; --x-red: #cb2026; --x-red-hi: #ff6b70; --x-blue: #566eb1; --x-ink: #121527; --x-muted: #5b6078;
  position: relative; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 40px); }
.cs-x-head { text-align: center; margin: 0 auto clamp(32px, 5vw, 56px); max-width: 760px; }
.cs-x-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--x-red); margin-bottom: 12px; }
.cs-x-title { margin: 0; font: 300 clamp(36px, 5vw, 64px)/1.05 Outfit, Roboto, sans-serif; letter-spacing: -.02em; color: var(--x-ink); }
.cs-x-title strong { font-weight: 700; color: var(--x-red); }

/* Monetary Value: navy band with stat tiles */
.cs-x-value { background: radial-gradient(80% 120% at 100% 0, rgba(86, 110, 177, .55) 0, transparent 55%), radial-gradient(70% 100% at 0 100%, rgba(203, 32, 38, .45) 0, transparent 55%), var(--x-navy); color: #fff; overflow: hidden; }
.cs-x-value .cs-x-title { color: #fff; }
.cs-x-value .cs-x-title strong { color: var(--x-red-hi); }
.cs-x-value .cs-x-eyebrow { color: var(--x-red-hi); }
.cs-x-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; max-width: 1100px; margin: 0 auto clamp(32px, 4vw, 48px); padding: 0; }
.cs-x-stat { margin: 0; padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.cs-x-stat dt { font: 600 12px/1.3 Roboto, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #a3a8c3; margin: 0 0 12px; }
.cs-x-stat dd { margin: 0; font: 300 clamp(26px, 3vw, 40px)/1.1 Outfit, Roboto, sans-serif; color: #fff; }
.cs-x-stat.is-lead { background: linear-gradient(135deg, rgba(203, 32, 38, .9), rgba(86, 110, 177, .9)); border-color: transparent; }
.cs-x-stat.is-lead dt { color: rgba(255, 255, 255, .85); }
.cs-x-stat.is-lead dd { font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; }
.cs-x-body { max-width: 820px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: #d4d8ea; }
.cs-x-body p { margin: 0 0 1em; }
.cs-x-basis { color: #fff; }
.cs-x-note { max-width: 820px; margin: 24px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; line-height: 1.6; color: #9aa0bd; font-style: italic; }

/* Video / Presentation */
.cs-x-media { background: #f4f5fa; }
.cs-x-pres { background: #fff; }
.cs-x-frame { max-width: 1100px; margin: 0 auto; }
.cs-x-ratio { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 22px; overflow: hidden; background: var(--x-navy); box-shadow: 0 30px 70px rgba(16, 20, 42, .22); }
.cs-x-ratio iframe, .cs-x-ratio video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-x-frame figcaption { margin-top: 14px; text-align: center; font-size: 15px; color: var(--x-muted); }
.cs-x-placeholder { display: grid; place-items: center; border: 2px dashed rgba(86, 110, 177, .5); background: repeating-linear-gradient(135deg, #eef0f7 0 18px, #e6e9f3 18px 36px); box-shadow: none; }
.cs-x-placeholder span { display: grid; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--x-ink); font: 400 clamp(20px, 2.4vw, 28px) Outfit, Roboto, sans-serif; }
.cs-x-placeholder i { font-size: 48px; color: var(--x-blue); }
.cs-x-placeholder small { max-width: 420px; font: 14px/1.5 Roboto, sans-serif; color: var(--x-muted); }
.cs-x-actions { text-align: center; margin: 24px 0 0; }
.cs-x-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--x-red); color: #fff !important; text-decoration: none; font-weight: 600; }
.cs-x-btn:hover { background: var(--x-navy); }

@media (max-width: 767.98px) {
  .cs-x-stats { grid-template-columns: 1fr; }
  .cs-x-body { font-size: 16px; }
  .cs-x-ratio { border-radius: 14px; }
}

/* ===== Video-first hero + sticky sub-nav (preview only, Nov 2026: ?preview=sections) ===== */
.csv-hero { --csv-navy: #0b1024; --csv-red: #ff6b70; --csv-w: min(1240px, 100%, calc((100svh - var(--csv-top, 90px) - 250px) * 16 / 9));
  position: relative; overflow: hidden; color: #fff; padding: calc(var(--csv-top, 90px) + 12px) max(16px, 3vw) 0;
  background: radial-gradient(60% 70% at 85% 10%, rgba(86, 110, 177, .35), transparent 60%), radial-gradient(50% 60% at 5% 90%, rgba(203, 32, 38, .28), transparent 60%), var(--csv-navy); }
.csv-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1.2px); background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.csv-stage { position: relative; width: var(--csv-w); min-width: min(100%, 560px); margin: 0 auto; }
.csv-player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 22px; overflow: hidden; background: #000;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 6px rgba(255, 255, 255, .03), 0 40px 90px -20px rgba(0, 0, 0, .7), -30px 20px 80px -40px rgba(203, 32, 38, .55), 30px -10px 80px -40px rgba(86, 110, 177, .6); }
.csv-video, .csv-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.csv-controls { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.csv-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px; justify-content: center; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(11, 16, 36, .55); color: #fff; font: 500 13px/1 Roboto, sans-serif; backdrop-filter: blur(8px); transition: background .2s; }
.csv-btn:hover, .csv-btn:focus-visible { background: rgba(203, 32, 38, .85); }
.csv-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.csv-btn[aria-pressed="true"] span { display: none; }
.csv-empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #10163a 0 18px, #0d1230 18px 36px); }
.csv-empty span { display: grid; justify-items: center; gap: 10px; text-align: center; font: 400 clamp(20px, 2.4vw, 28px) Outfit, Roboto, sans-serif; color: #fff; }
.csv-empty i { font-size: 52px; color: var(--csv-red); }
.csv-empty small { font: 14px Roboto, sans-serif; color: #a3a8c3; }
.csv-rail { position: relative; width: var(--csv-w); min-width: min(100%, 560px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 32px; padding: 24px 0 28px; }
.csv-rail-text { min-width: 0; }
.csv-eyebrow { display: block; margin-bottom: 8px; font: 600 12px/1.3 Roboto, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--csv-red); }
.csv-eyebrow i { font-style: normal; color: rgba(255, 255, 255, .35); padding: 0 4px; }
.csv-title { margin: 0; font: 500 clamp(22px, 2.2vw, 32px)/1.18 Outfit, Roboto, sans-serif; letter-spacing: -.01em; color: #fff !important; text-wrap: balance; }
.csv-stats { display: flex; margin: 0; padding: 0; }
.csv-stats > div { padding: 0 16px; border-left: 1px solid rgba(255, 255, 255, .16); }
.csv-stats > div:first-child { padding-left: 0; border-left: 0; }
.csv-stats dt { font: 600 11px/1.3 Roboto, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #a3a8c3; margin: 0 0 6px; white-space: nowrap; }
.csv-stats dd { margin: 0; font: 500 clamp(16px, 1.3vw, 19px)/1.2 Outfit, Roboto, sans-serif; color: #fff; white-space: nowrap; }

.csv-subnav { position: sticky; top: var(--csv-top, 90px); z-index: 4000; background: rgba(11, 16, 36, .88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
/* once stuck, the band also fills the strip behind the (transparent) site header */
.csv-subnav.is-stuck::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--csv-top, 90px); background: inherit; backdrop-filter: inherit; -webkit-backdrop-filter: inherit; }
.csv-subnav.is-stuck { border-top-color: transparent; }
.csv-subnav-inner { overflow-x: auto; scrollbar-width: none; padding: 10px max(16px, 3vw); }
.csv-subnav-inner::-webkit-scrollbar { display: none; }
.csv-tabs { position: relative; display: flex; gap: 6px; width: max-content; margin: 0 auto; padding: 0; list-style: none; }
.csv-tabs li { margin: 0; position: relative; z-index: 1; }
.csv-tabs a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; white-space: nowrap; text-decoration: none !important;
  font: 500 15px/1 Roboto, sans-serif; color: #c4c8dc !important; transition: color .25s; }
.csv-tabs a:hover, .csv-tabs a[aria-current] { color: #fff !important; }
.csv-tabs a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.csv-n { font: 600 11px/1 Roboto, sans-serif; letter-spacing: .08em; color: var(--csv-red, #ff6b70) !important; opacity: .8; }
.csv-tabs li.csv-ink { position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(135deg, rgba(203, 32, 38, .9), rgba(86, 110, 177, .9)); box-shadow: 0 6px 20px -6px rgba(203, 32, 38, .6); transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1); }
.csv-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #cb2026, #566eb1); }
#cs-presentation, #cs-details { scroll-margin-top: calc(var(--csv-top, 90px) + 64px); }
body:has(.csv-hero) .top-menu-wrapper .site-title svg * { fill: #fff; stroke: #fff; } /* hero and stuck bar are both navy */

@media (max-width: 767.98px) {
  .csv-hero { padding-left: 0; padding-right: 0; }
  .csv-stage, .csv-rail { width: 100%; min-width: 0; }
  .csv-player { border-radius: 0; border-left: 0; border-right: 0; }
  .csv-rail { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 24px; }
  .csv-long { display: none; }
  .csv-stats { width: 100%; }
  .csv-stats > div { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .csv-stats dt, .csv-stats dd { white-space: normal; }
  .csv-btn span { display: none; }
  .csv-tabs a { padding: 10px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .csv-tabs li.csv-ink { transition: none; } }

/* Full-screen deck viewer (opened by "View full screen") */
html.cs-deck-open { overflow: hidden; }
.cs-deck-ov { position: fixed; inset: 0; z-index: 100000; background: #0d1222; }
.cs-deck-ov iframe { position: absolute; left: 50%; top: 50%; border: 0; background: #0d1222; }
.cs-deck-ov .cs-deck-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px !important; height: 44px !important; min-width: 0; padding: 0 !important; margin: 0; border-radius: 50% !important; border: 1px solid rgba(255,255,255,.25) !important; background: rgba(13,18,34,.6) !important; color: #fff !important; font-size: 18px; line-height: 1; box-shadow: none; cursor: pointer; }
.cs-deck-ov .cs-deck-x:hover, .cs-deck-ov .cs-deck-x:focus-visible { background: #cb2026 !important; border-color: #cb2026 !important; outline: none; }

/* Title-only hero while videos are hidden (Nov 2026) */
.csv-hero.is-novideo { --csv-w: min(1240px, 100%); }
.csv-hero.is-novideo .csv-rail { padding: clamp(32px, 6vw, 96px) 0 clamp(32px, 4vw, 56px); gap: 28px 48px; }
.csv-hero.is-novideo .csv-title { font-weight: 300; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.08; max-width: 18ch; }
.csv-hero.is-novideo .csv-stats dd { font-size: clamp(18px, 1.6vw, 24px); }
@media (max-width: 767.98px) { .csv-hero.is-novideo .csv-rail { padding: 28px 16px 32px; } }

/* HTML decks switch to a stacked mobile layout at 900px and less: give them a tall frame that scrolls instead of 16:9 */
@media (max-width: 900px) { .cs-x-ratio.cs-x-deck { aspect-ratio: auto; height: min(78svh, 760px); padding-top: 0; } .cs-x-ratio.cs-x-deck iframe { position: absolute; inset: 0; width: 100%; height: 100%; } }

/* the default tradeoff background (img/azure-synapse-bg.png) never existed; drop the dead request (looks the same) */
.case-study-default .cs-tradeoff-bg:not([style]) { background-image: none; }

/* Implementation phases: a stacked list of steps (number left, text right). Each step is as tall as its own
   text, so there are no half-empty boxes however long or short the phases are. */
@media (min-width: 768px) {
	body.case-study-default .cs-phases-wrapper > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
	body.case-study-default .cs-phase-card { flex-direction: row; align-items: flex-start; gap: 24px; height: auto; margin: 0 0 16px; padding: 22px 28px; }
	body.case-study-default .cs-phase-number { margin: 0; width: 52px; height: 52px; font-size: 20px; }
	body.case-study-default .cs-phase-content { align-self: center; } /* a one-line step sits level with its number */
	body.case-study-default .cs-phase-content > :last-child, body.case-study-default .cs-phase-content > ul:last-child { margin-bottom: 0; }
}
body.case-study-default .cs-phase-content ul { margin: .2em 0 .8em; padding-left: 1.2em; }
@media (max-width: 767px) { /* phones: left-aligned like the rest of the text, number on top, cards spaced apart */
	body.case-study-default .cs-phase-card { text-align: left; align-items: flex-start; padding: 22px 20px; margin: 0 0 14px; gap: 12px; height: auto; }
	body.case-study-default .cs-phase-number { margin: 0; width: 44px; height: 44px; font-size: 17px; }
	body.case-study-default .cs-phase-content > :last-child { margin-bottom: 0; }
}

/* Outcomes and Impact: breathing room so a long list doesn't touch the sections above and below */
.case-study-default .cs-outcomes-wrapper { padding-block: clamp(48px, 7vw, 110px); }

/* One type scale for every case study: body text, text inside cards, and the single pull quote.
   (The original sections each had their own size, from 13px to 35px.) */
.case-study-default { --cs-body: 18px; --cs-card: 16px; --cs-quote: 26px; }
@media (max-width: 767px) { .case-study-default { --cs-body: 16px; --cs-card: 15px; --cs-quote: 20px; } }
.case-study-default :is(.cs-context-text, .cs-problem-text, .cs-tech-impact-text, .cs-arch-overview, .cs-rejected-text, .cs-impl-intro, .cs-premium-text-compact, .cs-x-body) :is(p, li) {
	font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: var(--cs-body) !important; line-height: 1.7 !important;
}
.case-study-default :is(.area-why-tnz .card-wrapper p, .cs-arch-card-text p, .cs-arch-card-text li, .cs-failure-card-text, .bento-content, .cs-phase-content p, .cs-phase-content li, .outcome-text p) {
	font-size: var(--cs-card) !important; line-height: 1.6 !important;
}
.case-study-default .cs-phase-content li { color: var(--navy, #0F315D); }
.case-study-default .cs-concept-text p { font-size: var(--cs-quote) !important; line-height: 1.45 !important; }
.case-study-default .cs-impl-intro :is(p, li) { font-weight: 400; }
.case-study-default .auto-scroll-wrapper.area-why-tnz .card-wrapper .card p { font-size: var(--cs-card) !important; line-height: 1.6 !important; }
@media (max-width: 767px) { body.case-study-default .cs-problem-content { padding-inline: 0; } body.case-study-default .cs-problem-text { padding-inline: 16px !important; margin-inline: 0 !important; } }
