.specialties-archive-page .org-archive-header { margin-bottom: 24px; }
.specialties-search-label { display: block; margin-bottom: 8px; color: var(--resimap-muted); font-size: 13px; font-weight: 600; }
.specialties-search { width: 100%; height: 48px; padding: 0 15px; border: 1px solid var(--resimap-border); border-radius: 8px; background: #fff; color: var(--resimap-text); font: inherit; }
.specialties-search:focus-visible { outline: 2px solid var(--resimap-accent); outline-offset: 2px; }
.specialties-count { margin-top: 12px; }
.specialties-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 16px; }
.specialty-card .org-card-content { padding: 16px; }
.specialty-card .org-card-title { font-size: 15px; }
.specialty-card-count { margin: 12px 0 0; color: var(--resimap-muted); font-size: 13px; }
.specialty-card .org-card-footer { padding: 11px 16px; }
.specialties-empty, .specialties-empty-static { color: var(--resimap-muted); font-size: 14px; }
.specialties-empty[hidden] { display: none; }

.specialty-page .org-archive-header { margin: 0 0 26px; }
.specialty-page .org-archive-title { margin: 0; color: var(--resimap-text); font-family: Manrope, sans-serif; font-size: 30px; font-weight: 700; line-height: 1.2; }
.specialty-page .org-results-count { margin: 0 0 14px; color: var(--resimap-muted); font-size: 14px; }
.specialty-years { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.specialty-page .specialty-year { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--resimap-border); border-radius: 8px; background: #fff; color: var(--resimap-text); font-size: 14px; font-weight: 600; }
.specialty-page .specialty-year:hover { border-color: var(--resimap-accent); color: var(--resimap-accent); }
.specialty-page .specialty-year.is-active { border-color: var(--resimap-accent); background: var(--resimap-accent-soft); color: var(--resimap-accent); }
.specialty-table { table-layout: fixed; }
.specialty-table thead th:first-child { width: 33%; }
.specialty-table thead th:nth-child(2), .specialty-table thead th:nth-child(3), .specialty-table thead th:nth-child(4) { width: 13%; }
.specialty-table thead th:nth-child(5) { width: 23%; }
.specialty-table thead th:nth-child(6) { width: 5%; }
.specialty-table thead th { padding: 14px 12px; background: var(--org-page-surface); color: #374151; font-size: 12px; line-height: 1.4; white-space: normal; }
.specialty-table thead th:not(:first-child) { text-align: center; }
.specialty-table thead th:nth-child(5) { text-align: right; }
.specialty-table .specialty-toggle-cell { padding-inline: 6px; }
.specialty-toggle-cell .org-admissions__toggle { justify-content: center; min-height: 40px; }
.specialty-sort { display: inline-flex; align-items: center; gap: 5px; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: inherit; }
.specialty-sort::after { content: '↕'; color: var(--resimap-muted); font-size: 15px; }
.specialty-table th[aria-sort="ascending"] .specialty-sort::after { content: '↑'; color: var(--resimap-accent); }
.specialty-table th[aria-sort="descending"] .specialty-sort::after { content: '↓'; color: var(--resimap-accent); }
.specialty-sort:focus-visible { outline: 2px solid var(--resimap-accent); outline-offset: 4px; }
.specialty-table .org-admissions__number, .specialty-table .org-programs__cell--cost { font-variant-numeric: tabular-nums; }
.specialty-full-name { margin: 0 0 8px; font-weight: 600; }
.specialty-org-link { margin: 0 0 22px; font-size: 14px; }
.specialty-page .org-admissions__detail h3 { margin-bottom: 16px; }
.specialty-mobile-sort { display: none; }

@media (max-width: 900px) {
    .specialties-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .specialty-table .specialty-row { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .specialty-table .org-programs__cell--name { grid-column: 1 / -1; padding-right: 30px; }
    .specialty-table .org-programs__cell--cost { grid-column: 1 / -1; }
    .specialty-table .specialty-toggle-cell { position: absolute; top: 6px; right: 8px; width: 32px; }
    .specialty-mobile-sort { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; }
    .specialty-mobile-sort select { flex: 1; min-width: 0; height: 38px; padding: 4px 8px; border: 1px solid var(--resimap-border); border-radius: 6px; background: white; color: var(--resimap-text); font: inherit; }
    .specialty-sort-direction { min-width: 38px; height: 38px; padding: 0; border: 1px solid var(--resimap-border); border-radius: 6px; background: white; color: var(--resimap-accent); cursor: pointer; font-size: 18px; }
}
@media (max-width: 620px) {
    .specialties-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
    .specialties-grid { grid-template-columns: 1fr; }
}
