/* Grace Matthews Books Kids page */
body.gmbh-kids-page {
    background:
        radial-gradient(circle at 8% 10%, rgba(220, 230, 243, 0.38), transparent 26%),
        var(--gmb-cream);
}

/* Hero */
.gmb-kids-hero {
    padding: 44px 0 74px;
}

.gmb-kids-hero-card {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 570px;
    overflow: hidden;
    border: 1px solid rgba(194, 161, 74, 0.2);
    border-radius: var(--gmb-radius-xl);
    background: #fffaf1;
    box-shadow: var(--gmb-shadow);
}

.gmb-kids-hero-art,
.gmb-kids-hero-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gmb-kids-hero-art img {
    object-fit: contain;
}

.gmb-kids-hero-copy {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 33%;
    width: min(34%, 440px);
    transform: translateY(-50%);
    text-align: center;
}

.gmb-kids-hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -44px -34px;
    border-radius: 44%;
    background: radial-gradient(ellipse at center, rgba(250, 246, 238, 0.92) 0%, rgba(250, 246, 238, 0.74) 55%, transparent 78%);
    filter: blur(2px);
}

.gmb-kids-hero-copy h1 {
    font-size: clamp(2.5rem, 4.25vw, 4.7rem);
    margin-bottom: 18px;
}

.gmb-kids-hero-copy .gmb-lead {
    color: rgba(43, 43, 51, 0.83);
    font-size: clamp(1.02rem, 1.4vw, 1.22rem);
}

.gmb-kids-hero-copy .gmb-button-row {
    justify-content: center;
}

/* Books */
.gmb-kids-books-section {
    border-top: 1px solid rgba(194, 161, 74, 0.14);
    border-bottom: 1px solid rgba(194, 161, 74, 0.14);
    background: rgba(255, 255, 255, 0.58);
}

.gmb-kids-book-grid .gmb-card-actions {
    justify-content: flex-start;
}

.gmb-kids-book-grid .gmb-button-small {
    width: 100%;
}

/* Collection pathways */
.gmb-kids-collections {
    position: relative;
    overflow: hidden;
}

.gmb-kids-collections::before {
    content: "";
    position: absolute;
    top: 0;
    right: -8%;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(220, 230, 243, 0.42);
    filter: blur(20px);
    pointer-events: none;
}

.gmb-kids-collection-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.gmb-kids-collection-card {
    position: relative;
    display: grid;
    min-height: 510px;
    grid-template-columns: minmax(0, 0.58fr) minmax(220px, 0.42fr);
    gap: 22px;
    align-items: center;
    overflow: hidden;
    padding: 42px;
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-xl);
    box-shadow: var(--gmb-shadow-soft);
}

.gmb-kids-collection-card h3 {
    font-size: clamp(1.8rem, 2.6vw, 2.75rem);
}

.gmb-kids-collection-copy {
    position: relative;
    z-index: 3;
}

.gmb-kids-collection-copy > p:not(.gmb-eyebrow) {
    margin-bottom: 24px;
    color: rgba(43, 43, 51, 0.76);
}

.gmb-kids-collection-maisie {
    background:
        radial-gradient(circle at 85% 15%, rgba(194, 161, 74, 0.18), transparent 32%),
        linear-gradient(145deg, #fffdf8, #eef5fb);
}

.gmb-kids-collection-covers {
    position: relative;
    height: 390px;
}

.gmb-kids-collection-covers img {
    position: absolute;
    width: 205px;
    max-height: 345px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 18px 32px rgba(27, 42, 77, 0.24);
}

.gmb-collection-cover-front {
    z-index: 2;
    right: 12px;
    bottom: 4px;
    transform: rotate(3deg);
}

.gmb-collection-cover-back {
    z-index: 1;
    top: 12px;
    left: 0;
    transform: rotate(-7deg) scale(0.92);
}

.gmb-kids-collection-smile {
    grid-template-columns: 1fr;
    align-content: space-between;
    background:
        radial-gradient(circle at 75% 10%, rgba(82, 158, 220, 0.32), transparent 36%),
        linear-gradient(145deg, var(--gmb-navy), var(--gmb-navy-deep));
}

.gmb-kids-collection-smile h3,
.gmb-kids-collection-smile .gmb-eyebrow,
.gmb-kids-collection-smile .gmb-kids-collection-copy > p:not(.gmb-eyebrow) {
    color: var(--gmb-cream);
}

.gmb-kids-collection-smile .gmb-eyebrow {
    color: var(--gmb-gold-light);
}

.gmb-smile-cover-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    padding-top: 18px;
}

.gmb-smile-cover-row img {
    width: 100%;
    max-height: 205px;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.32));
    transition: transform 180ms ease;
}

.gmb-smile-cover-row img:nth-child(1) { transform: rotate(-4deg); }
.gmb-smile-cover-row img:nth-child(2) { transform: translateY(-10px) rotate(-1deg); }
.gmb-smile-cover-row img:nth-child(3) { transform: translateY(-6px) rotate(2deg); }
.gmb-smile-cover-row img:nth-child(4) { transform: rotate(4deg); }

