/* ---------------------------------------------------------------------------
   AIA EAP ATTRIBUTION (SHOW-5).

   A contractual notice. Additive and token-only, in its own sheet, per the
   convention of every other sheet in public/: no :root, no @font-face, no
   override of anything it does not own.

   THE LOGO IS AIA'S MARK, AND IT IS NOT OURS TO RESTYLE.
     · colours unmodified   -> filter/opacity/mix-blend are pinned to their
                               no-op values, so no ancestor rule can tint it.
     · never stretched      -> a FIXED height with width:auto, plus object-fit
                               contain as a second guard: if a narrow viewport
                               ever constrains the box, the mark letterboxes
                               rather than squashing.
   The greyscale treatment in this block applies to the TYPE ONLY. The greys are
   the brand's true neutrals (#7F7F7F tertiary), not a tinted grey.

   The logo is deliberately NOT placed beside any emissions figure: a certifier's
   mark next to a number reads as that certifier attesting to that number. Both
   mounts sit in trailing attribution areas, below all content.
   --------------------------------------------------------------------------- */

.aia { display: flex; flex-direction: column; }

.aia__logo {
  height: 28px;            /* fixed: the mark's one sanctioned size here */
  width: auto;             /* aspect ratio preserved, never stretched */
  max-width: 100%;
  object-fit: contain;     /* letterbox rather than squash if ever constrained */
  display: block;
  filter: none;            /* AIA's colours, unmodified */
  opacity: 1;
  mix-blend-mode: normal;
}

.aia__tx { display: flex; flex-direction: column; gap: 6px; }

.aia__line {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.55;
  color: var(--fg-tertiary);        /* #7F7F7F - a true neutral grey */
  font-weight: 400;
  text-wrap: pretty;
}

/* --- The persistent app footer -------------------------------------------- */
/* Sits below the main content on every authenticated surface. Centred, because
   it is a page-level colophon rather than a column of body copy. */
.aia--app {
  align-items: center;
  gap: 12px;
  padding: 22px 24px 26px;
  border-top: 1px solid var(--border-rule);
  background: var(--bg-surface-alt);
}
.aia--app .aia__tx { align-items: center; text-align: center; max-width: 92ch; }

/* --- The report attribution block ----------------------------------------- */
/* Left-aligned: it sits in the report's sources area, among left-aligned text,
   directly beneath the existing contractual footer rule. */
.aia--report {
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0 0;
  margin-top: 14px;
  border-top: 1px solid var(--border-rule);
}
.aia--report .aia__tx { max-width: 88ch; }

/* The attribution is part of the evidence file: it prints. */
@media print {
  .aia { break-inside: avoid; }
  .aia__logo { filter: none; opacity: 1; }
}
