:root {
  --blue: #1f5f92;
  --link: #2c9fd6;
  --ink: #4d4d4d;
  --muted: #6f6f6f;
  --rule: #e7e7e7;
  --badge: #063b79;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.58;
}

a {
  color: var(--link);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  color: var(--blue);
  text-decoration: underline;
}

strong {
  color: #4b4b4b;
  font-weight: 700;
}

.wrapper {
  width: 960px;
  margin: 0 auto;
  padding: 64px 0 54px;
}

.profile {
  float: left;
  width: 270px;
  padding-right: 28px;
  text-align: center;
}

main {
  width: 650px;
  margin-left: 310px;
}

.avatar {
  display: block;
  width: 205px;
  height: 205px;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(31, 95, 146, 0.13);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 27px;
  line-height: 1.18;
}

.position {
  margin-bottom: 2px;
  color: #626262;
  font-size: 17px;
  font-weight: 700;
}

.affiliation {
  margin-bottom: 13px;
  color: #626262;
  font-size: 15px;
  line-height: 1.52;
}

.email-line {
  margin: 0 0 2px;
  font-size: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 17px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  color: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.social-icons a:nth-child(2) {
  min-width: 34px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  font-size: 11px;
}

section {
  margin-bottom: 26px;
}

h2 {
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 26px;
  line-height: 1.2;
}

h3 {
  margin: 16px 0 19px;
  color: var(--blue);
  font-size: 19px;
  line-height: 1.25;
}

p {
  margin-bottom: 15px;
}

ul {
  margin-top: 0;
  padding-left: 25px;
}

li {
  margin-bottom: 8px;
}

.publication-section {
  margin-top: 8px;
}

.bibliography {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: pub;
}

.bibliography > li {
  position: relative;
  margin-bottom: 43px;
  counter-increment: pub;
}

.bibliography > li::before {
  position: absolute;
  top: 4px;
  left: -22px;
  color: #777;
  content: counter(pub) ".";
  font-size: 14px;
  font-weight: 700;
}

.pub-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.abbr {
  position: relative;
  padding-top: 3px;
}

.teaser-frame {
  position: relative;
  width: 170px;
  height: 96px;
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.teaser-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.teaser {
  position: relative;
  width: 170px;
  height: 96px;
  overflow: hidden;
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.3)),
    #e6edf0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.teaser::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 32px, rgba(255, 255, 255, 0.42) 33px, transparent 34px),
    linear-gradient(0deg, transparent 23px, rgba(255, 255, 255, 0.38) 24px, transparent 25px);
  background-size: 42px 100%, 100% 32px;
  opacity: 0.65;
}

.badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  min-width: 58px;
  padding: 4px 9px;
  border-radius: 4px 0 4px 0;
  background: var(--badge);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.teaser--proact {
  background:
    radial-gradient(circle at 76% 32%, #e7b963 0 10px, transparent 11px),
    linear-gradient(145deg, #a6bfbe, #e5e7dd 58%, #9db4b0);
}

.node {
  position: absolute;
  z-index: 1;
  width: 23px;
  height: 23px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2f8c70;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.node-a {
  top: 49px;
  left: 32px;
}

.node-b {
  top: 31px;
  left: 86px;
}

.node-c {
  top: 60px;
  right: 27px;
}

.path {
  position: absolute;
  z-index: 0;
  height: 4px;
  border-radius: 4px;
  background: rgba(6, 59, 121, 0.58);
}

.path-a {
  top: 50px;
  left: 54px;
  width: 45px;
  transform: rotate(-19deg);
}

.path-b {
  top: 55px;
  left: 103px;
  width: 43px;
  transform: rotate(21deg);
}

.teaser--ootsm {
  background: linear-gradient(135deg, #efe9d3, #dce8ee);
}

.frame {
  position: absolute;
  width: 42px;
  height: 32px;
  border: 2px solid rgba(31, 95, 146, 0.78);
  background: rgba(255, 255, 255, 0.58);
}

.frame-a {
  top: 36px;
  left: 28px;
}

.frame-b {
  top: 23px;
  left: 79px;
}

.frame-c {
  right: 20px;
  bottom: 17px;
}

.teaser--afford {
  background: linear-gradient(135deg, #f2e8dd, #d7e7df);
}

.target {
  position: absolute;
  right: 21px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border: 3px solid #4a8f76;
  border-radius: 50%;
}

.target::after {
  position: absolute;
  inset: 12px;
  border: 3px solid #c8694f;
  border-radius: 50%;
  content: "";
}

.tool {
  position: absolute;
  width: 47px;
  height: 14px;
  border-radius: 14px;
  background: #f1c069;
  transform-origin: center;
}

.tool-a {
  top: 42px;
  left: 29px;
  transform: rotate(32deg);
}

.tool-b {
  top: 62px;
  left: 52px;
  background: #69a7bf;
  transform: rotate(-16deg);
}

.teaser--mgml {
  background: linear-gradient(135deg, #e5e2f0, #eef2dd);
}

.cluster {
  position: absolute;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(44, 159, 214, 0.78);
  box-shadow:
    22px 12px 0 rgba(44, 159, 214, 0.34),
    -8px 21px 0 rgba(255, 255, 255, 0.68);
}

.cluster-a {
  top: 39px;
  left: 28px;
}

.cluster-b {
  top: 29px;
  left: 79px;
  background: rgba(192, 98, 78, 0.74);
}

.cluster-c {
  top: 43px;
  right: 24px;
  background: rgba(85, 143, 112, 0.76);
}

.teaser--small {
  height: 76px;
  background:
    linear-gradient(135deg, rgba(244, 247, 249, 0.9), rgba(214, 229, 237, 0.9)),
    repeating-linear-gradient(45deg, rgba(31, 95, 146, 0.22) 0 7px, transparent 7px 16px);
}

.teaser--small.alt {
  background:
    linear-gradient(135deg, rgba(235, 244, 237, 0.92), rgba(219, 235, 241, 0.9)),
    repeating-linear-gradient(90deg, rgba(47, 140, 112, 0.18) 0 8px, transparent 8px 18px);
}

.teaser--small.warm {
  background:
    linear-gradient(135deg, rgba(248, 235, 219, 0.95), rgba(238, 242, 226, 0.95)),
    repeating-linear-gradient(135deg, rgba(198, 105, 79, 0.22) 0 6px, transparent 6px 15px);
}

.teaser--small.cool {
  background:
    linear-gradient(135deg, rgba(226, 238, 247, 0.96), rgba(238, 238, 244, 0.94)),
    repeating-linear-gradient(0deg, rgba(31, 95, 146, 0.19) 0 5px, transparent 5px 14px);
}

.pub-content h4 {
  margin-bottom: 7px;
  color: var(--link);
  font-size: 17px;
  line-height: 1.45;
}

.pub-content h4 a {
  color: var(--link);
  font-weight: 700;
}

.pub-title-static {
  color: var(--link);
  font-weight: 700;
  cursor: default;
}

.author,
.periodical {
  margin: 0 0 5px;
  font-size: 15px;
}

.author {
  font-weight: 400;
}

.author strong {
  font-weight: 700;
}

.author sup {
  font-size: 0.72em;
  line-height: 0;
}

.equal-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.periodical {
  line-height: 1.5;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.btn {
  appearance: none;
  min-height: 19px;
  padding: 1px 7px;
  border: 1px solid #4b4b4b;
  border-radius: 0;
  background: #fff;
  color: #222;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
}

.btn:hover,
.btn.is-open {
  border-color: var(--blue);
  color: var(--blue);
}

.toggle-content {
  display: none;
  margin-top: 10px;
}

.toggle-content.is-open {
  display: block;
}

.toggle-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 500;
}

.bibtex {
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
  border-left: 3px solid var(--rule);
  background: #f7f7f7;
  color: #4b4b4b;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  white-space: pre-wrap;
}

.compact .bibliography > li,
.compact > li {
  margin-bottom: 31px;
}

.compact .pub-row {
  grid-template-columns: 190px minmax(0, 1fr);
}

.pub-row--no-image {
  grid-template-columns: minmax(0, 1fr);
}

.compact .pub-row.pub-row--no-image {
  grid-template-columns: minmax(0, 1fr);
}

@media print, screen and (max-width: 960px) {
  .wrapper {
    width: auto;
    max-width: 760px;
    padding: 34px 24px 42px;
  }

  .profile {
    float: none;
    width: auto;
    padding-right: 0;
    margin-bottom: 34px;
  }

  main {
    width: auto;
    margin-left: 0;
  }

  .avatar {
    width: 188px;
    height: 188px;
    margin-bottom: 18px;
  }

  .bibliography > li::before {
    left: 0;
  }

  .bibliography > li {
    padding-left: 22px;
  }
}

@media screen and (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .wrapper {
    padding: 28px 18px 38px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 24px;
  }

  .pub-row,
  .compact .pub-row {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .teaser {
    width: min(100%, 235px);
    height: 132px;
  }

  .teaser-frame {
    width: min(100%, 235px);
    height: 132px;
  }

  .teaser--small {
    height: 96px;
  }

  .pub-content h4 {
    font-size: 16px;
  }
}
