/* =========================================================
   CHARMELINE LANGUAGE EXPERIENCE
   ========================================================= */

.chlx-engine{
    position:fixed!important;
    left:-99999px!important;
    top:-99999px!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
}

/* Prevent Google toolbar from changing the page composition. */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame{
    display:none!important;
}
body{
    top:0!important;
}

/*
 * Private Spaces uses a light editorial background. Keep its header aligned
 * with the other Spaces pages by showing Charmeline's black signature logo.
 */
body.page-id-3368 .logo .logo_light{
    display:block!important;
}

body.page-id-3368 .logo .logo_dark{
    display:none!important;
}

/* Override the quote-flow hero rule, which otherwise restores the white logo
 * at the top of this specific page with a later, high-specificity !important. */
body.page-id-3368.charmeline-custom-page-active:not(.menu-open).charmeline-hero-top #header .logo .logoimg.logo_light,
body.page-id-3368.charmeline-custom-page-active:not(.menu-open).charmeline-hero-top #header.fixed .logo .logoimg.logo_light{
    display:block!important;
}

body.page-id-3368.charmeline-custom-page-active:not(.menu-open).charmeline-hero-top #header .logo .logoimg.logo_dark,
body.page-id-3368.charmeline-custom-page-active:not(.menu-open).charmeline-hero-top #header.fixed .logo .logoimg.logo_dark{
    display:none!important;
}

/*
 * Hide Google Translate's temporary loading badge and feedback tooltip.
 * Safari on iOS can leave the 104px loading badge visible after translation.
 */
.goog-te-spinner-pos,
.goog-te-spinner-animation,
.goog-te-spinner,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
#goog-gt-tt,
.goog-te-balloon-frame{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
}

