/* ============================================================
   CASE PAGE — /work/:slug standalone screen.
   Reuses the shared .case-renderer atoms from caseRenderer.css
   for the inner content composition; this file owns only the
   screen wrapper, the back link, and the page-level max-width.
   ============================================================ */
.screen--case { display: none; }
.screen--case.active { display: block; }

/* The shared .insight-scroll wrapper document-scrolls (Task #615/#616);
   no case-page height/overflow override is needed anymore. */

/* Canonical broad-page shell (Task #671): the case article shares the
   1280px grid + gutters of every other page. The footer sits in normal
   document flow after the page (Task #718) — no clearance needed. */
.case-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-12) var(--sp-20);
}
@media (max-width: 767px) {
  .case-page {
    padding: var(--sp-14) var(--sp-5) var(--sp-14);
  }
}

.case-page__back {
  margin: 0 0 var(--sp-6);
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-body);
  text-transform: uppercase;
}
.case-page__back a {
  color: var(--be-text-muted, rgba(255,255,255,0.6));
  text-decoration: none;
  transition: color .15s var(--ease);
}
.case-page__back a:hover {
  color: var(--be-yellow);
}
.case-page__back a:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 4px;
}

/* The standalone page lets the shared .case-renderer hero render
   edge-to-edge inside the page wrapper — the shared CSS already
   handles the sector colour, padding, and metric line. We only
   need to round the hero corners on the page surface so it doesn't
   read as full-bleed inside the centred content column. */
.case-page .case-renderer {
  border-radius: var(--r-sm);
  overflow: hidden;
}

/* Loading + missing-state copy for the standalone /work/:slug
   route. Kept lightweight — the empty state still reuses the back
   link above, plus a short "no case at that address" message. */
.case-page__loading {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  padding: var(--sp-12) 0;
  text-align: center;
}

.case-page__missing {
  padding: var(--sp-6) 0;
}
.case-page__eyebrow {
  /* Eyebrow → DM Mono per Brand Manual v2.0 (labels & metadata).
     Section-intro tier (Task #541) — case study hero opener. */
  font-family: var(--mono);
  font-size: var(--fs-eyebrow-section);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps-section);
  text-transform: uppercase;
  color: var(--be-yellow, #ffde17);
  margin: 0 0 10px 0;
}
.case-page__missing-title {
  font-family: var(--display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-headline);
  color: var(--white, #fff);
  margin: 0 0 14px 0;
}
.case-page__missing-body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
/* Missing-case links use the shared dark-prose recipe in chat.css. */

/* .case-page__element-entry removed in Task #704 — the case-page foot
   uses the shared .element-entry primitive without a page wrapper. */
