/* Use the same materials on the original Igual, Elementor and WordPress controls. */
html[data-office-edition] {
    --glass-paper: 1;
    --glass-gold: 1;
    --glass-dark: 1;
    --glass-bar: 1;
    --glass-sheet: 1;
    --glass-filter: none;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    html[data-office-edition] {
        --glass-paper: .83;
        --glass-gold: .87;
        --glass-dark: .88;
        --glass-bar: .78;
        --glass-sheet: .82;
        --glass-filter: saturate(124%) blur(18px);
    }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
    html[data-office-edition] {
        --glass-paper: 1;
        --glass-gold: 1;
        --glass-dark: 1;
        --glass-bar: 1;
        --glass-sheet: 1;
        --glass-filter: none;
    }
}

html[data-office-edition] {
    --action-ink: #243247;
    --action-fill: rgb(249 247 242 / var(--glass-paper));
    --action-hover: #efe9dd;
    --action-pressed: #dfd6c6;
    --action-line: rgb(97 91 80 / .32);
    --action-sheen: linear-gradient(155deg,rgb(255 255 255 / .42),transparent 58%);
    --action-shadow: inset 0 1px rgb(255 255 255 / .75),0 2px 6px rgb(33 40 51 / .08);
    --action-radius: 16px;
    --field-ink: #243247;
    --field-line: #aea99f;
    --field-focus: #536782;
}
html[data-office-edition] :where(
    .header-navbar,.header-mobilebar,.header-topbar,.full-search-wrapper,.mobile-menu-floating,
    #site-footer,.akb-consult,.office-slide-next,#back-to-top,.chaty-widget
) {
    --action-ink: #faf6ed;
    --action-fill: rgb(38 48 61 / var(--glass-dark));
    --action-hover: #415064;
    --action-pressed: #202a39;
    --action-line: rgb(235 221 195 / .38);
    --action-sheen: linear-gradient(155deg,rgb(252 245 228 / .10),transparent 64%);
    --action-shadow: inset 0 1px rgb(255 255 255 / .21),0 2px 6px rgb(15 21 29 / .18);
}
html[data-office-edition] :where(
    .rev-sl-btn,.cea-button-link,.elementor-button:not(.read-more),.wp-block-button__link,.wp-block-file__button,
    .akb-button,.ocf-primary,.wpcf7-submit,.form-submit .submit,.wp-block-search__button,.post-password-form [type=submit],
    .akb-file-tabs [aria-selected=true],.post-pagination .active > span,.page-numbers.current
) {
    --action-ink: #fffaf1;
    --action-fill: rgb(36 50 68 / var(--glass-dark));
    --action-hover: #35485f;
    --action-pressed: #1b2837;
    --action-line: rgb(31 39 48 / .55);
    --action-sheen: linear-gradient(150deg,rgb(244 237 217 / .10),transparent 60%);
    --action-shadow: inset 0 1px rgb(255 255 255 / .20),0 3px 8px rgb(24 39 55 / .14);
}
html[data-office-edition] :where(.header-navbar,.akb-consult,#site-footer,rs-slide) :where(.cea-button-link,.akb-button,.ocf-primary,.rev-sl-btn) {
    --action-ink: #332a20;
    --action-fill: rgb(236 214 183 / var(--glass-gold));
    --action-hover: #f6e5cb;
    --action-pressed: #d9bc95;
    --action-line: rgb(248 231 204 / .64);
    --action-sheen: linear-gradient(150deg,rgb(255 255 255 / .32),transparent 60%);
    --action-shadow: inset 0 1px rgb(255 255 255 / .56),0 2px 6px rgb(22 27 33 / .15);
}
html[data-office-edition] :where(.akb-file-tabs button) { --action-radius: 12px; }
html[data-office-edition] :where(.rev-sl-btn,.cea-button-link,.ocf-language,.post-more > a,.ocf-primary,.ocf-secondary) { --action-radius: 999px; }
html[data-office-edition] :where(.social-share a,.header-topbar .social-icons a > span,.office-slide-next,#back-to-top,.chaty-cta-button button,.chaty-channel-list .chaty-icon,.ocf-phone i,.akb-mark,.pagination-single .arrow,.custom-post-nav a > i,.mobile-menu-toggle,.full-search-toggle,.full-bar-search-toggle,.full-search-wrapper > .close,.full-bar-search-wrap > .close) { --action-radius: 50%; }

/* Theme settings, slide layers and the chat widget supply inline colours. Give only the
   painted surface precedence; each plugin still owns its visibility, positioning and events. */
@layer office-actions {
    html[data-office-edition] :where(
        #site-content button,#site-content input:is([type=submit],[type=button],[type=reset]),
        #site-content a:is([role=button],.wp-element-button,.wp-block-button__link,.wp-block-file__button,.comment-reply-link,.more-link),
        a.elementor-button,a.cea-button-link,.rev-sl-btn,.akb-button,.akb-link,.ocf-primary,.ocf-secondary,.ocf-language,
        .post-more > a,.office-document-download a,.wp-block-file a[download],.post-pagination li > :is(a,span.active),.page-numbers:is(a,.current),
        .social-share a,.header-topbar .social-icons a > span,.office-slide-next,#back-to-top,.chaty-cta-button button,.chaty-channel-list .chaty-icon,
        .header-mobilebar .mobile-menu-toggle,.header-mobilebar .full-search-toggle,.header-navbar .navbar-ul .full-bar-search-toggle,
        .mobile-menu-floating > .mobile-menu-toggle,.full-search-wrapper > .close,.full-bar-search-wrap > .close,
        .search-form button,.zozo-mc-form button,.ocf-phone i,.akb-mark,.pagination-single .arrow,.custom-post-nav a > i
    ) {
        background-color: var(--action-fill) !important;
        background-image: var(--action-sheen) !important;
        color: var(--action-ink) !important;
        border: 1px solid var(--action-line) !important;
        border-radius: var(--action-radius) !important;
        box-shadow: var(--action-shadow) !important;
        text-shadow: none !important;
        text-transform: none !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        &:focus-visible {
            outline: 2px solid #fffaf1 !important;
            outline-offset: 1px !important;
            box-shadow: 0 0 0 5px #3a526e !important;
        }
        &:active:not(:disabled,[aria-disabled=true],.disabled) {
            background-color: var(--action-pressed) !important;
            box-shadow: inset 0 2px 4px rgb(31 23 18 / .18) !important;
        }
        @media (hover: hover) {
            &:hover:not(:active,:disabled,[aria-disabled=true],.disabled) { background-color: var(--action-hover) !important; }
        }
    }
    @media (hover: hover) {
        html[data-office-edition] :where(.header-topbar .social-icons a:hover > span,.ocf-phone:hover i,summary:hover .akb-mark,.pagination-single a:hover .arrow,.custom-post-nav a:not(.disabled):hover > i,.chaty-channel-list a:hover .chaty-icon) {
            background-color: var(--action-hover) !important;
        }
    }
    html[data-office-edition] :where(#site-content button,#site-content input,.zozo-mc-form button):is(:disabled,[aria-disabled=true]),
    html[data-office-edition] .custom-post-nav a.disabled > i {
        color: #605a52 !important;
        background: #e7e2d9 !important;
        border-color: #aaa197 !important;
        box-shadow: none !important;
        cursor: not-allowed;
    }
}

/* Text actions can wrap in English and Arabic. The slideshow keeps its authored coordinates. */
html[data-office-edition] :is(
    #site-content button:not([role=tab]),#site-content input:is([type=submit],[type=button],[type=reset]),
    .elementor-button,.rev-sl-btn,.wp-block-button__link,.wp-block-file__button,.wp-element-button,.akb-link,.akb-button,
    .ocf-primary,.ocf-secondary,.ocf-language,.office-document-download a,.post-more a,.comment-reply-link,.more-link
) {
    box-sizing: border-box;
    min-block-size: 44px;
    max-inline-size: 100%;
    font-family: var(--office-text);
    letter-spacing: normal;
}
html[data-office-edition] :is(.post-more > a,.office-document-download a,.comment-reply-link,.more-link,.wp-block-file__button,.akb-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem 1.1rem;
    gap: .55rem;
    font: 500 .93rem/1.5 var(--office-text);
    text-align: center;
    text-decoration: none;
}
html[data-office-edition] :is(.akb-link > span,#site-footer .ocf-secondary) { text-decoration: none; }
html[data-office-edition] #site-footer .ocf-secondary { padding-inline: 18px; }
html[data-office-edition] #site-content :is(.elementor-button,.wpcf7-submit,.form-submit .submit,.wp-block-search__button) {
    padding: .55rem 1.12rem;
    font: 530 .95rem/1.55 var(--office-text);
    white-space: normal;
}
html[data-office-edition] #site-content .elementor-button { display: inline-flex; align-items: center; justify-content: center; }
html[data-office-edition] #site-content .elementor-button :is(.elementor-button-content-wrapper,.elementor-button-text) { min-inline-size: 0; overflow-wrap: anywhere; }
html[data-office-edition] #site-content .elementor-button .elementor-button-content-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: .55em;
}
html[data-office-edition] #site-content .elementor-button .elementor-button-icon { display: inline-flex; flex-shrink: 0; margin-inline: 0; }
html[data-office-edition] #site-content .elementor-button .elementor-button-icon svg { fill: currentColor; }
html[data-office-edition] #site-header .header-topbar .social-icons a > span { display: inline-grid; place-items: center; width: 29px; height: 29px; font-size: 13px; }
html[data-office-edition] .akb-link .akb-arrow { flex-basis: 1rem; width: 1rem; }
html[data-office-masthead] #site-content .post-more > a::after {
    content: "";
    position: static;
    display: inline-block;
    flex: 0 0 .42em;
    width: .42em;
    height: .42em;
    margin: 0;
    border: solid currentColor;
    border-width: 1.5px 1.5px 0 0;
    transform: rotate(45deg);
}
html[data-office-masthead][dir=rtl] #site-content .post-more > a::after { transform: rotate(-135deg); }
html[data-office-masthead] .elementor-widget-google_maps .elementor-custom-embed:has(> .office-location-link) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 0;
    padding: .3rem 0 1rem;
    line-height: 1.5;
}
html[data-office-masthead] #site-content .office-location-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1.2rem;
    font: 500 .95rem/1.5 var(--office-text);
    text-decoration: none;
}
html[data-office-masthead] #site-content .office-press-source a { color: #705333; text-decoration: underline; text-underline-offset: .2em; }
html[data-office-masthead] main .featured-media .office-news-poster {
    display: block;
    width: min(100%, 720px);
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}
html[data-office-edition] .akb-file-tabs {
    width: fit-content;
    max-width: 100%;
    padding: 3px;
    margin-block-end: 6px;
    gap: 3px;
    border: 1px solid rgb(132 108 78 / .38);
    border-radius: 17px;
    background: rgb(240 233 222 / var(--glass-paper));
}
html[data-office-edition] .akb-file-tabs > button { min-block-size: 44px; border-radius: 13px; }
html[data-office-edition] .akb-file-tabs > button[aria-selected=true]::after { content: none; }
html[data-office-edition] .akb-file-index { inset-inline: 15px; height: 2px; border-radius: 0 0 2px 2px; }
html[data-office-edition] .akb-section summary .akb-mark { inline-size: 30px; block-size: 30px; }
html[data-office-edition] .akb-section .akb-mark::before { inset-inline: 7px; }
html[data-office-edition] .akb-section .akb-mark::after { inset-block: 7px; }
html[data-office-edition] .akb-section summary { padding-inline-end: 4px; }
html[data-office-edition] :is(.post-pagination,.social-share) { flex-wrap: wrap; gap: 5px; }
html[data-office-edition] .post-pagination .nav-item { margin: 0; }
html[data-office-edition] .post-pagination li > :is(a,span.active), html[data-office-edition] .social-share li > a {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 4px;
    line-height: 1.25;
}
html[data-office-edition] .custom-post-nav a > i, html[data-office-edition] .pagination-single .arrow {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}
html[data-office-edition] #site-content .wpcf7-file {
    height: auto;
    min-height: 48px;
    padding: 2px 5px;
    font: 400 1rem/1.6 var(--office-text);
}
html[data-office-edition] .wpcf7-file::file-selector-button {
    min-height: 44px;
    margin-inline-end: 10px;
    padding: 5px 16px;
    border: 1px solid var(--action-line);
    border-radius: 12px;
    background: var(--action-sheen), var(--action-fill);
    color: var(--action-ink);
    font: 500 14px/1.5 var(--office-text);
    cursor: pointer;
}
html[data-office-edition] .wpcf7-file:focus-visible::file-selector-button { outline: 2px solid #57442d; outline-offset: -3px; }
html[data-office-edition] .wpcf7-file:disabled::file-selector-button { color: #605a52; background: #e7e2d9; cursor: not-allowed; }
html[data-office-edition] #site-content .wp-block-search__inside-wrapper { align-items: center; gap: 6px; }
html[data-office-edition] #site-content .wp-block-search__inside-wrapper .wp-block-search__input { min-inline-size: 0; }
html[data-office-edition] #site-content .wp-block-search__inside-wrapper .wp-block-search__button { margin: 0; flex: 0 0 auto; }
html[data-office-edition] .chaty-widget :is(.open-chaty svg circle,.chaty-channel-list svg circle.color-element) { fill: transparent; }
html[data-office-edition] .chaty-widget .chaty-channel-list .chaty-icon { display: inline-grid; place-items: center; }
html[data-office-edition] .chaty-widget .chaty-cta-main .on-hover-text {
    border: 1px solid rgb(112 91 66 / .45);
    border-radius: 999px;
    color: #30251c;
    background: rgb(250 246 238 / var(--glass-paper));
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
}
html[data-office-edition] #back-to-top { --action-radius: 999px; min-width: 44px; min-height: 44px; padding-inline: 12px; }
html[data-office-edition] #site-header .office-uae-flag:focus-visible,
html[data-office-edition] .header-mobilebar .office-uae-flag:focus-visible { border-radius: 12px; }

/* The office glass shows the page underneath the navigation while keeping its type opaque. */
html[data-office-masthead], html[data-office-masthead][dir=rtl] {
    --office-glass-angle: 108deg;
    --omh-bg: linear-gradient(var(--office-glass-angle), rgb(48 52 59 / var(--glass-bar)), rgb(28 36 49 / var(--glass-bar)));
    --omh-soft: #f1ece3;
}
html[data-office-masthead][dir=rtl] { --office-glass-angle: 252deg; }
html[data-office-masthead] .header-sticky .header-mobilebar {
    --omh-bg: linear-gradient(var(--office-glass-angle), rgb(53 50 47 / max(.89, var(--glass-bar))), rgb(29 33 38 / max(.89, var(--glass-bar))));
}
html[data-office-masthead] #site-header .header-topbar { background: rgb(32 35 39 / var(--glass-bar)); }
html[data-office-masthead] #site-header .primary-menu > :is(.current-menu-item,.current-menu-parent) > a {
    background-color: rgb(43 53 66 / var(--glass-dark));
    box-shadow: inset 0 1px rgb(255 255 255 / .15);
}
html[data-office-masthead] :is(.header-navbar,.header-mobilebar,.header-topbar,.full-search-wrapper,.mobile-menu-floating,.omh-schedule,.full-bar-search-wrap),
html[data-office-edition] :is(.rev-sl-btn,.office-slide-next,#back-to-top,.chaty-cta-button button,.chaty-channel-list .chaty-icon) {
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
}
html[data-office-masthead] :is(.mobile-menu-floating,.full-search-wrapper) {
    --omh-bg: linear-gradient(var(--office-glass-angle), rgb(46 51 60 / var(--glass-sheet)), rgb(27 37 51 / var(--glass-sheet)));
}
html[data-office-masthead] #site-header :is(.omh-schedule,.full-bar-search-wrap) { background: rgb(39 41 43 / var(--glass-sheet)); }
/* The editable field and its action read as one control on a phone. */
html[data-office-masthead] #site-content :is(.wpcf7-form,#commentform,.post-password-form)
    :is(input:not([type]),input[type=text],input[type=email],input[type=url],input[type=tel],input[type=password],input[type=file],select,textarea) {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    padding: .68rem .9rem;
    border: 1px solid var(--field-line);
    border-radius: 13px;
    background: #faf9f6;
    box-shadow: inset 0 1px 2px rgb(35 49 65 / .035);
    color: var(--field-ink);
    font: 400 1rem/1.55 var(--office-text);
}
html[data-office-masthead] #site-content :is(.wpcf7-form,#commentform) textarea { min-height: 8rem; resize: vertical; }
html[data-office-masthead] #site-content .wpcf7-form input[type=file] { padding: .2rem .3rem; }
html[data-office-masthead] #site-content :is(.wpcf7-form,#commentform,.post-password-form) :is(input,textarea,select):focus-visible {
    border-color: var(--field-focus);
    outline: 2px solid var(--field-focus);
    outline-offset: 2px;
}
html[data-office-masthead] #site-content .wpcf7-form [aria-invalid=true] { border-color: #9c3938; }
html[data-office-masthead] #site-content :is(.wpcf7-form,#commentform) ::placeholder { color: #616772; opacity: 1; }
html[data-office-masthead] #commentform .comment-form-cookies-consent { display: flex; align-items: center; gap: .55rem; }
html[data-office-masthead] #commentform .comment-form-cookies-consent input { flex: 0 0 auto; accent-color: #344b61; }
html[data-office-masthead] #commentform .comment-form-cookies-consent label {
    display: inline-flex; align-items: center; min-height: 44px; margin: 0; line-height: 1.65;
}
html[data-office-masthead] #site-content .wp-block-search__inside-wrapper {
    display: flex; min-inline-size: 0; padding: 3px; gap: 4px;
    border: 1px solid var(--field-line); border-radius: 18px; background: #faf9f6;
}
html[data-office-masthead] #site-content .wp-block-search__inside-wrapper:focus-within {
    outline: 2px solid var(--field-focus); outline-offset: 2px;
}
html[data-office-masthead] #site-content .wp-block-search .wp-block-search__input {
    flex: 1 1 0; width: 0; min-height: 44px; border: 0; padding-inline: .65rem;
    border-radius: 13px; box-shadow: none; background: transparent; color: var(--field-ink);
    font: 400 1rem/1.5 var(--office-text);
}
html[data-office-masthead] #site-content .wp-block-search__button { --action-radius: 14px; }
html[data-office-masthead] #site-content .wp-block-search .wp-block-search__input:focus { outline: none; }
html[data-office-masthead] :is(.search-form input[name=s],#site-footer input[type=email]) { font-size: max(16px,1rem); }

html[data-office-masthead] #site-content aside :is(.cat-item,.wp-block-archives-list li) > a {
    display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em;
}
html[data-office-masthead] .mobile-menu-floating .mobile-menu > li > a:active,
html[data-office-masthead] #site-header .primary-menu > li > a:active { background-color: #3a485a; }
html[data-office-masthead] :is(.omh-hours summary,.ocf-phone,.primary-menu a,.mobile-menu a,.akb-file summary,.akb-older summary,.office-news-date,.office-news-share summary) {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgb(184 151 107 / .18);
}
html[data-office-masthead] :is(.header-titles a,.primary-menu a,.mobile-menu a,.ocf-phone,.omh-hours summary,.akb-file summary,.akb-older summary,.office-news-share summary):focus-visible {
    outline: 2px solid #fcf8f0; outline-offset: 1px; box-shadow: 0 0 0 5px #3a526e; border-radius: 12px;
}
html[data-office-masthead] #site-content :where(a,button,input,summary,select,textarea) { scroll-margin-block: 6.5rem 5rem; }
@media (max-width:767px) {
    html[data-office-masthead] #site-content :where(a,button,input,summary,select,textarea) { scroll-margin-block: 5rem 4.5rem; }
    html[data-office-edition] .chaty-widget .chaty-cta-main .on-hover-text { display: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
    html[data-office-edition] :where(.wpcf7-submit,.form-submit .submit,.post-more a,.akb-link,.akb-button,.ocf-actions a,.office-document-download a,.wp-block-search__button,.office-news-date) {
        transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, scale .14s ease;
    }
    html[data-office-edition] :where(.wpcf7-submit,.form-submit .submit,.post-more a,.akb-link,.akb-button,.ocf-actions a,.office-document-download a,.wp-block-search__button,.office-news-date):active:not(:disabled,[aria-disabled=true]) { scale: .98; }
}
@media (forced-colors: active) {
    html[data-office-edition] :where(button,input,a,summary):focus-visible { outline: 2px solid Highlight !important; }
    html[data-office-edition] :is(.akb-file-tabs [aria-selected=true],.post-pagination .active > span) { outline: 2px solid Highlight; outline-offset: -3px; }
}
