/* Individual profiles. All rules stay inside the profile page. */
body.academic-record-page {
  margin: 0;
  color-scheme: light dark;
  background: light-dark(#f2f5f7, #101a24);
}
body.academic-record-page main { max-width: 940px; margin: 36px auto; padding: 0 16px; }
body.academic-record-page .person-profile {
  --person-bg: light-dark(#fdfdfc, #17232e);
  --person-ink: light-dark(#1d3042, #edf3f7);
  --person-body: light-dark(#4b5b68, #c0ccd6);
  --person-blue: light-dark(#004085, #9dceff);
  --person-rule: light-dark(#dde4e9, #364956);
  --person-wash: light-dark(#f1f5f8, #223645);
  --pub-journal-start: light-dark(#d9e9f8, #274661);
  --pub-journal-end: light-dark(#edf4fb, #203649);
  --pub-journal-line: light-dark(#1d639e, #88bde9);
  --pub-thesis-start: light-dark(#eaf1f8, #23394c);
  --pub-thesis-end: light-dark(#f4f7fb, #1e2f3f);
  --pub-thesis-line: light-dark(#6590b6, #7098b9);
  --pub-book-start: light-dark(#fff0dc, #493625);
  --pub-book-end: light-dark(#fff8ee, #332b24);
  --pub-book-line: light-dark(#c88d49, #d9a76d);
}
.person-profile {
  --person-bg: #fdfdfc;
  --person-ink: #1d3042;
  --person-body: #4b5b68;
  --person-blue: #004085;
  --person-rule: #dde4e9;
  --person-wash: #f1f5f8;
  --pub-journal-start: #d9e9f8;
  --pub-journal-end: #edf4fb;
  --pub-journal-line: #1d639e;
  --pub-thesis-start: #eaf1f8;
  --pub-thesis-end: #f4f7fb;
  --pub-thesis-line: #6590b6;
  --pub-book-start: #fff0dc;
  --pub-book-end: #fff8ee;
  --pub-book-line: #c88d49;
  background: var(--person-bg);
  color: var(--person-ink);
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

body.dark-theme .person-profile {
  --person-bg: #17232e;
  --person-ink: #edf3f7;
  --person-body: #c0ccd6;
  --person-blue: #9dceff;
  --person-rule: #364956;
  --person-wash: #223645;
  --pub-journal-start: #274661;
  --pub-journal-end: #203649;
  --pub-journal-line: #88bde9;
  --pub-thesis-start: #23394c;
  --pub-thesis-end: #1e2f3f;
  --pub-thesis-line: #7098b9;
  --pub-book-start: #493625;
  --pub-book-end: #332b24;
  --pub-book-line: #d9a76d;
  color-scheme: dark;
}

main article.person-profile {
  max-width: 1020px;
  margin: 0 auto 36px;
  padding: 27px 30px;
}

.person-profile *, .person-profile *::before, .person-profile *::after { box-sizing: border-box; }
.person-profile [hidden] { display: none !important; }
.person-profile a { color: var(--person-blue); text-decoration: none; text-underline-offset: 4px; }
.person-profile a:hover { color: var(--person-blue); text-decoration: underline; }
.person-profile button { cursor: pointer; }
.person-profile a:focus-visible, .person-profile button:focus-visible { outline: 2px solid var(--person-blue); outline-offset: 4px; }
.person-profile :is(section, h2, h3, .person-work-entry) { scroll-margin-top: 20px; }
article.person-profile p { text-align: left !important; }

/* Flex's global aside/nav styles describe the site sidebar, not this content. */
.person-profile aside {
  position: static;
  width: auto;
  height: auto;
  min-height: 0;
  z-index: auto;
  background: transparent;
  color: var(--person-body);
  text-align: left;
  overflow: visible;
}
.person-profile aside > div { min-height: 0; padding: 0; margin: 0; }
.person-profile aside a { color: var(--person-blue); }
.person-profile nav { text-align: left; text-transform: none; }
.person-profile nav a { border-right: 0; }

.person-profile .person-heading {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--person-rule);
}
.person-profile .person-heading > div { min-width: 0; }
.person-profile .person-photo {
  display: block;
  width: 130px;
  height: 163px;
  max-width: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 7px;
  background: var(--person-wash);
  float: none;
  padding: 0;
  margin: 0;
}
.person-profile .person-heading.person-heading-without-photo { grid-template-columns: minmax(0, 1fr); }
.person-profile .person-role {
  color: var(--person-blue);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 7px;
}
.person-profile h1 {
  color: var(--person-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.035em;
  margin: 0 0 11px;
  overflow-wrap: anywhere;
}
.person-profile .person-affiliation { color: var(--person-body); font-size: 12px; line-height: 1.6; margin: 0; }
.person-profile .person-affiliation p, .person-profile .person-links p { color: inherit; font: inherit; margin: 0; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.person-profile .person-links { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; margin-top: 11px; font-size: 12px; }
.person-profile .person-links a { padding: 3px 0; border-bottom: 1px solid var(--person-rule); }
.person-profile .person-contact-inline { display: flex; flex-wrap: wrap; gap: 3px 13px; margin-top: 9px; }
.person-profile .person-contact-inline p { font-size: 11px; line-height: 1.8; margin: 0; overflow-wrap: anywhere; max-width: 100%; }
.person-profile .person-contact-inline a { color: var(--person-body); }
.person-profile .person-section-nav { display: flex; flex-wrap: wrap; gap: 5px 17px; padding: 9px 0; border-bottom: 1px solid var(--person-rule); font-size: 12px; }
.person-profile .person-section-nav a { padding: 3px 0; }

.person-profile h2 { color: var(--person-ink); font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.3; font-weight: 400; letter-spacing: -.015em; margin: 0 0 17px; }
.person-profile .person-section { padding-top: 30px; }
.person-profile .person-prose p { font-size: 15px; line-height: 1.85; color: var(--person-body); max-width: 75ch; margin: 0 0 18px; }
.person-profile .person-prose p:last-child { margin-bottom: 0; }
.person-profile .person-prose strong { color: var(--person-ink); font-weight: 500; }
.person-profile .person-prose ul { font-size: 15px; line-height: 1.75; color: var(--person-body); margin: 18px 0 0; padding-left: 20px; }
.person-profile .person-prose li { padding-left: 3px; margin: 0 0 4px; }
.person-profile .person-first-screen, .person-profile .person-columns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 27px; align-items: start; padding-top: 22px; }
.person-profile .person-first-screen > *, .person-profile .person-columns > * { min-width: 0; }
.person-profile .person-first-screen .person-section { padding-top: 0; }
.person-profile .person-first-screen h2, .person-profile .person-columns h2 { font-size: 22px; margin-bottom: 13px; }
.person-profile .person-first-screen .person-prose p, .person-profile .person-columns .person-prose p { font-size: 13.5px; line-height: 1.78; margin-bottom: 13px; }
.person-profile .person-first-screen-without-sidebar { grid-template-columns: minmax(0, 1fr); }
.person-profile .person-research-sidebar, .person-profile .person-aside { padding-left: 21px; border-left: 1px solid var(--person-rule); }
.person-profile .person-research-sidebar h2, .person-profile .person-aside h2 { font-family: inherit; font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.person-profile .person-priority-interests { margin: 0; padding: 0; border: 0; }
.person-profile .person-interests { list-style: none; display: block; padding: 0; margin: 0; }
.person-profile .person-interests li { position: relative; font-size: 12px; line-height: 1.55; color: var(--person-body); padding-left: 12px; margin: 0 0 7px; }
.person-profile .person-interests li::before { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; left: 0; top: .68em; background: var(--person-blue); }
.person-profile .person-project { padding: 13px 14px; background: var(--person-wash); border-left: 2px solid var(--person-blue); margin-top: 19px; }
.person-profile .person-kicker { margin: 0 0 9px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--person-blue); }
.person-profile .person-project p:not(.person-kicker) { font-size: 12px; line-height: 1.6; margin: 7px 0 0; }
.person-profile .person-project p.person-project-meta { color: var(--person-body); }
.person-profile .person-work { margin-top: 34px; padding-top: 29px; border-top: 1px solid var(--person-rule); }
.person-profile .person-qualifications { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 27px; list-style: none; margin: 0; padding: 0; }
.person-profile .person-qualifications li { font-size: 14px; line-height: 1.7; }
.person-profile .person-qualifications span { display: block; font-size: 12px; color: var(--person-body); margin-top: 4px; }

.person-profile .person-pubs { margin-top: 36px; padding-top: 31px; border-top: 1px solid var(--person-rule); }
.person-profile .person-pubs > h2 { font-size: 29px; margin-bottom: 12px; }
.person-profile .person-subtext { color: var(--person-body); font-size: 12px; line-height: 1.75; margin: 0; }
.person-profile .person-jump-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; margin: 13px 0 8px; padding: 0; border: 0; }
.person-profile .person-jump-links a { padding: 4px 0; border-bottom: 1px solid var(--person-rule); }
.person-profile .person-publication-group { padding-top: 22px; }
.person-profile :is(.person-publication-group, .person-work-entry) { --pub-start: transparent; --pub-end: transparent; --pub-line: var(--person-rule); }
.person-profile :is(.person-publication-group, .person-work-entry)[data-tier="journal"] { --pub-start: var(--pub-journal-start); --pub-end: var(--pub-journal-end); --pub-line: var(--pub-journal-line); }
.person-profile :is(.person-publication-group, .person-work-entry)[data-tier="thesis"] { --pub-start: var(--pub-thesis-start); --pub-end: var(--pub-thesis-end); --pub-line: var(--pub-thesis-line); }
.person-profile :is(.person-publication-group, .person-work-entry)[data-tier="book"] { --pub-start: var(--pub-book-start); --pub-end: var(--pub-book-end); --pub-line: var(--pub-book-line); }
.person-profile .person-publication-group > h3 { display: flex; align-items: baseline; gap: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; line-height: 1.4; color: var(--person-ink); margin: 0; padding-bottom: 7px; border-bottom: 2px solid var(--pub-line); }
.person-profile .person-publication-group > h3 span { font-family: "Avenir Next", Avenir, sans-serif; color: var(--person-body); font-size: 12px; }
/* Two compact columns of cards, as on the personal publication archive. */
.person-profile .person-publication-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 9px 0 0; padding: 0; }
.person-profile .person-publication-list > li {
  min-width: 0;
  background: linear-gradient(105deg, var(--pub-start), var(--pub-end));
  border-left: 3px solid var(--pub-line);
  border-radius: 0 4px 4px 0;
  padding: 8px 12px 9px;
  margin: 0;
}
.person-profile .person-publication-list > li[data-tier="other"] { border-left-width: 2px; }
body.academic-record-page .person-publication-list { grid-template-columns: minmax(0, 1fr); }
body.academic-record-page .person-publication-list > li { padding: 16px; }
.person-profile .person-pubmeta { display: flex; gap: 8px; color: var(--person-body); font-size: 10.5px; font-variant-numeric: tabular-nums; letter-spacing: .06em; line-height: 1.5; text-transform: uppercase; margin: 0 0 2px; }
.person-profile .person-pubkind { color: var(--person-blue); font-weight: 600; }
.person-profile .person-pubmeta span:empty, .person-profile .person-filter-results .person-pubkind, .person-profile .person-timeline .person-pubyear { display: none; }
.person-profile .person-filter-results .person-pubmeta:has(.person-pubyear:empty) { display: none; }
.person-profile .person-paper-title, .person-profile .person-worktitle { color: var(--person-ink); font-size: 13px; font-weight: 500; line-height: 1.45; margin: 0 0 3px; overflow-wrap: anywhere; }
.person-profile .person-paper-title strong { font-weight: inherit; }
.person-profile .person-paper-title a { color: var(--person-blue); }
.person-profile .person-authors { color: var(--person-body); font-size: 11.5px; line-height: 1.5; margin: 0; }
.person-profile .person-publication-list .person-subtext { font-size: 11.5px; line-height: 1.5; }
.person-profile .person-paper { min-width: 0; }
.person-profile .person-author, .person-profile .profile-author, .person-profile .prof-author { color: var(--person-ink) !important; font-weight: 600 !important; background: transparent !important; padding: 0; }
.person-profile .person-dissertation { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; }
.person-profile .person-academic-work .person-dissertation { background: linear-gradient(105deg, var(--pub-start), var(--pub-end)); border-left: 3px solid var(--pub-line); border-radius: 0 5px 5px 0; padding: 18px 16px; margin-top: 10px; }
.person-profile .person-year { font-size: 12px; color: var(--person-body); }
.person-profile .person-work-meta { color: var(--person-body); font-size: 12px; line-height: 1.7; margin: 8px 0 0; }
.person-profile .person-work-abstract { color: var(--person-body); margin-top: 16px; font-size: 13px; line-height: 1.8; }
.person-profile .person-work-abstract p { margin: 0 0 12px; }
.person-profile .person-work-abstract p:last-child { margin-bottom: 0; }
.person-profile .person-pdf { display: inline-block; margin-top: 10px; font-size: 12px; }

/* A shallow, irregular word cloud, followed by the uncollapsed bibliography. */
.person-profile .person-keyword-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 19px; width: 100%; padding: 17px 4px 15px; margin: 13px 0 4px; }
.person-profile .person-keyword { display: inline-block; appearance: none; background: transparent; border: 0; border-radius: 0; box-shadow: none; font-family: Georgia, "Times New Roman", serif; font-size: var(--keyword-size, 16px); font-weight: 400; line-height: 1.15; color: var(--person-body); white-space: nowrap; padding: 2px 0; margin: 0; transform: translateY(var(--keyword-shift, 0)); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.person-profile .person-keyword[data-emphasis="primary"] { color: var(--person-blue); }
.person-profile .person-keyword:hover { color: var(--person-blue); text-decoration: underline; }
.person-profile .person-keyword[aria-pressed="true"] { color: var(--person-blue); text-decoration: underline; text-decoration-thickness: 2px; }
.person-profile .person-filter-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.person-profile .person-filter-reset { appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--person-rule); border-radius: 0; color: var(--person-body); font: inherit; padding: 3px 0; margin: 0; box-shadow: none; }
.person-profile .person-filter-reset:hover, .person-profile .person-filter-reset[aria-pressed="true"] { color: var(--person-blue); border-bottom-color: currentColor; }
.person-profile .person-filter-status { color: var(--person-body); }
.person-profile .person-timeline { margin-top: 12px; }
.person-profile .person-timeline-year { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 14px; padding: 12px 0; border-top: 1px solid var(--person-rule); }
.person-profile .person-timeline-heading { display: flex; flex-direction: column; color: var(--person-blue); font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 400; line-height: 1.2; margin: 0; }
.person-profile .person-timeline-heading span { color: var(--person-body); font-family: "Avenir Next", Avenir, sans-serif; font-size: 11px; line-height: 1.8; }
.person-profile .person-timeline .person-publication-list { margin: 0; }

.person-profile .person-students { margin-top: 34px; border-top: 1px solid var(--person-rule); }
/* Supervision: an Active panel (blue) beside an Alumni panel (amber), each a few rows of portraits. */
.person-profile .person-student-blocks { display: grid; grid-template-columns: var(--student-columns, repeat(2, minmax(0, 1fr))); gap: 18px; align-items: start; }
.person-profile .person-student-blocks > :only-child { grid-column: 1 / -1; }
.person-profile .person-student-block { --student-accent: var(--pub-journal-line); --student-tint: var(--pub-journal-start); --student-fade: var(--pub-journal-end); --student-ink: color-mix(in srgb, var(--student-accent) 68%, var(--person-ink)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 12px; min-width: 0; padding: 12px 15px 13px; border-top: 2px solid var(--student-accent); border-radius: 0 0 6px 6px; background: linear-gradient(180deg, var(--student-fade), transparent 150px); }
.person-profile .person-student-block[data-status="alumni"] { --student-accent: var(--pub-book-line); --student-tint: var(--pub-book-start); --student-fade: var(--pub-book-end); }
.person-profile .person-student-block h3 { display: flex; align-items: baseline; gap: 9px; color: var(--person-ink); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; line-height: 1.2; margin: 0; }
.person-profile .person-student-count { color: var(--student-ink); font-size: 24px; line-height: 1; font-variant-numeric: lining-nums; }
.person-profile .person-student-note { color: var(--person-body); font-size: 10px; letter-spacing: .07em; line-height: 1.5; text-transform: uppercase; margin: 0; }
.person-profile .person-student-level { grid-column: 1 / -1; margin-top: 10px; }
.person-profile .person-student-level h4 { display: flex; align-items: center; gap: 8px; color: var(--student-ink); font-family: "Avenir Next", Avenir, sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; margin: 0 0 6px; }
.person-profile .person-student-level h4 span { color: var(--person-body); font-weight: 400; letter-spacing: 0; }
.person-profile .person-student-level h4::after { content: ""; flex: 1; height: 1px; background: var(--person-rule); }
.person-profile .person-student-names { display: flex; flex-wrap: wrap; gap: 5px 18px; list-style: none; padding: 0; margin: 0; }
.person-profile .person-student-names li { display: flex; min-width: 0; margin: 0; padding: 0; }
.person-profile a.person-student { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; color: var(--person-ink); text-decoration: none; }
.person-profile a.person-student:hover { color: var(--person-ink); text-decoration: none; }
.person-profile .person-student-avatar { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; float: none; padding: 0; margin: 0; background: var(--student-tint); box-shadow: 0 0 0 1px var(--person-bg), 0 0 0 2px var(--student-tint); color: var(--student-ink); font-size: 8.5px; font-weight: 600; letter-spacing: .02em; line-height: 1; transition: box-shadow .15s ease; }
.person-profile a.person-student:hover .person-student-avatar { box-shadow: 0 0 0 1px var(--person-bg), 0 0 0 2px var(--student-accent); }
.person-profile .person-student-name { font-size: 12.5px; font-weight: 500; line-height: 1.35; text-decoration-color: var(--student-accent); text-underline-offset: 3px; }
.person-profile a.person-student:hover .person-student-name { text-decoration-line: underline; }
.person-profile .person-student-meta { color: var(--person-body); font-size: 10.5px; font-variant-numeric: tabular-nums; margin-left: -2px; }
.person-profile .person-student-co { color: var(--student-ink); border: 1px solid currentColor; border-radius: 3px; font-size: 8.5px; font-weight: 600; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; padding: 0 3px; margin-left: -2px; }
.person-profile .person-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.person-profile .person-student-project { color: var(--person-body); font-size: 12px; line-height: 1.65; margin: 6px 0 0; }

@media (max-width: 1000px) and (min-width: 768px), (max-width: 620px) {
  main article.person-profile { padding: 24px; }
  .person-profile .person-heading { grid-template-columns: 105px minmax(0, 1fr); gap: 20px; }
  .person-profile .person-photo { width: 105px; height: 137px; }
  .person-profile h1 { font-size: 28px; }
  .person-profile .person-first-screen, .person-profile .person-columns { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .person-profile .person-research-sidebar, .person-profile .person-aside { padding-left: 0; border-left: 0; }
  .person-profile .person-interests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
  .person-profile .person-publication-list, .person-profile .person-student-blocks { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 460px) {
  main article.person-profile { padding: 21px 18px; }
  .person-profile .person-heading { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .person-profile .person-photo { width: 88px; height: 112px; }
  .person-profile h1 { font-size: 25px; }
  .person-profile .person-affiliation { font-size: 11px; }
  .person-profile .person-links { font-size: 11px; gap: 4px 12px; }
  .person-profile .person-interests, .person-profile .person-qualifications { grid-template-columns: minmax(0, 1fr); }
  .person-profile .person-timeline-year { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .person-profile .person-timeline-heading { flex-direction: row; align-items: baseline; gap: 10px; }
  .person-profile .person-academic-work .person-dissertation { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .person-profile .person-keyword-cloud { gap: 12px 14px; padding: 12px 0; }
  .person-profile .person-keyword { font-size: var(--keyword-mobile-size, 15px); }
}

@media (pointer: coarse) {
  .person-profile .person-keyword, .person-profile .person-filter-reset, .person-profile .person-links a, .person-profile .person-section-nav a, .person-profile .person-jump-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .person-profile a.person-student { min-height: 32px; }
}
