/* iFond brand polish for the Wagtail admin.
 * ------------------------------------------------------------
 * Wagtail ships its own design system (uses CSS custom properties
 * like `--w-color-primary`). This file overrides a small set of
 * those variables so the CMS chrome reads as iFond — without
 * fighting Wagtail's component framework.
 *
 * Loaded via the `insert_global_admin_css` hook in
 * `ifond/apps/marketing/wagtail_hooks.py`.
 *
 * Keep this file SMALL. The goal is "feels like iFond", not a
 * full re-skin. Aggressive overrides break Wagtail's components.
 */

/* Brand palette mapped onto Wagtail's primary roles. */
:root {
  /* Wagtail's primary brand color → iFond black */
  --w-color-primary: #000000;
  --w-color-primary-200: #1a1a1a;

  /* Wagtail's secondary accent → iFond lavender */
  --w-color-secondary: #d1c4e9;
  --w-color-secondary-400: #aca2c0;
  --w-color-secondary-600: #887f97;

  /* Focus ring → iFond amber (matches --focus token in the brand) */
  --w-color-focus: #db924b;
}

/* Use Inter Tight for the top-bar branding only — never override
 * Wagtail's body font, which is calibrated for the editing UI. */
.sidebar-footer__logo,
.sidebar__inner header h2,
.w-header__title {
  font-family: "Inter Tight", "Inter", system-ui, -apple-system,
    "Segoe UI", Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.01em;
}

/* Replace the default Wagtail "W" with a faint iFond mark accent
 * via the sidebar logo container. Wagtail renders its own SVG, so
 * we only nudge spacing here. */
.sidebar__inner header .icon-wagtail {
  filter: grayscale(1);
}