/* Games */
.gmb-kids-games-section {
    padding-top: 34px;
    background: linear-gradient(180deg, transparent, rgba(220, 230, 243, 0.25), transparent);
}

.gmb-kids-games-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    overflow: hidden;
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-xl);
    background: var(--gmb-soft-blue);
    box-shadow: var(--gmb-shadow);
}

.gmb-kids-games-art {
    min-height: 620px;
    overflow: hidden;
}

.gmb-kids-games-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gmb-kids-games-copy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(38px, 5vw, 68px);
}

.gmb-kids-games-copy > p:not(.gmb-eyebrow) {
    color: rgba(43, 43, 51, 0.76);
}

.gmb-kids-game-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 28px;
}

.gmb-kids-game-links a {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(27, 42, 77, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--gmb-navy) !important;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gmb-kids-game-links a:hover,
.gmb-kids-game-links a:focus-visible {
    transform: translateY(-2px);
    background: var(--gmb-white);
    box-shadow: var(--gmb-shadow-soft);
}

.gmb-kids-game-links span {
    font-size: 1.35rem;
}

/* Coming soon */
.gmb-kids-coming-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 18%, rgba(220, 230, 243, 0.62), transparent 28%),
        rgba(255, 255, 255, 0.48);
    border-top: 1px solid rgba(194, 161, 74, 0.14);
    border-bottom: 1px solid rgba(194, 161, 74, 0.14);
}

.gmb-kids-coming-card {
    display: grid;
    max-width: 980px;
    grid-template-columns: minmax(250px, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(34px, 5vw, 70px);
    align-items: center;
    margin-inline: auto;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--gmb-shadow);
}

.gmb-kids-coming-cover {
    position: relative;
    display: flex;
    height: 430px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(220, 230, 243, 0.86), rgba(250, 246, 238, 0.96));
}

.gmb-kids-coming-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 14px rgba(27, 42, 77, 0.2));
}

.gmb-kids-coming-cover .gmb-coming-ribbon {
    top: 18px;
}

.gmb-kids-coming-copy h3 {
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.gmb-kids-coming-copy > p:not(.gmb-release) {
    color: rgba(43, 43, 51, 0.76);
}

/* Grown-up note */
.gmb-kids-grownups-section {
    padding-top: 72px;
    padding-bottom: 82px;
}

.gmb-kids-grownups-grid {
    display: grid;
    max-width: 980px;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 54px;
    align-items: center;
    padding: 44px 52px;
    border: 1px solid rgba(194, 161, 74, 0.22);
    border-radius: var(--gmb-radius-xl);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(250, 246, 238, 0.94));
    box-shadow: var(--gmb-shadow-soft);
}

.gmb-kids-grownups-art img {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
}

.gmb-kids-grownups-copy > p:not(.gmb-eyebrow) {
    color: rgba(43, 43, 51, 0.76);
}

@media (max-width: 1180px) {
    .gmb-kids-hero-card {
        min-height: 520px;
    }

    .gmb-kids-hero-copy {
        left: 31%;
        width: 38%;
    }

    .gmb-kids-collection-grid {
        grid-template-columns: 1fr;
    }

    .gmb-kids-collection-card {
        min-height: 460px;
    }

    .gmb-kids-games-card {
        grid-template-columns: 1fr;
    }

    .gmb-kids-games-art {
        min-height: 520px;
    }
}

