.tsp-college-player-directory {
    background: #eef0f1;
    color: #14191c;
}

.tsp-college-directory {
    box-sizing: border-box;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: clamp(12px, 3vw, 32px);
    font: 15px/1.45 system-ui, sans-serif;
}

.tsp-college-directory h1 {
    margin: 4px 0 8px;
    font-size: clamp(25px, 5vw, 38px);
    line-height: 1.14;
}

.tsp-college-directory h2 {
    margin: 0 0 12px;
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.2;
}

.tsp-college-directory p { margin: 0 0 12px; }
.tsp-college-directory-deck { max-width: 60ch; }

.tsp-college-directory-parent, .tsp-college-directory-competitions a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #214554;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tsp-college-directory-competitions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 10px 0;
    border-bottom: 1px solid #cfd5d8;
}

.tsp-college-directory-competitions a[aria-current="page"] {
    color: #14191c;
    box-shadow: inset 0 -3px #d1b900;
    text-decoration: none;
}

.tsp-college-directory-card, .tsp-college-directory-notice {
    min-width: 0;
    margin: 16px 0;
    padding: clamp(12px, 2vw, 20px);
    border: 1px solid #d6dcdf;
    border-radius: 8px;
    background: #fff;
}

.tsp-college-directory-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.tsp-college-directory-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.tsp-college-directory-form label span { font-weight: 500; }

.tsp-college-directory-form :is(select, input, button) {
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #737f84;
    border-radius: 5px;
    color: #14191c;
    font: inherit;
}

.tsp-college-directory-form :is(select, input) {
    width: 100%;
    min-width: 0;
    background: #fff;
    font-size: 16px;
}

.tsp-college-directory-form button {
    border-color: #14191c;
    background: #ffe600;
    font-weight: 750;
    cursor: pointer;
}

.tsp-college-directory-schools { margin-top: 8px; }

.tsp-college-directory-schools summary {
    min-height: 44px;
    width: fit-content;
    line-height: 44px;
    font-weight: 700;
    cursor: pointer;
}

.tsp-college-directory :is(.tsp-college-directory-schools ul, .tsp-college-directory-results) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 0 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tsp-college-directory :is(.tsp-college-directory-schools, .tsp-college-directory-results) li {
    border-top: 1px solid #dce2e5;
}

.tsp-college-directory :is(.tsp-college-directory-schools, .tsp-college-directory-results) a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 0;
    color: #214554;
    overflow-wrap: anywhere;
}

.tsp-college-directory-results a {
    color: #14191c;
    text-decoration: none;
}

.tsp-college-directory-results a strong { text-decoration: underline; text-underline-offset: 3px; }
.tsp-college-directory-results a small { display: block; color: #4b575e; }

.tsp-college-directory-roster-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.tsp-college-directory-roster-title :is(h2, p) { margin: 0; }
.tsp-college-directory-roster-title p { color: #4b575e; font-size: 13px; }

.tsp-college-directory :is(.tsp-college-directory-results, .tsp-college-directory-roster-title) img {
    width: 40px;
    height: 40px;
    flex: none;
    object-fit: contain;
}

.tsp-college-directory .tsp-college-directory-results img {
    width: 46px;
    height: 46px;
}

.tsp-college-directory :is(a, summary, input, select, button):focus-visible {
    outline: 2px solid #716300;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .tsp-college-directory-form { grid-template-columns: minmax(0, 1fr); }
    .tsp-college-directory-form button { justify-self: start; }
}

.tsp-college-directory-results img:is(
    [src*=".espncdn.com/i/headshots/"][src*="/players/full/"],
    [src^="/media/headshots/"][src*="/players/full/"],
    [src*=".espncdn.com/combiner/"][src*="%2Fheadshots%2F"][src*="scale=crop"]
) {
    object-fit: cover;
    object-position: center bottom;
}
