/* Installer tokens and shared header/footer stay in installer.css. */
.case-study .page-head h1 {
  max-width: 22ch;
}
.case-study .intro {
  max-width: 65ch;
}
.case-kicker {
  font-weight: 700;
  color: var(--head);
}
.case-draft,
.case-media-pending {
  padding: 16px;
  border: 2px dashed var(--ink);
  background: var(--surf);
}
.case-layout {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 2.5fr);
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 72px;
}
.case-facts {
  align-self: start;
  padding: 24px;
  background: var(--surf);
  border-top: 4px solid var(--accent);
}
.case-facts h2 {
  font-size: 1.65rem;
}
.case-facts dt {
  font-weight: 700;
  margin-top: 20px;
}
.case-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.case-facts dd span {
  display: block;
  font-size: 0.9em;
}
.case-copy {
  max-width: 720px;
  min-width: 0;
}
.case-copy section,
.case-related {
  margin-bottom: 40px;
}
.case-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.15;
}
.case-copy p {
  line-height: 1.75;
}
.case-gallery {
  display: grid;
  gap: 32px;
}
.case-media {
  margin: 0;
  min-width: 0;
}
.case-stage {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.case-media img,
.case-media video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surf);
}
.case-study--manchester .page-summary > .case-summary-with-photo {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(28px, 5vw, 72px);
}
.case-study--manchester .page-summary .case-summary-with-photo .intro {
  margin-bottom: 20px;
}
.case-summary-challenge {
  margin-top: 32px;
}
.case-summary-challenge h2 {
  margin-bottom: 12px;
}
.case-lead {
  margin: 0;
}
.case-lead img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.case-lead figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
}
.case-study--manchester .case-gallery .case-media img {
  max-width: 500px;
  border-radius: 12px;
}
@media (max-width: 760px) {
  .case-study--manchester .page-summary > .case-summary-with-photo {
    grid-template-columns: minmax(0, 1fr);
  }
}
.case-media a {
  display: block;
}
.case-media video {
  max-height: 640px;
  max-height: min(640px, calc(100svh - 140px));
  object-fit: contain;
  background: var(--band);
}
.case-media figcaption,
.case-video-description {
  font-size: 0.95rem;
  margin-top: 12px;
}
.case-media figcaption span {
  display: block;
}
.case-video-start {
  margin-top: 12px;
}
.case-video-start[hidden] {
  display: none;
}
.case-quote {
  white-space: normal;
  text-align: center;
  max-width: 100%;
  line-height: 1.4;
  margin-top: 16px;
}
.case-related {
  padding-top: 28px;
  border-top: 1px solid currentColor;
}
.case-lightbox {
  max-width: min(1100px, 94vw);
  max-height: 94vh;
  padding: 20px;
  border: 0;
  color: var(--ink);
  background: var(--paper);
}
.case-lightbox::backdrop {
  background: rgb(0 0 0 / 80%);
}
.case-lightbox img {
  width: auto;
  height: auto;
  max-height: 72vh;
  margin: 16px auto;
  object-fit: contain;
}
.case-lightbox button {
  min-height: 44px;
}
.case-index {
  padding-bottom: 64px;
}
.case-index-intro {
  max-width: 780px;
  padding: 40px 0 28px;
}
.case-index-intro h2,
.case-index-help h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.15;
}
.case-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.case-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surf-2);
}
.case-card-featured {
  grid-column: 1 / -1;
}
.case-card-link {
  display: block;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}
.case-card-featured .case-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}
.case-card-link:hover h2,
.case-card-link:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.case-card-link:focus-visible {
  outline-offset: -5px;
}
.case-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.case-card-copy {
  min-width: 0;
  padding: clamp(22px, 3vw, 40px);
}
.case-card-copy h2,
.case-card-copy h3 {
  color: var(--head);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.12;
}
.case-card-copy p {
  line-height: 1.6;
}
.case-card-facts {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.case-card-read {
  display: block;
  margin-top: 20px;
  color: var(--accent-text);
  font-weight: 700;
}
.case-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 36px 0;
}
.case-index-help {
  margin-top: 48px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 16px;
  background: var(--surf);
}
.case-index-help p {
  max-width: 72ch;
}
.case-home-feature {
  background: var(--paper);
}
@media (max-width: 760px) {
  .case-card-grid,
  .case-card-featured .case-card-link {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .case-facts {
    padding: 20px;
  }
  .case-study .page-head h1 {
    font-size: clamp(2.15rem, 8vw, 3.4rem);
    overflow-wrap: anywhere;
  }
  .case-quote {
    width: 100%;
  }
}

/* Matching 4:3 previews; the enlargement links retain the full photographs. */
.case-comparison {
  background: var(--surf);
}
.case-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.case-comparison-photo {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surf-2);
}
.case-comparison-label {
  margin: 0;
  padding: 14px 22px;
  color: var(--head);
  font-weight: 800;
}
.case-comparison-photo a {
  display: block;
  background: var(--paper);
}
.case-comparison-photo a:focus-visible {
  outline-offset: -5px;
}
.case-comparison-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.case-comparison-photo figcaption {
  padding: 20px 22px;
  line-height: 1.6;
}
.case-comparison-photo figcaption span {
  color: var(--ink-soft);
}
.case-comparison-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 28px;
}
@media (max-width: 760px) {
  .case-comparison-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
