body.gmbh-maisie-page {
    background: #FAF6EE;
}

.gmbm-main {
    overflow: hidden;
}

.gmbm-hero {
    position: relative;
    min-height: clamp(620px, 54vw, 780px);
    overflow: hidden;
    border-bottom: 1px solid rgba(27, 42, 77, 0.12);
    background: #DCE6F3;
    isolation: isolate;
}

.gmbm-hero-picture,
.gmbm-hero-picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gmbm-hero-picture img {
    max-width: none;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.gmbm-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(250, 246, 238, 0.94) 0%, rgba(250, 246, 238, 0.82) 28%, rgba(250, 246, 238, 0.12) 60%, rgba(250, 246, 238, 0.03) 100%),
        linear-gradient(0deg, rgba(27, 42, 77, 0.14), transparent 36%);
    pointer-events: none;
}

.gmbm-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: inherit;
    align-items: flex-start;
    padding-top: clamp(58px, 7vw, 96px);
    padding-bottom: 210px;
}

.gmbm-hero-copy {
    width: min(620px, 52%);
    padding: clamp(26px, 3vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background: rgba(250, 246, 238, 0.82);
    box-shadow: 0 22px 60px rgba(27, 42, 77, 0.18);
    backdrop-filter: blur(10px);
}

body.gmbh-maisie-page .gmbm-hero-copy h1 {
    max-width: 560px;
    margin-bottom: 18px;
    font-size: clamp(3rem, 5.4vw, 5.6rem);
}

.gmbm-hero-copy > p:not(.gmb-eyebrow) {
    max-width: 520px;
    margin-bottom: 26px;
    color: rgba(43, 43, 51, 0.83);
    font-size: clamp(1.12rem, 1.7vw, 1.35rem);
}

.gmbm-character-stage {
    --gmbm-start-left: -16%;
    --gmbm-end-left: 62%;
    position: absolute;
    bottom: 0;
    left: var(--gmbm-start-left);
    z-index: 3;
    width: clamp(170px, 20vw, 295px);
    pointer-events: none;
    will-change: left;
}

.gmbm-character-stage img {
    width: 100%;
    filter: drop-shadow(0 18px 18px rgba(27, 42, 77, 0.24));
}

.gmbm-character-stage.is-walking {
    animation: gmbmWalkAcross 4.5s cubic-bezier(0.34, 0.12, 0.36, 1) forwards;
}

.gmbm-character-stage.is-settled {
    left: var(--gmbm-end-left);
}

@keyframes gmbmWalkAcross {
    from { left: var(--gmbm-start-left); }
    to { left: var(--gmbm-end-left); }
}

.gmbm-welcome {
    padding: 46px 0;
    border-bottom: 1px solid rgba(194, 161, 74, 0.18);
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF6EE 72%);
}

.gmbm-welcome-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}

.gmbm-welcome-grid h2 {
    margin-bottom: 0;
}

.gmbm-welcome-grid > p {
    margin: 0;
    color: rgba(43, 43, 51, 0.78);
    font-size: 1.12rem;
}

.gmbm-reader-section {
    background:
        radial-gradient(circle at 10% 12%, rgba(194, 161, 74, 0.12), transparent 22%),
        linear-gradient(180deg, #EDF3FA 0%, #DCE6F3 100%);
}

.gmbm-reader {
    padding: clamp(16px, 2.5vw, 28px);
    border: 1px solid rgba(27, 42, 77, 0.16);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 28px 70px rgba(27, 42, 77, 0.16);
}

.gmbm-reader-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.gmbm-reader-button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(27, 42, 77, 0.18);
    border-radius: 999px;
    background: #FFFFFF;
    color: #1B2A4D;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gmbm-reader-button:hover:not(:disabled),
.gmbm-reader-button:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    border-color: #C2A14A;
    box-shadow: 0 8px 18px rgba(27, 42, 77, 0.12);
}

.gmbm-reader-button:focus-visible {
    outline: 3px solid #E1C978;
    outline-offset: 3px;
}

.gmbm-reader-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.gmbm-reader-next {
    border-color: #1B2A4D;
    background: #1B2A4D;
    color: #FAF6EE;
}

.gmbm-reader-counter {
    margin: 0;
    color: #1B2A4D;
    font-weight: 700;
    text-align: center;
}

.gmbm-book-stage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    align-items: center;
    min-height: 420px;
    padding: clamp(14px, 2vw, 24px);
    border: 1px solid rgba(194, 161, 74, 0.22);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(27, 42, 77, 0.05), transparent 5%, transparent 95%, rgba(27, 42, 77, 0.05)),
        #F5EEDC;
    box-shadow: inset 0 0 42px rgba(27, 42, 77, 0.08);
    outline: none;
}

