/* =========================================================
   Admin palette override — reuses the "Quiet Room" theme's colors
   (see static/css/app.css :root) so /admin/ doesn't look like a
   different product. Only redefines Django admin's own CSS custom
   properties (django/contrib/admin/static/admin/css/base.css) — no
   admin templates, layout, or JS widgets are touched.

   Covers all three states Django's admin CSS switches on, so the
   site's light-only palette wins regardless of OS dark-mode
   preference or the admin's manual light/dark toggle — app.css
   itself has no dark variant, so this stays consistent with the
   rest of the site rather than half-adopting dark mode here.
   ========================================================= */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --primary: #5c7350;         /* sage-dark */
  --secondary: #8a9a7e;       /* sage */
  --accent: #c98b74;          /* clay */
  --primary-fg: #fff;

  --body-fg: #333a2e;         /* ink */
  --body-bg: #f4f3ee;         /* bg */
  --body-quiet-color: #767d6c;/* sub */
  --body-medium-color: #4b5142;
  --body-loud-color: #333a2e; /* ink */

  --header-color: #fff;
  --header-branding-color: #c98b74; /* clay */
  --header-bg: #5c7350;       /* sage-dark */
  --header-link-color: #fff;

  --breadcrumbs-fg: #eaf0e6;  /* sage-tint */
  --breadcrumbs-link-fg: #f4f3ee;
  --breadcrumbs-bg: #5c7350;  /* sage-dark */

  --link-fg: #5c7350;         /* sage-dark */
  --link-hover-color: #a15a3f;/* clay-dark */
  --link-selected-fg: #5c7350;

  --hairline-color: #e6e4db;  /* line */
  --border-color: #e6e4db;    /* line */

  --darkened-bg: #e6e4db;     /* line, doubles as a subtle row stripe */
  --selected-bg: #eaf0e6;     /* sage-tint */
  --selected-row: #f6ece7;    /* clay-tint */

  --button-fg: #fff;
  --button-bg: #8a9a7e;       /* sage */
  --button-hover-bg: #5c7350; /* sage-dark */
  --default-button-bg: #5c7350;   /* sage-dark */
  --default-button-hover-bg: #8a9a7e; /* sage */
  --close-button-bg: #767d6c; /* sub */
  --close-button-hover-bg: #333a2e; /* ink */

  /* Destructive actions and status messages (error/warning/success)
     intentionally keep Django's defaults — recoloring "delete" red to
     match the brand palette would blur a safety signal, not just a
     brand one. */
}
