/* Par 5 theme base — tokens from live site (docs/design-guidelines.md) */
:root {
  --par5-dark-blue: #3d3092;
  --par5-light-blue: #009edb;
  --par5-light-blue-hover: #008ecb;
  /* Live homepage content surface (bg-[#deebf7]); keep token in sync site-wide */
  --par5-blue-gray: #deebf7;
  --par5-purple: #662d91;
  --par5-orange: #f57f47;
  --par5-pink: #d11e58;
  --par5-green: #2f9d5f;
  --par5-gray: #bcbec0;
  --par5-content-max: 1200px;
  --par5-header-height: 64px;
}

/*
  Typography: Cambridge Round (weights 300 / 400 / 400i / 600 / 700).
  @font-face declarations live in theme head (config.liquid + head.liquid)
  so Siteglide asset_url resolves correctly. Files under assets/theme/par5/fonts/.
*/
html,
body {
  background-color: var(--par5-blue-gray);
}

body {
  font-family: "Cambridge Round", var(--font-body), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.par5-container {
  width: 100%;
  max-width: var(--par5-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .par5-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .par5-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/*
  Shared grid wrapper — incomplete last row centred as a group.
  Open/close: theme/par5/components/grid-open.liquid + grid-close.liquid
  Spec: references/grid-wrapper.md / migration-dev-guide §4

  Acceptance (desktop):
    3 cols × 5 items → last row 2 centred
    3 cols × 7 items → last row 1 centred
    2 cols × 5 items → last row 1 centred
    4 cols × 6 items → last row 2 centred
    3 cols × 6 items → full rows (no orphan centring needed)
*/
.par5-grid {
  --par5-grid-gap: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--par5-grid-gap);
  width: 100%;
  box-sizing: border-box;
}

.par5-grid > * {
  box-sizing: border-box;
  min-width: 0;
}

.par5-grid[data-columns="1"] > * {
  flex: 0 1 100%;
  max-width: 100%;
}

.par5-grid[data-columns="2"] > * {
  flex: 0 1 calc((100% - var(--par5-grid-gap)) / 2);
  max-width: calc((100% - var(--par5-grid-gap)) / 2);
}

.par5-grid[data-columns="3"] > * {
  flex: 0 1 calc((100% - 2 * var(--par5-grid-gap)) / 3);
  max-width: calc((100% - 2 * var(--par5-grid-gap)) / 3);
}

.par5-grid[data-columns="4"] > * {
  flex: 0 1 calc((100% - 3 * var(--par5-grid-gap)) / 4);
  max-width: calc((100% - 3 * var(--par5-grid-gap)) / 4);
}

/* Tablet: 3–4 column grids drop to 2 unless overridden */
@media (max-width: 1023px) and (min-width: 768px) {
  .par5-grid[data-columns="3"] > *,
  .par5-grid[data-columns="4"] > * {
    flex: 0 1 calc((100% - var(--par5-grid-gap)) / 2);
    max-width: calc((100% - var(--par5-grid-gap)) / 2);
  }
}

/* Mobile: default 1 col; data-mobile-columns="2" keeps a two-up layout */
@media (max-width: 767px) {
  .par5-grid[data-columns] > * {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .par5-grid[data-mobile-columns="2"] > * {
    flex: 0 1 calc((100% - var(--par5-grid-gap)) / 2);
    max-width: calc((100% - var(--par5-grid-gap)) / 2);
  }
}

/* —— Section library (PAR5-26) —— */
.par5-section {
  width: 100%;
  box-sizing: border-box;
  font-family: "Cambridge Round", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.par5-section__inner {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
@media (min-width: 640px) {
  .par5-section__inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .par5-section__inner { padding-left: 2rem; padding-right: 2rem; }
}

.par5-hero {
  width: 100%;
  background-color: #3d3092;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Mobile: shorter; desktop uses Studio min_height (default 400px) */
  min-height: 220px;
}
@media (min-width: 768px) {
  .par5-hero {
    min-height: var(--par5-hero-min-height, 400px);
  }
}

.par5-slogan {
  position: relative;
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  background-color: #3d3092;
  background-repeat: no-repeat;
  background-size: auto 180px;
  background-position: calc(100% + 200px) center;
}
.par5-slogan__inner {
  box-sizing: border-box;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 10%;
  position: relative;
  z-index: 1;
}
.par5-slogan__heading {
  margin: 0;
  color: #fff;
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.25;
}
@media (min-width: 768px) { .par5-slogan__heading { font-size: 1.875rem; } }
@media (min-width: 1024px) { .par5-slogan__heading { font-size: 2.25rem; } }
@media (min-width: 1280px) { .par5-slogan__heading { font-size: 3rem; } }

.par5-value-props { background-color: #deebf7; }
.par5-value-props__intro {
  margin: 0 auto 2rem;
  max-width: 1100px;
  text-align: center;
  color: #3d3092;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
}
@media (min-width: 768px) { .par5-value-props__intro { font-size: 1.875rem; } }
.par5-value-props .par5-grid {
  --par5-grid-gap: 2rem;
}
/* Beat .par5-grid[data-columns] > * { max-width: 100% } so circles stay 320px on mobile */
.par5-value-props .par5-grid > .par5-value-props__item {
  max-width: 320px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.par5-value-props__item img {
  display: block;
  width: 100%;
  height: auto;
}
.par5-value-props__item h3 {
  margin: 1rem 0 0;
  color: #3d3092;
  font-size: 1.25rem;
  font-weight: 600;
}

.par5-rich-text { background-color: #deebf7; }
.par5-rich-text h2 {
  margin: 0 0 1rem;
  color: #3d3092;
  font-size: 1.25rem;
  font-weight: 600;
}
@media (min-width: 768px) { .par5-rich-text h2 { font-size: 1.5rem; } }
.par5-rich-text .par5-prose {
  color: #111;
  font-size: 1rem;
  line-height: 1.6;
}
.par5-rich-text .par5-prose p { margin: 0 0 1rem; }
.par5-rich-text .par5-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.par5-rich-text .par5-prose li { margin: 0.25rem 0; }

.par5-cta { background-color: transparent; }
.par5-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 3rem;
}
.par5-cta--center .par5-cta__inner { align-items: center; text-align: center; }
.par5-cta__prompt {
  margin: 0 0 1rem;
  color: #3d3092;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .par5-cta__prompt { font-size: 1.5rem; }
}
.par5-cta__btn {
  display: inline-block;
  box-sizing: border-box;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  background-color: #009edb;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.par5-cta__btn:hover { opacity: 0.9; }

.par5-video-gallery { background-color: #deebf7; }
.par5-video-gallery__inner { padding-top: 2rem; padding-bottom: 1rem; }
.par5-video-gallery__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
  overflow: hidden;
}
.par5-video-gallery__player iframe,
.par5-video-gallery__player video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.par5-video-carousel {
  position: relative;
  padding: 0 2.5rem;
}
.par5-video-carousel__viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  container-type: inline-size;
  width: 100%;
}
.par5-video-carousel__viewport::-webkit-scrollbar { display: none; }
.par5-video-gallery__thumbs {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.25rem;
  width: max-content;
}
.par5-video-gallery__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  max-width: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  text-decoration: none;
}
@media (max-width: 767px) {
  .par5-video-carousel { padding: 0 2rem; }
  .par5-video-gallery__thumb { width: 85%; }
}
.par5-video-gallery__thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  transition: opacity 0.15s ease;
}
.par5-video-gallery__thumb:hover img { opacity: 0.8; }
.par5-video-gallery__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.par5-video-gallery__play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent #3d3092;
}
.par5-video-carousel__nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9999px;
  background: #3d3092;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.par5-video-carousel__nav--prev { left: 0; }
.par5-video-carousel__nav--next { right: 0; }
.par5-video-carousel__nav:hover { opacity: 0.9; }
.par5-video-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.par5-video-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  background: #c5d0db;
  cursor: pointer;
}
.par5-video-carousel__dot.is-active { background: #3d3092; }

.par5-pdf-embed { background-color: #deebf7; }

.par5-portal-card {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  padding: 2rem;
  text-align: center;
}
.par5-portal-card__logo {
  display: block;
  margin: 0 auto 1.5rem;
  height: 50px;
  width: auto;
}
.par5-portal-card__title {
  margin: 0 0 0.5rem;
  color: #3d3092;
  font-size: 1.5rem;
  font-weight: 700;
}
.par5-portal-card__text {
  margin: 0 0 1.5rem;
  color: #4b5563;
}
.par5-portal-card__iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 0.375rem;
}
.par5-portal-card__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  width: 100%;
}
.par5-portal-card__field label {
  display: block;
  margin-bottom: 0.25rem;
  color: #374151;
  font-size: 1rem;
  font-weight: 500;
}
.par5-portal-card__field input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  color: #111;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.par5-portal-card__field input:focus {
  outline: none;
  border-color: #3d3092;
  box-shadow: 0 0 0 2px rgba(61, 48, 146, 0.25);
}
.par5-portal-card__login-btn {
  width: 100%;
  text-align: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.par5-contact-info { background-color: #deebf7; }
.par5-contact-info a {
  color: #3d3092;
  text-decoration: none;
}
.par5-contact-info a:hover { text-decoration: underline; }
.par5-contact-info__line {
  margin: 0.25rem 0;
  color: #111;
  font-size: 1rem;
}

.par5-team { background-color: #deebf7; }
.par5-team .par5-grid { --par5-grid-gap: 1.25rem; }
.par5-team__card { text-align: center; }
.par5-team__photo {
  position: relative;
  width: 7.5rem;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}
.par5-team__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
.par5-team__name {
  margin: 0.5rem 0 0.125rem;
  color: #3d3092;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}
.par5-team__title {
  margin: 0 0 0.25rem;
  color: #4b5563;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.par5-team__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #3d3092;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.par5-team__linkedin:hover { text-decoration: underline; }

.par5-feature-list { background-color: #deebf7; }
.par5-feature-list__heading {
  margin: 0 0 1.5rem;
  color: #3d3092;
  font-size: 1.5rem;
  font-weight: 600;
}
.par5-feature-list__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.par5-feature-list__row img {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}
.par5-feature-list__row p {
  margin: 0;
  color: #3d3092;
  font-size: 1.125rem;
  line-height: 1.4;
}

/* Two-column layout wrappers — compose smaller sections side-by-side */
.par5-two-col-wrap { width: 100%; }
.par5-two-col-wrap__inner { padding-bottom: 3rem; }
.par5-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .par5-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
}
.par5-two-col__col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.par5-two-col__col > .par5-section {
  background: transparent !important;
}
.par5-two-col__col > .par5-section > .par5-section__inner {
  max-width: none;
  margin: 0;
  padding: 0;
}
.par5-two-col__col > [data-section="cta-button"] .par5-cta__inner,
.par5-two-col__col > [data-section="pdf-embed"] .par5-section__inner,
.par5-two-col__col > [data-section="contact-info"] .par5-section__inner,
.par5-two-col__col > [data-section="team-cards"] .par5-section__inner,
.par5-two-col__col > [data-section="contact-form"] .par5-section__inner {
  padding-top: 0;
  padding-bottom: 0;
}
.par5-two-col__col .par5-rich-text h2 {
  margin: 1.5rem 0 1rem;
  color: #3d3092;
  font-size: 1.25rem;
  font-weight: 600;
}
.par5-two-col__col .par5-rich-text > .par5-section__inner > h2:first-child {
  margin-top: 0;
}
@media (min-width: 768px) {
  .par5-two-col__col .par5-rich-text h2 { font-size: 1.5rem; }
}
.par5-team__heading {
  margin: 0 0 1rem;
  color: #3d3092;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}
@media (min-width: 768px) {
  .par5-team__photo { width: 8.5rem; }
  .par5-team__heading { font-size: 1.375rem; margin-bottom: 1.25rem; }
}

/* Page intro — new Impact hub pages */
.par5-page-intro {
  padding-top: 2rem;
}
.par5-page-intro > .par5-section__inner {
  /* Keep the same centered 1200px gutter as profile cards */
  text-align: left;
  padding-bottom: 1.25rem;
}
.par5-page-intro__eyebrow {
  margin: 0 0 0.75rem;
  color: #3d3092;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.par5-page-intro__heading {
  margin: 0 0 1rem;
  color: #3d3092;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 40rem;
}
.par5-page-intro__body {
  margin: 0;
  color: #000;
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: none;
  width: 100%;
}
@media (min-width: 768px) {
  .par5-page-intro__heading { font-size: 2.25rem; }
  .par5-page-intro__body { font-size: 1.125rem; }
}

/* Profile cards — left-align with intro (same section__inner gutter) */
.par5-profiles > .par5-section__inner {
  padding-top: 0.5rem;
}
.par5-profiles .par5-grid {
  --par5-grid-gap: 1.75rem;
  justify-content: flex-start;
}
.par5-profiles__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: transparent;
  border-radius: 0.75rem;
  overflow: visible;
  box-shadow: none;
}
.par5-profiles__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #c5dced;
}
.par5-profiles__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.par5-profiles__photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  background: linear-gradient(180deg, #cfe3f4 0%, #e8f2fa 100%);
}
.par5-profiles__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem 0 0.25rem;
  background: transparent;
}
.par5-profiles__name {
  margin: 0 0 0.35rem;
  color: #3d3092;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}
.par5-profiles__role {
  margin: 0 0 0.75rem;
  color: #009edb;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.par5-profiles__short {
  margin: 0 0 1.15rem;
  color: #1f2937;
  font-size: 0.9375rem;
  line-height: 1.5;
  flex: 1 1 auto;
}
.par5-profiles__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}
.par5-profiles__read-more {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 0.375rem;
  background: #009edb;
  color: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.par5-profiles__read-more:hover { background: #008ecb; color: #fff; text-decoration: none; }
.par5-profiles__linkedin {
  display: inline-flex;
  line-height: 0;
  flex-shrink: 0;
  color: #0A66C2;
}
.par5-profiles__linkedin:hover { opacity: 0.9; }

.par5-profiles__modal[hidden] { display: none !important; }
.par5-profiles__modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.par5-profiles__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.par5-profiles__modal-panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(40rem, 100%);
  max-height: min(90vh, 42rem);
  overflow-y: auto;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  text-align: left;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}
.par5-profiles__modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  appearance: none;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.par5-profiles__modal-close:hover { color: #3d3092; }
.par5-profiles__modal-top {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
}
.par5-profiles__modal-photo {
  width: 7.5rem;
  height: 7.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #c5dced;
}
.par5-profiles__modal-photo img,
.par5-profiles__modal-photo .par5-profiles__photo-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}
.par5-profiles__modal-meta {
  min-width: 0;
  padding-top: 0.15rem;
}
.par5-profiles__modal-name {
  margin: 0 0 0.35rem;
  color: #3d3092;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}
.par5-profiles__modal-role {
  margin: 0 0 0.75rem;
  color: #009edb;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}
.par5-profiles__linkedin--modal {
  display: inline-flex;
}
.par5-profiles__modal-body {
  color: #111827;
  font-size: 0.975rem;
  line-height: 1.6;
  text-align: left;
}
@media (max-width: 639px) {
  .par5-profiles__modal-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .par5-profiles__modal-meta {
    text-align: center;
  }
  .par5-profiles__modal-name,
  .par5-profiles__modal-role {
    text-align: center;
  }
}
html.par5-profile-modal-open { overflow: hidden; }

/* Header About dropdown — caret + active item */
.par5-header__dropdown {
  position: relative;
  /* Extend hit area slightly below the trigger so hover survives the travel to the menu */
  padding-bottom: 0.85rem;
  margin-bottom: -0.85rem;
}
.par5-header__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.par5-header__dropdown-trigger:hover { color: rgba(255, 255, 255, 0.8); }
.par5-header__dropdown-trigger.is-active { color: #009edb; }
.par5-header__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 13.5rem;
  padding: 0.4rem 0;
  border-radius: 0.25rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  z-index: 30;
}
/* Invisible bridge covering any remaining space between trigger and menu */
.par5-header__dropdown-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1rem;
  height: 1rem;
}
.par5-header__dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 1.75rem;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
  z-index: 1;
}
.par5-header__dropdown.is-open .par5-header__dropdown-menu,
.par5-header__dropdown:hover .par5-header__dropdown-menu {
  display: block;
}
.par5-header__dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: #3d3092 !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.par5-header__dropdown-menu a:hover,
.par5-header__dropdown-menu a.is-active {
  background: #009edb;
  color: #fff !important;
}
.par5-header__drawer-sub {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.35rem 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
}
.par5-header__drawer-sub a {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  padding: 0.45rem 0.5rem !important;
}
.par5-header__drawer-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 0.5rem 0.25rem;
}


/* Content cards (Partners / News / Projects) */
.par5-content-cards .par5-grid {
  --par5-grid-gap: 1.5rem;
  justify-content: flex-start;
}
.par5-content-cards__heading {
  margin: 0 0 1.75rem;
  color: #3d3092;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: left;
}
.par5-content-cards__card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(61, 48, 146, 0.08);
}
.par5-content-cards__image {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #3d3092;
}
.par5-content-cards__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #3d3092;
  padding: 1.5rem 1.25rem;
  box-sizing: border-box;
}
.par5-content-cards__image--maxfield img {
  padding: 0.65rem 0.5rem;
}
.par5-content-cards__image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #4a3ca3 0%, #3d3092 100%);
}
.par5-content-cards__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem 1.1rem 1.25rem;
}
.par5-content-cards__title {
  margin: 0 0 0.65rem;
  color: #3d3092;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.par5-content-cards__meta-inline {
  font-weight: 600;
}
.par5-content-cards__meta-secondary {
  margin: 0 0 0.5rem;
  color: #662d91;
  font-size: 0.8125rem;
  font-weight: 600;
}
.par5-content-cards__excerpt {
  margin: 0 0 1.15rem;
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1 1 auto;
}
.par5-content-cards__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 0.375rem;
  background: #009edb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.par5-content-cards__link:hover {
  background: #008ecb;
  color: #fff;
  text-decoration: none;
}

