
/* Website typography */

body {
  font-family: -apple-system, BlinkMacSystemFont, 
               "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #333333;
  background-color: #ffffff;
}

/* Headings */

h1, h2, h3 {
  color: #243447;
  font-weight: 600;
}

/* Navigation bar */

.navbar {
  border-bottom: 1px solid #e5e5e5;
}

.navbar-title {
  font-weight: 600;
}

.nav-link {
  font-size: 16px;
}

/* Hyperlinks */

a {
  color: #285781;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer */

.nav-footer {
  font-size: 13px;
  color: #777777;
}

/* Academic profile layout */

.quarto-about-trestles {
  padding-top: 2rem;
}

/* Section headings */

h2 {
  font-size: 1.45rem;
  border-bottom: none;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

/* Paragraph spacing */

p {
  margin-bottom: 1.1rem;
}


/* Academic position and institutional affiliation */

.subtitle {
  font-size: 1rem;
  color: #596574;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.subtitle strong {
  font-weight: 600;
  color: #243447;
}


/* Research agenda dimensions */

.research-pillar {
  border-left: 3px solid #285781;
  padding-left: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 1.4rem;
}

.research-pillar p {
  margin-bottom: 0.4rem;
}

.research-pillar p:last-child {
  margin-bottom: 0;
}

.research-pillar strong {
  color: #243447;
  font-weight: 600;
  font-size: 1.05rem;
}


/* Wider academic homepage */

.quarto-about-trestles {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop column layout */

@media (min-width: 992px) {

  .quarto-about-trestles {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    column-gap: 0;
    align-items: start;
  }

  .quarto-about-trestles .about-entity {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0 1.25rem 0 0;
    border-right: none;
  }

  .quarto-about-trestles .about-contents {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 1.5rem;
    border-left: 1px solid #dce1e6;
  }

}

/* Profile name */

.quarto-about-trestles .about-entity h1 {
  font-size: 1.9rem;
}

/* Profile subtitle */

.quarto-about-trestles .subtitle {
  font-size: 0.95rem;
  line-height: 1.7;
}


/* Academic profile links */

.quarto-about-trestles .about-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin: 1.5rem auto 0;
}

/* Individual profile link */

.quarto-about-trestles .about-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #d3dbe3;
  border-radius: 4px;
  color: #285781;
  background-color: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Hover effect */

.quarto-about-trestles .about-link:hover {
  background-color: #f0f4f8;
  border-color: #285781;
  color: #243447;
  text-decoration: none;
}

/* Profile link icons */

.quarto-about-trestles .about-link i {
  font-size: 0.95rem;
}


/* Main website navigation */

.navbar {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Website name */

.navbar-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #243447;
}

/* Navigation links */

.navbar .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #243447;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

/* Active page */

.navbar .nav-link.active {
  color: #285781;
  font-weight: 600;
}

/* Navigation hover effect */

.navbar .nav-link:hover {
  color: #285781;
  text-decoration: none;
}

/* Align header with main website content */

.navbar .navbar-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}


/* ==========================
   RESEARCH PAGE
   ========================== */

/* Research program areas */

.research-area {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e8eb;
}

.research-area h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #243447;
  margin-bottom: 0.5rem;
}

.research-area > p:first-of-type {
  color: #596574;
  margin-bottom: 1.2rem;
}

/* Dissertation section */

.dissertation-summary {
  background-color: #f5f7f9;
  border-left: 3px solid #285781;
  padding: 1.5rem;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
  border-radius: 0 4px 4px 0;
}

.dissertation-summary h3 {
  font-size: 1.25rem;
  color: #243447;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Current research projects */

.research-project {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e5e8eb;
}

.research-project h3 {
  color: #285781;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.research-project p {
  margin-bottom: 0.65rem;
}

.research-project em {
  color: #596574;
}

/* Page table of contents */

#TOC {
  font-size: 0.85rem;
  line-height: 1.5;
}

#TOC .nav-link {
  color: #596574;
}

#TOC .nav-link.active {
  color: #285781;
  font-weight: 500;
}


/* ==========================
   PUBLICATIONS PAGE
   ========================== */

/* Published journal articles */

