/* Resources page */

.resources-official-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 11px 22px;
    background: #ed6d0b;
    border-radius: 999px;
    color: #fff;
    font-family: 'Public Sans', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.resources-official-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.resources-official-link:hover {
    background: #b95509;
}

.resources-table-box {
    margin-top: 16px;
}

.resources-search {
    max-width: 360px;
    margin: 18px 0 8px;
}

.resources-count {
    font-size: 0.88em;
    color: #000;
    opacity: 0.6;
    margin-bottom: 14px;
}

.resources-table-wrap {
    overflow-x: auto;
    border: 1px solid #eee;
}

.resources-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.95em;
}

.resources-table thead th {
    text-align: left;
    padding: 10px 16px;
    background: #f7f5f1;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.82em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000;
    border-bottom: 2px solid #ed6d0b;
    white-space: nowrap;
}

.resources-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.resources-table tbody tr:nth-of-type(even) {
    background: #fafafa;
}

.resources-table tbody tr:hover {
    background: #fdf3ea;
}

.resources-school-name {
    font-family: var(--font-display);
    font-weight: 500;
    color: #000;
}

.resources-year {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.resources-year.is-stale {
    color: #b23b3b;
    font-weight: 600;
}

.resources-find-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ed6d0b;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.resources-find-link:hover {
    color: #b95509;
    text-decoration: underline;
}

.resources-find-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* No dedicated CDS page could be found — falls back to the school's
   homepage, styled a touch more muted than a confirmed CDS link. */
.resources-find-link--fallback {
    color: #000;
    opacity: 0.65;
}

.resources-find-link--fallback:hover {
    color: #ed6d0b;
    opacity: 1;
}

.resources-loading,
.resources-empty {
    text-align: center;
    padding: 24px;
    color: #000;
    opacity: 0.6;
}

@media (max-width: 540px) {
    .resources-search {
        max-width: none;
    }
}
