/* ============================================================
   AERL Capability Statement — per-doc overrides on the Trace brochure
   (tokens.css + doc.css + brochure.css).

   4-page folded brochure (A3 folded, as LiFe²): cover | who we are
   (verso) | products and credentials (recto) | back cover.
   Source notes: docs/external/company/capability-statement.md
   ============================================================ */

/* ---------- Cover ----------
   Field photograph across the top, fading into the charcoal Trace ground;
   the title sits on the fade. Key-figure pads keep brochure.css's default
   position, so the datasheet Trace line wires them in series. */
.cs-hero {
  position: absolute !important;
  left: calc(-1 * var(--bleed)); right: calc(-1 * var(--bleed)); top: calc(-1 * var(--bleed));
  height: calc(178mm + var(--bleed));
  z-index: 0 !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,0.55) 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,0.55) 72%, transparent 100%);
}
.cs-hero img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
}
.brochure .cover .cover__kind { color: var(--white); text-shadow: 0 0 3mm rgba(0,0,0,0.6); }
/* legibility for the logo and the label on the photo */
.cs-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(16,18,22,0.78) 0, rgba(16,18,22,0) 34mm),
              linear-gradient(to top, rgba(16,18,22,0.85) 0, rgba(16,18,22,0) 70mm);
}
.brochure .cover .cover__head { z-index: 2; }

.cs-titleblock { position: absolute !important; left: 16mm; right: 16mm; top: 146mm; }
.brochure .cover__title { font-size: 60px; line-height: 0.98; letter-spacing: -0.045em; margin: 0; }
.brochure .cover__title-em { color: var(--primary-500); }
.brochure .cover__subtitle { font-size: 16px; line-height: 1.45; max-width: 140mm; margin-top: 5mm; 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; }

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

/* Rev 1.1.0: nine capabilities, three across */
.benefits.cs-caps { grid-template-columns: repeat(3, 1fr); gap: 2.6mm 3.5mm; }
.cs-caps .benefit { padding: 2.6mm 3.2mm 2.8mm; }
.cs-caps .benefit__title { font-size: 13.5px; }
.cs-caps .benefit__body { font-size: 12px; line-height: 1.42; }
.cs-intro { grid-template-columns: 1fr 56mm; gap: 6mm; }
.cs-intro__photo img { height: 50mm; }
.cs-intro__text p.cs-lede { font-size: 16px; line-height: 1.38; }
.cs-intro__text p { line-height: 1.52; margin-bottom: 2mm; }
.benefits.cs-caps { gap: 2.2mm 3.5mm; }
.cs-caps .benefit { padding: 2.1mm 3.2mm 2.2mm; }
.cs-caps .benefit__title { margin-bottom: 0.8mm; }
.cs-caps .cs-num { top: 2.2mm; }
.cs-intro__photo img { height: 47mm; }
.cs-intro__text p:last-child { margin-bottom: 0; }
/* back cover: one row of details since the credentials row was removed */
.brochure .back__name { top: 170mm; }
.brochure .cs-backgrid { top: 193mm; }