.gmbm-book-stage:focus-visible {
    outline: 3px solid #C2A14A;
    outline-offset: 4px;
}

.gmbm-book-stage.is-cover {
    grid-template-columns: minmax(0, 680px);
    justify-content: center;
}

.gmbm-book-stage::after {
    content: "";
    position: absolute;
    top: 4%;
    bottom: 4%;
    left: 50%;
    width: 18px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(27, 42, 77, 0.12), transparent);
    pointer-events: none;
}

.gmbm-book-stage.is-cover::after,
.gmbm-book-stage.is-single-page::after {
    display: none;
}

.gmbm-book-page {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 1;
    background: #FFFFFF;
    box-shadow: 0 12px 26px rgba(27, 42, 77, 0.16);
    transition: opacity 130ms ease, transform 130ms ease;
}

.gmbm-book-page-primary {
    border-radius: 14px 3px 3px 14px;
}

.gmbm-book-page-secondary {
    border-radius: 3px 14px 14px 3px;
}

.gmbm-book-stage.is-cover .gmbm-book-page-primary,
.gmbm-book-stage.is-single-page .gmbm-book-page-primary {
    border-radius: 14px;
}

.gmbm-book-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FFFFFF;
}

.gmbm-book-stage.is-turning .gmbm-book-page {
    opacity: 0.55;
    transform: translateY(3px) scale(0.995);
}

.gmbm-book-page.is-hidden {
    display: none;
}

.gmbm-reader-help {
    margin: 16px 0 0;
    color: rgba(43, 43, 51, 0.66);
    font-size: 0.94rem;
    text-align: center;
}

.gmbm-reader:fullscreen {
    overflow: auto;
    padding: 22px;
    background: #DCE6F3;
}

.gmbm-reader:fullscreen .gmbm-book-stage {
    max-width: 1500px;
    margin: 0 auto;
}

.gmbm-paperback-section {
    background: #FAF6EE;
}

.gmbm-paperback-card,
.gmbm-game-card,
.gmbm-coming-card,
.gmbm-family-grid {
    border: 1px solid rgba(27, 42, 77, 0.12);
    border-radius: 30px;
    box-shadow: 0 20px 54px rgba(27, 42, 77, 0.11);
}

.gmbm-paperback-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(30px, 6vw, 84px);
    padding: clamp(28px, 5vw, 66px);
    background: #FFFFFF;
}

.gmbm-paperback-cover img {
    width: min(100%, 430px);
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 22px 42px rgba(27, 42, 77, 0.2);
}

.gmbm-paperback-copy {
    max-width: 620px;
}

.gmbm-game-section {
    background: linear-gradient(180deg, #FAF6EE, #FFFFFF);
}

.gmbm-game-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    align-items: center;
    gap: clamp(30px, 5vw, 70px);
    padding: clamp(28px, 5vw, 62px);
    background:
        radial-gradient(circle at 90% 14%, rgba(194, 161, 74, 0.15), transparent 24%),
        #DCE6F3;
}

.gmbm-game-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    transform: rotate(1.5deg);
}

.gmbm-game-preview img {
    border: 5px solid #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(27, 42, 77, 0.16);
}

.gmbm-game-preview img:nth-child(2),
.gmbm-game-preview img:nth-child(3) {
    transform: rotate(-3deg);
}

.gmbm-coming-section {
    background: #FFFFFF;
}

.gmbm-coming-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
    min-height: 520px;
    overflow: hidden;
    padding: clamp(32px, 5vw, 70px);
    background: linear-gradient(135deg, #FAF6EE 0%, #FFFFFF 72%);
}

.gmbm-coming-cover {
    position: relative;
    z-index: 2;
}

.gmbm-coming-cover img {
    width: min(100%, 360px);
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 20px 42px rgba(27, 42, 77, 0.2);
}

.gmbm-coming-cover .gmb-coming-ribbon {
    top: 14px;
    left: -12px;
}

.gmbm-coming-copy {
    position: relative;
    z-index: 2;
}

.gmbm-coming-accent {
    position: absolute;
    right: -4%;
    bottom: -11%;
    z-index: 1;
    width: min(430px, 34vw);
    opacity: 0.72;
    pointer-events: none;
}

.gmbm-family-section {
    background: linear-gradient(180deg, #EDF3FA, #FAF6EE);
}

.gmbm-family-grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(30px, 5vw, 72px);
    padding: clamp(30px, 5vw, 64px);
    background: rgba(255, 255, 255, 0.9);
}

.gmbm-family-art img {
    border-radius: 22px;
}

