/* MEDIPHARM RC2 / Wave 2 — taxonomy-backed global clinical book navigation.
   Single owner: Super App canonical header; no Theme overrides or hardcoded hrefs. */
.syh-header .syh-specialty-nav, .syh-header .syh-specialty-nav * {box-sizing:border-box}
.syh-header .syh-specialty-nav {position:relative;z-index:14;background:rgba(250,253,255,.98);border-top:1px solid rgba(29,90,132,.07);border-bottom:1px solid rgba(29,90,132,.09);color:#23445e}
.syh-header .syh-specialty-nav-inner {display:flex;align-items:center;gap:clamp(12px,1.5vw,24px);min-height:43px;min-width:0}
.syh-header .syh-specialty-nav a {color:inherit;text-decoration:none}
.syh-header .syh-specialty-library-link {font-weight:800;font-size:13px;color:#1367a0;white-space:nowrap;flex:0 0 auto}
.syh-header .syh-specialty-nav-featured {display:flex;align-items:center;gap:clamp(13px,1.7vw,25px);min-width:0;flex:1;scrollbar-width:none;overflow-x:auto;overscroll-behavior-x:contain}
.syh-header .syh-specialty-nav-featured::-webkit-scrollbar {display:none}
.syh-header .syh-specialty-feature-link {display:inline-flex;align-items:center;min-height:41px;flex:0 0 auto;white-space:nowrap;font-size:13px;font-weight:680;border-bottom:2px solid transparent;color:#315068}
.syh-header .syh-specialty-feature-link:hover,.syh-header .syh-specialty-feature-link:focus-visible {color:#0875b6;border-color:#1887c3}
.syh-header .syh-specialty-dropdown {position:relative;flex:0 0 auto;min-width:0}
.syh-header .syh-specialty-dropdown > summary {display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 11px;color:#1569a1;font-weight:730;font-size:13px;cursor:pointer;list-style:none;border:1px solid rgba(28,108,155,.15);background:linear-gradient(180deg,#fff,#f0f8ff);border-radius:10px;white-space:nowrap}
.syh-header .syh-specialty-dropdown > summary::-webkit-details-marker {display:none}
.syh-header .syh-specialty-dropdown[open] > summary {background:#eaf5fc}
.syh-header .syh-specialty-mega {position:absolute;right:0;top:calc(100% + 10px);width:min(890px,calc(100vw - 42px));max-height:min(70vh,660px);display:flex;flex-direction:column;gap:12px;overflow:hidden;padding:20px 21px;border-radius:18px;border:1px solid rgba(32,100,145,.16);background:rgba(255,255,255,.99);box-shadow:0 22px 56px rgba(20,55,92,.16)}
.syh-header .syh-specialty-mega-head {display:flex;gap:20px;justify-content:space-between;align-items:center}
.syh-header .syh-specialty-mega-head strong {font-size:18px;color:#143b58}
.syh-header .syh-specialty-mega-head a {color:#0e79c0;font-size:13px;font-weight:680}
.syh-header .syh-specialty-search-label {display:flex;align-items:center;gap:12px;font-size:12px;color:#546d80}
.syh-header .syh-specialty-search-label input {flex:1;min-width:0;width:100%;max-width:100%;height:39px;font:inherit;font-size:14px;padding:8px 11px;border-radius:10px;border:1px solid rgba(41,116,163,.19);background:#f9fcff;color:#153b56}
.syh-header .syh-specialty-mega-list {column-count:4;column-gap:10px;overflow-y:auto;overscroll-behavior:contain;padding:4px 2px 8px;scrollbar-width:thin}
.syh-header .syh-specialty-mega-list a {display:flex;break-inside:avoid;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px 8px calc(9px + var(--syh-specialty-depth,0) * 7px);border-radius:7px;color:#27445f;font-size:13px;line-height:1.38}
.syh-header .syh-specialty-mega-list a:hover,.syh-header .syh-specialty-mega-list a:focus-visible {background:#edf7fe;color:#126da5}
.syh-header .syh-specialty-mega-list small {color:#7090a6;font-size:11px}
.syh-header .syh-specialty-mega [data-syh-specialty-empty] {margin:12px 0;color:#617489}
.syh-header .syh-specialties-in-menu {border-bottom:1px solid rgba(35,94,130,.12)}
.syh-header .syh-specialties-in-menu > details > summary {display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;min-height:44px;padding:11px 4px;color:inherit;font-size:14px;font-weight:750}
.syh-header .syh-specialties-in-menu > details > summary::-webkit-details-marker {display:none}
.syh-header .syh-specialties-mobile-links {display:grid;max-height:48vh;overflow-y:auto;overscroll-behavior:contain;background:rgba(238,247,251,.55);border-radius:12px;padding:8px}
.syh-header .syh-specialties-mobile-links a {display:block;padding:10px calc(12px + var(--syh-specialty-depth,0) * 8px);color:#1c4b6d;font-size:13px;line-height:1.35;border-bottom:1px solid rgba(34,108,154,.07)}
.syh-header .syh-specialties-mobile-links a:hover {background:#e6f3fd}
.syh-header a:focus-visible,.syh-header summary:focus-visible,.syh-header input:focus-visible {outline:2px solid #097bd1;outline-offset:2px}
@media (max-width: 1180px) {
  .syh-header .syh-specialty-nav-inner {gap:10px}
  .syh-header .syh-specialty-nav-featured {gap:16px}
  .syh-header .syh-specialty-mega-list {column-count:3}
}
@media (max-width: 900px) {
  .syh-header .syh-specialty-nav-inner {min-height:39px}
  .syh-header .syh-specialty-feature-link {min-height:39px;font-size:12px}
  .syh-header .syh-specialty-library-link {font-size:12px}
  .syh-header .syh-specialty-dropdown > summary {font-size:12px;padding:6px 8px}
  .syh-header .syh-specialty-mega-list {column-count:2}
}
@media (max-width: 767px) {
  .syh-header .syh-specialty-nav {display:none!important}
  .syh-header .syh-specialties-in-menu {display:block}
}
@media (min-width: 768px) {.syh-header .syh-specialties-in-menu {display:none}}
:where(html.tvm-dark,html.nah-sdp-dark-mode,html.nah-sdp-night-active,html[data-theme="dark"]) .syh-header .syh-specialty-nav {background:rgba(15,29,46,.97);color:#c3d9e9;border-color:rgba(126,168,195,.16)}
:where(html.tvm-dark,html.nah-sdp-dark-mode,html.nah-sdp-night-active,html[data-theme="dark"]) .syh-header .syh-specialty-library-link,:where(html.tvm-dark,html.nah-sdp-dark-mode,html.nah-sdp-night-active,html[data-theme="dark"]) .syh-header .syh-specialty-feature-link {color:#c3d9e9}
:where(html.tvm-dark,html.nah-sdp-dark-mode,html.nah-sdp-night-active,html[data-theme="dark"]) .syh-header .syh-specialty-dropdown > summary,:where(html.tvm-dark,html.nah-sdp-dark-mode,html.nah-sdp-night-active,html[data-theme="dark"]) .syh-header .syh-specialty-mega {background:#152b3c;color:#e5f2fc;border-color:#34546c}
:where(html.tvm-dark,html.nah-sdp-dark-mode,html.nah-sdp-night-active,html[data-theme="dark"]) .syh-header .syh-specialty-mega-list a,:where(html.tvm-dark,html.nah-sdp-dark-mode,html.nah-sdp-night-active,html[data-theme="dark"]) .syh-header .syh-specialty-mega-head strong {color:#e5f2fc}
:where(html.tvm-dark,html.nah-sdp-dark-mode,html.nah-sdp-night-active,html[data-theme="dark"]) .syh-header .syh-specialty-search-label input {background:#122132;color:#e5f2fc;border-color:#3a5a72}
/* Ensure HTML hidden attribute wins against flex display during live filtering. */
.syh-header .syh-specialty-mega-list a[hidden] {display:none!important}
