/* ==========================================================================
   Headshots Grid — modern, clean person-card layout
   ========================================================================== */

.headshots-grid-container {
  --card-bg: #ffffff;
  --card-border: rgba(11, 37, 69, 0.12);
  --text-primary: #16161a;
  --text-secondary: #6b6b76;
  --accent: #0b2545;
  --accent-warm: #ff6b5b;
  --shadow-rest: 0 1px 2px rgba(16, 16, 20, 0.04), 0 1px 1px rgba(16, 16, 20, 0.03);
  --shadow-hover: 0 12px 24px rgba(16, 16, 20, 0.08), 0 4px 8px rgba(16, 16, 20, 0.04);

  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive grid: auto-fit removes the need to hand-tune breakpoints */
.headshots-grid-container .headshots-grid,
.headshots-grid-container .views-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* IMPORTANT: the grid twig template wraps each row of cards in its own
   <div> (views-row / row-N) before the cards. That wrapper div becomes a
   direct child of .views-view-grid, so without this rule IT becomes the
   grid cell instead of the individual .person-card — that's what produced
   the ultra-narrow, clipped columns. display:contents removes the wrapper
   from layout entirely so .person-card is what the grid actually sizes. */
.headshots-grid-container .views-view-grid > div {
  display: contents;
}

/* display:contents drops the row wrapper's own box, but NOT its
   ::before/::after pseudo-elements. Bootstrap's .clearfix puts
   content:"" on both to force float-clearing, so those empty boxes
   get promoted into the grid as phantom items, eating column slots
   and pushing later cards into the wrong track. Kill them here. */
.headshots-grid-container .views-row.clearfix::before,
.headshots-grid-container .views-row.clearfix::after {
  content: none;
  display: none;
}

/* Drupal's core Views Grid style plugin writes an inline style="width: X%"
   onto each column/card element (calculated as 100 / columns in PHP).
   That inline style outranks normal CSS and, inside a Grid item, resolves
   against the track width — not the page — which is what was crushing
   the cards down to ~25% of their already-narrow column. Only !important
   can beat an inline style, so we reset it here. */
.headshots-grid-container .views-col.person-card {
  width: auto !important;
}

/* Card */
.headshots-grid-container .person-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-rest);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  min-width: 0; /* lets long credential strings wrap instead of forcing the track wider */
  overflow-wrap: break-word;
  overflow: hidden;
  cursor: pointer;
}

/* Signature flourish — same restrained coral hairline used on the modal,
   kept quiet: thin, low-opacity, one accent rather than several. */
.headshots-grid-container .person-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-warm);
  opacity: 0.55;
}

.headshots-grid-container .person-card:hover,
.headshots-grid-container .person-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

/* Headshot */
.headshots-grid-container img {
  display: block;
  margin: 0 auto 1rem;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  outline: 1px solid var(--card-border);
  box-shadow: 0 2px 6px rgba(16, 16, 20, 0.08);
  transition: transform 180ms ease;
}

.headshots-grid-container .person-card:hover img {
  transform: scale(1.04);
}

/* Name / title — adjust these selectors to match your field markup,
   e.g. .views-field-title, .views-field-field-job-title */
.headshots-grid-container .person-card h2,
.headshots-grid-container .person-card h3,
.headshots-grid-container .person-card .views-field-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.headshots-grid-container .person-card .field--name-field-job-title,
.headshots-grid-container .person-card .views-field-field-job-title,
.headshots-grid-container .person-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Optional link overlay if the whole card is clickable */
.headshots-grid-container .person-card a {
  color: inherit;
  text-decoration: none;
}

.headshots-grid-container .person-card a:hover {
  color: var(--accent);
}

/* Grid title */
.headshots-grid-container h3.grid-title,
.headshots-grid-container > h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* Mobile */
@media (max-width: 480px) {
  .headshots-grid-container .headshots-grid,
  .headshots-grid-container .views-view-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
  }

  .headshots-grid-container img {
    width: 96px;
    height: 96px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .headshots-grid-container .person-card,
  .headshots-grid-container img {
    transition: none;
  }
}


/* ==========================================================================
   Support sections (Infrastructure / Institutional)
   ========================================================================== */

