/* Shared section-heading alignment for Daycare, TKIT, SDIT, and SMPIT. */
.ig-embed-card { overflow: hidden; background: #fff; border: 1px solid #e8e1d5; border-radius: 20px; box-shadow: 0 12px 30px rgba(44,36,24,.08); }
.ig-embed-card[hidden] { display: none; }
.ig-embed-heading, .ig-embed-footer { padding: 15px 18px; }
.ig-embed-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ig-embed-heading span { font-size: .8rem; color: #81776a; }
.ig-embed-card iframe { display: block; width: 100%; height: 520px; border: 0; background: #faf8f3; }
.ig-embed-footer p { margin: 0 0 8px; line-height: 1.5; }
.ig-embed-footer a { color: #a65300; font-weight: 700; }
.section-head.line-head,
.section-head.light-head {
    width: 100%;
    max-width: none;
    align-items: flex-end;
    gap: clamp(28px, 5vw, 72px);
}
.section-head.line-head > div,
.section-head.light-head > div {
    min-width: 0;
    max-width: 860px;
}
.section-head.line-head h2,
.section-head.light-head h2 {
    max-width: 860px;
    text-wrap: balance;
}
.section-head.line-head > .text-link,
.section-head.light-head > .text-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 42px;
    margin-bottom: 5px;
    padding: 9px 15px;
    border: 1px solid rgba(20, 92, 57, .18);
    border-radius: 9px;
    background: rgba(255,255,255,.78);
    line-height: 1.2;
    white-space: nowrap;
}
.section-head.light-head > .text-link {
    border-color: rgba(255,255,255,.26);
    color: var(--primary-dark);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

/* Remove the old decorative strokes that crossed banners and headings. */
.eyebrow::before,
.page-banner::before,
.page-banner::after { display: none !important; }

/* Consistent title rhythm across every public page of the four units. */
.page-banner .shell,
.section-head,
.intro-grid > div,
.story-grid > div,
.contact-grid > div {
    min-width: 0;
}
.page-banner h1,
.section-head h2,
.intro-grid h2,
.story-grid h2,
.contact-grid h2,
.brochure-row h2,
.album-card h2,
.card-copy h2 {
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.page-banner h1 { max-width: 900px; }
.page-banner p,
.section-head > p,
.section-head > div > p {
    max-width: 720px;
    line-height: 1.72;
}
.section-head h2 { margin-top: 10px; line-height: 1.08; }

/* Contact presentation shared by all units. */
.contact-grid {
    grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
    gap: clamp(28px, 5vw, 66px);
    align-items: stretch;
}
.contact-grid > div:first-child {
    padding: clamp(25px, 4vw, 40px);
    border: 1px solid rgba(20, 92, 57, .13);
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 44px rgba(28,45,35,.09);
}
.contact-grid h2 { margin-bottom: 22px; }
.contact-grid dl { gap: 0; margin: 0; }
.contact-grid dl > div { min-width: 0; }
.contact-grid dt {
    margin-top: 13px;
    color: var(--primary-dark);
    letter-spacing: .08em;
}
.contact-grid dd {
    margin: 4px 0 13px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(20, 92, 57, .11);
    color: var(--ink);
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.contact-grid .social-links { margin-top: 20px; }
.contact-grid .social-links a {
    min-height: 40px;
    padding: 9px 14px;
    border-color: rgba(20, 92, 57, .15);
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--soft);
}
.contact-grid .map-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(28,45,35,.12);
}
.contact-grid .map-card iframe {
    min-height: 390px;
    flex: 1 1 auto;
    border-radius: 11px;
}
.contact-grid .map-card .button { width: 100%; }

/* One polished footer system shared by Daycare, TKIT, SDIT, and SMPIT. */
.unit-site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: clamp(50px, 6vw, 72px);
    background-color: var(--primary-dark) !important;
    background-image:
        linear-gradient(112deg, rgba(3, 27, 18, .94), rgba(3, 35, 22, .78)),
        var(--footer-photo, none) !important;
    background-position: center !important;
    background-size: cover !important;
}
.unit-site-footer::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 13% 8%, rgba(255, 203, 58, .13), transparent 28%),
        linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, .18));
    content: '';
    pointer-events: none;
}
.unit-footer-grid {
    grid-template-columns: minmax(260px, 1.35fr) minmax(120px, .72fr) minmax(210px, 1fr) minmax(180px, .95fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: start;
    padding-bottom: 44px;
}
.unit-footer-grid section { min-width: 0; }
.unit-footer-grid h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 18px;
    color: #fff;
    font-size: .76rem;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.unit-footer-grid h2::after {
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    content: '';
}
.unit-footer-brand .footer-brand { margin-bottom: 17px; }
.unit-footer-brand > p {
    max-width: 390px;
    margin: 0 0 19px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.72;
}
.unit-footer-nav,
.unit-footer-contact { display: grid; align-content: start; }
.unit-footer-nav a,
.unit-footer-contact a {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 30px;
    align-items: center;
    color: rgba(255, 255, 255, .76);
    line-height: 1.45;
    overflow-wrap: anywhere;
    transition: color .2s ease, transform .2s ease;
}
.unit-footer-nav a:hover,
.unit-footer-contact a:hover {
    color: #fff;
    transform: translateX(3px);
}
.unit-footer-social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.unit-footer-social .unit-social-link {
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    background: rgba(255, 255, 255, .055);
}
.unit-site-footer .footer-bottom {
    margin: 0;
    padding: 18px max(20px, calc((100vw - 1180px) / 2));
    border-top: 1px solid rgba(255, 255, 255, .11);
    background: rgba(0, 0, 0, .18);
    color: rgba(255, 255, 255, .62);
    text-align: center;
}

/* Shared gallery and SPMB presentation for Daycare, TKIT, SDIT, and SMPIT. */
.unit-gallery-social .section-head,
.unit-gallery-archive .section-head { max-width: 720px; }
.unit-gallery-instagram-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unit-social-empty { padding: 34px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.unit-social-empty strong { display: block; color: var(--primary-dark); font-size: 1.1rem; }
.unit-social-empty p { margin: 8px 0 0; color: var(--muted); }

.unit-spmb-hero { position: relative; overflow: hidden; padding: 72px 0; color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.unit-spmb-hero::before { position: absolute; inset: 0; opacity: .14; background: url('../images/ornament-light.svg') center/130px; content: ''; pointer-events: none; }
.unit-spmb-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .8fr); gap: 58px; align-items: center; }
.unit-spmb-hero h2 { max-width: 700px; margin: 14px 0 18px; color: #fff; font: 700 clamp(2.2rem, 4.6vw, 4.4rem)/1.04 'El Messiri', Segoe UI, sans-serif; }
.unit-spmb-hero p { max-width: 660px; color: rgba(255,255,255,.83); font-size: 1.03rem; }
.unit-spmb-hero img { width: 100%; aspect-ratio: 4/3; border: 8px solid rgba(255,255,255,.13); border-radius: 18px; object-fit: cover; box-shadow: 0 28px 65px rgba(0,0,0,.24); }
.unit-spmb-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.unit-spmb-steps article { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 26px rgba(30,35,25,.06); }
.unit-spmb-steps b { display: inline-grid; width: 42px; height: 42px; border-radius: 50%; place-items: center; color: #fff; background: var(--primary); }
.unit-spmb-steps h3 { margin: 17px 0 8px; font-family: 'El Messiri', Segoe UI, sans-serif; font-size: 1.25rem; line-height: 1.2; }
.unit-spmb-steps p { margin: 0; color: var(--muted); font-size: .88rem; }
.unit-spmb-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 68px; align-items: start; }
.unit-spmb-requirements { display: grid; gap: 10px; padding: 0; list-style: none; }
.unit-spmb-requirements li { position: relative; padding: 14px 16px 14px 48px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.unit-spmb-requirements li::before { position: absolute; top: 13px; left: 15px; display: grid; width: 23px; height: 23px; border-radius: 50%; place-items: center; color: #fff; background: var(--primary); content: '✓'; font-size: .72rem; font-weight: 900; }
.unit-spmb-schedule { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 26px rgba(30,35,25,.06); }
.unit-spmb-schedule div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.unit-spmb-schedule div:last-child { border-bottom: 0; }
.unit-spmb-schedule span { color: var(--muted); }
.unit-spmb-form-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(460px, 1.2fr); gap: 58px; align-items: start; }
.unit-spmb-form-copy { position: sticky; top: 110px; }
.unit-spmb-form-copy h2 { margin: 12px 0; font: 700 clamp(2rem, 3vw, 3rem)/1.1 'El Messiri', Segoe UI, sans-serif; }
.unit-spmb-form-copy > p { color: var(--muted); }
.unit-spmb-contact-card { margin-top: 26px; padding: 22px; border-radius: 12px; color: #fff; background: var(--primary-dark); }
.unit-spmb-contact-card p { color: rgba(255,255,255,.78); }
.unit-spmb-contact-card a { color: var(--accent); font-weight: 800; }
.unit-spmb-form { margin: 0; }
.unit-spmb-faq { display: grid; gap: 12px; max-width: 850px; }
.unit-spmb-faq details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.unit-spmb-faq summary { cursor: pointer; color: var(--primary-dark); font-weight: 800; }
.unit-spmb-faq p { margin: 12px 0 0; color: var(--muted); }

@media (max-width: 900px) {
    .unit-gallery-instagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .unit-spmb-hero-grid, .unit-spmb-form-layout { grid-template-columns: 1fr; }
    .unit-spmb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .unit-spmb-form-copy { position: static; }
    .unit-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .unit-footer-brand { grid-column: 1 / -1; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-grid .map-card iframe { min-height: 330px; }
}
@media (max-width: 640px) {
    /* Mobile onboarding: copy sits directly on the full-bleed media. The
       gradient carries contrast, so a bulky glass/card wrapper is unnecessary. */
    .hero-foundation {
        min-height: calc(100svh - 76px);
        align-items: flex-end;
    }
    .hero-foundation .hero-shade {
        background:
            linear-gradient(0deg, rgba(2,24,15,.96) 0%, rgba(3,31,20,.82) 42%, rgba(3,31,20,.22) 76%, rgba(3,24,16,.08) 100%),
            linear-gradient(90deg, rgba(2,24,15,.22), transparent 68%);
    }
    .hero-foundation .hero-content {
        width: min(100% - 32px, 1120px);
        margin: 0 auto;
        padding: clamp(170px, 27vh, 230px) 0 27px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .hero-foundation .eyebrow.light {
        padding: 7px 11px;
        border-radius: 999px;
        color: var(--ink);
        background: var(--accent);
        font-size: .64rem;
        letter-spacing: .055em;
        box-shadow: 0 8px 22px rgba(0,0,0,.18);
    }
    .hero-foundation .eyebrow.light::before { display: none; }
    .hero-foundation h1 {
        margin: 15px 0 12px;
        font-size: clamp(2.25rem, 10.8vw, 3.15rem);
        line-height: 1.02;
        text-shadow: 0 3px 18px rgba(0,0,0,.35);
    }
    .hero-foundation .hero-content > p {
        max-width: 370px;
        margin: 0;
        padding-left: 13px;
        border-left: 2px solid var(--accent);
        color: rgba(255,255,255,.88);
        font-size: .9rem;
        line-height: 1.62;
        text-shadow: 0 2px 12px rgba(0,0,0,.32);
    }
    .hero-foundation .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        width: 100%;
        margin-top: 21px;
    }
    .hero-foundation .hero-actions .button {
        width: 100%;
        min-height: 49px;
        border-radius: 12px;
        font-size: .84rem;
    }
    .hero-foundation .hero-actions .button-accent {
        justify-content: space-between;
        padding-inline: 19px;
        box-shadow: 0 12px 28px rgba(0,0,0,.24);
    }
    .hero-foundation .hero-actions .button-accent::after {
        margin-left: 12px;
        content: '\2192';
        font-size: 1.12rem;
        line-height: 1;
    }
    .hero-foundation .hero-actions .button-ghost {
        border-color: rgba(255,255,255,.52);
        background: rgba(255,255,255,.055);
        box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
    }
    .hero-foundation .hero-facts {
        gap: 8px;
        margin-top: 24px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,.18);
    }
    .section-head.line-head,
    .section-head.light-head {
        align-items: flex-start;
        gap: 17px;
    }
    .section-head.line-head h2,
    .section-head.light-head h2 { max-width: 100%; }
    .section-head.line-head > .text-link,
    .section-head.light-head > .text-link { min-height: 40px; margin-bottom: 0; }
    .page-banner h1 { font-size: clamp(2.1rem, 11vw, 3.2rem); }
    .section-head h2 { font-size: clamp(1.85rem, 9vw, 2.65rem); }
    .unit-site-footer { padding-top: 42px; text-align: left; }
    .unit-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
        padding-bottom: 28px;
    }
    .unit-footer-brand,
    .unit-footer-social { grid-column: 1 / -1; }
    .unit-footer-brand { padding-bottom: 27px; }
    .unit-footer-nav,
    .unit-footer-contact,
    .unit-footer-social {
        padding-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }
    .unit-footer-contact { padding-left: 2px; }
    .unit-footer-social { margin-top: 23px; }
    .unit-footer-grid h2 { margin-bottom: 14px; }
    .unit-footer-nav a,
    .unit-footer-contact a { min-height: 33px; font-size: .82rem; }
    .unit-footer-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .unit-site-footer .footer-bottom { padding: 17px 22px; font-size: .72rem; line-height: 1.55; }
    .contact-grid > div:first-child { padding: 23px 20px; }
    .contact-grid .map-card iframe { min-height: 260px; }
    .unit-gallery-instagram-grid, .unit-spmb-steps, .unit-spmb-info-grid { grid-template-columns: 1fr; }
    .unit-spmb-hero { padding: 48px 0; }
    .unit-spmb-hero-grid { gap: 30px; }
    .unit-spmb-hero h2 { font-size: clamp(2rem, 11vw, 3rem); }
    .unit-spmb-form-layout { gap: 30px; }
    .unit-spmb-schedule div { grid-template-columns: 1fr; gap: 4px; }
}

@supports (content-visibility: auto) {
    .unit-gallery-archive, .unit-spmb-info-grid, .unit-spmb-faq { content-visibility: auto; contain-intrinsic-size: auto 680px; }
}
.unit-profile-intro { align-items: center; }
.unit-profile-intro p { line-height: 1.8; }
.unit-profile-lead { font-weight: 650; }
.unit-profile-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(28px,5vw,70px); align-items: center; }
.unit-profile-columns h2 { margin: 12px 0 18px; max-width: 650px; }
.unit-profile-columns p { line-height: 1.8; max-width: 680px; }
.unit-profile-point-card { background: #fff; padding: clamp(26px,4vw,44px); border-radius: 20px; box-shadow: 0 14px 35px rgba(35,40,28,.08); }
.unit-profile-point-card ul { margin: 20px 0 0; padding-left: 22px; line-height: 1.9; }
.unit-profile-point-card { border-radius: 8px 32px 8px 32px; background: linear-gradient(145deg,#fff,var(--soft)); }
.unit-profile-intro img, .unit-profile-columns img { border-radius: 32px 8px 32px 8px; }
.contact-grid > div:first-child { border-radius: 8px 30px 8px 30px; }
.contact-grid .map-card { border-radius: 30px 8px 30px 8px; }
.contact-grid dd a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb,var(--primary) 35%,transparent); text-underline-offset: 4px; }
.unit-detail-share { margin: 34px clamp(20px,5vw,58px) 42px; padding: clamp(20px,3vw,30px); border-radius: 8px 30px 8px 30px; background: linear-gradient(130deg,var(--soft),#fff9e9); }
.unit-detail-share strong { display: block; color: var(--primary-dark); font-size: 1.05rem; }
.unit-detail-share p { margin: 7px 0 18px; max-width: 560px; line-height: 1.6; }
.unit-detail-share > div { display: flex; flex-wrap: wrap; gap: 9px; }
.unit-detail-share a, .unit-detail-share button { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; border: 1px solid color-mix(in srgb,var(--primary) 25%,transparent); border-radius: 999px; background: #fff; color: var(--primary-dark); font: inherit; font-size: .82rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.unit-detail-share a:hover, .unit-detail-share button:hover { background: var(--primary-dark); color: #fff; }
.program-card:nth-child(2n), .activity-card:nth-child(2n), .album-card:nth-child(2n) { border-radius: 8px 28px 8px 28px; }
.unit-profile-cta { display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.unit-profile-cta h2 { max-width: 650px; }
.unit-profile-cta p { max-width: 650px; }
.unit-profile-cta > div:last-child { display: flex; gap: 12px; flex-wrap: wrap; }
@media(max-width:760px) { .unit-profile-columns { grid-template-columns: 1fr; } .unit-profile-cta { flex-direction: column; align-items: flex-start; } }
