/* v0.56 — unified DK brand, structured menu and centred expandable search.
   Appearance, clinical warning, role checks and donation styles are unchanged. */
:root{--dk56-panel:rgba(255,255,255,.985);--dk56-card:#F1F6FC;--dk56-line:#D8E4F0;--dk56-text:#172C45;--dk56-muted:#556A81;--dk56-accent:#0758BC;--dk56-card-hover:#E8F2FC;--dk56-shadow:0 22px 65px rgba(14,34,58,.17)}
html[data-theme="dark"]{--dk56-panel:#15243A;--dk56-card:#1B2E46;--dk56-line:#39516D;--dk56-text:#F4F8FF;--dk56-muted:#BACDE2;--dk56-accent:#B0D9FF;--dk56-card-hover:#29415E;--dk56-shadow:0 24px 70px rgba(0,0,0,.35)}
html[data-theme="light"] .dk56-logo-dark,html[data-theme="dark"] .dk56-logo-light{display:none!important}
html[data-theme="dark"] .dk56-logo-dark,html[data-theme="light"] .dk56-logo-light{display:block!important}
/* All shell logos use the same high-contrast mark. */
.site-header .dk56-brand-image{display:inline-flex;flex:0 0 72px;align-items:center;justify-content:center;width:72px;height:49px;overflow:visible}
.site-header .dk56-brand-image img{display:block;width:72px;height:72px;object-fit:contain;max-width:none;flex:none}
.site-header .dk56-brand-type{display:flex;flex-direction:column;min-width:0;gap:2px}
@media screen and (forced-colors:none){
 html[data-theme] body .site-header a.dk56-brand,
 html[data-theme] body[data-landing="cinematic"] #site-header a.dk56-brand{display:inline-flex;align-items:center;min-height:48px;gap:8px;flex:0 0 auto;color:var(--dk54-header-ink)!important;text-decoration:none}
 html[data-theme] body .site-header a.dk56-brand:hover{color:var(--dk54-header-accent)!important}
 html[data-theme] body #site-header .dk56-quick-nav{display:flex;flex:1 1 auto;min-width:0;justify-content:center;align-items:center;gap:2px}
 html[data-theme] body #site-header .dk56-quick-nav a{display:inline-flex;align-items:center;min-height:44px;max-width:220px;padding:8px clamp(7px,.78vw,12px);font-size:12px;font-weight:650;line-height:1.3;text-decoration:none;color:var(--dk54-header-ink)!important;border-radius:10px;border:1px solid transparent;white-space:nowrap}
 html[data-theme] body #site-header .dk56-quick-nav a:hover{background:var(--dk54-header-hover);color:var(--dk54-header-accent)!important}
 html[data-theme] body #site-header .dk56-quick-nav a[aria-current="page"]{background:var(--dk54-header-active);color:var(--dk54-header-accent)!important}
 html[data-theme] body #site-header .dk56-donate-desktop{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-height:44px;padding:11px 17px;text-decoration:none}
 html[data-theme] body #site-header .donate-mobile{display:none!important}
 html[data-theme] body #site-header #header-search-toggle{display:inline-flex!important;flex:0 0 44px;align-items:center;justify-content:center;min-width:44px;width:44px;height:44px;min-height:44px;background:transparent!important;color:var(--dk54-header-ink)!important;border:1px solid var(--dk54-header-border)!important;border-radius:12px!important;padding:10px!important;box-shadow:none!important;cursor:pointer}
 html[data-theme] body #site-header #header-search-toggle:hover,
 html[data-theme] body #site-header #header-search-toggle[aria-expanded="true"]{background:var(--dk54-header-hover)!important;color:var(--dk54-header-accent)!important}
 html[data-theme] body #site-header #header-search-toggle svg{width:21px;height:21px}
 html[data-theme] body #site-header #menu-toggle{display:inline-flex!important;flex:0 0 auto;gap:9px;align-items:center;justify-content:center;min-height:44px;width:auto;min-width:78px;padding:10px 13px!important;border:1px solid var(--dk54-header-border)!important;border-radius:12px!important;background:transparent!important;color:var(--dk54-header-ink)!important;box-shadow:none!important;font-size:12px!important;text-decoration:none;cursor:pointer}
 html[data-theme] body #site-header #menu-toggle::before{content:none!important}
 html[data-theme] body #site-header #menu-toggle>span{display:inline!important;font-size:13px!important}
 html[data-theme] body #site-header #menu-toggle:hover,
 html[data-theme] body #site-header #menu-toggle[aria-expanded="true"]{background:var(--dk54-header-hover)!important;color:var(--dk54-header-accent)!important}
 html[data-theme] body #site-header .dk56-header-inner{overflow:visible!important}
 /* Structured menu, layered over content but never over modal dialogs. */
 html[data-theme] body #site-header #primary-nav.dk56-mega-menu{display:none!important;position:absolute!important;top:calc(100% + var(--dk56-menu-offset,12px))!important;left:50%!important;right:auto!important;transform:translateX(-50%);width:min(990px,calc(100vw - 32px))!important;max-height:var(--dk56-menu-max-height,min(76dvh,740px))!important;overflow-y:auto!important;overscroll-behavior:contain;z-index:120!important;margin:0!important;padding:clamp(20px,2.8vw,32px)!important;border:1px solid var(--dk56-line)!important;border-radius:22px!important;background:var(--dk56-panel)!important;color:var(--dk56-text)!important;box-shadow:var(--dk56-shadow)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);align-items:stretch;gap:0;white-space:normal}
 html[data-theme] body #site-header #primary-nav.dk56-mega-menu.open{display:block!important}
 .dk56-menu-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:22px}
 .dk56-menu-heading h2{font-size:clamp(23px,2.1vw,32px);font-weight:700;line-height:1.2;color:var(--dk56-text);letter-spacing:-.035em;margin:0}
 .dk56-eyebrow{font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:750;color:var(--dk56-accent);margin:0 0 10px}
 .dk56-menu-close{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:9px 12px;border-radius:11px;color:var(--dk56-text);border:1px solid var(--dk56-line);background:transparent;cursor:pointer}
 .dk56-menu-close>span{font-size:21px;line-height:1}
 .dk56-menu-pathways{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 html[data-theme] body #site-header .dk56-menu-path{display:flex;align-items:flex-start;gap:14px;min-width:0;min-height:132px;padding:22px 18px;border:1px solid var(--dk56-line);border-radius:16px;background:var(--dk56-card);color:var(--dk56-text)!important;text-decoration:none;transition:background-color .16s ease,border-color .16s ease}
 html[data-theme] body #site-header .dk56-menu-path:hover{background:var(--dk56-card-hover);border-color:var(--dk56-accent)}
 .dk56-menu-number{font-size:11px;color:var(--dk56-accent);font-weight:750;letter-spacing:.06em;flex:none;padding-top:2px}
 .dk56-menu-path-body{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px}
 .dk56-menu-path-body strong{font-size:clamp(16px,1.5vw,20px);font-weight:700;letter-spacing:-.025em;line-height:1.2}
 .dk56-menu-path-body small{font-size:11px;letter-spacing:.05em;text-transform:uppercase;font-weight:750;color:var(--dk56-accent)}
 .dk56-menu-path-body>span{font-size:13px;line-height:1.55;color:var(--dk56-muted)}
 .dk56-menu-arrow{color:var(--dk56-accent);font-size:20px;font-weight:500}
 .dk56-menu-bottom{display:grid;grid-template-columns:1.45fr 1fr;gap:26px;margin-top:22px;padding-top:22px;border-top:1px solid var(--dk56-line)}
 .dk56-menu-bottom h3{color:var(--dk56-text);font-size:13px;letter-spacing:.03em;margin:0 0 13px}
 .dk56-menu-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 14px}
 html[data-theme] body #site-header .dk56-menu-list a{display:flex;min-height:42px;align-items:center;padding:8px 10px;border-radius:9px;color:var(--dk56-text)!important;font-size:13px!important;line-height:1.4;text-decoration:none;white-space:normal}
 html[data-theme] body #site-header .dk56-menu-list a:hover{background:var(--dk56-card-hover);color:var(--dk56-accent)!important}
 .dk56-menu-bottom p{font-size:12px;line-height:1.6;color:var(--dk56-muted);margin:12px 0 0}
 html[data-theme] body #site-header #primary-nav.dk56-mega-menu>.admin-nav-entry,
 html[data-theme] body #site-header #primary-nav.dk56-mega-menu>.appearance-mobile-open{display:inline-flex;margin:12px 10px 0 0;min-height:44px;align-items:center;padding:10px 15px;border:1px solid var(--dk56-line)!important;border-radius:11px;background:var(--dk56-card)!important;color:var(--dk56-text)!important;white-space:normal}
 /* Centred search occupies the header's middle until closed. */
 html[data-theme] body #site-header .dk56-header-inner[data-search-open="true"]>:not(.dk56-search-panel){visibility:hidden!important;pointer-events:none!important}
 html[data-theme] body #site-header #header-search.dk56-search-panel{position:absolute!important;inset:6px 8px!important;width:auto!important;min-width:0;z-index:150;display:flex!important;align-items:center;justify-content:center;gap:10px;padding:7px 12px!important;border:1px solid var(--dk56-line)!important;border-radius:13px!important;background:var(--dk56-panel)!important;color:var(--dk56-text)!important;box-shadow:none!important;margin:0!important;flex:none!important;transform:none!important}
 html[data-theme] body #site-header #header-search.dk56-search-panel[hidden]{display:none!important}
 .dk56-search-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--dk56-accent)}
 .dk56-search-icon svg{width:22px;height:22px}
 html[data-theme] body #site-header #header-search #header-query{display:block!important;flex:1 1 auto;min-width:0;width:100%;height:43px;min-height:43px;margin:0!important;padding:8px 12px;border:0!important;border-radius:9px;background:transparent!important;color:var(--dk56-text)!important;font-size:clamp(13px,1.2vw,16px)!important;box-shadow:none!important;outline:0!important}
 html[data-theme] body #site-header #header-search #header-query::placeholder{color:var(--dk56-muted)}
 html[data-theme] body #site-header #header-search #header-query:focus-visible{outline:2px solid var(--dk56-accent)!important;outline-offset:-1px!important}
 html[data-theme] body #site-header #header-search .dk56-search-submit{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 18px;border-radius:10px;border:1px solid #1B6DC6;background:#0A5CC0;color:#FFF;font-size:13px;font-weight:700;box-shadow:none;cursor:pointer;flex:none}
 html[data-theme="dark"] body #site-header #header-search .dk56-search-submit{background:#86115F;border-color:#DF74C2;color:#FFF}
 html[data-theme] body #site-header #header-search .dk56-search-close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:8px;border-radius:9px;border:1px solid var(--dk56-line);color:var(--dk56-text);background:transparent;font-size:27px;line-height:1;cursor:pointer}
 html[data-theme] body #site-header #header-search .dk56-search-close:hover{background:var(--dk56-card-hover)}
 html[data-theme] body #site-header :is(.dk56-menu-path,.dk56-menu-list a,.dk56-quick-nav a,.dk56-menu-close,.dk56-search-close,.dk56-search-submit):focus-visible{outline:3px solid var(--dk54-header-focus)!important;outline-offset:3px!important}
}
@media screen and (max-width:1250px) and (forced-colors:none){
 html[data-theme] body #site-header .dk56-quick-nav{display:none!important}
 html[data-theme] body #site-header .dk56-brand{flex:1 1 auto!important}
}
@media screen and (max-width:920px) and (forced-colors:none){
 html[data-theme] body #site-header .dk56-donate-desktop{display:none!important}
 html[data-theme] body #site-header .donate-mobile{display:inline-flex!important}
}
@media screen and (max-width:650px) and (forced-colors:none){
 html[data-theme] body #site-header .dk56-header-inner{min-height:64px!important}
 html[data-theme] body #site-header .dk56-brand-image{width:53px;height:42px;flex:0 0 53px}
 html[data-theme] body #site-header .dk56-brand-image img{width:58px;height:58px}
 html[data-theme] body #site-header .dk56-brand-type{display:none!important}
 html[data-theme] body #site-header #menu-toggle{width:44px!important;min-width:44px!important;padding:10px!important}
 html[data-theme] body #site-header #menu-toggle .dk56-menu-trigger-label{display:none!important}
 html[data-theme] body #site-header #primary-nav.dk56-mega-menu{top:calc(100% + var(--dk56-menu-offset,9px))!important;width:calc(100vw - 24px)!important;border-radius:17px!important;padding:20px!important;max-height:var(--dk56-menu-max-height,calc(100dvh - 95px))!important}
 .dk56-menu-pathways,.dk56-menu-bottom,.dk56-menu-list{grid-template-columns:1fr}
 .dk56-menu-heading{gap:12px}
 .dk56-menu-heading h2{font-size:24px}
 html[data-theme] body #site-header .dk56-menu-path{min-height:0;padding:16px 14px}
 .dk56-menu-path-body>span{font-size:12px}
 html[data-theme] body #site-header .dk56-menu-bottom{gap:17px}
 html[data-theme] body #site-header #header-search.dk56-search-panel{gap:5px;padding:6px!important}
 html[data-theme] body #site-header #header-search #header-query{font-size:13px!important;padding:7px 4px}
 html[data-theme] body #site-header #header-search .dk56-search-submit{font-size:12px;padding:10px 11px;min-height:42px}
 html[data-theme] body #site-header #header-search .dk56-search-close{width:37px;min-width:37px;height:42px}
 .dk56-search-icon{display:none}
}
@media screen and (max-width:380px) and (forced-colors:none){
 html[data-theme] body #site-header .auth-entry{display:none!important}
 html[data-theme] body #site-header .dk56-header-inner{gap:6px!important}
}
@media(prefers-reduced-motion:reduce){.dk56-mega-menu *,.dk56-search-panel *{transition:none!important}}
@media(forced-colors:active){
 #site-header .dk56-mega-menu{border:2px solid CanvasText}
 .dk56-menu-path{border:1px solid ButtonText}
 #site-header #header-search{background:Canvas;color:CanvasText}
 #site-header .dk56-search-submit{background:ButtonFace;color:ButtonText;border:1px solid ButtonText}
}
@media print{#site-header .dk56-mega-menu,#site-header .dk56-search-panel{display:none!important}}
/* Legacy .header-search positioned all buttons over the same right edge.
   Search actions must stay in normal flex flow inside the expanded field. */
@media screen and (forced-colors:none){
 html[data-theme] body #site-header #header-search.dk56-search-panel :is(.dk56-search-submit,.dk56-search-close){
   position:static!important;top:auto!important;right:auto!important;left:auto!important;
   transform:none!important;opacity:1!important;visibility:visible!important;
 }
 html[data-theme] body #site-header #header-search.dk56-search-panel .dk56-search-submit{color:#FFFFFF!important;background:#0A5CC0!important;min-width:76px}
 html[data-theme="dark"] body #site-header #header-search.dk56-search-panel .dk56-search-submit{background:#86115F!important;color:#FFFFFF!important}
 html[data-theme] body #site-header #header-search.dk56-search-panel .dk56-search-close{color:var(--dk56-text)!important;background:transparent!important}
}

