/* Daniel Kafka Klinik v0.48 — one accessible action palette, no text/route changes.
   The ordinary actions follow the contact-guidance outline reference. The Donate
   controls, dangerous/destructive actions, disabled actions and selection chips
   retain their separate established meanings. Last stylesheet on all nine shells.
*/
:root {
  --dkk-action-surface: #FFFFFF;
  --dkk-action-hover: #EDF5FF;
  --dkk-action-ink: #0758BC;
  --dkk-action-border: #1669D8;
  --dkk-action-shadow: 0 2px 8px rgba(15, 84, 164, .09);
  --dkk-education-magenta: #FF83DB;
}
html[data-theme="dark"] {
  --dkk-action-surface: #16263A;
  --dkk-action-hover: #233B55;
  --dkk-action-ink: #FFFFFF;
  --dkk-action-border: #F4F8FF;
  --dkk-action-shadow: 0 2px 12px rgba(0, 0, 0, .15);
  /* Learning accents are magenta only in dark mode, never a global status colour. */
  --learning-icon-accent: var(--dkk-education-magenta);
}
@media screen and (forced-colors: none) {
  /* The :not exclusions are deliberate: no Donate, danger, disabled or status
     affordance gets a normal-action appearance. Strong specificity overrides
     older, contradictory v33–v39 feature/preparation/button declarations. */
  html[data-theme] body :is(.button, #site-header .auth-entry,
    .outline-links .card-links > a, .contact-band a):not(.danger):not(.donate-nav-button):not(.donate-mobile):not(:disabled):not([aria-disabled="true"]):not([data-tone="danger"]):not([data-variant="danger"]):not(.warning):not(.critical) {
    background: var(--dkk-action-surface);
    background-image: none;
    color: var(--dkk-action-ink);
    border: 1.5px solid var(--dkk-action-border);
    border-radius: var(--ui-radius-button, 12px);
    box-shadow: var(--dkk-action-shadow);
    filter: none;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease,
      box-shadow 160ms ease, transform 160ms ease;
  }
  html[data-theme] body :is(.button, #site-header .auth-entry,
    .outline-links .card-links > a, .contact-band a):not(.danger):not(.donate-nav-button):not(.donate-mobile):not(:disabled):not([aria-disabled="true"]):not([data-tone="danger"]):not([data-variant="danger"]):not(.warning):not(.critical):hover {
    background: var(--dkk-action-hover);
    background-image: none;
    color: var(--dkk-action-ink);
    border-color: var(--dkk-action-border);
    box-shadow: 0 4px 14px rgba(17, 92, 176, .17);
    filter: none;
    text-decoration: none;
    transform: translateY(-1px);
  }
  /* Page-tool disclosures perform navigation tasks too. Give their outer cards
     the same border and surface; keep native <summary> semantics and panels. */
  html[data-theme] body .ux-page-tools > details {
    background: var(--dkk-action-surface);
    border: 1.5px solid var(--dkk-action-border);
    border-radius: var(--ui-radius-button, 12px);
    box-shadow: var(--dkk-action-shadow);
  }
  html[data-theme] body .ux-page-tools > details > summary {
    background: transparent;
    color: var(--dkk-action-ink);
  }
  html[data-theme] body .ux-page-tools > details:not([open]):hover {
    background: var(--dkk-action-hover);
    box-shadow: 0 4px 14px rgba(17, 92, 176, .17);
  }
  html[data-theme] body .ux-page-tools > details > summary:focus-visible {
    outline: 3px solid var(--theme-focus, #146BFA);
    outline-offset: 3px;
  }
  /* Legacy secondary/copy/explore rules use ID and nesting selectors; pin the
     shared treatment on those elements without modifying any actions or labels. */
  html[data-theme] body :is(.ux-page-tools > .button.secondary.exp-map-button,
    .social-share-actions > .button, .exp-start > .button.secondary,
    .exp-preparation-action > .button, #site-header .auth-entry):not(.danger):not(:disabled):not([aria-disabled="true"]) {
    background: var(--dkk-action-surface);
    background-image: none;
    color: var(--dkk-action-ink);
    border: 1.5px solid var(--dkk-action-border);
    box-shadow: var(--dkk-action-shadow);
    filter: none;
  }
  html[data-theme] body :is(.ux-page-tools > .button.secondary.exp-map-button,
    .social-share-actions > .button, .exp-start > .button.secondary,
    .exp-preparation-action > .button, #site-header .auth-entry):not(.danger):not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--dkk-action-hover);
    background-image: none;
    color: var(--dkk-action-ink);
    border-color: var(--dkk-action-border);
    filter: none;
    box-shadow: 0 4px 14px rgba(17, 92, 176, .17);
    transform: translateY(-1px);
  }
  /* Contact-guidance links are actual contextual actions. Keep the wording
     and target intact and give them the same accessible hit area. */
  html[data-theme] body :is(.outline-links .card-links > a, .contact-band a) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }
  html[data-theme] body :is(.button, #site-header .auth-entry,
    .outline-links .card-links > a, .contact-band a):focus-visible {
    outline: 3px solid var(--theme-focus, #146BFA);
    outline-offset: 3px;
  }
  /* Learning and courses: magenta linework replaces lime on dark backgrounds.
     The hierarchy, individual tiles, selected states and medical alerts remain. */
  html[data-theme="dark"] :is(.v20-education-accent,
    .v20-course-accent > .icon, .v20-course-accent .learning-icon,
    .education-tile > .icon, .education-tile .learning-icon,
    .hero.education .hero-symbol) {
    color: var(--dkk-education-magenta) !important;
  }
  html[data-theme="dark"] .learning-icon .learning-icon-accent {
    fill: var(--dkk-education-magenta);
  }
  html[data-theme="dark"] .hero.education .learning-icon .learning-icon-accent {
    fill: none;
    stroke: var(--dkk-education-magenta);
  }
  /* Scoped exclusively to existing Education routes, not cancer-care pages
     mentioning courses and not the administrative or public search scopes. */
  html[data-theme="dark"] #main:has(> .hero.education) {
    --dkk-action-surface: #16263A;
    --dkk-action-hover: #342642;
    --dkk-action-ink: #FF94E4;
    --dkk-action-border: #FF83DB;
    --dkk-action-shadow: 0 1px 9px rgba(234, 0, 255, .11);
  }
  html[data-theme="dark"] #main:has(> .hero.education)
    :is(.v08-event-marker, .v08-chip:not([aria-pressed="true"])):not(:disabled):not([aria-disabled="true"]) {
    background: #16263A;
    color: #FF94E4;
    border-color: #FF83DB;
  }
  html[data-theme="dark"] #main:has(> .hero.education)
    :is(.v08-event-marker, .v08-chip:not([aria-pressed="true"])):hover {
    background: #342642;
  }
  html[data-theme="dark"] #main:has(> .hero.education)
    :is(.v08-event-title, .v08-overline, .v08-course-card summary) {
    color: #FF94E4;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] body :is(.button, #site-header .auth-entry,
    .outline-links .card-links > a, .contact-band a) {
    transform: none !important;
    transition: none !important;
  }
}
html[data-motion="reduced"] body :is(.button, #site-header .auth-entry,
  .outline-links .card-links > a, .contact-band a) {
  transform: none !important;
  transition: none !important;
}
@media (forced-colors: active) {
  html[data-theme] body :is(.button, #site-header .auth-entry,
    .outline-links .card-links > a, .contact-band a):not(.danger):not(.donate-nav-button):not(.donate-mobile) {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
    box-shadow: none;
    filter: none;
  }
}
@media print {
  html[data-theme] body :is(.outline-links .card-links > a, .contact-band a) {
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #777777;
    box-shadow: none;
  }
}
