/* Director review V4.5.1: targeted dark/light contrast repairs.
   Keep user theme preference, preserve existing geometry and fonts. */
html[data-theme="dark"] .resource-notice,
html[data-theme="dark"] .resource-notice.refined-resource-notice,
html[data-theme="dark"] .programme-origin {
  background: #20392d !important;
  border: 1px solid rgba(237,245,239,.24) !important;
  color: #f1f6f1 !important;
}
html[data-theme="dark"] .resource-notice strong,
html[data-theme="dark"] .programme-origin strong,
html[data-theme="dark"] .content-card .programme-origin strong {
  color: #ffffff !important;
}
html[data-theme="dark"] .resource-notice p,
html[data-theme="dark"] .programme-origin p,
html[data-theme="dark"] .content-card .programme-origin p,
html[data-theme="dark"] .resource-notice div p {
  color: #e3ede5 !important;
}
html[data-theme="dark"] .resource-notice > span {
  color: #f0cf75 !important;
}
/* Explicitly override the generic dark-mode mobile link rule. */
html[data-theme="dark"] .mobile-menu .mobile-account-link,
html[data-theme="dark"] .mobile-menu button.mobile-account-link,
html[data-theme="dark"] .mobile-account-link {
  background: #315d42 !important;
  border: 1px solid #8db69b !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="dark"] .mobile-menu .mobile-account-link:hover,
html[data-theme="dark"] .mobile-menu .mobile-account-link:focus-visible {
  background: #3c7150 !important;
  color: #ffffff !important;
  outline-offset: 3px;
}
/* Keep independent social/vacancy content readable in either theme. */
html[data-theme="dark"] .official-social-link.card,
html[data-theme="dark"] .vacancy-card.card,
html[data-theme="dark"] .vacancy-empty.card {
  background: #1c3025 !important;
  color: #f1f6f2 !important;
  border-color: rgba(230,244,233,.23) !important;
}
html[data-theme="dark"] .official-social-link.card strong,
html[data-theme="dark"] .vacancy-card.card h2,
html[data-theme="dark"] .vacancy-empty.card h2 { color: #ffffff !important; }
html[data-theme="dark"] .official-social-link.card span,
html[data-theme="dark"] .vacancy-card.card p,
html[data-theme="dark"] .vacancy-empty.card p { color: #d2e4d7 !important; }
