@charset "UTF-8";
/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
h1 {
  font-size: 40px;
  font-family: Noto Sans;
}

.header-wrap a {
  color: white;
}

.site-branding-container {
  display: flex;
  align-items: center;
}
.site-branding-container .site-logo img {
  width: 80px;
  height: auto;
}
.site-branding-container .main-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  font-family: var(--wp--preset--font-family--walbaum-display);
  color: var(--wp--preset--color--true-white);
}

/* User Profile Styles */
.single-person .entry-content {
  margin: 0 25px;
}
.single-person .psi-tabs button {
  color: black;
}
.single-person .site-content .content-area {
  width: 100%;
}
.single-person article {
  width: 100%;
}
.single-person h4 {
  font-size: 20px;
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.single-person .profile-breadcrumb {
  margin: 0 0 1rem;
  font-size: 16px;
}
.single-person .profile-breadcrumb a {
  text-decoration: none;
  opacity: 0.8;
}
.single-person .profile-breadcrumb a:visited {
  color: black;
}
.single-person .profile-breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}
.single-person .edit-profile {
  text-decoration: underline;
}
.single-person .staff-info a {
  color: black;
}
.single-person section {
  margin-bottom: 80px;
}
.single-person section:first-of-type {
  margin-top: 50px;
  margin-bottom: 40px;
}
.single-person section.additional-staff-info {
  margin-bottom: 80px;
}
.single-person section.additional-staff-info .staff-info {
  margin-bottom: 0px;
  font-style: italic;
}
.single-person section.staff__banner {
  display: flex;
}
.single-person section.staff__banner .staff__headshot {
  height: 350px;
  width: 350px;
  object-fit: cover;
  border-radius: 50%;
}
.single-person section.staff__banner .staff-info__container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 50px;
}
.single-person section.staff__banner .staff-info__container .optional-staff-links {
  display: flex;
  flex-direction: column;
}
.single-person section.staff__banner .staff-info__container .staff__title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.single-person section.staff__banner .staff-info__container .staff-info {
  margin-bottom: 0px;
  font-style: italic;
}
.single-person section.staff__banner .staff-info__container .staff-info a:visited {
  color: black;
}
.single-person section.staff__banner .staff-info__container .staff-info a:hover {
  text-decoration: underline;
}
.single-person section.staff__banner .staff-info__container .staff__position {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
  font-style: normal;
}
.single-person section.staff__banner .staff-info__container .staff-info__social {
  list-style-type: none;
  margin: 0;
  margin-top: 0px;
  display: flex;
  margin-top: 10px;
}
.single-person section.staff__banner .staff-info__container .staff-info__social li {
  margin-right: 10px;
}
.single-person section.staff__banner .staff-info__container .staff-info__social li .social-icon {
  background-color: white;
  font-size: 26px;
}
.single-person section.staff__banner .staff-info__container .staff-info__social i, .single-person section.staff__banner .staff-info__container .staff-info__social svg {
  cursor: pointer;
}
.single-person section.staff__banner .staff-info__container .staff-info__social svg {
  width: 27px;
}
.single-person section.staff-pi__container .optional-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  margin-top: 40px;
}
.single-person section.staff-pi__container .optional-image-grid img {
  border-radius: 5px;
}
.single-person #past-projects,
.single-person #active-projects {
  cursor: pointer;
  text-decoration-line: underline;
}

/* Staff Directory Responsive CSS */
@media screen and (max-width: 540px) {
  .single-person .entry-content {
    margin: 0;
    margin-top: 40px;
  }
  .single-person .staff__banner {
    margin: 0;
  }
  .single-person .staff-info__container {
    margin: 0;
  }
}
@media screen and (max-width: 1080px) {
  .single-person .entry-content {
    /* .project-info-container h3 {
        margin-bottom: 46px;
    } */
  }
  .single-person .entry-content #related-posts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .single-person .entry-content #load-more-posts-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 1000px) {
  .single-person .entry-content .widget ul li.related-user {
    flex-direction: column;
  }
  .single-person .entry-content .widget .related-staff-heading {
    text-align: center;
  }
}
@media screen and (max-width: 958px) {
  .single-person .entry-content .activity-banner {
    height: auto;
    grid-row-gap: 10px;
  }
  .single-person .entry-content .activity-banner__primary-investigator {
    grid-column: span 2;
  }
  .single-person .entry-content .activity-banner__content {
    grid-column: span 2;
  }
  .single-person .entry-content .activity-banner .project-image-container {
    grid-column: span 2;
    text-align: center;
  }
  .single-person .entry-content .activity-banner .project-image {
    height: 300px;
  }
  .single-person .entry-content .activity-banner .project-team {
    height: 300px;
    grid-column: span 2;
  }
}
@media screen and (max-width: 768px) {
  .single-person .entry-content .widget ul li.related-user {
    flex-direction: row;
  }
  .single-person .entry-content .widget .related-staff-heading {
    text-align: left;
  }
}
@media screen and (max-width: 745px) {
  .single-person .entry-content #related-posts-grid {
    grid-template-columns: 1fr;
  }
  .single-person .entry-content .project-meta-container .project-meta:last-child {
    margin-left: 0;
    margin-top: 10px;
  }
  .single-person .entry-content .activity-banner {
    grid-template-columns: 1fr;
    height: auto;
    grid-gap: 10px;
  }
  .single-person .entry-content .activity-banner .project-team {
    height: 300px;
    text-align: left;
  }
  .single-person .entry-content .activity-banner .project-team img {
    margin: 0;
  }
  .single-person .entry-content #load-more-posts-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media screen and (max-width: 660px) {
  .single-person .entry-content .staff__banner img {
    height: 250px;
    width: 250px;
  }
}
@media screen and (max-width: 540px) {
  .single-person .entry-content .staff__banner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .single-person .entry-content .staff-info__container {
    margin: 0px;
    margin-top: 40px;
    width: 100%;
  }
  .single-person .entry-content .page-template-user-profile section:first-of-type {
    margin-top: 40px;
    margin-bottom: 60px;
  }
  .single-person .entry-content .page-template-user-profile section.staff__banner .staff-info__container {
    margin-left: 0;
  }
  .single-person .entry-content .page-template-user-profile section.staff__banner .staff__headshot {
    height: 325px;
  }
  .single-person .entry-content .pi-container img {
    height: 125px;
    width: 125px;
  }
  .single-person .entry-content .project-info-container {
    margin-left: 25px;
  }
  .single-person .entry-content .project-info-container h1 {
    font-size: 25px;
  }
  .single-person .entry-content .project-info-container h3 {
    font-size: 18px;
  }
  .single-person .entry-content .project-meta {
    font-size: 15px;
  }
  .single-person .entry-content .project-meta-container .project-meta:last-child {
    margin-left: 0;
    margin-top: 10px;
  }
  .single-person .entry-content .single-project .related-staff-carousel-large {
    padding: 0;
  }
}

@media screen and (max-width: 540px) {
  .single-person section.staff__banner .staff-info__container {
    margin: 0;
  }
}
.honors-and-awards {
  margin: 0 25px;
}
.honors-and-awards h2 {
  text-align: center;
  font-weight: bold;
}
.honors-and-awards p {
  margin-left: 300px;
  margin-top: 50px;
}
.honors-and-awards .staff__title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.honors-and-awards .staff-info.staff__position {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
  font-style: normal;
}
.honors-and-awards__header {
  text-align: center;
  margin-bottom: 60px;
}
.honors-and-awards__header img {
  border-radius: 50%;
  margin-bottom: 36px;
  height: 350px;
  width: 350px;
  object-fit: cover;
}
.honors-and-awards .optional-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  margin-top: 40px;
}
.honors-and-awards .optional-image-grid img {
  border-radius: 5px;
  display: inline-block;
  object-fit: cover;
}
.honors-and-awards .optional-image-caption {
  text-align: left;
  margin-right: auto;
}

.professional-history {
  margin: 0 25px;
}
.professional-history__header {
  text-align: center;
  margin-bottom: 60px;
}
.professional-history__header img {
  border-radius: 50%;
  margin-bottom: 36px;
  height: 350px;
  width: 350px;
  object-fit: cover;
}
.professional-history .staff__title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.professional-history .staff-info.staff__position {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
  font-style: normal;
}
.professional-history h2 {
  text-align: center;
  font-weight: bold;
}
.professional-history .optional-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  margin-top: 40px;
}
.professional-history .optional-image-grid img {
  border-radius: 5px;
  display: inline-block;
  object-fit: cover;
}
.professional-history .optional-image-caption {
  text-align: left;
  margin-right: auto;
}

/* =========================================================
   Projects archive (SSR facets + results) — mirror search.scss
   Scope to body.post-type-archive-project to avoid bleed
   ========================================================= */
