:root {
  color-scheme: light;
  --global-bg-color: #ffffff;
  --global-text-color: #000000;
  --global-text-color-light: #828282;
  --global-theme-color: #b509ac;
  --global-hover-color: #b509ac;
  --global-hover-text-color: #ffffff;
  --global-divider-color: rgba(0, 0, 0, 0.1);
  --global-footer-bg-color: #1c1c1d;
  --global-footer-text-color: #e8e8e8;
  --global-footer-link-color: #ffffff;
  --global-card-bg-color: #ffffff;
  --container-width: 930px;
  --header-height: 56px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --global-bg-color: #1c1c1d;
  --global-text-color: #e8e8e8;
  --global-text-color-light: #a8a8a8;
  --global-theme-color: #2698ba;
  --global-hover-color: #2698ba;
  --global-hover-text-color: #ffffff;
  --global-divider-color: #424246;
  --global-footer-bg-color: #e8e8e8;
  --global-footer-text-color: #1c1c1d;
  --global-footer-link-color: #000000;
  --global-card-bg-color: #212529;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  padding-top: var(--header-height);
  padding-bottom: 70px;
  color: var(--global-text-color);
  background-color: var(--global-bg-color);
  font-family: "Roboto", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
  vertical-align: middle;
  border-style: none;
}

a {
  color: var(--global-theme-color);
  text-decoration: none;
  background-color: transparent;
}

a:hover,
a:focus-visible {
  color: var(--global-theme-color);
  text-decoration: underline;
}

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container-width), calc(100vw - 30px));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  border-bottom: 1px solid var(--global-divider-color);
  background-color: var(--global-bg-color);
  opacity: 0.95;
}

.nav-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 0.75rem;
}

.site-brand {
  display: inline-block;
  color: var(--global-text-color);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: inherit;
  white-space: nowrap;
}

.site-brand strong {
  font-weight: 700;
}

.site-brand:hover,
.site-brand:focus-visible {
  color: var(--global-text-color);
  text-decoration: none;
}

.home-social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.7rem;
}

.home-social a {
  color: var(--global-text-color);
}

.home-social a:hover,
.home-social a:focus-visible {
  color: var(--global-theme-color);
  text-decoration: none;
}

.nav-spacer {
  flex: 1 1 auto;
}

.nav-toggle {
  display: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  background-color: transparent;
  color: var(--global-text-color);
}

.nav-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-bottom: 4px;
  border-radius: 1px;
  background-color: var(--global-text-color);
  transition: all 0.2s;
}

.nav-toggle .icon-bar:last-child {
  margin-bottom: 0;
}

.nav-toggle .top-bar {
  transform: rotate(45deg);
  transform-origin: 10% 10%;
}

.nav-toggle .middle-bar {
  opacity: 0;
}

.nav-toggle .bottom-bar {
  transform: rotate(-45deg);
  transform-origin: 10% 90%;
}

.nav-toggle.collapsed .top-bar {
  transform: rotate(0);
}

.nav-toggle.collapsed .middle-bar {
  opacity: 1;
}

.nav-toggle.collapsed .bottom-bar {
  transform: rotate(0);
}

.site-nav-panel {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link {
  display: block;
  padding: 0.5rem;
  color: var(--global-text-color);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--global-hover-color);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--global-theme-color);
  font-weight: 700;
}

.theme-toggle {
  padding: 0.5rem;
  border: 0;
  background-color: inherit;
  color: var(--global-text-color);
  line-height: 1;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--global-hover-color);
}

.page-shell {
  padding-top: 3rem;
}

.post-header,
.page-header {
  margin-bottom: 2rem;
}

.page-title,
.post-header h1,
.page-header h1 {
  margin: 0;
  color: var(--global-text-color);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.page-title strong,
.post-header h1 strong {
  font-weight: 700;
}

.homepage-name {
  font-weight: 500;
}

.desc,
.page-description {
  margin-top: 0.35rem;
  margin-bottom: 0;
  color: var(--global-text-color);
  font-size: 0.875rem;
}

.page-description {
  max-width: 42rem;
}

.profile {
  width: 100%;
}

.profile.float-right {
  margin-bottom: 1rem;
}

.profile img {
  width: 100%;
}

.rounded {
  border-radius: 0.25rem;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.profile .more-info {
  margin-top: 5px;
  margin-bottom: 5px;
  font-family: monospace;
}

.profile .more-info p {
  margin: 0;
  color: var(--global-text-color);
}

.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

.clearfix p,
.clearfix li,
.simple-section p,
.simple-section li,
.teaching-list li,
.contact-note {
  color: var(--global-text-color);
}

.clearfix ul,
.simple-section ul {
  margin-top: 0;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--global-text-color);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--global-text-color);
  font-size: 1.5rem;
  font-weight: 400;
}

h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--global-text-color);
  font-size: 1.25rem;
  font-weight: 700;
}

.section-page {
  display: grid;
  gap: 2.5rem;
}

