/* Social Emotional Learning page (School Life section). */

.sel-banner { min-height: 400px; }
.sel-banner img { object-position: center 40%; }
@media (max-width: 700px) { .sel-banner { min-height: 220px; } }

/* Philosophy on the left, the staff photo on the right. */
.sel-head { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .sel-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; } }
.sel-head .label-heading { margin-bottom: 14px; }
.sel-head .lede--strong { margin-bottom: 14px; }
.sel-head p { max-width: 680px; }
.sel-head a { font-weight: 700; }
.sel-photo img { width: 100%; max-width: 460px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.sel-photo__caption { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--warm-400); max-width: 460px; }
@media (max-width: 899px) { .sel-photo img { max-width: 100%; } }

/* Lower School and Middle School side by side. */
/* Each card sits beside its classroom-agreement photo (Karen, Oct 2026). */
.sel-rows { display: grid; gap: 28px; }
.sel-row { display: grid; gap: 20px; align-items: start; }
@media (min-width: 860px) { .sel-row { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; } .sel-row--full { grid-template-columns: minmax(0, 1fr); } }
.sel-row__photo { margin: 0; }
.sel-row__photo img { width: 100%; max-width: 340px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.sel-row__photo figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--warm-400); max-width: 340px; }
.sel-card { background: #fff; border: 1.5px solid var(--sand-deep); border-radius: 10px; padding: clamp(22px, 2.6vw, 32px); box-shadow: 0 2px 12px rgba(22, 35, 58, .06); }
.sel-card .eyebrow { margin: 0 0 8px; }
.sel-card h2 { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; line-height: 1.15; }
.sel-card p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; max-width: none; }
.sel-card p:last-child { margin-bottom: 0; }

/* CASEL wheel on the left, partner logos on the right. */
.sel-framework-section { padding-top: 0; }
.sel-framework-section .sel-back { margin-top: 32px; }
.sel-framework { display: grid; gap: 28px; align-items: start; border-top: 1px solid var(--line); padding-top: 32px; }
@media (min-width: 860px) { .sel-framework { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; } }
.sel-wheel { margin: 0; }
.sel-wheel img { width: 100%; max-width: 440px; height: auto; display: block; }
.sel-wheel figcaption { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--warm-400); max-width: 440px; }
.sel-wheel a { font-weight: 700; }
.sel-partners .label-heading { margin-bottom: 10px; }
.sel-partners > p { margin: 0 0 16px; font-size: 16px; max-width: 520px; }
.sel-partners__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sel-partners__list a { display: flex; align-items: center; justify-content: center; height: 92px; padding: 14px 18px; background: #fff; border: 1.5px solid var(--sand-deep); border-radius: 10px; transition: border-color .16s ease; }
.sel-partners__list a:hover { border-color: var(--brick); }
.sel-partners__list img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sel-partners__more { margin: 14px 0 0; font-size: 15px; color: var(--warm-600); }
.sel-partners__more a { font-weight: 700; }

/* Classroom photos: two across on wide screens. */
/* "Around the school" photo grid (Karen, Nov 2026): equal squares, three across on a computer,
   two on a phone, each with a short caption. */
.sel-gallery__head { margin-bottom: 22px; }
.sel-gallery__head .label-heading { margin-bottom: 8px; }
.sel-gallery__head p { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--navy); max-width: 720px; }
.sel-gallery { display: grid; gap: 14px 12px; align-items: start; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .sel-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; } }
.sel-gallery figure { margin: 0; }
.sel-gallery img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.sel-gallery .sel-gallery__img--whole { object-position: center 60%; }
.sel-gallery .sel-gallery__img--mid { object-position: center 55%; }
.sel-gallery .sel-gallery__img--center { object-position: center 50%; }

/* The anchor paragraphs sit between the philosophy and the two cards. */
/* The rule above this section sits close under the philosophy text (Karen, Oct 2026). */
@media (min-width: 900px) { /* The poster photo is cropped to landscape so it matches the height of the text beside it. */
@media (min-width: 900px) { @media (max-width: 899px) { .sel-back { margin-top: 24px; }
.sel-back a { color: var(--brick); text-decoration: none; }
.sel-back a:hover { text-decoration: underline; }
