/* Omid 3.1 — child-owned responsive navigation. Keep this after parent CSS. */
:root { --omhH:77px; }
@media(min-width:1025px) and (max-width:1399px) { :root { --omhH:128px; } }
@media(max-width:1024px) { :root { --omhH:73px; } }
@media(max-width:640px) { :root { --omhH:65px; } }
#omidH { background:#fff !important; }
#omidH .omidH__wrap {
  max-width:1440px; min-height:76px; gap:12px; padding:12px 20px;
}
#omidH .omidH__logo { min-width:112px; flex-shrink:0; }
#omidH .omidH__logo img { max-height:44px; max-width:132px; object-fit:contain; }
#omidH .omidH__link { min-height:44px; font-size:16px; line-height:1.5; padding:10px 12px; white-space:nowrap; }
#omidH .omidH__actions { gap:6px; flex-shrink:0; }
#omidH .omidH__lang, #omidH .omidH__icon { width:44px; min-width:44px; height:44px; min-height:44px; }
#omidH .omidH__btn { min-height:44px; padding:10px 18px !important; }
#omidH .omidH__burger { width:44px; height:44px; }
#omidH .omidH__link--hospital,
#omidH .omidH__link--hospital:hover,
#omidH .omidH__item:hover > .omidH__link--hospital,
#omidH .omidH__item:focus-within > .omidH__link--hospital { background:var(--omid-hospital-dark,#0f766e) !important; color:#fff !important; }
#omidH .omidH__item { position:static !important; }
@media(min-width:1025px) {
  #omidH .omidH__wrap { display:grid; grid-template-columns:auto minmax(0,1fr) auto; }
  #omidH .omidH__menu { flex-wrap:nowrap; justify-content:center; gap:2px; }
  #omidH .omidH__dd {
    position:absolute !important; top:100% !important; left:50% !important; right:auto !important;
    transform:translateX(-50%) !important; width:min(1120px,calc(100vw - 40px)) !important;
    max-width:calc(100vw - 40px) !important; min-width:0 !important;
    padding:20px 24px !important; box-sizing:border-box; border-radius:0 0 16px 16px;
  }
  /* Reset the parent's hospital flex / max-content / 3-column nested grid. */
  #omidH .omidH__dd .omidH__grid {
    display:grid !important; grid-template-columns:repeat(var(--n,3),minmax(0,1fr)) !important;
    gap:16px 24px !important; max-height:none !important;
    overflow:visible !important; scrollbar-gutter:auto;
  }
  #omidH .omidH__grid--2 { --n:2; }
  #omidH .omidH__grid--3 { --n:3; }
  #omidH .omidH__grid--4 { --n:4; }
  #omidH .omidH__grid--6 { --n:6; }
  #omidH .omidH__dd .omidH__grid > .omidH__col,
  #omidH .omidH__dd .omidH__col--brand {
    display:block !important; width:auto !important; min-width:0 !important; max-width:100%;
    flex:initial !important; padding:0 !important; border:0 !important;
    grid-template-columns:none !important;
  }
  #omidH .omidH__a { white-space:normal; overflow-wrap:break-word; min-height:40px; font-size:14.5px; padding:8px 10px; line-height:1.7; }
  #omidH .omidH__title { white-space:normal; font-size:15px; line-height:1.7; margin-bottom:8px; padding-bottom:8px; }
  #omidH .omidH__dd::before { height:10px; top:-10px; }
  #omidH .omidH__item:not(.isDesktopOpen) > .omidH__dd[aria-hidden="true"] {
    opacity:0 !important; visibility:hidden !important; pointer-events:none !important;
  }
  #omidH .omidH__item:not(.isDesktopOpen) > .omidH__link::after { transform:none; }
  #omidH.omidH--compact .omidH__wrap { grid-template-columns:auto minmax(0,1fr) auto; }
  #omidH.omidH--compact .omidH__nav { display:none !important; }
  #omidH.omidH--compact .omidH__burger { display:inline-flex !important; order:1; }
  #omidH.omidH--compact .omidH__logo { order:2; justify-content:center; min-width:0; }
  #omidH.omidH--compact .omidH__actions { order:3; }
  #omidH.omidH--compact .omidH__dd { display:none !important; }
}
/* Small desktops keep full-size navigation on its own row, not a tiny menu. */
@media(min-width:1025px) and (max-width:1399px) {
  #omidH .omidH__wrap { grid-template-columns:minmax(0,1fr) auto; min-height:127px; gap:8px 16px; padding-block:10px 0; }
  #omidH .omidH__logo { grid-column:1; grid-row:1; }
  #omidH .omidH__actions { grid-column:2; grid-row:1; }
  #omidH .omidH__nav { grid-column:1 / -1; grid-row:2; border-top:1px solid #e8eef0; padding-block:4px; }
  #omidH .omidH__menu { justify-content:center; gap:12px; }
  #omidH .omidH__link { font-size:16px; padding:10px 16px; }
  #omidH .omidH__dd { padding:16px 20px !important; }
  #omidH .omidH__dd .omidH__grid { gap:12px 18px !important; }
  #omidH .omidH__link--withLogo { padding-inline:14px !important; }
  #omidH.omidH--compact .omidH__wrap { padding-bottom:10px; }
  #omidH.omidH--compact .omidH__logo,
  #omidH.omidH--compact .omidH__actions { grid-column:auto; grid-row:auto; }
}
@media(max-width:1024px) {
  #omidH .omidH__wrap { min-height:68px; padding:10px 12px; gap:8px; }
  #omidH .omidH__logo { min-width:0; margin-inline-start:0; }
  #omidH .omidH__logo img { max-height:40px; max-width:116px; }
}
@media(max-width:640px) {
  #omidH .omidH__wrap { min-height:64px; padding:8px; }
  #omidH .omidH__logo img { max-width:100px; max-height:36px; }
  #omidH .omidH__btn { font-size:13px !important; padding:10px 12px !important; }
}
@media(max-width:360px) {
  #omidH .omidH__wrap { gap:5px; }
  #omidH .omidH__logo img { max-width:82px; }
  #omidH .omidH__btn { padding:10px !important; }
}
#omidH .omidH__link:focus-visible, #omidH .omidH__a:focus-visible,
#omidH .omidH__burger:focus-visible, #omidH .omidH__lang:focus-visible,
#omidH .omidH__icon:focus-visible, #omidM a:focus-visible, #omidM button:focus-visible {
  outline:3px solid #92842c; outline-offset:3px;
}
#omidM .omidM__panel { max-width:min(440px,calc(100vw - 16px)); height:100dvh; max-height:100dvh; overflow:hidden; padding-bottom:env(safe-area-inset-bottom,0px); }
#omidM .omidM__nav { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
#omidM .omidM__quick { display:flex !important; flex-wrap:wrap; gap:8px !important; }
#omidM .omidM__qBtn { flex:1 1 90px; min-height:44px !important; }
#omidM .omidM__qLang { flex:0 0 46px; }
#omidM .omidM__sub a { white-space:normal; overflow-wrap:break-word; min-height:44px; }
#omidM .omidM__acc { min-height:48px; }
#omidM .omidM__x { width:44px !important; height:44px !important; }
#omidM .omidM__acc--hospital, #omidM .omidM__hospSite { background:var(--omid-hospital-dark,#0f766e) !important; }
#omidM .omidM__groupTitle { color:#08716e; }
@media(prefers-reduced-motion:reduce) { #omidH *, #omidM * { transition:none !important; animation:none !important; } }

/* 3.1.1: balanced, natural-sized panels; no internal desktop scrollbar. */
@media(min-width:1025px) {
 #omidH .omidH__dd { overflow:visible!important; max-height:none!important; }
 #omidH .omidH__dd--hospital { width:min(1440px,calc(100vw - 32px))!important; max-width:calc(100vw - 32px)!important; padding:16px!important; }
 #omidH .omidH__dd--hospital .omidH__grid { gap:12px!important; }
 #omidH .omidH__dd--hospital .omidH__a { min-height:34px; padding:6px 7px; font-size:14px; line-height:1.5; }
 #omidH .omidH__dd--hospital .omidH__title { font-size:14px; line-height:1.5; padding-bottom:8px; margin-bottom:6px; }
 #omidH.omidH--document-menu { position:absolute!important; top:var(--omid-document-top,0px)!important; }
}

/* Combined navigation patch: true hospital-brand turquoise, one aligned split control. */
#omidH .omidH__hospitalToggle { display:none; }
#omidH .omidH__item--hospital > a.omidH__link--hospital,
#omidH .omidH__item--hospital:hover > a.omidH__link--hospital,
#omidH .omidH__item--hospital:focus-within > a.omidH__link--hospital,
#omidM .omidM__panel .omidM__acc--hospital,
#omidM .omidM__panel .omidM__hospSite {
  background:var(--turq,#0eb8b0)!important; color:#003638!important;
  -webkit-text-fill-color:#003638!important;
}
@media(min-width:1025px) {
  #omidH .omidH__item--hospital { display:flex; align-items:stretch; gap:0; }
  #omidH .omidH__item--hospital > a.omidH__link--hospital {
    display:inline-flex; align-items:center; height:48px; min-height:48px; box-sizing:border-box;
    margin:0!important; border:0!important; border-radius:0!important;
    border-start-start-radius:12px!important; border-end-start-radius:12px!important;
    box-shadow:none!important; filter:none!important; transform:none!important;
  }
  #omidH .omidH__link--hospital::after { display:none!important; }
  #omidH .omidH__item--hospital > button.omidH__hospitalToggle {
    appearance:none; display:inline-flex; align-items:center; justify-content:center;
    flex:0 0 44px; width:44px; height:48px; min-height:48px; box-sizing:border-box;
    margin:0; padding:0; border:0!important; border-radius:0!important;
    border-start-end-radius:12px!important; border-end-end-radius:12px!important;
    background:var(--turq,#0eb8b0)!important; color:#003638!important;
    -webkit-text-fill-color:#003638!important; box-shadow:none!important; filter:none!important;
    font-family:inherit; font-size:0; line-height:1; cursor:pointer; position:relative;
  }
  #omidH .omidH__hospitalToggle::after {
    content:""; position:absolute; inset-inline-start:0; top:12px; bottom:12px;
    width:1px; background:rgba(0,54,56,.18);
  }
  #omidH .omidH__hospitalToggle > span {
    display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px;
    font-size:0!important; line-height:0; transform:none!important;
  }
  #omidH .omidH__hospitalToggle > span::before {
    content:""; display:block; width:7px; height:7px; border-right:2px solid currentColor;
    border-bottom:2px solid currentColor; transform:translateY(-2px) rotate(45deg);
    transition:transform .15s ease;
  }
  #omidH .omidH__hospitalToggle[aria-expanded="true"] > span::before {
    transform:translateY(2px) rotate(225deg);
  }
  #omidH .omidH__item--hospital > a.omidH__link--hospital:hover { text-decoration:underline; text-underline-offset:4px; }
  #omidH .omidH__hospitalToggle:focus-visible { outline:3px solid #003638; outline-offset:2px; }
  #omidH.omidH--compact .omidH__hospitalToggle { display:none!important; }
}
@media(prefers-reduced-motion:reduce) { #omidH .omidH__hospitalToggle > span::before { transition:none; } }
