/* English and Urdu: the language links, the floating language button, and the look of Urdu pages. */

.tc-flag{flex:none;width:24px;height:16px;border-radius:3px;box-shadow:0 0 0 1px rgba(11,42,69,.14);display:block}
img.tc-flag{object-fit:cover}
.tc-lang a,.tc-langf a,.tc-langf summary span{font-family:"TC Urdu Naskh UI",var(--tc-font,sans-serif)}

/* links in the header, the phone menu or a page */
.tc-lang{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid #DCE5ED;direction:ltr}
.tc-lang a{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:999px;font-size:14px;font-weight:600;line-height:1;color:var(--tc-navy,#0B2A45);text-decoration:none}
.tc-lang a.is-on{background:var(--tc-btn-bg,#1D96D3);color:var(--tc-btn-text,#fff)}
.tc-lang a:focus-visible,.tc-langf summary:focus-visible,.tc-langf a:focus-visible{outline:2px solid var(--tc-blue,#1D96D3);outline-offset:2px}
.tc-lang--drawer{margin-top:20px}
@media (max-width:560px){.tc-lang--bar{display:none}}

/* floating button (colours, size and place from Treetcorp > Languages) */
.tc-langf{--tl-h:46px;--tl-fs:15px;--tl-fw:24px;--tl-fh:16px;position:fixed;left:max(var(--tl-x,16px),env(safe-area-inset-left));bottom:max(var(--tl-y,16px),env(safe-area-inset-bottom));z-index:9990;font-family:var(--tc-font,sans-serif);direction:ltr;text-align:left}
.tc-langf--s{--tl-h:38px;--tl-fs:13px;--tl-fw:20px;--tl-fh:13px}
.tc-langf--l{--tl-h:54px;--tl-fs:17px;--tl-fw:28px;--tl-fh:19px}
.tc-langf--right{left:auto;right:max(var(--tl-x,16px),env(safe-area-inset-right));text-align:right}
body:has(.tc-top) .tc-langf--right{right:calc(max(var(--tl-x,16px),env(safe-area-inset-right)) + 60px)}
.tc-langf .tc-flag{width:var(--tl-fw);height:var(--tl-fh)}
.tc-langf summary{list-style:none;display:inline-flex;align-items:center;gap:10px;min-height:var(--tl-h);padding:0 calc(var(--tl-h)*.35) 0 calc(var(--tl-h)*.26);border-radius:var(--tl-r,999px);background:var(--tl-bg,#fff);border:1px solid var(--tl-bd,#DCE5ED);box-shadow:0 8px 26px rgba(11,42,69,.18);color:var(--tl-tx,#0B2A45);font-size:var(--tl-fs);font-weight:600;line-height:1;cursor:pointer;user-select:none;box-sizing:border-box}
.tc-langf summary::-webkit-details-marker{display:none}
.tc-langf summary:hover{border-color:var(--tl-hv,#1D96D3)}
.tc-langf__chev{color:currentColor;opacity:.6;transition:transform .2s}
.tc-langf[open] .tc-langf__chev{transform:rotate(180deg)}
.tc-langf__menu{position:absolute;left:0;bottom:calc(100% + 8px);min-width:100%;padding:6px;border-radius:min(var(--tl-r,16px),16px);background:var(--tl-bg,#fff);border:1px solid var(--tl-bd,#DCE5ED);box-shadow:0 14px 36px rgba(11,42,69,.2);box-sizing:border-box}
.tc-langf--right .tc-langf__menu{left:auto;right:0}
.tc-langf__menu a{display:flex;align-items:center;gap:10px;min-height:calc(var(--tl-h) - 2px);padding:0 12px;border-radius:min(var(--tl-r,10px),10px);color:var(--tl-tx,#0B2A45);font-size:var(--tl-fs);font-weight:600;line-height:1;text-decoration:none;white-space:nowrap}
.tc-langf__menu a:hover{background:color-mix(in srgb,var(--tl-tx,#0B2A45) 7%,transparent)}
.tc-langf__menu a.is-on{background:var(--tl-on-bg,#E8F4FB);color:var(--tl-on-tx,#0E6FA3)}
.tc-langf--show-flag summary{padding:0 calc(var(--tl-h)*.26)}
.tc-langf--show-flag summary>span{display:none}
.tc-langf--show-name .tc-flag{display:none}
.tc-langf--show-name summary{padding-left:calc(var(--tl-h)*.35)}
.tc-langf--flat summary,.tc-langf--flat .tc-langf__menu{box-shadow:none}
.tc-langf--noarrow .tc-langf__chev{display:none}
@media (max-width:600px){
	.tc-langf--ph-flag summary{min-height:42px;padding:0 10px;gap:6px}
	.tc-langf--ph-flag summary>span{display:none}
	.tc-langf--ph-flag summary .tc-flag{display:block}
	.tc-langf--ph-hide{display:none}
}
@media print{.tc-langf{display:none}}

/* Urdu pages */
html[data-tl-font] body{--tc-ur-f:var(--tc-ur)}
html[data-tl-font] body :is(h1,h2,h3,h4,h5,h6,.elementor-heading-title,[class*="__title"]){--tc-ur-f:var(--tc-ur-h,var(--tc-ur))}
html[data-tl-font] body :is(nav,button,.elementor-button,.tc-btn,.tc-cta,.tc-nav,.tc-mega,.tc-megas,.tc-drawer,[class*="__btn"],[class*="__tab"],input[type="submit"],input[type="button"]){--tc-ur-f:var(--tc-ur-b,var(--tc-ur))}
html[data-tl-font] body,html[data-tl-font] body :is(h1,h2,h3,h4,h5,h6,p,a,span,li,div,button,input,textarea,select,label,small,strong,em,b,td,th,figcaption,summary,blockquote,dt,dd,legend,time,address,option):not([class*="eicon"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons):not(.notranslate):not(.notranslate *){font-family:var(--tc-ur-f,var(--tc-ur)),var(--tc-font,sans-serif)!important}
html[data-tl-font] body *{letter-spacing:0!important;word-spacing:normal}
html[data-tl-font] body{line-height:var(--tc-ur-lh)}
html[data-tl-font] :is(h1,h2,h3,h4,h5,h6){line-height:var(--tc-ur-lh-head)!important}
html[data-tl-font] :is(p,li,dd,blockquote,figcaption,td,th,label,small){line-height:var(--tc-ur-lh)!important}
html[data-tl-font] :is(a,button,summary,span,strong,em,b){line-height:var(--tc-ur-lh-head)}
html[data-tl-font] :is(.tc-nav__a,.tc-cta,.tc-menu-btn,.tc-btn,.elementor-button){line-height:1.6!important}
html[data-tl-font] .tc-langf,html[data-tl-font] .tc-langf *{line-height:1!important}

/* right to left: the few places that do not mirror by themselves */
html[dir="rtl"] .ths{direction:ltr}
html[dir="rtl"] .ths__text{direction:rtl;align-items:flex-end}
html[dir="rtl"] .ths__tabs,html[dir="rtl"] .ths__tab{direction:rtl}
html[dir="rtl"] a[href^="tel:"],html[dir="rtl"] a[href^="mailto:"]{direction:ltr;unicode-bidi:isolate;display:inline-block}

/* editing the Urdu on the page (administrators) */
html.tc-ue-on .tc-ue-hot{outline:2px dashed #1D96D3!important;outline-offset:3px;cursor:text!important;background-color:rgba(29,150,211,.08)}
html.tc-ue-on body a,html.tc-ue-on body button{cursor:text}
#wp-admin-bar-tc-ur-edit.is-on>a{background:#1D96D3!important;color:#fff!important}
#wp-admin-bar-tc-ur-edit .ab-icon:before{content:"\f326";top:2px}
.tc-ue{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;line-height:1.5!important;letter-spacing:0!important;text-align:left}
html body .tc-ue.tc-ue *{font-family:inherit!important;line-height:inherit!important;letter-spacing:0!important}
.tc-ue-bar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:100001;display:flex;align-items:center;gap:14px;flex-wrap:wrap;max-width:calc(100vw - 32px);padding:10px 12px 10px 18px;border-radius:14px;background:#0B2A45;color:#fff;font-size:14px;box-shadow:0 12px 30px rgba(0,0,0,.3)}
.tc-ue-bar span{color:rgba(255,255,255,.8)}
.tc-ue-bar a{color:#9ED8F5;text-decoration:underline}
.tc-ue-bar button,.tc-ue-act button{min-height:36px;padding:0 16px;border:0;border-radius:999px;background:#1D96D3;color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.tc-ue-box{position:fixed;z-index:100002;width:min(440px,calc(100vw - 16px));padding:16px;border-radius:14px;background:#fff;color:#0B2A45;font-size:14px;box-shadow:0 18px 44px rgba(11,42,69,.32);border:1px solid #DCE5ED}
.tc-ue-box.is-busy{opacity:.7;pointer-events:none}
.tc-ue-l{display:block;margin:0 0 4px;font-size:12px;font-weight:700;text-transform:uppercase;color:#6B7A88}
.tc-ue-l select{display:block;width:100%;margin-top:4px;font-size:14px;text-transform:none}
.tc-ue-en{margin:0 0 12px;padding:8px 10px;border-radius:8px;background:#F3F6F9;font-size:14px;max-height:120px;overflow:auto}
html body .tc-ue textarea.tc-ue-ur{display:block;width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #9BB3C7;border-radius:8px;font-family:"TC Urdu Naskh UI","Noto Naskh Arabic",Tahoma,sans-serif!important;font-size:18px;line-height:1.8!important;resize:vertical;color:#0B2A45;background:#fff}
textarea.tc-ue-ur:focus{outline:2px solid #1D96D3;outline-offset:1px}
.tc-ue-msg{margin:8px 0 0;min-height:1em;font-size:13px;color:#B3261E}
.tc-ue-act{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.tc-ue-act .tc-ue-x,.tc-ue-act .tc-ue-reset{background:#EEF2F5;color:#0B2A45}
.tc-ue-act .tc-ue-reset{margin-left:auto}
.tc-ue-toast{position:fixed;left:50%;top:48px;transform:translateX(-50%);z-index:100003;padding:10px 18px;border-radius:999px;background:#0B2A45;color:#fff;font-size:14px;box-shadow:0 10px 26px rgba(0,0,0,.25)}
.tc-ue-box,.tc-ue-bar{box-sizing:border-box}
html.tc-ue-on .tc-langf{display:none}
@media (max-width:600px){.tc-ue-bar{left:8px;right:8px;bottom:8px;transform:none;max-width:none;gap:8px 14px;padding:8px 8px 8px 14px;font-size:13px}.tc-ue-bar span{display:none}.tc-ue-bar button{margin-left:auto}}
/* the WordPress admin bar (signed-in users) keeps its English layout on Urdu pages */
html[dir="rtl"] #wpadminbar{direction:ltr;text-align:left}
/* Right to left: content sliding in from the left (reveal animations) must not make the page scroll sideways */
html[dir="rtl"] body{overflow-x:clip}
html[dir="rtl"] body>:not(#wpadminbar):not(.tc-langf):not(.tc-ue):not(script):not(style){overflow-x:clip}
html[dir="rtl"] .tmg.is-armed .tmg-rv{transform:translateX(24px)}
