/* Paykani Research Group: site-specific styles, independent of the theme build. */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --pg-ink: #17324d;
  --pg-text: #283c4c;
  --pg-muted: #536777;
  --pg-accent: #007b78;
  --pg-line: #d9e2e8;
  --pg-soft: #f3f6f8;
  --pg-font: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --global-theme-color: var(--pg-accent);
  --global-text-color: var(--pg-text);
  --global-text-color-light: var(--pg-muted);
  --global-hover-color: var(--pg-accent);
}
html[data-theme="dark"] {
  --pg-ink: #e4edf5;
  --pg-text: #d5e0e8;
  --pg-muted: #a9bac8;
  --pg-accent: #68d1c7;
  --pg-line: #3a4b58;
  --pg-soft: #23313c;
  --global-theme-color: var(--pg-accent);
  --global-text-color: var(--pg-text);
  --global-text-color-light: var(--pg-muted);
  --global-hover-color: var(--pg-accent);
}
body {
  padding-bottom: 0;
  font-family: var(--pg-font);
  color: var(--pg-text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}
#navbar {
  font-family: var(--pg-font);
  border-bottom: 1px solid var(--pg-line);
  box-shadow: none;
}
#navbar .nav-link {
  font-size: 16px;
  font-weight: 400;
}
#navbar .nav-item.active > .nav-link {
  color: var(--pg-accent);
  font-weight: 700;
}
.post {
  font-family: var(--pg-font);
}
.post .post-header {
  margin-bottom: 2.25rem;
}
.post .post-title {
  color: var(--pg-ink);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.post .desc {
  color: var(--pg-muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}
.post h2 {
  color: var(--pg-ink);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 1.2rem;
}
.post h3 {
  color: var(--pg-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.post p {
  margin: 0 0 1rem;
}
.post a:not(.btn):not(.dropdown-item):not(.badge) {
  color: var(--pg-accent);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}
.post a:not(.btn):not(.dropdown-item):not(.badge):hover {
  text-decoration: underline;
}
.post a:focus-visible,
#navbar a:focus-visible {
  outline: 2px solid var(--pg-accent);
  outline-offset: 4px;
}
.post strong {
  font-weight: 600;
}
.pg-lead {
  color: var(--pg-ink);
  font-size: 22px;
  line-height: 1.5;
  max-width: 44rem;
}
.pg-intro {
  max-width: 45rem;
}
.pg-section {
  margin-top: 3rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--pg-line);
}
.pg-section > h2 {
  margin-top: 0;
}
.pg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 3.5rem;
  align-items: start;
}
.pg-portrait {
  margin: 0;
}
.pg-portrait img {
  width: 172px;
  height: 196px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
}
.pg-portrait figcaption {
  margin-top: 0.65rem;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pg-muted);
}
.pg-portrait figcaption strong {
  color: var(--pg-ink);
  display: block;
  font-size: 16px;
}
.pg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.6rem;
  font-weight: 600;
}
.pg-links a {
  text-decoration: underline;
}
.pg-themes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.85rem 3rem;
}
.pg-theme {
  padding: 0 0 0.1rem 1rem;
  border-left: 2px solid var(--pg-accent);
}
.pg-theme h3 {
  font-size: 21px;
  margin-bottom: 0.5rem;
}
.pg-theme h3 a {
  color: var(--pg-ink) !important;
}
.pg-theme p {
  color: var(--pg-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}
.pg-news-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--pg-line);
}
.pg-news-row time {
  color: var(--pg-muted);
  font-size: 14px;
  padding-top: 0.2rem;
}
.pg-news-row p {
  margin: 0;
}
.pg-news-link {
  margin-top: 1rem !important;
  font-size: 16px;
}
.pg-funders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 0.5rem 0 1.5rem;
}
.pg-funders img {
  display: block;
  height: 72px;
  width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 2px;
}
.pg-small {
  color: var(--pg-muted);
  font-size: 14px;
  line-height: 1.55;
}
/* Recruitment uses typographic columns, without decorative cards or badges. */
.pg-opportunities {
  border-top: 1px solid var(--pg-line);
}
.pg-opening {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--pg-line);
}
.pg-opening-label {
  color: var(--pg-muted);
  font-size: 14px;
  line-height: 1.55;
  padding-top: 0.2rem;
}
.pg-opening-label strong {
  display: block;
  color: var(--pg-accent);
  font-size: 15px;
  margin-bottom: 0.35rem;
}
.pg-opening h3 {
  margin-bottom: 0.65rem;
}
.pg-opening p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.pg-opening .pg-details {
  color: var(--pg-muted);
  font-size: 14px;
}
.pg-opening p:last-child {
  margin-bottom: 0;
}
.pg-opening a {
  text-decoration: underline;
  font-weight: 600;
}
.pg-other {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.pg-other h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}
.pg-other p {
  font-size: 16px;
  margin: 0;
}
.pg-contact-line {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pg-line);
}
.pg-research {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  scroll-margin-top: 6rem;
}
.pg-research h2 {
  font-size: 25px;
  margin-top: 0;
}
.pg-research figure {
  margin: 0;
}
.pg-research figure img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.pg-research figcaption {
  color: var(--pg-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 0.6rem;
}
.pg-research p {
  font-size: 16px;
}
.pg-research .pg-small {
  font-size: 14px;
}
.pg-person {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 1.75rem;
}
.pg-person img {
  width: 88px;
  height: 104px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  flex: 0 0 auto;
}
.pg-person.pg-pi img {
  width: 148px;
  height: 170px;
}
.pg-person h3 {
  margin-bottom: 0.3rem;
}
.pg-person p {
  margin-bottom: 0.3rem;
  font-size: 16px;
}
.pg-person .pg-small {
  font-size: 14px;
}
@media (max-width: 767px) {
  body {
    font-size: 16px;
  }
  .post .post-header {
    margin-bottom: 1.75rem;
  }
  .post .desc {
    font-size: 16px;
  }
  .post h2 {
    font-size: 25px;
  }
  .pg-hero {
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 1.5rem;
  }
  .pg-portrait img {
    width: 130px;
    height: 150px;
  }
  .pg-lead {
    font-size: 21px;
  }
  .pg-themes {
    gap: 1.5rem;
  }
  .pg-opening {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1.5rem;
  }
  .pg-research {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .pg-research figure {
    max-width: 480px;
  }
}
@media (max-width: 575px) {
  .pg-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-portrait {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .pg-portrait img {
    width: 82px;
    height: 96px;
  }
  .pg-portrait figcaption {
    margin: 0;
  }
  .pg-themes {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-section {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
  }
  .pg-opening {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    padding: 1.4rem 0;
  }
  .pg-opening-label {
    padding: 0;
  }
  .pg-opening-label strong {
    display: inline;
    margin-right: 0.6rem;
  }
  .pg-other {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }
  .pg-news-row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 0.75rem;
  }
  .pg-funders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .pg-person {
    gap: 1rem;
    align-items: start;
  }
  .pg-person.pg-pi img {
    width: 88px;
    height: 104px;
  }
  .pg-links {
    column-gap: 1.2rem;
  }
}

footer.fixed-bottom {
  position: static;
  margin-top: 3.5rem;
  padding: 1rem 0;
  background: var(--pg-soft);
  color: var(--pg-muted);
}
footer.fixed-bottom .container,
footer.fixed-bottom a {
  color: var(--pg-muted);
}

/* Publication years should remain readable rather than fading into the divider. */
.post .publications h2.bibliography {
  color: var(--pg-ink);
  border-color: var(--pg-line);
  text-align: left;
  font-size: 24px;
  font-weight: 600;
}
.post .publications ol.bibliography li .title {
  font-weight: 600;
}
