/* ---------- 2026 case studies (DiversaTech 4830:6006, WorksheetsAI 4830:7416, …). Shares fonts and footer with home-2026.css ---------- */
body.cs { background: #fdfdfd; }
.dt-page { display: flex; gap: 48px; align-items: flex-start; max-width: 1470px; box-sizing: border-box; padding: 72px 64px 120px; } /* index where the main nav sits */

/* Side index: ← Back, then this case study's own headlines */
.dt-side { position: sticky; top: 72px; flex: none; width: max-content; display: flex; flex-direction: column; gap: 48px; }
.dt-back { font: 400 14px/18px var(--font-body); color: rgb(0 0 0 / .5); text-transform: capitalize; white-space: nowrap; transition: color .3s ease; }
.dt-back:hover { color: #000; }
.dt-toc { display: flex; flex-direction: column; gap: 4px; }
.dt-toc a { display: flex; align-items: center; font: 400 14px/18px var(--font-body); text-transform: capitalize; color: rgb(0 0 0 / .5); white-space: nowrap; transition: color .3s ease; }
.dt-toc a::before { content: ""; flex: none; width: 0; height: 4px; margin-right: 0; background: #6aa312; transition: width .3s cubic-bezier(.22, 1, .36, 1), margin-right .3s cubic-bezier(.22, 1, .36, 1); }
.dt-toc a.is-active { color: #000; }
.dt-toc a.is-active::before { width: 4px; margin-right: 8px; }
.dt-toc a:hover { color: #000; }

.dt-main { flex: 0 1 1221px; min-width: 0; box-sizing: border-box; padding: 0 164px; display: flex; flex-direction: column; gap: 120px; }
.dt-head { display: flex; flex-direction: column; gap: 32px; }
.dt-title { margin: 0; font: 400 32px/normal "Libre Baskerville", Georgia, serif; text-transform: capitalize; color: #000; } /* same type as every case study (Apartments.com, Figma 4830:7623) */
.dt-facts { display: flex; gap: 48px; margin: 0; }
.dt-facts div { display: flex; flex-direction: column; gap: 8px; }
.dt-facts dt { font: 300 12px/normal var(--font-mono); text-transform: uppercase; color: #2a2a2a; }
.dt-facts dd { margin: 0; font: 400 16px/normal var(--font-body); color: #000; text-transform: capitalize; }

.dt-sections { display: flex; flex-direction: column; gap: 148px; padding: 0 148px; }
.dt-block { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 88px; }
.dt-label { margin: 0; font: 300 12px/normal var(--font-mono); text-transform: uppercase; color: #2a2a2a; }
.dt-lead { margin: 0; font: 400 22px/1.2 var(--font-body); color: #000; }
.dt-body { margin: 0; font: 400 16px/1.2 var(--font-body); color: #676565; }
.dt-body p { margin: 0; }
.dt-body p + p { margin-top: 1.2em; }
.dt-dim { color: #b3b3b3; }
.dt-art { display: block; width: 100%; height: auto; border-radius: 2px; }

/* Parallax frames (case-2026.js): the picture sits a touch larger than its frame and drifts inside it
   as you scroll, and leans toward the cursor while you hover its section */
.cs-par { position: relative; overflow: hidden; border-radius: 2px; }
.cs-par > img { display: block; width: 100%; height: auto; }
.cs-par--crop > img { position: absolute; left: 0; max-width: none; }

@media (max-width: 1300px) { .dt-main { padding: 0; } .dt-sections { padding: 0; } }
@media (max-width: 900px) { /* same breakpoint as the main nav */
  .dt-page { flex-direction: column; padding: 0 16px 80px; gap: 24px; }
  /* Back + section index become a bar across the top that stays in view */
  .dt-side {
    position: sticky; top: 0; z-index: 20; align-self: stretch; width: auto; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 0 20px;
    margin: 0 -16px; padding: 4px 16px; background: rgb(253 253 253 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(0 0 0 / .06);
  }
  .dt-toc { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0 14px; min-width: 0; overflow-x: auto; scrollbar-width: none; } /* one line; swipe for more */
  .dt-toc::-webkit-scrollbar { display: none; }
  .dt-back, .dt-toc a { min-height: 44px; display: flex; align-items: center; }
  .dt-facts { flex-wrap: wrap; gap: 20px 32px; }
  .dt-sections { gap: 88px; }
}
@media (prefers-reduced-motion: reduce) { .cs-par > img { transform: none !important; } }

/* Highlights on key phrases, in a soft lime tint: each sweeps in left to right when it scrolls into view (case-2026.js) */
.cs .hl {
  color: inherit; padding: 0 .1em; margin: 0 -.05em; border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(rgb(180 227 61 / .4), rgb(180 227 61 / .4)) 0 0 / 0% 100% no-repeat;
  transition: background-size .9s cubic-bezier(.65, 0, .35, 1);
}
.cs .hl.is-lit { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .cs .hl { transition: none; background-size: 100% 100%; } }
.dt-label[id] { scroll-margin-top: 88px; }
@media (max-width: 760px) { .dt-title { font-size: 26px; } }
