/* Search Form ------------------------------- */

.search-form {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    margin: 0 0 -0.8rem -0.8rem;
}

.search-form .search-field,
.search-form .search-submit {
    margin: 0 0 0.8rem 0.8rem;
}

.search-form label {
    align-items: stretch;
    display: flex;
    font-size: inherit;
    margin: 0;
    width: 100%;
}

.search-form .search-field {
    width: 100%;
}

.search-form .search-submit {
    flex-shrink: 0;
}

.search-form .search-submit:focus,
.search-form .search-submit:hover {
    text-decoration: none;
}

.search-modal {
    background: rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
    position: fixed;
    bottom: 0;
    left: -9999rem;
    top: 0;
    transition: opacity 0.2s linear, left 0s 0.2s linear;
    width: 100%;
    z-index: 999;
}

.admin-bar .search-modal.active {
    top: 32px;
}

@media (max-width: 782px) {

    .admin-bar .search-modal.active {
        top: 46px;
    }
}

.search-modal-inner {
    background: #fff;
    transform: translateY(-100%);
    transition: transform 0.15s linear, box-shadow 0.15s linear;
}

.search-modal-inner .section-inner {
    display: flex;
    justify-content: space-between;
    max-width: 90%;
}

.search-modal.active {
    left: 0;
    opacity: 1;
    transition: opacity 0.2s linear;
}

.search-modal.active .search-modal-inner {
    box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    transition: transform 0.25s ease-in-out, box-shadow 0.1s 0.25s linear;
}

button.search-untoggle {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    margin-right: -2.5rem;
    padding: 0 2.5rem;
}

.search-modal button.search-untoggle {
    color: inherit;
}

.search-modal.active .search-untoggle {
    animation: popIn both 0.3s 0.2s;
}

.search-untoggle svg {
    height: 1.5rem;
    transition: transform 0.15s ease-in-out;
    width: 1.5rem;
}

.search-untoggle:focus svg,
.search-untoggle:hover svg {
    transform: scale(1.15);
}


/* Modal Search Form ------------------------- */

.search-modal form {
    margin: 0;
    position: relative;
    width: 100%;
}

.search-modal .search-field {
    background: none;
    border: none;
    border-radius: 0;
    color: inherit;
    letter-spacing: -0.0277em;
    font-size: 1.2rem;
    height: 4rem;
    margin: 0 0 0 -2rem;
    max-width: calc(100% + 2rem);
    padding: 0 0 0 2rem;
    width: calc(100% + 2rem);
}

.search-modal .search-field::-webkit-input-placeholder {
    color: inherit;
}

.search-modal .search-field:-ms-input-placeholder {
    color: inherit;
}

.search-modal .search-field::-moz-placeholder {
    color: inherit;
    line-height: 4;
}

.search-modal .search-submit {
    position: absolute;
    right: -9999rem;
    top: 50%;
    transform: translateY(-50%);
}

.search-modal .search-submit:focus {
    right: 0;
}

@media ( min-width: 700px ) {
    .search-modal form {
        position: relative;
        width: 100%;
    }

    .search-untoggle svg {
        height: 1.5rem;
        width: 1.5rem;
    }

    .search-modal .search-field {
        border: none;
        font-size: 1.2rem;
        height: 4rem;
    }

    .search-modal .search-field::-moz-placeholder {
        line-height: 4.375;
    }
}


/* Toggles ----------------------------------- */

.toggle {
    -moz-appearance: none;
    -webkit-appearance: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    text-align: inherit;
    user-select: none;
}

button.toggle {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    font-size: inherit;
    font-weight: 400;
    letter-spacing: inherit;
    padding: 0;
    text-transform: none;
}

/* Cover Modals ------------------------------ */

.cover-modal {
    display: none;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
}

.cover-modal::-webkit-scrollbar {
    display: none !important;
}

.cover-modal.show-modal {
    display: block;
    cursor: pointer;
}

.cover-modal.show-modal > * {
    cursor: default;
}


/* Screen Reader Text ------------------------ */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
    word-break: normal;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    right: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
/* Sections ---------------------------------- */

.section-inner {
    margin-left: auto;
    margin-right: auto;
    max-width: 120rem;
    width: calc(100% - 4rem);
}

.section-inner.max-percentage {
    width: 100%;
}

.section-inner.thin {
    max-width: 58rem;
}

.section-inner.small {
    max-width: 80rem;
}

.section-inner.medium {
    max-width: 100rem;
}

.section-inner.no-margin {
    margin: 0;
}



/* Hiding and Showing ------------------------ */

.js .show-js {
    display: block !important;
}

.js .hide-js {
    display: none !important;
}

.no-js .show-no-js {
    display: block !important;
}

.no-js .hide-no-js {
    display: none !important;
}

