.education-card,
.talk-row,
.reviewer-row,
.news-row,
.publications ol.bibliography > li {
  border: 1px solid var(--global-divider-color);
  border-radius: 0.65rem;
  background: var(--global-card-bg-color);
  box-shadow: 0 0.125rem 0.4rem rgba(0, 0, 0, 0.08);
}
.social a[title="Hugging Face"] svg {
  display: inline-block;
  margin-bottom: 0;
}

.social .contact-icons a[title="Hugging Face"] svg {
  height: 3.5rem;
  vertical-align: -0.06em;
}

.navbar .navbar-brand.social a[title="Hugging Face"] svg {
  margin-bottom: 0;
  vertical-align: -0.08em;
}

.education-section {
  clear: both;
  width: 100%;
  padding-top: 0.25rem;
}

/* The about layout supplies these section labels in lowercase. */
.post article > h2::first-letter {
  text-transform: uppercase;
}

.education-list {
  width: 100%;
}

.talk-list,
.reviewer-list,
.news-list {
  width: 100%;
}

.visitor-map {
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 0.85rem;
  margin: 0.75rem auto 0;
  overflow: hidden;
  border: 1px solid var(--global-divider-color);
  border-radius: 0.65rem;
  background: var(--global-card-bg-color);
  box-shadow: 0 0.125rem 0.4rem rgba(0, 0, 0, 0.08);
}

.visitor-map img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.visitor-map-section {
  clear: both;
  padding-top: 1rem;
  margin-top: 1rem;
}

.post article > .social {
  display: flex;
  flex-direction: column;
}

.post article > .social > .contact-icons {
  order: 2;
}

.post article > .social > .contact-note {
  display: contents;
}

.post article > .social .visitor-map-section {
  order: 1;
}

.post article > .social .contact-note-text {
  order: 3;
}

.talk-row,
.reviewer-row,
.news-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}

.talk-company-logo {
  display: flex;
  flex: 0 0 92px;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.talk-company-logo img {
  display: block;
  width: 82px;
  height: 28px;
  object-fit: contain;
}

.talk-row strong {
  font-size: 1.02rem;
}

.reviewer-row {
  align-items: baseline;
}

/* Body text, not the theme color: these labels are not links. <strong> carries the weight. */
.reviewer-year,
.news-date {
  flex: 0 0 64px;
  margin-right: 1rem;
  color: var(--global-text-color);
}

.news-date {
  flex-basis: 84px;
  white-space: nowrap;
}

/* News: the same card rows as Invited Talks / Reviewer, in a scroll box on the about page. */
.news-scroll {
  max-height: 26rem;
  padding-right: 0.35rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: var(--global-divider-color) transparent;
}

.news-scroll::-webkit-scrollbar {
  width: 12px;
}

.news-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.news-scroll::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--global-divider-color);
}

.news-content {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Highlighted cards: acceptances and papers that got outside attention.
   The plain background is the fallback for browsers without color-mix(). */
.news-row.news-highlight {
  border-color: var(--global-theme-color);
  background: var(--global-card-bg-color);
  background: color-mix(in srgb, var(--global-theme-color) 8%, var(--global-card-bg-color));
}

.education-card {
  margin-bottom: 0.65rem !important;
}

.education-card .card-body {
  padding: 0.85rem 1rem;
}

.education-card .education-logo {
  flex: 0 0 58px;
  margin-right: 1rem;
}

.education-card .education-logo img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.education-card .education-details {
  min-width: 0;
}

.education-card .card-title {
  margin-bottom: 0.1rem !important;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}

.education-card p {
  margin-top: 0;
  margin-bottom: 0.15rem !important;
  line-height: 1.3;
}

.education-card p:last-child {
  margin-bottom: 0 !important;
}

.education-card .education-link,
.education-card .education-link:visited {
  color: var(--global-theme-color);
  font-weight: 600;
}

.publications ol.bibliography > li {
  padding: 0.9rem;
  margin-bottom: 0.9rem;
}

.publications ol.bibliography > li > .row {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
}

.publications ol.bibliography > li .abbr {
  position: relative;
  flex: 0 0 28%;
  max-width: 28%;
  padding: 0;
  margin: 0;
}

.publications ol.bibliography > li .abbr abbr {
  position: static;
  width: 100% !important;
  max-width: 100%;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem !important;
  box-shadow: none;
  font-size: 0.8rem;
  line-height: 1.2;
}

.publications ol.bibliography > li .abbr figure {
  margin: 0;
}

.publications ol.bibliography > li .abbr picture {
  display: block;
}

.publications ol.bibliography > li .abbr .preview {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--global-divider-color);
  border-radius: 0.45rem !important;
  box-shadow: none !important;
}

.publications ol.bibliography > li > .row > [id] {
  flex: 1 1 0;
  width: 0 !important;
  min-width: 0 !important;
  max-width: none;
  padding: 0;
}

.publications ol.bibliography > li .title,
.publications ol.bibliography > li .author,
.publications ol.bibliography > li .periodical,
.publications ol.bibliography > li .links {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.publications ol.bibliography > li .more-authors {
  white-space: normal !important;
}

.publications ol.bibliography > li .links {
  margin-top: 0.55rem;
}

.publications ol.bibliography > li .title {
  margin-bottom: 0.2rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.publications ol.bibliography > li .author,
.publications ol.bibliography > li .periodical {
  line-height: 1.4;
}

.publications ol.bibliography > li .links a.btn {
  padding: 0.2rem 0.65rem;
  margin-right: 0.25rem;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
}

@media (max-width: 767.98px) {
  .education-card .card-body {
    align-items: flex-start !important;
  }

  .education-card .education-logo {
    flex-basis: 48px;
    margin-right: 0.85rem;
  }

  .education-card .education-logo img {
    width: 48px;
    height: 48px;
  }

  .talk-company-logo {
    flex-basis: 72px;
    margin-right: 0.75rem;
  }

  .talk-company-logo img {
    width: 66px;
    height: 24px;
  }

  .reviewer-row,
  .news-row {
    display: block;
  }

  .reviewer-year,
  .news-date {
    display: block;
    margin-right: 0;
    margin-bottom: 0.2rem;
  }

  .news-scroll {
    max-height: 22rem;
  }

  .publications ol.bibliography > li > .row {
    display: block !important;
  }

  .publications ol.bibliography > li .abbr {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .publications ol.bibliography > li > .row > [id] {
    width: 100% !important;
  }
}

/* Give the research experience room for its logo, method, and results. */
.experience-card .card-body {
  padding: 1.4rem;
}

.experience-header {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 0.4rem 1.4rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.experience-logo {
  grid-row: 1 / span 2;
  display: block;
  overflow: hidden;
  border: 1px solid var(--global-divider-color);
  border-radius: 0.5rem;
  background: #fff;
}

.experience-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.experience-role,
.experience-recognition {
  grid-column: 2;
  min-width: 0;
}

.experience-card .experience-work p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.experience-card .experience-recognition {
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  .experience-card .card-body {
    padding: 1rem;
  }

  .experience-header {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.85rem 1rem;
  }

  .experience-logo {
    grid-row: 1;
  }

  .experience-recognition {
    grid-column: 1 / -1;
  }
}

/* The official Kling wordmark is monochrome. */
html[data-theme="dark"] .talk-company-logo .kling-logo {
  filter: invert(1);
}
