/* Newsreader (latin, variable weight): display face for names and titles. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */

/* latin */

/* latin-ext */

/* latin */

/* latin-ext */

/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Lato Regular'), local('Lato-Regular'), url(fonts/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */

/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Lato Bold'), local('Lato-Bold'), url(fonts/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary-color: #1f4f9a;
  --secondary-color: #163b75;
  --text-color: #17191c;
  --text-muted: #4a4f57;
  --text-faint: #6b7079;
  --tint-bg: #f4f5f3;
  --serif: 'Newsreader', Georgia, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', serif;
  --bg-color: #FFFFFF;
  --border-color: #bbb;
  --sidebar-bg: #FFFFFF;
  --section-bg: #FFFFFF;
  --hover-bg: rgba(31, 79, 154, 0.07);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --placeholder-bg: #f5f5f5;
  --placeholder-text: #666;
}

/* Dark mode colors */
[data-theme="dark"] {
  --primary-color: #8fb3ef;
  --secondary-color: #b5cdf5;
  --text-color: #e4e5e7;
  --text-muted: #b3b7be;
  --text-faint: #8b9099;
  --tint-bg: #2a2b2e;
  --bg-color: #1F1F1F;
  --border-color: #4A4A4A;
  --sidebar-bg: #2A2A2A;
  --section-bg: #252525;
  --hover-bg: rgba(143, 179, 239, 0.12);
  --shadow-color: rgba(0, 0, 0, 0.2);
  --placeholder-bg: #333333;
  --placeholder-text: #B8B8B8;
}

/* Ensure body background changes in dark mode */
[data-theme="dark"] body {
  background-color: var(--bg-color) !important;
}

/* Fix profile photo background in dark mode */
[data-theme="dark"] .profile-photo {
  background-color: transparent !important;
  border-color: var(--border-color);
}

/* Ensure main content has proper background in dark mode */
[data-theme="dark"] #main-content {
  background-color: var(--bg-color);
}

/* Fix table backgrounds in dark mode */
[data-theme="dark"] table {
  background-color: var(--bg-color) !important;
}

/* Remove section background styling for cleaner look */

/* Fix highlight color in dark mode */
[data-theme="dark"] span.highlight {
  background-color: #3a3a00;
  color: #ffff80;
}

/* Fix venue colors in dark mode */
[data-theme="dark"] .venue {
  color: var(--primary-color);
}

/* Fix paper rest color in dark mode */
[data-theme="dark"] .paper_rest {
  color: var(--text-color);
}

/* Global styles */
body {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

p, strong, td, th, tr {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: inherit;
  color: var(--text-color);
}

a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: inherit;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:focus, a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}


/* Publication styles */
.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1px;
}

[data-theme="dark"] .papertitle {
  color: var(--text-color);
}

.venue {
  color: #9ca3af;
}

.paper_rest {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 2px;
}

[data-theme="dark"] .paper_rest {
  color: #b8b8b8;
}

.paper_bottom_space {
  margin-bottom: 4px;
}

/* Image styles */
.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

/* Main Content */
#main-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Enhanced hover effects for links */
a {
  transition: color 0.2s ease;
}



/* Section spacing */




/* Focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to main content link (hidden by default) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Loading animation for lazy content */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}


/* Responsive Design */
@media screen and (max-width: 768px) {
  /* Adjust text centering for mobile */
  .profile-photo + div p[style*="text-align:center"] {
    text-align: center !important;
    margin-left: 0 !important;
  }

  /* Make map container responsive */
  #map-container {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .papertitle {
    font-size: 16px;
  }

  .paper_rest {
    font-size: 14px;
  }

  /* Stack honors and map vertically on very small screens */
  .honors-map-container {
    display: block !important;
  }

  .honors-map-container td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }

  #map-container {
    margin: 20px auto 0 !important;
    text-align: center;
  }
}

/* Print styles */
@media print {
  a {
    color: var(--text-color);
    text-decoration: underline;
  }
}

