/* Lavender mist */
@media (min-width: 1200px) {
  .twocol {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5em;
    align-items: start;
  }
}
.twocol img {
  max-width: 100%;
  object-fit: contain;
}
.twocol {
  margin-top: 2em;
}
.shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  column-gap: 0.5em;
  padding: 0.35em 0.5em;
  margin: 1em 0 0;
  background: #f6f4fb;
}
.shortcuts a {
  color: #555280;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  padding-block: 0.15em;
}
/* Underline shortcuts without changing the size of a flex item or row. */
.shortcuts a:hover,
.shortcuts a:focus-visible {
  border-bottom: 0;
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
}
.shortcuts .row-break {
  display: none;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .shortcuts .two-rows {
    display: block;
    flex-basis: 100%;
    height: 0;
  }
}
@media (max-width: 760px) {
  .shortcuts .three-rows {
    display: block;
    flex-basis: 100%;
    height: 0;
  }
  .shortcuts a {
    max-width: 45%;
  }
  .shortcuts a:nth-of-type(-n + 3) {
    max-width: 29%;
  }
}
.shortcuts a::before {
  content: "\25BE\00A0";
}
.contact-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em 2em;
}
.contact-columns dl {
  margin: 0;
}
.contact-columns dt {
  margin: 0 0 0.35em;
  font-weight: normal;
}
.contact-columns dd {
  margin: 0;
}
.email-notice {
  margin: 1em 0;
  padding: 0.55em 0.8em;
  background: #fffdf5;
  border-left: 5px solid #e9d9a6;
}
table.research-topics {
  width: 100%;
  border-spacing: 0;
}
table.research-topics td:first-child {
  width: 45%;
}
table.research-topics td:nth-child(2) {
  width: 23%;
}
table.research-topics td {
  vertical-align: top;
  padding: 0 0.6em 0 0;
}
table.research-topics td:last-child {
  padding-right: 0;
}
.research-topics h3 {
  margin: 0.25em 0;
}
.research-topics ul {
  margin: 0;
  padding: 0 0 0 0.65em;
  list-style-type: disc;
}
.research-topics li {
  margin: 0;
  padding: 0;
}
.research-topics li::marker {
  font-size: 0.75em;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-evenly;
  gap: 0.4em 1em;
  padding-inline: 1em;
  margin: 0.7em 0;
}
.profile-links a {
  white-space: nowrap;
  border-bottom: 1px dotted transparent;
}
.profile-links a:hover {
  border-bottom-color: gray;
}
div#toptitle {
  padding-bottom: 0;
  border-bottom: 0;
}
#layout-content div#toptitle h1,
#layout-content .twocol h2,
#layout-content.thesis-archive h2 {
  color: #383863;
  background: #f3f1fa;
  border-bottom: 0;
  border-left: 5px solid var(--heading-accent);
  padding: 0.29em 0.7rem 0.32em;
  line-height: 1.14;
}
.profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "role role cloud" "portrait details cloud";
  column-gap: 1em;
  align-items: center;
}
.professor-line {
  grid-area: role;
  align-self: start;
  padding: 0.25em 0 0.65em calc(5px + 0.7rem);
  font-size: 110%;
}
.profile-details {
  grid-area: details;
}
.profile-portrait {
  grid-area: portrait;
}
.profile-cloud {
  grid-area: cloud;
}
.profile-portrait img,
.profile-cloud img {
  display: block;
  max-width: 100%;
  height: auto;
}
@media (max-width: 1150px) {
  .profile-header {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "role role" "portrait details";
  }
  .profile-cloud {
    display: none;
  }
}
@media (max-width: 700px) {
  .profile-header {
    grid-template-columns: minmax(0, 1fr) clamp(64px, 20vw, 110px);
    grid-template-areas: "role role" "members members" "contacts portrait" "notice notice";
    column-gap: 0.65em;
  }
  .profile-details {
    display: contents;
  }
  .profile-members {
    grid-area: members;
  }
  .contact-columns {
    grid-area: contacts;
    flex-direction: column;
    overflow-wrap: anywhere;
  }
  .profile-portrait {
    align-self: start;
  }
  .email-notice {
    grid-area: notice;
  }
}
.twocol h4 {
  font-weight: 700;
  margin: 0.45em 0 0.35em;
  padding: 0;
}
.twocol h4 + ul,
.twocol h4 + p {
  margin-top: 0;
}
.twocol ul:has(+ h4) {
  margin-bottom: 0.35em;
}
.twocol ul:has(+ h4) > li:last-child {
  padding-bottom: 0 !important;
}

/* Formatting shared by entries and inline logos. */
li.spaced-entry {
  padding-bottom: 0.5em;
}
img.icon-bottom {
  vertical-align: bottom;
}
img.icon-baseline {
  vertical-align: baseline;
}
.collaboration-distance {
  font-size: 0.7em;
}

/* Homepage paragraph and list spacing */
.profile-header,
.twocol,
.twocol p,
.email-notice {
  line-height: 1.36;
}
.twocol p {
  margin-bottom: 0.86em;
}
.twocol p + ul,
.twocol p + ol {
  margin-top: -0.25em;
}

/* The long student and course entries already have their own padding. */
.twocol ul > li + li:where(:not(.spaced-entry)) {
  margin-top: 0.12em;
}
.twocol li.spaced-entry {
  padding-bottom: 0.55em;
}
.twocol .research-topics li + li {
  margin-top: 0.05em;
}
.twocol .dial-publications {
  --dp-gap: 0.12em;
}

:root {
  --heading-accent: #7971ad;
}

.contact-columns dt,
#Students ~ h4 {
  border-left: 3px solid var(--heading-accent);
  padding: 0 0 0 0.45em;
  background: transparent;
  color: #383863;
  font-weight: 700;
  line-height: 1.2;
}

/* The archive uses the homepage typography in a single reading column. */
.thesis-archive {
  max-width: 66rem;
  margin-inline: auto;
  line-height: 1.36;
}
.thesis-archive li.spaced-entry {
  padding-bottom: 0.55em;
}
.thesis-archive #toptitle + p {
  margin-top: 0.65em;
}

a, a > tt { color: #3f548b; }

/* The UCLouvain lettering ends four pixels above the bottom of the icon. */
.profile-links img[src$="/uclouvain-icon.png"] {
  transform: translateY(4px);
}
