/* Instructors page: scoped Gutenberg shell and dynamic directory block. */

.sf-instructors {
    overflow: clip;
    background: var(--page);
    color: var(--body);
    font-family: var(--font);
}

.sf-instructors .sf-instructors__hero {
    background: var(--blue-tint);
}

.sf-instructors .sf-instructors__inner,
.sf-instructors .sf-instructors__inner > .wp-block-group__inner-container {
    width: 100%;
    min-width: 0;
}

.sf-instructors .sf-instructors__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: var(--soofos-space-3xl) var(--soofos-space-xl);
}

.sf-instructors .sf-instructors__inner > .wp-block-group__inner-container {
    grid-column: 1 / -1;
}

.sf-instructors .sf-instructors__eyebrow {
    margin: 0 0 var(--soofos-space-md);
    color: var(--deep-blue);
    font-size: .8125rem;
    font-weight: var(--soofos-font-weight-black);
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.sf-instructors .sf-instructors__title {
    max-width: 17ch;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.25rem, 8vw, 4.5rem);
    font-weight: var(--soofos-font-weight-black);
    letter-spacing: -.04em;
    line-height: 1.03;
}

.sf-instructors .sf-instructors__lead {
    max-width: 44rem;
    margin: var(--soofos-space-xl) 0 0;
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.sf-instructors .sf-instructors__directory {
    min-width: 0;
}

.sf-instructors .sf-instructors__directory-heading {
    max-width: 44rem;
}

.sf-instructors .sf-instructors__directory-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.75rem, 5vw, 2.625rem);
    font-weight: var(--soofos-font-weight-black);
    letter-spacing: -.025em;
    line-height: 1.15;
}

.sf-instructors .sf-instructors__directory-heading p {
    margin: var(--soofos-space-md) 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.sf-instructors .sf-instructors__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--soofos-space-xl);
    margin: var(--soofos-space-2xl) 0 0;
    padding: 0;
    list-style: none;
}

.sf-instructors .sf-instructors__grid > li,
.sf-instructors .sf-instructors__item {
    min-width: 0;
    margin: 0;
}

.sf-instructors .sf-instructors__card {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: var(--soofos-space-lg);
    height: 100%;
    min-height: var(--soofos-control-min-height);
    padding: var(--soofos-space-xl);
    border: var(--soofos-space-2xs) solid var(--card-border);
    border-radius: var(--r-card);
    background: var(--white);
    color: var(--body);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sf-instructors .sf-instructors__card:hover {
    border-color: var(--blue-border);
    box-shadow: var(--shadow-card);
    transform: translateY(calc(var(--soofos-space-2xs) * -1));
}

.sf-instructors .sf-instructors__card:focus-visible {
    outline: var(--soofos-space-2xs) solid var(--deep-blue);
    outline-offset: var(--soofos-space-xs);
}

.sf-instructors .sf-instructors__avatar {
    display: grid;
    width: 6rem;
    aspect-ratio: 1;
    align-self: start;
    overflow: hidden;
    border-radius: 50%;
    background: var(--blue-fill);
    color: var(--deep-blue);
    place-items: center;
}

.sf-instructors .sf-instructors__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-instructors .sf-instructors__avatar-fallback {
    font-size: 2rem;
    font-weight: var(--soofos-font-weight-black);
    line-height: 1;
}

.sf-instructors .sf-instructors__card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.sf-instructors .sf-instructors__name {
    margin: 0;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: var(--soofos-font-weight-black);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sf-instructors .sf-instructors__headline,
.sf-instructors .sf-instructors__expertise {
    margin-top: var(--soofos-space-sm);
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.sf-instructors .sf-instructors__expertise {
    color: var(--deep-blue);
}

.sf-instructors .sf-instructors__course-count {
    margin-top: auto;
    padding-top: var(--soofos-space-lg);
    color: var(--muted-2);
    font-size: .875rem;
    font-weight: var(--soofos-font-weight-bold);
    line-height: 1.4;
}

.sf-instructors .sf-instructors__empty {
    margin: var(--soofos-space-2xl) 0 0;
    padding: var(--soofos-space-xl);
    border: var(--soofos-space-2xs) solid var(--card-border);
    border-radius: var(--r-card);
    background: var(--white);
    color: var(--muted);
}

.sf-instructors .sf-instructors__pagination {
    margin-top: var(--soofos-space-2xl);
}

.sf-instructors .sf-instructors__pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--soofos-space-sm);
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-instructors .sf-instructors__pagination a,
.sf-instructors .sf-instructors__pagination [aria-current="page"] {
    display: inline-flex;
    min-width: var(--soofos-control-min-height);
    min-height: var(--soofos-control-min-height);
    align-items: center;
    justify-content: center;
    padding: var(--soofos-space-sm) var(--soofos-space-md);
    border: var(--soofos-space-2xs) solid var(--blue-border);
    border-radius: var(--r-btn);
    background: var(--white);
    color: var(--deep-blue);
    font-weight: var(--soofos-font-weight-extrabold);
    line-height: 1.2;
    text-decoration: none;
}

.sf-instructors .sf-instructors__pagination a:hover {
    border-color: var(--blue);
    background: var(--blue-tint);
}

.sf-instructors .sf-instructors__pagination a:focus-visible {
    outline: var(--soofos-space-2xs) solid var(--deep-blue);
    outline-offset: var(--soofos-space-xs);
}

.sf-instructors .sf-instructors__pagination [aria-current="page"] {
    border-color: var(--deep-blue);
    background: var(--deep-blue);
    color: var(--white);
}

.sf-instructors .sf-instructors__ellipsis {
    padding: 0 var(--soofos-space-xs);
    color: var(--muted-2);
}

@media (min-width: 42rem) {
    .sf-instructors .sf-instructors__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sf-instructors .sf-instructors__card {
        grid-template-columns: 5rem minmax(0, 1fr);
    }

    .sf-instructors .sf-instructors__avatar {
        width: 5rem;
    }
}

@media (min-width: 70rem) {
    .sf-instructors .sf-instructors__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 26rem) {
    .sf-instructors .sf-instructors__inner {
        padding-right: var(--soofos-space-lg);
        padding-left: var(--soofos-space-lg);
    }

    .sf-instructors .sf-instructors__card {
        grid-template-columns: 4.5rem minmax(0, 1fr);
        padding: var(--soofos-space-lg);
    }

    .sf-instructors .sf-instructors__avatar {
        width: 4.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-instructors .sf-instructors__card {
        transition: none;
    }

    .sf-instructors .sf-instructors__card:hover {
        transform: none;
    }
}
