/* Shared styles for all pages. Color scheme stolen from Sergey Karayev. */

/* ---------- Text and links ---------- */

a {
  color: #1772d0;
  text-decoration: none;
}

a.black {
  color: #000000;
  text-decoration: none;
}

a:focus,
a:hover {
  color: rgb(180, 16, 44);
  text-decoration: none;
}

body,
td,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
}

heading {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
  color: rgb(180, 16, 44);
}

name {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

/* Dates and labels line up with the first line of their entry. */
td[valign="center"]:first-child:not(:only-child) {
  vertical-align: top;
}

/* ---------- Top bar: name and pages on the left, sections of the current page on the right ---------- */

html {
  scroll-behavior: smooth;
  /* Reserve the scrollbar's space on short pages too, so the layout doesn't shift between pages. */
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

div.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-width: 976px;
  margin: -8px -8px 16px -8px;
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #e6e8eb;
}

div.topbar div.inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 936px;
  height: 52px;
  margin: 0 auto;
}

div.topbar div.left {
  display: flex;
  align-items: center;
}

div.topbar a.home {
  display: flex;
  align-items: center;
  color: #000000;
  font-weight: bold;
}

div.topbar a.home img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* A thin divider separates the name from the page links. */
div.topbar nav.pages {
  display: flex;
  align-items: center;
  height: 18px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid #dcdcdc;
}

div.topbar nav.pages a:first-child {
  margin-left: 0;
}

div.topbar nav a {
  margin-left: 22px;
  font-size: 15px;
  color: #666666;
}

div.topbar nav a:hover,
div.topbar nav a.on {
  color: #000000;
}

/* Section headings stay clear of the top bar when jumped to. */
table[id] {
  scroll-margin-top: 60px;
}

/* ---------- Profile (Main page) ---------- */

/* Photo with rounded corners; site.js matches its height to the text next to it. */
img.photo {
  border-radius: 10px;
  object-fit: cover;
}

/* Caption line with the meaning of each flag. */
p.flagline {
  margin-top: -4px;
  color: #555555;
}

p.flagline img {
  height: 24px;
  width: auto;
  margin-right: 4px;
  vertical-align: middle;
}

/* Icons in front of the profile links. */
p.links a {
  margin-right: 20px;
  white-space: nowrap;
}

p.links svg {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -2px;
  fill: #8c929a;
}

p.links a:hover svg,
p.links a:focus svg {
  fill: currentColor;
}

/* Keep the Amphion stars badge inside its line, so that line is never taller than the others. */
#about + table p img {
  height: 18px;
  vertical-align: -3px;
}

/* ---------- Publications (Researcher page) ---------- */

span.tag {
  font-size: 11px;
  color: #FFFFFF;
  background-color: #0076DF;
  box-shadow: 2px 2px 1px #E0E0E0;
  padding: 1px 5px 2px 5px;
}

papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
}

span.underline {
  border-bottom: 1px solid black;
  padding-bottom: 1px;
}

span.tldr {
  color: #555555;
}

/* Long author lists: show a short version, click to expand. */
span.authors .short,
span.authors.collapsed .full {
  display: none;
}

span.authors.collapsed .short {
  display: inline;
}

a.toggle {
  display: none;
  font-size: 14px;
}

span.authors.collapsible a.toggle {
  display: inline;
}

/* ---------- Footer ---------- */

.footer {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  opacity: 0.75;
  color: #777;
}

.footer a {
  color: #777;
  font-size: 14px;
}

/* The visitor counter shows itself once its numbers have loaded. */
#busuanzi_container_site_pv {
  display: none;
}
