/* Only the explicitly requested header search interaction changes. */
[data-uirh-global="header"] .site-header .header-actions,body.uirh-home-layout-313 .site-header .header-actions{position:relative}
.uirh-header-search-panel[hidden]{display:none!important}
.uirh-header-search-panel{position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);width:min(390px,calc(100vw - 40px));z-index:30;padding:5px;background:#14505a;border:1px solid #cbaa6e;border-radius:24px;box-shadow:0 3px 12px #001e2833;box-sizing:border-box}
.uirh-header-inline-form{display:flex!important;align-items:center;gap:6px;margin:0!important;direction:rtl}
.uirh-header-inline-form input{min-width:0;flex:1;width:100%;height:34px!important;background:transparent!important;color:#f4ede2!important;border:0!important;border-radius:18px;padding:4px 12px!important;font-size:14px;line-height:1.8;box-sizing:border-box}
.uirh-header-inline-form input::placeholder{color:#f4ede2b3}
.uirh-header-inline-form button{flex:none;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:#cbaa6e;color:#003c45;padding:7px;cursor:pointer;font-size:22px;line-height:1;}
.uirh-header-inline-form button svg{width:18px;height:18px}
.uirh-header-inline-form :is(input,button):focus-visible{outline:2px solid #ead3a1;outline-offset:2px}
@media(max-width:699px){.uirh-header-search-panel{width:min(310px,calc(100vw - 24px))}.uirh-header-inline-form input{font-size:16px}.uirh-header-inline-form button{width:34px;height:34px}}

/* Opening invocation: editable in the global header, shown site-wide. */
.irhp-widget-scope[data-uirh-native] .uirh-basmala {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  box-sizing: border-box;
  width: 100%;
  min-height: 43px;
  padding: 3px 20px 4px;
  background-color: #003c45;
  background-image: url('../patterns/home-works-reference-background.webp');
  background-size: 1022px 596px;
  background-position: left top;
  background-repeat: repeat;
  border-bottom: 1px solid rgba(201, 164, 98, .22);
  color: #faf6ee;
  text-align: center;
}
.irhp-widget-scope[data-uirh-native] .uirh-basmala::before,
.irhp-widget-scope[data-uirh-native] .uirh-basmala::after {
  content: '';
  display: block;
  flex: 0 1 88px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #bd9a58);
}
.irhp-widget-scope[data-uirh-native] .uirh-basmala::after {
  background: linear-gradient(90deg, #bd9a58, transparent);
}
.irhp-widget-scope[data-uirh-native] .uirh-basmala .uirh-basmala-text {
  display: inline-block;
  min-width: 0;
  font-family: var(--nv8-font-body, inherit) !important;
  font-size: clamp(19px, 1.6vw, 21px) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
  color: #faf6ee !important;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .irhp-widget-scope[data-uirh-native] .uirh-basmala {
    min-height: 40px;
    gap: 10px;
    padding: 3px 12px 4px;
  }
  .irhp-widget-scope[data-uirh-native] .uirh-basmala::before,
  .irhp-widget-scope[data-uirh-native] .uirh-basmala::after { flex-basis: 30px; }
  .irhp-widget-scope[data-uirh-native] .uirh-basmala .uirh-basmala-text { font-size: 19px !important; }
}

/* Client revisions: physical right in both RTL and LTR; section titles only. */
html body .nv8-btt { right: 20px !important; left: auto !important; }
@media (max-width: 767px) { html body .nv8-btt { right: 14px !important; left: auto !important; } }
body.home #ecosystem .eco-heading .sec-chev-wrap,
body.home #works .works-heading .sec-chev-wrap,
body.home #works .works-reference-title .nv8-link-arrow { display: none !important; }

/* Additional locations: no invented map links; long addresses can wrap. */
.uirh-extra-location { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; color: #143b40; background: #fbf7ed; border-top: 1px solid #e3d4b5; line-height: 1.9; overflow-wrap: anywhere; }
.uirh-extra-location svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: .35em; }
.uirh-extra-location a { color: #07535b; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a.uirh-address-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Contact: hide the artwork wrapper whenever an interactive map is present. */
html body.uirh-contact-330 .cu-map.nv8-map-upgraded > .cu-map-open { display: none !important; }
/* Keep both addresses together inside the existing address card. */

/* Five distinct contact cards: responsive without squeezing mobile text. */
@media (min-width: 1200px) {
  html body.uirh-contact-330 .cu-ways-grid.uirh-five-ways { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
@media (min-width: 901px) and (max-width: 1199px) {
  html body.uirh-contact-330 .cu-ways-grid.uirh-five-ways { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 601px) and (max-width: 900px) {
  html body.uirh-contact-330 .cu-ways-grid.uirh-five-ways { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  html body.uirh-contact-330 .cu-ways-grid.uirh-five-ways { grid-template-columns: 1fr !important; }
}

/* Filtering must override the theme's !important display:flex on cards. */
html body .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] :is(.activity,.events) .card-row > article[hidden],
html body.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] :is(.activity,.events) .card-row > article[hidden] {
  display: none !important;
}

/* Contact locations grow naturally for long Persian addresses on narrow screens. */
html body.uirh-contact-330 .cu-map { height: auto !important; min-width: 0 !important; }
html body.uirh-contact-330 .cu-map > .cu-map-open { display: block; flex: none; width: 100%; }
html body.uirh-contact-330 .cu-map > .cu-map-open > .cu-map-art,
html body.uirh-contact-330 .cu-map > img.cu-map-art { display: block; width: 100%; height: 260px; flex: none; object-fit: cover; }
html body.uirh-contact-330 .cu-map .cu-map-bar { flex-wrap: wrap; }
html body.uirh-contact-330 .cu-map .cu-map-bar > span,
html body.uirh-contact-330 .uirh-extra-location > span,
html body.uirh-contact-330 .cu-ways-grid .cu-way-text { min-width: 0 !important; overflow-wrap: anywhere !important; word-break: normal; }
html body .site-footer .footer-contact > p > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  html body.uirh-contact-330 .cu-map > .cu-map-open > .cu-map-art,
  html body.uirh-contact-330 .cu-map > img.cu-map-art { height: 220px; }
}

/* Two genuine, independently configured maps: no decorative map image. */
html body.uirh-contact-330 .cu-map.uirh-two-real-maps {
  display: flex !important; flex-direction: column !important; gap: 14px;
  height: auto !important; min-height: 0 !important; border: 0; overflow: visible;
  background: transparent; width: 100%; min-width: 0;
}
html body.uirh-contact-330 .uirh-map-location {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: #fffdfa; border: 1px solid #e5d5b5; border-radius: 16px;
}
html body.uirh-contact-330 .uirh-map-location h3 {
  margin: 0; padding: 12px 15px; color: #073f47; font-size: 16px;
  line-height: 1.6; background: #f9f4e9;
}
html body.uirh-contact-330 .uirh-map-location iframe.uirh-live-map {
  display: block; width: 100%; height: 230px; min-height: 230px;
  border: 0; background: #f0eee8;
}
html body.uirh-contact-330 .uirh-map-empty {
  display: grid; place-items: center; min-height: 120px; padding: 20px;
  background: #f5f2e9; color: #526b6c; text-align: center; line-height: 1.9;
  font-size: 13px;
}
html body.uirh-contact-330 .uirh-map-address {
  display: flex; gap: 8px; padding: 12px 14px 6px; color: #16464c;
  line-height: 1.9; overflow-wrap: anywhere; min-width: 0; font-size: 13px;
}
html body.uirh-contact-330 .uirh-map-address > svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: .3em; }
html body.uirh-contact-330 .uirh-map-address > span { min-width: 0; overflow-wrap: anywhere; }
html body.uirh-contact-330 .uirh-map-route { align-self: flex-start; margin: 4px 14px 14px; min-height: 40px; display: inline-flex; align-items: center; font-size: 13px; }
html body.uirh-contact-330 .uirh-map-no-route { padding: 2px 14px 14px; font-size: 12px; color: #526b6c; line-height: 1.8; }
@media (max-width: 600px) {
  html body.uirh-contact-330 .uirh-map-location iframe.uirh-live-map { height: 210px; min-height: 210px; }
}

/* One Neshan map at a time; a selected tab owns its separate location. */
html body.uirh-contact-330 .cu-map.uirh-tabbed-map {
  display: flex !important; flex-direction: column; height: auto !important;
  min-height: 0 !important; width: 100%; min-width: 0; overflow: hidden;
  border: 1px solid #e5d5b5; border-radius: 16px; background: #fffdfa;
}
html body.uirh-contact-330 .uirh-map-tabs { display: flex; gap: 5px; padding: 7px; background: #f5efe2; }
html body.uirh-contact-330 .uirh-map-tab {
  flex: 1 1 0; min-width: 0; min-height: 42px; padding: 7px 8px;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
  color: #244b4e; font-size: 14px; font-weight: 700; cursor: pointer;
}
html body.uirh-contact-330 .uirh-map-tab.is-active { background: #fff; border-color: #dfc793; color: #003f47; box-shadow: 0 2px 6px #063b4012; }
html body.uirh-contact-330 .uirh-map-tab:focus-visible,
html body.uirh-contact-330 .uirh-neshan-controls button:focus-visible { outline: 3px solid #c39a48; outline-offset: 2px; }
html body.uirh-contact-330 .uirh-tabbed-map .uirh-map-location { border: 0; border-radius: 0; }
html body.uirh-contact-330 .uirh-tabbed-map .uirh-map-location[hidden],
html body.uirh-contact-330 .uirh-tabbed-map [hidden] { display: none !important; }
html body.uirh-contact-330 .uirh-neshan-map { position: relative; width: 100%; height: 235px; overflow: hidden; background: #eeeae0; touch-action: pan-y; cursor: grab; }
html body.uirh-contact-330 .uirh-neshan-map.is-dragging { cursor: grabbing; }
html body.uirh-contact-330 .uirh-neshan-image { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; user-select: none; }
html body.uirh-contact-330 .uirh-neshan-image.is-ready { opacity: 1; }
html body.uirh-contact-330 .uirh-neshan-pin { position: absolute; z-index: 2; width: 27px; height: 34px; transform: translate(-50%,-100%); color: #00424a; pointer-events: none; filter: drop-shadow(0 2px 2px #ffffff); }
html body.uirh-contact-330 .uirh-neshan-pin svg { width: 100%; height: 100%; stroke-width: 2.5; }
html body.uirh-contact-330 .uirh-neshan-controls { position: absolute; z-index: 4; top: 9px; right: 9px; display: flex; flex-direction: column; gap: 4px; direction: ltr; }
html body.uirh-contact-330 .uirh-neshan-controls button { width: 34px; height: 34px; padding: 0; border: 1px solid #d4bf90; border-radius: 8px; background: #fff; color: #063d45; font-size: 20px; line-height: 1; cursor: pointer; }
html body.uirh-contact-330 .uirh-map-status { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 20px 48px; background: #f5f2e9ee; color: #486264; text-align: center; font-size: 13px; line-height: 1.9; }
@media (max-width:600px) { html body.uirh-contact-330 .uirh-neshan-map { height: 220px; } }
html body.uirh-contact-330 .uirh-map-attribution { position: absolute; z-index: 2; bottom: 6px; left: 6px; padding: 2px 7px; border-radius: 6px; background: #ffffffdb; color: #36565a; font-size: 11px; line-height: 1.5; pointer-events: none; }
html body.uirh-contact-330 .uirh-neshan-controls button svg { display: block; width: 18px; height: 18px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.uirh-neshan-map .uirh-neshan-pin[hidden]{display:none!important}.uirh-map-approx{position:absolute;z-index:3;bottom:6px;right:7px;max-width:80%;background:rgba(255,255,255,.93);border-radius:5px;padding:2px 6px;font-size:10px;line-height:1.6;color:#28454a}

/* Manager's homepage revisions: keep text alignment; only remove title icons. */
/* Keep all content editable; remove only the heading above the spinning logo. */
body.home .irhp-widget-scope[data-uirh-native] #ecosystem .eco-heading {display:none!important;}
body.home .irhp-widget-scope[data-uirh-native] #ecosystem .eco-identity {justify-content:center!important;gap:0!important;}
html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] :is(.section-heading,.works-heading) h2.sec-heading-line.sec-plate .sec-icon,
html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .works-reference-title .works-book-cap,
html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .irhp-plate-widget:not(.is-center) .sec-icon {display:none!important;}
/* Show the editable Elementor logo, not a hard-coded background copy. */
html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .ecosystem .eco-medallion-disc {background-image:radial-gradient(circle at 38% 30%,#0e6976 0%,#01434e 54%,#002931 100%)!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;}
html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .ecosystem .eco-medallion-disc .eco-medallion-logo {opacity:1!important;visibility:visible!important;}

/* The homepage medallion contains only the editable mark and rotating ring. */
html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .ecosystem .eco-medallion-label {display:none!important;}
/* Keep the hero's two decorative tips inside the narrowest mobile viewport. */
@media (max-width:340px) {
  html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .hero .hero-frame-ornament-left {transform:translateX(4px)!important;}
  html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .hero .hero-frame-ornament-right {transform:translateX(-3px)!important;}
}
/* Keep the number in front of the decorative border in every card state. */
html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .ecosystem .eco-card .eco-num {z-index:5!important;transition:transform 220ms ease,box-shadow 220ms ease!important;}
/* A closest-side circle fades out before its own square boundary on all sides. */
html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .ecosystem .eco-medallion-frame::before {background:radial-gradient(circle closest-side,rgba(244,212,134,.62) 0%,rgba(228,184,88,.44) 34%,rgba(206,162,74,.26) 54%,rgba(196,152,68,.11) 70%,transparent 82%)!important;}
html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .ecosystem.is-eco-engaged .eco-medallion-frame::before {background:radial-gradient(circle closest-side,rgba(250,224,152,.76) 0%,rgba(234,190,94,.56) 36%,rgba(212,168,78,.34) 56%,rgba(201,164,98,.15) 72%,transparent 84%)!important;}

/* Optical balance for the asymmetric default calligraphy; custom Elementor images are unaffected. */
html body.home.uirh-home-layout-317 .irhp-widget-scope.irhp-widget-scope[data-uirh-native][data-uirh-native] .ecosystem .eco-medallion-disc .eco-medallion-logo.is-default-center-mark {top:48.2%!important;left:49.85%!important;}
