/* v0.28 — surgical header and catalogue-control refinements.
 * Preserve all existing route trees, palette tokens, clinical content and component behaviour.
 * Only the donation navigation CTA and sort/help/checkbox visual proportions change. */

/* A clearly labelled, restrained contribution CTA; no association with clinical eligibility. */
#site-header .primary-nav .donate-nav-button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:44px;
  padding:10px 14px;
  border:1px solid var(--blue);
  border-radius:var(--ui-radius-button,12px);
  color:var(--link);
  background:var(--pale-blue);
  font-size:12px;
  font-weight:700;
  line-height:1.3;
  white-space:nowrap;
  text-decoration:none;
}
#site-header .primary-nav .donate-nav-button:hover {
  background:#E0EFFF;
  border-color:var(--link);
  text-decoration:none;
}
#site-header .primary-nav .donate-nav-button:focus-visible {
  outline:3px solid var(--blue);
  outline-offset:3px;
}
/* Header Sign in inherits the same primary .button as "Start guided preparation".
 * It contains no arrow; authentication and demo restrictions remain unchanged. */
#site-header .auth-entry { white-space:nowrap; }

/* The compact alphabetical-sort row should not inherit oversized decorative marks. */
#catalogue-search .filter-toggles:has(#sort-filter) { gap:8px 12px; align-items:center; }
#catalogue-search .filter-toggles label:has(#sort-filter) { gap:8px; min-width:0; }
#main #catalogue-search #sort-filter {
  min-height:44px;
  width:auto;
  min-width:136px;
  font-size:13px;
  line-height:1.3;
  padding:8px 30px 8px 12px;
}
/* Keep the 44px help-button target but render its visible question mark as a quiet
 * 28px circle. No change to tooltip, keyboard focus or help text. */
#catalogue-search .filter-toggles .ui-help-trigger {
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  padding:0;
  border:1px solid transparent;
  border-radius:50%;
  background:radial-gradient(circle, var(--pale-blue) 0 13px, transparent 13.5px);
  font-size:12px;
  font-weight:700;
  line-height:1;
}
/* Checkbox glyphs become proportionate; associated labels still provide a >=44px target. */
#main #catalogue-search .filter-toggles input[type="checkbox"] {
  width:16px;
  height:16px;
  min-width:16px;
  min-height:16px;
  padding:0;
  flex:none;
}
/* Allow the original Contact / Location labels to remain legible after adding Donate. */
#site-header .header-utilities > a { white-space:nowrap; flex-shrink:0; }
@media (min-width:1281px) {
  #site-header .primary-nav { gap:9px; }
  #site-header .primary-nav a:not(.donate-nav-button) { padding-inline:9px; }
  #site-header .header-utilities { gap:9px; }
  #site-header .header-search { width:150px; flex:0 0 150px; }
}
/* Compact the header gracefully before the existing mobile-navigation breakpoint. */
@media (min-width:851px) and (max-width:1280px) {
  #site-header .header-search { display:none; }
  #site-header .header-inner { gap:14px; }
  #site-header .primary-nav { gap:6px; }
  #site-header .primary-nav a { padding-inline:9px; }
}
@media (max-width:850px) {
  #site-header .primary-nav .donate-nav-button { align-self:flex-start; padding:10px 14px; }
}
@media (max-width:600px) {
  /* Preserve a >=16px native select font to avoid mobile auto-zoom. */
  #main #catalogue-search #sort-filter { font-size:16px; }
}
@media (forced-colors:active) {
  #site-header .primary-nav .donate-nav-button,
  #catalogue-search .filter-toggles .ui-help-trigger { border:1px solid currentColor; }
}
@media print { #site-header .primary-nav .donate-nav-button { display:none; } }
