* { box-sizing: border-box; }
body { margin: 0; background: #f8fafc; color: #0f172a; font-family: Inter, Arial, sans-serif; }
a { color: inherit; }
.site-header { background: #fff; border-bottom: 1px solid #e2e8f0; }
.header-inner { max-width: 1160px; margin: auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 22px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand span { color: #f59e0b; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-nav a { color: #475569; font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: #b45309; }
.site-nav .sign-in { color: #fff; background: #f59e0b; padding: 9px 14px; border-radius: 6px; }
.page { max-width: 1160px; margin: auto; padding: 34px 24px 70px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: #475569; font-size: 14px; text-decoration: none; }
.back-link:hover { color: #b45309; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; font-size: 28px; line-height: 1.25; }
.page-heading p { margin: 7px 0 0; color: #64748b; font-size: 14px; }
.count { color: #475569; font-size: 14px; white-space: nowrap; }
.directory-search { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; }
.search-input { position: relative; width: min(100%, 430px); }
.search-input i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 14px; pointer-events: none; }
.search-input input { width: 100%; height: 42px; padding: 0 12px 0 40px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #0f172a; font: inherit; font-size: 14px; }
.search-input input:focus { outline: 2px solid #f59e0b; outline-offset: 1px; }
.directory-search button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 6px; background: #f59e0b; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.directory-search button:hover { background: #eaa009; }
.clear-search { color: #475569; font-size: 14px; text-decoration: none; }
.clear-search:hover { color: #b45309; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search-results { margin-bottom: 30px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 16px; }
.section-heading h2, .section-title { margin: 0 0 16px; font-size: 18px; }
.section-heading h2 { margin: 0; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.year-card { min-height: 118px; padding: 19px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.year-card:hover, .year-card:focus-visible { border-color: #f59e0b; box-shadow: 0 3px 12px rgba(15, 23, 42, .08); outline: none; }
.year-card-top { display: flex; justify-content: space-between; align-items: center; }
.year-card strong { font-size: 25px; }
.year-card i { color: #d97706; }
.year-card small { color: #64748b; font-size: 13px; }
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.alumni-card { min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 15px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
a.alumni-card { text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.alumni-card:hover, a.alumni-card:focus-visible { border-color: #f59e0b; box-shadow: 0 3px 12px rgba(15, 23, 42, .08); outline: none; }
.guest-alumni-card { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.guest-alumni-card:hover, .guest-alumni-card:focus-visible { border-color: #f59e0b; box-shadow: 0 3px 12px rgba(15, 23, 42, .08); outline: none; }
.portrait { width: 66px; height: 82px; flex: 0 0 66px; display: grid; place-items: center; overflow: hidden; border-radius: 5px; background: #e2e8f0; color: #64748b; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait i { font-size: 28px; }
.alumni-info { min-width: 0; }
.alumni-info h2 { margin: 0 0 7px; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.alumni-info p { margin: 0; color: #64748b; font-size: 14px; }
.card-arrow { margin-left: auto; color: #d97706; }
.empty-state { padding: 30px 0; color: #64748b; font-size: 15px; }
@media (max-width: 620px) {
    .header-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px; }
    .site-nav { gap: 14px; }
    .page { padding: 24px 16px 48px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .page-heading h1 { font-size: 24px; }
    .directory-search { flex-wrap: wrap; }
    .search-input { width: 100%; }
    .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alumni-grid { grid-template-columns: 1fr; }
}
