/* Unified search scope — small, responsive, accessible choices matching DrGraphic. */
.dg-search-choice{display:flex;align-items:center;justify-content:flex-start;gap:7px;direction:rtl;margin:0 0 10px;flex-wrap:wrap;font-family:Kalameh,KalamehDG,Tahoma,sans-serif}
.dg-search-choice__item{display:inline-flex;align-items:center;justify-content:center;position:relative;cursor:pointer;margin:0;padding:0}
.dg-search-choice__item input{position:absolute;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;inset:0}
.dg-search-choice__item span{display:inline-flex;align-items:center;justify-content:center;min-height:33px;padding:6px 15px;border-radius:10px;border:1px solid #e5dff6;background:#fff;color:#5e5870;font-size:12px;font-weight:600;box-sizing:border-box;transition:border-color .15s,background-color .15s,color .15s,box-shadow .15s}
.dg-search-choice__item:hover span{color:#533ae8;border-color:#baacf9;background:#faf9ff}
.dg-search-choice__item input:checked+span{color:#533ae8;background:#f2efff;border-color:#533ae8;box-shadow:0 0 0 1px rgba(83,58,232,.07)}
.dg-search-choice__item input:focus-visible+span{outline:2px solid #533ae8;outline-offset:2px}
.dg404__search .dg-search-choice{width:100%;margin-bottom:12px}
.dgbh-search .dg-search-choice,.dgph-search .dg-search-choice{margin-bottom:9px}
@media(max-width:600px){.dg-search-choice{gap:6px}.dg-search-choice__item span{padding:6px 12px;min-height:34px}}

/* Unified live search panel and consistent spacing across search locations. */
.dg-unified-search{position:relative!important;min-width:0}
.dg-unified-search .dg-search-choice{margin:0 0 9px;gap:7px}
.dg-unified-search .dg-search-choice__item span{min-height:34px;padding:6px 13px;font-family:KalamehDG,Tahoma,sans-serif;font-size:12px}
.dg-unified-results{position:absolute;top:calc(100% + 9px);right:0;left:0;z-index:9999;max-width:100%;border:1px solid #e7e0fa;border-radius:13px;background:#fff;box-shadow:0 16px 38px rgba(39,25,87,.16);overflow:hidden;text-align:right;direction:rtl;font-family:KalamehDG,Tahoma,sans-serif}
.dg-unified-results[hidden]{display:none!important}
.dg-unified-results__heading{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 13px;border-bottom:1px solid #eeeaf8;background:#faf9ff;color:#302842;font-size:12px}
.dg-unified-results__close{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0!important;margin:0!important;min-height:28px!important;border:1px solid #e6e0f5!important;border-radius:8px!important;background:#fff!important;color:#655c83!important;font:400 20px/1 Arial,sans-serif!important;cursor:pointer}
.dg-unified-results__close:hover{background:#f2efff!important;border-color:#a99bf0!important;color:#533ae8!important}
.dg-unified-results__body{max-height:min(410px,55vh);overflow:auto}
.dg-unified-results__item{display:flex;gap:11px;align-items:center;padding:9px 12px;border-bottom:1px solid #f1eef8;color:#29253b!important;text-decoration:none!important;background:#fff;min-height:64px}
.dg-unified-results__item:hover,.dg-unified-results__item:focus-visible{background:#f7f5ff!important;color:#533ae8!important;outline:none}
.dg-unified-results__item img,.dg-unified-results__placeholder{flex:0 0 48px;width:48px;height:48px;object-fit:cover;border-radius:9px;background:#f3efff}
.dg-unified-results__placeholder{display:grid;place-items:center;font-size:10px;color:#533ae8}
.dg-unified-results__text{display:flex;flex-direction:column;gap:3px;min-width:0}
.dg-unified-results__text strong{font-size:12px;font-weight:700;line-height:1.7;overflow-wrap:anywhere}
.dg-unified-results__text small{font-size:11px;color:#716b87}
.dg-unified-results__all{display:block;text-align:center;padding:12px;background:#f7f5ff;color:#533ae8!important;text-decoration:none!important;font-size:12px;font-weight:700}
.dg-unified-results__all:hover{background:#eee9ff}
.dg-unified-results__message{padding:17px 12px;margin:0;text-align:center;color:#706985;font-size:12px}
.dg404__search.dg-unified-search .dg-search-choice{width:100%;margin:0 0 4px;order:-1}
.dg404__search.dg-unified-search .dg-unified-results{top:calc(100% + 8px)}
.dgbh-search.dg-unified-search,.dgph-search.dg-unified-search{position:relative}
.dgbh-search.dg-unified-search .dg-search-choice,.dgph-search.dg-unified-search .dg-search-choice{justify-content:flex-start;margin-bottom:9px}
@media(max-width:600px){.dg-unified-results__item{padding:8px}.dg-unified-results__body{max-height:330px}}

/* v1.77.74 — Theme header's detached search popover. */
.dg-unified-header-popup{min-width:0;isolation:isolate}
.dg-unified-header-popup .dg-header-search-choice{display:flex!important;position:relative!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;width:100%!important;margin:10px 0 8px!important;padding:0 2px!important;box-sizing:border-box!important}
.dg-unified-header-popup .dg-header-search-choice__item{margin:0!important}
.dg-unified-header-popup .dg-header-search-choice .dg-search-choice__item span{min-height:32px;padding:6px 12px;border-radius:9px;font:600 12px/1.5 KalamehDG,Tahoma,sans-serif}
.dg-unified-header-popup .dg-header-unified-results{position:relative!important;inset:auto!important;width:100%!important;margin:8px 0 0!important;max-width:100%!important;z-index:1000!important;box-shadow:0 7px 20px rgba(36,24,85,.11)!important;border-radius:11px}
.dg-unified-header-popup .dg-header-unified-results__body{max-height:350px}
.dg-unified-header-popup .dg-header-unified-results .dg-unified-results__body{max-height:350px}
.dg-unified-header-popup .dg-header-search-choice input:focus-visible+span{outline:2px solid #533ae8;outline-offset:2px}
@media(max-width:600px){.dg-unified-header-popup .dg-header-search-choice{margin:9px 0 7px!important}.dg-unified-header-popup .dg-header-unified-results .dg-unified-results__body{max-height:50vh}}

/* v1.77.75: Use the actual locally bundled Kalameh family consistently in all search selectors. */
@font-face{font-family:'DrGraphic Search Kalameh';src:url('../fonts/KalamehWeb-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'DrGraphic Search Kalameh';src:url('../fonts/KalamehWeb-Medium.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'DrGraphic Search Kalameh';src:url('../fonts/KalamehWeb-SemiBold.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:'DrGraphic Search Kalameh';src:url('../fonts/KalamehWeb-Bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
body .dg-search-choice,
body .dg-search-choice .dg-search-choice__item,
body .dg-search-choice .dg-search-choice__item > span,
body .dg-unified-header-popup .dg-header-search-choice .dg-search-choice__item > span,
body .dg404__search .dg-search-choice .dg-search-choice__item > span,
body .dgbh-search .dg-search-choice .dg-search-choice__item > span,
body .dgph-search .dg-search-choice .dg-search-choice__item > span{
  font-family:'DrGraphic Search Kalameh','DrGraphic Kalameh',Tahoma,sans-serif!important;
  font-size:12px!important;
  font-weight:600!important;
  font-style:normal!important;
  line-height:1.65!important;
  letter-spacing:normal!important;
  text-transform:none!important;
}
body .dg-search-choice .dg-search-choice__item > span{white-space:nowrap}


/* v1.77.76: strictly local Kalameh typography and safe line-wrapping for live search. */
body .dg-unified-results,
body .dg-unified-results *,
body .dg-unified-header-popup .dg-header-unified-results,
body .dg-unified-header-popup .dg-header-unified-results *{
 font-family:'DrGraphic Search Kalameh',KalamehDG,Tahoma,sans-serif!important;
 font-style:normal!important;
 letter-spacing:normal!important;
 text-transform:none!important;
}
body .dg-unified-results__item{box-sizing:border-box;min-width:0;gap:10px;overflow:hidden;align-items:center;text-align:right}
body .dg-unified-results__text{display:flex;flex:1 1 0;min-width:0;max-width:100%;overflow:hidden;text-align:right;direction:rtl;gap:4px}
body .dg-unified-results__text strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%;font-size:12px!important;font-weight:700!important;line-height:1.7!important;overflow-wrap:anywhere;word-break:normal;unicode-bidi:plaintext}
body .dg-unified-results__text small{display:block;max-width:100%;font-size:11px!important;font-weight:400!important;line-height:1.8!important;color:#706985;white-space:normal;overflow-wrap:anywhere;word-break:normal;unicode-bidi:plaintext}
body .dg-unified-results__heading strong,body .dg-unified-results__all{font-weight:700!important}
body .dg-unified-results__item img{flex-shrink:0;object-fit:contain}
body .dg-unified-results__body{overflow-x:hidden}
@media(max-width:600px){body .dg-unified-results__text strong{font-size:11px!important}body .dg-unified-results__text small{font-size:10px!important}}


/* v1.77.79 — fixed action footer, independent scroll region, for every live search popup. */
body .dg-unified-results{display:flex;flex-direction:column;min-height:0;max-height:min(520px,75dvh);overflow:hidden}
body .dg-unified-results[hidden]{display:none!important}
body .dg-unified-results__heading{flex:0 0 auto}
body .dg-unified-results__body{flex:1 1 auto;min-height:0;max-height:min(410px,55dvh);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}
body .dg-unified-results__footer{display:block;flex:0 0 auto;position:relative;z-index:1;margin:0;border-top:1px solid #e7e1f5;background:#f7f5ff;box-shadow:0 -3px 12px rgba(30,20,75,.035)}
body .dg-unified-results__footer[hidden]{display:none!important}
body .dg-unified-results__footer .dg-unified-results__all{display:block;width:100%;box-sizing:border-box;margin:0;padding:12px 14px;text-align:center;font:700 12px/1.75 'DrGraphic Search Kalameh',KalamehDG,Tahoma,sans-serif!important;color:#533ae8!important;text-decoration:none!important;background:transparent;border:0;border-radius:0}
body .dg-unified-results__footer .dg-unified-results__all:hover,body .dg-unified-results__footer .dg-unified-results__all:focus-visible{background:#eee9ff;color:#4430c6!important;outline:0;box-shadow:inset 0 0 0 2px rgba(83,58,232,.12)}
body .dg-unified-header-popup .dg-header-unified-results{max-height:min(450px,70dvh)}
body .dg-unified-header-popup .dg-header-unified-results .dg-unified-results__body{max-height:min(350px,49dvh)}
@media(max-width:600px){body .dg-unified-results{max-height:65dvh}body .dg-unified-results__body{max-height:45dvh}body .dg-unified-header-popup .dg-header-unified-results{max-height:65dvh}}
