/* Cufo sample case studies: the index and each case page. Loaded after home.css and uses its tokens. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* top of the page */
.cs-head { padding-top: clamp(24px, 4vw, 52px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 12.5px/1.4 var(--mono); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--ink-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.crumbs a:hover { text-decoration-color: currentColor; }
.crumbs a[aria-current="page"] { text-decoration: none; color: var(--ink); }
.cs-kicker { margin-top: clamp(28px, 4vw, 48px); }
.cs h1 { max-width: 17em; margin-top: 16px; font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.cs-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin-top: 22px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.cs-brand b { color: var(--ink); }
.cs-brand > * + *::before { content: "\00B7"; margin: 0 10px; color: var(--ink-3); }
.cs-notice { display: flex; align-items: baseline; gap: 10px; max-width: 760px; margin-top: 22px; padding: 11px 16px; border: 1px dashed var(--rule-2); border-radius: 14px; font: 500 13px/1.5 var(--mono); color: var(--ink-2); }
.cs-notice .sq { color: var(--warn); transform: translateY(-1px); }
.cs-summary { max-width: 33em; margin-top: 30px; font-size: clamp(18px, 1.45vw, 20.5px); line-height: 1.55; text-wrap: pretty; }
.cs-head > .cs-p { margin-top: 16px; }
.cs-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-top: 40px; }
.cs-keys > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.cs-keys dd { font: 500 clamp(26px, 2.5vw, 36px)/1.08 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.cs-keys dt { max-width: 22em; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* sections: a label column and a reading column */
.cs-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 56px; margin-top: clamp(72px, 7.5vw, 112px); padding-top: 14px; border-top: 1px solid var(--rule-2); }
.cs-sec .sec-label { padding-top: 0; border-top: 0; }
.cs-side { align-self: start; position: sticky; top: calc(var(--head-h) + 24px); }
.cs-h2 { margin-top: 22px; font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.06; letter-spacing: -0.022em; text-wrap: balance; }
.cs-step { --lc: var(--see); --lci: var(--see-ink); padding: 18px 22px 24px; border-radius: var(--r-l); background: var(--lc); }
.cs-step.think { --lc: var(--think); --lci: var(--think-ink); }
.cs-step.try { --lc: var(--try); --lci: var(--try-ink); }
.cs-step.act { --lc: var(--act); --lci: var(--act-ink); }
.cs-step-word { margin-top: 26px; }
.cs-step-word b { display: block; font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.cs-step-sub { display: block; margin-top: 10px; font: 500 15px/1.4 var(--sans); color: var(--lci); }
.cs-body { min-width: 0; max-width: 780px; }
.cs-p { max-width: 33em; font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.cs-p + .cs-p { margin-top: 14px; }
.cs-lead { font-size: clamp(17.5px, 1.4vw, 19.5px); line-height: 1.6; }
.cs-role { color: var(--ink-2); }
.cs-h3 { margin: 52px 0 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; letter-spacing: -0.012em; }
.cs-lead + .cs-h3 { margin-top: 40px; }
.cs-small { max-width: 36em; margin: -8px 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* See */
.srcs { max-width: 560px; }
.srcs li { display: flex; justify-content: space-between; gap: 24px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.srcs b { font: 500 14.5px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.srcs .srcs-total { border-top-color: var(--rule-2); font-weight: 600; }
.gaps li, .ruled li, .next li { display: flex; gap: 14px; max-width: 36em; padding: 10px 0; font-size: 16px; line-height: 1.55; }
.gaps li + li, .ruled li + li, .next li + li { border-top: 1px solid var(--rule); }
.gaps .sq { margin-top: .55em; color: var(--warn); }
.ruled li::before, .next li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 1.5px; }
.ruled li { color: var(--ink-2); }
.ruled li::before { border: 1.5px solid var(--ink-3); }
.next li::before { background: var(--act-ink); }

/* Think */
.themes > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 248px); gap: 16px 36px; align-items: center; padding: 20px 0; border-top: 1px solid var(--rule); }
.theme-name { font: 500 19px/1.25 var(--serif); letter-spacing: -0.01em; }
.theme-vol { margin-top: 4px; font: 500 13px/1.4 var(--mono); color: var(--ink-2); }
.theme-vol b { color: var(--ink); font-weight: 600; }
.theme-note { max-width: 32em; margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.tc { display: block; overflow: visible; color: var(--think-ink); }
.tc-bars rect { fill: currentColor; }
.tc-base { stroke: var(--rule-2); stroke-width: 1; }
.tc-peak { font: 600 11.5px var(--mono); fill: var(--ink); }
.tc-axis { font: 500 11px var(--mono); fill: var(--ink-3); }
.quotes { display: grid; gap: 14px; }
.quotes li { padding: 4px 0 4px 20px; border-left: 2px solid var(--think-ink); }
.quotes blockquote { margin: 0; }
.quotes blockquote p { max-width: 30em; font: 400 clamp(18px, 1.5vw, 20px)/1.45 var(--serif); letter-spacing: -0.005em; }
.q-ch { margin-top: 6px; font: 500 12.5px/1.3 var(--mono); color: var(--ink-2); }
.finding { padding: 26px 28px 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); }
.finding-claim { max-width: 26em; margin-bottom: 22px; font: 500 clamp(21px, 1.9vw, 26px)/1.25 var(--serif); letter-spacing: -0.012em; text-wrap: pretty; }
.finding .claims { margin-top: 0; }
.finding .claims li { max-width: 46em; }
.finding-conf { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--rule); }
.finding-conf .kv-note { max-width: 34em; }
.bars i.off { background: var(--rule-2); }

/* Try */
.tests { display: grid; gap: 16px; }
.test { padding: 24px 28px 26px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); }
.test-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 12.5px/1.3 var(--mono); color: var(--ink-2); }
.test-name { margin: 12px 0 0; font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.016em; text-wrap: balance; }
.test-hyp { max-width: 36em; margin-top: 14px; font-size: 16.5px; line-height: 1.55; }
.test-hyp .kl { margin-right: 6px; }
.test-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 20px; }
.test-facts > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.test-facts > div:nth-child(1), .test-facts > div:nth-child(4), .test-facts > div:nth-child(5) { grid-column: 1 / -1; }
.test-facts .mini { margin-bottom: 4px; }
.test-facts dd { max-width: 40em; font-size: 15px; line-height: 1.55; }
.test-res, .test-out, .test-guard { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.test-out, .test-guard { margin-top: 20px; }
.verdict { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.verdict .sq { width: 10px; height: 10px; }
.v-better .sq { color: var(--good); }
.v-worse .sq { color: var(--bad); }
.v-unclear .sq { color: var(--warn); }
.v-none .sq { color: var(--ink-3); }
.res-text { max-width: 36em; margin-top: 8px; font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }
.rc-wrap { max-width: 620px; margin-top: 18px; }
.rc { display: block; overflow: visible; }
.rc-tick { stroke: var(--rule); stroke-width: 1; }
.rc-axis { font: 500 11px var(--mono); fill: var(--ink-3); }
.rc-name { font: 500 12px var(--mono); fill: var(--ink-2); }
.rc line:not(.rc-tick) { stroke-width: 2; stroke-linecap: round; }
.rc-c line { stroke: var(--ink-3); }
.rc-c circle { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.rc-v line { stroke: var(--try-ink); }
.rc-v rect { fill: var(--try-ink); }
.rc-key { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.rc-k { display: inline-flex; align-items: baseline; gap: 8px; }
.k-c, .k-v { flex: none; width: 10px; height: 10px; transform: translateY(1px); }
.k-c { border: 2px solid var(--ink-2); border-radius: 50%; }
.k-v { border-radius: 2px; background: var(--try-ink); }
.k-i { flex-basis: 100%; font: 500 12px/1.4 var(--mono); color: var(--ink-3); }
.caveat { max-width: 40em; margin-top: 14px; padding: 10px 14px; border-radius: var(--r-s); background: var(--warn-wash); font-size: 14.5px; line-height: 1.5; }
.figs { margin-top: 14px; }
.figs summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; font: 500 13px/1.3 var(--mono); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.figs summary:hover { color: var(--ink); text-decoration-color: currentColor; }
.figs-scroll { overflow-x: auto; margin-top: 6px; }
.figs table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.figs th, .figs td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.figs thead th { font: 500 12px/1.3 var(--mono); color: var(--ink-2); border-bottom-color: var(--rule-2); }
.figs tbody th { font-weight: 500; }
.figs-note { max-width: 40em; margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.out { max-width: 36em; font-size: 16px; line-height: 1.6; }
.chip, .basis, .g-state { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font: 500 12px/1.6 var(--mono); white-space: nowrap; }
.out .chip { margin-right: 6px; }
.chip-complete, .chip-o-adopted, .b-tested, .g-held { background: var(--act); color: var(--act-ink); }
.chip-running, .chip-planned, .chip-o-running, .chip-o-planned { background: var(--see); color: var(--see-ink); }
.chip-o-inconclusive, .b-pending { background: var(--warn-wash); color: var(--warn); }
.chip-o-stopped, .b-untested, .g-broken { background: var(--bad-wash); color: var(--bad-ink); }
.guards li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.guards li:first-child { border-top: 0; padding-top: 0; }
.g-name { font-size: 15px; font-weight: 500; }
.g-lim { grid-row: 2; font-size: 14px; color: var(--ink-2); }
.g-state { grid-row: 1 / span 2; grid-column: 2; align-self: center; }

/* Act */
.ledger > li { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 6px 20px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); }
.ledger > li:last-child { border-bottom: 1px solid var(--rule); }
.ledger time { font: 500 13px/1.5 var(--mono); color: var(--ink-2); white-space: nowrap; }
.l-d p { max-width: 34em; font-size: 16px; line-height: 1.55; }
.l-d .l-note { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }

/* takeaways, more, call to action */
.takeaways li { display: grid; grid-template-columns: 52px minmax(0, 1fr); padding: 20px 0 22px; border-top: 1px solid var(--rule); }
.takeaways li:first-child { border-top: 0; padding-top: 0; }
.takeaways .rule-n { padding-top: 8px; }
.takeaways p { max-width: 24em; font: 500 clamp(20px, 1.8vw, 25px)/1.3 var(--serif); letter-spacing: -0.012em; text-wrap: pretty; }
.cs-more { margin-top: clamp(72px, 7.5vw, 112px); padding-top: 14px; border-top: 1px solid var(--rule-2); }
.cs-more .sec-label { padding-top: 0; border-top: 0; }
.cs-more .cs-h2 { margin-bottom: 32px; }
@media (min-width: 1120px) { .cs-more .cs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs-list { margin-top: clamp(44px, 5vw, 72px); }
.cs-cta { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; align-items: end; margin-top: clamp(72px, 7.5vw, 112px); padding: clamp(28px, 5vw, 64px); border-radius: var(--r-l); background: var(--wl-bg); }
.cs-cta .sec-label { border-top-color: var(--rule-2); }
.cs-cta-go { margin-top: 22px; }
.cs-loop { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cs-loop li { padding: 6px 16px; border-radius: 999px; background: var(--see); color: var(--see-ink); font: 500 13px/1.4 var(--mono); }
.cs-loop .think { background: var(--think); color: var(--think-ink); }
.cs-loop .try { background: var(--try); color: var(--try-ink); }
.cs-loop .act { background: var(--act); color: var(--act-ink); }
/* links to the product demo at /demo/ (build_cases.py: demo_block on the case it shows, demo_line elsewhere) */
.cs-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; max-width: 760px; margin-top: 12px; padding: 4px 16px; border-radius: 14px; background: var(--try); font-size: 15.5px; }
.cs-demo .sq { color: var(--try-ink); }
.cs-demo .tlink { font-weight: 600; text-decoration-color: currentColor; }
.cs-body > .cs-demo { margin-top: 28px; }
.cs-demo-line { margin-top: clamp(56px, 6vw, 88px); padding-top: 16px; border-top: 1px solid var(--rule-2); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cs-demo-line .tlink { display: inline; min-height: 0; color: var(--ink); font-weight: 600; }
.cs-demo-line + .cs-cta { margin-top: 40px; }

@media (max-width: 1119px) {
  .cs-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .cs-keys > div { padding-bottom: 22px; }
}
@media (max-width: 959px) {
  .cs-sec, .cs-cta { grid-template-columns: minmax(0, 1fr); }
  .cs-side { position: static; }
  .cs-step { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
  .cs-step .step-top { order: 2; gap: 12px; }
  .cs-step-word { margin-top: 0; }
  .cs-step-word b { display: inline; font-size: 46px; }
  .cs-step-sub { display: inline; margin: 0 0 0 14px; }
}
@media (max-width: 639px) {
  .cs-brand { display: block; font-size: 15px; }
  .cs-brand > * { display: block; }
  .cs-brand > * + *::before { content: none; }
  .cs-notice { padding: 10px 14px; }
  .cs-keys { grid-template-columns: minmax(0, 1fr); }
  .cs-keys > div { padding-bottom: 16px; }
  .cs-step-sub { display: block; margin: 6px 0 0; }
  .cs-step .step-top { order: 0; flex-basis: 100%; }
  .themes > li { grid-template-columns: minmax(0, 1fr); }
  .finding, .test { padding: 20px 18px 22px; }
  .test-facts { grid-template-columns: minmax(0, 1fr); }
  .test-facts > div { grid-column: 1 / -1; }
  .ledger > li { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger time { grid-column: 1 / -1; }
  .takeaways li { grid-template-columns: 36px minmax(0, 1fr); }
  .cs-cta { padding: 28px 20px; }
}
