/* Agentiv Labs design tokens and base components - v1.2.1, 2026-10-12
   (v1.2.0 palette: Midnight and Indigo; v1.2.1 banner fill: neutral charcoal).
   Rules: Guidelines/GL-008-agentiv-design-system.md. Source of truth for values: tokens.json beside this file.
   Inline this file into a self-contained page; do not link it across folders.
   Fonts: system Arial/Helvetica only, matching the house deliverables. No font link,
   no external resource. */

:root {
  --ag-primary: #26263F;       /* Midnight: wordmark, headings, table header */
  --ag-primary-tint: #EEEFF9;  /* callout fill */
  --ag-accent: #4651D2;        /* Indigo: one accent per view */
  --ag-accent-tint: #ECEDFC;   /* emphasis panel */
  --ag-ink: #20212C;           /* body text */
  --ag-muted: #5A5B6B;         /* captions, meta, H3 labels */
  --ag-page: #FFFFFF;
  --ag-surface: #F6F6FA;       /* Mist: panels, zebra rows */
  --ag-rule: #DFDFE8;          /* hairlines, decorative only */
  --ag-rule-strong: #B9BAC8;
  --ag-on-primary: #FFFFFF;
  --ag-banner: #3A3A3A;        /* Charcoal: full-width header band fill, same in every mode */
  --ag-on-banner: #FFFFFF;     /* band label and wordmark */
  --ag-banner-accent: #A9B1F8; /* the one accent on the band: divider, bottom stripe */

  --ag-font-heading: Arial, Helvetica, 'Helvetica Neue', sans-serif;
  --ag-font-body: Arial, Helvetica, 'Helvetica Neue', sans-serif;
  --ag-font-mono: Consolas, Menlo, 'Courier New', monospace;

  --ag-s1: 4px; --ag-s2: 8px; --ag-s3: 12px; --ag-s4: 16px;
  --ag-s5: 24px; --ag-s6: 32px; --ag-s7: 48px; --ag-s8: 64px;
  --ag-radius: 4px;
  --ag-measure: 760px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ag-primary: #C2C5F4; --ag-primary-tint: #22243B;
    --ag-accent: #949EF6;  --ag-accent-tint: #262947;
    --ag-ink: #EAEAF1;     --ag-muted: #A3A4B4;
    --ag-page: #121219;    --ag-surface: #1B1C26;
    --ag-rule: #2D2E3D;    --ag-rule-strong: #4A4B5E;
    --ag-on-primary: #121219;
  }
}
:root[data-theme="dark"] {
  --ag-primary: #C2C5F4; --ag-primary-tint: #22243B;
  --ag-accent: #949EF6;  --ag-accent-tint: #262947;
  --ag-ink: #EAEAF1;     --ag-muted: #A3A4B4;
  --ag-page: #121219;    --ag-surface: #1B1C26;
  --ag-rule: #2D2E3D;    --ag-rule-strong: #4A4B5E;
  --ag-on-primary: #121219;
}

