/* ==========================================================================
   Shikhar Alumni — components on top of shikhar.css (same tokens: --ink, --blue, --orange, --paper …)
   ========================================================================== */

/* ---------- Header & footer extras ---------- */
.footer-centres { grid-template-columns: 1fr; }   /* only the Gwalior centre is listed on the alumni site */
.brand-tag { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-d); padding-left: 12px; border-left: 2px solid var(--line-2); line-height: 1; }
.inline-form { display: inline; margin: 0; }
.topbar-btn { padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: rgba(255, 255, 255, .85); font: inherit; font-size: 13.5px; cursor: pointer; }
.topbar-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topbar .wrap { justify-content: flex-end; }
@media (max-width: 1024px) { .topbar { display: none; } } /* its links live in the mobile menu */
.drawer-btn { width: 100%; text-align: left; padding: 13px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.drawer-btn:hover { background: var(--paper); }

/* ---------- Avatars ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; background: var(--blue-l); color: var(--blue-d); font-family: var(--display); font-weight: 700; letter-spacing: .02em; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.avatar-sm { width: 36px; height: 36px; font-size: 13px; }
.avatar-md { width: 48px; height: 48px; font-size: 16px; }
.avatar-lg { width: 84px; height: 84px; font-size: 26px; }
.avatar-xl { width: 140px; height: 140px; font-size: 42px; border-width: 4px; }
.avatar-initials { user-select: none; }

/* ---------- Alumni cards & grid ---------- */
.alum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.alum-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 26px 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.alum-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.alum-card-body { display: grid; gap: 4px; justify-items: center; min-width: 0; width: 100%; }
.alum-card-body > b { font-size: 1.05rem; line-height: 1.25; }
.alum-card-batch { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-d); }
.alum-card-headline { font-size: 14px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.alum-card-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.alum-card-meta > span { display: inline-flex; align-items: center; gap: 4px; }

/* Rail of alumni cards on the home page uses .rail from shikhar.css */
.rail.alum-rail { grid-auto-columns: 250px; }

/* ---------- Filters bar (directory, jobs, admin lists) ---------- */
/* auto-fit cannot be mixed with fr tracks outside the repeat(), so the search field spans two columns instead */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; padding: 16px; margin-bottom: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.filters .field.is-search, .filters .field:has(.input[type="search"]) { grid-column: span 2; }
.filters .field label { font-size: 12.5px; }
.filters .input, .filters .select { padding: 10px 12px; font-size: 14.5px; }
.filters .select { padding-right: 36px; }
.filters-actions { display: flex; gap: 8px; align-items: center; }
.filter-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -14px 0 22px; color: var(--muted); font-size: 14px; }
.filter-summary b { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.chip.is-active, .chip:hover { border-color: var(--orange); background: var(--orange-l); color: var(--orange-d); }
.chip .i { width: 14px; height: 14px; }

/* ---------- Profile page ---------- */
.profile-hero { padding: 48px 0 0; background: var(--ink); color: rgba(255, 255, 255, .78); }
.profile-hero .wrap { position: relative; z-index: 1; }
.profile-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 28px 32px; margin-bottom: -56px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); color: var(--text); }
.profile-card h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 4px; line-height: 1.1; }
.profile-card .headline { font-size: 1.05rem; color: var(--muted); margin: 0 0 10px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.profile-body { padding: 96px 0 80px; }
.profile-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.profile-section { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; }
.profile-section h2 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.profile-section h2 .i { color: var(--orange); }
.profile-section p:last-child { margin-bottom: 0; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0; }
.detail-list div { min-width: 0; }
.detail-list dt { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .06em; }
.detail-list dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.detail-list .full { grid-column: 1 / -1; }

/* Contact details box: masked values until a request is approved */
.contact-box { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact-box h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-bottom: 14px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line-2); }
.contact-row:first-of-type { border-top: 0; }
.contact-row .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue-d); }
.contact-row .ic .i { width: 18px; height: 18px; }
.contact-row small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.contact-row b, .contact-row a { color: var(--ink); font-weight: 700; font-size: 15px; word-break: break-all; }
.masked { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: var(--muted); }
.masked .i, .lock-note .i { width: 14px; height: 14px; color: var(--orange); vertical-align: -2px; }
.lock-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--muted); }
.lock-note .i { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.lock-note b { color: var(--ink); }
.request-state { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 700; }
.request-state.is-pending { color: var(--orange-d); }
.request-state.is-declined { color: var(--danger); }
.request-state.is-approved { color: var(--success); }

/* ---------- Status pills (alumni, events, jobs, requests) ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-transform: capitalize; background: var(--paper-2); color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.is-pending { background: var(--orange-l); color: var(--orange-d); }
.status.is-approved, .status.is-published, .status.is-going, .status.is-accepted, .status.is-live { background: #e7f6ee; color: var(--success); }
.status.is-rejected, .status.is-blocked, .status.is-declined, .status.is-cancelled { background: #fdecea; color: #8c2318; }
.status.is-draft, .status.is-closed, .status.is-revoked, .status.is-expired { background: var(--paper-2); color: var(--muted); }

/* ---------- Content cards (events, stories, jobs, albums) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.ccard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.ccard-media { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.ccard-media img { width: 100%; height: 100%; object-fit: cover; }
.ccard-media.square { aspect-ratio: 1; }
.ccard-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); background: linear-gradient(135deg, var(--blue-l), var(--paper-2)); }
.ccard-media .placeholder .i { width: 44px; height: 44px; opacity: .6; }
.ccard-date { position: absolute; left: 14px; top: 14px; width: 58px; padding: 8px 0 7px; border-radius: 12px; text-align: center; background: var(--orange); color: #fff; line-height: 1; box-shadow: var(--shadow); }
.ccard-date small { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.ccard-date b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.ccard-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.ccard-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-d); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccard-kicker .status { text-transform: capitalize; letter-spacing: 0; }
.ccard h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.ccard p { margin: 0; color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ccard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--muted); }
.ccard-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ccard-meta .i { width: 15px; height: 15px; color: var(--orange); }
.ccard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; }
.ccard-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 14px; }

/* Job list rows */
.job-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); transition: box-shadow .2s ease, border-color .2s ease; }
.job-row + .job-row { margin-top: 12px; }
a.job-row:hover { box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.job-logo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue-d); font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.job-row h3 { font-size: 1.1rem; margin: 0 0 4px; }
.job-row .company { color: var(--muted); font-size: 14.5px; }
.job-row .ccard-meta { margin: 6px 0 0; padding: 0; }
.job-row .job-side { text-align: right; display: grid; gap: 6px; justify-items: end; }

