/**
 * AFAM Showcase: testimonials (grid, slider, featured) and partners (carousel, grid).
 * Author: Kiriago <kiryc0de@gmail.com> (https://github.com/kirycode/)
 */
.afam-sc-btn { min-width: 44px; min-height: 44px; border: 2px solid var(--afam-green-600, #336600); border-radius: 50%; background: #fff; color: var(--afam-green-600, #336600); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.afam-sc-btn:hover { background: var(--afam-green-600, #336600); color: #fff; }
.afam-sc-btn:focus-visible { outline: none; box-shadow: var(--afam-focus-ring, 0 0 0 3px #0c643a); }

/* Testimonials */
.afam-t { margin: 0; display: flex; flex-direction: column; gap: 16px; height: 100%; box-sizing: border-box; }
.afam-t .afam-t__quote { margin: 0; padding: 0; border: 0; background: none; font-style: normal; color: var(--afam-ink-900, #1a1a1a); }
.afam-t .afam-t__quote p { margin: 0 0 8px; font-size: 1rem; line-height: 1.65; color: var(--afam-ink-900, #1a1a1a); }
.afam-t .afam-t__quote::before { content: "\201C"; display: block; font-family: var(--afam-font-head, serif); font-size: 3rem; line-height: 0.6; color: var(--afam-orange-500, #e06c17); }
.afam-t__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.afam-t__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.afam-t__who > span { display: flex; flex-direction: column; }
.afam-t__name { color: var(--afam-green-900, #084c2c); }
.afam-t__role { font-size: 0.875rem; color: var(--afam-ink-700, #444); }
.afam-t__stars { color: var(--afam-gold-500, #cbae2d); letter-spacing: 2px; font-size: 0.95rem; }
.afam-t-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .afam-t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .afam-t-grid { grid-template-columns: minmax(0, 1fr); } }
.afam-t-featured .afam-t { max-width: 820px; margin: 0 auto; text-align: center; align-items: center; }
.afam-t-featured .afam-t__quote p { font-family: var(--afam-font-head, serif); font-size: 1.5rem; line-height: 1.5; }
.afam-t-featured .afam-t__who { justify-content: center; }
.afam-t-slider__track { position: relative; }
.afam-t-slider .afam-t-slide { display: none; max-width: 820px; margin: 0 auto; }
.afam-t-slider .afam-t-slide.is-active { display: flex; }
.afam-t-slider.is-static .afam-t-slide { display: flex; margin-bottom: 16px; }
.afam-t-slider__nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; }
.afam-t-slider__count { min-width: 3.5em; text-align: center; font-weight: 700; color: var(--afam-green-900, #084c2c); }

/* Partners */
.afam-p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; align-items: center; }
.afam-p { display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.afam-p a { display: inline-flex; }
.afam-p a:focus-visible { outline: none; box-shadow: var(--afam-focus-ring, 0 0 0 3px #0c643a); border-radius: 4px; }
.afam-p__logo { display: block; max-width: 170px; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.afam-p__name { font-weight: 700; color: var(--afam-green-900, #084c2c); text-align: center; }
.afam-p-carousel { position: relative; padding: 8px 0 8px 0; }
.afam-p-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.afam-p-track { display: flex; align-items: center; gap: 48px; width: max-content; margin: 0; padding: 8px 0; list-style: none; animation: afam-marquee 40s linear infinite; }
.afam-p-viewport:hover .afam-p-track,
.afam-p-viewport:focus-within .afam-p-track,
.afam-p-carousel.is-paused .afam-p-track { animation-play-state: paused; }
@keyframes afam-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 24px)); } }
/* Reduced motion: no scrolling, a static wrapped grid, duplicates hidden */
@media (prefers-reduced-motion: reduce) {
	.afam-p-viewport { -webkit-mask-image: none; mask-image: none; }
	.afam-p-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 24px 40px; }
	.afam-p-track .afam-p[aria-hidden="true"] { display: none; }
	.afam-p-toggle { display: none; }
}

/* ===== U-012 refinements (DES-036, DES-037) ===== */
/* Small, themed controls shared by the testimonial slider and the partner carousel */
.afam-sc-btn { width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-width: 1.5px; font-size: 0; position: relative; }
.afam-sc-btn::after { content: ""; position: absolute; inset: -4px; } /* 44 px touch target around the 36 px control */
.afam-sc-btn:focus-visible { outline: 3px solid var(--afam-green-600, #336600); outline-offset: 2px; box-shadow: none; }
.afam-p-controls { display: flex; justify-content: flex-end; margin-top: 4px; }
.afam-p-toggle { position: relative; right: auto; top: auto; }
.afam-p-toggle .i-play { display: none; }
.afam-p-toggle[aria-pressed="true"] .i-play { display: block; }
.afam-p-toggle[aria-pressed="true"] .i-pause { display: none; }
.afam-p-toggle[aria-pressed="true"] { background: var(--afam-green-600, #336600); color: #fff; }

/* Testimonials: editorial card, one quote at a time, all slides share one cell so the height never jumps */
.afam-t-slider .afam-t-slider__track { display: grid; }
.afam-t-slider .afam-t-slide, .afam-t-slider .afam-t-slide.is-active { display: flex; grid-area: 1 / 1; max-width: none; margin: 0; visibility: hidden; opacity: 0; transition: opacity 300ms ease; }
.afam-t-slider .afam-t-slide.is-active { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .afam-t-slider .afam-t-slide { transition: none; } }
.afam-t-slider .afam-t { padding: 0; border: 0; background: none; box-shadow: none; gap: 20px; }
.afam-t .afam-t__quote::before { content: "\201C"; font-size: 4.5rem; line-height: 0.7; color: var(--afam-gold-500, #cbae2d); height: 0.5em; }
.afam-t .afam-t__quote p { font-family: var(--afam-font-head, Georgia, serif); font-size: 1.1875rem; line-height: 1.6; font-weight: 400; }
.afam-t__who { gap: 14px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.afam-t .afam-t__name { display: block; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; }
.afam-t .afam-t__role { display: block; margin-top: 2px; font-size: 0.875rem; font-style: normal; }
.afam-t-slider__nav { justify-content: flex-start; gap: 12px; margin-top: 20px; }
.afam-t-slider__count { order: 0; min-width: 3em; text-align: left; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.afam-t-slider__bar { order: 1; flex: 1 1 auto; height: 2px; background: rgba(255, 255, 255, 0.25); position: relative; }
.afam-t-slider__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--afam-gold-500, #cbae2d); transition: width 300ms ease; }
.afam-t-slider__nav .afam-sc-btn { order: 2; }
/* On the dark testimonial card (home) everything reads light on green */
.afam-duo__quote .afam-t .afam-t__quote p, .afam-duo__quote .afam-t .afam-t__name { color: #fff; }
.afam-duo__quote .afam-t .afam-t__role, .afam-duo__quote .afam-t-slider__count { color: #e8f0e2; }
.afam-duo__quote .afam-sc-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.afam-duo__quote .afam-sc-btn:hover { background: #fff; color: var(--afam-green-900, #084c2c); }
.afam-duo__quote .afam-sc-btn:focus-visible { outline-color: #fff; }

/* ---- self-review fixes (round 1) ---- */
.afam-t .afam-t__quote p { font-weight: 400; font-size: 1.125rem; font-style: italic; }
.afam-t .afam-t__quote::before { display: block; height: 36px; margin-bottom: 4px; font-size: 5rem; line-height: 1; overflow: visible; }
.afam-t, .afam-t * { border-bottom: 0; }
.afam-t::after, .afam-t__who::after { content: none; }

.afam-showcase .afam-t .afam-t__quote { padding: 44px 0 0; position: relative; }
.afam-showcase .afam-t .afam-t__quote::before { position: absolute; top: 0; left: -2px; display: block; height: auto; margin: 0; font-size: 4.5rem; line-height: 1; }
.afam-t .afam-t__quote p { font-size: 1.0625rem; }

.afam-showcase .afam-t .afam-t__quote p, .afam-showcase .afam-t .afam-t__quote p strong { font-weight: 400 !important; } /* !important: the legacy theme bolds blockquote paragraphs */

.afam-showcase .afam-t .afam-t__quote, .afam-showcase .afam-t .afam-t__quote p { margin-left: 0 !important; padding-left: 0 !important; border-left: 0 !important; text-indent: 0 !important; } /* !important: the legacy theme indents blockquotes */
.afam-showcase .afam-t .afam-t__quote p { margin-bottom: 0.75em; }
.afam-showcase .afam-t .afam-t__quote p { font-style: italic !important; } /* !important: the legacy theme resets blockquote style; the italic is the only regular-weight serif that is self-hosted */
.afam-showcase .afam-t .afam-t__quote p { font-size: 1.125rem; line-height: 1.65; }

/* DES-047 (U-014): circular 68 px avatar with a 3 px gold ring; initials on a green circle when there is no photo */
.afam-t__who { align-items: center; gap: 16px; }
.afam-t__avatar { display: inline-flex; flex: 0 0 auto; width: 68px; height: 68px; border-radius: 50%; padding: 3px; box-sizing: border-box; background: var(--afam-gold-500, #cbae2d); overflow: hidden; }
.afam-t__avatar picture { display: block; width: 100%; height: 100%; }
.afam-t .afam-t__avatar .afam-t__photo { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 0; }
.afam-t__initials { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--afam-green-600, #336600); color: #fff; font-style: normal; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; }

/* U-025b: Member Spotlight landing */
.afam-sp { --sp-d: #084c2c; --sp-g: #0C643A; --sp-o: #E06C17; max-width: 74rem; margin: 0 auto; color: #222; }
.afam-sp *, .afam-sp *::before, .afam-sp *::after { box-sizing: border-box; }
.afam-sp__eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8f4208; }
.afam-sp__eyebrow::after { content: ""; width: 3.5rem; height: 2px; background: var(--sp-o); border-radius: 2px; }
.afam-sp__feature { display: grid; grid-template-columns: minmax(0, 26rem) 1fr; overflow: hidden; border: 1px solid rgba(12, 100, 58, .14); border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(8, 76, 44, .14); }
.afam-sp__fvis { display: block; background: linear-gradient(145deg, #084c2c, #0C643A); }
.afam-sp__fimg { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.afam-sp__fbody { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem 2.6rem; border-left: 5px solid var(--sp-o); }
.afam-sp__badge { align-self: flex-start; margin: 0 0 1rem; padding: .3rem .85rem; border-radius: 6px; background: #FDF3E7; border: 1px solid rgba(224, 108, 23, .25); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8f4208; }
.afam-sp .afam-sp__fh { margin: 0 0 .7rem; font-family: var(--afam-font-head, Merriweather, serif); font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.3; color: var(--sp-d); }
.afam-sp .afam-sp__fh a { color: inherit; text-decoration: none; }
.afam-sp .afam-sp__fh a:hover { text-decoration: underline; }
.afam-sp__fmeta { margin: 0 0 1rem; font-size: .9rem; color: #555; }
.afam-sp__fsum { margin: 0 0 1.6rem; line-height: 1.75; color: #444; }
.afam-sp__btn { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .75rem 1.6rem; border-radius: 10px; background: var(--sp-d); color: #fff !important; font-weight: 700; text-decoration: none; transition: transform .15s, opacity .2s; }
.afam-sp__btn:hover { opacity: .9; transform: translateY(-1px); }
.afam-sp__archive { padding-top: 3.5rem; }
.afam-sp__ahead { display: flex; align-items: center; gap: 1.2rem; margin: 0 0 1.5rem; }
.afam-sp .afam-sp__ahead h2 { margin: 0; font-family: var(--afam-font-head, Merriweather, serif); font-size: 1.6rem; color: var(--sp-d); white-space: nowrap; }
.afam-sp__rule { flex: 1; height: 1px; background: rgba(12, 100, 58, .16); }
.afam-sp__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.afam-sp__tab { min-height: 44px; padding: .5rem 1.4rem; border: 1.5px solid rgba(12, 100, 58, .2); border-radius: 100px; background: #fff; font: inherit; font-size: .9rem; font-weight: 700; color: #444; cursor: pointer; transition: background .18s, color .18s; }
.afam-sp__tab:hover, .afam-sp__tab.is-active { background: var(--sp-d); border-color: var(--sp-d); color: #fff; }
.afam-sp__tab:focus-visible, .afam-sp__btn:focus-visible, .afam-sp__card a:focus-visible { outline: 3px solid #E06C17; outline-offset: 2px; }
.afam-sp__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; }
.afam-sp__card { margin: 0; }
.afam-sp__card[hidden] { display: none; }
.afam-sp__card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid rgba(12, 100, 58, .14); border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(8, 76, 44, .06); color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.afam-sp__card a:hover { box-shadow: 0 10px 26px rgba(8, 76, 44, .14); transform: translateY(-3px); }
.afam-sp__thumb { position: relative; display: block; background: linear-gradient(145deg, #084c2c, #0C643A); }
.afam-sp__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.afam-sp__ini { display: grid; place-items: center; aspect-ratio: 1 / 1; font-size: 2.4rem; font-weight: 800; color: #f3e7a6; }
.afam-sp__tag { position: absolute; top: .75rem; left: .75rem; padding: .25rem .65rem; border-radius: 6px; background: #8f4208; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.afam-sp__cbody { display: flex; flex: 1; flex-direction: column; gap: .3rem; padding: 1.1rem 1.3rem 1.3rem; }
.afam-sp__cname { font-family: var(--afam-font-head, Merriweather, serif); font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--sp-d); }
.afam-sp__caffil { font-size: .875rem; line-height: 1.45; color: #555; }
.afam-sp__clink { margin-top: auto; padding-top: .7rem; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8f4208; }
@media (max-width: 800px) {
	.afam-sp__feature { grid-template-columns: 1fr; }
	.afam-sp__fbody { padding: 1.8rem 1.4rem; border-left: 0; border-top: 5px solid var(--sp-o); }
}
.afam-sp .afam-sp__card a, .afam-sp .afam-sp__card a *, .afam-sp .afam-sp__btn { text-decoration: none !important; }

/* ---------- Member Spotlight type (U-027 B3): person cards, archive, profile ---------- */
.afam-spc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1024px) { .afam-spc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .afam-spc-grid { grid-template-columns: minmax(0, 1fr); } }
.afam-spc { margin: 0; }
.afam-spc article { display: flex; flex-direction: column; height: 100%; border: 1px solid #dfe8d8; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 6px 20px rgba(8, 76, 44, 0.06); }
.afam-spc__vis { display: block; background: #eef3ea; }
.afam-spc__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #eef3ea; }
.afam-spc__img.afam-sp__ini { display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; color: #084c2c; }
.afam-spc__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; flex: 1; }
.afam-spc__name { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.afam-spc__name a { color: #084c2c; text-decoration: none; }
.afam-spc__name a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.afam-spc__meta { margin: 0; color: #3f4f49; font-size: 0.9375rem; }
.afam-spc__country { margin: 0; color: #5c4400; font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; }
.afam-spc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.afam-spc__tags li { padding: 2px 10px; border-radius: 999px; background: #e3efd9; color: #1f4d08; font-size: 0.8125rem; font-weight: 600; }
.afam-spc__more { margin-top: auto; padding-top: 10px; color: #336600; font-weight: 700; text-decoration: none; }
.afam-spc__more:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.afam-spc a:focus-visible, .afam-spp a:focus-visible { outline: 3px solid #084c2c; outline-offset: 2px; }
.afam-spc-all { margin: 24px 0 0; text-align: center; }
.afam-spp { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; max-width: 1100px; margin: 0 auto; padding: 40px 20px 0; }
@media (max-width: 800px) { .afam-spp { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.afam-spp__side .afam-spp__img { display: block; width: 100%; height: auto; border-radius: 14px; background: #eef3ea; }
.afam-spp__side .afam-spp__img.afam-sp__ini { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-size: 4rem; font-weight: 700; color: #084c2c; }
.afam-spp .afam-spp__h { margin: 24px 0 10px; font-size: 1.25rem; color: #084c2c; font-family: var(--afam-font-head, serif); }
.afam-spc__tags--all { margin-top: 0; }
.afam-spp__quote { margin: 0 0 22px; padding: 6px 0 6px 20px; border-left: 4px solid #cbae2d; font-family: var(--afam-font-head, serif); font-size: 1.375rem; line-height: 1.5; font-style: italic; color: #084c2c; }
.afam-spp__quote p { margin: 0; }
.afam-spp__bio { margin: 0 0 18px; font-size: 1.1875rem; line-height: 1.7; }
.afam-spp__body { font-size: 1.0625rem; line-height: 1.7; overflow-wrap: anywhere; }
.afam-spp__links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.afam-spp__links a { display: inline-block; min-height: 44px; padding: 10px 18px; border: 2px solid #336600; border-radius: 8px; color: #336600; font-weight: 700; text-decoration: none; }
.afam-spp__links a:is(:hover, :focus-visible) { background: #336600; color: #fff; }
.afam-spc-wrap { container-type: inline-size; }
@container (max-width: 700px) { .afam-spc-grid { grid-template-columns: minmax(0, 1fr); } }
.afam-spc-all .afam-sp__btn { display: inline-block; min-height: 44px; padding: 10px 18px; border: 2px solid #336600; border-radius: 8px; color: #336600; font-weight: 700; text-decoration: none; }
.afam-spc-all .afam-sp__btn:is(:hover, :focus-visible) { background: #336600; color: #fff; }