/* Project cards (Impact) — transparent cards, photo crops, stacked meta */
.par5-content-cards__intro-heading {
  margin: 0 0 0.75rem;
  color: #3d3092;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.par5-content-cards__intro-body {
  margin: 0 auto 2rem;
  max-width: 42rem;
  color: #3d3092;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}
.par5-content-cards--project .par5-content-cards__heading {
  margin: 0 0 1.5rem;
  text-align: left;
}
.par5-content-cards--project .par5-content-cards__card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.par5-content-cards--project .par5-content-cards__image {
  border-radius: 0.5rem;
  overflow: hidden;
  background: #c5d8ea;
}
.par5-content-cards--project .par5-content-cards__image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: transparent;
  padding: 0;
}
.par5-content-cards--project .par5-content-cards__image-placeholder {
  background: linear-gradient(180deg, #c5d8ea 0%, #a8c4dc 100%);
}
.par5-content-cards--project .par5-content-cards__body {
  padding: 1rem 0 0;
}
.par5-content-cards--project .par5-content-cards__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.par5-content-cards__author {
  margin: 0 0 0.25rem;
  color: #009edb;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}
.par5-content-cards__category {
  margin: 0 0 0.75rem;
  color: #3d3092;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}
.par5-content-cards--project .par5-content-cards__excerpt {
  margin: 0 0 1.15rem;
  color: #1f2937;
}

/* Article / project detail */
.par5-article__inner {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.par5-article__eyebrow {
  margin: 0 0 0.5rem;
  color: #3d3092;
  font-size: 0.875rem;
  font-weight: 700;
}
.par5-article__heading {
  margin: 0 0 0.75rem;
  color: #3d3092;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.par5-article__subheading {
  margin: 0 0 1.25rem;
  color: #3d3092;
  font-size: 1rem;
  font-weight: 600;
}
.par5-article__body {
  color: #3d3092;
  font-size: 1rem;
  line-height: 1.6;
}
.par5-article__body p { margin: 0 0 1rem; }
.par5-article__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  align-items: center;
}
.par5-article__back {
  color: #009edb;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.par5-article__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 0.375rem;
  background: #009edb;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.par5-article__cta:hover { background: #008ecb; }
@media (min-width: 768px) {
  .par5-article__heading { font-size: 2.125rem; }
}

/* Partner detail */
.par5-partner-detail__hero {
  background: #fff;
  padding: 2.5rem 0 2rem;
}
.par5-partner-detail__hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.par5-partner-detail__heading {
  margin: 0 0 0.5rem;
  color: #3d3092;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
}
.par5-partner-detail__tier {
  margin: 0 0 1.5rem;
  color: #009edb;
  font-size: 1rem;
  font-weight: 600;
}
.par5-partner-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 0.5rem;
  background: #009edb;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.par5-partner-detail__btn:hover {
  background: #008ecb;
  color: #fff;
  text-decoration: none;
}
.par5-partner-detail__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.par5-partner-detail__logo img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  object-fit: contain;
}
.par5-partner-detail__logo--maxfield img {
  max-width: 28rem;
  transform: scale(1.18);
}
.par5-partner-detail__body-band {
  background: #deebf7;
  padding: 2.5rem 0 3rem;
}
.par5-partner-detail__body {
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 52rem;
}
.par5-partner-detail__body p {
  margin: 0 0 1rem;
}
.par5-partner-detail__body-band > .par5-section__inner > .par5-partner-detail__btn {
  margin-top: 0.5rem;
}
.par5-partner-detail__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.par5-partner-detail__gallery-item {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}
.par5-partner-detail__gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 768px) {
  .par5-partner-detail__hero {
    padding: 3.25rem 0 2.5rem;
  }
  .par5-partner-detail__hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
    gap: 3rem;
  }
  .par5-partner-detail__heading {
    font-size: 2.5rem;
  }
  .par5-partner-detail__gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* News list */
.par5-news-list__heading {
  margin: 0 0 0.75rem;
  color: #3d3092;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}
.par5-news-list__intro {
  margin: 0 0 2rem;
  max-width: 52rem;
  color: #3d3092;
  font-size: 1rem;
  line-height: 1.6;
}
.par5-news-featured {
  display: grid;
  gap: 0;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #3d3092;
}
.par5-news-featured__media {
  margin: 0;
  background: #2f266f;
}
.par5-news-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}
.par5-news-featured__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.35rem 1.75rem;
}
.par5-news-featured__date {
  margin: 0 0 0.65rem;
  color: #009edb;
  font-size: 0.875rem;
  font-weight: 600;
}
.par5-news-featured__title {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}
.par5-news-featured__excerpt {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.55;
}
.par5-news-featured__link,
.par5-news-card__link,
.par5-news-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border-radius: 0.5rem;
  background: #009edb;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.par5-news-featured__link:hover,
