/* Long-form workshop cases. Scoped to authored pages. */
.case-story-page { background: #fff; color: #263d4c; }
.case-story-page main { overflow: visible; }
.case-story-hero { background: #092b42; color: #fff; }
.case-story-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 72px; padding-block: 54px 62px; }
.case-story-hero .breadcrumb { margin-bottom: 34px; color: #b8ccd9; font-size:1rem; }
.case-story-hero a:hover { color: #92d6ff; }
.case-story-eyebrow { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-bottom: 19px; color: #96d6f9; font-size:1rem; font-weight: 600; }
.case-story-eyebrow span { color: #a7bfce; font-size:1rem; letter-spacing: .1em; }
.case-story-hero h1 { max-width: 810px; margin-bottom: 22px; color: #fff; font-size:clamp(2.125rem, 3.25vw, 3.2025rem); font-weight: 700; line-height: 1.38; letter-spacing: -.025em; text-wrap: pretty; }
.case-story-deck { max-width: 680px; margin-bottom: 29px; color: #d1e0e9; font-size:1.155rem; line-height: 1.95; }
.case-story-byline { display: flex; gap: 14px; align-items: center; font-size:1rem; }
.case-story-byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.case-story-byline a { display: block; color: #fff; }
.case-story-byline span { display: block; margin-top: 4px; color: #a7bfce; font-size:1rem; }
.case-story-cover { position: relative; align-self: stretch; margin: 0; overflow: hidden; min-height: 350px; max-height: 450px; border-radius: 4px; }
.case-story-cover > img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.case-story-cover::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(3, 18, 28, .94)); pointer-events: none; }
.case-story-cover figcaption { position: absolute; z-index: 1; bottom: 24px; left: 24px; right: 24px; }
.case-story-cover figcaption span { display: block; color: #ddebf4; font-size:1rem; }
.case-story-cover figcaption strong { display: block; color: #fff; font-size:2.94rem; line-height: 1.3; font-weight: 600; }
.case-story-cover figcaption a { display: inline-block; margin-top: 12px; color: #bce5ff; font-size:1rem; }
.case-story-layout { display: grid; grid-template-columns: 226px minmax(0, 740px); justify-content: space-between; align-items: start; gap: 66px; padding-block: 64px 82px; }
.case-story-sidebar { position: sticky; top: 110px; padding-top: 8px; }
.case-story-sidebar nav > strong { display: block; margin-bottom: 18px; color: #173c55; font-size:1rem; }
.case-story-sidebar ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid #d9e4eb; }
.case-story-sidebar li { margin: 0; }
.case-story-sidebar nav a { display: block; padding: 10px 0 10px 17px; color: #637989; font-size:1rem; line-height: 1.7; transition: color .15s, background .15s; }
.case-story-sidebar nav a:hover { color: #075c94; background: #f1f7fb; }
.case-story-language { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid #e0e8ed; font-size:1rem; }
.case-story-language > span { width: 100%; color: #637989; }
.case-story-language a { padding-bottom: 3px; }
.case-story-language a[aria-current="page"] { color: #0569a6; border-bottom: 2px solid currentColor; font-weight: 700; }
.case-story-dates { margin-top: 28px; color: #6c7e8a; font-size:1rem; line-height: 1.7; }
.case-story-dates time { display: block; margin: 3px 0 17px; color: #334d60; font-variant-numeric: tabular-nums; }
.case-story-body { min-width: 0; font-size:1.15rem; line-height: 1.95; overflow-wrap: anywhere; }
.case-story-body > section { margin-bottom: 54px; scroll-margin-top: 116px; }
.case-story-body h2 { margin-bottom: 22px; color: #113b56; font-size:1.745rem; line-height: 1.55; font-weight: 700; letter-spacing: -.01em; text-wrap: pretty; }
.case-story-body h3 { margin-bottom: 15px; color: #24475e; font-size:1.245rem; line-height: 1.7; letter-spacing: 0; }
.case-story-body p { margin-bottom: 21px; color: #435866; }
/* The existing site forces a grey color on every main paragraph. Restore
   the intended contrast only inside these authored cases. */
.case-story-page .case-story-body p { color: #435866 !important; }
.case-story-page .case-story-hero .breadcrumb { color: #b8ccd9 !important; }
.case-story-page .case-story-hero .case-story-eyebrow { color: #96d6f9 !important; }
.case-story-page .case-story-hero .case-story-deck { color: #d1e0e9 !important; }
.case-story-page .case-story-answer > p { color: #1a3d54 !important; }
.case-story-body .case-story-intro { margin-top: -6px; color: #6a7e8b; font-size:1.025rem; line-height: 1.85; }
.case-story-page .case-story-body .case-story-intro { color: #6a7e8b !important; }
.case-story-body .case-story-answer { padding: 30px 32px 9px; border-top: 3px solid #1684be; background: #eff6fa; }
.case-story-answer h2 { margin-bottom: 15px; font-size:1.005rem; color: #07659a; }
.case-story-answer > p { color: #1a3d54; font-size:1.2rem; line-height: 1.95; }
.case-story-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; margin: 25px 0 22px; padding-top: 23px; border-top: 1px solid #d5e3ec; }
.case-story-facts dt { margin-bottom: 4px; color: #667f90; font-size:1rem; }
.case-story-facts dd { margin: 0; color: #24475d; font-size:1rem; line-height: 1.8; font-weight: 500; }
.case-story-steps { padding: 0; list-style: none; counter-reset: diagnostic; }
.case-story-steps > li { position: relative; margin: 0; padding: 0 0 25px 46px; counter-increment: diagnostic; border-left: 1px solid #d7e4ec; }
.case-story-steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.case-story-steps > li::before { content: counter(diagnostic, decimal-leading-zero); position: absolute; top: 0; left: -16px; display: grid; place-items: center; width: 32px; height: 32px; background: #e7f2f9; color: #086aa0; font-size:1rem; font-weight: 700; border: 4px solid #fff; }
.case-story-timestamp { display: block; margin-bottom: 7px; color: #6a8292; font-size:1rem; font-variant-numeric: tabular-nums; }
.case-story-flow { margin: 31px 0; }
.case-story-flow ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.case-story-flow li { position: relative; padding: 20px 14px; background: #edf5fa; }
.case-story-flow li + li::before { content: "→"; position: absolute; top: 40%; left: -20px; color: #3484ad; }
.case-story-flow strong { display: block; margin-bottom: 8px; color: #17486a; font-size:1.005rem; }
.case-story-flow span { display: block; color: #607789; font-size:1rem; line-height: 1.85; }
.case-story-flow figcaption { margin-top: 12px; color: #6c8290; font-size:1rem; }
.case-story-terms { margin-top: 29px; padding: 27px 26px 5px; border: 1px solid #dce7ed; }
.case-story-terms dl { margin: 0; }
.case-story-terms dl > div { padding: 16px 0; border-top: 1px solid #e6edf1; }
.case-story-terms dt { margin-bottom: 6px; color: #24475e; font-size:1.025rem; font-weight: 600; }
.case-story-terms dd { margin: 0; color: #637785; font-size:1.015rem; line-height: 1.85; }
.case-story-callout { margin-top: 28px; padding: 24px 28px; border-left: 3px solid #2a8aba; background: #f2f7fa; }
.case-story-callout strong { color: #1d688f; font-size:1rem; }
.case-story-callout p { margin: 10px 0 0; color: #21445b; }
.case-story-checklist { padding-left: 23px; }
.case-story-checklist li { padding-left: 7px; margin-bottom: 17px; }
.case-story-checklist li::marker { color: #1684be; }
.case-story-faq > div { padding: 25px 0 5px; border-top: 1px solid #dde7ee; }
.case-story-faq h3 { font-size:1.125rem; }
.case-story-faq p { font-size:1.075rem; }
.case-story-source { padding-top: 29px; border-top: 1px solid #d9e5ed; }
.case-story-source p { font-size:1.015rem; }
.case-story-source > a { display: block; width: fit-content; margin-block: 10px; color: #096d9f; text-decoration: underline; text-underline-offset: 4px; font-size:1rem; }
.case-story-source small { display: block; margin-top: 19px; color: #71838f; font-size:1rem; line-height: 1.9; }
.case-story-cta { padding: 32px; background: #eaf4fa; border-radius: 4px; }
.case-story-cta h2 { font-size:1.575rem; }
.case-story-cta p { font-size:1.065rem; }
.case-story-cta .button { max-width: 100%; }
.case-story-service-link { display: block; margin-top: 18px; color: #17648f; font-size:1rem; }
.case-story-page a:focus-visible { outline: 3px solid #3896c8; outline-offset: 5px; }
.case-story-page .knowledge-related .knowledge-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-story-page .knowledge-related .knowledge-case-card:nth-child(n) { grid-column: auto; display: flex; flex-direction: column; }
.case-story-page .knowledge-related .knowledge-case-image { flex: none; width: 100%; height: 240px; min-height: 240px; }
.case-story-page .knowledge-section-head h2 { font-size:1.925rem; line-height: 1.5; }
@media (max-width: 1000px) {
  .case-story-hero-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 34px; }
  .case-story-cover { max-height: 400px; }
  .case-story-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 38px; }
  .case-story-sidebar nav a { font-size:1rem; }
}
@media (max-width: 760px) {
  .case-story-hero-grid { grid-template-columns: 1fr; gap: 25px; padding-block: 28px 35px; }
  .case-story-hero .breadcrumb { margin-bottom: 24px; font-size:1rem; }
  .case-story-hero h1 { font-size:clamp(1.975rem, 7vw, 2.52rem); line-height: 1.47; }
  .case-story-deck { font-size:1.075rem; }
  .case-story-cover { display: none; }
  .case-story-layout { grid-template-columns: 1fr; gap: 30px; padding-block: 30px 52px; }
  .case-story-sidebar { position: static; padding: 0; }
  .case-story-sidebar nav { padding: 21px; border: 1px solid #dce7ee; }
  .case-story-sidebar nav > strong { margin-bottom: 12px; }
  .case-story-sidebar nav a { padding-block: 7px; font-size:1rem; }
  .case-story-language { margin-top: 16px; padding-top: 0; border: 0; }
  .case-story-language > span { width: auto; margin-right: auto; }
  .case-story-dates { display: flex; flex-wrap: wrap; gap: 4px 9px; margin: 17px 0 0; font-size:1rem; }
  .case-story-dates time { margin: 0 8px 0 0; }
  .case-story-body { font-size:1.125rem; line-height: 1.95; }
  .case-story-body > section { margin-bottom: 39px; scroll-margin-top: 97px; }
  .case-story-body h2 { font-size:1.475rem; }
  .case-story-body .case-story-answer { padding: 23px 21px 1px; }
  .case-story-answer h2 { font-size:1rem; }
  .case-story-answer > p { font-size:1.125rem; }
  .case-story-facts { grid-template-columns: 1fr; gap: 14px; }
  .case-story-facts > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
  .case-story-steps > li { margin-left: 11px; padding-left: 29px; }
  .case-story-body h3 { font-size:1.165rem; }
  .case-story-flow ol { grid-template-columns: 1fr; gap: 22px; }
  .case-story-flow li { padding: 16px 19px; }
  .case-story-flow li + li::before { content: "↓"; left: 50%; top: -27px; }
  .case-story-flow strong { margin-bottom: 4px; }
  .case-story-terms, .case-story-callout { padding-inline: 21px; }
  .case-story-cta { padding: 25px 22px; }
  .case-story-page .knowledge-related .knowledge-card-grid { grid-template-columns: 1fr; }
  .case-story-page .knowledge-related .knowledge-case-card:nth-child(n) { display: grid; grid-template-columns: 110px minmax(0, 1fr); }
  .case-story-page .knowledge-related .knowledge-case-image { min-height: 195px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
