.csvr-search-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    background: rgba(15, 31, 30, .38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.csvr-search-modal[hidden],
.csvr-search-modal [hidden] {
    display: none !important;
}

.csvr-search-modal.is-open,
.csvr-search-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.csvr-search-modal__panel {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(100%, 560px);
    height: 100%;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #14221f;
    background: linear-gradient(180deg, #f4f8f8 0, #f8fbfb 240px, #fff 560px);
    border-left: 1px solid rgba(0, 168, 157, .14);
    box-shadow: -18px 0 50px rgba(15, 31, 30, .16);
    transform: translate3d(100%, 0, 0);
    transition: transform .35s ease;
    will-change: transform;
    scrollbar-color: #b5d9d4 transparent;
    scrollbar-width: thin;
}

.csvr-search-modal.is-open .csvr-search-modal__panel {
    transform: translate3d(0, 0, 0);
}

.csvr-search-modal__heading {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 68px 28px 0;
}

.csvr-search-modal__eyebrow {
    margin: 0 0 6px;
    color: #00857c;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.csvr-search-modal__heading h2 {
    margin: 0;
    color: #0f1f1e;
    font-size: clamp(25px, 5vw, 32px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.csvr-search-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: #0f1f1e;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #dce6e4;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(15, 31, 30, .1);
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.csvr-search-modal__close:hover,
.csvr-search-modal__close:focus-visible {
    color: #00857c;
    background: #fff;
    border-color: #00a89d;
}

.csvr-search-modal__close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.csvr-search-modal__views {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 18px 24px 0;
    padding: 5px;
    background: #f7fbfa;
    border: 1px solid rgba(0, 168, 157, .16);
    border-radius: 13px;
}

.csvr-search-modal__view {
    display: inline-flex;
    min-width: 0;
    min-height: 37px;
    align-items: center;
    justify-content: center;
    padding: 7px 5px;
    color: #4b615f;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.csvr-search-modal__view:hover {
    color: #0f1f1e;
    background: rgba(0, 168, 157, .08);
}

.csvr-search-modal__view.is-active {
    color: #fff;
    background: #00a89d;
    box-shadow: 0 3px 8px rgba(0, 133, 124, .16);
}

.csvr-search-modal__view-panel {
    padding: 20px 24px 0;
    outline: none;
}

.csvr-search-modal__contact-list,
.csvr-search-modal__social-list {
    display: grid;
    gap: 11px;
}

.csvr-search-modal__contact-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    color: #0f1f1e;
    background: #f9fdfc;
    border: 1px solid rgba(0, 168, 157, .16);
    border-radius: 13px;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.csvr-search-modal__contact-card:hover,
.csvr-search-modal__contact-card:focus-visible {
    color: #0f1f1e;
    background: #f2fbf9;
    border-color: rgba(0, 168, 157, .62);
    outline: 0;
    text-decoration: none;
    transform: translateY(-1px);
}

.csvr-search-modal__contact-card > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.csvr-search-modal__contact-icon {
    display: grid;
    flex: 0 0 auto;
    width: 37px;
    height: 37px;
    place-items: center;
    color: #00857c;
    background: #e8f7f4;
    border-radius: 10px;
    font-size: 15px;
}

.csvr-search-modal__contact-label {
    color: #4b615f;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.csvr-search-modal__contact-card strong {
    overflow-wrap: anywhere;
    color: #0f1f1e;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.csvr-search-modal__contact-card--address {
    align-items: flex-start;
}

.csvr-search-modal__contact-card--address .csvr-search-modal__contact-icon {
    margin-top: 1px;
}

.csvr-search-modal__contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 13px 15px;
    color: #fff;
    background: #00a89d;
    border: 1px solid #00a89d;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease;
}

.csvr-search-modal__contact-cta:hover,
.csvr-search-modal__contact-cta:focus-visible {
    color: #fff;
    background: #00857c;
    border-color: #00857c;
    outline: 0;
    text-decoration: none;
}

.csvr-search-modal__contact-cta span,
.csvr-search-modal__social-open span {
    font-size: 17px;
    line-height: 1;
}

.csvr-search-modal__category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: 14px 28px 0;
}

.csvr-search-modal__category {
    display: inline-flex;
    min-height: 33px;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: #53635f;
    background: #fff;
    border: 1px solid #dbe6e3;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.csvr-search-modal__category > span {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    color: inherit;
    background: rgba(20, 34, 31, .07);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.csvr-search-modal__category:hover,
.csvr-search-modal__category.is-active {
    color: #006f67;
    background: #e8f7f4;
    border-color: rgba(0, 168, 157, .45);
}

.csvr-search-modal__category.is-active > span {
    background: rgba(0, 168, 157, .14);
}

.csvr-search-modal__form {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin: 18px 28px 0;
    padding: 0 9px 0 14px;
    background: #fff;
    border: 1px solid #cddfdb;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(15, 31, 30, .045);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.csvr-search-modal__form:focus-within {
    border-color: #00a89d;
    box-shadow: 0 0 0 3px rgba(0, 168, 157, .12);
}

.csvr-search-modal__search-icon {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #008a80;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.csvr-search-modal__form .search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 50px;
    margin: 0;
    padding: 0;
    color: #14221f;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.4;
    outline: 0;
}

.csvr-search-modal__form .search-input::placeholder {
    color: #82918e;
    opacity: 1;
}

.csvr-search-modal__submit {
    display: grid;
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: #00a89d;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: background .18s ease;
}

.csvr-search-modal__submit:hover,
.csvr-search-modal__submit:focus-visible {
    background: #00857c;
}

.csvr-search-modal__submit svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.csvr-search-modal__status {
    margin: 15px 28px 8px;
    color: #64736f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.csvr-search-modal__results {
    padding: 0 28px 4px;
}

.csvr-search-modal__group + .csvr-search-modal__group {
    margin-top: 15px;
}

.csvr-search-modal__group-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    color: #00857c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.csvr-search-modal__group-title::after {
    height: 1px;
    flex: 1 1 auto;
    content: "";
    background: linear-gradient(90deg, rgba(0, 168, 157, .22), transparent);
}

.csvr-search-modal__list {
    display: grid;
    gap: 8px;
}

.csvr-search-modal__result {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px 13px;
    color: #14221f;
    background: #fff;
    border: 1px solid #e3ecea;
    border-radius: 11px;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.csvr-search-modal__result:hover,
.csvr-search-modal__result:focus-visible {
    color: #14221f;
    background: #f0fbf9;
    border-color: rgba(0, 168, 157, .55);
    box-shadow: 0 6px 16px rgba(0, 103, 95, .08);
    outline: 0;
    text-decoration: none;
    transform: translateY(-1px);
}

.csvr-search-modal__result-icon {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #007c73;
    background: #e5f6f3;
    border: 1px solid #c6e9e4;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 850;
}

.csvr-search-modal__result-icon--projects {
    color: #146c8a;
    background: #e8f5fa;
    border-color: #c9e4ef;
}

.csvr-search-modal__result-icon--articles {
    color: #855a18;
    background: #fff5df;
    border-color: #f3e2bb;
}

.csvr-search-modal__result-content {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 3px;
}

.csvr-search-modal__result-type {
    color: #00857c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.csvr-search-modal__result-category {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    color: #60736f;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.csvr-search-modal__result-title {
    overflow: hidden;
    color: #1a2a26;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.csvr-search-modal__result-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: #63716e;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.csvr-search-modal__result-arrow {
    flex: 0 0 auto;
    color: #00857c;
    font-size: 16px;
    line-height: 1;
}

.csvr-search-modal__hint {
    margin: 14px 0 0;
    padding: 14px 28px 20px;
    color: #86938f;
    border-top: 1px solid rgba(0, 168, 157, .12);
    font-size: 11px;
    line-height: 1.5;
}

.csvr-search-modal__intro {
    margin: 0 0 15px;
    color: #4b615f;
    font-size: 13px;
    line-height: 1.5;
}

.csvr-search-modal__social-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 13px;
    color: #0f1f1e;
    background: #f9fdfc;
    border: 1px solid rgba(0, 168, 157, .16);
    border-radius: 13px;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.csvr-search-modal__social-card:hover,
.csvr-search-modal__social-card:focus-visible {
    color: #0f1f1e;
    background: #f2fbf9;
    border-color: rgba(0, 168, 157, .62);
    outline: 0;
    text-decoration: none;
    transform: translateY(-1px);
}

.csvr-search-modal__social-icon {
    display: grid;
    flex: 0 0 auto;
    width: 37px;
    height: 37px;
    place-items: center;
    color: #00857c;
    background: #e8f7f4;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
}

.csvr-search-modal__social-card strong {
    flex: 1 1 auto;
    color: #0f1f1e;
    font-size: 13px;
    font-weight: 750;
}

.csvr-search-modal__social-open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #00857c;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.csvr-search-modal__social-empty {
    margin: 0;
    padding: 14px;
    color: #64736f;
    background: #f9fdfc;
    border: 1px dashed rgba(0, 168, 157, .3);
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.csvr-search-modal__close:focus-visible,
.csvr-search-modal__view:focus-visible,
.csvr-search-modal__category:focus-visible,
.csvr-search-modal__submit:focus-visible {
    outline: 3px solid rgba(0, 168, 157, .28);
    outline-offset: 2px;
}

#reactheme-header .sticky_search {
    padding: 0;
    background: transparent;
    border: 0;
    line-height: 1;
}

@media (max-width: 600px) {
    .csvr-search-modal__panel {
        width: 100%;
        max-height: 100dvh;
        border-left: 0;
    }

    .csvr-search-modal__heading {
        padding: 68px 18px 0;
    }

    .csvr-search-modal__views {
        margin: 15px 17px 0;
    }

    .csvr-search-modal__view {
        min-height: 35px;
        padding: 6px 3px;
        font-size: 10px;
    }

    .csvr-search-modal__view-panel {
        padding: 17px 18px 0;
    }

    .csvr-search-modal__form {
        margin-right: 18px;
        margin-left: 18px;
    }

    .csvr-search-modal__status {
        margin-right: 18px;
        margin-left: 18px;
    }

    .csvr-search-modal__results {
        padding-right: 18px;
        padding-left: 18px;
    }

    .csvr-search-modal__result {
        gap: 9px;
        padding: 9px;
    }

    .csvr-search-modal__result-title {
        font-size: 13px;
    }

    .csvr-search-modal__hint {
        padding-right: 18px;
        padding-left: 18px;
    }

    .csvr-search-modal__social-card {
        gap: 9px;
        padding: 11px;
    }

    .csvr-search-modal__social-open {
        font-size: 9px;
    }
}

@media (max-width: 600px) {
    .csvr-search-modal__close {
        top: 16px;
        right: 16px;
    }

    .csvr-search-modal__category-filters {
        margin-right: 18px;
        margin-left: 18px;
        gap: 6px;
    }

    .csvr-search-modal__result-excerpt {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .csvr-search-modal,
    .csvr-search-modal__panel,
    .csvr-search-modal__view,
    .csvr-search-modal__category,
    .csvr-search-modal__result,
    .csvr-search-modal__contact-card,
    .csvr-search-modal__social-card,
    .csvr-search-modal__contact-cta,
    .csvr-search-modal__close {
        transition-duration: .01ms;
    }
}
