/* Professor and members pages. */

.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; }
.contact-list li > .i { margin-top: 4px; color: var(--brand); }
.contact-list a { word-break: break-all; }

/* ---- Professor --------------------------------------------------------- */
.prof { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.prof__card { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; display: grid; gap: 18px; min-width: 0; }
.prof__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.prof__name { margin: 0; font-size: 1.6rem; }
.prof__name-ko { margin: 2px 0 8px; color: var(--muted); }
.prof__title { margin: 0; font-weight: 700; color: var(--brand); }
.prof__dept { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.prof__links { display: flex; flex-wrap: wrap; gap: 6px; }
.prof__links .btn { flex: 1 1 auto; }
.scholar-card { padding: 12px 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; min-width: 0; }
.scholar-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.scholar-card__title { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 750; color: var(--ink); white-space: nowrap; }
.scholar-card__title .i { color: var(--brand); }
.scholar-card__badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 .68rem/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.scholar-card__badge:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.scholar-card__dot { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 2px rgba(22, 163, 74, .22); flex: none; }
.scholar-card__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.scholar-stat { padding: 7px 6px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.scholar-stat__label { font: 650 .62rem/1.1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.scholar-stat__val { font-size: 1.08rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.scholar-stat__sub { font-size: .64rem; color: var(--muted); white-space: nowrap; }
.scholar-stat__sub b { color: var(--text); font-weight: 700; }
.scholar-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; align-items: end; height: 44px; padding-top: 6px; border-top: 1px dashed var(--line); }
.scholar-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.scholar-bar__fill { width: 100%; max-width: 18px; min-height: 3px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--brand), #0891b2); opacity: .85; transition: opacity .15s; }
.scholar-bar:hover .scholar-bar__fill { opacity: 1; }
.scholar-bar__yr { font-size: .62rem; color: var(--muted); line-height: 1; }
.prof__main { display: grid; gap: 44px; min-width: 0; }
.roles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.roles__item { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 4px 0 var(--k, var(--brand)); }
.roles__since { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.roles__text { font-weight: 650; color: var(--ink); }
.roles__item--position, .timeline__item--position { --k: #2563eb; }
.roles__item--research, .timeline__item--research { --k: #0d9488; }
.roles__item--service, .timeline__item--service { --k: #d97706; }
.roles__item--education, .timeline__item--education { --k: #7c3aed; }
.awards { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.awards__item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 12px; }
.awards__item img { width: 120px; height: 80px; object-fit: cover; border-radius: 9px; }
.awards__item p { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; align-items: baseline; padding: 11px 0 11px 34px; border-bottom: 1px dashed var(--line); }
.timeline__dot { position: absolute; left: 3px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--k, var(--brand)); }
.timeline__when { font-size: .84rem; color: var(--muted); }
.timeline__what { color: var(--ink); font-weight: 550; }
.timeline__kind { font: 600 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--k); }
.present { color: #16a34a; font-weight: 700; }
.timeline__item.is-dim { display: none; }

/* ---- Members ------------------------------------------------------------- */
.pi { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; padding: 18px; color: var(--text); }
.pi:hover { text-decoration: none; }
.pi img { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; }
.pi h2 { margin: 0 0 4px; font-size: 1.5rem; }
.pi p { margin: 0 0 8px; }
.interest-picker { position: relative; }
.interest-picker summary { list-style: none; cursor: pointer; }
.interest-picker summary::-webkit-details-marker { display: none; }
.interest-picker__list { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(560px, 86vw); max-height: 320px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.chip--btn { cursor: pointer; border-color: var(--line); background: var(--surface); }
.chip--btn:hover { border-color: var(--brand); color: var(--brand); }
.chip--btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.member-group { margin-bottom: 36px; }
.member-group__title { display: flex; align-items: baseline; gap: 10px; font-size: 1.25rem; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.member-group__title .mono { font-size: .9rem; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.member { display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 20px); }
.member:target { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.member__photo { aspect-ratio: 3 / 4; background: var(--surface-2); overflow: hidden; max-height: 300px; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .4s ease; }
.member:hover .member__photo img { transform: scale(1.04); }
.member__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.member__role { margin: 0; font: 650 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.member__name { margin: 0; font-size: 1.08rem; }
.member__name span { font-weight: 500; color: var(--muted); font-size: .92rem; }
.member__interests { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; padding: 0; }
.member__interests li { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-size: .74rem; color: var(--text); }
.member__interests li.is-match { background: var(--brand); color: #fff; }
.member__links { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.member__email { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: .8rem; }
.member__email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member__social { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); min-height: 30px; }
.social { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .78rem; font-weight: 650; text-decoration: none; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
button.social { appearance: none; -webkit-appearance: none; font-family: inherit; cursor: pointer; width: 100%; }
.social:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.social.is-copied { border-color: #10b981; color: #059669; background: rgba(16, 185, 129, .08); }
:root[data-theme="dark"] .social.is-copied { border-color: #34d399; color: #34d399; background: rgba(52, 211, 153, .12); }
.social.is-copied .i { color: #059669; }
:root[data-theme="dark"] .social.is-copied .i { color: #34d399; }
.social--linkedin .i { color: #0a66c2; }
:root[data-theme="dark"] .social--linkedin .i { color: #70b5f9; }
.social--empty { visibility: hidden; }
.about-dialog .toast { position: absolute; bottom: 18px; left: 50%; z-index: 100; }

.alumni-chart { display: grid; gap: 8px; margin-bottom: 28px; }
.alumni-chart__row { display: grid; grid-template-columns: minmax(150px, 260px) 1fr 32px; gap: 12px; align-items: center; font-size: .88rem; }
.alumni-chart__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alumni-chart__bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.alumni-chart__bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #0891b2); }
.alumni-chart__n { text-align: right; color: var(--muted); }
.alumni-years { display: grid; gap: 22px; }
.alumni-year { display: grid; grid-template-columns: 80px 1fr; gap: 18px; }
.alumni-year__label { margin: 6px 0 0; font-size: 1.1rem; color: var(--brand); }
.alumni-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.alum { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.alum img { width: 54px; height: 72px; object-fit: cover; border-radius: 8px; }
.alum__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alum p { margin: 0; }
.alum__name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.alum__name span { font-weight: 500; color: var(--muted); }
.alum__meta { font-size: .76rem; color: var(--muted); }
.alum__next { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text); }
.alum__social { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 5px; }
.alum__social .social { width: 100%; height: 26px; padding: 0 4px; gap: 4px; font-size: .72rem; white-space: nowrap; }
.alum__social .social:last-child:nth-child(odd) { grid-column: 1 / -1; }
.social--placeholder { opacity: .45; border-style: dashed; color: var(--muted); pointer-events: none; user-select: none; }

@media (max-width: 900px) {
  .prof { grid-template-columns: 1fr; }
  .prof__card { position: static; grid-template-columns: 160px 1fr; }
  .prof__card .contact-list, .prof__card .prof__links, .prof__card .scholar-card { grid-column: 1 / -1; }
  .timeline__item { grid-template-columns: 1fr; gap: 2px; }
  .timeline__kind { display: none; }
}
@media (max-width: 560px) {
  .prof__card { grid-template-columns: 1fr; }
  .alumni-year { grid-template-columns: 1fr; gap: 6px; }
  .alumni-chart__row { grid-template-columns: 120px 1fr 28px; }
  .pi { grid-template-columns: 84px 1fr; }
  .pi img { width: 84px; height: 105px; }
}

/* ---- "About me" button (hover gradient as on s-elim.github.io chips) and pop-up ---- */
.about-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 34px; margin-top: auto; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: .84rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease; }
.about-btn:hover, .about-btn:focus-visible { transform: translateY(-2px) scale(1.03); color: #0b1f33; border-color: #3b82f6; background: linear-gradient(135deg, #ffffff 15%, #bfdbfe 75%, #60a5fa 100%); box-shadow: 0 4px 14px rgba(59, 130, 246, .30); }
:root[data-theme="dark"] .about-btn:hover, :root[data-theme="dark"] .about-btn:focus-visible { color: #06121e; border-color: #8ccff7; background: linear-gradient(135deg, #8ccff7 15%, #56b6f2 75%, #2a8ecb 100%); box-shadow: 0 4px 14px rgba(86, 182, 242, .35); }
.member__body .about-btn + .member__links { margin-top: 10px; }
.about-dialog { width: min(680px, calc(100% - 24px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.about-dialog::backdrop { background: rgba(4, 12, 22, .55); backdrop-filter: blur(3px); }
.about-dialog[open] { animation: about-in .18s ease; }
@keyframes about-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.about-dialog__inner { position: relative; display: flex; flex-direction: column; max-height: inherit; }
.about-dialog__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); }
.about-dialog__close:hover { color: var(--ink); border-color: var(--line-strong); }
.about-dialog__head { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 22px 60px 18px 22px; background: linear-gradient(135deg, var(--surface) 40%, var(--brand-soft)); border-bottom: 1px solid var(--line); }
.about-dialog__head img { width: 96px; height: 128px; object-fit: cover; object-position: 50% 25%; border-radius: 12px; }
.about-dialog__role { margin: 0 0 4px; font: 650 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.about-dialog__name { margin: 0 0 8px; font-size: 1.35rem; }
.about-dialog__name span { font-weight: 500; color: var(--muted); font-size: 1rem; }
.about-dialog__body { padding: 18px 22px; overflow-y: auto; font-size: .95rem; line-height: 1.7; }
.about-dialog__body p { margin: 0 0 12px; }
.about-dialog__body strong { color: var(--ink); }
.about-dialog__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.about-dialog__foot .social { flex: 0 0 auto; padding: 0 12px; }
@media (max-width: 520px) { .about-dialog__head { grid-template-columns: 72px 1fr; padding-right: 54px; } .about-dialog__head img { width: 72px; height: 96px; } }