.par5-news-card__link:hover,
.par5-news-detail__btn:hover {
  background: #008ecb;
  color: #fff;
  text-decoration: none;
}
.par5-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.par5-news-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.par5-news-card__media {
  margin: 0 0 0.85rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}
.par5-news-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.par5-news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.par5-news-card__date {
  margin: 0 0 0.4rem;
  color: #009edb;
  font-size: 0.875rem;
  font-weight: 600;
}
.par5-news-card__title {
  margin: 0 0 0.55rem;
  color: #3d3092;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.par5-news-card__excerpt {
  margin: 0 0 1rem;
  color: #3d3092;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1 1 auto;
}
@media (min-width: 768px) {
  .par5-news-list__heading { font-size: 2.25rem; }
  .par5-news-featured {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
  .par5-news-featured__panel {
    padding: 2rem 2rem 2.25rem;
  }
  .par5-news-featured__title { font-size: 1.65rem; }
  .par5-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* News detail */
.par5-news-detail__hero {
  background: #fff;
  padding: 2.5rem 0 2rem;
}
.par5-news-detail__hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.par5-news-detail__heading {
  margin: 0 0 0.5rem;
  color: #3d3092;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.par5-news-detail__date {
  margin: 0 0 1.5rem;
  color: #009edb;
  font-size: 1rem;
  font-weight: 600;
}
.par5-news-detail__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.par5-news-detail__body-band {
  background: #deebf7;
  padding: 2.5rem 0 3rem;
}
.par5-news-detail__body {
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 52rem;
}
.par5-news-detail__body p { margin: 0 0 1rem; }
.par5-news-detail__body a { color: #009edb; }
.par5-news-detail__body-band > .par5-section__inner > .par5-news-detail__btn {
  margin-top: 0.5rem;
}
.par5-news-detail__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.par5-news-detail__gallery-item {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}
.par5-news-detail__gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
@media (min-width: 768px) {
  .par5-news-detail__hero { padding: 3.25rem 0 2.5rem; }
  .par5-news-detail__hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 24rem);
    gap: 3rem;
  }
  .par5-news-detail__heading { font-size: 2.25rem; }
  .par5-news-detail__gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Project detail (Impact webapp) */
.par5-project-detail__hero {
  background: #fff;
  padding: 2.5rem 0 2rem;
}
.par5-project-detail__hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.par5-project-detail__heading {
  margin: 0 0 0.5rem;
  color: #3d3092;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.par5-project-detail__researcher {
  margin: 0 0 1.5rem;
  color: #009edb;
  font-size: 1rem;
  font-weight: 600;
}
.par5-project-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border-radius: 0.5rem;
  background: #009edb;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.par5-project-detail__btn:hover {
  background: #008ecb;
  color: #fff;
  text-decoration: none;
}
.par5-project-detail__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.par5-project-detail__body-band {
  background: #deebf7;
  padding: 2.5rem 0 3rem;
}
.par5-project-detail__body {
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 52rem;
}
.par5-project-detail__body p { margin: 0 0 1rem; }
.par5-project-detail__body a { color: #009edb; }
.par5-project-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 0.75rem;
}
.par5-project-detail__logo img {
  display: block;
  max-height: 3.25rem;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
}
.par5-project-detail__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.par5-project-detail__gallery-item {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}
.par5-project-detail__gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 768px) {
  .par5-project-detail__hero { padding: 3.25rem 0 2.5rem; }
  .par5-project-detail__hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 24rem);
    gap: 3rem;
  }
  .par5-project-detail__heading { font-size: 2.25rem; }
  .par5-project-detail__gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Impact stats */
