/* Fonts */
@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 10px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: #ffffff;
  color: #333;
  font-family: "Lato", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1, "pnum" 1;
  font-size: 1rem;
  line-height: 1.5;
}

article,
footer,
header,
main,
nav,
section {
  display: block;
}

[hidden] {
  display: none;
}

a {
  color: #1d3445;
  text-decoration: none;
  background-color: transparent;
}

a:active,

a:focus,

a:hover {
  color: #3366cc;
  text-decoration: none;
}

a:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

b,
strong {
  font-weight: 700;
}

small {
  font-size: 85%;
}

sub {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
  bottom: -0.25em;
}

p {
  margin: 0 0 0.75rem;
}

ul {
  margin-top: 0;
  margin-bottom: 10px;
}

hr {
  height: 0;
  box-sizing: content-box;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 0.5px solid #333;
}

blockquote {
  padding: 10px 20px;
  margin: 1.5rem 0 20px;
  border-left: 2px solid #333;
}

blockquote p:last-child,
blockquote ul:last-child {
  margin-bottom: 0;
}

code {
  font-family: monospace, monospace;
  padding: 2px 4px;
  border-radius: 4px;
  color: #fff;
  background-color: #333;
  font-size: 0.9rem;
}

.text-muted {
  color: #777;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.hidden-view {
  display: none !important;
}

sub.paper-item {
  line-height: 1;
  text-align: center;
}

/* Grid (Bootstrap-like subset) */
.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

.row {
  margin-right: -15px;
  margin-left: -15px;
}

.col-xs-12,
.col-sm-6,
.col-md-4,
.col-md-8 {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
  float: left;
}

.col-xs-12 {
  width: 100%;
}

@media (min-width: 768px) {
  .col-sm-6 {
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-md-8 {
    width: 66.66666667%;
  }

  .col-md-4 {
    width: 33.33333333%;
  }
}

.clearfix:before,
.clearfix:after,
.container:before,
.container:after,
.row:before,
.row:after {
  display: table;
  content: " ";
}

.clearfix:after,
.container:after,
.row:after {
  clear: both;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 4rem;
  margin-bottom: 0.1rem;
  font-weight: 700;
}

h2 {
  font-weight: 500;
  font-size: 1.6rem;
}

p,
ul {
  font-size: 1.6rem;
  text-align: left;
  font-weight: 500;
}

/* Header */
.header-container {
  margin-top: 50px;
}

.header-left {
  margin-top: 30px;
}

.header-right {
  text-align: right;
}

.header-nav {
  margin: 0;
  font-size: 0.75em;
  font-weight: 700;
}

.header-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav-list li {
  display: inline;
}

.header-nav-list li + li::before {
  content: " · ";
}

/* Contact view */
.email-badge {
  font-family: monospace, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.2s ease;
}

.email-badge-active {
  background-color: #333;
  color: white;
}

.email-badge-inactive {
  background-color: #6c757d;
  color: white;
}

.email-blockquote {
  margin-top: 1.5rem;
}

.email-list {
  margin-top: 12px;
}

.email-item {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.email-item-inactive {
  color: #777;
}

.email-footer-note {
  margin-top: 20px;
  font-style: italic;
}

/* Scholar widget */
.scholar-widget {
  width: 160px;
  font-family: inherit;
}

.scholar-chart-wrapper {
  display: flex;
  height: 60px;
  position: relative;
  margin-bottom: 25px;
}

.scholar-y-label {
  font-size: 10px;
  color: #333;
  margin-right: 6px;
  line-height: 1;
  display: flex;
  align-items: flex-start;
}

.scholar-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  border-left: 1px solid #333;
  border-bottom: 1px solid #333;
  gap: 2px;
  padding-left: 2px;
}

.scholar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.scholar-bar {
  width: 100%;
  background-color: #333;
  height: 0;
  transition: height 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.scholar-year {
  position: absolute;
  bottom: -18px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #333;
}

.scholar-footer {
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  color: #1d3445;
}

@media (min-width: 992px) {
  .scholar-widget {
    margin-top: 40px;
  }
}

/* Footer */
footer {
  margin-bottom: 20px;
}

.footer-container {
  margin-top: 25px;
}

.footer-container p {
  text-align: center;
}

/* Papers sort */
.papers-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9em;
  font-weight: 700;
}

.papers-sort-label {
  margin: 0;
}

.papers-sort-select {
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  color: #1d3445;
  background: #ffffff;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 2px 6px;
}

/* Paper pages */
.paper-back-link {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.paper-page-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.paper-page-authors,
.paper-page-venue {
  margin: 0 0 0.5rem;
}

.paper-page-citations {
  margin: 0 0 0.75rem;
}

.paper-page-meta {
  margin: 0.75rem 0 0.75rem;
}

.paper-page-links {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 1.6rem;
}

.paper-page-links p {
  text-align: center;
  font-size: 0.75em;
}

.paper-page-section-title {
  margin: 1.25rem 0 0.5rem;
}

code.paper-tag {
  margin-right: 6px;
}

/* Papers */
.paper-item {
  display: block;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease forwards;
}

a.paper-title {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.paper-title:hover,
a.paper-title:focus {
  text-decoration: underline;
}

.page-content .paper-item {
  font-size: 1.6rem;
  text-align: left;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 0.85rem;
}

.page-content .paper-item:last-child {
  margin-bottom: 0;
}

.page-content .paper-item sub {
  position: static;
  bottom: auto;
  vertical-align: baseline;
  line-height: 1;
}

.page-content .paper-item code {
  line-height: 1;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media screen and (max-width: 767px) {
  .header-nav {
    margin-bottom: 10px;
  }

  .header-container div {
    text-align: center;
  }

  .header-left {
    margin-top: 0px;
  }
}

/* Print */
@media print {
  body {
    font-size: 0.9rem;
  }

  .container {
    margin-top: 20px;
  }

  .header-container {
    margin-top: 50px;
  }

  .footer-container {
    margin-top: 25px;
  }

  .header-left {
    margin-top: 0px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .paper-item {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .scholar-bar {
    transition: none;
  }
}