@media (max-width: 860px) {
    .gmb-kids-hero {
        padding-top: 28px;
    }

    .gmb-kids-hero-card {
        display: flex;
        min-height: 0;
        aspect-ratio: auto;
        flex-direction: column;
    }

    .gmb-kids-hero-art,
    .gmb-kids-hero-art img {
        position: relative;
        inset: auto;
    }

    .gmb-kids-hero-art {
        aspect-ratio: 16 / 9;
        flex: 0 0 auto;
    }

    .gmb-kids-hero-copy {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        transform: none;
        padding: 38px 30px 42px;
        background: var(--gmb-cream);
    }

    .gmb-kids-hero-copy::before {
        display: none;
    }

    .gmb-kids-hero-copy .gmb-button-row {
        justify-content: center;
    }

    .gmb-kids-collection-card {
        grid-template-columns: 1fr;
    }

    .gmb-kids-collection-covers {
        order: -1;
        width: min(100%, 420px);
        margin-inline: auto;
    }

    .gmb-kids-collection-copy {
        text-align: center;
    }

    .gmb-kids-collection-copy .gmb-button {
        margin-inline: auto;
    }

    .gmb-kids-coming-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gmb-kids-coming-cover {
        width: min(100%, 390px);
        margin-inline: auto;
    }

    .gmb-kids-coming-copy .gmb-age-chip,
    .gmb-kids-coming-copy .gmb-button {
        margin-inline: auto;
    }

    .gmb-kids-grownups-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gmb-kids-grownups-art img {
        width: 190px;
        margin-inline: auto;
    }

    .gmb-kids-grownups-copy .gmb-text-link {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .gmb-kids-hero-copy {
        padding: 32px 22px 36px;
    }

    .gmb-kids-hero-copy .gmb-button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .gmb-kids-hero-copy .gmb-button {
        width: 100%;
    }

    .gmb-kids-collection-card {
        min-height: 0;
        padding: 30px 22px;
    }

    .gmb-kids-collection-covers {
        height: 330px;
    }

    .gmb-kids-collection-covers img {
        width: 175px;
        max-height: 305px;
    }

    .gmb-smile-cover-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gmb-smile-cover-row img {
        max-height: 220px;
        transform: none !important;
    }

    .gmb-kids-games-art {
        min-height: 310px;
    }

    .gmb-kids-games-copy {
        padding: 34px 22px 40px;
    }

    .gmb-kids-game-links {
        grid-template-columns: 1fr;
    }

    .gmb-kids-games-copy > .gmb-button {
        width: 100%;
    }

    .gmb-kids-coming-card {
        padding: 24px 18px 32px;
    }

    .gmb-kids-coming-cover {
        height: 370px;
    }

    .gmb-kids-grownups-grid {
        gap: 28px;
        padding: 34px 22px;
    }
}

/* v2.8 Maisie free-reader and shopping paths */
.gmb-kids-free-book .gmb-book-cover-wrap{position:relative}.gmb-free-online-badge{position:absolute;top:12px;left:12px;z-index:2;padding:7px 10px;border-radius:999px;background:#c2a14a;color:#102744;font-size:.7rem;font-weight:900;box-shadow:0 8px 18px rgba(27,42,77,.18)}.gmb-dual-actions{display:grid;grid-template-columns:1fr;gap:9px}.gmb-dual-actions .gmb-button{width:100%;justify-content:center;text-align:center}.gmb-maisie-panel-note{font-weight:700;color:#1b2a4d!important}.gmb-kids-maisie-actions{align-items:stretch;gap:10px}.gmb-kids-maisie-actions .gmb-button{flex:1 1 160px;text-align:center;justify-content:center}.gmb-kids-collection-maisie .gmb-kids-collection-copy{z-index:2}.gmb-kids-collection-maisie .gmb-kids-collection-covers{z-index:1}
@media(max-width:620px){.gmb-kids-maisie-actions{flex-direction:column}.gmb-kids-maisie-actions .gmb-button{width:100%;flex-basis:auto}}


/* v2.9 Kids hero and arcade refinements */
.gmb-kids-hero-actions {
    gap: 12px;
}

.gmb-kids-maisie-hero-button {
    border-color: #b99035 !important;
    background: #c2a14a !important;
    color: #14274c !important;
    box-shadow: 0 10px 24px rgba(194, 161, 74, 0.24);
}

.gmb-kids-maisie-hero-button:hover,
.gmb-kids-maisie-hero-button:focus-visible {
    border-color: #a37f2c !important;
    background: #d3b866 !important;
}

.gmb-kids-games-art img {
    object-position: center;
}

@media (max-width: 680px) {
    .gmb-kids-hero-actions {
        display: grid;
        width: min(100%, 330px);
        grid-template-columns: 1fr;
        margin-inline: auto;
    }

    .gmb-kids-hero-actions .gmb-button {
        width: 100%;
    }
}

/* v3.0 Kids hero Maisie corner action */
.gmb-kids-maisie-corner-button {
    position: absolute;
    z-index: 4;
    right: clamp(24px, 3.5vw, 54px);
    bottom: clamp(24px, 3.5vw, 46px);
    min-width: 190px;
    justify-content: center;
    text-align: center;
}
@media (max-width: 860px) {
    .gmb-kids-maisie-corner-button {
        position: static;
        width: min(calc(100% - 44px), 330px);
        margin: 0 auto 34px;
        align-self: center;
    }
}


/* v3.1 all complete free kids books */
.gmb-kids-book-grid .gmb-free-book-card .gmb-card-actions { margin-top: auto; }


/* v3.2 Dental Health center actions */
.gmb-kids-smile-actions { align-items: stretch; }
.gmb-kids-smile-actions .gmb-button { flex: 1 1 210px; text-align: center; }
.gmb-kids-collection-smile .gmb-kids-smile-actions .gmb-button-secondary {
    border-color: rgba(250,246,238,.72);
    background: transparent;
    color: var(--gmb-cream) !important;
}
.gmb-kids-collection-smile .gmb-kids-smile-actions .gmb-button-secondary:hover,
.gmb-kids-collection-smile .gmb-kids-smile-actions .gmb-button-secondary:focus-visible {
    border-color: var(--gmb-gold-light);
    background: rgba(255,255,255,.1);
}
