/* Deep teal palette - modern and gender-neutral */
:root {
  --deep-teal: #1A6B7C;
  --teal: #3A8A9C;
  --light-teal: #5A9BAD;
  --cool-grey: #F0F4F5;
  --slate: #374151;
  --charcoal: #1f2937;
  --light-gray: #f3f4f6;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
}

/* Typography with personality */
body {
  background-color: white;
  color: var(--text-dark);
  font-size: 0.875rem;
  line-height: 1.75;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#quarto-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* ========================================
   HOME PAGE - SIDEBAR LAYOUT
   ======================================== */

#sidebar {
  background-color: var(--teal);
  border-right: none;
  padding: 3rem 2rem;
  text-align: center;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

#sidebar h1 {
  display: none;
}

/* Square profile image with bright border */
.profile-img {
  width: 100%;
  max-width: 260px;
  height: 260px;
  object-fit: cover;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 2rem;
}

.social-links a {
  display: block;
  padding: 0.875rem 1.25rem;
  background-color: white;
  color: var(--deep-teal) !important;
  border: 2px solid white;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.social-links a:hover {
  background-color: var(--deep-teal);
  color: white !important;
  border-color: var(--deep-teal);
  text-decoration: none;
}

/* Main content with colored accent */
#main-content {
  background-color: white;
  padding: 3.5rem 3rem;
  border-left: none;
}

#main-content > h2 {
  color: var(--text-dark);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--teal);
  letter-spacing: 0;
  line-height: 1.15;
}

#main-content > p {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 0.8125rem !important;
  line-height: 1.75;
  max-width: 75ch;
}

/* Bright colored info panels */
.info-grid {
  margin-top: 3.5rem;
  gap: 2rem;
}

.info-grid > div {
  background-color: var(--cool-grey);
  color: var(--text-dark);
  padding: 2.75rem 2.5rem;
  border-left: 4px solid var(--teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-grid > div:nth-child(2) {
  border-left-color: var(--deep-teal);
}

.info-grid h3 {
  color: var(--deep-teal);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  margin-top: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.info-grid ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.info-grid li {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.875rem;
}

.info-grid li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: bold;
  font-size: 1.3em;
}

.info-grid li strong {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9375rem;
  display: block;
  margin-bottom: 0.25rem;
}

.info-grid p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  font-size: 0.875rem;
}

.info-grid strong {
  color: var(--text-dark);
  font-weight: 700;
  display: block;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.info-grid strong:first-child {
  margin-top: 0;
}

.info-grid em {
  color: var(--text-gray);
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
}

/* Experience section with subtle header */
.g-col-12:not(.g-col-lg-6) > h3 {
  color: var(--deep-teal);
  background-color: transparent;
  font-size: 1rem;
  font-weight: 600;
  margin: 3rem 0 2rem 0;
  padding: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.g-col-12 .grid > div {
  background-color: var(--cool-grey);
  padding: 2rem;
  border-left: 4px solid var(--teal);
}

.g-col-12 strong {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9375rem;
  display: block;
  margin-bottom: 0.5rem;
}

.g-col-12 em {
  color: var(--text-gray);
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.g-col-12 ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.g-col-12 li {
  margin-bottom: 0.625rem;
  line-height: 1.65;
  font-size: 0.875rem;
}

.g-col-12 li::marker {
  color: var(--deep-teal);
}

/* ========================================
   RESEARCH & OTHER PAGES
   ======================================== */

/* Wider content area for research and publications pages */
#quarto-document-content {
  background-color: white;
  padding: 2.5rem 4rem 4rem 4rem;
  max-width: 1600px;
  margin: 0 auto;
  border-left: none;
  border-right: none;
}

h1.title {
  color: var(--text-dark);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  letter-spacing: 0;
  line-height: 1.1;
}

/* Section headers with teal backgrounds */
#quarto-document-content h2 {
  color: white;
  background-color: var(--teal);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 4rem;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  letter-spacing: 0;
  line-height: 1.2;
  border-left: none;
  border-bottom: none;
}

#quarto-document-content h2:first-of-type {
  margin-top: 0;
}

#quarto-document-content h3 {
  color: var(--text-dark);
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--teal);
  line-height: 1.3;
}