.section-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  column-gap: 2.75rem;
  align-items: start;
}

.section-label {
  padding-top: 0.15rem;
}

.section-label h2 {
  margin: 0;
  color: var(--global-text-color);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
}

.section-panel > *:first-child {
  margin-top: 0;
}

.section-panel > *:last-child {
  margin-bottom: 0;
}

.section-panel p:first-child,
.section-panel ul:first-child,
.section-panel ol:first-child {
  margin-top: 0;
}

.section-panel ul,
.section-panel ol {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.section-panel li + li {
  margin-top: 0.55rem;
}

.paper-meta {
  margin: 0;
}

.paper-meta + .paper-meta {
  margin-top: 0.45rem;
}

.paper-links {
  margin-top: 0.75rem;
}

.paper-entry {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--global-divider-color);
}

.paper-entry h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.paper-entry h3 a,
.title a {
  color: var(--global-text-color);
  text-decoration: none;
}

.paper-entry h3 a:hover,
.paper-entry h3 a:focus-visible,
.title a:hover,
.title a:focus-visible {
  color: var(--global-theme-color);
  text-decoration: none;
}

.paper-entry:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.section-panel .paper-entry:first-child {
  margin-top: 0;
}

.service-subgroup + .service-subgroup {
  margin-top: 1.5rem;
}

.service-subgroup h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.news {
  margin-top: 0.5rem;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.news-table {
  width: 100%;
  border-collapse: collapse;
}

.news-table th,
.news-table td {
  padding: 1px 1rem 1px 0;
  vertical-align: top;
  font-size: 1rem;
}

.news-table th {
  width: 20%;
  min-width: 92px;
  color: var(--global-text-color);
  text-align: left;
  white-space: nowrap;
}

.publications {
  margin-top: 2rem;
}

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

.bibliography li {
  margin-bottom: 1rem;
}

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

.abbr {
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 0.25rem;
  background-color: var(--global-theme-color);
  color: var(--global-card-bg-color) !important;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.title {
  font-weight: 700;
}

.author,
.periodical,
.links,
.contact-note {
  margin-top: 0.3rem;
}

.author strong {
  font-weight: 700;
}

.periodical,
.paper-status {
  color: var(--global-text-color-light);
  font-size: 0.875rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.25rem 1rem;
  border: 1px solid var(--global-text-color);
  border-radius: 0.25rem;
  color: var(--global-text-color);
  font-size: 0.875rem;
  line-height: 1.5;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--global-theme-color);
  color: var(--global-theme-color);
  text-decoration: none;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.simple-section ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.simple-section li + li {
  margin-top: 0.5rem;
}

.teaching-group {
  margin-bottom: 2rem;
}

.teaching-list,
.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.teaching-list li,
.entry-list li {
  padding-top: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--global-divider-color);
}

.teaching-list li:last-child,
.entry-list li:last-child {
  border-bottom: 0;
}

.teaching-line,
.entry-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.teaching-line > :first-child,
.entry-line > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.teaching-line strong,
.entry-line strong {
  font-weight: 500;
}

.teaching-term,
.entry-term {
  color: var(--global-text-color-light);
  white-space: nowrap;
}

.social {
  margin-top: 2rem;
  text-align: center;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 3rem;
}

.contact-icons a {
  color: var(--global-text-color);
}

.contact-icons a:hover,
.contact-icons a:focus-visible {
  color: var(--global-theme-color);
  text-decoration: none;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  background-color: var(--global-footer-bg-color);
}

.site-footer .container {
  padding-top: 9px;
  padding-bottom: 8px;
  color: var(--global-footer-text-color);
  font-size: 0.75rem;
  text-align: center;
}

.site-footer a {
  color: var(--global-footer-link-color);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--global-theme-color);
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 576px) {
  .profile {
    width: 30%;
  }

  .profile.float-right {
    float: right;
    margin-left: 1rem;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav-panel {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  .site-nav-panel.is-open {
    display: block;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding-bottom: 0.5rem;
  }

  .nav-link,
  .theme-toggle {
    width: 100%;
    padding: 0.45rem 0;
    text-align: left;
  }

  .home-social {
    font-size: 1.45rem;
  }

  .pub-row,
  .two-column,
  .section-row,
  .teaching-line,
  .entry-line {
    grid-template-columns: 1fr;
  }

  .teaching-line,
  .entry-line {
    display: block;
  }

  .teaching-term,
  .entry-term {
    display: block;
    margin-top: 0.2rem;
  }

  .contact-icons {
    font-size: 2.4rem;
  }

  .section-page {
    gap: 1.9rem;
  }
}

@media (max-width: 575px) {
  .page-shell {
    padding-top: 2rem;
  }

  .page-title,
  .post-header h1,
  .page-header h1 {
    font-size: 2.15rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .news-table th,
  .news-table td {
    display: block;
    width: 100%;
    padding-right: 0;
  }

  .news-table th {
    padding-bottom: 0;
  }
}
