/* Daniel Kafka Klinik v0.33 — coherent action palette (presentation only).
 * Loaded after the v0.32 light/dark theme. Semantic actions are cobalt / ocean teal.
 * No impact on clinical warning meanings, disabled buttons, selected-state logic,
 * keyboard interactions, permissions or the #FFE600 remembrance light.
 */
:root {
  --action-primary-start: #246FD8;
  --action-primary-end: #1857C2;
  --action-primary-ink: #FFFFFF;
  --action-secondary-surface: #DFF4FA;
  --action-secondary-hover: #C8EAF4;
  --action-secondary-ink: #0C526A;
  --action-secondary-stroke: #389EB8;
  --action-quiet-surface: #EAEEFC;
  --action-quiet-hover: #DCE5FC;
  --action-quiet-ink: #354C87;
  --action-quiet-stroke: #A4B8E4;
  --action-feature-start: #0B7382;
  --action-feature-end: #095B74;
  --action-feature-ink: #FFFFFF;
  /* v0.36: neon-pink Donate in light mode; dark-mode teal remains unchanged. */
  --action-donate: #FF08E8;
  --action-donate-hover: #EE07D9;
  --action-donate-ink: #171628;
  --action-icon-surface: #E5F2FF;
  --action-icon-ink: #195A96;
  --action-icon-stroke: #B2D4F2;
  --action-elevation: 0 5px 18px #0B4D9022;
}
html[data-theme="dark"] {
  --action-primary-start: #2369D5;
  --action-primary-end: #174FBC;
  --action-primary-ink: #FFFFFF;
  --action-secondary-surface: #18445B;
  --action-secondary-hover: #205770;
  --action-secondary-ink: #D0F7FB;
  --action-secondary-stroke: #47B9CD;
  --action-quiet-surface: #253650;
  --action-quiet-hover: #314463;
  --action-quiet-ink: #E0E9FF;
  --action-quiet-stroke: #637BAF;
  --action-feature-start: #0C7085;
  --action-feature-end: #0A5771;
  --action-feature-ink: #FFFFFF;
  --action-donate: #4AD3C8;
  --action-donate-hover: #79E5DC;
  --action-donate-ink: #092A36;
  --action-icon-surface: #183650;
  --action-icon-ink: #BEE5FF;
  --action-icon-stroke: #416E95;
  --action-elevation: 0 8px 20px #010A1745;
}
@media screen and (forced-colors: none) {
  /* Applied across public, account, nursing, editor, commerce and administrator shells.
     Deliberately do not recolour disabled, danger or critical-action controls. */
  html[data-theme] .button.secondary:not(.danger):not(:disabled):not([aria-disabled="true"]) {
    background: var(--action-secondary-surface);
    color: var(--action-secondary-ink);
    border-color: var(--action-secondary-stroke);
    box-shadow: var(--action-elevation);
  }
  html[data-theme] .button.secondary:not(.danger):not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--action-secondary-hover);
    border-color: var(--action-secondary-stroke);
  }
  /* Low-priority actions remain quiet, but no longer look like flat grey blocks. */
  html[data-theme] .button.subtle:not(.danger):not(:disabled):not([aria-disabled="true"]) {
    background: var(--action-quiet-surface);
    color: var(--action-quiet-ink);
    border-color: var(--action-quiet-stroke);
  }
  html[data-theme] .button.subtle:not(.danger):not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--action-quiet-hover);
  }
  /* The two controls called out in the screenshot have intentional hierarchy.
     Explore = ocean-teal; preparation = high-contrast cobalt. */
  html[data-theme] .ux-page-tools > .button.secondary.exp-map-button:not(:disabled):not([aria-disabled="true"]) {
    background: linear-gradient(125deg,var(--action-feature-start),var(--action-feature-end));
    color: var(--action-feature-ink);
    border-color: var(--action-secondary-stroke);
    box-shadow: var(--action-elevation);
  }
  html[data-theme] .ux-page-tools > .button.secondary.exp-map-button:not(:disabled):not([aria-disabled="true"]):hover {
    filter: brightness(1.09);
  }
  html[data-theme] .exp-start > .button.secondary:not(:disabled):not([aria-disabled="true"]),
  html[data-theme] .exp-preparation-action > .button:not(:disabled):not([aria-disabled="true"]),
  html[data-theme] #site-header .auth-entry:not(:disabled):not([aria-disabled="true"]) {
    background: linear-gradient(120deg,var(--action-primary-start),var(--action-primary-end));
    color: var(--action-primary-ink);
    border-color: var(--action-primary-end);
    box-shadow: var(--action-elevation);
  }
  html[data-theme] .exp-start > .button.secondary:not(:disabled):not([aria-disabled="true"]):hover,
  html[data-theme] .exp-preparation-action > .button:not(:disabled):not([aria-disabled="true"]):hover,
  html[data-theme] #site-header .auth-entry:not(:disabled):not([aria-disabled="true"]):hover {
    filter: brightness(1.10);
  }
  /* Donation action: luminous magenta in light mode, teal in dark mode.
     It still opens only the existing contribution page (payments remain disabled). */
  html[data-theme] #site-header .primary-nav .donate-nav-button {
    background: var(--action-donate);
    color: var(--action-donate-ink);
    border-color: var(--action-donate);
    box-shadow: var(--action-elevation);
  }
  html[data-theme] #site-header .primary-nav .donate-nav-button:hover {
    background: var(--action-donate-hover);
    border-color: var(--action-donate-hover);
  }
  /* Quiet icon/tool controls are blue-tinted rather than grey. */
  html[data-theme] .appearance-trigger,
  html[data-theme] .appearance-mobile-open,
  html[data-theme] .appearance-reset,
  html[data-theme] .appearance-close {
    background: var(--action-icon-surface);
    color: var(--action-icon-ink);
    border-color: var(--action-icon-stroke);
  }
  html[data-theme] .appearance-trigger:hover,
  html[data-theme] .appearance-mobile-open:hover,
  html[data-theme] .appearance-reset:hover,
  html[data-theme] .appearance-close:hover {
    background: var(--action-secondary-hover);
    color: var(--action-secondary-ink);
  }
  /* Keyboard focus is always visible regardless of the new action colours. */
  html[data-theme] :is(.button.secondary,.button.subtle,.exp-map-button,.donate-nav-button,.appearance-trigger):focus-visible {
    outline: 3px solid var(--theme-focus);
    outline-offset: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] :is(.button.secondary,.button.subtle,.exp-map-button,.donate-nav-button) {
    transition: none !important;
  }
}
@media (forced-colors: active) {
  /* Respect the operating system's contrast palette rather than painted gradients. */
  html[data-theme] .button.secondary,
  html[data-theme] .ux-page-tools > .button.secondary.exp-map-button,
  html[data-theme] .exp-start > .button,
  html[data-theme] #site-header .primary-nav .donate-nav-button {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
    box-shadow: none;
    filter: none;
  }
}