/* Final compatibility rules: retain the original violet Donate identity and
   protect the new logo from legacy mobile .brand>span hiding rules. */
@media screen and (forced-colors:none){
 html[data-theme] body #site-header .dk56-brand > .dk56-brand-image,
 html[data-theme] body .site-header .dk56-brand > .dk56-brand-image{display:inline-flex!important;visibility:visible!important}
 html[data-theme] body #site-header .dk56-donate-desktop{
   display:inline-flex;align-items:center;justify-content:center;
   background:linear-gradient(120deg,var(--donate-feature-start,#7240ED),var(--donate-feature-end,#B51B9B))!important;
   color:#FFFFFF!important;border:1px solid var(--donate-feature-border,#A064FC)!important;
   border-radius:12px;text-decoration:none;font-weight:700;
   box-shadow:0 0 0 1px rgba(177,126,255,.20),0 7px 23px rgba(104,43,209,.29);
 }
 html[data-theme] body #site-header .dk56-donate-desktop:hover{filter:brightness(1.06)}
 html[data-theme] body #site-header .dk56-appearance-slot{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;margin:0!important}
 html[data-theme] body #site-header .dk56-appearance-slot>.appearance-trigger{margin:0;width:44px;min-width:44px;min-height:44px}
 html[data-theme] body #site-header .dk56-menu-path,
 html[data-theme] body #site-header .dk56-menu-path *{white-space:normal!important;overflow-wrap:break-word}
}
@media screen and (max-width:1250px) and (forced-colors:none){
 html[data-theme] body #site-header .dk56-appearance-slot{display:none!important}
}
@media screen and (max-width:920px) and (forced-colors:none){
 html[data-theme] body #site-header .dk56-donate-desktop{display:none!important}
}
@media screen and (max-width:650px) and (forced-colors:none){
 html[data-theme] body #site-header .dk56-brand > .dk56-brand-type{display:none!important}
}
@media(forced-colors:active){
 #site-header #primary-nav.dk56-mega-menu:not(.open){display:none!important}
 #site-header #primary-nav.dk56-mega-menu.open{display:block!important}
}
