/* v0.39 — shared action hierarchy and unboxed dark-mode heroes.
   Presentation only. No routing, payment state, auth, approval or clinical change. */
:root {
  --donate-feature-start:#7240ED;
  --donate-feature-end:#B51B9B;
  --donate-feature-border:#A064FC;
  --discovery-surface:#EEF6FF;
  --discovery-hover:#DEEDFF;
  --discovery-ink:#0057B8;
  --discovery-border:#75A9DF;
  --cta-hover-shadow:0 0 0 2px rgba(135,93,238,.22),0 9px 23px rgba(89,46,182,.25);
}
html[data-theme="dark"] {
  --discovery-surface:#183650;
  --discovery-hover:#214561;
  --discovery-ink:#BEE5FF;
  --discovery-border:#5180AB;
}
/* One header action outside the collapsed mobile navigation; hidden on desktop. */
#site-header .donate-mobile {display:none;}
@media screen and (forced-colors:none) {
  html[data-theme] #site-header .primary-nav .donate-nav-button,
  html[data-theme] #site-header .donate-mobile {
    background:linear-gradient(120deg,var(--donate-feature-start),var(--donate-feature-end));
    color:#FFFFFF;border:1px solid var(--donate-feature-border);
    box-shadow:0 0 0 1px rgba(177,126,255,.20),0 7px 23px rgba(104,43,209,.29);
    text-decoration:none;
  }
  /* Match the interaction, without replacing the preparation button's blue identity. */
  html[data-theme] #site-header .primary-nav .donate-nav-button,
  html[data-theme] #site-header .donate-mobile,
  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"]) {
    transition:transform 160ms ease,filter 160ms ease,box-shadow 160ms ease;
  }
  html[data-theme] #site-header .primary-nav .donate-nav-button:hover,
  html[data-theme] #site-header .donate-mobile:hover {
    background:linear-gradient(120deg,var(--donate-feature-start),var(--donate-feature-end));
    color:#FFFFFF;border-color:var(--donate-feature-border);
  }
  html[data-theme] #site-header .primary-nav .donate-nav-button:hover,
  html[data-theme] #site-header .donate-mobile:hover,
  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 {
    transform:translateY(-2px);filter:brightness(1.06);box-shadow:var(--cta-hover-shadow);
  }
  html[data-theme] .ux-page-tools > .button.secondary.exp-map-button:not(:disabled):not([aria-disabled="true"]),
  html[data-theme] .social-share-actions > .button:not(.danger):not(:disabled):not([aria-disabled="true"]) {
    background:var(--discovery-surface);background-image:none;color:var(--discovery-ink);
    border:1px solid var(--discovery-border);box-shadow:none;filter:none;
    transition:background-color 160ms ease,border-color 160ms ease;
  }
  html[data-theme] .ux-page-tools > .button.secondary.exp-map-button:not(:disabled):not([aria-disabled="true"]):hover,
  html[data-theme] .social-share-actions > .button:not(.danger):not(:disabled):not([aria-disabled="true"]):hover {
    background:var(--discovery-hover);color:var(--discovery-ink);border-color:var(--discovery-ink);
    box-shadow:none;filter:none;transform:none;
  }
  /* Remove only introductory hero paint, not clinical warnings or content cards. */
  html[data-theme="dark"] :is(.hero,.photo-hero) {
    background:transparent;background-image:none;box-shadow:none;border-color:transparent;
  }
  /* The old generated bridge painted the cap and its tile the same green. */
  html[data-theme="dark"] .hero.education .hero-symbol {
    background:transparent;color:#D7F1FF;fill:none;border-radius:0;box-shadow:none;
  }
  html[data-theme="dark"] .hero.education .learning-icon .learning-icon-accent {fill:var(--learning-icon-accent,#B7F000);stroke:#D7F1FF;}
  html[data-theme="dark"] .hero-node:has(> .learning-icon) {background:#183650;color:#D7F1FF;}
  html[data-theme="dark"] .education-tile .learning-icon,
  html[data-theme="dark"] .v20-course-accent .learning-icon {color:#D7F1FF;}
  html[data-theme="dark"] .learning-icon {stroke:currentColor;}
  html[data-theme] #site-header .donate-nav-button:focus-visible {
    outline:3px solid var(--theme-focus,#006AF2);outline-offset:3px;
  }
}
@media screen and (max-width:850px) {
  #site-header .header-inner {column-gap:8px;}
  #site-header .donate-mobile {
    display:inline-flex;align-items:center;justify-content:center;gap:7px;
    min-height:44px;min-width:44px;padding:9px 12px;border-radius:var(--ui-radius-button,12px);
    font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap;flex:0 0 auto;
  }
  #site-header .donate-mobile .icon {width:18px;height:18px;flex:none;}
  #site-header .primary-nav .donate-nav-button {display:none;}
  #site-header :is(.auth-entry,.menu-toggle) {min-height:44px;flex:0 0 auto;}
}
@media screen and (max-width:600px) {
  /* Keep the accessible clinic name on the link; free space with the DK monogram. */
  #site-header .brand > span {display:none;}
  #site-header .brand {min-width:40px;min-height:44px;flex:1 1 auto;}
  #site-header .brand-mark {width:32px;height:32px;margin:0;}
  #site-header .header-inner {flex-wrap:wrap;gap:8px;}
  #site-header .auth-entry {padding-inline:10px;}
  #site-header .menu-toggle {padding-inline:10px;}
}
.nurse-publication-status {border:1px solid var(--theme-border,#b8cce0);border-radius:14px;padding:16px 18px;margin-block:16px;background:var(--theme-surface,#fff);}
.nurse-publication-status p:last-child {margin-bottom:0;}
.nurse-review-badge {font-size:12px;line-height:1.6;padding-block:8px;}
.ad-nursing-gate {margin-block:16px;}
.ad-nursing-gate ol {padding-left:22px;}
.ad-nursing-gate li {margin-block:6px;}
@media (prefers-reduced-motion:reduce) {
  html[data-theme] #site-header .donate-nav-button,
  html[data-theme] .exp-start > .button.secondary,
  html[data-theme] .exp-preparation-action > .button {transition:none!important;transform:none!important;}
}
@media (forced-colors:active) {
  html[data-theme] #site-header .donate-nav-button,
  html[data-theme] .social-share-actions .button,
  html[data-theme] .ux-page-tools > .exp-map-button {
    background:ButtonFace;color:ButtonText;border:1px solid ButtonText;box-shadow:none;filter:none;
  }
  html[data-theme="dark"] .hero.education .hero-symbol {background:Canvas;color:CanvasText;}
  html[data-theme="dark"] .learning-icon .learning-icon-accent {fill:Canvas;stroke:CanvasText;}
  #site-header .donate-nav-button:focus-visible {outline:3px solid Highlight;outline-offset:3px;}
}
@media print {#site-header .donate-mobile {display:none!important;}}