/* One-time entrance */
.chlx-gate{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100dvh;
    padding:clamp(26px,5vw,80px);
    background:#fff;
    color:#0a0a0a;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .55s cubic-bezier(.22,.7,.25,1),
               visibility .55s ease;
    font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

.chlx-gate.chlx-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.chlx-gate.chlx-leaving{
    opacity:0;
    pointer-events:none;
}

html.chlx-gate-open,
html.chlx-gate-open body{
    overflow:hidden!important;
}

.chlx-gate-inner{
    width:min(100%,1040px);
    margin:auto;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    grid-template-areas:
        "brand brand"
        "copy languages"
        "note note";
    column-gap:clamp(70px,10vw,160px);
    row-gap:clamp(56px,8vh,100px);
    align-items:start;
}

.chlx-brand{
    grid-area:brand;
    display:flex;
    align-items:center;
}

.chlx-brand img{
    display:block;
    width:clamp(180px,13vw,210px);
    max-width:100%;
    height:auto;
    margin:0;
    object-fit:contain;
}

.chlx-copy{
    grid-area:copy;
}

.chlx-copy h2{
    margin:0 0 22px!important;
    max-width:560px;
    color:#0a0a0a!important;
    font-family:"Times New Roman","Baskerville",Georgia,serif!important;
    font-size:clamp(54px,7.5vw,108px)!important;
    font-weight:400!important;
    line-height:.92!important;
    letter-spacing:-.045em!important;
}

.chlx-copy p{
    margin:0!important;
    color:#77736d!important;
    font-size:10px!important;
    line-height:1.4!important;
    font-weight:500!important;
    letter-spacing:.18em!important;
    text-transform:uppercase!important;
}

.chlx-language-list{
    grid-area:languages;
    border-top:1px solid rgba(10,10,10,.16);
}

.chlx-language-list button{
    appearance:none;
    -webkit-appearance:none;
    width:100%;
    min-height:64px;
    margin:0;
    padding:0;
    display:grid;
    grid-template-columns:50px 1fr;
    align-items:center;
    gap:16px;
    border:0;
    border-bottom:1px solid rgba(10,10,10,.16);
    background:transparent;
    color:#0a0a0a;
    text-align:left;
    cursor:pointer;
    box-shadow:none;
    transition:padding .25s ease, opacity .25s ease;
}

.chlx-language-list button:hover,
.chlx-language-list button:focus-visible{
    padding-left:8px;
    outline:none;
}

.chlx-language-list button:disabled{
    cursor:wait;
    opacity:.48;
}

.chlx-language-list button span{
    color:#8b8780;
    font-size:9px;
    line-height:1;
    font-weight:500;
    letter-spacing:.18em;
}

.chlx-language-list button strong{
    font-family:"Times New Roman","Baskerville",Georgia,serif;
    font-size:clamp(24px,2.1vw,34px);
    line-height:1;
    font-weight:400;
    letter-spacing:-.025em;
}

.chlx-note{
    grid-area:note;
    margin:0!important;
    padding-top:18px;
    border-top:1px solid rgba(10,10,10,.12);
    color:#8d8982!important;
    font-size:8px!important;
    line-height:1.4!important;
    font-weight:500!important;
    letter-spacing:.18em!important;
    text-transform:uppercase!important;
}

/* Collection-aware return control for artwork pages. */
.chlx-return-link{
    position:relative;
    display:flex!important;
    align-items:center;
    justify-content:center;
    width:min(430px,100%);
    min-height:64px;
    margin:34px auto 40px!important;
    padding:12px 58px;
    border:1px solid rgba(21,21,21,.34)!important;
    border-radius:0;
    background:transparent!important;
    color:#151515!important;
    text-decoration:none!important;
    box-shadow:none!important;
    transition:background-color .28s ease,color .28s ease,border-color .28s ease;
}

.charmeline-product-sheet__button .chlx-return-link{
    margin:0 auto!important;
}

.chlx-return-link__icon{
    position:absolute;
    left:24px;
    top:50%;
    display:flex;
    width:32px;
    height:16px;
    transform:translateY(-50%);
}

.chlx-return-link__icon svg{
    display:block;
    width:100%;
    height:100%;
    overflow:visible;
    fill:none;
    stroke:currentColor;
    stroke-width:1;
    stroke-linecap:square;
    stroke-linejoin:miter;
}

.chlx-return-link__copy{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-width:0;
    text-align:center;
}

.chlx-return-link__lead{
    font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;
    font-size:8px;
    line-height:1.2;
    font-weight:500;
    letter-spacing:.2em;
    text-transform:uppercase;
}

.chlx-return-link__destination{
    font-family:"Times New Roman","Baskerville",Georgia,serif;
    font-size:18px;
    line-height:1.1;
    font-weight:400;
    letter-spacing:.01em;
    text-transform:none;
}

.chlx-return-link:hover,
.chlx-return-link:focus-visible{
    border-color:#151515!important;
    background:#151515!important;
    color:#fff!important;
    outline:none;
}

/* Replacement for the older Open Edition inquiry shortcode. */
.chlx-inquiry-link{
    display:flex!important;
    align-items:center;
    justify-content:center;
    gap:22px;
    width:min(630px,100%);
    min-height:58px;
    margin:28px auto!important;
    padding:14px 28px;
    border:1px solid #a4874d!important;
    background:transparent!important;
    color:#151515!important;
    font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;
    font-size:10px;
    line-height:1.2;
    font-weight:500;
    letter-spacing:.18em;
    text-align:center;
    text-decoration:none!important;
    text-transform:uppercase;
    box-shadow:none!important;
    transition:background-color .28s ease,color .28s ease;
}

.chlx-inquiry-link svg{
    width:22px;
    height:22px;
    fill:none;
    stroke:currentColor;
    stroke-width:1;
}

.chlx-inquiry-link:hover,
.chlx-inquiry-link:focus-visible{
    background:#151515!important;
    color:#fff!important;
    outline:none;
}

/* Optional inline switcher for a footer/menu using [charmeline_languages] */
.chlx-inline{
    display:flex;
    align-items:center;
    gap:15px;
    width:max-content;
}

.chlx-inline button{
    appearance:none;
    -webkit-appearance:none;
    position:relative;
    margin:0;
    padding:7px 0;
    border:0;
    background:transparent;
    color:inherit;
    font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;
    font-size:9px;
    line-height:1;
    font-weight:500;
    letter-spacing:.15em;
    cursor:pointer;
    opacity:.42;
    box-shadow:none;
}

.chlx-inline button:hover,
.chlx-inline button.chlx-active{
    opacity:1;
}

.chlx-inline button.chlx-active:after{
    content:"";
    position:absolute;
    left:0;
    right:.15em;
    bottom:1px;
    height:1px;
    background:currentColor;
}

/* Mobile */
@media(max-width:767px){

    .chlx-return-link{
        width:min(430px,100%);
        min-height:62px;
        margin:28px auto 38px!important;
        padding:11px 50px;
    }

    .charmeline-product-sheet__button .chlx-return-link{
        margin:0 auto!important;
    }

    .chlx-return-link__icon{
        left:18px;
        width:27px;
        height:14px;
    }

    .chlx-return-link__lead{
        font-size:7px;
        letter-spacing:.16em;
    }

    .chlx-return-link__destination{
        font-size:16px;
    }

    .chlx-inquiry-link{
        width:100%;
        min-height:56px;
        padding:13px 20px;
        font-size:9px;
        letter-spacing:.14em;
    }

    /* Keep the Open Editions arrow typographic on iOS, never emoji-style. */
    .ch-oe-product-link > span{
        display:inline-block;
        width:1em;
        min-width:1em;
        overflow:hidden;
        font-size:0!important;
        line-height:1;
        letter-spacing:0!important;
        text-align:right;
    }

    .ch-oe-product-link > span::before{
        content:"\2197\FE0E";
        font-family:Arial,Helvetica,sans-serif;
        font-size:12px;
        font-style:normal;
        font-weight:300;
        line-height:1;
    }

    .chlx-gate{
        align-items:flex-start;
        overflow:auto;
        padding:34px 24px 30px;
    }

    .chlx-gate-inner{
        min-height:calc(100dvh - 64px);
        display:flex;
        flex-direction:column;
        gap:0;
    }

    .chlx-brand{
        margin-bottom:auto;
        padding-bottom:70px;
    }

    .chlx-brand img{
        width:160px;
    }

    .chlx-copy{
        margin-bottom:50px;
    }

    .chlx-copy h2{
        margin-bottom:18px!important;
        font-size:clamp(52px,15vw,78px)!important;
    }

    .chlx-language-list{
        width:100%;
    }

    .chlx-language-list button{
        min-height:58px;
        grid-template-columns:44px 1fr;
    }

    .chlx-language-list button strong{
        font-size:27px;
    }

    .chlx-note{
        width:100%;
        margin-top:50px!important;
    }
}

@media(prefers-reduced-motion:reduce){
    .chlx-gate,
    .chlx-language-list button{
        transition:none!important;
    }
}
