/* =========================================================
   TMX LABS — SHARED SEARCH
========================================================= */

.tmx-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.tmx-search-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   BACKDROP
========================================================= */

.tmx-search-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(17, 20, 17, .72);

    backdrop-filter:
        blur(8px);
}


/* =========================================================
   PANEL
========================================================= */

.tmx-search-panel {

    position: relative;

    width: min(
        760px,
        calc(100% - 40px)
    );

    max-height:
        calc(100vh - 80px);

    margin:
        40px auto 0;

    padding:
        34px;

    background:
        #f4f4f0;

    border:
        1px solid #dedfd9;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.25);

    transform:
        translateY(-15px);

    transition:
        transform .3s ease;

    overflow:
        hidden auto;
}

.tmx-search-overlay.active
.tmx-search-panel {

    transform:
        translateY(0);
}


/* =========================================================
   HEADER
========================================================= */

.tmx-search-header {

    display: flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    margin-bottom:
        40px;
}


.tmx-search-eyebrow {

    font-size:
        10px;

    letter-spacing:
        .16em;

    text-transform:
        uppercase;

    color:
        #777b77;
}


.tmx-search-close {

    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid #dedfd9;

    background:
        #ffffff;

    color:
        #111111;

    font-size:
        24px;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.tmx-search-close:hover {

    background:
        #111111;

    color:
        #ffffff;
}


/* =========================================================
   TITLE
========================================================= */

.tmx-search-title h2 {

    margin:
        0 0 28px;

    font-size:
        clamp(38px, 5vw, 62px);

    line-height:
        .95;

    letter-spacing:
        -.055em;

    font-weight:
        500;

    color:
        #111111;
}


/* =========================================================
   INPUT
========================================================= */

.tmx-search-input-wrap {

    position:
        relative;

    border-bottom:
        1px solid #111111;

    margin-bottom:
        14px;
}


.tmx-search-icon {

    position:
        absolute;

    left:
        0;

    top:
        50%;

    width:
        20px;

    height:
        20px;

    transform:
        translateY(-50%);

    fill:
        none;

    stroke:
        #777b77;

    stroke-width:
        1.5;
}


#tmxSearchInput {

    width:
        100%;

    height:
        58px;

    padding:
        0 0 0 34px;

    border:
        0;

    outline:
        none;

    background:
        transparent;

    color:
        #111111;

    font-family:
        inherit;

    font-size:
        18px;

    letter-spacing:
        -.01em;
}


#tmxSearchInput::placeholder {

    color:
        #999d98;
}


/* =========================================================
   META
========================================================= */

.tmx-search-meta {

    margin-bottom:
        20px;

    font-size:
        10px;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;

    color:
        #777b77;
}


/* =========================================================
   RESULTS
========================================================= */

.tmx-search-results {

    display:
        flex;

    flex-direction:
        column;

    border-top:
        1px solid #dedfd9;
}


.tmx-search-result {

    width:
        100%;

    padding:
        18px 4px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    border:
        0;

    border-bottom:
        1px solid #dedfd9;

    background:
        transparent;

    color:
        #111111;

    text-align:
        left;

    cursor:
        pointer;

    font-family:
        inherit;

    transition:
        padding .2s ease,
        background .2s ease;
}


.tmx-search-result:hover {

    padding-left:
        10px;

    padding-right:
        10px;

    background:
        #ffffff;
}


/* =========================================================
   RESULT LEFT
========================================================= */

.tmx-result-left {

    display:
        flex;

    flex-direction:
        column;

    gap:
        4px;
}


.tmx-result-category {

    font-size:
        9px;

    letter-spacing:
        .12em;

    text-transform:
        uppercase;

    color:
        #7ea43d;
}


.tmx-result-left strong {

    font-size:
        16px;

    font-weight:
        500;
}


.tmx-result-left small {

    font-size:
        10px;

    color:
        #777b77;
}


/* =========================================================
   RESULT RIGHT
========================================================= */

.tmx-result-right {

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-end;

    gap:
        4px;

    white-space:
        nowrap;
}


.tmx-result-right strong {

    font-size:
        13px;

    font-weight:
        600;
}


.tmx-result-right span {

    font-size:
        9px;

    letter-spacing:
        .1em;

    text-transform:
        uppercase;

    color:
        #777b77;
}


/* =========================================================
   EMPTY
========================================================= */

.tmx-search-empty {

    padding:
        45px 0;

    display:
        flex;

    flex-direction:
        column;

    gap:
        8px;
}


.tmx-search-empty strong {

    font-size:
        18px;

    font-weight:
        500;
}


.tmx-search-empty span {

    font-size:
        12px;

    color:
        #777b77;
}


/* =========================================================
   FOOTER
========================================================= */

.tmx-search-footer {

    display:
        flex;

    justify-content:
        space-between;

    padding-top:
        24px;

    font-size:
        9px;

    letter-spacing:
        .1em;

    text-transform:
        uppercase;

    color:
        #999d98;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.search-open {

    overflow:
        hidden;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .tmx-search-panel {

        width:
            calc(100% - 24px);

        max-height:
            calc(100vh - 24px);

        margin:
            12px auto 0;

        padding:
            24px;
    }


    .tmx-search-header {

        margin-bottom:
            30px;
    }


    .tmx-search-title h2 {

        font-size:
            44px;
    }


    .tmx-search-result {

        padding:
            16px 0;
    }


    .tmx-result-right span {

        display:
            none;
    }

}