.wp-block-cassels-people-search {
    position: relative;
    z-index: 30;
}

.wp-block-cassels-people-search .people-search__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 1rem;
    min-height: 0;
    border-bottom: 1px solid var(--wp--preset--color--additional-2);
    background: transparent;
    padding: 0;
}

.wp-block-cassels-people-search .people-search__input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    border-radius: 0;
    padding: 1rem 0;
    background: transparent;
    color: var(--wp--preset--color--secondary-1);
    -webkit-text-fill-color: var(--wp--preset--color--secondary-1);
    caret-color: var(--wp--preset--color--secondary-1);
    font-size: clamp(1rem, 1rem + 0.2vw, 1.35rem);
    line-height: 1.2;
    box-shadow: none;
}

.wp-block-cassels-people-search .people-search__input::placeholder {
    color: var(--wp--preset--color--contrast);
    opacity: 0.8;
}

.wp-block-cassels-people-search .people-search__input:focus {
    outline: 0;
    box-shadow: none;
    color: var(--wp--preset--color--secondary-1);
    -webkit-text-fill-color: var(--wp--preset--color--secondary-1);
    border-bottom-width: 2px !important;
    border-bottom-color: var(--wp--preset--color--accent) !important;
}

.wp-block-cassels-people-search .people-search__input:not(:placeholder-shown) {
    color: var(--wp--preset--color--secondary-1);
    -webkit-text-fill-color: var(--wp--preset--color--secondary-1);
}

.wp-block-cassels-people-search .people-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--wp--preset--color--contrast) !important;
    -webkit-text-fill-color: var(--wp--preset--color--contrast);
    padding: 0;
    cursor: default;
}

.wp-block-cassels-people-search .people-search__submit::before,
.wp-block-cassels-people-search .people-search__submit::after {
    content: none !important;
}

.wp-block-cassels-people-search .people-search__submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.wp-block-cassels-people-search .people-search__submit-icon svg {
    display: block;
    width: 1.2rem;
    height: auto;
}

.wp-block-cassels-people-search .people-search__submit-icon .st0 {
    stroke: currentColor;
}

.wp-block-cassels-people-search .people-search__submit:disabled {
    opacity: 1;
}

.wp-block-cassels-people-search.has-value .people-search__submit {
    cursor: pointer;
    outline: 0;
    box-shadow: none;
}

.wp-block-cassels-people-search.has-value .people-search__submit:hover,
.wp-block-cassels-people-search.has-value .people-search__submit:focus-visible {
    color: var(--wp--preset--color--accent) !important;
    -webkit-text-fill-color: var(--wp--preset--color--accent);
    outline: 0;
    box-shadow: none;
}

.wp-block-cassels-people-search .people-search__overlay[hidden] {
    display: none;
}

.wp-block-cassels-people-search .people-search__overlay {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    z-index: 40;
}

.wp-block-cassels-people-search .people-search__panel {
    position: relative;
    background: var(--wp--preset--color--base);
    color: var(--wp--preset--color--secondary-1);
    border: 1px solid var(--wp--preset--color--secondary-1);
    box-shadow: 0 24px 40px rgb(0 0 0 / 0.18);
    max-height: min(60vh, 42rem);
    overflow: auto;
}

.wp-block-cassels-people-search .people-search__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.wp-block-cassels-people-search .people-search__results {
    padding: 0 1.5rem 1rem;
}

.wp-block-cassels-people-search .people-search__message {
    margin: 0;
    padding: 1rem 0 1.5rem;
    color: var(--wp--preset--color--secondary-1);
}

.wp-block-cassels-people-search .people-search__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-block-cassels-people-search .people-search__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgb(0 47 108 / 0.12);
}

.wp-block-cassels-people-search .people-search__item:last-child {
    border-bottom: 0;
}

.wp-block-cassels-people-search .people-search__result {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 0;
    text-decoration: none;
}

.wp-block-cassels-people-search .people-search__thumb {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
}

.wp-block-cassels-people-search .people-search__thumb img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.wp-block-cassels-people-search .people-search__copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
}

.wp-block-cassels-people-search .people-search__link {
    color: var(--wp--preset--color--secondary-1);
    /* T-112: match the people card names (homepage, Our Team). */
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
    text-underline-offset: 0.2em;
}

.wp-block-cassels-people-search .people-search__result:hover .people-search__link,
.wp-block-cassels-people-search .people-search__result:focus-visible .people-search__link {
    color: var(--wp--preset--color--secondary-4); /* T-112: dark tan */
    text-decoration: underline;
}

.wp-block-cassels-people-search .people-search__meta {
    margin-top: 0.45rem;
    color: var(--wp--preset--color--additional-2);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.wp-block-cassels-people-search .people-search__preview-result {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1rem;
}

.wp-block-cassels-people-search .people-search__preview-thumb {
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background: rgb(0 47 108 / 0.12);
}

.wp-block-cassels-people-search .people-search__preview-copy {
    display: flex;
    flex-direction: column;
}

.wp-block-cassels-people-search .people-search__preview-name,
.wp-block-cassels-people-search .people-search__preview-meta {
    margin: 0;
}

.wp-block-cassels-people-search .people-search__preview-name {
    font-weight: 600;
}

.wp-block-cassels-people-search .people-search__preview-meta {
    margin-top: 0.35rem;
    color: var(--wp--preset--color--additional-2);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.wp-block-cassels-people-search.is-editor-preview .components-placeholder {
    min-height: auto;
}

.wp-block-cassels-people-search .people-search__controls--preview .people-search__submit[disabled],
.wp-block-cassels-people-search .people-search__controls--preview .people-search__input[disabled] {
    opacity: 1;
}

.wp-block-cassels-people-search .people-search__controls--preview .people-search__submit[disabled] {
    cursor: default;
}

@media (max-width: 782px) {
    .wp-block-cassels-people-search .people-search__controls {
        grid-template-columns: 1fr;
    }

    .wp-block-cassels-people-search .people-search__submit {
        justify-self: start;
    }

    .wp-block-cassels-people-search .people-search__panel {
        max-height: 65vh;
    }

    .wp-block-cassels-people-search .people-search__results {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    body.home .wp-block-cassels-people-search .people-search__controls {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.5rem;
    }

    body.home .wp-block-cassels-people-search .people-search__input {
        overflow: hidden;
        font-size: clamp(14px, 4vw, 18px) !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.home .wp-block-cassels-people-search .people-search__input::placeholder {
        font-size: inherit !important;
    }

    body.home .wp-block-cassels-people-search .people-search__submit {
        justify-self: end;
    }
}
