/* Case-study pages, second version (2026-11-23). Rendered by scripts/gen-casos.mjs from
   content/casos.json. Scoped to main.cs-v2 so it wins over the page's inline styles and the
   redesign skin regardless of load order. Mobile first: 80% of visits are phones. */

.cs-v2 { max-width: 920px; }
.cs-v2 .cs-hero h1 { max-width: 20ch; }
.cs-v2 .cs-hero .lead { max-width: 60ch; }
.cs-v2 .cs-snapshot { gap: 18px 36px; }
.cs-v2 .cs-snapshot .v { font-size: 15px; }

/* Results: three numbers, each with what it measures and the period it covers. */
.cs-v2 .cs-results-wrap { padding-top: 36px; }
.cs-v2 .cs-results-wrap h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--fx-muted, #636363); margin: 0 0 4px; font-family: var(--fx-font, inherit); font-weight: 600; }
.cs-v2 .cs-results { display: grid; grid-template-columns: 1fr; gap: 0; margin: 10px 0 0; border-top: 1px solid var(--fx-line, #dedede); border-bottom: 1px solid var(--fx-line, #dedede); }
.cs-v2 .cs-metric { background: none; border: 0; border-top: 1px solid var(--fx-line, #dedede); border-radius: 0; text-align: left; padding: 22px 0; }
.cs-v2 .cs-metric:first-child { border-top: 0; }
.cs-v2 .cs-metric .big { font-family: var(--fx-font, inherit); font-size: clamp(40px, 9vw, 64px); line-height: 1; letter-spacing: -.05em; color: var(--fx-ink, #171717); }
.cs-v2 .cs-metric .lbl { margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--fx-ink, #171717); opacity: 1; }
.cs-v2 .cs-metric .per { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--fx-muted, #636363); }

/* Hero photo: the restaurant's own food, full width, right under the numbers. */
.cs-v2 .cs-photo { margin: 36px 0 0; }
.cs-v2 .cs-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: var(--fx-wash, #f4f4f4); }
.cs-v2 .cs-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--fx-muted, #636363); }

/* Before / after: two columns, the "after" one carries the brand green. */
.cs-v2 .cs-ba { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.cs-v2 .cs-ba-col { border-radius: 6px; padding: 22px 22px 10px; background: var(--fx-wash, #f4f4f4); }
.cs-v2 .cs-ba-col.after { background: #0e3b26; color: #fff; }
.cs-v2 .cs-ba-col h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; font-family: var(--fx-font, inherit); color: var(--fx-muted, #636363); }
.cs-v2 .cs-ba-col.after h3 { color: #9fd9b8; }
.cs-v2 .cs-ba-col dl { margin: 0; }
.cs-v2 .cs-ba-col dl > div { padding: 12px 0; border-top: 1px solid rgba(0,0,0,.08); }
.cs-v2 .cs-ba-col.after dl > div { border-top-color: rgba(255,255,255,.14); }
.cs-v2 .cs-ba-col dl > div:first-child { border-top: 0; padding-top: 0; }
.cs-v2 .cs-ba-col dt { font-size: 13px; color: var(--fx-muted, #636363); margin-bottom: 4px; }
.cs-v2 .cs-ba-col.after dt { color: rgba(255,255,255,.7); }
.cs-v2 .cs-ba-col dd { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.cs-v2 .cs-source { margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--fx-muted, #636363); }

/* Why they opened their own channel: short title + one line each. */
.cs-v2 .cs-pains { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.cs-v2 .cs-pain { padding: 18px 20px; border: 1px solid var(--fx-line, #dedede); border-radius: 6px; }
.cs-v2 .cs-pain h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; font-family: var(--fx-font, inherit); }
.cs-v2 .cs-pain p { margin: 0; font-size: 15.5px; line-height: 1.5; color: #444; }

/* Orders per month: horizontal bars, numbers printed so the data survives without CSS. */
.cs-v2 .cs-series { margin: 26px 0 0; padding: 20px 20px 12px; border: 1px solid var(--fx-line, #dedede); border-radius: 6px; }
.cs-v2 .cs-series figcaption { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--fx-muted, #636363); margin-bottom: 12px; font-family: var(--fx-font, inherit); }
.cs-v2 .cs-bars { list-style: none; margin: 0; padding: 0; }
.cs-v2 .cs-bars li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; }
.cs-v2 .cs-bars .m { color: var(--fx-muted, #636363); text-transform: lowercase; }
.cs-v2 .cs-bars .bar { display: block; height: 22px; width: calc(var(--v) * 100%); min-width: 4px; background: #2d8659; border-radius: 3px; }
.cs-v2 .cs-bars .partial .bar { background: repeating-linear-gradient(135deg, #2d8659 0 6px, #9fd9b8 6px 10px); }
.cs-v2 .cs-bars .n { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* Quote: only when a real one exists. */
.cs-v2 .cs-quote blockquote { font-size: clamp(20px, 2.6vw, 26px); }

/* Related cases: photo, headline, three numbers. */
.cs-v2 .cs-related-grid, .cs-related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
.cs-rel { display: grid; grid-template-rows: 180px auto; overflow: hidden; border: 1px solid var(--fx-line, #dedede); border-radius: 6px; text-decoration: none; color: inherit; background: #fff; transition: box-shadow .25s; }
.cs-rel:hover { box-shadow: 0 18px 48px rgba(0,0,0,.08); }
.cs-rel-img { display: block; background: #111 center 30% / cover no-repeat; }
.cs-rel-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.cs-rel .tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-muted, #636363); font-family: var(--fx-font, inherit); }
.cs-rel strong { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.cs-rel-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.cs-rel-metrics > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cs-rel-metrics b { font-size: 20px; letter-spacing: -.03em; line-height: 1; }
.cs-rel-metrics small { font-size: 11.5px; line-height: 1.3; color: var(--fx-muted, #636363); }
.cs-rel .read { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--fx-line, #dedede); font-weight: 500; font-size: 14px; }

@media (min-width: 720px) {
  .cs-v2 .cs-results { grid-template-columns: repeat(3, 1fr); }
  .cs-v2 .cs-metric { border-top: 0; border-left: 1px solid var(--fx-line, #dedede); padding: 30px 26px; }
  .cs-v2 .cs-metric:first-child { border-left: 0; padding-left: 0; }
  .cs-v2 .cs-ba { grid-template-columns: 1fr 1fr; }
  .cs-v2 .cs-pains { grid-template-columns: 1fr 1fr; }
  .cs-v2 .cs-related-grid, .cs-related-grid { grid-template-columns: 1fr 1fr; }
  .cs-v2 .cs-bars li { grid-template-columns: 44px 1fr 120px; }
}

@media (prefers-reduced-motion: reduce) { .cs-rel { transition: none; } }
