/* ─── /case-study/ — the ChatGPT home-page study, written up like a paper ─────────────────────────────────────────
   Sits on the shared CarSearch AI system (/css/csai-site.css: tokens incl. dark mode, menu, hero, buttons, device
   frames, call to action, footer). Only this page's own parts live here: the hero's key figures, the reading column,
   the results table and bar, and the carousel of redacted examples. Every colour is a token. */

/* ── Hero: one column, the key figures under the lead ── */
.study-hero { position: relative; z-index: 1; padding-top: 52px; padding-bottom: 48px; }
@media (min-width: 900px) { .study-hero { padding-top: 72px; padding-bottom: 72px; } }
.study-hero h1 { max-width: 22ch; }
.study-hero .lead { max-width: 62ch; }
.study-meta { margin: 16px 0 0; color: var(--hero-dim); font-size: 13.5px; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
@media (min-width: 900px) { .figs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fig.total { grid-column: 1 / -1; }   /* on a phone the 279 sits across the top, the four results in two rows beneath */
@media (min-width: 900px) { .fig.total { grid-column: auto; } }
.fig { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--hero-line); background: var(--hero-card); min-width: 0; }
.fig b { display: block; font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; color: var(--hero-fg); line-height: 1.1; }
.fig span { display: block; margin-top: 4px; color: var(--hero-muted); font-size: 14px; }
.fig.amber b { color: var(--amber-2); }
.fig.is-found b { color: var(--ok); }
.fig.is-told b { color: var(--amber-2); }
/* The failures, in red (owner 2026-10-15: "doesnt highlight the fact of how many and what percentage failed ... there
   should be a fifth in red"): the Results table's "Never found", in its red. */
.fig.red { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 20%, var(--hero-card)); }
.fig.red b { color: var(--warn); }
.fig.red span { color: var(--hero-fg); }

/* ── The paper: a reading column with numbered sections ── */
.paper { max-width: 780px; }
.paper h2 { margin: 52px 0 14px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.paper h2:first-child { margin-top: 0; }
.paper h2 .no { color: var(--muted-2); margin-right: 10px; font-variant-numeric: tabular-nums; }
.paper h3 { margin: 28px 0 8px; font-size: 1.06rem; }
.paper p { margin: 0 0 14px; }
.paper p b, .paper li b { color: var(--text); }
.paper ul { margin: 0 0 16px; padding-left: 22px; }
.paper li { margin: 0 0 8px; }
.abstract { padding: 22px 24px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); background: var(--mist); }
.abstract h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); }
.abstract p:last-child { margin-bottom: 0; }
.prompt { margin: 0 0 16px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--blue-wash); font-size: 15px; }
.prompt .ph { font-weight: 700; color: var(--blue); }

/* ── Results: the table and the share bar ── */
.results { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 15px; }
.results th, .results td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.results thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.results .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.results tfoot td { font-weight: 800; border-bottom: 0; }
.results .key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; vertical-align: baseline; }
.share { display: flex; height: 38px; margin: 22px 0 8px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.share span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap; font-weight: 800; font-size: 13px; }
.found { background: var(--ok); color: var(--on-blue); }
.told { background: var(--amber); color: var(--on-amber); }
.never { background: var(--warn); color: var(--on-blue); }
.fig-cap { font-size: 13px; color: var(--muted-2); margin: 0 0 16px; }

/* ── The examples: one case at a time (every case stacked when scripts are off) ── */
.cases-head { max-width: 780px; margin-bottom: 26px; }
.cases-head .lead { margin-top: 12px; font-size: 1.05rem; }
.cases-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.cases-bar button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--text); cursor: pointer; display: grid; place-items: center; flex: none; }
.cases-bar button:hover { border-color: var(--blue); color: var(--blue); }
.cases-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cases-count { margin: 0; font-weight: 700; color: var(--muted); min-width: 0; flex: 1 1 180px; }
.cases-count b { color: var(--text); }
.cases-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.case[hidden] { display: none; }
.case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.case-head .n { font-weight: 800; font-size: 1.05rem; }
.case-head .asked { color: var(--muted); }
.case-head .asked b { color: var(--text); }
.case-head .res { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--amber-wash); color: var(--amber); }
.case-shot { max-width: 960px; }
.case figure { margin: 0; min-width: 0; }
.case .device a { display: block; }
.case figcaption { margin-top: 8px; font-size: 13px; color: var(--muted-2); }
.cases-go { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; max-width: 100%; color: var(--muted); font-weight: 700; font-size: 14px; }
.cases-pick { min-width: 0; max-width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.cases-pick:hover, .cases-pick:focus-visible { border-color: var(--blue); }
@media (max-width: 560px) { .cases-go { margin-left: 0; flex: 1 1 100%; } .cases-pick { flex: 1; } }
.cases:not(.ready) .cases-bar { display: none; }
.redaction-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); max-width: 780px; }
.cases-head h2 .no { color: var(--muted-2); margin-right: 6px; font-variant-numeric: tabular-nums; }
.cases.ready .case-head .n { display: none; }
