@charset "UTF-8";
/* Publication List Styles */
section {
  padding: 20px 0; }

h1 {
  font-size: 1.9em;
  margin-bottom: 25px;
  color: #18453b;
  padding-bottom: 12px;
  border-bottom: 3px solid #18453b; }

/* Topic navigation */
.topic-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #18453b; }

.topic-link {
  padding: 8px 18px;
  background-color: white;
  border: 2px solid #18453b;
  border-radius: 25px;
  color: #18453b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95em; }

.topic-link:hover {
  background-color: #18453b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(24, 69, 59, 0.3); }

.topic-link.active {
  background-color: #18453b;
  color: white; }

/* Year accordion panels */
.publications-accordion {
  margin-top: 20px; }

.year-panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); }

.year-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s; }

.year-header:hover {
  background-color: #e8e8e8; }

.year-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.25em;
  font-weight: 500; }

.toggle-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 1.2em;
  cursor: pointer;
  padding: 0;
  margin-left: 10px; }

.toggle-btn:hover {
  color: #000; }

.year-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 15px; }

.year-content.show {
  /* max-height is set dynamically by JavaScript for smooth expand/collapse animation */
  padding: 15px;
  border-top: 1px solid #ddd; }

/* Publication categories */
.pub-category {
  margin-bottom: 25px; }

.pub-category:last-child {
  margin-bottom: 0; }

.pub-category h3 {
  font-size: 1.15em;
  color: #18453b;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
  font-weight: 700; }

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

.publication-list li {
  margin-bottom: 25px;
  line-height: 1.7;
  padding-left: 20px;
  position: relative; }

.publication-list li:before {
  content: "▪";
  position: absolute;
  left: 0;
  color: #18453b;
  font-size: 1.2em; }

.publication-list strong {
  font-size: 1em;
  color: #222;
  display: inline-block;
  margin-bottom: 3px; }

.publication-list a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500; }

.publication-list a:hover {
  text-decoration: underline;
  color: #004499; }

/* BibTeX Modal Styles */
.bibtex-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px; }

.bibtex-modal {
  background-color: white;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }

.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #18453b; }

.bibtex-header h3 {
  margin: 0;
  color: #18453b; }

.bibtex-close {
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px; }

.bibtex-close:hover {
  color: #18453b; }

.bibtex-code {
  padding: 20px;
  margin: 0;
  background-color: #f5f5f5;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word; }

/* Homepage Section Link Styles
 * Override default link colors to improve visibility
 * Using bright blue (#007bff) with underline to contrast against black text
 * !important needed to override theme defaults
 */
#news a,
#prospective-students a {
  color: #007bff !important;
  text-decoration: underline !important;
  font-weight: 600 !important; }

#news a:hover,
#prospective-students a:hover {
  color: #0056b3 !important;
  text-decoration: underline !important; }

/* Responsive Design - Mobile and Tablet Optimization */
/* Tablet devices (portrait, ~768px and below) */
@media (max-width: 768px) {
  section {
    padding: 15px 0; }
  h1 {
    font-size: 1.6em; }
  .topic-navigation {
    padding: 15px;
    gap: 8px; }
  .topic-link {
    padding: 6px 14px;
    font-size: 0.9em; }
  .year-header h2 {
    font-size: 1.15em; }
  .publication-list li {
    font-size: 0.95em;
    padding-left: 18px; }
  .pub-category h3 {
    font-size: 1.05em; }
  .bibtex-modal {
    margin: 10px;
    max-height: 85vh; }
  .bibtex-header {
    padding: 15px; }
  .bibtex-code {
    padding: 15px;
    font-size: 0.85em; } }

/* Mobile devices (phones, ~480px and below) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.4em;
    padding-bottom: 8px;
    border-bottom: 2px solid #18453b; }
  .topic-navigation {
    padding: 12px;
    gap: 6px; }
  .topic-link {
    padding: 5px 12px;
    font-size: 0.85em;
    /* Ensure touch-friendly tap targets (min 44px height) */
    min-height: 36px;
    display: flex;
    align-items: center; }
  .year-header {
    padding: 8px 12px; }
  .year-header h2 {
    font-size: 1.05em; }
  .year-content {
    padding: 0 12px; }
  .year-content.show {
    padding: 12px; }
  .publication-list li {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 16px; }
  .publication-list strong {
    display: block;
    margin-bottom: 5px; }
  .pub-category h3 {
    font-size: 1em; }
  .bibtex-modal {
    margin: 5px;
    max-height: 90vh;
    border-radius: 4px; }
  .bibtex-header {
    padding: 12px; }
  .bibtex-header h3 {
    font-size: 1.1em; }
  .bibtex-close {
    font-size: 1.5em;
    width: 25px;
    height: 25px; }
  .bibtex-code {
    padding: 12px;
    font-size: 0.8em; } }
