/* ============================================================
   AERL Cathodic Protection Capability Statement — per-doc overrides on
   the Trace brochure (tokens.css + doc.css + brochure.css).
   4-page folded brochure, as the company Capability Statement, whose
   content-page classes (cs-*) are repeated here so each doc stands alone.
   Source notes: docs/external/company/cp-capability-statement.md
   ============================================================ */

/* ---------- Cover: datasheet Trace, CoolPro render in the ring ---------- */
.brochure .cover__title { font-size: 56px; line-height: 0.98; letter-spacing: -0.045em; margin-top: 6mm; }
.brochure .cover__title-em { color: var(--primary-500); }
.brochure .cover__photo { left: 66mm; top: 98mm; width: 80mm; filter: drop-shadow(0 10mm 9mm rgba(0,0,0,0.6)); }
.brochure .cover__subtitle.cs-strap { position: absolute !important; left: 34mm; right: 25mm; top: 263mm; margin: 0; font-size: 15px; line-height: 1.45; color: var(--gray-200); }

/* ---------- Content pages ---------- */
.cs-h3 {
  font-family: var(--font-brand); font-size: 16px; font-weight: 700;
  margin: 0 0 2.4mm; padding-bottom: 1.6mm;
  border-bottom: 0.5mm solid var(--sheet-ink);
}

.cs-intro { display: grid; grid-template-columns: 1fr 64mm; gap: 7mm; align-items: start; }
.cs-intro__text p { font-size: 13px; line-height: 1.6; color: var(--fg-2); margin: 0 0 2.4mm; }
.cs-intro__text p.cs-lede { font-family: var(--font-brand); font-size: 17px; line-height: 1.4; font-weight: 500; color: var(--fg-1); letter-spacing: -0.01em; }
.cs-intro__photo { margin: 0; }
.cs-intro__photo img { display: block; width: 100%; height: 58mm; object-fit: cover; object-position: 50% 40%; border-radius: 3.5mm; }
.cs-intro__photo figcaption { font-size: 11px; color: var(--fg-3); margin-top: 1.4mm; }

.cs-caps .benefit { position: relative; padding: 2.8mm 3.6mm 3mm; }
.cs-caps .benefit__title { font-size: 14px; line-height: 1.25; margin: 0 0 1.2mm; padding-right: 7mm; }
.cs-caps .benefit__body { font-size: 13px; line-height: 1.45; }
.cs-num { position: absolute; top: 2.8mm; right: 3.4mm; font-family: var(--font-label); font-size: 10.5px; font-weight: 500; color: var(--fg-accent); letter-spacing: 0.08em; }

.cs-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 4mm; position: relative; }
.cs-timeline li { position: relative; padding-top: 5mm; display: flex; flex-direction: column; gap: 0.8mm; }
.cs-timeline li::before { content: ""; position: absolute; top: 0.9mm; left: 0; right: -4mm; height: 0.35mm; background: var(--gray-300); }
.cs-timeline li:last-child::before { right: 0; }
.cs-timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 2.2mm; height: 2.2mm; border-radius: 50%; background: var(--primary-500); }
.cs-timeline__yr { font-family: var(--font-brand); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg-1); line-height: 1.1; }
.cs-timeline__t { font-size: 13px; font-weight: 600; color: var(--fg-1); }
.cs-timeline__b { font-size: 12px; line-height: 1.45; color: var(--fg-2); }

/* Range table: grey header labels over a heavy rule, hairline rows */
.cs-range { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; line-height: 1.4; }
.cs-range col.c1 { width: 34mm; }
.cs-range col.c2 { width: 50mm; }
.cs-range thead th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--fg-3);
  padding: 0 3mm 1.6mm 0; background: none; text-transform: none; letter-spacing: 0;
  border-bottom: 0.5mm solid var(--sheet-ink);
}
.cs-range tbody th, .cs-range td { text-align: left; vertical-align: top; padding: 1.5mm 3mm 1.5mm 0; border-bottom: 0.2mm solid var(--gray-300); background: none; }
.cs-range tbody th { font-family: var(--font-brand); font-size: 13.5px; font-weight: 700; color: var(--fg-1); }
.cs-range td:nth-child(2) { font-weight: 600; color: var(--fg-1); }
.cs-range td:last-child { color: var(--fg-2); padding-right: 0; }

