/* Sector palette and decorations – CDE SANTE (الصحة).
   Green #1F8F6A and red #C43D45 come from the Ministry of Health logo, gold from its emblem.
   Shared by the homepage (site.css) and the registration pages (registration/css/sector-theme.css). */
:root {
  --primary: #1F8F6A;
  --primary-dark: #166B4F;
  --primary-soft: rgba(31, 143, 106, .10);
  --primary-shadow: rgba(31, 143, 106, .28);
  --accent: #C9A227;
  --accent-glow: rgba(201, 162, 39, .18);
  --secondary: #C43D45;
  --secondary-light: #D9636A;
  --sand: #E6F4EC;
  --cream: #F8FBF9;
  --deep: #0F2E26;
  --ink: #1D2A26;
  --muted: #56655F;
  --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");
}

/* Footer: CDE logo on the first line, then one line per ministry (MKESM, Ministry of Health) */
.footer-brands { flex-wrap: wrap; row-gap: .75rem; }
.footer-brands .ministry { flex: 1 1 100%; max-width: none; }

/* Contact card and registration header in green: a large red surface reads like an error message.
   (html prefix: wins over the !important rule of registration/css/sector-theme.css) */
.contact-info { background-color: var(--primary-dark); }
html .header-box, html .status-brand {
  background-image: var(--pat-dark), linear-gradient(135deg, var(--deep), var(--primary-dark) 75%, color-mix(in srgb, var(--secondary) 35%, var(--primary-dark))) !important;
}

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