body.post-type-archive-project:not(.search):not(.search-results) {
  /* tokens */
  /* ---- layout ---- */
  /* ---- sidebar / facets ---- */
  /* ---- main column ---- */
  /* small theming touch (same as search.scss) */
}
body.post-type-archive-project:not(.search):not(.search-results) #content {
  max-width: 100%;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-projects-archive {
  margin-top: 40px;
  padding-inline: clamp(12px, 2vw, 20px);
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-projects-archive h1 {
  max-width: 220px;
  font-family: Noto Sans, sans-serif;
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 0;
  margin-bottom: 20px;
  border-bottom: 4px solid var(--wp--preset--color--orange, #C57249);
  color: var(--wp--preset--color--navy, #022d56);
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-search {
  margin-top: 25px;
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 8fr;
  gap: 2rem;
  align-items: start;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-search input {
  background: transparent;
  border-radius: 5px;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-search input:focus {
  outline: 2px solid var(--wp--preset--color--orange, #c66e20);
}
@media (max-width: 960px) {
  body.post-type-archive-project:not(.search):not(.search-results) .psi-search {
    grid-template-columns: 1fr;
  }
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar {
  min-width: 240px;
  /*     position: sticky;
      top: 2rem; */
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-form .wp-element-button,
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-form .button.button-secondary {
  border-radius: 8px;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-acc {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  margin: 0 0 0.75rem;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  user-select: none;
  outline: none;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-acc summary::-webkit-details-marker {
  display: none;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-acc summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--wp--preset--color--navy), 0.2);
  border-radius: 10px;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-acc summary .psi-acc__chev {
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0.75;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-acc[open] > summary .psi-acc__chev {
  transform: rotate(90deg);
  opacity: 1;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-acc .psi-acc__panel {
  padding: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-acc .psi-acc__panel label {
  display: block;
  margin: 0.25rem 0;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-acc .psi-acc__panel select {
  width: 92%;
  padding: 10px;
  background-color: white;
  border: 1px solid gray;
  border-radius: 5px;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-facet-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-facet-actions .psi-btn-primary,
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-facet-actions .psi-btn-secondary {
  max-width: 100%;
  display: inline-block;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-facet-actions .psi-btn-primary i,
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-facet-actions .psi-btn-secondary i {
  font-size: 16px;
  margin-right: 5px;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-sidebar .psi-facet-actions .psi-btn-secondary {
  text-decoration: none;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-main {
  /* Projects grid: single column by design (adjust if needed) */
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-main .psi-main-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-main .psi-main-search input[type=search] {
  flex: 1;
  min-width: 200px;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-main .psi-main-search button {
  padding: 0.5rem 1.5rem;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-main .psi-results-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wp--preset--color--navy);
  margin-bottom: 10px;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-main .psi-results-header .psi-results-summary {
  font-weight: bold;
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-main .psi-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (max-width: 960px) {
  body.post-type-archive-project:not(.search):not(.search-results) .psi-main .psi-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 961px) and (max-width: 1200px) {
  body.post-type-archive-project:not(.search):not(.search-results) .psi-main .psi-grid {
    grid-template-columns: 1fr;
  }
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-acc summary {
  color: var(--wp--preset--color--navy);
}
body.post-type-archive-project:not(.search):not(.search-results) .psi-acc .psi-acc__panel label:hover {
  background: rgba(var(--wp--preset--color--navy), 0.04);
  border-radius: 6px;
}

.single-project .staff-member a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 180px;
  color: black;
  text-decoration: none;
}
.single-project .staff-member a:visited {
  color: black;
}
.single-project .staff-member a:hover {
  text-decoration: underline;
}
.single-project .staff-member a img {
  object-fit: cover;
  height: 80px;
  width: 80px;
}
.single-project .related-staff-carousel.no-swiper {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.single-project .related-staff-carousel.no-swiper .swiper-button-prev,
.single-project .related-staff-carousel.no-swiper .swiper-button-next,
.single-project .related-staff-carousel.no-swiper .swiper-pagination {
  display: none !important;
}

.related-staff-carousel .swiper-button-next,
.related-staff-carousel .swiper-button-prev {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  color: #022d56;
  height: 2.5rem;
  margin-top: -1.25rem;
  top: 50%;
  width: 2.5rem;
  z-index: 10;
}

.single-project .content-area {
  width: 100%;
}

.single-project #main {
  margin: 40px;
}

.single-project .related-staff-carousel-large,
.single-project .related-staff-carousel-medium,
.single-project .related-staff-carousel-small,
.single-project .related-staff-carousel {
  background-color: #ffffff;
  height: auto;
  padding-top: 15px;
  padding-bottom: 15px;
}

.tooltip {
  position: absolute;
  background-color: rgb(240, 240, 240);
  color: black;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  max-width: 200px;
  min-width: 175px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 999;
}

.tooltip::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 0;
  border-color: rgb(240, 240, 240) transparent transparent;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.project-website {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.project-website:visited {
  color: black;
}

.project-website:hover > .tooltip:last-child {
  opacity: 1;
}

.projects-category-display {
  border-bottom: 1px solid black;
}

.agency-list {
  margin-bottom: 20px;
}

.agency-name {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  margin: 0 5px;
}

.clickable-agency {
  cursor: pointer;
}

.clickable-agency.selected {
  pointer-events: none;
  text-decoration: underline;
}

.programs-list {
  padding-bottom: 20px;
}

.ending-content.hide {
  visibility: hidden;
  max-height: 0;
  height: 0;
  overflow: hidden;
  font-style: normal;
  opacity: 0;
  transition: opacity 0.2s;
  display: block;
  margin-bottom: 0px;
}

.ending-content.show {
  visibility: visible;
  max-height: 2000px;
  height: auto;
  overflow: auto;
  font-style: normal;
  display: inline;
  opacity: 1;
  transition: opacity 0.2s;
  margin-bottom: 0px;
}

#show-hidden-content {
  cursor: pointer;
  color: blue;
  text-align: center;
}

.single-project #show-more-btn {
  cursor: pointer;
  margin: 10px 0;
  color: blue;
  font-size: 14px;
}

.project-banner {
  display: flex;
}

.project-title-container {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.project-title-container h1 {
  margin: 0;
}

.project-title-container i {
  margin-left: 10px;
  font-size: 35px !important;
}

.project-info-container {
  margin-left: 50px;
}

.project-info-container a.edit-project {
  display: inline-block;
  margin-bottom: 10px;
  color: black;
}
.project-info-container a.edit-project:visited {
  color: black;
}

.project-tax-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-tax-container h3 {
  margin-bottom: 0;
}
.project-tax-container .pte-container {
  margin-bottom: 25px;
}
.project-tax-container .pte-container p {
  margin: 0;
}

.pi-container img {
  height: 200px;
  width: 200px;
  object-fit: cover;
  max-width: none;
  border-radius: 50%;
}

.pi-container p {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.pi-container a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: black;
}
.pi-container a:visited {
  color: black;
}
.pi-container a:hover {
  text-decoration: underline;
}

.pi-container p {
  margin: 0;
}

.pi-container > * {
  margin: 0;
}

.project-meta {
  display: inline-block;
}

.coi-collab-track {
  margin-bottom: 25px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ===== Swiper pagination BELOW the slider (no JS changes) ===== */
.single-project .related-staff-carousel {
  position: relative;
}
.single-project .related-staff-carousel .swiper-pagination, .single-project .related-staff-carousel.swiper-horizontal > .swiper-pagination-bullets,
.single-project .related-staff-carousel .swiper-pagination-bullets.swiper-pagination-horizontal {
  position: static !important;
  bottom: auto !important;
  top: auto !important;
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

/* ===== Make arrows smaller (button + glyph) ===== */
.related-staff-carousel .swiper-button-prev,
.related-staff-carousel .swiper-button-next {
  width: 28px;
  height: 28px;
  top: 50%;
  margin-top: -14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  color: #022d56;
  z-index: 10;
}
.related-staff-carousel .swiper-rtl .swiper-button-prev {
  right: 0;
}
.related-staff-carousel .swiper-button-prev::after,
.related-staff-carousel .swiper-button-next::after {
  font-size: 14px;
}
@media (max-width: 640px) {
  .related-staff-carousel .swiper-button-prev,
  .related-staff-carousel .swiper-button-next {
    width: 24px;
    height: 24px;
    margin-top: -12px;
  }
  .related-staff-carousel .swiper-button-prev::after,
  .related-staff-carousel .swiper-button-next::after {
    font-size: 12px;
  }
}

/* keep your existing no-swiper rules */
.single-project .related-staff-carousel.no-swiper {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.single-project .related-staff-carousel.no-swiper .swiper-button-prev,
.single-project .related-staff-carousel.no-swiper .swiper-button-next,
.single-project .related-staff-carousel.no-swiper .swiper-pagination {
  display: none !important;
}

/* Planetary Partners – SCSS */
.planetary-partners {
  --gap: clamp(1rem, 2vw, 2rem);
  --container: min(1200px, 92vw);
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 60%, #f8fafc 100%);
  width: 100%;
}

/* Layout helpers */
.pp-container {
  margin-inline: auto;
}

.pp-section {
  padding: clamp(2rem, 4vw, 4rem) 0;
  padding-top: 0;
}

.pp-heading {
  font-weight: 800;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin: 0 0 40px;
  text-align: center;
}

.pp-subtext {
  color: #475569;
  text-align: center;
  max-width: 40rem;
  margin: 0.25rem auto 2rem;
}

.pp-hero {
  margin-bottom: 60px;
}

.pp-hero__title {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  border-bottom: 3px solid var(--wp--preset--color--orange);
  max-width: 500px;
}

.pp-hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: black;
  max-width: 1050px;
}

/* Cards / surfaces */
.pp-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.12);
  padding: clamp(1.25rem, 2.5vw, 3rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.pp-overview__item-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin-bottom: 20px;
}

/* Overview grid */
.pp-overview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 768px) {
  .pp-overview__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pp-overview__item {
  text-align: center;
}

.pp-overview__icon {
  border-radius: 999px;
  font-size: 1.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  color: #334155;
  background: #e6f3ff;
  color: #334155;
}

.bg-blue {
  background: #e0ecff;
  color: #2563eb;
}

.bg-green {
  background: #e8f7ee;
  color: #16a34a;
}

.bg-orange {
  background: #fff0e6;
  color: #ea580c;
}

.pp-overview__title {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0;
}

.pp-overview__text {
  color: #475569;
  max-width: 300px;
  margin: 0 auto;
}

/* Tiers */
.pp-intro {
  text-align: center;
  margin: 2rem 0;
}

.pp-tier-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}
@media (min-width: 800px) {
  .pp-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .pp-tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pp-tier {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
  overflow: clip;
  transition: transform 0.25s ease, box-shadow 0.25s ease, outline 0.25s ease;
}
.pp-tier:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.12);
}
.pp-tier.is-popular {
  outline: 2px solid #2563eb;
}
.pp-tier.is-featured {
  outline: 2px solid #ea580c;
}

.pp-tier__ribbon {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}
.pp-tier__ribbon.ribbon--blue {
  background: #2563eb;
}
.pp-tier__ribbon.ribbon--orange {
  background: #ea580c;
}

.pp-tier__inner {
  padding: 1.5rem;
}

.pp-tier__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pp-tier__head .pp-tier__icon-wrap {
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 1.25rem;
  color: #334155;
  background: #e6f3ff;
  background: #e6f3ff;
  color: #334155;
}
.pp-tier__head .pp-tier__name {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0;
}

.pp-tier__price {
  margin-bottom: 1rem;
}
.pp-tier__price .pp-tier__price-main {
  font-size: 2rem;
  font-weight: 800;
  margin-right: 0.35rem;
}
.pp-tier__price .pp-tier__period {
  color: #475569;
}
.pp-tier__price .pp-tier__monthly {
  color: #475569;
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.pp-tier__benefits {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.pp-tier__benefits .pp-tier__benefit {
  display: grid;
  grid-template-columns: 1rem 1fr;
  align-items: start;
  gap: 0.5rem;
}
.pp-tier__benefits .pp-tier__benefit i {
  color: #16a34a;
  line-height: 1.2;
}
.pp-tier__benefits .pp-tier__benefit span {
  color: #334155;
  font-size: 0.95rem;
}

/* Buttons */
.pp-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #0f172a;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.pp-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.pp-btn.btn--dark {
  background: #0f172a;
}
.pp-btn.btn--blue {
  background: #2563eb;
}
.pp-btn.btn--orange {
  background: #ea580c;
}
.pp-btn.btn--lg {
  max-width: 22rem;
}

/* All Members section */
.pp-allmembers {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
}
.pp-allmembers .pp-heading {
  color: #fff;
}
.pp-allmembers .pp-allmembers__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .pp-allmembers .pp-allmembers__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pp-allmembers .pp-allmembers__item {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.pp-allmembers .pp-allmembers__item i {
  font-size: 1.1rem;
  color: #bfd7ff;
  margin-top: 0.2rem;
}
.pp-allmembers .pp-allmembers__item .pp-allmembers__title {
  font-weight: 700;
  margin: 0 0 0.15rem;
}
.pp-allmembers .pp-allmembers__item .pp-allmembers__text {
  color: #cfe3ff;
  margin: 0;
  font-size: 0.95rem;
}

/* CTA */
.pp-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* === Palette / tokens === */
/* ===== Remove theme content caps on this page ===== */
.page-template-psi-2025-annual-campaign .entry-content,
.psi-campaign,
.psi-campaign > section {
  max-width: none !important;
  width: 100% !important;
}

.psi-container {
  width: 100%;
}

/* Hero (simple, no gradients) */
.psi-hero {
  padding: 24px 0 0;
  background: transparent;
}

.psi-hero__title {
  font-weight: 800;
  font-size: 50px;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.psi-hero__subtitle {
  color: #334155;
  font-weight: 600;
  font-size: 22px;
  margin: 0;
}

/* ==== Impact Cards (light, 5px radii) ==== */
.psi-impact--cards {
  background: #f3f4f6;
}

.psi-impactcard__body {
  padding: 0.85rem 1rem 1rem;
}

.psi-impactcard__title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 600;
  color: #0f172a;
}

.psi-impactgrid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .psi-impactgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .psi-impactgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .psi-impactgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.psi-impactcard {
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.psi-impactcard__media {
  position: relative;
  height: 220px;
  background: #0b1324;
  overflow: hidden;
}
.psi-impactcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.3s ease;
}
.psi-impactcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.12) 100%);
  pointer-events: none;
}

.psi-impactcard__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 12px;
  border-radius: 5px;
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.15);
}

.psi-impactcard__body {
  padding: 16px 18px 18px;
}

.psi-impactcard__title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
}

.psi-impactcard__desc {
  margin: 0;
  color: #334155;
  line-height: 1.5;
  font-size: 0.98rem;
}

/* Donation panel (no gradient) */
.psi-donate__panel {
  background: #fff;
  border: 1px solid #eff6ff;
  border-radius: 5px;
  box-shadow: 0 10px 22px rgba(30, 58, 138, 0.08);
  margin: 0 24px;
  padding: clamp(16px, 2.4vw, 24px);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.psi-donate__title {
  text-align: center;
  color: #1e293b;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 20px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid of amounts */
.psi-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .psi-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Amount buttons — short, wide, centered label */
.psi-amount {
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  padding: 12px 16px;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow: none;
  text-align: center;
  max-width: 100%;
}
.psi-amount:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.16);
}
.psi-amount.is-selected {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.psi-amount__title {
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.psi-amount__desc {
  display: none;
} /* compact like your mock */
/* Other amount */
.psi-other {
  margin: 16px 0 18px;
}

.psi-other__btn {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  max-width: 100%;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid #cbd5e1;
  background: #fff;
  color: #334155;
  transition: 0.18s ease;
  cursor: pointer;
}
.psi-other__btn:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.14);
}

.psi-other__wrap {
  margin-top: 10px;
}

.psi-input-money {
  position: relative;
}

.psi-input-money__prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  font-weight: 700;
}

.psi-input {
  width: 100%;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  padding: 12px 14px 12px 28px;
  font-size: 16px;
}
.psi-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* CTA */
.psi-cta {
  width: 100%;
  padding: 14px 16px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 16px;
  max-width: 100%;
  color: #fff;
  background: #2563eb;
  border: 0;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.1);
}
.psi-cta:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.psi-cta:disabled {
  background: #d1d5db;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.psi-note {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 14px;
}
.psi-note p {
  margin-bottom: 0;
}
.psi-note p:first-child {
  margin-bottom: 20px;
}

.psi-note a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.psi-note a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* Accessibility helpers */
.screen-reader-text {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

:root {
  --card-min: 220px; /* minimum card width */
  --g: clamp(16px, 3vw, 40px); /* gap */
  --max-cols: 6; /* cap at 4 columns */
}

.psi-expert-form {
  margin-bottom: 25px;
}

.psi-search-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr); /* fixed 4 cols */
}

.psi-search-grid > * {
  max-width: 320px; /* cap card width */
  width: 100%;
  justify-self: center; /* center within its 1fr track */
}

/* 4 → 3 → 2 → 1 */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
input#expert_s {
  background: transparent;
  border-radius: 5px;
}
input#expert_s:focus {
  outline: 2px solid var(--wp--preset--color--orange, #c66e20);
}
@media (max-width: 378px) {
  input#expert_s {
    margin-bottom: 10px;
  }
}

/* ===== Theme tokens (use your WP CSS vars with fallbacks) ===== */
.is-current-color, .post-type-archive-person .people-dir .results-wrapper .pagination-wrap .people-dir__page-link.is-current, .post-type-archive-person .people-dir .sidebar .filters a.current {
  color: var(--wp--preset--color--orange, #C57249);
}

.post-type-archive-person {
  /* ---------------- Tooltip trigger + base bubble styles (shared) ---------------- */
  /* Inline icon button (used next to search, inside summaries, etc.) */
  /* Bubble base (visual) — same typography everywhere */
  /* Hover/focus show; keep visible while hovering the bubble */
  /* The tooltip is hidden by default via the [hidden] attribute */
}
.post-type-archive-person #content {
  max-width: 1400px;
}
.post-type-archive-person .psi-find-experts-btn {
  max-width: 200px;
}
.post-type-archive-person h1, .post-type-archive-person .entry-title {
  color: var(--wp--preset--color--navy, #022d56);
  font-size: 40px;
  font-weight: 800;
  max-width: 250px;
  padding-bottom: 5px;
  border-bottom: 5px solid var(--wp--preset--color--orange, #C57249);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.post-type-archive-person #page {
  margin-top: 40px;
}
.post-type-archive-person .psi-tip__trigger {
  margin-left: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--wp--preset--color--navy, #022d56);
  opacity: 0.75;
  cursor: help;
  border-radius: 50%;
  line-height: 1;
}
.post-type-archive-person .psi-tip__trigger:hover, .post-type-archive-person .psi-tip__trigger:focus-visible {
  opacity: 1;
  outline: 2px solid var(--wp--preset--color--orange, #C57249);
  outline-offset: 2px;
}
.post-type-archive-person .psi-tip__trigger i {
  font-size: 16px;
}
.post-type-archive-person .psi-tip {
  max-width: 280px;
  z-index: 50;
  background: #fff;
  color: var(--wp--preset--color--navy, #022d56);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 0.55rem 0.65rem;
  font-size: 0.92rem; /* match FAE tooltip */
  line-height: 1.35; /* match FAE tooltip */
}
.post-type-archive-person .psi-tip__trigger:hover + .psi-tip,
.post-type-archive-person .psi-tip__trigger:focus + .psi-tip,
.post-type-archive-person .psi-tip:hover {
  display: block !important;
}
.post-type-archive-person .psi-tip[hidden] {
  display: none;
}
.post-type-archive-person .fae-container {
  display: none;
}
.post-type-archive-person .people-dir {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  width: 100%;
  /* Optional: prevent single/few cards from stretching */
  /* 4 → 3 → 2 → 1 */
  /* ---------------- Sidebar ---------------- */
  /* ---------------- Results ---------------- */
}
@media (max-width: 767px) {
  .post-type-archive-person .people-dir {
    grid-template-columns: 1fr;
    width: auto;
  }
}
.post-type-archive-person .people-dir .grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr); /* fixed 4 cols */
}
.post-type-archive-person .people-dir .grid > * {
  max-width: 320px;
  width: 100%;
  justify-self: center;
}
@media (max-width: 1200px) {
  .post-type-archive-person .people-dir .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .post-type-archive-person .people-dir .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .post-type-archive-person .people-dir .grid {
    grid-template-columns: 1fr;
  }
}
.post-type-archive-person .people-dir .sidebar {
  max-width: 240px;
  /* buttons inside forms */
  /* Accordion card style for any .psi-acc in the sidebar */
  /* Facet panel specifics (checkbox list look) */
  /* FAE tweaks so the shortcode form matches the card */
  /* facet action buttons (within the facet form) */
  /* inputs focus treatment for consistency */
}
.post-type-archive-person .people-dir .sidebar .filters {
  display: flex;
  flex-direction: column;
}
.post-type-archive-person .people-dir .sidebar .filters a {
  display: block;
  margin: 0.25rem 0;
  text-decoration: none;
}
.post-type-archive-person .people-dir .sidebar .filters a:hover {
  text-decoration: underline;
}
.post-type-archive-person .people-dir .sidebar .filters a.current {
  font-weight: 600;
  text-decoration: underline;
  pointer-events: none;
}
.post-type-archive-person .people-dir .sidebar .psi-form {
  margin-bottom: 20px;
}
.post-type-archive-person .people-dir .sidebar .psi-form .wp-element-button,
.post-type-archive-person .people-dir .sidebar .psi-form .button.button-secondary {
  border-radius: 8px;
}
.post-type-archive-person .people-dir .sidebar .psi-acc {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  margin: 0 0 0.75rem;
  /* Summary header row */
}
.post-type-archive-person .people-dir .sidebar .psi-acc summary {
  /* remove native marker */
  list-style: none;
  cursor: pointer;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  user-select: none;
  outline: none;
  color: var(--wp--preset--color--navy, #022d56);
  /* -------- Tooltip placement for sidebar summaries (FAE-style) -------- */
}
.post-type-archive-person .people-dir .sidebar .psi-acc summary::-webkit-details-marker {
  display: none;
}
.post-type-archive-person .people-dir .sidebar .psi-acc summary::marker {
  content: "";
}
.post-type-archive-person .people-dir .sidebar .psi-acc summary .psi-acc__chev {
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0.75;
}
.post-type-archive-person .people-dir .sidebar .psi-acc summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(2, 45, 86, 0.2);
  border-radius: 10px;
}
.post-type-archive-person .people-dir .sidebar .psi-acc summary .psi-tip {
  position: absolute;
  transform: translateY(-68%); /* above the line */
  margin-top: -8px; /* lift a bit more */
  left: 8.3%;
  /* arrow */
}
.post-type-archive-person .people-dir .sidebar .psi-acc summary .psi-tip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 12px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.12));
}
.post-type-archive-person .people-dir .sidebar .psi-acc[open] > summary .psi-acc__chev {
  transform: rotate(90deg);
  opacity: 1;
}
.post-type-archive-person .people-dir .sidebar .psi-acc .psi-acc__panel {
  padding: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.post-type-archive-person .people-dir .sidebar .our-people-filter-by-category .psi-acc .psi-acc__panel {
  display: grid;
  gap: 0.35rem 0.5rem;
}
.post-type-archive-person .people-dir .sidebar .our-people-filter-by-category .psi-acc .psi-acc__panel label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.1rem 0;
  border-radius: 6px;
}
.post-type-archive-person .people-dir .sidebar .our-people-filter-by-category .psi-acc .psi-acc__panel label:hover {
  background: rgba(2, 45, 86, 0.04);
}
.post-type-archive-person .people-dir .sidebar .our-people-filter-by-category .psi-acc .psi-acc__panel label input[type=checkbox] {
  margin: 0;
  accent-color: var(--wp--preset--color--navy, #022d56);
}
.post-type-archive-person .people-dir .sidebar .psi-acc--fae .psi-acc__panel form {
  display: grid;
  gap: 0.5rem;
}
.post-type-archive-person .people-dir .sidebar .psi-acc--fae .psi-acc__panel input, .post-type-archive-person .people-dir .sidebar .psi-acc--fae .psi-acc__panel select, .post-type-archive-person .people-dir .sidebar .psi-acc--fae .psi-acc__panel textarea {
  width: 92%;
  max-width: 250px;
  background: #fff;
  border: 1px solid #b6b6b6;
  border-radius: 5px;
  padding: 0.6rem 0.7rem;
}
.post-type-archive-person .people-dir .sidebar .psi-acc--fae .psi-acc__panel input:focus, .post-type-archive-person .people-dir .sidebar .psi-acc--fae .psi-acc__panel select:focus, .post-type-archive-person .people-dir .sidebar .psi-acc--fae .psi-acc__panel textarea:focus {
  outline: 2px solid var(--wp--preset--color--orange, #C57249);
  outline-offset: -1px;
}
.post-type-archive-person .people-dir .sidebar .psi-acc--fae .psi-acc__panel .wp-element-button, .post-type-archive-person .people-dir .sidebar .psi-acc--fae .psi-acc__panel .button, .post-type-archive-person .people-dir .sidebar .psi-acc--fae .psi-acc__panel button {
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.post-type-archive-person .people-dir .sidebar .psi-facet-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.post-type-archive-person .people-dir .sidebar .psi-facet-actions .psi-btn-primary,
.post-type-archive-person .people-dir .sidebar .psi-facet-actions .psi-btn-secondary {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 8px;
}
.post-type-archive-person .people-dir .sidebar .psi-facet-actions .psi-btn-primary i,
.post-type-archive-person .people-dir .sidebar .psi-facet-actions .psi-btn-secondary i {
  font-size: 16px;
}
.post-type-archive-person .people-dir .sidebar input, .post-type-archive-person .people-dir .sidebar select, .post-type-archive-person .people-dir .sidebar textarea {
  background: transparent;
}
.post-type-archive-person .people-dir .sidebar input:focus, .post-type-archive-person .people-dir .sidebar select:focus, .post-type-archive-person .people-dir .sidebar textarea:focus {
  outline: 2px solid var(--wp--preset--color--orange, #C57249);
  outline-offset: 2px;
  border-radius: 5px;
}
.post-type-archive-person .people-dir .results-wrapper .people-dir__search {
  margin: 0 0 1rem;
  /* Layout the input + icon (+ optional button) and anchor bubble */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  /* Taller input for better tap target */
  /* Match the button height to the input height */
  /* Validation message (appears under input when empty submit) */
  /* Tooltip ABOVE the button, arrow pointing at the button (FAE-like) */
  /* On very small screens, keep above but nudge inward to avoid overflow */
}
.post-type-archive-person .people-dir .results-wrapper .people-dir__search input[type=search] {
  width: 100%;
  background: #fff;
  border: 1px solid #b6b6b6;
  border-radius: 6px;
  padding: 0.65rem 0.7rem; /* taller than before */
  line-height: 1.25;
  font-size: 1rem;
}
.post-type-archive-person .people-dir .results-wrapper .people-dir__search input[type=search]:focus {
  outline: 2px solid var(--wp--preset--color--orange, #C57249);
  outline-offset: -1px;
}
.post-type-archive-person .people-dir .results-wrapper .people-dir__search .people-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  line-height: 1.25;
  font-size: 1rem;
  border-radius: 6px;
  min-height: 0;
  height: auto;
}
.post-type-archive-person .people-dir .results-wrapper .people-dir__search .people-search-btn i {
  font-size: 1em;
  line-height: 1;
}
.post-type-archive-person .people-dir .results-wrapper .people-dir__search .people-search__msg {
  margin-top: 0.5rem;
  width: 100%;
  color: #8b0000; /* dark red */
  background: #fff0f0;
  border: 1px solid #f0caca;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.95rem;
}
@media (min-width: 768px) {
  .post-type-archive-person .people-dir .results-wrapper .people-dir__search .people-search__msg {
    /* Place message under the row but still within the section */
  }
  .post-type-archive-person .people-dir .results-wrapper .people-dir__search .people-search__msg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2.25rem; /* nudge as needed */
  }
}
.post-type-archive-person .people-dir .results-wrapper .people-dir__search input[aria-invalid=true] {
  outline: 2px solid #b54708;
  outline-offset: -1px;
}
.post-type-archive-person .people-dir .results-wrapper .people-dir__search .psi-tip {
  position: absolute;
  bottom: calc(100% + 8px); /* above the row */
  left: auto;
  right: 0; /* align with the button on the right */
  transform: none;
  margin-top: 0;
  max-width: 320px;
  z-index: 60;
  /* arrow: at the bottom edge of the bubble, near the right side
     (points down toward the button) */
}
.post-type-archive-person .people-dir .results-wrapper .people-dir__search .psi-tip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 12px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.12));
}
@media (max-width: 600px) {
  .post-type-archive-person .people-dir .results-wrapper .people-dir__search .psi-tip {
    right: 0.25rem;
  }
}
.post-type-archive-person .people-dir .results-wrapper .results[aria-busy=true] {
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.post-type-archive-person .people-dir .results-wrapper .pagination-wrap .people-dir__pagination {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}
.post-type-archive-person .people-dir .results-wrapper .pagination-wrap .people-dir__page-link {
  padding: 0.35rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
}
.post-type-archive-person .people-dir .results-wrapper .pagination-wrap .people-dir__page-link.is-current {
  background: var(--wp--preset--color--orange, #C57249);
  color: var(--wp--preset--color--true-white, #fff);
  border-color: var(--wp--preset--color--orange, #C57249);
}
.post-type-archive-person .people-dir .results-wrapper .pagination-wrap .people-dir__page-link.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.post-type-archive-person .people-dir .results-wrapper .pagination-wrap .people-dir__dots {
  padding: 0 0.3rem;
}

/* If you ever show multiple facet groups (e.g., post/person/project) */
.psi-facet-group {
  display: none;
}

.psi-facet-group[data-active] {
  display: block;
}

/* =========================================================
   Search page (SSR facets + results)
   Scope to body.search-results to avoid bleed
   ========================================================= */
.search-results {
  /* tokens (local to this scope) */
  /* ---- layout ---- */
  /* ===== GRID WRAPPER: sidebar + main ===== */
  /* ---- sidebar / facets ---- */
  /* ---- main column ---- */
  /* ---- tabs ---- */
  /* legacy layout if used elsewhere */
  /* small theming touch */
}
.search-results .psi-main .psi-grid img {
  height: 100px;
}
.search-results #content {
  max-width: 100%;
}
.search-results .psi-results-header {
  padding-inline: clamp(16px, 2vw, 20px);
}
.search-results .psi-results-header h1 {
  margin-bottom: 5px;
}
.search-results .psi-results-header .psi-results-summary {
  font-weight: bold;
}
.search-results .psi-search {
  margin-top: 25px;
  width: 100%;
  display: grid;
  grid-template-columns: 2fr minmax(0, 8fr); /* 25/75; allow main to shrink */
  gap: 2rem;
  align-items: start;
  padding-inline: clamp(16px, 2vw, 20px);
  /* Stack sidebar on tablets/phones */
}
.search-results .psi-search input {
  background: transparent;
  border-radius: 5px;
}
.search-results .psi-search input:focus {
  outline: 2px solid var(--wp--preset--color--orange, #c66e20);
}
@media (max-width: 960px) {
  .search-results .psi-search {
    grid-template-columns: 1fr;
  }
}
.search-results .psi-sidebar {
  min-width: 240px;
  position: sticky;
  top: 2rem;
  align-self: start;
}
@media (max-width: 960px) {
  .search-results .psi-sidebar {
    position: static;
    min-width: 0;
  }
}
.search-results .psi-sidebar .psi-form .wp-element-button,
.search-results .psi-sidebar .psi-form .button.button-secondary {
  border-radius: 8px;
}
.search-results .psi-sidebar .psi-acc {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  margin: 0 0 0.75rem;
}
.search-results .psi-sidebar .psi-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  user-select: none;
  outline: none;
}
.search-results .psi-sidebar .psi-acc summary::-webkit-details-marker {
  display: none;
}
.search-results .psi-sidebar .psi-acc summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--wp--preset--color--navy), 0.2);
  border-radius: 10px;
}
.search-results .psi-sidebar .psi-acc summary .psi-acc__chev {
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0.75;
}
.search-results .psi-sidebar .psi-acc[open] > summary .psi-acc__chev {
  transform: rotate(90deg);
  opacity: 1;
}
.search-results .psi-sidebar .psi-acc select {
  width: 92%;
  padding: 10px;
  background-color: #fff;
  border: 1px solid gray;
  border-radius: 5px;
}
.search-results .psi-sidebar .psi-acc .psi-acc__panel {
  padding: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.search-results .psi-sidebar .psi-acc .psi-acc__panel label {
  display: block;
  margin: 0.25rem 0;
}
.search-results .psi-sidebar .psi-acc .psi-acc__panel label input[type=checkbox] {
  margin-right: 0.35rem;
}
.search-results .psi-sidebar .psi-facet-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.search-results .psi-sidebar .psi-facet-actions .psi-btn-primary, .search-results .psi-sidebar .psi-facet-actions .psi-btn-secondary {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
}
.search-results .psi-sidebar .psi-facet-actions .psi-btn-primary i, .search-results .psi-sidebar .psi-facet-actions .psi-btn-secondary i {
  font-size: 16px;
  margin-right: 5px;
}
.search-results .psi-main {
  min-width: 0;
  /* ===== RESULTS GRID =====
     Base = 3 cols; person=4; project=1.
     Steps: >=1201 (lg), 961-1200 (md), <=960 (auto-fit) */
  /* Project: stay single column everywhere */
  /* Person: 4 on lg, 3 on md, auto-fit below 960 */
  /* Post/default: base 3→2→auto-fit is fine */
}
.search-results .psi-main .psi-main-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.search-results .psi-main .psi-main-search input[type=search] {
  flex: 1;
  min-width: 200px;
}
.search-results .psi-main .psi-main-search button {
  padding: 0.5rem 1.5rem;
}
.search-results .psi-main .psi-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 961px) and (max-width: 1200px) {
  .search-results .psi-main .psi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .search-results .psi-main .psi-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
.search-results .psi-main.psi-pt-project .psi-grid,
.search-results .psi-main .psi-grid[data-pt=project] {
  grid-template-columns: 1fr !important;
}
.search-results .psi-main.psi-pt-project .psi-grid .project-team a:visited,
.search-results .psi-main .psi-grid[data-pt=project] .project-team a:visited {
  color: black;
}
.search-results .psi-main.psi-pt-project .psi-grid .project-team img,
.search-results .psi-main .psi-grid[data-pt=project] .project-team img {
  height: 80px;
}
.search-results .psi-main.psi-pt-project .psi-grid .activity-banner__primary-investigator a:visited,
.search-results .psi-main .psi-grid[data-pt=project] .activity-banner__primary-investigator a:visited {
  color: black;
}
.search-results .psi-main.psi-pt-project .psi-grid .activity-banner__primary-investigator img,
.search-results .psi-main .psi-grid[data-pt=project] .activity-banner__primary-investigator img {
  height: 230px;
}
@media (min-width: 1201px) {
  .search-results .psi-main.psi-pt-person .psi-grid,
  .search-results .psi-main .psi-grid[data-pt=person] {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .search-results .psi-main.psi-pt-person .psi-grid,
  .search-results .psi-main .psi-grid[data-pt=person] {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 960px) {
  .search-results .psi-main.psi-pt-person .psi-grid,
  .search-results .psi-main .psi-grid[data-pt=person] {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
@media (min-width: 1201px) {
  .search-results .psi-main.psi-pt-post .psi-grid,
  .search-results .psi-main .psi-grid[data-pt=post] {
    grid-template-columns: repeat(3, 1fr);
  }
}
.search-results .psi-main.psi-pt-post .psi-grid .staff-member img,
.search-results .psi-main .psi-grid[data-pt=post] .staff-member img {
  height: 80px;
  width: 80px;
}
.search-results .psi-main .psi-grid img {
  max-width: 100%;
  height: 100px;
  display: block;
}
.search-results .psi-main .psi-grid img.psi-person-card__img {
  height: 100%;
}
.search-results .psi-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin: 0.75rem 0 1rem;
  flex-wrap: wrap;
}
.search-results .psi-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px 6px 0 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  border-bottom: 0;
}
.search-results .psi-tab:hover {
  background: rgba(0, 0, 0, 0.04);
}
.search-results .psi-tab.is-active {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  border-bottom-color: #fff;
  font-weight: 600;
  pointer-events: none;
}
.search-results .psi-search-section.psi-pt-person .psi-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}
.search-results .psi-search-section.psi-pt-post .psi-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.search-results .psi-search-section.psi-pt-project .psi-search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.search-results .psi-acc summary {
  color: var(--wp--preset--color--navy);
}
.search-results .psi-acc .psi-acc__panel label:hover {
  background: rgba(var(--wp--preset--color--navy), 0.04);
  border-radius: 6px;
}

/* Facet groups: only show active post_type */
.psi-facet-group {
  display: none;
}

.psi-facet-group[data-active] {
  display: block;
}

/* Let grid items shrink below their content's min width */
.search-results .psi-main .psi-grid > * {
  min-width: 0;
}

/* Make the slider itself not dictate a larger min-content width */
.search-results .psi-main .psi-grid .related-staff-container {
  min-width: 0;
  overflow: hidden;
}

/* Be conservative about what the slider can do in cards */
.search-results .psi-main .psi-grid .related-staff-container .swiper {
  max-width: 100%;
}

.search-results .related-staff-container.swiper .swiper-wrapper {
  align-items: start;
}

/* === PSI News page only ================================================== */
.psi-news-section {
  /* Grid of related-post cards */
  /* Make sure cards don't overflow their grid tracks */
  /* ----- Staff list inside each card: static vs swiper ------------------- */
  /* Static (no Swiper) layout */
  /* Swiper layout: let Swiper own sizing */
  /* Optional: tidy nav buttons inside card */
  /* Responsive columns */
}
.psi-news-section .psi-news-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.psi-news-section .related-post__item {
  min-width: 0;
}
.psi-news-section .related-post__container {
  max-width: 100%;
}
.psi-news-section .related-staff-container:not(.swiper) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.psi-news-section .related-staff-container.swiper {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.psi-news-section .related-staff-container.swiper .swiper-wrapper {
  display: flex !important;
  box-sizing: border-box;
}
.psi-news-section .related-staff-container.swiper .swiper-slide {
  width: auto;
  flex: 0 0 auto;
}
.psi-news-section .related-staff-container .swiper-button-prev,
.psi-news-section .related-staff-container .swiper-button-next {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
@media (max-width: 1024px) {
  .psi-news-section .psi-news-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .psi-news-section .psi-news-results {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Research Group single
   Mirrors search.scss grid behavior for consistent layouts
   Scope to .single-research-group to avoid bleed
   ========================================================= */
/* Force-zero padding on Research Group pages, always */
.single-research-group.separate-containers .inside-article,
.single-research-group.separate-containers .comments-area,
.single-research-group.separate-containers .page-header,
.single-research-group.separate-containers .paging-navigation,
.single-research-group.one-container .site-content,
.single-research-group .inside-page-header {
  padding: 0 !important;
}

.single-research-group {
  /* ---------- Stories & News (posts) ---------- */
  /* Works whether markup uses #related-posts-grid or .psi-grid[data-pt="post"] */
  /* 🔧 Critical: let grid items and inner carousels shrink to their column */
  /* Card visual block with background image */
  /* Staff slider INSIDE the card */
  /* ---------- Page chrome / existing sections ---------- */
  /* ===== Hero ===== */
  /* ===== Content ===== */
  /* ===== Generic grids ===== */
  /* Project: single column like search.scss */
  /* Person: 4 on lg, 3 on md, auto-fit below 960 */
}
.single-research-group .rg-stories #related-posts-grid,
.single-research-group .rg-stories .psi-grid[data-pt=post] {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* allow shrink */
}
@media (max-width: 1024px) {
  .single-research-group .rg-stories #related-posts-grid,
  .single-research-group .rg-stories .psi-grid[data-pt=post] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .single-research-group .rg-stories #related-posts-grid,
  .single-research-group .rg-stories .psi-grid[data-pt=post] {
    grid-template-columns: 1fr;
  }
}
.single-research-group .rg-stories .rg-story,
.single-research-group .rg-stories .related-post__item,
.single-research-group .rg-stories .related-staff-container {
  min-width: 0;
}
.single-research-group .related-post__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.single-research-group .related-post__container {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #0b2743; /* safe fallback if image hasn't loaded */
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9; /* consistent height */
}
.single-research-group .related-post__container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}
.single-research-group .related-post__container > div {
  position: relative;
  z-index: 1;
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.single-research-group .related-post__container h3 {
  margin: 0 0 6px;
  line-height: 1.2;
}
.single-research-group .related-post__container h3 a {
  color: #fff;
  text-decoration: none;
}
.single-research-group .related-post__container h3 a:hover {
  text-decoration: underline;
}
.single-research-group .related-post__container .related-post__date {
  font-size: 0.9rem;
  opacity: 0.9;
}
.single-research-group .related-post__item .related-staff-container.swiper {
  position: relative;
  width: 100%;
  margin-top: 8px;
  overflow: hidden; /* hide overflow while Swiper settles */
}
.single-research-group .related-post__item .related-staff-container .swiper-wrapper {
  align-items: stretch;
}
.single-research-group .related-post__item .related-staff-container .swiper-slide {
  height: auto; /* fit content */
}
.single-research-group .rg-kicker {
  font-size: 18px;
}
.single-research-group .grid-container {
  max-width: 100%;
}
.single-research-group article {
  width: 100%;
}
.single-research-group .site-content {
  padding-left: 0;
  padding-right: 0;
}
.single-research-group .research-group .rg-hero {
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 35%, rgba(0, 0, 0, 0.2) 65%, rgba(0, 0, 0, 0) 100%), var(--rg-hero) center/cover no-repeat;
  padding-top: 40px;
  padding-bottom: 40px;
}
.single-research-group .research-group .rg-hero.rg-hero--empty {
  background: #0b2743;
}
.single-research-group .research-group .rg-hero .rg-hero__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.single-research-group .research-group .rg-hero .rg-hero__title {
  margin: 0;
  line-height: 1.1;
  font-size: 56px;
}
.single-research-group .research-group .rg-content {
  max-width: 1500px;
  margin: 24px auto 60px;
  padding: 0 16px;
}
.single-research-group .rg-section {
  margin-top: 48px;
}
.single-research-group .rg-note {
  opacity: 0.85;
  font-style: italic;
  margin: 6px 0 12px;
}
.single-research-group .rg-empty {
  opacity: 0.75;
  font-style: italic;
}
.single-research-group .psi-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 961px) and (max-width: 1200px) {
  .single-research-group .psi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .single-research-group .psi-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
.single-research-group .psi-grid[data-pt=project] {
  grid-template-columns: 1fr !important;
}
.single-research-group .psi-grid[data-pt=project] .project-team a:visited {
  color: black;
}
.single-research-group .psi-grid[data-pt=project] .project-team img {
  height: 80px;
}
.single-research-group .psi-grid[data-pt=project] .activity-banner__primary-investigator a:visited {
  color: black;
}
.single-research-group .psi-grid[data-pt=project] .activity-banner__primary-investigator img {
  height: 230px;
}
@media (min-width: 1201px) {
  .single-research-group .psi-grid[data-pt=person] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
  }
}
.single-research-group .rg-section__title {
  display: inline-block;
  font-weight: bold;
  font-size: 2.5rem;
  color: var(--wp--preset--color--navy);
}
.single-research-group .rg-section__see-more {
  color: black;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  display: inline-block;
}
.single-research-group .rg-section__see-more a {
  color: #000;
  text-decoration: none;
}
.single-research-group .rg-section__see-more a:is(:hover, :focus-visible) {
  text-decoration: underline;
}
.single-research-group .rg-section__see-more a i {
  background: var(--color-orange, #c66e20);
  border-radius: 50%;
  padding: 0.35em;
  color: #fff;
  font-size: 0.95rem;
  transition: filter 0.15s ease;
}
.single-research-group .rg-section__see-more a:is(:hover, :focus-visible) i {
  filter: brightness(1.1);
}
.single-research-group .rg-more-toggle {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.single-research-group .rg-more-toggle .fa-angle-right {
  transition: transform 0.2s ease;
}
.single-research-group .rg-more-toggle.is-open .fa-angle-right {
  transform: rotate(90deg);
}
.single-research-group .rg-projects-grid .is-extra {
  display: none;
}
.single-research-group .rg-projects-grid.is-expanded .is-extra {
  display: block;
}
.single-research-group .rg-strap {
  max-width: 1500px;
  margin: 24px auto 12px;
  padding: 0 16px;
}
.single-research-group .rg-strap .rg-strap__dek {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 6px;
}
.single-research-group .rg-strap .rg-strap__para {
  margin: 0;
  max-width: 75ch;
  opacity: 0.95;
}

/* Screen-reader utility (shared) */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.single-post .content-area a {
  color: #2078C6;
}
.single-post .content-area a:visited {
  color: #2078C6;
}

.page-template-user-update-form a.acf-button {
  margin-left: 5px;
  font-size: 16px;
  padding: 8px 15px;
}

.page-template-user-update-form .site-content {
  display: block;
  margin-top: 60px;
}

#acf-user-edit button {
  border-radius: 5px;
}

.acf-button {
  border-radius: 5px;
}

.tablist button {
  max-width: 200px;
  border-radius: 0;
}

.psi-author-link {
  font-size: 16px;
}

.related-posts .section-headline {
  text-align: left;
  font-weight: bold;
  border-bottom: 3px solid var(--wp--preset--color--orange);
  display: flex;
  color: var(--wp--preset--color--navy);
  font-size: 35px;
  max-width: 780px;
}

.section-headline {
  display: flex;
  align-items: center;
}

.section-headline .toggle-button {
  font-weight: bold;
  font-size: 20px;
  margin-left: 20px;
}

.psi-toggle__icon {
  transition: transform 180ms ease;
}

.toggle-button.is-open .psi-toggle__icon {
  transform: rotate(180deg);
}

.related-projects .psi-btn-primary {
  margin-top: 50px;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.related-projects .psi-btn-primary:hover {
  background-color: #2491ff;
}

#projects-headline {
  width: 320px;
  margin: 0;
  text-align: left;
  font-weight: bold;
  border-bottom: 3px solid var(--wp--preset--color--orange);
  display: flex;
  color: var(--wp--preset--color--navy);
  font-size: 35px;
}

.seperator {
  border-bottom: 1px dashed black;
  margin: 5px auto;
}

/* Single Post Style */
.featured-image-container {
  position: relative;
}

/* Staff Directory Ninja Tables CSS */
img.table-profile-picture {
  object-fit: cover;
  height: 100px;
  width: 100px;
  border-radius: 50%;
}

/* Slick CSS Overrides */
.slick-list {
  margin: 0 25px;
}

.slick-track {
  margin: 0;
}

.slick-initialized .slick-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Press Submission Form Styling */
.project-item {
  margin: 0 0 10px 0;
}
.project-item p {
  margin: 0;
}
.project-item a {
  font-size: 1rem;
}

/* Custom User Profile Update Form Styles */
.image-uploader .show-if-value {
  position: relative;
}

.show-if-value {
  width: 25%;
}

.custom-actions a {
  cursor: pointer;
}

.upload-preview {
  width: 100%;
}

.image-uploader .show-if-value:hover .acf-actions {
  display: block;
}

.preview-icon.-pencil::before {
  content: "\f464";
}

.preview-icon::before {
  font-family: dashicons;
  display: inline-block;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
  text-decoration: inherit;
  text-transform: none;
  text-rendering: auto;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  text-align: center;
}

.preview-icon.dark {
  border-color: transparent !important;
  background: #23282d;
  color: #eee;
}

.preview-icon {
  color: #555d66;
  border-color: #b5bcc2;
  background-color: #fff;
  position: relative;
  transition: none;
  cursor: pointer;
}

.project-content {
  overflow: hidden;
}

.project-content.show-full {
  overflow: visible;
}

.project-description-show-more {
  display: block;
  margin-top: 10px;
  cursor: pointer;
  color: blue;
  text-align: center;
}

.project-description-show-more:focus,
.project-description-show-more:active {
  color: blue;
}

.project-description-text.show {
  height: 220px;
  overflow: hidden;
}

.project-description-text.not-show {
  overflow: visible;
}

#advanced-search-form {
  display: grid;
  grid-template-rows: auto 0px; /* Adjusted to accommodate the header */
  padding: 20px 20px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  background-color: #f0f0f0;
  border-radius: 5px;
  transition: grid-template-rows 250ms;
  cursor: pointer;
}

#advanced-search-form div:last-child {
  overflow: hidden;
}

#advanced-search-form.expanded {
  grid-template-rows: auto 200px; /* Make sure both rows adjust as needed when expanded */
}

#search-header {
  font-size: 16px; /* Example styling for the header */
  font-weight: bold;
  margin-bottom: 10px; /* Space between the header and the form inputs */
  display: flex;
  align-items: center;
  gap: 10px; /* Space between icon and text */
}

.fa-search { /* Style your icon accordingly */
  color: #333; /* Example color */
}

.search-inputs {
  width: 570px;
  cursor: auto;
}

.search-inputs input[name=search_keyword] {
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  margin-left: 5px;
  width: 63%;
}

.search-inputs button[type=submit],
.search-inputs button[type=button] {
  width: 100px;
  border-radius: 5px;
}

.search-inputs .search-dates {
  display: flex;
  margin-top: 20px;
  margin-bottom: 20px;
  cursor: auto;
}

.search-inputs .search-dates div {
  display: flex;
  flex-direction: column;
  margin-left: 45px;
}

#toggleIcon {
  transition: transform 250ms ease-in-out; /* Ensure the transition is on the main class */
}

.icon-rotated {
  transform: rotate(180deg); /* Rotates the icon 180 degrees */
  transition: transform 250ms ease-in-out; /* Smooth transition for rotation */
}

#clearButton {
  margin-left: 20px;
}

.home-post .gb-post-template {
  position: relative;
}

.home-post .gb-post-template::before {
  content: "";
  background-color: #112141;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: inherit;
  border-radius: 5px 5px 0 0;
  pointer-events: none;
  opacity: 0.65;
}

.our-people-filter-by-category a.current {
  font-weight: bold;
  text-decoration: underline;
  color: #0073aa;
}

.custom-shadow {
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
}

.separate-containers .inside-right-sidebar, .separate-containers .inside-left-sidebar {
  margin-top: 120px;
  margin-bottom: 0px;
}

.widget_dynamic_category_recent_posts {
  margin-top: 40px;
}
.widget_dynamic_category_recent_posts .recent-posts {
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 3px;
  padding: 15px;
}
.widget_dynamic_category_recent_posts .recent-posts li {
  margin-bottom: 1rem;
}
.widget_dynamic_category_recent_posts .recent-posts a {
  text-decoration: none;
  color: var(--wp--preset--color--navy);
  font-weight: bold;
}
.widget_dynamic_category_recent_posts .recent-posts a:hover {
  text-decoration: underline;
}

.widget-area .widget {
  padding: 30px;
}

.widget-title {
  font-size: 1.75rem;
  margin-bottom: 5px;
  color: var(--wp--preset--color--orange);
}

.homepage-hero-gradient,
.gradient-image,
.gradient-image-light {
  position: relative;
  overflow: hidden;
}

.gradient-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-radius: 5px;
}

.gradient-image-light::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-radius: 5px;
}

/* Overlay: top fade + slight left-darkening to match the photo */
.homepage-hero-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0, rgba(0, 0, 0, 0) 240px), linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 50%);
}

.homepage-hero-gradient > * {
  position: relative;
}

.site-search input {
  color: white;
  background: transparent;
  border-radius: 5px;
}
.site-search input:focus {
  outline: 2px solid var(--wp--preset--color--orange, #c66e20);
}

.annual-report-pdf-download-btn a:last-child {
  border-radius: 5px;
  background-color: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--true-white);
}

/* base state */
.sub-nav-animate .gb-menu-link > .gb-submenu-toggle .gb-submenu-toggle-icon {
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.22s ease;
}

/* open state – works whether aria-expanded is on the <a> or the <span> */
.sub-nav-animate .gb-menu-link[aria-expanded=true] > .gb-submenu-toggle .gb-submenu-toggle-icon,
.sub-nav-animate .gb-menu-link > .gb-submenu-toggle[aria-expanded=true] .gb-submenu-toggle-icon {
  transform: rotate(180deg);
}

/* (optional) also flip when using hover-to-open on desktop */
.sub-nav-animate .gb-menu.gb-menu--hover > li:hover > a.gb-menu-link > .gb-submenu-toggle .gb-submenu-toggle-icon {
  transform: rotate(180deg);
}

.gb-menu > li:has(> ul.sub-nav-animate) > a.gb-menu-link > .gb-submenu-toggle[aria-expanded=true] {
  color: var(--wp--preset--color--orange, #c66e20);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sub-nav-animate .gb-submenu-toggle .gb-submenu-toggle-icon {
    transition: none;
  }
}
.single-post .featured-image {
  position: relative;
}

.single-post .featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1; /* above the image, below any overlaid text */
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.7) 100%);
}

.wp-block-social-links {
  margin-bottom: 0px;
}

#menu-item-40342 > a:nth-child(1) > span:nth-child(1) {
  padding-bottom: 0;
}