.journal-article {
  border-left: 3px solid #285781;
  padding-left: 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

.journal-article p {
  margin-bottom: 0.55rem;
}

.journal-article > p:first-child {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #243447;
}

.journal-article em {
  color: #596574;
}

.journal-article a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Working papers */

.working-paper {
  padding-top: 0.8rem;
  padding-bottom: 1rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #e5e8eb;
}

.working-paper p {
  margin-bottom: 0.5rem;
}

.working-paper > p:first-child {
  color: #243447;
  font-size: 1.05rem;
}

.working-paper em {
  color: #596574;
  font-size: 0.9rem;
}

/* Conference presentations */

.conference-paper {
  padding: 0.75rem 0 1rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #e5e8eb;
}

.conference-paper p {
  margin-bottom: 0.5rem;
}

.conference-paper em {
  color: #596574;
}

.conference-paper p:last-child {
  font-size: 0.85rem;
  color: #596574;
  margin-bottom: 0;
}


/* ==========================
   TEACHING PAGE
   ========================== */

/* Teaching philosophy pillars */

.teaching-pillar {
  border-left: 3px solid #285781;
  padding-left: 1.1rem;
  margin-top: 1.3rem;
  margin-bottom: 1.5rem;
}

.teaching-pillar strong {
  color: #243447;
  font-size: 1.08rem;
  font-weight: 600;
}

.teaching-pillar p {
  margin-bottom: 0.5rem;
}

.teaching-pillar p:last-child {
  margin-bottom: 0;
}

/* Teaching interest labels */

.teaching-interests ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.teaching-interests li {
  background-color: #f5f7f9;
  border: 1px solid #dce1e6;
  border-radius: 4px;
  padding: 6px 12px;
  color: #243447;
  font-size: 0.88rem;
}

/* Individual teaching assignments */

.teaching-course {
  padding-top: 0.8rem;
  padding-bottom: 1.2rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #e5e8eb;
}

.teaching-course > p:first-child {
  font-size: 1.1rem;
  color: #285781;
  line-height: 1.5;
}

.teaching-course strong {
  font-weight: 600;
}

.teaching-course em {
  color: #596574;
  font-size: 0.92rem;
}

.teaching-course p {
  margin-bottom: 0.5rem;
}

.teaching-course p:nth-of-type(3) {
  font-size: 0.88rem;
  color: #596574;
}

.teaching-course p:last-child {
  margin-bottom: 0;
}


/* ==========================
   CURRICULUM VITAE PAGE
   ========================== */

/* CV action buttons */

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* Download button */

.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #285781;
  border: 1px solid #285781;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cv-download:hover {
  background-color: #243447;
  border-color: #243447;
  color: #ffffff;
  text-decoration: none;
}

/* Open in new tab button */

.cv-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #d3dbe3;
  color: #285781;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cv-open:hover {
  background-color: #f0f4f8;
  border-color: #285781;
  text-decoration: none;
}

/* Embedded PDF viewer */

.cv-viewer {
  width: 100%;
  margin-bottom: 2rem;
  border: 1px solid #dce1e6;
  border-radius: 5px;
  overflow: hidden;
}

.cv-viewer iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: none;
}

/* Mobile layout */

@media (max-width: 767px) {

  .cv-actions {
    gap: 8px;
  }

  .cv-viewer {
    display: none;
  }

  .cv-download,
  .cv-open {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

}


/* ==========================
   MOBILE RESPONSIVENESS
   ========================== */

@media (max-width: 991.98px) {

  .quarto-about-trestles {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    gap: 1.5rem;
  }

  .quarto-about-trestles .about-entity {
    width: 100%;
    max-width: 420px;
    padding: 0;
    margin: 0 auto;
    border: none;
  }

  .quarto-about-trestles .about-contents {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 0 0;
    margin: 0;
    border-left: none;
    border-top: 1px solid #dce1e6;
  }

  .quarto-about-trestles .about-image {
    max-width: 220px;
    height: auto;
  }

  .quarto-about-trestles .about-entity h1 {
    font-size: 1.75rem;
  }

}

@media (max-width: 576px) {

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .navbar-title {
    font-size: 1.05rem;
  }

  .research-pillar,
  .teaching-pillar {
    padding-left: 0.8rem;
  }

  .dissertation-summary {
    padding: 1rem;
  }

  .quarto-about-trestles .about-links {
    max-width: 300px;
  }

}

/* Prevent oversized media */

img {
  max-width: 100%;
}

/* Keyboard accessibility */

a:focus-visible,
button:focus-visible {
  outline: 2px solid #285781;
  outline-offset: 3px;
}
