/* Alumni (1.9.1): the directory, a former student's page, events and replies, mentors, sign-ups, and the website's alumni pages. */
.icon-xs{width:12px;height:12px}
.al-stats,.al-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.al-stats .stat-value,.al-tiles .stat-value{white-space:nowrap}
.al-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.al-filters .search{flex:1 1 240px;max-width:360px}
.al-filters select.input{width:auto;min-width:150px;max-width:220px}
.chip .count{font-weight:700;opacity:.8;margin-inline-start:2px}

/* ------------------------------------------------------------------ directory cards */
.al-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:14px;margin-bottom:16px}
.al-grid>.card+.card,.al-events>.card+.card{margin-top:0}
.al-card{display:flex;flex-direction:column;gap:8px;padding:16px;margin:0;color:inherit;text-decoration:none!important;transition:border-color .15s,box-shadow .15s,transform .15s}
a.al-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow);transform:translateY(-1px)}
a.al-card:focus-visible{outline:0;box-shadow:var(--focus)}
.al-card.is-hidden{border-style:dashed}
.al-card.is-hidden .al-card-top .avatar{opacity:.6}
.al-card-top{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none!important;min-width:0}
.al-card-top .avatar{flex:0 0 auto}
.al-card-top b{font-size:15px;font-family:var(--font-display)}
.al-batch{display:inline-block;font-size:12.5px;font-weight:650;color:var(--violet-ink);margin-top:2px}
.al-work,.al-topics{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:13px;color:var(--text-2);line-height:1.4}
.al-work .icon,.al-topics .icon{flex:0 0 auto;margin-top:2px;color:var(--faint)}
.al-work span,.al-topics span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;unicode-bidi:plaintext}
.al-topics{color:var(--blue-ink)}
.al-topics .icon{color:var(--blue)}
.al-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px;border-top:1px solid var(--border);min-height:34px;flex-wrap:wrap}
.al-place{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;color:var(--muted);min-width:0}
.al-tags{display:inline-flex;gap:4px;flex-wrap:wrap}

/* mentors: "ask to meet" opens a small form in the card */
.al-ask{position:relative}
.al-ask>summary{list-style:none;cursor:pointer}
.al-ask>summary::-webkit-details-marker{display:none}
.al-ask[open]>summary{background:var(--brand);color:#fff}
.al-ask-form{position:absolute;inset-inline-end:0;bottom:calc(100% + 6px);z-index:5;width:min(300px,80vw);display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg)}
.al-ask-form .btn{align-self:flex-end}

