/* ============================================================
   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; }

.screen--case .insight-scroll {
  height: 100%;
  overflow-y: auto;
}

.case-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.case-page__back {
  margin: 0 0 24px;
  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 ease;
}
.case-page__back a:hover {
  color: var(--be-yellow, #ffe066);
}
.case-page__back a:focus-visible {
  outline: 2px solid var(--be-yellow, #ffe066);
  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: 48px 0;
  text-align: center;
}

.case-page__missing {
  padding: 24px 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;
}
.case-page__missing-link {
  color: var(--be-yellow, #ffe066);
  text-decoration: none;
}
.case-page__missing-link:hover {
  text-decoration: underline;
}

/* Element entry block at the foot of the case page (above the
   related strip). Spacing mirrors the action strip border-top
   above so the entry block reads as the next beat in the page. */
.case-page__element-entry {
  margin-top: 32px;
  padding: 24px 32px;
}
@media (max-width: 600px) {
  .case-page__element-entry { padding: 20px 22px; }
}
