.authors-directory {
    padding-block: 42px 56px;
    background: #ffffff;
    font-family: var(--pm-font-family);
}

.authors-directory__container {
    width: min(100% - 32px, var(--pm-content-width));
    max-width: var(--pm-content-width);
    margin-inline: auto;
}

.authors-directory__hero {
    max-width: 800px;
    margin: 0 auto 42px;
    text-align: center;
}

.authors-directory__hero h1 {
    margin: 0 0 12px;
    color: var(--pm-color-text);
    font-family: var(--pm-font-family);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
}

.authors-directory__hero p {
    max-width: 620px;
    margin: 0 auto 26px;
    color: #414141;
    font-size: 18px;
    line-height: 1.5;
}

.authors-directory-search {
    max-width: 760px;
    margin-inline: auto;
}

.authors-directory-search__label {
    display: block;
    margin-bottom: 10px;
    color: var(--pm-color-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.authors-directory-search__input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #ffffff;
    color: var(--pm-color-text);
    font-family: var(--pm-font-family);
    font-size: 16px;
    line-height: 1.4;
}

.authors-directory-search__input:focus {
    border-color: var(--pm-color-primary);
    box-shadow: 0 0 0 3px rgba(var(--pm-color-primary-rgb), 0.14);
    outline: 0;
}

.authors-directory-search__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.authors-directory-search__button {
    cursor: pointer;
}

.pm-button-primary--outline {
    border: 1px solid var(--pm-color-primary);
    background: #ffffff;
    color: var(--pm-color-primary);
}

.pm-button-primary--outline:hover,
.pm-button-primary--outline:focus-visible {
    background: rgba(239, 60, 38, 0.08);
    color: var(--pm-color-primary);
}

.authors-directory__results {
    margin-top: 0;
}

.authors-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.authors-directory__grid-item,
.authors-directory-card,
.authors-directory-card__body {
    min-width: 0;
}

.authors-directory-card {
    display: flex;
    height: 100%;
    padding: 28px 24px 30px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    box-shadow: var(--pm-shadow-content-card);
    text-align: center;
}

.authors-directory-card__body {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.authors-directory-card__name {
    margin-top: 15px;
    margin-bottom: 3px;
}

.authors-directory-card__bio {
    max-width: 28rem;
    margin-top: 10px;
}

.authors-directory__empty {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid #eeeeee;
    background: #ffffff;
    box-shadow: var(--pm-shadow-content-card);
    font-family: var(--pm-font-family);
}

.authors-directory__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    font-family: var(--pm-font-family);
}

.authors-directory__pagination .page-numbers {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #e2e2e2;
    background: #ffffff;
    color: var(--pm-color-text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.authors-directory__pagination .page-numbers.current,
.authors-directory__pagination .page-numbers:hover,
.authors-directory__pagination .page-numbers:focus-visible {
    border-color: var(--pm-color-primary);
    background: var(--pm-color-primary);
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .authors-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .authors-directory {
        padding-block: 32px 44px;
    }

    .authors-directory__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .authors-directory-search__button {
        width: 100%;
        max-width: 320px;
    }
}