#menu-item-40342 > a:nth-child(1) > span:nth-child(1) svg {
  padding-bottom: 0;
}

#menu-item-40342 > a:nth-child(1) {
  display: flex !important;
}

.psi-workshop__image {
  width: 300px;
  margin-right: 25px;
}

.psi-workshop__image img {
  object-fit: cover;
  border-radius: 5px;
  width: 100%;
}

.psi-workshops {
  display: grid;
}

/* === PSI full-screen loader overlay === */
#psi-loading-overlay {
  position: fixed;
  inset: 0;
  display: none; /* toggled via .show */
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  z-index: 999999;
}

#psi-loading-overlay.show {
  display: flex;
}

#psi-loading-overlay .psi-box {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font: 500 15px/1.3 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #111;
  display: flex;
  align-items: center;
  gap: 12px;
}

#psi-loading-overlay .psi-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #e6e6e6;
  border-top-color: #0073aa; /* WP blue; adjust if you like */
  border-radius: 50%;
  animation: psi-spin 0.8s linear infinite;
}

@keyframes psi-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #psi-loading-overlay .psi-spinner {
    animation: none;
    border-top-color: #333;
  }
}
@media (max-width: 768px) {
  .separate-containers .inside-article {
    padding-top: 0px;
  }
  .wp-block-social-links {
    margin-bottom: 15px;
  }
}
@media (max-width: 530px) {
  .psi-slider .psi-slide-image {
    height: 250px;
    border-radius: 6px;
  }
}
/* ======================================================================
   PSI Navigation Styles (SCSS, no mixins)
   - Primary header nav (GeneratePress) unchanged
   - Secondary: classic widget menus (sidebar/footer)
   - Secondary: Gutenberg Navigation block in content/sidebars/footers
   - Palette from theme.json (navy/orange) + SCSS variables
   ====================================================================== */
