/* Product photography stays whole at every size, including in dark mode. */
.container.learning-strip { margin: 30px auto; }
.learning-photo-collage { margin: 0; padding: 18px; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1.55; background: linear-gradient(135deg,#e8eeff,#f3f6fb 56%,#e8f3ed); border-radius: 18px; }
.collage-photo { min-width: 0; min-height: 0; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 3px 10px #16234208; }
.collage-photo:first-child { grid-row: 1 / 3; }
.collage-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; flex: 1; }
.collage-photo span { display: block; font-size: 10px; line-height: 1.35; text-align: center; color: #34445d; padding-top: 5px; }
.photo-count-1 { grid-template-columns: 1fr; }
.photo-count-2 .collage-photo:nth-child(2) { grid-row: 1 / 3; }
.learning-family-card > .learning-photo-collage { border-radius: 0; }
.learning-family-card { transition: border-color .18s, box-shadow .18s; }
.learning-family-card:hover { box-shadow: 0 10px 35px #1420420d; }
.family-hero-art { width: 360px; }
.lesson-directory-card { grid-template-columns: minmax(220px,.75fr) minmax(0,1.25fr); align-items: center; padding: 18px; gap: 26px; }
.lesson-directory-card .lesson-topics { grid-column: 2; flex-direction: row; flex-wrap: wrap; justify-content: start; margin-top: -14px; }
.lesson-directory-card .lesson-topics>span { padding: 5px 9px; font-size: 11px; }
.lesson-directory-card > .learning-photo-collage { grid-row: 1 / 3; width: 100%; }
.lesson-directory-card h2 { font-size: 24px; }
.lesson-directory-card p { font-size: 15px; line-height: 1.7; }
.lesson-foundation { grid-template-columns: minmax(0,1fr) 360px; }
.lesson-foundation .lesson-art { position: sticky; top: 100px; }
.lesson-sections > section { overflow: hidden; }
.lesson-photo { margin: 20px 0; }
.lesson-photo img { display: block; width: 100%; height: 220px; object-fit: contain; padding: 18px; background: #fff; border: 1px solid #e4e9f1; border-radius: 14px; }
.lesson-photo figcaption { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 12px; padding-left: 12px; border-left: 3px solid var(--blue); }
.photo-credits { margin: 30px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.photo-credits summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.photo-credits ul { columns: 2; padding-left: 18px; }
.photo-credits li { break-inside: avoid; margin-bottom: 10px; }
.photo-credits a { text-decoration: underline; text-underline-offset: 3px; }
.brand-formats { margin: 36px 0; }
.brand-formats h2 { font-size: clamp(25px,3vw,34px); margin: 12px 0; }
.brand-formats .lesson-table th small { display: block; font-weight: 400; margin: 5px 0; }
.brand-formats .lesson-table th a { display: block; font-size: 12px; color: var(--blue); }
.brand-formats .lesson-table td { min-width: 135px; }
.brand-formats .lesson-table td:last-child { min-width: 220px; }
.format-takeaway { border-left: 4px solid var(--blue); background: var(--soft); padding: 20px 24px; border-radius: 0 14px 14px 0; }
.format-takeaway p { margin-bottom: 0; }
[data-theme=dark] .learning-photo-collage { background: linear-gradient(135deg,#273b58,#1c2a43); }
@media(max-width:1000px) {
 .family-hero-art { width: 300px; }
 .lesson-foundation { grid-template-columns: minmax(0,1fr) 290px; gap: 24px; }
 .learning-photo-collage { padding: 12px; gap: 7px; }
 .collage-photo { padding: 7px; }
}
@media(max-width:760px) {
 .learning-heading { flex-direction: column; align-items: stretch; gap: 16px; }
 .family-hero-art { width: 100%; max-width: 500px; }
 .lesson-directory-card { grid-template-columns: 1fr; gap: 18px; }
 .lesson-directory-card > .learning-photo-collage { grid-row: auto; }
 .lesson-directory-card .lesson-topics { grid-column: 1; margin: 0; }
 .lesson-directory-card h2 { font-size: 22px; }
 .lesson-foundation { display: flex; flex-direction: column; }
 .lesson-foundation .lesson-art { position: static; max-width: 500px; }
 .lesson-summary ol { columns: 1; }
 .photo-credits ul { columns: 1; }
 .lesson-photo img { height: 200px; }
}
@media(prefers-reduced-motion:reduce) { .learning-family-card { transition: none; } }

.topic-figure { background: #10283f; border-radius: 24px; overflow: hidden; }
.learning-figure.topic-figure svg { display: block; width: 100%; min-width: 0; height: auto; }
.topic-figure figcaption { color: #d2e2f0; padding: 18px 24px 22px; margin: 0; font-size: 14px; line-height: 1.7; }
.scene-signal { animation: signal-flow 9s linear infinite; }
.scene-pulse { animation: signal-glow 4s ease-in-out infinite; }
@keyframes signal-flow { to { stroke-dashoffset: -90; } }
@keyframes signal-glow { 50% { opacity: .65; } }
@media(prefers-reduced-motion:reduce) { .scene-signal,.scene-pulse { animation: none; } }