/* Readable paragraphs */
#quarto-document-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  max-width: 80ch;
  font-size: 0.8125rem;
}

#quarto-document-content strong {
  color: var(--deep-teal);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Focus Areas grid on Research page */
#quarto-document-content .grid > div {
  background-color: var(--cool-grey);
  padding: 1.5rem;
  border-left: 4px solid var(--teal);
}

#quarto-document-content .grid > div:nth-child(2) {
  border-left-color: var(--deep-teal);
}

#quarto-document-content .grid > div:nth-child(3) {
  border-left-color: var(--deep-teal);
}

#quarto-document-content .grid > div strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

#quarto-document-content .grid > div p {
  font-size: 0.75rem;
  line-height: 1.7;
  max-width: none;
  margin-bottom: 0;
}

/* Project cards on Research page */
.project-card {
  background-color: var(--cool-grey);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--teal);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.project-card:nth-of-type(2n) {
  border-left-color: var(--deep-teal);
}

.project-card:nth-of-type(3n) {
  border-left-color: var(--deep-teal);
}

.project-card strong {
  display: block;
  color: var(--deep-teal);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-card p {
  font-size: 0.8125rem;
  line-height: 1.75;
  margin-bottom: 0;
  max-width: none;
}

/* Colored highlight boxes */
.highlight-intro {
  background-color: var(--cool-grey);
  color: var(--text-dark);
  padding: 2.5rem;
  margin-bottom: 3rem;
  border-left: 4px solid var(--deep-teal);
}

.highlight-intro p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 0;
  color: var(--text-dark);
}

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

.pub-stats {
  margin-bottom: 0;
  padding: 1rem 2rem 0.75rem 2rem;
  background-color: var(--cool-grey);
  border-top: 3px solid var(--teal);
}

.stat-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--deep-teal) !important;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-dark) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.references {
  margin-left: 0;
  padding-left: 0;
  font-size: 0.85rem;
}

.references .csl-entry {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-left: none;
  line-height: 1.6;
  text-indent: 0 !important;
  margin-left: 0 !important;
}

.references .csl-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.references .csl-entry em {
  font-style: italic;
  color: var(--deep-teal);
  font-weight: 600;
}

.references .csl-entry strong {
  color: var(--text-dark);
  font-weight: 800;
}

.references .csl-entry a {
  color: var(--deep-teal) !important;
  text-decoration: underline;
  text-decoration-color: var(--deep-teal);
  font-weight: 600;
}

.references .csl-entry a:hover {
  color: var(--deep-teal) !important;
  text-decoration-color: var(--deep-teal);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  background-color: white !important;
  border-bottom: 2px solid var(--teal);
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 800;
  color: var(--deep-teal) !important;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  padding: 0.625rem 1.25rem !important;
  margin: 0 0.25rem;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.navbar-nav .nav-link:hover {
  color: var(--deep-teal) !important;
  background-color: var(--light-gray);
}

.navbar-nav .nav-link.active {
  color: white !important;
  background-color: var(--deep-teal);
}

.footer {
  background-color: var(--cool-grey);
  color: var(--text-dark);
  padding: 2.5rem 0;
  margin-top: 5rem;
  border-top: 3px solid var(--teal);
}

.footer a {
  color: var(--deep-teal) !important;
  font-weight: 600;
}

.footer a:hover {
  color: var(--deep-teal) !important;
}

/* ========================================
   LINKS & ELEMENTS
   ======================================== */

a {
  color: var(--deep-teal);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  font-weight: 600;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--deep-teal);
}

::selection {
  background-color: var(--deep-teal);
  color: white;
}

