/* Image clarity pass. Existing TCI colour, typography and page layout retained. */
.tl [hidden] { display: none !important; }
.photo-review { background: #f4f7f4; color: #162a24; min-height: 100vh; }
.photo-review h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.06; margin: 20px 0; }
.photo-review .bodyfig { margin-top: 32px; }
.hero--process { padding: 0 !important; }
.hero--process > .shell {
  display: grid; grid-template-columns: 1fr .95fr; gap: 48px;
  align-items: center; padding-top: 58px; padding-bottom: 58px;
}
.hero--process .hero__in { padding: 0 !important; max-width: none; }
.hero--process h1 { font-size: clamp(36px, 4vw, 56px); }
.process-hero-photo { margin: 0; }
.process-hero-photo img { width: 100%; height: 310px; display: block; object-fit: cover; border-radius: 7px; }
.process-hero-photo figcaption { margin-top: 10px; color: #d2ded5; font-size: 12px; line-height: 1.5; }
.svc-photos--single { grid-template-columns: 1fr !important; }
.visual-credit {
  display: block;
  margin-top: .65rem;
  font-size: .75rem;
  line-height: 1.5;
  color: #52605a;
}
.visual-diagram { background: #f8faf8; }
.visual-diagram > img {
  object-fit: contain !important;
  background: #f8faf8;
  aspect-ratio: 12 / 5;
}
.visual-diagram figcaption { background: #fff; color: #46554e; }
.diagram-open {
  display: inline-flex;
  align-items: center;
  margin: 14px 18px 18px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #acc4b7;
  border-radius: 5px;
  color: #154a38;
  background: #f1f7f3;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.diagram-open::after { content: "↗"; margin-left: 20px; }
.diagram-open:hover { background: #dceee3; border-color: #22634d; }
.diagram-open:focus-visible, .diagram-reader button:focus-visible,
.visual-page-nav a:focus-visible, .diagram-reader__canvas:focus-visible {
  outline: 3px solid #167454;
  outline-offset: 4px;
}
.visual-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 22px max(24px, calc((100% - 1120px) / 2));
  background: #eef4ef;
  border-bottom: 1px solid #d1ddd5;
}
.visual-page-nav a { color: #214e3b; font-size: 14px; font-weight: 700; }
[id^="process-detail-"] { scroll-margin-top: 120px; }
.diagram-reader {
  padding: 0;
  width: min(1200px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  border: 1px solid #b8c9be;
  border-radius: 12px;
  color: #162a24;
  background: #fff;
  box-shadow: 0 20px 100px #0005;
}
.diagram-reader::backdrop { background: #101a14d9; }
.diagram-reader__header { padding: 23px 24px 18px; border-bottom: 1px solid #d8e1dc; }
.diagram-reader__header h2 { max-width: 950px; margin: 0 0 8px; font-size: 23px; line-height: 1.35; }
.diagram-reader__header p { margin: 0 0 15px; font-size: 14px; color: #52645d; }
.diagram-reader__controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.diagram-reader button {
  min-height: 44px;
  border: 1px solid #b5c7bc;
  border-radius: 5px;
  background: #f3f7f3;
  color: #173f2f;
  font: inherit;
  font-size: 14px;
  padding: 9px 15px;
  cursor: pointer;
}
.diagram-reader button:hover:not(:disabled) { background: #dceee3; }
.diagram-reader button:disabled { color: #737d76; background: #edf0ed; cursor: default; }
.diagram-reader__controls output { min-width: 52px; margin: 0 6px; font-size: 14px; }
.diagram-reader__close { margin-left: auto; background: #173f2f !important; color: #fff !important; }
.diagram-reader__canvas {
  overflow: auto;
  height: min(64dvh, 700px);
  min-height: 180px;
  background: #edf2ed;
  overscroll-behavior: contain;
}
.diagram-reader__canvas img { display: block; max-width: none; height: auto; margin: 0; }
.diagram-reader__caption { margin: 0; padding: 14px 24px; font-size: 13px; line-height: 1.5; }
/* Retain the photographic hero and its existing responsive composition. */
.hero--documentary .hero__bg { overflow: hidden; transform: none !important; }
.hero--documentary .hero__bg img {
  object-position: 60% 50% !important;
  transform: none !important;
  animation: none !important;
  opacity: 1;
}
.hero--documentary .eyebrow { display: block; line-height: 1.7; }
.hero--documentary .eyebrow::before {
  display: inline-block; vertical-align: middle; margin-right: .6rem;
}
@media (min-width: 701px) {
  .hero--documentary { background: #111a14; }
  .hero--documentary .hero__bg { left: 50%; width: 50%; }
  .hero--documentary .hero__in { max-width: 46%; }
  .hero--documentary h1 { font-size: clamp(44px, 4.7vw, 68px); }
  .hero--documentary .hero__actions { flex-wrap: wrap; }
}
.hero--documentary .hero__bg::after {
  background: linear-gradient(90deg, #111a14 0%, rgba(17,26,20,.12) 16%, rgba(17,26,20,.04) 80%, rgba(17,26,20,.10) 100%) !important;
}
@media (max-width: 700px) {
  .hero--process > .shell { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 32px; }
  .process-hero-photo img { height: 230px; }
  .diagram-reader { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
  .diagram-reader__header { padding: 16px; }
  .diagram-reader__header h2 { font-size: 18px; }
  .diagram-reader__header p { line-height: 1.45; }
  .diagram-reader button { padding: 8px 11px; }
  .diagram-reader__close { margin-left: 0; }
  .diagram-reader__canvas { height: 50dvh; }
  .diagram-reader__caption { padding: 12px 16px; }
  .visual-page-nav { gap: 12px 18px; padding: 18px 24px; }
  .diagram-open { font-size: 13px; }
  .hero--documentary .hero__bg img { object-position: 59% 47% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .diagram-reader, .diagram-reader * { scroll-behavior: auto !important; }
}
