/* New pages use the original Amaranth / Rubik typography and red palette. */
.community-page { --community-red: #b63735; --community-ink: #171717; }
.community-container { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.community-section { padding-block: 86px; color: #171717; font: 400 18px/1.6 "Rubik", sans-serif; }
.community-section p { margin: 0 0 22px; }
.community-eyebrow { color: #7e0606; font: 700 17px/1.4 "Amaranth", sans-serif; }
.community-section .community-heading { margin: 0 0 22px; color: #b63735; font: 700 38px/1.2 "Amaranth", sans-serif; text-wrap: balance; }
.community-intro { max-width: 740px; margin: 0 auto 46px; text-align: center; }
.community-section .community-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 13px 25px; border: 0; border-radius: 30px; background: #b63735; color: #fff; font: 700 17px/1.3 "Amaranth", sans-serif; text-align: center; text-decoration: none; box-shadow: 0 9px 0 rgba(0,0,0,.04); transition: background-color .2s, transform .2s; }
.community-section .community-button:hover { background: #7e0606; transform: translateY(-2px); color: #fff; }
.community-button:focus-visible, .community-text-link:focus-visible { outline: 2px solid #7e0606; outline-offset: 5px; }
.community-section .community-text-link { color: #7e0606; font: 700 18px/1.5 "Amaranth", sans-serif; text-decoration: none; }
.community-section .community-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.team-leaders { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 42px; }
.team-department + .team-department { margin-top: 72px; padding-top: 64px; border-top: 1px solid #f0dfd8; }
.community-section .team-department-heading { margin: 0 0 34px; color: #b63735; font: 700 32px/1.25 "Amaranth", sans-serif; text-align: center; text-wrap: balance; }
.team-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border-radius: 90px 24px 24px 24px; box-shadow: 0 12px 34px rgba(0,0,0,.075); }
.team-card:nth-child(even) { border-radius: 24px 90px 24px 24px; }
.team-portrait { margin: 0; padding: 22px 28px 0; background: #fffaf0; }
.team-portrait img { display: block; width: 100%; height: 330px; object-fit: contain; object-position: center bottom; }
.team-card-body { display: flex; flex-direction: column; flex: 1; padding: 28px 34px 34px; }
.community-section .team-name { margin: 0 0 10px; color: #b63735; font: 700 29px/1.2 "Amaranth", sans-serif; }
.team-card .team-role { margin-bottom: 20px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.team-qualifications { margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.7; }
.team-qualifications li { position: relative; padding-left: 18px; margin-top: 7px; }
.team-qualifications li::before { content: ""; position: absolute; width: 6px; height: 6px; top: .7em; left: 0; border-radius: 50%; background: #b63735; }
.team-members { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.team-leaders + .team-members { margin-top: 44px; }
.team-member { text-align: center; border-radius: 55px 18px 18px 18px; }
.team-member .team-card-body { padding: 25px 24px 30px; }
.team-member .team-name { font-size: 25px; margin: 0 0 10px; }
.team-member .team-qualifications { text-align: left; }
.team-socials { display: flex; justify-content: center; gap: 12px; margin-top: auto; padding-top: 26px; }
.team-social-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; }
.team-social-link svg { display: block; width: 20px; height: 20px; }
.team-social-link[aria-disabled="true"] { color: #a4a4a4; background: #f2f2f2; }
.team-socials a.team-social-link { color: #fff; background: #b63735; text-decoration: none; transition: background-color .2s; }
.team-socials a.team-social-link:hover { color: #fff; background: #7e0606; }
.team-socials a.team-social-link:focus-visible { outline: 2px solid #7e0606; outline-offset: 4px; }
.team-portrait, .team-monogram, .team-member-portrait { flex-shrink: 0; }
.team-member-portrait { display: flex; justify-content: center; height: 220px; overflow: hidden; background: #fff6e3; }
.team-member-portrait img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.team-monogram { display: grid; place-items: center; height: 220px; background: #fff4e0; }
.team-member:nth-child(even) .team-monogram { background: #fff0ef; }
.team-member:nth-child(3n) .team-monogram, [aria-labelledby="wang-xin-ru"] .team-monogram { background: #edf7f6; }
.team-monogram::before { content: attr(data-initials); display: grid; place-items: center; width: 126px; height: 126px; border: 2px solid rgba(126,6,6,.16); border-radius: 50% 46% 44% 50%; color: #7e0606; font: 700 39px/1 "Amaranth", sans-serif; }
.team-belief { padding-top: 0; }
.team-belief-panel { padding: 54px 60px; border-radius: 28px 90px 28px 28px; background: #fff6f3; text-align: center; }
.team-belief-panel p { max-width: 750px; margin-inline: auto; }
.testimonials-section { overflow: hidden; background: linear-gradient(135deg, #fffaf1, #fff6f3 58%, #fffaf7); }
.testimonials-intro { max-width: 860px; margin-bottom: 34px; text-align: center; }
.testimonials-intro > p:not(.community-eyebrow):not(.testimonials-disclosure) { max-width: 700px; margin-inline: auto; }
.community-section .testimonials-disclosure { padding: 15px 22px; margin: 24px 0 0; border: 1px solid #ead5ce; border-radius: 14px; background: rgba(255,255,255,.8); color: #66504a; font-size: 14px; line-height: 1.65; }
.testimonials-controls { display: flex; justify-content: center; gap: 10px; margin-top: 23px; }
.testimonials-controls[hidden] { display: none; }
.testimonials-controls .testimonial-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #b63735; border-radius: 50%; color: #b63735; background: #fff; font-size: 23px; line-height: 1; cursor: pointer; }
.testimonials-controls .testimonial-arrow:hover:not(:disabled) { color: #fff; background: #b63735; }
.testimonials-controls .testimonial-arrow:disabled { color: #a88f87; border-color: #dfcbc5; background: #fff9f5; cursor: default; }
.testimonial-arrow:focus-visible, .testimonial-row:focus-visible { outline: 2px solid #7e0606; outline-offset: 3px; }
.testimonial-row { --review-inset: max(24px, calc((100% - 1320px) / 2)); display: flex; gap: 22px; overflow-x: auto; padding: 12px var(--review-inset) 20px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--review-inset); scrollbar-width: thin; scrollbar-color: #d2a9a0 #f6e7e1; }
.testimonial-row + .testimonial-row { --review-inset: max(72px, calc((100% - 1224px) / 2)); margin-top: 4px; }
.testimonial-row .testimonial-card { flex: 0 0 clamp(310px, 28vw, 390px); scroll-snap-align: start; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; padding-top: 10px; }
.testimonial-card { display: flex; flex-direction: column; min-width: 0; min-height: 330px; padding: 26px; border: 1px solid #eadfda; border-radius: 24px; background: #fff; box-shadow: 0 8px 25px rgba(82,35,29,.045); }
.testimonial-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; margin-bottom: 20px; }
.testimonial-stars { color: #c46c08; font-size: 19px; letter-spacing: 1px; line-height: 1; }
.testimonial-sample-label { padding: 4px 9px; border-radius: 20px; color: #8b3833; background: #fff0eb; font-size: 11px; line-height: 1.35; font-weight: 500; }
.community-section .testimonial-theme { margin: 0 0 12px; color: #b63735; font: 700 18px/1.3 "Amaranth", sans-serif; }
.testimonial-card .testimonial-quote { margin: 0 0 26px; padding: 0; border: 0; color: #34302f; font: 400 16px/1.65 "Rubik", sans-serif; }
.testimonial-card .testimonial-quote p { margin: 0; }
.testimonial-quote p::before { content: "“"; }
.testimonial-quote p::after { content: "”"; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background-image: url('/assets/media/testimonial-sample-portraits.png'); background-size: 300% 300%; background-position: var(--avatar-x) var(--avatar-y); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #ead5ce; }
.testimonial-person-copy { min-width: 0; }
.testimonial-card .testimonial-name { margin: 0 0 4px; font-size: 14px; line-height: 1.35; font-weight: 500; color: #342724; }
.testimonial-card .testimonial-profile { margin: 0; font-size: 12px; line-height: 1.5; color: #76645e; }
.testimonials-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 30px; margin-top: 34px; }
@media (max-width: 1024px) {
  .community-section { padding-block: 65px; }
  .community-section .community-heading { font-size: 33px; }
  .team-leaders { gap: 26px; }
  .team-portrait { padding-inline: 18px; }
  .team-portrait img { height: 270px; }
  .team-card-body { padding: 24px; }
  .team-members { gap: 20px; grid-template-columns: minmax(0,1fr); }
  .team-member { width: 100%; max-width: 620px; margin-inline: auto; }
  .team-monogram, .team-member-portrait { height: 190px; }
  .team-member .team-name { font-size: 23px; }
  .team-belief { padding-top: 0; }
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
}
@media (max-width: 767px) {
  .community-container { width: calc(100% - 36px); }
  .community-section { padding-block: 52px; font-size: 16px; }
  .community-section .community-heading { font-size: 29px; }
  .community-intro { margin-bottom: 32px; }
  .team-leaders, .team-members { grid-template-columns: minmax(0,1fr); }
  .team-leaders { gap: 30px; }
  .team-department + .team-department { margin-top: 48px; padding-top: 42px; }
  .community-section .team-department-heading { margin-bottom: 28px; font-size: 27px; }
  .team-portrait img { height: 285px; }
  .team-card-body { padding: 26px; }
  .team-members { gap: 26px; }
  .team-leaders + .team-members { margin-top: 30px; }
  .team-member { max-width: 430px; width: 100%; margin-inline: auto; }
  .team-monogram, .team-member-portrait { height: 210px; }
  .team-belief { padding-top: 0; }
  .team-belief-panel { padding: 38px 24px; border-radius: 24px 60px 24px 24px; }
  .community-section .testimonials-disclosure { padding: 14px 16px; font-size: 13px; }
  .testimonial-row, .testimonial-row + .testimonial-row { --review-inset: 18px; gap: 16px; }
  .testimonial-row .testimonial-card { flex-basis: min(310px, calc(100vw - 54px)); }
  .testimonial-card { padding: 23px; min-height: 330px; border-radius: 20px; }
  .testimonial-grid { grid-template-columns: minmax(0,1fr); }
  .testimonials-actions { gap: 19px; flex-direction: column; }
}