/* -------------------------------
   1) Primary nav (GeneratePress header menu)
   ------------------------------- */
.main-navigation .main-nav ul li > a {
  color: var(--wp--preset--color--soft-white);
  font-family: var(--wp--preset--font-family--roboto);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-navigation .main-nav ul li > a:hover,
.main-navigation .main-nav ul li > a:focus,
.main-navigation .main-nav ul li.sfHover > a {
  /* color: $color-true-white; */
}

/* Submenu panel background */
.main-navigation .main-nav ul ul {
  background-color: var(--wp--preset--color--black);
}

/* Submenu links */
.main-navigation .main-nav ul ul li > a {
  color: var(--wp--preset--color--soft-white);
  background-color: var(--wp--preset--color--black);
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Submenu hover */
.main-navigation .main-nav ul ul li > a:hover {
  color: var(--wp--preset--color--true-white);
  background-color: var(--wp--preset--color--black); /* Keep bg consistent for now */
}

/* -------------------------------
   2) Secondary / classic widget menus (sidebar/footer)
   ------------------------------- */
.widget_nav_menu ul li a,
.sidebar .menu li a,
.footer-widgets .menu li a,
.inside-right-sidebar .menu li a,
.inside-left-sidebar .menu li a {
  color: var(--wp--preset--color--navy);
  font-family: var(--wp--preset--font-family--roboto);
  text-decoration: none;
  transition: color 0.2s ease;
}

.widget_nav_menu ul li a:hover,
.sidebar .menu li a:hover,
.footer-widgets .menu li a:hover,
.inside-right-sidebar .menu li a:hover,
.inside-left-sidebar .menu li a:hover {
  color: var(--wp--preset--color--orange);
}

.widget_nav_menu ul li.current-menu-item > a,
.sidebar .menu li.current-menu-item > a,
.footer-widgets .menu li.current-menu-item > a,
.inside-right-sidebar .menu li.current-menu-item > a,
.inside-left-sidebar .menu li.current-menu-item > a {
  color: var(--wp--preset--color--orange);
  font-weight: 600;
  pointer-events: none;
  text-decoration: none;
}

/* -------------------------------
   3) Gutenberg Navigation block (menu-agnostic, not primary header)
   ------------------------------- */
/* Base links = navy */
.entry-content nav.wp-block-navigation a.wp-block-navigation-item__content,
.wp-block-post-content nav.wp-block-navigation a.wp-block-navigation-item__content,
.sidebar nav.wp-block-navigation a.wp-block-navigation-item__content,
.footer-widgets nav.wp-block-navigation a.wp-block-navigation-item__content,
.inside-right-sidebar nav.wp-block-navigation a.wp-block-navigation-item__content,
.inside-left-sidebar nav.wp-block-navigation a.wp-block-navigation-item__content {
  color: var(--wp--preset--color--navy);
  font-family: var(--wp--preset--font-family--roboto);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 0.35rem 0.5rem;
}

/* Hover / focus = orange */
.entry-content nav.wp-block-navigation a.wp-block-navigation-item__content:hover,
.entry-content nav.wp-block-navigation a.wp-block-navigation-item__content:focus,
.wp-block-post-content nav.wp-block-navigation a.wp-block-navigation-item__content:hover,
.wp-block-post-content nav.wp-block-navigation a.wp-block-navigation-item__content:focus,
.sidebar nav.wp-block-navigation a.wp-block-navigation-item__content:hover,
.sidebar nav.wp-block-navigation a.wp-block-navigation-item__content:focus,
.footer-widgets nav.wp-block-navigation a.wp-block-navigation-item__content:hover,
.footer-widgets nav.wp-block-navigation a.wp-block-navigation-item__content:focus,
.inside-right-sidebar nav.wp-block-navigation a.wp-block-navigation-item__content:hover,
.inside-right-sidebar nav.wp-block-navigation a.wp-block-navigation-item__content:focus,
.inside-left-sidebar nav.wp-block-navigation a.wp-block-navigation-item__content:hover,
.inside-left-sidebar nav.wp-block-navigation a.wp-block-navigation-item__content:focus {
  color: var(--wp--preset--color--orange);
  text-decoration: none;
}

/* Current item = orange + disabled */
.entry-content nav.wp-block-navigation li.current-menu-item > a.wp-block-navigation-item__content,
.entry-content nav.wp-block-navigation a.wp-block-navigation-item__content[aria-current=page],
.wp-block-post-content nav.wp-block-navigation li.current-menu-item > a.wp-block-navigation-item__content,
.wp-block-post-content nav.wp-block-navigation a.wp-block-navigation-item__content[aria-current=page],
.sidebar nav.wp-block-navigation li.current-menu-item > a.wp-block-navigation-item__content,
.sidebar nav.wp-block-navigation a.wp-block-navigation-item__content[aria-current=page],
.footer-widgets nav.wp-block-navigation li.current-menu-item > a.wp-block-navigation-item__content,
.footer-widgets nav.wp-block-navigation a.wp-block-navigation-item__content[aria-current=page],
.inside-right-sidebar nav.wp-block-navigation li.current-menu-item > a.wp-block-navigation-item__content,
.inside-right-sidebar nav.wp-block-navigation a.wp-block-navigation-item__content[aria-current=page],
.inside-left-sidebar nav.wp-block-navigation li.current-menu-item > a.wp-block-navigation-item__content,
.inside-left-sidebar nav.wp-block-navigation a.wp-block-navigation-item__content[aria-current=page] {
  color: var(--wp--preset--color--orange);
  font-weight: 600;
  pointer-events: none;
  text-decoration: none;
}

/* Vertical layout spacing */
.entry-content nav.wp-block-navigation.is-vertical .wp-block-navigation__container,
.wp-block-post-content nav.wp-block-navigation.is-vertical .wp-block-navigation__container,
.sidebar nav.wp-block-navigation.is-vertical .wp-block-navigation__container,
.footer-widgets nav.wp-block-navigation.is-vertical .wp-block-navigation__container,
.inside-right-sidebar nav.wp-block-navigation.is-vertical .wp-block-navigation__container,
.inside-left-sidebar nav.wp-block-navigation.is-vertical .wp-block-navigation__container {
  row-gap: 0.25rem;
}

/* Responsive / off-canvas container */
.entry-content nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content,
.wp-block-post-content nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content,
.sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content,
.footer-widgets nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content,
.inside-right-sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content,
.inside-left-sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content {
  color: var(--wp--preset--color--navy);
}

.entry-content nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:hover,
.entry-content nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:focus,
.wp-block-post-content nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:hover,
.wp-block-post-content nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:focus,
.sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:hover,
.sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:focus,
.footer-widgets nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:hover,
.footer-widgets nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:focus,
.inside-right-sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:hover,
.inside-right-sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:focus,
.inside-left-sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:hover,
.inside-left-sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content:focus {
  color: var(--wp--preset--color--orange);
}

.entry-content nav.wp-block-navigation .wp-block-navigation__responsive-container li.current-menu-item > a.wp-block-navigation-item__content,
.entry-content nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content[aria-current=page],
.wp-block-post-content nav.wp-block-navigation .wp-block-navigation__responsive-container li.current-menu-item > a.wp-block-navigation-item__content,
.wp-block-post-content nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content[aria-current=page],
.sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container li.current-menu-item > a.wp-block-navigation-item__content,
.sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content[aria-current=page],
.footer-widgets nav.wp-block-navigation .wp-block-navigation__responsive-container li.current-menu-item > a.wp-block-navigation-item__content,
.footer-widgets nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content[aria-current=page],
.inside-right-sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container li.current-menu-item > a.wp-block-navigation-item__content,
.inside-right-sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content[aria-current=page],
.inside-left-sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container li.current-menu-item > a.wp-block-navigation-item__content,
.inside-left-sidebar nav.wp-block-navigation .wp-block-navigation__responsive-container a.wp-block-navigation-item__content[aria-current=page] {
  color: var(--wp--preset--color--orange);
  font-weight: 600;
  pointer-events: none;
}

/* Tweakables */
:root {
  --submenu-underline-color: var(--wp--preset--color--orange, #c66e20);
  --submenu-underline-thickness: 2px; /* "small border" */
  --underline-right-gap: 10px;
  --underline-left-gap: 15px;
}

/* Animated underline (from left) */
.sub-nav-animate .gb-sub-menu .gb-menu-link::after {
  content: "";
  position: absolute;
  left: var(--underline-left-gap);
  bottom: 0;
  right: var(--underline-right-gap);
  height: var(--submenu-underline-thickness); /* thickness */
  background: var(--wp--preset--color--orange, #c66e20);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  color: var(--wp--preset--color--orange);
}

/* Target submenu links inside your GB nav */
.sub-nav-animate .gb-sub-menu .gb-menu-link {
  width: auto !important;
  flex: 0 0 auto; /* if a flex rule leaks in */
  white-space: nowrap; /* avoid wrapping mid-word */
  text-decoration: none;
  padding-inline: 0; /* optional: ensures no extra width from padding */
  position: relative;
}

.gb-sub-menu .gb-menu-link {
  z-index: 2;
}

.gb-sub-menu .menu-item {
  z-index: 2;
}

/* Reveal on hover/focus */
.sub-nav-animate .gb-sub-menu .gb-menu-link:hover::after {
  transform: scaleX(1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sub-nav-animate * {
    transition: none !important;
    animation: none !important;
  }
}
/* Top-level items with NO submenu → same underline on hover/focus */
.sub-nav-animate .gb-menu > li:not(.menu-item-has-children) > a.gb-menu-link {
  position: relative; /* don't change existing padding */
  text-decoration: none;
}

.sub-nav-animate .gb-menu > li:not(.menu-item-has-children) > a.gb-menu-link:hover::after {
  content: "";
  position: absolute;
  /* Use your existing gaps so it matches submenu styling */
  left: var(--underline-left-gap);
  right: var(--underline-right-gap);
  bottom: 0;
  height: var(--submenu-underline-thickness);
  background: var(--submenu-underline-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.sub-nav-animate .gb-menu > li:not(.menu-item-has-children) > a.gb-menu-link:hover::after,
.sub-nav-animate .gb-menu > li:not(.menu-item-has-children) > a.gb-menu-link:focus-visible::after {
  transform: scaleX(1);
}

/* Keep underline for active top-level link (no submenu) */
.sub-nav-animate .gb-menu > li:not(.menu-item-has-children).current-menu-item > a.gb-menu-link::after,
.sub-nav-animate .gb-menu > li:not(.menu-item-has-children).current_page_item > a.gb-menu-link::after {
  transform: scaleX(1);
}

#menu-item-31645 > a:nth-child(1) {
  padding-bottom: 5px;
  padding-right: 25px;
}

.psi-person-card {
  border: 1px solid #ccc;
  border-radius: 12px;
  text-align: center;
  background: #fff;
  /* &__name {

  } */
  /* &__location {
      margin-bottom: 10px;
  } */
}
.psi-person-card a {
  color: black;
  text-decoration: none;
}
.psi-person-card img {
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  height: 250px;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}
.psi-person-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.psi-person-card__body > * {
  max-width: 240px;
}
.psi-person-card__position {
  margin-bottom: 5px;
}

/* Load more posts via AJAX on Press Releases and Cover Stories pages */
#load-more-posts-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  text-align: left;
}
#load-more-posts-container .load-more-item {
  min-width: 0;
}
#load-more-posts-container .load-more-item .load-more-item-container {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  position: relative;
  /* Category text */
}
#load-more-posts-container .load-more-item .load-more-item-container::after {
  content: "";
  background-image: linear-gradient(180deg, rgba(54, 54, 54, 0.09), #0e0e0e);
  z-index: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-category {
  display: inline-block;
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 500;
  padding: 10px;
  margin-bottom: 0em;
  border-top-left-radius: 5px;
  color: #ffffff;
  /* If category = covery story make the category link green */
  /* If category = press release make the category link blue */
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-category a:hover {
  cursor: pointer;
  color: #e6e6e6;
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-category.cs {
  background-color: var(--global-color-7);
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-category.pr {
  background-color: var(--global-light-blue);
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-category .load-more-category__link {
  color: #ffffff;
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-post-content-container {
  display: flex;
  align-items: end;
  min-height: 400px;
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-post-content-container .load-more-inside-container {
  padding: 40px 30px;
  position: relative;
  z-index: 2;
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-post-content-container .load-more-inside-container .load-more-headline-time {
  margin-bottom: 5px;
  font-size: 14px;
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-post-content-container .load-more-inside-container .load-more-headline-time time {
  font-size: 14px;
  color: #ffffff;
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-post-content-container .load-more-inside-container .load-more-title {
  margin-bottom: 15px;
  line-height: 33.6px;
  font-size: 28px;
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-post-content-container .load-more-inside-container .load-more-title a {
  font-size: 28px;
  margin-bottom: 15px;
  color: #ffffff;
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-post-content-container .load-more-inside-container .load-more-title a:hover {
  color: #e6e6e6;
}
#load-more-posts-container .load-more-item .load-more-item-container .load-more-post-content-container .load-more-inside-container .load-more-excerpt {
  font-size: 17px;
  color: #ffffff;
}

#load-more-posts-button {
  display: block;
  margin-top: 25px;
  margin-left: auto;
  margin-right: auto;
  background-color: #444444;
  border-radius: 5px;
  cursor: pointer;
  padding: 15px 20px;
}
#load-more-posts-button i {
  padding-left: 0.5em;
}

/* .load-more-listing {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 20px;
} */
@media (max-width: 1025px) {
  .load-more-listing {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .load-more-listing {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 660px) {
  .search-inputs input[name=search_keyword] {
    margin: 0;
    display: block;
    width: 100%;
  }
  .search-inputs {
    width: auto;
    max-width: 100%;
  }
  .search-inputs .search-dates {
    flex-direction: column;
    justify-content: center;
    align-items: start;
  }
  .search-inputs .search-dates div {
    margin: 0;
    margin-top: 20px;
  }
  #advanced-search-form div:last-child {
    overflow: scroll;
  }
}
.loading-dual-ring {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  margin-top: 10px;
}
.loading-dual-ring::after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #444444;
  border-color: #444444 transparent #444444 transparent;
  animation: loading-dual-ring 1.2s linear infinite;
}

.loader-container {
  text-align: center;
}

.project-loader-container {
  text-align: center;
}

@keyframes loading-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* ==== Related Posts Grid ================================================= */
.related-posts {
  text-align: center;
  /* Responsive columns */
}
.related-posts #related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  /* prevent images or flex from stretching tracks */
}
.related-posts #related-posts-grid > * {
  min-width: 0;
}
@media (max-width: 980px) {
  .related-posts #related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .related-posts #related-posts-grid {
    grid-template-columns: 1fr;
  }
}
.related-posts .psi-btn-primary {
  margin-top: 25px;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.related-posts .psi-btn-primary:hover {
  background-color: #2491ff;
}

/* ==== Each Related Post Card ============================================ */
.related-post__item {
  text-align: left;
  /* Gentle hover lift */
  /* &:hover .related-post__container {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  } */
}
.related-post__item .related-post__container {
  position: relative;
  min-height: 400px;
  background: center/cover no-repeat;
  border-radius: 8px 8px 0 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  /* Gradient overlay: top -> bottom (light to strong) */
  /* ensure text/content sits above overlay */
}
.related-post__item .related-post__container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  /* tweak stops to taste */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.7) 100%);
}
.related-post__item .related-post__container > * {
  position: relative;
  z-index: 1;
}
.related-post__item .related-post__container .related-post__category,
.related-post__item .related-post__container .related-post__date,
.related-post__item .related-post__container h3 {
  position: relative;
  padding: 0 30px;
  margin-bottom: 20px;
}
.related-post__item .related-post__container h3 {
  max-width: 75%;
  margin-bottom: 10px;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  /* optional: clamp long titles */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-post__item .related-post__container h3 a {
  color: #fff;
  text-decoration: none;
}
.related-post__item .related-post__container h3 a:hover {
  text-decoration: underline;
}
.related-post__item .related-post__container .related-post__date {
  opacity: 0.9;
}
.related-post__item .related-post__container .related-post__category svg,
.related-post__item .related-post__container .related-post__date svg {
  margin-right: 6px;
}

/* ==== Related Staff ====================================================== */
.related-staff-container {
  display: flex;
  justify-content: space-evenly;
  background: #f0f0f0;
  border-radius: 0 0 5px 5px;
  padding: 15px;
  position: relative;
  /* ---------------------- Slider Version ---------------------- */
}
.related-staff-container .staff-member {
  max-width: 150px;
}
.related-staff-container .staff-member a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  color: black;
}
.related-staff-container .staff-member a:visited {
  color: black;
}
.related-staff-container .staff-member a:hover {
  text-decoration: underline;
}
.related-staff-container .staff-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}
.related-staff-container .staff-member span {
  font-size: 14px;
  line-height: 16px;
  margin-top: 5px;
}
.related-staff-container.swiper {
  width: 100%;
  overflow: hidden;
  /* navigation arrows */
}
.related-staff-container.swiper .swiper-wrapper {
  align-items: center;
}
.related-staff-container.swiper .swiper-slide {
  display: flex;
  justify-content: center;
}
.related-staff-container.swiper .swiper-button-prev,
.related-staff-container.swiper .swiper-button-next {
  width: 32px;
  height: 32px;
  padding: 0;
  color: #000;
  background: transparent;
  transform: scale(1);
  transition: transform 0.1s ease, opacity 0.1s ease;
}
.related-staff-container.swiper .swiper-button-prev::after,
.related-staff-container.swiper .swiper-button-next::after {
  font-size: 16px;
}
.related-staff-container.swiper .swiper-button-prev:hover,
.related-staff-container.swiper .swiper-button-next:hover {
  transform: scale(1.25);
}
.related-staff-container.swiper .swiper-button-prev {
  left: -1px;
}
.related-staff-container.swiper .swiper-button-next {
  right: -1px;
}

.widget .related-staff-container {
  flex-direction: column;
  background: transparent;
  padding: 15px;
  overflow-y: scroll;
  max-height: 590px;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 3px;
}
.widget .related-staff-container .staff-member {
  margin-bottom: 15px;
  max-width: 100%;
}
.widget .related-staff-container .staff-member a {
  display: flex;
  flex-direction: row;
}
.widget .related-staff-container .staff-member a .staff-info {
  margin-left: 15px;
  max-width: 160px;
}
.widget .related-staff-container .staff-member a .staff-info .staff-name {
  font-size: 16px;
  font-weight: bold;
}
.widget .related-staff-container .staff-member a .staff-info .staff-role {
  font-size: 14px;
}

.psi-slider .swiper-wrapper .swiper-slide .psi-slide-content .psi-slide-text .related-users-wrapper .related-staff-container {
  background: transparent;
}

.activity-banner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 300px;
  margin-bottom: 50px;
  margin-top: 25px;
}

.activity-banner .project-image-container img {
  max-height: 300px;
}

.activity-banner__primary-investigator {
  border-left: 1px dashed rgb(34, 34, 34);
  border-right: 1px dashed rgb(34, 34, 34);
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.activity-banner__primary-investigator h4 {
  text-align: center;
}
.activity-banner__primary-investigator a {
  text-align: center;
  color: black;
}
.activity-banner__primary-investigator a:visited {
  color: black;
}
.activity-banner__primary-investigator a:hover {
  text-decoration: underline;
}

.activity-banner__primary-investigator h4 {
  margin-bottom: 5px;
  font-size: 18px;
}

.activity-banner__primary-investigator a {
  text-decoration: none;
}

.activity-banner__primary-investigator img {
  height: 230px;
  width: 230px;
  object-fit: cover;
  border-radius: 50%;
}

.activity-banner__primary-investigator p {
  margin: 0;
  font-size: 16px;
}

.activity-banner__content {
  margin: 0 15px;
}
.activity-banner__content a:visited {
  color: black;
}
.activity-banner__content a:hover {
  text-decoration: underline;
}

.activity-banner__content h3 {
  font-size: 20px;
  max-width: 280px;
  text-align: left;
}

.activity-banner__content h4 {
  font-size: 16px;
  margin-bottom: 5px;
  text-align: left;
}

.activity-banner__content h3 a {
  font-size: 22px;
  text-decoration: none;
  color: black;
  text-align: left;
}

.activity-banner__content a {
  color: black;
}

.activity-banner .project-image {
  border-radius: 5px;
  height: auto !important;
}

.activity-banner .project-team {
  text-align: center;
}

.activity-banner .project-team h4 {
  margin-bottom: 5px;
  font-size: 18px;
}

.activity-banner .project-team a {
  flex-direction: initial;
  justify-content: start;
  margin-bottom: 10px;
}
.activity-banner .project-team a:visited {
  color: black;
}
.activity-banner .project-team a:hover {
  text-decoration: underline;
}

.activity-banner .project-team img {
  margin-left: 50px;
  height: 80px;
  width: 80px;
}

.activity-banner .project-team span {
  margin-left: 15px;
}

.activity-banner.institutional-pi .activity-banner__primary-investigator img {
  height: 160px;
  width: 160px;
}

.external-partners {
  margin-top: 20px;
}

.external-partners__list {
  list-style: none;
  margin: 0;
}

.activity-banner .project-team__list {
  list-style: none;
}

.project-team-member-container {
  overflow-y: scroll;
  height: auto;
  max-height: 270px;
}
.project-team-member-container .staff-member {
  flex: 0 0 auto;
  max-width: 300px;
  text-align: center;
}
.project-team-member-container .staff-member a, .project-team-member-container .staff-member div, .project-team-member-container .staff-member p {
  flex-direction: initial;
  justify-content: start;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
}
.project-team-member-container .staff-member a {
  color: black;
}
.project-team-member-container .staff-member .pte-member {
  display: block;
  text-align: left;
  max-width: 200px;
  margin: 0 auto;
  margin-bottom: 10px;
  margin-top: 20px;
}
.project-team-member-container .staff-member p {
  margin: 0;
}
.project-team-member-container .staff-member img {
  margin-left: 50px;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.project-team-member-container .staff-member span {
  margin-left: 15px;
  text-align: left;
}

@media screen and (max-width: 958px) {
  .activity-banner {
    height: auto;
    grid-row-gap: 10px;
  }
  .activity-banner__primary-investigator {
    grid-column: span 2;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .activity-banner__primary-investigator .seperator {
    width: 100%;
  }
  .activity-banner__primary-investigator p {
    max-width: 260px;
  }
  .activity-banner__content {
    grid-column: span 2;
    margin: 0;
  }
  .activity-banner .project-image-container {
    grid-column: span 2;
    text-align: center;
  }
  .activity-banner .project-image {
    height: 300px;
  }
  .activity-banner .project-team {
    height: auto;
    grid-column: span 2;
  }
  .activity-banner .project-team h4 {
    text-align: left;
  }
  .activity-banner .project-team .staff-member .pte-member {
    margin-left: 0;
  }
}
@media screen and (max-width: 745px) {
  .project-meta-container .project-meta:last-child {
    margin-left: 0;
    margin-top: 10px;
  }
  .activity-banner {
    grid-template-columns: 1fr;
    height: auto;
    grid-gap: 10px;
  }
  .activity-banner__content {
    text-align: center;
  }
  .activity-banner__content h3 {
    max-width: none;
    margin-bottom: 10px;
  }
  .activity-banner__content h4 {
    text-align: center;
  }
  .activity-banner .project-team {
    height: auto;
    text-align: left;
  }
  .activity-banner .project-team img {
    margin: 0;
  }
  #load-more-posts-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media screen and (max-width: 540px) {
  .pi-container img {
    height: 125px;
    width: 125px;
  }
  .project-info-container {
    margin-left: 25px;
  }
  .project-info-container h1 {
    font-size: 25px;
  }
  .project-info-container h3 {
    font-size: 18px;
  }
  .project-meta {
    font-size: 15px;
  }
  .project-meta-container .project-meta:last-child {
    margin-left: 0;
    margin-top: 10px;
  }
  .activity-banner__content {
    border-bottom: 1px dashed black;
    padding-bottom: 15px;
  }
  .activity-banner__content a {
    font-size: 16px;
    color: black;
  }
  .activity-banner .project-team h4 {
    text-align: center;
  }
  .activity-banner .project-team-member-container .staff-member {
    margin-left: 100px;
    margin-right: auto;
  }
}
button,
.gform_button,
input.gform_button:is([type=button], [type=reset], [type=submit]) {
  display: inline-block;
  max-width: 140px;
  font-family: "Walbaum Display", serif;
  padding: 10px 20px;
  margin-top: 0;
  border-radius: 5px;
  background-color: var(--wp--preset--color--navy, #022d56);
  color: #ffffff;
  text-decoration: none;
  line-height: 1.6;
  font-size: 18px;
}

.wp-block-search.psi-btn-primary .wp-block-search__button,
.wp-block-search__inside-wrapper.psi-btn-primary .wp-block-search__button {
  display: inline-flex;
  max-width: 140px;
  font-family: Libre Baskerville, serif;
  padding: 10px 20px;
  margin-top: 0;
  border-radius: 5px;
  background-color: var(--wp--preset--color--navy, #022d56);
  color: #ffffff;
  text-decoration: none;
  line-height: 1.6;
}

.wp-block-search.psi-btn-secondary .wp-block-search__button,
.wp-block-search__inside-wrapper.psi-btn-secondary .wp-block-search__button {
  display: inline-flex;
  max-width: 140px;
  font-family: Libre Baskerville, serif;
  padding: 10px 20px;
  margin-top: 0;
  border-radius: 5px;
  background-color: var(--wp--preset--color--orange, #C57249);
  color: #ffffff;
  text-decoration: none;
  line-height: 1.6;
}

.psi-btn-primary {
  display: inline-block;
  max-width: 140px;
  font-family: "Walbaum Display", serif;
  padding: 10px 20px;
  margin-top: 0;
  border-radius: 5px;
  background-color: var(--wp--preset--color--navy, #022d56);
  color: #ffffff;
  text-decoration: none;
  line-height: 1.6;
  font-size: 18px;
}

.psi-btn-secondary {
  display: inline-block;
  max-width: 140px;
  font-family: "Walbaum Display", serif;
  padding: 10px 20px;
  margin-top: 0;
  border-radius: 5px;
  background-color: var(--wp--preset--color--orange, #C57249);
  color: #ffffff;
  text-decoration: none;
  line-height: 1.6;
  font-size: 18px;
}

/* Containers */
.pagination,
.wp-block-query-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

/* List mode (paginate_links type="list" or Query block list) */
.pagination ul.page-numbers,
.wp-block-query-pagination ul.page-numbers,
.wp-block-query-pagination-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Items (works for list, plain, and Query block) */
.pagination a.page-numbers,
.pagination span.page-numbers,
.wp-block-query-pagination a.page-numbers,
.wp-block-query-pagination span.page-numbers,
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: #fff;
  color: var(--wp--preset--color--navy, #022d56);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease, filter 0.15s ease;
}

/* Hover / focus: orange outline (no fill) */
.pagination a.page-numbers:hover,
.wp-block-query-pagination a.page-numbers:hover,
.wp-block-query-pagination-numbers a:hover,
.pagination a.page-numbers:focus-visible,
.wp-block-query-pagination a.page-numbers:focus-visible,
.wp-block-query-pagination-numbers a:focus-visible {
  border-color: var(--wp--preset--color--orange, #C57249);
  box-shadow: 0 0 0 2px rgba(197, 114, 73, 0.25);
  filter: brightness(0.98);
  outline: none;
}

/* Active/current page */
.pagination span.page-numbers.current,
.wp-block-query-pagination span.page-numbers.current,
.wp-block-query-pagination-numbers .current {
  background: var(--wp--preset--color--navy, #022d56);
  border-color: var(--wp--preset--color--navy, #022d56);
  color: #fff;
  cursor: default;
  box-shadow: none;
}

/* Prev/next: same styling as numbers (no orange fill) */
/* Ellipsis (…) */
.pagination .page-numbers.dots,
.wp-block-query-pagination .page-numbers.dots,
.wp-block-query-pagination-numbers .dots {
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  color: var(--wp--preset--color--navy, #022d56);
  pointer-events: none;
}

/* Disabled state (if output by block/theme) */
.pagination .page-numbers[aria-disabled=true],
.wp-block-query-pagination .page-numbers[aria-disabled=true] {
  opacity: 0.45;
  pointer-events: none;
}

/* Compact modifier (optional) */
.pagination.is-compact .page-numbers, .pagination.is-compact .page-numbers a, .pagination.is-compact .page-numbers span, .pagination.is-compact .wp-block-query-pagination-numbers a, .pagination.is-compact .wp-block-query-pagination-numbers span,
.wp-block-query-pagination.is-compact .page-numbers,
.wp-block-query-pagination.is-compact .page-numbers a,
.wp-block-query-pagination.is-compact .page-numbers span,
.wp-block-query-pagination.is-compact .wp-block-query-pagination-numbers a,
.wp-block-query-pagination.is-compact .wp-block-query-pagination-numbers span {
  min-width: 34px;
  height: 34px;
  padding: 0 0.6rem;
  border-radius: 5px;
}

/* Align helpers (optional) */
.pagination.is-left,
.wp-block-query-pagination.is-left {
  justify-content: flex-start;
}

.pagination.is-right,
.wp-block-query-pagination.is-right {
  justify-content: flex-end;
}

/* Mobile tweak */
@media (max-width: 480px) {
  .pagination a.page-numbers,
  .pagination span.page-numbers,
  .wp-block-query-pagination a.page-numbers,
  .wp-block-query-pagination span.page-numbers,
  .wp-block-query-pagination-numbers a,
  .wp-block-query-pagination-numbers span {
    min-width: 34px;
    height: 34px;
    padding: 0 0.6rem;
  }
}
/* === Flickity carousel (PSI) — spacing + smoother fade === */
.rg-carousel--flickity {
  /* Stronger bottom gradient for title readability */
  /* Edge gradient (slightly stronger) */
  /* If user prefers less motion, kill the fade animation too */
  /* Responsive media heights + optional width tweaks */
}
.rg-carousel--flickity .flickity-slider {
  will-change: transform;
}
.rg-carousel--flickity .carousel-cell {
  width: 50%;
  margin-right: clamp(12px, 1.8vw, 18px);
  position: relative;
  transition: opacity 0.22s ease;
}
.rg-carousel--flickity .carousel-cell:not(.is-selected) {
  opacity: 0.75;
}
.rg-carousel--flickity .rgc-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #000;
}
.rg-carousel--flickity .rgc-media {
  position: relative;
  display: block;
  height: 500px;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
  will-change: transform;
}
.rg-carousel--flickity .rgc-media img, .rg-carousel--flickity .rgc-media picture, .rg-carousel--flickity .rgc-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}
.rg-carousel--flickity .rgc-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.42) 38%, rgba(0, 0, 0, 0.78) 100%);
  border-radius: 12px;
}
.rg-carousel--flickity .carousel-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.44) 0%, rgba(0, 0, 0, 0.22) 22%, rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.08) 60%, rgba(0, 0, 0, 0.22) 78%, rgba(0, 0, 0, 0.44) 100%);
  border-radius: 12px;
}
.rg-carousel--flickity .carousel-cell.is-selected::before {
  background: none;
}
.rg-carousel--flickity .rgc-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(18px, 2.2vw, 28px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .rg-carousel--flickity .carousel-cell {
    transition: none !important;
  }
}
@media (max-width: 1023.98px) {
  .rg-carousel--flickity .rgc-media {
    height: 300px;
  }
}
@media (max-width: 639.98px) {
  .rg-carousel--flickity .rgc-media {
    height: 240px;
  }
}

/*# sourceMappingURL=style.css.map */