.about-us-page .layout--twocol-section {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(2rem, 6vw, 5rem);
    max-width: 1100px;
    margin-inline: auto;
}

.about-us-page .layout--twocol-section .layout__region {
    flex: 1 1 320px;
    min-width: 0;
}


/* Tablet / mobile: stack the two columns */
@media (max-width: 768px) {
    .about-us-page .layout--twocol-section {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-us-page .layout--twocol-section .layout__region {
        flex: 1 1 auto;
    }
}

/* SCOPE: only the one-col layout that contains the mission block */
.layout:has(.multiple-title-content) {
  --intro-body: color-mix(in srgb, var(--main-color) 72%, #7c8797);
  --intro-gap: clamp(2rem, 5vw, 4rem);
}

/* flex the region so its two blocks sit side by side */
.layout:has(.multiple-title-content) .layout__region--content {
  display: flex;
  gap: var(--intro-gap);
  align-items: start;
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 4rem);
}

.about-us-intro-para    { flex: 3 1 0; }  /* 75% */
.multiple-title-content { flex: 1 1 0; }  /* 25% */

.layout:has(.multiple-title-content) .layout__region--content > .block {
  min-width: 0;   /* keep — stops long content forcing an overflow */
}

/* stack for smaller screens — tune the 1100px to taste within your 900–1200 band */
@media (max-width: 1100px) {
  .layout:has(.multiple-title-content) .layout__region--content {
    flex-direction: column;
    align-items: stretch;          /* full-width when stacked */
  }
  .about-us-intro-para,
  .multiple-title-content {
    flex: 0 0 auto;                /* natural height, not basis-0 */
  }
}

/* each block becomes a column */
.layout:has(.multiple-title-content) .layout__region--content > .block {
  min-width: 0;
}

/* type — same treatment as How We Work */
.layout:has(.multiple-title-content) p {
  margin: 0 0 1.15em;
  color: var(--intro-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.layout:has(.multiple-title-content) p:last-child { margin-bottom: 0; }

.layout:has(.multiple-title-content) h2 {
  margin: 0 0 1.25rem;
  color: var(--main-color);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.layout:has(.multiple-title-content) h2::after {
  content: "";
  display: block;
  inline-size: 2.5rem; block-size: 3px;
  margin-block-start: .85rem;
  background: var(--accent-orange);
  border-radius: 2px;
}

/* SCOPE: only the one-col layout that contains the mission block */
.layout:has(.stakeholder-video-content) {
  --intro-body: color-mix(in srgb, var(--main-color) 72%, #7c8797);
  --intro-gap: clamp(2rem, 5vw, 4rem);
}

/* flex the region so its two blocks sit side by side */
.layout:has(.stakeholder-video-content) .layout__region--content {
  display: flex;
  gap: var(--intro-gap);
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 4rem);
}

.about-us-intro-para    { flex: 3 1 0; }  /* 75% */
.stakeholder-video-content { flex: 1 1 0; }  /* 25% */

.layout:has(.stakeholder-video-content) .layout__region--content > .block {
  min-width: 0;   /* keep — stops long content forcing an overflow */
}

/* stack for smaller screens — tune the 1100px to taste within your 900–1200 band */
@media (max-width: 1100px) {
  .layout:has(.stakeholder-video-content) .layout__region--content {
    flex-direction: column;
    align-items: stretch;          /* full-width when stacked */
  }
  .about-us-intro-para,
  .stakeholder-video-content {
    flex: 0 0 auto;                /* natural height, not basis-0 */
  }
}

/* each block becomes a column */
.layout:has(.stakeholder-video-content) .layout__region--content > .block {
  min-width: 0;
}

/* type — same treatment as How We Work */
.layout:has(.stakeholder-video-content) p {
  margin: 0 0 1.15em;
  color: white;
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 80ch;
}
.layout:has(.stakeholder-video-content) p:last-child { margin-bottom: 0; }

.layout:has(.stakeholder-video-content) h2 {
  margin: 0 0 1.25rem;
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.layout:has(.stakeholder-video-content) h2::after {
  content: "";
  display: block;
  inline-size: 2.5rem; block-size: 3px;
  margin-block-start: .85rem;
  background: var(--accent-orange);
  border-radius: 2px;
}

.block-content-single_video {
  flex: 3;
}

