/* Role Replacer: the brand's values, in one place (nameupdateinstructions.md, 20 Nov 2026).
   Every page loads this file first, then base.css, whose own tokens (--ground, --ink, --accent ...) are set
   from these. To change a brand colour, a font or a corner, change it here and nowhere else.

   Contrast, checked: ink on page ground 15.4:1, ink on card 16.6:1, secondary text 6.5:1 on the page ground
   and 7.0:1 on a card (do not lighten it), white on the accent 6.7:1, the accent as link text on a card 6.7:1,
   ink on the highlight 9.4:1. */

:root {
  /* Colour */
  --brand-ground: #F4F6F8;      /* page ground */
  --brand-card: #FFFFFF;        /* card ground */
  --brand-ink: #0F1E36;         /* text, dark buttons, dark panels */
  --brand-text-2: #4B5A72;      /* secondary text */
  --brand-accent: #1D4ED8;      /* links, main buttons, the selected card */
  --brand-accent-dark: #163BA3; /* the accent pressed or hovered */
  --brand-accent-light: #9DB8FF;/* the accent on an ink panel */
  --brand-on-accent: #FFFFFF;   /* text on the accent */
  --brand-highlight: #F5B83D;   /* status badges such as "BobAI is ready", always with ink text */
  --brand-line: #D5DBE3;        /* hairlines and card borders */
  --brand-connector: #9AA6B6;   /* connector lines on the org chart */

  /* Worked out from the ones above, for the places the table does not cover */
  --brand-ground-soft: #FAFBFC; /* a second, lighter ground */
  --brand-ink-2: #17294A;       /* a raised surface on an ink panel */
  --brand-ink-3: #22365A;
  --brand-text-strong: #1E2D47; /* long text, between ink and secondary */
  --brand-text-mid: #33435C;
  --brand-line-soft: #E6EAEF;   /* the lightest divider */
  --brand-line-field: #7C899C;  /* the edge of a text box: a hairline is too faint for something to type in (3.6:1 on a card) */
  --brand-on-ink: #FFFFFF;      /* text on an ink panel */
  --brand-on-ink-2: #D5DBE3;
  --brand-on-ink-muted: #A9B4C4;
  --brand-ink-line: #33435C;    /* a divider on an ink panel */
  --brand-ink-border: #51627F;
  --brand-accent-soft: #EAF0FE; /* the accent as a tint */
  --brand-danger: #B42318;      /* errors and stopped things. Not in the brand table; a form needs one. 6.6:1 on a card */
  --brand-danger-soft: #FDE7E4;

  /* Type: Manrope 800 for headings, Inter 400, 500 and 600 for everything else (both on Google Fonts) */
  --brand-font-head: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --brand-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --brand-head-weight: 800;
  --brand-head-spacing: -0.03em;

  /* Shape */
  --brand-radius-button: 8px;
  --brand-radius-card: 12px;
  --brand-tap: 44px;            /* the least height of a button, or of a link that acts as one */
}

/* The header's logo and the note beside it. The lockup is a picture file (assets/brand/lockup.svg); the note is
   real text, hidden until js/brand-note.js shows it to a visitor who came through the old domain. Nobody else
   ever sees it, not even while the page loads: it is hidden here and by its own hidden attribute. */
.brand { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.brand-lockup { display: block; height: 30px; width: auto; }
.brand-former { display: none; font-family: var(--brand-font-body); font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--brand-text-2); white-space: nowrap; }
.brand-former.is-shown { display: inline; }
.brand-on-ink .brand-former { color: #C6CFDC; }
@media (max-width: 640px) {
  /* On a phone the note sits under the logo. */
  .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
  .brand-lockup { height: 26px; }
}
