/* Daniel Kafka Klinik v0.50 — scoped dark-theme corrections from the supplied
   Courses & Training and specialist-assessment screenshots.
   Keeps semantics, text, route targets, enabled/disabled state and Donate intact.
   No JS/HTML event handlers, remote assets or untrusted CSS inputs. */
:root {
  --dkk-v50-education-action-surface: #16263A;
  --dkk-v50-education-action-hover: #243A51;
  --dkk-v50-education-action-ink: #FFFFFF;
  --dkk-v50-education-action-border: #F4F8FF;
  --dkk-v50-contact-start: #86115F;
  --dkk-v50-contact-end: #A51974;
  --dkk-v50-contact-hover-start: #95166B;
  --dkk-v50-contact-hover-end: #B32282;
  --dkk-v50-contact-border: #DF74C2;
}
@media screen and (forced-colors: none) {
  /* Only education routes with their existing hero marker. The page-tool row
     consists of native <details> disclosures and the Explore link. Other
     education actions keep their previous magenta taxonomy and palette. */
  html[data-theme="dark"] body #main:has(> .hero.education)
    .ux-page-tools > :is(details, .button):not(:disabled):not([aria-disabled="true"]),
  html[data-theme="dark"] body #main:has(> .hero.education)
    .ux-page-tools > :is(details, .button):not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--dkk-v50-education-action-surface) !important;
    background-image: none !important;
    color: var(--dkk-v50-education-action-ink) !important;
    border: 2px solid var(--dkk-v50-education-action-border) !important;
    box-shadow: none !important;
    text-shadow: none;
    filter: none;
    transform: none;
  }
  html[data-theme="dark"] body #main:has(> .hero.education)
    .ux-page-tools > :is(details, .button):not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--dkk-v50-education-action-hover) !important;
  }
  html[data-theme="dark"] body #main:has(> .hero.education)
    .ux-page-tools > details > summary,
  html[data-theme="dark"] body #main:has(> .hero.education)
    .ux-page-tools > .button :is(svg, .icon) {
    color: var(--dkk-v50-education-action-ink) !important;
  }
  html[data-theme="dark"] body #main:has(> .hero.education)
    .ux-page-tools > :is(details, .button):focus-visible,
  html[data-theme="dark"] body #main:has(> .hero.education)
    .ux-page-tools > details > summary:focus-visible {
    outline: 3px solid #86BFFF;
    outline-offset: 3px;
    box-shadow: none;
  }
  /* The professional contact/specialist-assessment banner: dark magenta,
     white text, restrained light-magenta border, no glow or hover elevation.
     Does not style the parent banner or any clinical urgent-help CTA. */
  html[data-theme="dark"] body #main .contact-band > a:not(.danger):not(:disabled):not([aria-disabled="true"]) {
    background: linear-gradient(115deg, var(--dkk-v50-contact-start), var(--dkk-v50-contact-end)) !important;
    color: #FFFFFF !important;
    border: 1.5px solid var(--dkk-v50-contact-border) !important;
    box-shadow: none !important;
    text-shadow: none;
    filter: none;
    transform: none;
    transition: background-color 160ms ease, border-color 160ms ease;
  }
  html[data-theme="dark"] body #main .contact-band > a:not(.danger):not(:disabled):not([aria-disabled="true"]):hover {
    background: linear-gradient(115deg, var(--dkk-v50-contact-hover-start), var(--dkk-v50-contact-hover-end)) !important;
    color: #FFFFFF !important;
    border-color: #F4A5D8 !important;
    box-shadow: none !important;
    filter: none;
    transform: none;
  }
  html[data-theme="dark"] body #main .contact-band > a:focus-visible {
    outline: 3px solid #FFB1E4;
    outline-offset: 3px;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] body #main :is(.ux-page-tools > details, .ux-page-tools > .button, .contact-band > a) {
    transition: none;
    transform: none;
  }
}
html[data-motion="reduced"][data-theme="dark"] body #main
  :is(.ux-page-tools > details, .ux-page-tools > .button, .contact-band > a) {
  transition: none;
  transform: none;
}
/* Rely on native ButtonText/CanvasText under forced-colour modes. Keep
   clinical printouts neutral and non-brand-coloured. */
@media (forced-colors: active) {
  html[data-theme="dark"] body #main .contact-band > a,
  html[data-theme="dark"] body #main:has(> .hero.education)
    .ux-page-tools > :is(details, .button) {
    background: ButtonFace;
    background-image: none;
    color: ButtonText;
    border: 1px solid ButtonText;
    box-shadow: none;
  }
}
@media print {
  html[data-theme="dark"] body #main .contact-band > a {
    background: #FFFFFF;
    background-image: none;
    color: #000000;
    border: 1px solid #555555;
    box-shadow: none;
  }
}
