.case-doc { background: white; color: var(--ink); }
.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 12px;
  border-bottom: 4px solid var(--olive);
}
.case-top img { width: 54px; height: 54px; }
.case-brand { font-family: var(--display); font-weight: 700; color: var(--olive-ink); }
.case-kicker { margin: 0; color: var(--olive); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.case-doc h1 { margin: 18px 0 8px; color: var(--olive-ink); font-size: 1.8rem; }

/* Key facts. Dark text on a light panel. The teal is a border only: #00a99f fails as text. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}
.fact {
  background: #f4f6f1;
  color: #232d30;
  border: 1px solid #c9d2c4;
  border-top: 4px solid #0b6e66;
  padding: 10px 12px;
}
.fact span {
  display: block;
  color: #232d30;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fact strong {
  display: block;
  margin-top: 3px;
  color: #232d30;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr; }
  .case-doc h1 { font-size: 1.45rem; }
}

.case-doc h2 { color: var(--olive-deep); font-size: 1.15rem; margin: 16px 0 6px; }
.case-doc figure { margin: 0 0 12px; }
.case-doc figcaption { color: #3a3a3a; font-size: 0.88rem; margin-top: 4px; }
.case-doc .case-photo img,
.case-doc .fit img,
.case-doc .strip img {
  display: block;
  height: auto;
  background: #f4f6f1;
}
.case-doc .case-photo { background: transparent; color: inherit; }
.case-doc .case-photo img { width: 100%; max-height: 78vh; object-fit: contain; }
.photo-fit, .photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
}
.photo-fit figure, .photo-strip figure { margin: 0; }
.photo-fit img { width: auto; max-width: 100%; }
.photo-strip img { width: auto; max-width: 240px; max-height: 180px; }
.case-foot { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 8px; color: var(--muted); font-size: 0.85rem; }
.study-grid { width: 100%; border-collapse: collapse; background: white; }
.study-grid th, .study-grid td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.study-grid th { background: var(--olive-deep); color: #fff; }

@media print {
  .case-back, .no-print, .site-header, .site-footer, .skip { display: none !important; }
  body { background: white; }
  .fact, .fact span, .fact strong {
    color: #232d30 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .fact { background: #f4f6f1 !important; }
  .case-photo { break-inside: avoid; background: transparent !important; color: #232d30 !important; }
  .case-photo img { max-height: 115mm; width: auto; max-width: 100%; }
  .photo-fit img { max-height: 85mm; max-width: 100%; }
  .photo-strip img { max-width: 42mm; max-height: 32mm; }
  @page { size: A4; margin: 14mm; }
}
