/* Give the longer navigation label room while retaining the centered logo. */
@media(min-width:1200px) {
 body #masthead .container .navs-wrapper #primary-menu { width:min(1100px,calc(100% - 176px)); }
}
@media(min-width:901px) and (max-width:1199px) {
 body #masthead .container .navs-wrapper #primary-menu { width:100%; gap:0; }
 body #masthead .container .navs-wrapper #primary-menu > li:nth-child(1) { justify-self:start; }
 body #masthead .container .navs-wrapper #primary-menu > li:nth-child(2) { justify-self:end; margin-right:24px; }
 body #masthead .container .navs-wrapper #primary-menu > li:nth-child(4) { justify-self:start; margin-left:24px; }
 body #masthead .container .navs-wrapper #primary-menu > li:nth-child(5) { justify-self:end; margin-right:60px; }
}
/* Shared intrinsic grid rows adopt the tallest card's content height. This
   stays equal across desktop rows and grows safely with fonts or text zoom. */
body #page .testimonials-page { padding:110px 0 32px; background:var(--cactus-content-background,#302e2b); }
/* Match Contact's upright heading and responsive scale, with its compact gap. */
body #page #testimonials-title { font:400 clamp(26px,2.2vw,36px)/1.25 'ivymode',sans-serif; color:#fff; text-transform:none; letter-spacing:0; text-align:center; max-width:calc(100% - 40px); margin:0 auto 25px; }
@media(max-width:1199px) { body #page .testimonials-page { padding-top:106px; } }
@media(max-width:650px) { body #page #testimonials-title { font-size:28px; } }
body #page .testimonial-collection { display:grid; grid-auto-rows:1fr; gap:16px; width:94%; max-width:1640px; margin:0 auto; }
body #page .testimonial-row { display:grid; gap:16px; min-width:0; }
body #page .testimonial-row:nth-child(1) { grid-template-columns:18fr 48fr 34fr; margin:0 2% 0 3%; }
body #page .testimonial-row:nth-child(2) { grid-template-columns:28fr 44fr 28fr; margin:0 4% 0 0; }
body #page .testimonial-row:nth-child(3) { grid-template-columns:40fr 23fr 37fr; margin:0 0 0 4%; }
body #page .testimonial-row:nth-child(4) { grid-template-columns:25fr 44fr 31fr; margin:0 3% 0 1%; }
body #page .testimonial { min-width:0; margin:0; padding:16px 18px; border-radius:14px; background:#5b5753; color:#eeeae3; font:400 1rem/1.45 'Instrument Sans',sans-serif; letter-spacing:0; text-transform:none; overflow-wrap:break-word; }
body #page .testimonial blockquote { margin:0; padding:0; border:0; color:inherit; background:none; font:inherit; }
body #page .testimonial blockquote::before,body #page .testimonial blockquote::after { content:none; }
body #page .testimonial blockquote p { margin:0; color:inherit; font:inherit; letter-spacing:0; text-transform:none; }
body #page .testimonial figcaption { display:flex; align-items:center; gap:10px; margin-top:12px; color:#d2c8ae; font:inherit; text-align:left; }
body #page .testimonial figcaption img { display:block; flex:0 0 40px; width:40px; height:40px; object-fit:contain; margin:0; }
body #page .testimonial-portrait { display:block; position:relative; flex:0 0 40px; width:40px; height:40px; overflow:hidden; border-radius:50%; }
body #page .testimonial .testimonial-portrait img { position:absolute; width:80px; height:80px; max-width:none; left:-36px; top:-10px; object-fit:cover; }
body #page #testimonial-lori-carroll .testimonial-portrait img { left:-40px; top:-4px; }
body #page .testimonial-identity { display:block; min-width:0; }
body #page .testimonial-name { display:block; font-weight:700; }
body #page .testimonial-affiliation { display:block; font-size:.875em; line-height:1.4; font-weight:400; }
@media(max-width:1100px) {
 body #page .testimonial-collection { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:auto; align-items:start; max-width:940px; }
 body #page .testimonial-row { display:contents; }
}
@media(max-width:900px) {
 body #page .testimonials-page { padding-top:100px; }
}
@media(max-width:650px) {
 body #page .testimonials-page { padding-top:90px; padding-bottom:24px; }
 body #page .testimonial-collection { grid-template-columns:minmax(0,1fr); width:92%; }
}
/* The common card geometry is measured from the accepted 16px quote / 16px
   name / 14px affiliation flow. Only quote text is enlarged inside that box. */
body #page .testimonial { display:flex; flex-direction:column; }
body #page .testimonial blockquote { margin-bottom:12px; }
body #page .testimonial figcaption { font-size:.875rem; line-height:1.45; margin-top:auto; }
body #page .testimonial-affiliation { font-size:.875em; }
body #page .testimonial-collection[data-quote-fit="ready"] .testimonial { height:var(--testimonial-card-height); box-sizing:border-box; display:flex; flex-direction:column; }
body #page .testimonial-collection[data-quote-fit="ready"] blockquote { flex:1 1 0; min-height:0; margin-bottom:0; }
body #page .testimonial-collection[data-quote-fit="ready"] figcaption { flex:0 0 auto; margin-top:12px; }
body #page .testimonial-collection[data-quote-fit="ready"] blockquote p { line-height:1.45; overflow-wrap:normal; }
body #page .testimonial-collection.testimonial-measurement { position:absolute; top:0; left:0; visibility:hidden; pointer-events:none; margin:0; }
body #page .testimonial-measurement .testimonial { display:block; height:auto; }
body #page .testimonial blockquote p { font-family:"Instrument Sans",sans-serif; font-weight:400; font-style:normal; }
body #page .testimonial figcaption { font-family:Inter,sans-serif; }
/* Preserve the accepted geometry independently of the displayed card fonts. */
body #page .testimonial-measurement blockquote p { font:400 1rem/1.45 'Instrument Sans',sans-serif; overflow-wrap:break-word; }
body #page .testimonial-measurement blockquote { margin-bottom:0; }
body #page .testimonial-measurement figcaption { font-family:"Instrument Sans",sans-serif; font-size:1rem; margin-top:12px; }