/* ------------------------------------------------------------------ a former student */
.al-check{border-inline-start:4px solid var(--amber)}
.al-matches{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.al-match{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1.5px solid var(--border);border-radius:var(--radius);cursor:pointer;transition:border-color .12s,background .12s}
.al-match:hover{border-color:var(--border-strong)}
.al-match:has(input:checked){border-color:var(--brand);background:var(--blue-bg)}
.al-match:has(input:disabled){opacity:.55;cursor:not-allowed}
.al-match input{margin-top:3px;width:17px;height:17px;accent-color:var(--brand);flex:0 0 auto}
.al-match b{display:block;font-size:14px}
.al-match small{display:block;color:var(--muted);font-size:12.5px;line-height:1.35}
.al-reject{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.al-reject .input{flex:1 1 220px;max-width:420px}
.al-profile{padding:20px}
.al-profile-top{display:flex;gap:16px;align-items:center;margin-bottom:12px}
.al-profile-top .avatar{flex:0 0 auto}
.al-profile-top h2{margin:0;font:750 1.45rem/1.2 var(--font-display);letter-spacing:-.015em}
.al-profile-top .al-batch{margin:2px 0 8px;font-size:13.5px}
.al-bio{margin:0 0 14px;font-size:14.5px;line-height:1.6;color:var(--text-2);padding:12px 14px;border-radius:var(--radius);background:var(--surface-2);border-inline-start:3px solid var(--violet)}
.al-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px 20px;margin:0}
.al-facts>div{min-width:0}
.al-facts dt{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:3px}
.al-facts dt .icon{color:var(--faint)}
.al-facts dd{margin:0;font-size:14.5px;overflow-wrap:anywhere}
.al-facts-sm{grid-template-columns:1fr;gap:10px}
.al-facts-sm dt{font-size:11.5px}
.al-facts-sm dd{font-size:13.5px}
.al-consents{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:8px}
.al-consents li{display:flex;align-items:center;gap:8px;font-size:13.5px}
.al-consents li.yes .icon{color:var(--green)}
.al-consents li.no{color:var(--muted)}
.al-consents li.no .icon{color:var(--faint)}
.al-form fieldset{border:0;padding:0;margin:0;min-width:0}

/* ------------------------------------------------------------------ events */
.al-events{display:flex;flex-direction:column;gap:10px}
.al-event{display:flex;align-items:center;gap:14px;padding:12px 16px;margin:0;color:inherit;text-decoration:none!important;transition:border-color .15s,box-shadow .15s}
.al-event:hover{border-color:var(--border-strong);box-shadow:var(--shadow)}
.al-event:focus-visible{outline:0;box-shadow:var(--focus)}
.al-event.is-cancelled{opacity:.6}
.al-event.is-cancelled .al-event-title{text-decoration:line-through}
.al-date{flex:0 0 auto;width:58px;height:58px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--violet-bg);color:var(--violet-ink);line-height:1}
.al-date b{font:800 22px/1 var(--font-display)}
.al-date small{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-top:3px;white-space:nowrap}
.al-date.tone-blue{background:var(--blue-bg);color:var(--blue-ink)}
.al-date.tone-teal{background:var(--teal-bg);color:var(--teal-ink)}
.al-date.tone-green{background:var(--green-bg);color:var(--green-ink)}
.al-date.tone-amber{background:var(--amber-bg);color:var(--amber-ink)}
.al-date.tone-gray{background:var(--gray-bg);color:var(--gray-ink)}
.al-event-title{display:block;font-size:15px;font-family:var(--font-display);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.al-event-side{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;min-width:64px;text-align:center}
.al-event-side b{font:800 20px/1.1 var(--font-display);color:var(--green-ink)}
.al-event-side small{font-size:11.5px;color:var(--muted);white-space:nowrap}
.al-public{display:inline-flex;color:var(--teal)}
.al-desc{margin:0 0 12px;font-size:14px;line-height:1.6;color:var(--text-2)}
.al-link{display:flex;align-items:center;gap:6px;margin:12px 0 0;font-size:13.5px}

/* ------------------------------------------------------------------ the alumni office */
.al-req{align-items:flex-start}
.al-req .avatar{flex:0 0 auto}
.al-req>a{color:inherit;text-decoration:none!important}
.al-req>a .meta{display:block}
.al-match-hint{display:flex!important;align-items:flex-start;gap:4px;margin-top:2px}
.al-match-hint .icon{flex:0 0 auto;margin-top:3px}
.al-req-act{display:flex;gap:6px;flex:0 0 auto;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.al-intro{align-items:flex-start}
.al-intro .meta{display:block}
.al-intro-msg{margin:6px 0;padding:8px 10px;border-radius:10px;background:var(--surface-2);font-size:13px;color:var(--text-2);line-height:1.45}
.al-intro-form{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px;align-items:center}
.al-intro-form .input{flex:1 1 200px}

@media (max-width:640px){
  .al-stats,.al-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .al-filters select.input{flex:1 1 140px;max-width:none}
  .al-filters .search{max-width:none}
  .al-event{gap:10px;padding:10px 12px;flex-wrap:wrap}
  .al-event>.grow{flex:1 1 calc(100% - 140px)}
  .al-event-title{white-space:normal}
  .al-date{width:50px;height:50px}
  .al-date b{font-size:19px}
  .al-profile-top{flex-direction:column;align-items:flex-start}
  .al-req{flex-wrap:wrap}
  .al-req-act{width:100%;justify-content:flex-start;padding-inline-start:52px}
  .al-ask-form{inset-inline-end:auto;inset-inline-start:0}
}

/* ------------------------------------------------------------------ the website's alumni pages (always light) */
.al-pub{padding-top:clamp(40px,6vw,72px)}
.al-pub .s-form .input.al-short,.s-form textarea.input.al-short{min-height:96px}
.al-pub-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:0 0 clamp(44px,6vw,72px);background:#fff;border:1px solid var(--s-line);border-radius:var(--s-radius);box-shadow:var(--s-shadow);overflow:hidden}
.al-pub-stats>div{display:flex;flex-direction:column;align-items:center;gap:4px;padding:26px 12px;text-align:center}
.al-pub-stats>div+div{border-inline-start:1px solid var(--s-line)}
.al-pub-stats b{font:800 clamp(1.7rem,3.2vw,2.4rem)/1 var(--font-display);letter-spacing:-.03em;color:var(--brand)}
.al-pub-stats span{font-size:13.5px;font-weight:650;color:var(--s-muted)}
.al-pub-head{margin:0 0 24px}
.al-pub-head .s-h2{margin:0}
.al-pub-notable{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;margin-bottom:clamp(44px,6vw,72px)}
.al-pub-person{display:flex;gap:16px;align-items:flex-start;padding:22px}
.al-pub-photo{flex:0 0 auto;width:72px;height:72px;border-radius:22px;object-fit:cover}
.al-pub-initials{display:grid;place-items:center;background:var(--s-soft-2);color:var(--brand);font:800 24px/1 var(--font-display);letter-spacing:-.02em}
.al-pub-person h3{margin:0;font:750 1.1rem/1.3 var(--font-display)}
.al-pub-batch{display:inline-block;margin-top:4px;padding:3px 10px;border-radius:999px;background:var(--s-soft-2);color:var(--brand);font-size:12px;font-weight:750}
.al-pub-work{margin:10px 0 0;font-size:14px;font-weight:600;color:var(--s-text-2);line-height:1.4}
.al-pub-note{margin:6px 0 0;font-size:14px;color:var(--s-muted);line-height:1.55}
.al-pub-events{display:flex;flex-direction:column;gap:12px;margin-bottom:clamp(44px,6vw,72px)}
.al-pub-event{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;padding:16px 20px;color:inherit!important;text-decoration:none!important;transition:transform .2s var(--s-ease),box-shadow .2s,border-color .2s}
.al-pub-event:hover{transform:translateY(-2px);border-color:var(--brand)}
.al-pub-event:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.al-pub-event .al-date{width:64px;height:64px;border-radius:18px;background:var(--s-soft-2);color:var(--brand)}
.al-pub-event>span:nth-child(2) b{display:block;font:750 1.1rem/1.3 var(--font-display)}
.al-pub-event>span:nth-child(2) small{display:block;margin-top:3px;font-size:13.5px;color:var(--s-muted)}
.al-pub-go{display:inline-flex;align-items:center;gap:6px;font-weight:750;font-size:14px;color:var(--brand);white-space:nowrap}
.al-pub-join{scroll-margin-top:calc(var(--header-h) + 16px)}
.al-pub-choices{border:1px solid var(--s-line);border-radius:var(--s-radius-sm);padding:16px 18px 18px;margin:0;display:flex;flex-direction:column;gap:10px;background:var(--s-soft)}
.al-pub-choices legend{padding:0 8px;font-weight:750;font-size:14px;color:var(--s-text-2)}
.s-form .al-pub-choices label.check{display:flex;align-items:flex-start;margin:0;font-weight:550;font-size:14.5px;color:var(--s-text)}
.al-pub-choices .check input{margin-top:2px;flex:0 0 auto}
.al-pub-choices .input{background:#fff}
.al-pub-ev{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px);gap:clamp(24px,4vw,48px);align-items:start}
.al-pub-desc{font-size:1.05rem;line-height:1.75;color:var(--s-text-2);margin-bottom:24px}
.al-pub-facts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.al-pub-facts li{display:flex;gap:12px;align-items:center;font-size:15px;font-weight:600;color:var(--s-text-2)}
.al-pub-facts .icon{flex:0 0 auto;width:38px;height:38px;padding:9px;border-radius:12px;background:var(--s-soft-2);color:var(--brand)}
.al-pub-answer{border:0;padding:0;margin:0;display:flex;gap:8px;flex-wrap:wrap}
.s-form .al-pub-ans{flex:1 1 120px;margin:0;position:relative;display:block}
.al-pub-ans input{position:absolute;opacity:0;pointer-events:none}
.al-pub-ans span{display:flex;align-items:center;justify-content:center;height:48px;padding:0 14px;border-radius:14px;border:1.5px solid var(--s-line);background:var(--s-soft);font-weight:700;font-size:15px;color:var(--s-text-2);cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.al-pub-ans input:checked+span{border-color:var(--brand);background:var(--brand);color:#fff}
.al-pub-ans input:focus-visible+span{outline:3px solid var(--accent);outline-offset:2px}
.al-pub .s-success{margin-bottom:18px}
.al-pub .req{color:#c92a2a}
/* what people wrote keeps its own direction on the Urdu site */
.al-pub-desc,.al-pub-note,.al-pub-work,.al-pub-person h3,.al-pub-event b,.al-pub-facts span{unicode-bidi:plaintext}
@media (max-width:900px){
  .al-pub-ev{grid-template-columns:1fr}
}
@media (max-width:640px){
  .al-pub-stats{grid-template-columns:repeat(2,1fr)}
  .al-pub-stats>div:nth-child(3){border-inline-start:0}
  .al-pub-stats>div:nth-child(n+3){border-top:1px solid var(--s-line)}
  .al-pub-stats>div{padding:18px 8px}
  .al-pub-notable{grid-template-columns:1fr}
  .al-pub-person{padding:18px}
  .al-pub-photo{width:60px;height:60px;border-radius:18px}
  .al-pub-event{grid-template-columns:auto minmax(0,1fr);gap:14px;padding:14px 16px}
  .al-pub-go{grid-column:2;justify-self:start}
  .al-pub-event .al-date{width:56px;height:56px}
}