/* Photo grid (gallery album) */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-grid a, .photo-grid figure { margin: 0; position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(14, 29, 58, .75)); }
.lightbox { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--ink); }
.lightbox::backdrop { background: rgba(14, 29, 58, .85); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 32px); display: block; margin: 0 auto; }
.lightbox .dialog-close { position: absolute; right: 14px; top: 14px; }

/* Article (story detail) */
.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.article-body { font-size: 1.08rem; color: #3a4357; line-height: 1.75; }
.article-body p { margin: 0 0 1.2em; }
.article-body img { border-radius: var(--r); margin: 1.2em 0; }
.article-body h2, .article-body h3 { margin-top: 1.6em; }
.article-body blockquote { margin: 1.4em 0; padding: 18px 24px; border-left: 3px solid var(--orange); background: #fff; border-radius: 0 var(--r) var(--r) 0; font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--ink); }
/* Editor (CKEditor) output: lists, tables, figures */
.article-body ul, .article-body ol { padding-left: 1.5em; margin: 0 0 1.2em; display: grid; gap: 6px; }
.article-body li::marker { color: var(--orange); font-weight: 700; }
.article-body hr { border: 0; border-top: 1px solid var(--line-2); margin: 1.6em 0; }
.article-body h2 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; }
.article-body h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.article-body h4 { font-size: 1.1rem; }
.article-body a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--orange-d); }
.article-body figure { margin: 1.4em 0; }
.article-body figure.image { display: table; max-width: 100%; margin-left: auto; margin-right: auto; }
.article-body figure.image img { margin: 0; width: 100%; height: auto; display: block; }
.article-body figure.image figcaption { display: table-caption; caption-side: bottom; padding: 8px 4px 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.article-body figure.image.image-style-side { float: right; max-width: 50%; margin: .3em 0 1em 1.5em; }
.article-body figure.image.image-style-align-left { float: left; max-width: 50%; margin: .3em 1.5em 1em 0; }
.article-body .image-inline { display: inline-block; vertical-align: middle; }
.article-body figure.table, .article-body table { width: 100%; margin: 1.2em 0; border-collapse: collapse; font-size: .95em; }
.article-body figure.table { display: block; overflow-x: auto; }
.article-body figure.table table { margin: 0; }
.article-body th, .article-body td { padding: 10px 14px; border: 1px solid var(--line-2); vertical-align: top; text-align: left; }
.article-body th { background: var(--paper-2); color: var(--ink); font-weight: 700; }
.article-body::after { content: ""; display: table; clear: both; }
@media (max-width: 720px) { .article-body figure.image.image-style-side, .article-body figure.image.image-style-align-left { float: none; max-width: 100%; margin: 1.2em 0; } }
.article-author { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.article-author b { display: block; color: var(--ink); }
.article-author span { color: var(--muted); font-size: 14px; }

/* Event detail */
.event-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.event-facts { list-style: none; display: grid; gap: 14px; margin: 0 0 20px; }
.event-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.event-facts .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--orange-l); color: var(--orange-d); }
.event-facts small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.event-facts b { color: var(--ink); }
.going-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.going-list .avatar { border-width: 2px; }
.going-more { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* ---------- Stats on the home page ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat-band > div { padding: 26px 24px; background: #fff; }
.stat-band b { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat-band b sup { font-size: .5em; color: var(--orange); top: -.8em; margin-left: 2px; }
.stat-band span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* ---------- Auth pages (login / register) ---------- */
.auth-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; max-width: 1040px; margin: 0 auto; border-radius: 28px; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.auth-side { position: relative; padding: 48px; background: var(--ink); color: rgba(255, 255, 255, .75); overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-family: var(--display); font-weight: 600; font-size: 2rem; }
.auth-side .check-list .i { color: #7fcdf5; }
.auth-form { padding: 48px; }
.auth-form h1 { font-family: var(--display); font-weight: 600; font-size: 1.9rem; margin-bottom: 6px; }
.auth-form .card-sub { margin-bottom: 22px; }
.auth-switch { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 14.5px; color: var(--muted); }
.auth-switch a { font-weight: 700; color: var(--orange-d); }
.auth-wrap.single { grid-template-columns: 1fr; max-width: 520px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-actions .btn-link { margin-right: auto; }
.btn-link { border: 0; background: none; padding: 0; color: var(--blue-d); font: inherit; font-weight: 700; cursor: pointer; }
.btn-link:hover { color: var(--orange-d); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #9c2d22; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #126140; color: #fff; }
.btn-outline-danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-outline-danger:hover { background: var(--danger); color: #fff; }
.btn-xs { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.form-section h3 .i { color: var(--orange); }
.form-subhead { display: flex; align-items: center; gap: 8px; margin: 4px 0 -4px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form-subhead .i { color: var(--orange); }
.switch-block > .hint { margin: 0 0 4px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.checkbox b { display: block; color: var(--ink); }
.checkbox small { color: var(--muted); }

/* Switch (privacy toggles) */
.toggle { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.toggle + .toggle { margin-top: 10px; }
.toggle b { display: block; color: var(--ink); }
.toggle small { color: var(--muted); font-size: 13.5px; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .knob { flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .2s ease; }
.toggle .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.toggle input:checked + .knob { background: var(--success); }
.toggle input:checked + .knob::after { transform: translateX(20px); }
.toggle input:focus-visible + .knob { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Photo uploader */
.photo-pick { display: flex; align-items: center; gap: 20px; }
.photo-pick .avatar { cursor: pointer; }
.photo-pick .input[type="file"] { max-width: 360px; }

/* ---------- Panel layout (alumni panel & admin) ---------- */
.panel { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding: 40px 0 80px; }
.panel-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.panel-user { display: flex; align-items: center; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-user b { display: block; color: var(--ink); line-height: 1.2; }
.panel-user small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.panel-nav { list-style: none; display: grid; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-nav a, .panel-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px; text-align: left; cursor: pointer; }
.panel-nav a:hover, .panel-nav button:hover { background: var(--paper); color: var(--blue-d); }
.panel-nav a.is-active { background: var(--ink); color: #fff; }
.panel-nav .i { width: 18px; height: 18px; color: var(--orange); }
.panel-nav a.is-active .i { color: #ffb26b; }
.panel-nav .count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; text-align: center; }
.panel-nav .sep { margin: 6px 12px; border-top: 1px dashed var(--line-2); }
.panel-main { min-width: 0; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.panel-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
.panel-head p { margin: 6px 0 0; color: var(--muted); }
.panel-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-card { padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; }
.panel-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin-bottom: 14px; }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-card-head h2 { margin: 0; }

/* Dashboard tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.tile { display: block; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); transition: box-shadow .2s ease, transform .2s ease; }
a.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tile .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue-d); margin-bottom: 14px; }
.tile.orange .ic { background: var(--orange-l); color: var(--orange-d); }
.tile.green .ic { background: #e7f6ee; color: var(--success); }
.tile.red .ic { background: #fdecea; color: #8c2318; }
.tile b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--ink); }
.tile span { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; }

/* Notices (pending approval etc.) */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-lg); margin-bottom: 20px; border: 1px solid; }
.notice .i { flex: none; margin-top: 2px; }
.notice b { display: block; margin-bottom: 2px; }
.notice p { margin: 0; font-size: 14.5px; }
.notice.is-pending { background: var(--orange-l); border-color: #f7cfa6; color: #7a3a06; }
.notice.is-rejected, .notice.is-blocked { background: #fdecea; border-color: #f5c2bb; color: #8c2318; }
.notice.is-info { background: var(--blue-l); border-color: #bfe3f7; color: var(--ink); }

/* ---------- Tables (admin lists, panel lists) ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfbf8; }
.table td.actions { white-space: nowrap; text-align: right; }
.table td.actions form { display: inline; }
.table .cell-user { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.table .cell-user b { display: block; color: var(--ink); line-height: 1.2; }
.table .cell-user small { display: block; color: var(--muted); font-size: 12.5px; }
.table .muted { color: var(--muted); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-foot { padding: 14px 16px; border-top: 1px solid var(--line); }
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.icon-action { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; }
.icon-action:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-action.danger:hover { background: var(--danger); border-color: var(--danger); }
.icon-action .i { width: 16px; height: 16px; }

/* Request cards (contact / mentorship) */
.req-list { display: grid; gap: 12px; }
.req { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.req-body b { color: var(--ink); }
.req-body p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.req-body .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.req-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.req-actions .btn { white-space: nowrap; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
.pagination-summary { margin: 0; color: var(--muted); font-size: 14px; }
.pagination-summary b { color: var(--ink); }
.pagination-list { display: flex; gap: 4px; list-style: none; }
.pagination-list a, .pagination-list span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; }
.pagination-list a:hover { border-color: var(--ink); color: var(--ink); }
.pagination-list .is-current span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination-list .is-disabled span, .pagination-list .is-dots span { color: var(--muted); border-color: var(--line); background: var(--paper); }
.pagination-list li:first-child .i { transform: rotate(90deg); }
.pagination-list li:last-child .i { transform: rotate(-90deg); }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 14.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { color: var(--ink); text-align: right; }
.login-cta { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 28px; border-radius: var(--r-lg); background: var(--ink); color: rgba(255, 255, 255, .78); }
.login-cta h3 { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: 0; }
.login-cta p { margin: 0 0 6px; font-size: 14.5px; }
.login-cta .btn + .btn { margin-left: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .alum-grid, .card-grid.four, .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-layout, .event-layout { grid-template-columns: 1fr; }
    .panel { grid-template-columns: 1fr; gap: 20px; }
    .panel-side { position: static; }
    .panel-nav { display: flex; flex-wrap: wrap; }
    .panel-nav .sep { display: none; }
    .panel-user { display: none; }
    .tiles, .stat-band { grid-template-columns: repeat(2, 1fr); }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .filters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .brand-tag { display: none; }
    .alum-grid, .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .profile-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
    .profile-tags { justify-content: center; }
    .profile-actions { width: 100%; }
    .profile-body { padding-top: 80px; }
    .detail-list { grid-template-columns: 1fr; }
    .job-row { grid-template-columns: 1fr; }
    .job-row .job-logo { display: none; }
    .job-row .job-side { justify-items: start; text-align: left; }
    .tiles, .stat-band { grid-template-columns: 1fr 1fr; }
    .tile b, .stat-band b { font-size: 1.6rem; }
    .auth-form { padding: 28px 20px; }
    .filters { grid-template-columns: 1fr; padding: 14px; }
    .filters .field.is-search, .filters .field:has(.input[type="search"]) { grid-column: auto; }
    .req { grid-template-columns: 1fr; }
    .req-actions { flex-direction: row; align-items: center; }
    .pagination { justify-content: center; }
    .pagination-summary { width: 100%; text-align: center; }
    .table th, .table td { padding: 10px 12px; }
}
