/* ============================================================================
   mission-community — admin theme.

   This file is the ONLY thing a template personalises. It sets the documented
   token contract from docs/ADMIN-STANDARD.md and nothing else: no layout, no
   component rules, no state colour. Everything structural lives in
   shared/admin.css so all 17 admins behave and read identically.

   The raw brand hue arrives as --adm-tpl-accent, set inline on <body> from the
   template manifest's #2f6f5e field, so `--set accent=#xxxxxx` flows through
   to the admin as well as the marketing page.
   ========================================================================== */

/* ---------- Light (default) ------------------------------------------------ */

[data-adm-app] {
  /* Brand — chrome only: rail mark, active indicator, primary button. */
  --adm-brand: var(--adm-tpl-accent, #2f6f5e);
  --adm-brand-ink: #f4f8f4;

  /* Surfaces — recycled stock and noticeboard card, not corporate white. */
  --adm-bg: #f3f1e9;
  --adm-surface: #fdfcf7;
  --adm-surface-alt: #eae6d9;
  --adm-border: #dbd5c4;

  /* Text — dark moss ink, softened off black. */
  --adm-text: #23302b;
  --adm-text-muted: #6c7770;

  /* Shape + type — honest square-ish card, plain grotesque display. */
  --adm-radius: 8px;
  --adm-font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --adm-font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Dark ----------------------------------------------------------- */

[data-theme='dark'] [data-adm-app] {
  /* Lift the mission green so it survives a dark rail without glowing. */
  --adm-brand: color-mix(in srgb, var(--adm-tpl-accent, #2f6f5e) 62%, #ffffff);
  --adm-brand-ink: #0e1a16;

  --adm-bg: #141a17;
  --adm-surface: #1b221e;
  --adm-surface-alt: #232b26;
  --adm-border: #333d37;

  --adm-text: #eef2ed;
  --adm-text-muted: #9caaa2;
}
</content>
</invoke>
