/* Sector palette and decorations – CDE JUSTICE (إعادة التربية والإدماج الاجتماعي).
   Gold from the Ministry of Justice emblem, deep blue as secondary, a sprout green as accent
   (second chance, growth). Shared by the homepage (site.css) and the registration pages
   (registration/css/sector-theme.css). */
:root {
  --primary: #A8892B;
  --primary-dark: #7F6720;
  --primary-soft: rgba(168, 137, 43, .12);
  --primary-shadow: rgba(168, 137, 43, .30);
  --accent: #4F9D69;
  --accent-glow: rgba(79, 157, 105, .18);
  --secondary: #2B4A6F;
  --secondary-light: #46709E;
  --sand: #F6EEDC;
  --cream: #FBFAF7;
  --deep: #17283D;
  --ink: #1F2430;
  --muted: #5C6475;
  --pat-light: url("../img/bg-light.svg");
  --pat-dark: url("../img/bg-dark.svg");
  --pat-scatter: url("../img/bg-scatter.svg");
  --motif: url("../img/motif.svg");
  --band: url("../img/band.svg");
}

/* Ministry of Justice emblem in the footer: light and dark versions follow the theme. */
.ministry-badge .logo-dark { display: none; }
html[data-theme="dark"] .ministry-badge .logo-light { display: none; }
html[data-theme="dark"] .ministry-badge .logo-dark { display: inline-block; }

/* Two ministries in the footer (MKESM and Ministry of Justice): logo on the first row,
   one ministry per row below it, instead of the single-row layout of site.css. */
.footer-brands { flex-wrap: wrap; }
.footer-brands .ministry { flex: 1 1 100%; max-width: none; }
