@charset "utf-8";

:root {
  --accent-green: #12342a;
  --accent-blue: #0969da;
  --accent-gold: #c89b3c;
  --accent-gradient: linear-gradient(90deg, var(--accent-green), var(--accent-blue) 68%, var(--accent-gold));
}

body {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  padding-top: 5.0rem;
}

body.bg-light {
  background:
    radial-gradient(circle at 10% 0%, rgba(21, 94, 69, 0.10), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(9, 105, 218, 0.07), transparent 30rem),
    linear-gradient(180deg, #f7f5ee 0%, #eef3f4 100%) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 700;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 52, 42, 0.08) !important;
  border-radius: 0.8rem !important;
  box-shadow: 0 14px 38px rgba(31, 45, 38, 0.10) !important;
}

.bg-white {
  background-color: #fffef9 !important;
}

.card-img-overlay {
  border-radius: 0.8rem !important;
}

.rounded-xl {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 52, 42, 0.08);
  border-radius: 0.8rem !important;
}

.rounded-xl-bottom {
  border-bottom-right-radius: 0.8rem !important;
  border-bottom-left-radius: 0.8rem !important;
}

.rounded-xl-top {
  border-top-left-radius: 0.8rem !important;
  border-top-right-radius: 0.8rem !important;
}

.rounded-sm {
  border-radius: 0.2rem !important;
}

.text-profile-position {
  font-weight: 400;
}

.text-profile-bio {
  font-weight: 400;
}

.text-profile-bio strong {
  padding: 0 0.08rem;
  background: linear-gradient(180deg, transparent 62%, rgba(200, 155, 60, 0.22) 0);
}

.navbar {
  background-color: rgba(18, 52, 42, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

a {
  color: var(--accent-blue);
}

a:hover,
a:focus {
  color: #0550ae;
}

.navbar-light .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.72);
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
  color: #ffffff;
  font-weight: 700;
}

.navbar-light .navbar-brand,
.navbar-light .navbar-toggler {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.25);
}

.site-mark {
  margin-right: 1rem;
}

.nav-console {
  display: inline-flex;
  align-items: center;
  max-width: 50%;
  overflow: hidden;
  font-family: "Source Code Pro", monospace;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.88) !important;
  white-space: nowrap;
}

.console-path {
  color: #f3f7f2;
}

.console-muted {
  color: rgba(255, 255, 255, 0.54);
}

.console-cmd {
  margin-left: 0.45rem;
  color: #b8d7c1;
}

.console-cursor {
  display: inline-block;
  width: 0.55rem;
  height: 1.05em;
  margin-left: 0.18rem;
  border-bottom: 2px solid var(--accent-gold);
  animation: cursor-blink 1.05s steps(2, start) infinite;
}

@keyframes cursor-blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

.inline-badge {
  height: 16px;
  vertical-align: -10%;
  margin-right: 2px;
  line-break: unset;
}

.no-break {
  white-space: nowrap;
}

.cover-image {
  width: 180px;
  max-height: 120px;
}

.abstract-body {
  min-height: 100px;
}

img.lazy {
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 50px 50px;
  min-height: 80px;
}

div.lazy {
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 50px 50px;
  min-height: 80px;
}

.badge-publication {
  font-size: 100%;
}

.email-text {
  font-family: "Source Code Pro", monospace;
}

.profile-name {
  position: relative;
  display: inline-block;
  letter-spacing: 0;
}

.profile-name::after {
  content: "";
  display: block;
  width: 3.4rem;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--accent-gradient);
}

.profile-photo {
  width: 220px;
  height: 240px;
  object-fit: cover;
  object-position: 50% 35%;
  box-shadow:
    0 0 0 1px rgba(18, 52, 42, 0.10),
    0 12px 28px rgba(31, 45, 38, 0.12);
}

.border-gray {
  border-color: #dee2e6;
}

.notice-line {
  border-left: 0;
  background:
    var(--accent-gradient) left / 4px 100% no-repeat,
    #f6f4ee;
  color: #1f2722;
  font-weight: 600;
}

main h6 {
  position: relative;
}

main h6::after {
  content: "";
  display: block;
  width: 2.3rem;
  height: 2px;
  margin-top: 0.38rem;
  border-radius: 999px;
  background: var(--accent-gradient);
}

.rounded-xl > h6::after {
  position: absolute;
  left: 1rem;
  bottom: -1px;
  margin-top: 0;
}

.news-list {
  color: #2b302c;
}

.news-row {
  display: grid;
  grid-template-columns: 4.5rem 1.7rem minmax(0, 1fr) 5rem;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.62rem 0;
}

.news-year {
  color: #6f786f;
  white-space: nowrap;
  font-size: 1.08rem;
}

.news-icon {
  color: #526b60;
  text-align: center;
}

.news-body {
  line-height: 1.45;
}

.news-date {
  color: #6f7780;
  text-align: right;
  white-space: nowrap;
}

.education-list .media + .media {
  margin-top: 1.15rem;
}

.publication-thumb {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background:
    linear-gradient(#fffef9, #fffef9) padding-box,
    var(--accent-gradient) border-box;
  color: #314a55;
  font-weight: 700;
  text-align: center;
}

.publication-figure {
  height: 132px;
  padding: 0.35rem;
}

.publication-figure img,
.publication-mobile-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.publication-mobile-figure {
  height: 132px;
  padding: 0.4rem;
  border: 1px solid rgba(18, 52, 42, 0.08);
  background: #fffef9;
}

.publication-thumb span {
  display: block;
  padding: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.15;
}

.abstract-links a {
  margin-right: 0.35rem;
  white-space: nowrap;
}

.year-nav {
  top: 80px;
}

.logo-placeholder {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.25rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  font-size: 0.65rem;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 575.98px) {
  body {
    overflow-x: hidden;
  }

  main.container-lg,
  footer.container-lg {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .card,
  .rounded-xl {
    max-width: 100%;
    overflow: hidden;
  }

  .navbar .container-lg {
    justify-content: space-between;
  }

  .navbar-toggler {
    color: #ffffff !important;
  }

  .card-body.p-5 {
    padding: 1.5rem !important;
  }

  .email-text,
  .text-profile-position,
  .text-profile-bio,
  .text-profile-bio p,
  .news-body {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .no-break {
    white-space: normal;
  }

  a.no-break {
    display: inline-block;
    margin-bottom: 0.35rem;
  }

  .nav-console {
    max-width: 68%;
    font-size: 0.78rem;
  }

  .console-cmd {
    display: none;
  }

  .media-body .d-flex {
    flex-wrap: wrap;
  }

  .media-body .d-flex .ml-auto {
    margin-left: 0 !important;
    width: 100%;
  }

  .news-row {
    grid-template-columns: 3.4rem 1.35rem minmax(0, 1fr);
  }

  .news-date {
    grid-column: 3;
    text-align: left;
    font-size: 0.86rem;
  }
}
