/* GeoCARE Home blocks — shares tokens with publications/people/courses css. */
.gch-intro, .gch-team, .gch-teach { max-width: 1160px; margin: 0 auto; font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif; color: #322427; }
.gch-intro *, .gch-team *, .gch-teach * { box-sizing: border-box; }
:where(.gch-intro, .gch-team, .gch-teach) :where(h2, h3, p, ul) { margin: 0; padding: 0; }

/* ---------- Intro bar + numbers ---------- */
.gch-intro { margin: 1.4rem auto 0; text-align: center; }
.gch-intro__tagline {
  color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: .01em;
  max-width: 860px; margin: 0 auto;
}
.gch-intro__sub { max-width: 760px; margin: 0.9rem auto 0; color: #4c3748; font-size: 1.02rem; line-height: 1.65; }
.gch-intro__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1.2rem; }
.people-btn--maroon { background: #6b1239; border-color: #6b1239; color: #fff; }
.people-btn--maroon:hover, .people-btn--maroon:focus-visible { background: #4e0c29; border-color: #4e0c29; color: #fff; }
.people-btn--outline { border-color: #6b1239; color: #6b1239; }
.people-btn--outline:hover, .people-btn--outline:focus-visible { background: #6b1239; color: #fff; }

.gch-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.9rem; list-style: none; margin: 1.8rem 0 0; padding: 0; }
.gch-stat { height: 100%; }
.gch-stat a {
  display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 1.1rem 1rem; text-decoration: none;
  background: linear-gradient(135deg, #ffffff 55%, #f8f0f4 100%);
  border: 1.8px solid #d9bcd5; border-radius: 14px;
  box-shadow: 0 4px 12px rgba(107, 18, 57, 0.08);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.gch-stat a:hover, .gch-stat a:focus-visible { border-color: #6b1239; box-shadow: 0 10px 22px rgba(107, 18, 57, 0.14); transform: translateY(-3px); }
.gch-stat__n { display: block; color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 2.1rem; font-weight: 800; line-height: 1.1; }
.gch-stat__l { display: block; margin-top: 0.25rem; color: #7f4862; font-size: 0.76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Section heads ---------- */
.gch-head { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1.5rem; align-items: end; margin-bottom: 1.3rem; }
.gch-h2 { grid-column: 1; color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.gch-sub { grid-column: 1; color: #7f4862; font-size: 0.95rem; line-height: 1.5; }
.gch-more {
  grid-column: 2; grid-row: 1 / span 2; align-self: end;
  color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.86rem; font-weight: 700;
  text-decoration: none; border-bottom: 2px solid #d9bcd5; padding-bottom: 2px; white-space: nowrap;
}
.gch-more:hover, .gch-more:focus-visible { border-bottom-color: #6b1239; }

/* ---------- Team strip ---------- */
.gch-team { margin: 0.6rem auto 1.6rem; }
.gch-team__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 1.4rem; list-style: none; }
.gch-person { flex: 0 1 150px; text-align: center; }
.gch-person a { display: block; text-decoration: none; color: inherit; }
.gch-person__photo {
  display: block; width: 104px; height: 104px; margin: 0 auto 0.6rem; object-fit: cover;
  border-radius: 50%; border: 3px solid #6b1239; background: #f6eef2;
  box-shadow: 0 6px 16px rgba(107, 18, 57, 0.16); transition: transform .25s ease, box-shadow .25s ease;
}
.gch-person__photo.people-photo--initials { display: flex; align-items: center; justify-content: center; color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 1.7rem; font-weight: 800; }
.gch-person--director .gch-person__photo { width: 104px; height: 104px; border-radius: 50%; }
.gch-person a:hover .gch-person__photo, .gch-person a:focus-visible .gch-person__photo { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(107, 18, 57, 0.24); }
.gch-person__name { display: block; color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.92rem; font-weight: 800; line-height: 1.3; }
.gch-person__cred { font-size: 0.72em; color: #7f4862; font-weight: 700; white-space: nowrap; }
.gch-person__role { display: block; margin-top: 2px; color: #7f4862; font-size: 0.74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Teaching teaser ---------- */
.gch-teach { margin: 0.4rem auto 0.6rem; }
.gch-teach__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.2rem; align-items: stretch; grid-auto-rows: min-content; }
.gch-teach__courses { align-self: start; }
.gch-teach__grid > .gch-qslider { min-height: 0; }
.gch-teach__courses {
  padding: 1.2rem 1.4rem; background: #fff; border: 1.8px solid #d9bcd5; border-radius: 14px;
  box-shadow: 0 4px 12px rgba(107, 18, 57, 0.08);
}
.gch-teach__term { display: flex; align-items: center; gap: 0.6rem; color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 1.05rem; font-weight: 800; margin-bottom: 0.7rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e2cdd9; }
.gch-courses { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.gch-course a { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.3rem 0.8rem; padding: 0.5rem 0.7rem; border-radius: 10px; text-decoration: none; color: inherit; transition: background-color .2s ease; }
.gch-course__head { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0.4rem 0.6rem; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.gch-course__head .tag { display: none; }
.gch-course__terms { gap: 0.3rem; margin-left: auto; justify-content: flex-end; flex: 0 0 auto; flex-wrap: nowrap; }
.gch-course__terms .term { font-size: 0.66rem; padding: 0.08rem 0.45rem; }
.gch-teach__legend { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; color: #7f4862; font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif; font-size: 0.72rem; font-weight: 600; }
.gch-teach__legend .term { font-size: 0.66rem; padding: 0.05rem 0.45rem; }
.gch-courses { gap: 0.15rem; }
.gch-course + .gch-course { border-top: 1px solid #f0e3ea; }
.gch-course a:hover, .gch-course a:focus-visible { background: #f6eef2; }
.gch-course__name { color: #322427; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.9rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.gch-qslider { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; }
.gch-qslider__track { position: relative; flex: 1 1 auto; min-height: 0; }
.gch-quote { margin: 0; position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .45s ease; }
.gch-quote__text { flex: 1 1 auto; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.gch-quote.is-active { opacity: 1; visibility: visible; }
.gch-quote__text p { margin-bottom: 0.4rem; }
.gch-quote__read { align-self: flex-start; margin: 0 0 0.9rem; color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.78rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid #d9bcd5; }
.gch-quote__read:hover, .gch-quote__read:focus-visible { border-bottom-color: #6b1239; }
.gch-quote .quote__meta { margin-top: auto; }
.gch-qslider__nav { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; }
.gch-qslider__btn { width: 30px; height: 30px; border-radius: 50%; border: 1.8px solid #d9bcd5; background: #fff; color: #6b1239; font-size: 1.2rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.gch-qslider__btn:hover, .gch-qslider__btn:focus-visible { background: #6b1239; border-color: #6b1239; color: #fff; }
.gch-qslider__dots { display: flex; gap: 6px; }
.gch-qslider__dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: #d9bcd5; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.gch-qslider__dot.is-active { background: #6b1239; transform: scale(1.25); }
.gch-teach__courses { display: flex; flex-direction: column; }
.gch-quote__more { margin-left: auto; color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.78rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid #d9bcd5; }
.gch-quote__more:hover, .gch-quote__more:focus-visible { border-bottom-color: #6b1239; }

/* Join panel on the homepage: same card, normal spacing */
.people-join { max-width: 1160px; }

@media (max-width: 780px) {
  .gch-head { grid-template-columns: 1fr; }
  .gch-more { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.4rem; }
  .gch-teach__grid { grid-template-columns: 1fr; }
  .gch-person { flex-basis: 128px; }
  .gch-person__photo { width: 88px; height: 88px; }
  .gch-stat__n { font-size: 1.7rem; }
}

/* Theme list resets (Divi styles li inside code modules) */
.gch-stats, .gch-team__list, .gch-courses { padding: 0 !important; margin-left: 0; margin-right: 0; list-style: none !important; }
.gch-stats li, .gch-team__list li, .gch-courses li { display: block; list-style: none !important; margin: 0; padding: 0; width: auto; max-width: none; line-height: inherit; }
.gch-stats li::marker, .gch-team__list li::marker, .gch-courses li::marker { content: ""; }
.gch-stats li::before, .gch-team__list li::before, .gch-courses li::before { content: none; display: none; }
.gch-person { flex: 0 1 150px !important; }

@media (prefers-reduced-motion: reduce) { .gch-quote { transition: none; } }
@media (max-width: 780px) { .gch-quote { position: relative; inset: auto; } .gch-qslider { height: auto; } .gch-quote__text { -webkit-mask-image: none; mask-image: none; } .gch-quote__text p { display: -webkit-box; -webkit-line-clamp: 7; line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; } .gch-quote:not(.is-active) { display: none; } }

@media (max-width: 780px) { .gch-course a { flex-wrap: wrap; } .gch-course__head { white-space: normal; flex-wrap: wrap; } .gch-course__terms { flex-wrap: wrap; margin-left: 0; justify-content: flex-start; } }