/* ---- base ---- */
body {
  margin: 0; background: var(--ag-page); color: var(--ag-ink);
  font: 400 15px/1.5 var(--ag-font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.ag-page { max-width: var(--ag-measure); margin: 0 auto; padding: var(--ag-s6) var(--ag-s4); }
strong, b { font-weight: 700; }
a { color: var(--ag-accent); text-underline-offset: 2px; }

/* ---- headings: bold Arial H1/H2 in midnight, H3 as a small uppercase label ---- */
h1, h2 { font-family: var(--ag-font-heading); font-weight: 700; color: var(--ag-primary); line-height: 1.2; letter-spacing: -0.005em; }
h1 { font-size: 26px; margin: var(--ag-s6) 0 var(--ag-s3); padding-bottom: var(--ag-s2); border-bottom: 1.5px solid var(--ag-accent); }
h2 { font-size: 19px; margin: var(--ag-s5) 0 var(--ag-s2); }
h3 { font: 700 12.5px/1.3 var(--ag-font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ag-muted); margin: var(--ag-s4) 0 var(--ag-s2); }
.ag-title { font: 700 36px/1.15 var(--ag-font-heading); color: var(--ag-primary); margin: 0 0 var(--ag-s2); }
.ag-subtitle { font-size: 17px; color: var(--ag-muted); margin: 0 0 var(--ag-s5); }
.ag-meta { font-size: 12.5px; color: var(--ag-muted); }

/* ---- header band with wordmark ---- */
.ag-header { display: flex; align-items: center; justify-content: space-between; gap: var(--ag-s4);
  padding-bottom: var(--ag-s3); border-bottom: 1px solid var(--ag-rule); margin-bottom: var(--ag-s5); }
.ag-header img { height: 18px; width: auto; display: block; }
/* img. prefix keeps this rule above .ag-header img in specificity */
img.ag-wordmark-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ag-wordmark-light { display: none; }
  :root:not([data-theme="light"]) .ag-wordmark-dark { display: block; }
}
:root[data-theme="dark"] .ag-wordmark-light { display: none; }
:root[data-theme="dark"] .ag-wordmark-dark { display: block; }

/* ---- callout: tint fill, indigo left bar, no other border ---- */
.ag-callout { background: var(--ag-primary-tint); border-left: 3px solid var(--ag-accent);
  padding: 14px 18px; margin: var(--ag-s4) 0; border-radius: 0 var(--ag-radius) var(--ag-radius) 0; }
.ag-callout > :first-child { margin-top: 0; } .ag-callout > :last-child { margin-bottom: 0; }
.ag-emphasis { background: var(--ag-accent-tint); padding: 14px 18px; border-radius: var(--ag-radius); }
.ag-emphasis a { color: var(--ag-primary); }   /* links in the emphasis panel stay midnight (GL-008 rule 4.10) */

/* ---- key figure ---- */
.ag-figure { font: 700 30px/1 var(--ag-font-heading); color: var(--ag-primary); }
.ag-figure-label { font: 700 11px/1.3 var(--ag-font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ag-muted); }

/* ---- table: midnight header, mist zebra, horizontal hairlines only ---- */
.ag-table-wrap { overflow-x: auto; margin: var(--ag-s4) 0; }
table.ag-table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.35; }
.ag-table th { background: var(--ag-primary); color: var(--ag-on-primary); font-weight: 700; text-align: left;
  padding: 8px 12px; vertical-align: bottom; }
.ag-table td { padding: 8px 12px; border-bottom: 0.5px solid var(--ag-rule); vertical-align: top; }
.ag-table tbody tr:nth-child(even) td { background: var(--ag-surface); }
.ag-table tbody tr:last-child td { border-bottom: 1px solid var(--ag-primary); }
.ag-table td:first-child { font-weight: 700; color: var(--ag-primary); }

/* ---- banner: full-width charcoal band at the top of every battlecard page ----
   Dark wordmark on the left, the band label (PARTNER BATTLECARD) on the right,
   a 2px banner-accent stripe along the bottom. Same colours in light, dark and print. */
.ag-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--ag-s4);
  background: var(--ag-banner); color: var(--ag-on-banner); min-height: 56px; padding: 0 var(--ag-s6);
  border-bottom: 2px solid var(--ag-banner-accent); box-sizing: border-box; }
.ag-banner img { height: 20px; width: auto; display: block; }
.ag-banner-label { font: 700 12.5px/1 var(--ag-font-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ag-on-banner); }

/* ---- print: always light, letter page ---- */
@page { size: Letter; margin: 0.75in 0.8in; }
@media print {
  :root, :root[data-theme="dark"] {
    --ag-primary: #26263F; --ag-primary-tint: #EEEFF9; --ag-accent: #4651D2; --ag-accent-tint: #ECEDFC;
    --ag-ink: #20212C; --ag-muted: #5A5B6B; --ag-page: #FFFFFF; --ag-surface: #F6F6FA;
    --ag-rule: #DFDFE8; --ag-rule-strong: #B9BAC8; --ag-on-primary: #FFFFFF;
  }
  .ag-wordmark-light { display: block !important; } .ag-wordmark-dark { display: none !important; }
  body { font-size: 10pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ag-page { max-width: none; padding: 0; }
  h1 { font-size: 16pt; } h2 { font-size: 12.5pt; } h3 { font-size: 9pt; }
  .ag-title { font-size: 22pt; } table.ag-table { font-size: 8.5pt; }
  .ag-banner { min-height: 0.55in; } .ag-banner-label { font-size: 9pt; } .ag-banner img { height: 0.2in; }
  h1, h2, h3 { break-after: avoid; } tr, .ag-callout { break-inside: avoid; }
}

@media (max-width: 520px) {
  .ag-title { font-size: 28px; } h1 { font-size: 22px; }
  .ag-header { flex-wrap: wrap; }
}
