/* Scoped biography presentation; existing program, forms and navigation are unchanged. */
.ipaa-youth, .ipaa-youth-dialog { color: #182e2b; font-size: 17px; line-height: 1.6; }
.ipaa-youth *, .ipaa-youth-dialog * { box-sizing: border-box; }
.ipaa-youth { background: #fff; padding: 0; }
.ipaa-youth__body { background: #b2d8d1 url('/wp-content/uploads/2025/04/youth-council-bg-waves-scaled.jpg') center top / cover no-repeat; padding: 32px 0 80px; }
.ipaa-youth__inner { width: min(1160px, 92%); margin: 0 auto; }
/* Match the original program's 250px Brick title and top-left, cover-sized snake overlay. */
.ipaa-youth__header, .ipaa-youth__header .title { height: 250px; background: #fff; }
.ipaa-youth__header .title_overlay { background-size: cover; background-repeat: no-repeat; background-position: 0 0; }
.ipaa-youth__header .title_holder { height: 100%; }
.ipaa-youth__header .title h1 { font-family: 'Fjalla One', sans-serif; font-size: 45px; line-height: 50px; font-weight: 500; color: #9b0a2b; margin: 8px 0; text-transform: uppercase; letter-spacing: 2px; word-break: normal; opacity: 1; }
.ipaa-youth__parent { color: #7d0823; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.ipaa-youth__tagline { color: #233d38; font-size: 19px; margin: 0; }
.ipaa-youth__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.ipaa-youth__card { min-width: 0; background: #edf7f3; border-radius: 12px; box-shadow: 0 9px 28px rgba(23,58,49,.16); }
.ipaa-youth__front { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #b2d8d1; }
.ipaa-youth img.ipaa-youth__portrait { display: block; width: 100%; height: 100%; object-fit: cover; }
.ipaa-youth__front h2 { position: absolute; inset: auto 0 0; padding: 16px 22px; color: #fff; font-size: 28px; line-height: 1.15; text-align: left; text-shadow: none; background: #9b0a2b; text-transform: none; letter-spacing: 0; }
body.ipaa-youth-bios-page #youth-biographies .ipaa-youth__card .ipaa-youth__front h2 { color: #ffffff !important; }
.ipaa-youth__back { padding: 25px; background: #edf7f3; border: 2px solid #9b0a2b; border-radius: 12px; }
.ipaa-youth__back h3 { color: #9b0a2b; text-transform: none; font-size: 25px; line-height: 1.2; letter-spacing: 0; margin: 0 0 12px; }
.ipaa-youth__excerpt { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ipaa-youth__excerpt p { color: #182e2b; font-size: 16px; line-height: 1.55; margin-bottom: 12px; }
.ipaa-youth__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 14px; }
.ipaa-youth a.ipaa-youth__more, .ipaa-youth__return, .ipaa-youth-dialog__close { border: 0; border-radius: 5px; padding: 10px 15px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ipaa-youth a.ipaa-youth__more, .ipaa-youth-dialog__close { background: #9b0a2b; color: #fff; }
.ipaa-youth__return { background: transparent; color: #7d0823; text-decoration: underline; }
.ipaa-youth a.ipaa-youth__more:hover, .ipaa-youth-dialog__close:hover { background: #66c9d6; color: #152b28; }
.ipaa-youth :focus-visible, .ipaa-youth-dialog :focus-visible { outline: 3px solid #9b0a2b; outline-offset: 4px; }
.ipaa-youth__flip:focus-visible { outline-offset: -6px; outline-color: #fff; box-shadow: inset 0 0 0 10px #9b0a2b; }
.ipaa-youth__flip { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; color: #fff; cursor: pointer; }
.ipaa-youth__flip span { position: absolute; top: 14px; right: 14px; background: #9b0a2b; border-radius: 30px; padding: 7px 12px; font: 600 13px/1.3 sans-serif; }
.ipaa-youth__flip span span { position: static; padding: 0; }
.ipaa-youth [hidden] { display: none !important; }
.ipaa-youth__full { padding: 20px; }
.ipaa-youth__full summary { cursor: pointer; color: #7d0823; font-weight: 700; }
.ipaa-youth__biography p { margin: 0 0 1.2em; color: inherit; font-size: inherit; line-height: inherit; }
.ipaa-youth--interactive .ipaa-youth__turn { position: relative; aspect-ratio: 1; perspective: 1200px; }
.ipaa-youth--interactive .ipaa-youth__front, .ipaa-youth--interactive .ipaa-youth__back { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .45s ease, visibility .45s; }
.ipaa-youth--interactive .ipaa-youth__back { display: flex; flex-direction: column; transform: rotateY(-180deg); visibility: hidden; }
.ipaa-youth--interactive .ipaa-youth__excerpt { flex: 1; }
.ipaa-youth--interactive .is-flipped .ipaa-youth__front { transform: rotateY(180deg); visibility: hidden; }
.ipaa-youth--interactive .is-flipped .ipaa-youth__back { transform: rotateY(0); visibility: visible; }
.ipaa-youth__pagination { display: flex; justify-content: center; gap: 24px; padding: 32px 0 0; }
.ipaa-youth__pagination a { color: #7d0823; text-decoration: underline; }
.ipaa-youth__empty { text-align: center; padding: 30px; }
.ipaa-youth-dialog { position: fixed; inset: 0; width: min(760px, 92vw); max-height: 85vh; max-height: 85dvh; margin: auto; padding: clamp(24px, 5vw, 48px); border: 0; border-top: 8px solid #9b0a2b; border-radius: 12px; background: #f6fbf8; box-shadow: 0 20px 90px #0006; overflow-y: auto; overscroll-behavior: contain; }
.ipaa-youth-dialog:not([open]) { display: none; }
.ipaa-youth-dialog::backdrop { background: rgba(12,31,28,.78); }
.ipaa-youth-dialog h2 { clear: both; color: #9b0a2b; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; text-transform: none; letter-spacing: 0; margin: 24px 0; }
.ipaa-youth-dialog__close { float: right; }
body.ipaa-youth-modal-open { overflow: hidden; }
@media (max-width: 1000px) { .ipaa-youth__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 600px) { .ipaa-youth__grid { grid-template-columns: minmax(0, 1fr); } .ipaa-youth__inner { max-width: 480px; } .ipaa-youth__header .title h1 { font-size: 32px; line-height: 1.2; } .ipaa-youth__back { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .ipaa-youth--interactive .ipaa-youth__front, .ipaa-youth--interactive .ipaa-youth__back { transition: none; } }

/* Biography actions share sizing; the blog link stays at the right edge when rows wrap. */
#youth-biographies .ipaa-youth__actions { gap: 6px; flex-shrink: 0; }
#youth-biographies .ipaa-youth__actions > :is(a, button) { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 10px 8px; border: 1px solid #9b0a2b; border-radius: 5px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.4; white-space: nowrap; text-decoration: none; cursor: pointer; }
#youth-biographies .ipaa-youth__return, #youth-biographies .ipaa-youth__blog { background: transparent; color: #9b0a2b; }
#youth-biographies .ipaa-youth__blog { margin-left: auto; }
#youth-biographies .ipaa-youth__return:hover, #youth-biographies .ipaa-youth__blog:hover { background: #9b0a2b; color: #fff; }