.cs-sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2mm 5mm; }
.cs-sectors div { display: flex; flex-direction: column; gap: 0.6mm; padding-left: 2.8mm; border-left: 0.6mm solid var(--primary-500); }
.cs-sectors b { font-size: 13px; color: var(--fg-1); }
.cs-sectors span { font-size: 12px; line-height: 1.4; color: var(--fg-2); }

.cs-clients__lede { font-size: 13px; color: var(--fg-2); margin: 0 0 1.8mm; }
.cs-logos { display: flex; align-items: center; justify-content: space-between; gap: 4mm; padding: 0 1mm; }
.cs-logos img { display: block; height: auto; filter: brightness(0); opacity: 0.62; }

.brochure .cs-highlights { border-top: 0; padding-top: 0; }


.cs-intro--solo { display: block; }
.cs-intro--solo p { font-size: 13px; line-height: 1.6; color: var(--fg-2); margin: 0 0 2.4mm; max-width: 165mm; }
.cs-intro--solo p.cs-lede { font-family: var(--font-brand); font-size: 17px; line-height: 1.4; font-weight: 500; color: var(--fg-1); letter-spacing: -0.01em; }

/* System diagram */
.cp-diagram { margin: 0; }
.cp-diagram svg { display: block; width: 100%; max-width: 152mm; height: auto; margin: 0 auto; }
.cp-diagram .node rect { fill: #fff; stroke: var(--gray-300); stroke-width: 1.2; }
.cp-diagram .node.aerl rect { fill: #fdf3e3; stroke: var(--primary-500); }
.cp-diagram .node.key rect { stroke-width: 2.2; }
.cp-diagram .t { font: 600 12.5px var(--font-sans); fill: var(--fg-1); text-anchor: middle; }
.cp-diagram .s { font: 400 10.5px var(--font-sans); fill: var(--fg-3); text-anchor: middle; }
.cp-diagram .s.l { text-anchor: start; }
.cp-diagram .w { stroke: var(--sheet-ink); stroke-width: 1.4; fill: none; }
.cp-diagram .w.dash { stroke: var(--primary-600); stroke-dasharray: 4 3; }
.cp-diagram .ah { fill: var(--sheet-ink); }
.cp-diagram .lg-aerl { fill: #fdf3e3; stroke: var(--primary-500); }

/* Page 3 */
.cp-spec h3 { font-family: var(--font-brand); font-size: 16px; font-weight: 700; margin: 0; padding-bottom: 1.6mm; border-bottom: 0.5mm solid var(--sheet-ink); }
.cp-spec .row { padding: 0.9mm 0; border-bottom: 0.2mm solid var(--gray-300); }
.cp-spec dt { font-size: 12px; color: var(--fg-3); }
.cp-spec dd { font-size: 13px; font-weight: 600; }
.brochure .cp-note { margin-top: -2mm; }
.cp-reach { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; align-items: start; }
.cp-reach__lede { font-size: 13px; line-height: 1.5; color: var(--fg-2); margin: 0 0 2.4mm; }
.cp-countries { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2mm; }
.cp-countries li { font-size: 13px; font-weight: 600; color: var(--fg-1); padding: 1.2mm 3mm; border: 0.35mm solid var(--primary-500); border-radius: 99px; }
.cp-reach .cs-logos { justify-content: flex-start; gap: 7mm; }

/* ---------- Back cover ---------- */
.brochure .back__name { top: 162mm; width: 170mm; }
.brochure .cs-backgrid { top: 184mm; grid-template-columns: repeat(3, 1fr); gap: 7mm 8mm; }
.brochure .back__foot span:last-child { text-align: right; max-width: 120mm; }
.brochure .page.specsheet.cs-p3 { gap: 3.8mm; }

/* review fixes: no zebra fills in the range table; timeline items share one baseline */
.cs-range tbody tr, .cs-range tbody tr > * { background: none !important; }
.cs-timeline li { margin: 0; }
.brochure .back__foot span:last-child { max-width: 135mm; }

/* review: fill pages 2 and 3, clear the back band */
.benefits.cp-opts { grid-template-columns: repeat(3, 1fr); gap: 3mm 4mm; }
.cp-opts .benefit { padding: 2.6mm 3.4mm 2.8mm; }
.brochure .cs-backgrid { top: 180mm; }

/* soft studio glow behind the CoolPro, so the dark unit lifts off the charcoal cover */
.cp-glow { position: absolute !important; left: 31mm; top: 86mm; width: 150mm; height: 135mm;
  background: radial-gradient(closest-side, rgba(255,240,220,0.16), rgba(255,240,220,0.05) 55%, rgba(255,240,220,0) 100%); }