code {
  background-color: var(--cool-grey);
  color: var(--text-dark);
  padding: 0.25em 0.5em;
  font-size: 0.9em;
}

pre code {
  background-color: var(--charcoal);
  color: #e5e7eb;
  padding: 1.25rem;
  display: block;
  border-left: 3px solid var(--teal);
}

.callout {
  border-left: 4px solid var(--teal);
  background-color: var(--cool-grey);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 2rem 0;
}

table thead {
  background-color: var(--deep-teal);
  color: white;
}

table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
}

table td {
  padding: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

table tbody tr:hover {
  background-color: var(--cool-grey);
}

/* TOC styling */
.sidebar nav[role="doc-toc"] ul li a {
  color: var(--text-dark);
  border-left: 3px solid var(--light-gray);
  padding-left: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.sidebar nav[role="doc-toc"] ul li a:hover {
  color: var(--deep-teal) !important;
  border-left-color: var(--deep-teal) !important;
  background-color: var(--cool-grey);
}

.sidebar nav[role="doc-toc"] ul li a.active {
  color: var(--text-dark) !important;
  border-left: 3px solid var(--deep-teal) !important;
  font-weight: 700;
  background-color: var(--cool-grey);
}

#quarto-margin-sidebar .toc-actions a,
#TOC a,
.sidebar nav ul li a {
  color: var(--text-dark) !important;
  text-decoration: none;
}

#quarto-margin-sidebar .toc-actions a:hover,
#TOC a:hover,
.sidebar nav ul li a:hover {
  color: var(--deep-teal) !important;
  border-left-color: var(--deep-teal) !important;
}

#quarto-margin-sidebar .toc-actions a.active,
#TOC a.active,
.sidebar nav ul li a.active,
#quarto-margin-sidebar nav[role="doc-toc"] ul li a.active {
  color: var(--text-dark) !important;
  border-left-color: var(--deep-teal) !important;
  font-weight: 700;
}

nav[role="doc-toc"] li.active > a,
nav[role="doc-toc"] a:active {
  color: var(--text-dark) !important;
  border-left-color: var(--deep-teal) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
  #sidebar {
    position: static;
    margin-bottom: 0;
  }

  #main-content {
    padding: 3rem 2.5rem;
    border-left: none;
    border-top: 3px solid var(--teal);
  }

  .info-grid {
    gap: 1.75rem;
  }

  .g-col-12:not(.g-col-lg-6) > h3 {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  #quarto-document-content {
    padding: 3.5rem 2.5rem;
  }

  #quarto-document-content h2 {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.875rem;
  }

  #quarto-content {
    padding: 0;
  }

  #sidebar {
    padding: 2rem 1.5rem;
  }

  #main-content {
    padding: 2.5rem 1.5rem;
  }

  #main-content > h2 {
    font-size: 1.875rem;
  }

  .profile-img {
    max-width: 200px;
    height: 200px;
  }

  .info-grid > div {
    padding: 2rem 1.5rem;
  }

  .g-col-12 .grid > div {
    padding: 1.5rem;
  }

  .g-col-12:not(.g-col-lg-6) > h3 {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  #quarto-document-content {
    padding: 2.5rem 1.5rem;
    border-left: none;
    border-right: none;
  }

  #quarto-document-content h2 {
    padding: 0.875rem 1rem;
    font-size: 1.125rem;
  }

  h1.title {
    font-size: 1.875rem;
  }

  .stat-grid {
    gap: 2.5rem;
  }

  .stat-number {
    font-size: 2.75rem;
  }
}

html {
  scroll-behavior: smooth;
}

/* NO ROUNDED CORNERS - clean geometric design */
* {
  border-radius: 0 !important;
}

.profile-img,
.social-links a,
#main-content,
#sidebar,
.info-grid > div,
.g-col-12 .grid > div,
.navbar-nav .nav-link,
code,
.callout {
  border-radius: 0 !important;
}