.par5-stats__item { text-align: center; }
.par5-stats__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  color: #3d3092;
}
.par5-stats__icon svg { display: block; }
.par5-stats__value {
  margin: 0 0 0.35rem;
  color: #3d3092;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}
.par5-stats__label {
  margin: 0;
  color: #3d3092;
  font-size: 0.875rem;
  line-height: 1.4;
}
.par5-stats--navy .par5-stats__icon,
.par5-stats--navy .par5-stats__value,
.par5-stats--navy .par5-stats__label {
  color: #fff;
}
.par5-stats--navy .par5-stats__label {
  opacity: 0.95;
  font-size: 0.9rem;
}
@media (min-width: 768px) {
  .par5-stats__value { font-size: 2rem; }
  .par5-stats--navy .par5-stats__value { font-size: 2.15rem; }
}

/* Scholarship block */
.par5-scholarship__panel {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
.par5-scholarship__panel--plain {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.par5-scholarship__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.par5-scholarship__signature {
  margin: 0.85rem 0 0;
  color: #3d3092;
  font-family: "Cambridge Round", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}
.par5-scholarship__eyebrow {
  margin: 0 0 0.5rem;
  color: #009edb;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.par5-scholarship__heading {
  margin: 0 0 0.5rem;
  color: #3d3092;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}
.par5-scholarship__subheading {
  margin: 0 0 1rem;
  color: #3d3092;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.par5-scholarship__body {
  color: #3d3092;
  font-size: 0.975rem;
  line-height: 1.6;
}
.par5-scholarship__body p { margin: 0 0 1rem; }
.par5-scholarship__body p:last-child { margin-bottom: 0; }

.par5-scholarship--panel .par5-scholarship__panel {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: #3d3092;
  color: #fff;
}
.par5-scholarship--panel .par5-scholarship__signature {
  color: #fff;
  font-family: "Brush Script MT", "Segoe Script", "Apple Chancery", cursive;
  font-style: normal;
  font-size: 1.5rem;
}
.par5-scholarship--panel .par5-scholarship__eyebrow {
  color: #009edb;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.par5-scholarship--panel .par5-scholarship__heading,
.par5-scholarship--panel .par5-scholarship__subheading,
.par5-scholarship--panel .par5-scholarship__body {
  color: #fff;
}
@media (min-width: 900px) {
  .par5-scholarship__panel {
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .par5-scholarship--panel .par5-scholarship__panel {
    padding: 2rem 2.25rem;
  }
  .par5-scholarship__signature {
    text-align: left;
  }
}