@media (max-width: 980px) {
    .gmbm-hero-copy {
        width: min(620px, 64%);
    }

    .gmbm-character-stage {
        --gmbm-end-left: 63%;
        width: clamp(165px, 25vw, 250px);
    }

    .gmbm-paperback-card,
    .gmbm-game-card,
    .gmbm-coming-card,
    .gmbm-family-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

@media (max-width: 780px) {
    .gmbm-hero {
        min-height: 820px;
    }

    .gmbm-hero-picture img {
        object-position: center center;
    }

    .gmbm-hero-shade {
        background:
            linear-gradient(180deg, rgba(250, 246, 238, 0.94) 0%, rgba(250, 246, 238, 0.76) 42%, rgba(250, 246, 238, 0.04) 72%),
            linear-gradient(0deg, rgba(27, 42, 77, 0.2), transparent 34%);
    }

    .gmbm-hero-inner {
        align-items: flex-start;
        padding-top: 28px;
        padding-bottom: 340px;
    }

    .gmbm-hero-copy {
        width: 100%;
        padding: 24px 20px;
        text-align: center;
    }

    .gmbm-hero-copy .gmb-eyebrow {
        justify-content: center;
    }

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

    .gmbm-character-stage {
        --gmbm-start-left: -46%;
        --gmbm-end-left: 42%;
        width: clamp(170px, 46vw, 250px);
    }

    .gmbm-welcome-grid,
    .gmbm-paperback-card,
    .gmbm-game-card,
    .gmbm-coming-card,
    .gmbm-family-grid {
        grid-template-columns: 1fr;
    }

    .gmbm-welcome-grid {
        text-align: center;
    }

    .gmbm-reader-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .gmbm-reader-counter {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    [data-reader-prev] {
        grid-column: 1;
        grid-row: 2;
    }

    [data-reader-next] {
        grid-column: 2;
        grid-row: 2;
    }

    .gmbm-reader-fullscreen {
        grid-column: 1 / 3;
    }

    .gmbm-book-stage,
    .gmbm-book-stage.is-cover {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .gmbm-book-stage::after {
        display: none;
    }

    .gmbm-book-page-primary,
    .gmbm-book-page-secondary {
        border-radius: 14px;
    }

    .gmbm-game-preview {
        max-width: 560px;
        margin: 0 auto;
    }

    .gmbm-coming-card {
        text-align: center;
    }

    .gmbm-coming-accent {
        right: -18%;
        bottom: -3%;
        width: 360px;
        opacity: 0.28;
    }

    .gmbm-coming-cover img {
        max-width: 320px;
    }

    .gmbm-coming-copy .gmb-button-row {
        justify-content: center;
    }

    .gmbm-family-copy {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .gmbm-hero {
        min-height: 780px;
    }

    body.gmbh-maisie-page .gmbm-hero-copy h1 {
        font-size: clamp(2.45rem, 12vw, 3.65rem);
    }

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

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

    .gmbm-reader {
        padding: 12px;
        border-radius: 20px;
    }

    .gmbm-reader-toolbar {
        gap: 8px;
    }

    .gmbm-reader-button {
        min-height: 42px;
        padding: 9px 12px;
        font-size: 0.88rem;
    }

    .gmbm-book-stage {
        padding: 8px;
        border-radius: 16px;
    }

    .gmbm-paperback-card,
    .gmbm-game-card,
    .gmbm-coming-card,
    .gmbm-family-grid {
        padding: 24px 18px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gmbm-character-stage,
    .gmbm-book-page,
    .gmbm-reader-button,
    .gmbm-game-preview img {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    body.gmbh-maisie-page,
    body.gmbh-maisie-page .gmbm-main,
    body.gmbh-maisie-page .gmbm-reader,
    body.gmbh-maisie-page .gmbm-paperback-card,
    body.gmbh-maisie-page .gmbm-game-card,
    body.gmbh-maisie-page .gmbm-coming-card,
    body.gmbh-maisie-page .gmbm-family-grid {
        color-scheme: only light;
    }
}

/* v2.8 optional review invitation for grown-ups */
.gmbm-review-box{margin-top:28px;padding:22px;border:1px solid rgba(194,161,74,.35);border-radius:18px;background:rgba(250,246,238,.78)}.gmbm-review-box h3{margin:.25rem 0 .65rem;color:#1b2a4d}.gmbm-review-box p:not(.gmb-eyebrow){color:rgba(43,43,51,.78)}.gmbm-review-box .gmb-button-row{align-items:center}
#read-the-book{scroll-margin-top:110px}


/* v3.2 Healthy Smile Center hero pathway */
.gmbm-hero-copy .gmb-text-link { color: var(--gmb-navy) !important; text-shadow:0 1px 4px rgba(255,255,255,.7); }
.gmbm-hero-copy .gmb-text-link:hover,
.gmbm-hero-copy .gmb-text-link:focus-visible { color: #74591b !important; }
