/* Grace Matthews Books Dental Health, free readers, and Freebies */
body.gmbh-dental-page,
body.gmbh-dental-reader-page,
body.gmbh-freebies-page {
    background:
        radial-gradient(circle at 8% 6%, rgba(220,230,243,.5), transparent 28%),
        radial-gradient(circle at 94% 10%, rgba(194,161,74,.12), transparent 24%),
        var(--gmb-cream);
}

/* Shared dental badges */
.gmbd-free-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    padding: 8px 12px;
    border: 1px solid rgba(194,161,74,.48);
    border-radius: 999px;
    background: #c2a14a;
    color: #14274c;
    box-shadow: 0 8px 20px rgba(27,42,77,.14);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .03em;
    text-align: center;
    text-transform: uppercase;
}

/* Dental hub hero */
.gmbd-hero { padding: 44px 0 72px; }
.gmbd-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
    gap: 48px;
    min-height: 630px;
    align-items: center;
    overflow: hidden;
    padding: clamp(42px, 6vw, 82px);
    border: 1px solid rgba(194,161,74,.32);
    border-radius: var(--gmb-radius-xl);
    background:
        radial-gradient(circle at 74% 28%, rgba(255,255,255,.85), transparent 34%),
        linear-gradient(135deg, #fdf9f1 0%, #eef5fb 58%, #f8efd8 100%);
    box-shadow: var(--gmb-shadow);
}
.gmbd-hero-card::before,
.gmbd-hero-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.gmbd-hero-card::before { width: 280px; height: 280px; right: -90px; top: -100px; border: 2px solid rgba(194,161,74,.2); }
.gmbd-hero-card::after { width: 170px; height: 170px; left: -80px; bottom: -80px; background: rgba(220,230,243,.5); }
.gmbd-hero-copy { position: relative; z-index: 4; }
.gmbd-hero-copy h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: .98; }
.gmbd-hero-copy .gmb-lead { max-width: 650px; color: rgba(43,43,51,.8); }
.gmbd-hero-copy .gmb-button-row { align-items: center; }
.gmbd-hero-books { position: relative; z-index: 2; min-height: 500px; }
.gmbd-cover {
    position: absolute;
    display: block;
    object-fit: cover;
    border: 7px solid #fffdf7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 45px rgba(27,42,77,.2);
}
.gmbd-cover-wild { z-index: 3; left: 3%; top: 10%; width: 42%; transform: rotate(-6deg); }
.gmbd-cover-smile { z-index: 4; right: 5%; top: 3%; width: 43%; transform: rotate(5deg); }
.gmbd-cover-maisie { z-index: 2; left: 18%; bottom: 0; width: 31%; transform: rotate(5deg); }
.gmbd-cover-squad { z-index: 1; right: 18%; bottom: 0; width: 31%; transform: rotate(-5deg); }

/* Featured free dental books */
.gmbd-free-books { border-top: 1px solid rgba(194,161,74,.14); background: rgba(255,255,255,.55); }
.gmbd-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px; }
.gmbd-feature-card {
    display: grid;
    grid-template-columns: minmax(180px, .68fr) minmax(0,1.32fr);
    gap: 30px;
    align-items: center;
    padding: 30px;
    border: 1px solid rgba(27,42,77,.11);
    border-radius: 28px;
    background: #fffdf8;
    box-shadow: var(--gmb-shadow-soft);
}
.gmbd-feature-media {
    display: grid;
    align-self: start;
    gap: 14px;
}
.gmbd-feature-cover { position: relative; display: block; }
.gmbd-feature-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: 0 16px 30px rgba(27,42,77,.16); transition: transform .2s ease; }
.gmbd-feature-cover:hover img { transform: translateY(-4px); }
.gmbd-feature-copy h3 { margin-bottom: 12px; font-size: clamp(1.8rem, 2.6vw, 2.65rem); }
.gmbd-feature-copy > p:not(.gmb-eyebrow) { color: rgba(43,43,51,.76); }
.gmbd-highlight { font-weight: 700; color: #1b2a4d !important; }
.gmbd-dentist-note {
    display: grid;
    gap: 2px;
    margin: 18px 0;
    padding: 12px 14px;
    border-left: 3px solid rgba(194,161,74,.7);
    border-radius: 0 10px 10px 0;
    background: rgba(220,230,243,.34);
    color: rgba(43,43,51,.72);
    font-size: .8rem;
    line-height: 1.4;
}
.gmbd-dentist-note strong { color: #1b2a4d; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; }

/* Supporting books */
.gmbd-more-books { background: linear-gradient(180deg, rgba(220,230,243,.35), rgba(250,246,238,.2)); }
.gmbd-support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.gmbd-support-card {
    display: grid;
    grid-template-columns: 190px minmax(0,1fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(194,161,74,.22);
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--gmb-shadow-soft);
}
.gmbd-support-cover img { width: 100%; border-radius: 16px; box-shadow: 0 14px 28px rgba(27,42,77,.14); }
.gmbd-support-card h3 { font-size: clamp(1.55rem,2.2vw,2.2rem); }

/* Games */
.gmbd-games { background: #dce6f3; }
.gmbd-games-shell {
    display: grid;
    grid-template-columns: minmax(340px,.8fr) minmax(0,1.2fr);
    gap: 44px;
    align-items: center;
    padding: clamp(30px,5vw,60px);
    border: 1px solid rgba(194,161,74,.28);
    border-radius: 30px;
    background: #fffdf8;
    box-shadow: var(--gmb-shadow);
}
.gmbd-games-art img { width: 100%; max-height: 510px; object-fit: cover; object-position: center; border-radius: 22px; }
.gmbd-game-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 26px 0; }
.gmbd-game-card { display: flex; gap: 13px; align-items: flex-start; min-height: 112px; padding: 16px; border: 1px solid rgba(27,42,77,.1); border-radius: 16px; background: #f6f9fd; color: #1b2a4d; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.gmbd-game-card:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(27,42,77,.1); }
.gmbd-game-icon { font-size: 1.8rem; }
.gmbd-game-card strong,.gmbd-game-card small { display: block; }
.gmbd-game-card small { margin-top: 4px; color: rgba(43,43,51,.68); line-height: 1.35; }

/* Grownups */
.gmbd-grownups-card { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: clamp(32px,5vw,58px); border: 1px solid rgba(194,161,74,.28); border-radius: 28px; background: #fffdf8; box-shadow: var(--gmb-shadow-soft); }
.gmbd-grownups-card h2 { max-width: 850px; }
.gmbd-grownups-card p { max-width: 850px; color: rgba(43,43,51,.75); }
.gmbd-disclaimer { font-size: .9rem; }
.gmbd-grownups-links { display: grid; gap: 12px; min-width: 250px; }

/* Reader hero */
.gmbd-reader-hero { padding: 44px 0 68px; }
.gmbd-reader-hero-card { display: grid; grid-template-columns: minmax(260px,420px) minmax(0,1fr); gap: clamp(38px,6vw,78px); align-items: center; padding: clamp(32px,5vw,62px); border: 1px solid rgba(194,161,74,.28); border-radius: 30px; background: linear-gradient(135deg,#fffdf8,#eef5fb); box-shadow: var(--gmb-shadow); }
.gmbd-reader-cover { position: relative; }
.gmbd-reader-cover img { width: 100%; border-radius: 22px; box-shadow: 0 22px 45px rgba(27,42,77,.18); }
.gmbd-reader-intro h1 { font-size: clamp(2.6rem,5vw,4.8rem); }
.gmbd-reader-subtitle { margin-top: -10px; color: #80651e; font-weight: 700; }

/* Shared digital reader */
.gmbd-reader-section { background: rgba(255,255,255,.62); border-block: 1px solid rgba(194,161,74,.14); }
.gmbd-book-reader { overflow: hidden; padding: 24px; border: 1px solid rgba(194,161,74,.3); border-radius: 28px; background: #172b50; box-shadow: 0 24px 50px rgba(27,42,77,.2); }
.gmbd-reader-toolbar { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.gmbd-reader-button { min-height: 46px; padding: 11px 17px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.1); color: #fffdf8; font: 700 .92rem var(--gmb-body); cursor: pointer; }
.gmbd-reader-button:hover:not(:disabled),.gmbd-reader-button:focus-visible:not(:disabled) { background: #c2a14a; color: #14274c; }
.gmbd-reader-button:disabled { opacity: .42; cursor: not-allowed; }
.gmbd-reader-next { background: #c2a14a; color: #14274c; }
.gmbd-reader-counter { margin: 0; text-align: center; color: #fffdf8; font-weight: 700; }
.gmbd-book-stage { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: min(100%,1140px); min-height: 540px; margin: 0 auto; overflow: hidden; border-radius: 12px; background: #faf6ee; box-shadow: 0 14px 34px rgba(0,0,0,.34); transition: opacity .11s ease, transform .11s ease; }
.gmbd-book-stage:focus-visible { outline: 3px solid #c2a14a; outline-offset: 5px; }
.gmbd-book-stage.is-title-page,.gmbd-book-stage.is-single-page { grid-template-columns: 1fr; width: min(100%,680px); }
.gmbd-book-stage::after { content:""; position:absolute; z-index:2; top:0; bottom:0; left:50%; width:18px; transform:translateX(-50%); background:linear-gradient(90deg,rgba(0,0,0,.08),rgba(255,255,255,.14),rgba(0,0,0,.08)); pointer-events:none; }
.gmbd-book-stage.is-title-page::after,.gmbd-book-stage.is-single-page::after { display:none; }
.gmbd-book-page { position:relative; margin:0; min-width:0; background:#fff; }
.gmbd-book-page-primary { box-shadow: inset -5px 0 12px rgba(0,0,0,.06); }
.gmbd-book-page-secondary { box-shadow: inset 5px 0 12px rgba(0,0,0,.06); }
.gmbd-book-page img { display:block; width:100%; height:100%; min-height:540px; object-fit:contain; background:#fff; }
.gmbd-book-stage.is-turning { opacity:.72; transform:scale(.995); }
.gmbd-book-page.is-hidden { display:none; }
.gmbd-reader-help { margin:16px 0 0; text-align:center; color:rgba(255,255,255,.72); font-size:.86rem; }
.gmbd-book-reader:fullscreen { overflow:auto; padding:24px; background:#172b50; }
.gmbd-book-reader:fullscreen .gmbd-book-stage { min-height:calc(100vh - 130px); }
#read-the-book,#dental-book-after { scroll-margin-top: 110px; }

/* After reading */
.gmbd-after-reading { background: linear-gradient(180deg,#f7ecd2,#faf6ee); }
.gmbd-after-grid { display:grid; grid-template-columns:minmax(230px,380px) minmax(0,1fr); gap:clamp(36px,6vw,78px); align-items:center; padding:clamp(34px,5vw,62px); border:1px solid rgba(194,161,74,.32); border-radius:30px; background:#fffdf8; box-shadow:var(--gmb-shadow); }
.gmbd-after-cover img { width:100%; border-radius:20px; box-shadow:0 18px 36px rgba(27,42,77,.17); }
.gmbd-after-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:28px; }
.gmbd-after-links a { display:flex; gap:14px; align-items:center; min-height:104px; padding:14px; border:1px solid rgba(27,42,77,.1); border-radius:16px; background:#f6f9fd; color:#1b2a4d; text-decoration:none; }
.gmbd-after-links a:hover { border-color:rgba(194,161,74,.7); box-shadow:0 10px 20px rgba(27,42,77,.08); }
.gmbd-after-links img { width:72px; height:72px; object-fit:cover; border-radius:10px; }
.gmbd-after-links strong,.gmbd-after-links small { display:block; }
.gmbd-after-links small { margin-top:3px; color:rgba(43,43,51,.68); line-height:1.35; }
.gmbd-after-icon { display:grid; place-items:center; width:56px; height:56px; flex:0 0 auto; border-radius:50%; background:#dce6f3; font-size:1.65rem; }

/* Freebies */
.gmbf-hero { padding:44px 0 68px; }
.gmbf-hero-card { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:40px; align-items:center; min-height:420px; padding:clamp(38px,6vw,74px); overflow:hidden; border:1px solid rgba(194,161,74,.3); border-radius:30px; background:linear-gradient(135deg,#fffdf8,#eaf2fb 60%,#f4e7c5); box-shadow:var(--gmb-shadow); }
.gmbf-hero-card h1 { font-size:clamp(2.8rem,5.5vw,5.4rem); }
.gmbf-hero-mark img { width:100%; opacity:.88; filter:drop-shadow(0 18px 24px rgba(27,42,77,.14)); }
.gmbf-books { background:rgba(255,255,255,.58); border-block:1px solid rgba(194,161,74,.14); }
.gmbf-book-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.gmbf-book-card { overflow:hidden; border:1px solid rgba(27,42,77,.1); border-radius:24px; background:#fffdf8; box-shadow:var(--gmb-shadow-soft); }
.gmbf-book-cover { position:relative; display:block; aspect-ratio:1; overflow:hidden; background:#eef4fa; }
.gmbf-book-cover img { width:100%; height:100%; object-fit:cover; transition:transform .22s ease; }
.gmbf-book-cover:hover img { transform:scale(1.025); }
.gmbf-book-card > div { padding:24px; }
.gmbf-book-card h3 { min-height:2.6em; font-size:clamp(1.45rem,2.3vw,2rem); }
.gmbf-book-card p:not(.gmbf-age) { color:rgba(43,43,51,.72); }
.gmbf-age { margin-bottom:7px; color:#80651e; font-size:.82rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.gmbf-section-link { margin-top:28px; text-align:center; }
.gmbf-games { background:#dce6f3; }
.gmbf-game-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.gmbf-game-card { display:grid; grid-template-columns:64px minmax(0,1fr) auto; gap:14px; align-items:center; min-height:150px; padding:20px; border:1px solid rgba(27,42,77,.11); border-radius:20px; background:#fffdf8; color:#1b2a4d; text-decoration:none; box-shadow:0 10px 20px rgba(27,42,77,.06); transition:transform .18s ease,box-shadow .18s ease; }
.gmbf-game-card:hover { transform:translateY(-4px); box-shadow:0 16px 30px rgba(27,42,77,.12); }
.gmbf-game-icon { display:grid; place-items:center; width:64px; height:64px; border-radius:18px; background:#eef4fa; font-size:2rem; }
.gmbf-game-copy small,.gmbf-game-copy strong,.gmbf-game-copy span { display:block; }
.gmbf-game-copy small { color:#80651e; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.gmbf-game-copy strong { margin:3px 0; font-size:1.08rem; }
.gmbf-game-copy span { color:rgba(43,43,51,.67); font-size:.9rem; line-height:1.35; }
.gmbf-game-arrow { font-size:1.35rem; }
.gmbf-game-actions { justify-content:center; margin-top:30px; }
.gmbf-coming-card { display:grid; grid-template-columns:100px minmax(0,1fr); gap:30px; align-items:center; padding:clamp(32px,5vw,56px); border:1px dashed rgba(194,161,74,.75); border-radius:26px; background:#fffdf8; }
.gmbf-coming-icon { display:grid; place-items:center; width:100px; height:100px; border-radius:50%; background:#f4e7c5; font-size:2.8rem; }

@media (max-width: 1180px) {
    .gmbd-hero-card { grid-template-columns: minmax(0,1fr) minmax(400px,.95fr); }
    .gmbd-feature-card { grid-template-columns:1fr; }
    .gmbd-feature-cover { width:min(100%,360px); margin-inline:auto; }
    .gmbd-support-card { grid-template-columns:150px minmax(0,1fr); }
    .gmbf-game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .gmbd-hero-card { grid-template-columns:1fr; min-height:0; text-align:center; }
    .gmbd-hero-copy .gmb-button-row { justify-content:center; }
    .gmbd-hero-books { width:min(100%,620px); min-height:510px; margin-inline:auto; }
    .gmbd-feature-grid,.gmbd-support-grid { grid-template-columns:1fr; }
    .gmbd-feature-card { grid-template-columns:230px minmax(0,1fr); }
    .gmbd-games-shell { grid-template-columns:1fr; }
    .gmbd-games-art { order:2; }
    .gmbd-grownups-card { grid-template-columns:1fr; }
    .gmbd-grownups-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .gmbd-reader-hero-card,.gmbd-after-grid { grid-template-columns:minmax(220px,330px) minmax(0,1fr); }
    .gmbf-hero-card { grid-template-columns:1fr 180px; }
    .gmbf-book-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
    .gmbd-reader-toolbar { grid-template-columns:1fr 1fr; }
    .gmbd-reader-counter { grid-column:1 / -1; grid-row:1; }
    .gmbd-reader-fullscreen { display:none; }
    .gmbd-book-stage,.gmbd-book-stage.is-title-page,.gmbd-book-stage.is-single-page { width:min(100%,650px); min-height:0; }
    .gmbd-book-page img { min-height:0; height:auto; aspect-ratio:1; }
    .gmbd-after-links { grid-template-columns:1fr; }
}

@media (max-width: 680px) {
    .gmbd-hero { padding-top:24px; }
    .gmbd-hero-card { gap:24px; padding:32px 20px; }
    .gmbd-hero-books { min-height:360px; }
    .gmbd-cover { border-width:4px; border-radius:12px; }
    .gmbd-feature-card { grid-template-columns:1fr; padding:22px; }
    .gmbd-feature-copy { text-align:center; }
    .gmbd-feature-copy .gmb-button-row { justify-content:center; }
    .gmbd-support-card { grid-template-columns:1fr; text-align:center; }
    .gmbd-support-cover { width:min(100%,250px); margin-inline:auto; }
    .gmbd-support-card .gmb-button-row { justify-content:center; }
    .gmbd-game-grid { grid-template-columns:1fr; }
    .gmbd-grownups-links { grid-template-columns:1fr; }
    .gmbd-reader-hero { padding-top:24px; }
    .gmbd-reader-hero-card,.gmbd-after-grid { grid-template-columns:1fr; padding:28px 20px; text-align:center; }
    .gmbd-reader-cover,.gmbd-after-cover { width:min(100%,360px); margin-inline:auto; }
    .gmbd-reader-intro .gmb-button-row,.gmbd-after-copy .gmb-button-row { justify-content:center; }
    .gmbd-book-reader { padding:12px; border-radius:18px; }
    .gmbd-reader-toolbar { gap:8px; }
    .gmbd-reader-button { min-height:44px; padding:10px 12px; font-size:.84rem; }
    .gmbd-after-links { text-align:left; }
    .gmbf-hero { padding-top:24px; }
    .gmbf-hero-card { grid-template-columns:1fr; text-align:center; }
    .gmbf-hero-card .gmb-button-row { justify-content:center; }
    .gmbf-hero-mark { width:140px; margin-inline:auto; }
    .gmbf-book-grid,.gmbf-game-grid { grid-template-columns:1fr; }
    .gmbf-book-card h3 { min-height:0; }
    .gmbf-game-card { grid-template-columns:56px minmax(0,1fr) auto; }
    .gmbf-game-icon { width:56px; height:56px; }
    .gmbf-coming-card { grid-template-columns:1fr; text-align:center; }
    .gmbf-coming-icon { margin-inline:auto; }
}

@media (prefers-reduced-motion: reduce) {
    .gmbd-feature-cover img,.gmbf-book-cover img,.gmbd-game-card,.gmbf-game-card,.gmbd-book-stage { transition:none; }
}


/* v3.1 dental facts */
.gmbd-facts { background: linear-gradient(180deg, rgba(250,246,238,.3), rgba(220,230,243,.5)); }
.gmbd-fact-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.gmbd-fact-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 9px;
    min-height: 245px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(27,42,77,.11);
    border-radius: 22px;
    background: #fffdf8;
    color: var(--gmb-charcoal);
    box-shadow: 0 10px 24px rgba(27,42,77,.07);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gmbd-fact-card:hover { transform: translateY(-4px); border-color: rgba(194,161,74,.72); box-shadow: 0 16px 30px rgba(27,42,77,.12); }
.gmbd-fact-number { color: var(--gmb-gold); font: 800 .78rem var(--gmb-brand); letter-spacing: .14em; }
.gmbd-fact-card strong { color: var(--gmb-navy); font: 700 1.25rem var(--gmb-heading); line-height: 1.25; }
.gmbd-fact-card > span:not(.gmbd-fact-number) { color: rgba(43,43,51,.72); line-height: 1.5; }
.gmbd-fact-card small { align-self: end; margin-top: auto; color: #80651e; font-weight: 800; line-height: 1.35; }

/* v3.1 reader bookmarking without storage */
.gmbd-reader-toolbar { grid-template-columns: auto 1fr auto auto auto; }
.gmbd-reader-copy-link { border-color: rgba(225,201,120,.72); }
.gmbd-reader-link-status { min-height: 1.4em; margin: 7px 0 0; text-align: center; color: var(--gmb-gold-light); font-size: .82rem; }

/* v3.1 visual reader recommendations */
.gmbd-next-heading { margin: 42px 0 16px; }
.gmbd-recommend-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.gmbd-recommend-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 330px;
    padding: 14px;
    border: 1px solid rgba(27,42,77,.1);
    border-radius: 18px;
    background: #f6f9fd;
    color: var(--gmb-charcoal);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gmbd-recommend-card:hover { transform: translateY(-3px); border-color: rgba(194,161,74,.72); box-shadow: 0 12px 24px rgba(27,42,77,.1); }
.gmbd-recommend-card img { width: 100%; height: 150px; min-height: 0; object-fit: cover; border-radius: 12px; }
.gmbd-recommend-card span { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; align-items: flex-start; }
.gmbd-recommend-card small { color: #80651e; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.gmbd-recommend-card strong { margin: 4px 0; color: var(--gmb-navy); font: 700 1rem var(--gmb-heading); line-height: 1.3; }
.gmbd-recommend-card em { color: rgba(43,43,51,.68); font-size: .82rem; font-style: normal; line-height: 1.35; }
.gmbd-recommend-card b { margin-top: auto; padding-top: 8px; color: var(--gmb-navy); font-size: .84rem; }
.gmbd-after-secondary { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }

/* v3.1 Freebies Start Here and audience filter */
.gmbf-start { padding-top: 32px; }
.gmbf-start-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gmbf-start-card { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 14px; align-items: center; min-height: 130px; padding: 22px; border: 1px solid rgba(27,42,77,.11); border-radius: 20px; background: #fffdf8; box-shadow: var(--gmb-shadow-soft); }
.gmbf-start-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; background: var(--gmb-soft-blue); font-size: 1.7rem; }
.gmbf-start-copy,.gmbf-start-card strong,.gmbf-start-card small { display: block; min-width: 0; }
.gmbf-start-card strong { color: var(--gmb-navy); font: 700 1.2rem var(--gmb-heading); }
.gmbf-start-card small { color: rgba(43,43,51,.68); line-height: 1.35; }
.gmbf-filter-section { padding: 0 0 40px; scroll-margin-top: 105px; }
.gmbf-filter-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px 28px; align-items: center; padding: 26px 30px; border: 1px solid rgba(194,161,74,.4); border-radius: 22px; background: linear-gradient(135deg,#fffdf8,#eef5fb); box-shadow: var(--gmb-shadow-soft); }
.gmbf-filter-card h2 { margin-bottom: 0; font-size: clamp(1.7rem,2.6vw,2.45rem); }
.gmbf-filter-controls { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.gmbf-filter-button { min-height: 44px; padding: 10px 15px; border: 1px solid rgba(27,42,77,.2); border-radius: 999px; background: #fff; color: var(--gmb-navy); font-weight: 800; cursor: pointer; }
.gmbf-filter-button.is-active,.gmbf-filter-button:hover,.gmbf-filter-button:focus-visible { border-color: var(--gmb-navy); background: var(--gmb-navy); color: var(--gmb-cream); }
.gmbf-filter-status { grid-column: 1 / -1; margin: 0; color: rgba(43,43,51,.68); font-size: .9rem; }
.gmbf-free-label { display: block; margin: 5px 0; color: #80651e; font-size: .72rem; font-style: normal; font-weight: 800; letter-spacing: .02em; }
[data-freebie-item][hidden],[data-freebie-group][hidden] { display: none !important; }

@media (max-width: 1180px) {
    .gmbd-fact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gmbd-recommend-grid { grid-template-columns: 1fr; }
    .gmbd-recommend-card { min-height: 0; }
}
@media (max-width: 900px) {
    .gmbf-start-grid { grid-template-columns: 1fr; }
    .gmbf-filter-card { grid-template-columns: 1fr; text-align: center; }
    .gmbf-filter-controls { justify-content: center; }
}
@media (max-width: 780px) {
    .gmbd-reader-toolbar { grid-template-columns: 1fr 1fr; }
    .gmbd-reader-copy-link { display: inline-flex; }
}
@media (max-width: 680px) {
    .gmbd-fact-grid { grid-template-columns: 1fr; }
    .gmbd-fact-card { min-height: 0; }
    .gmbd-recommend-card { padding: 12px; }
    .gmbd-recommend-card img { width: 100%; height: 160px; }
    .gmbd-after-secondary { justify-content: center; }
    .gmbf-filter-card { padding: 22px 16px; }
    .gmbf-filter-controls { display: grid; grid-template-columns: 1fr; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .gmbd-fact-card,.gmbd-recommend-card { transition: none; }
}


/* v3.2 Dental Health pathways from Freebies */
.gmbf-start-grid { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); }
.gmbf-start-dental { border:2px solid rgba(194,161,74,.62); background:linear-gradient(135deg,#fffdf8,#eef5fb); }
.gmbf-dental-callout {
    display:grid;
    grid-template-columns:88px minmax(0,1fr) auto;
    gap:20px;
    align-items:center;
    margin-top:30px;
    padding:22px 24px;
    border:2px solid rgba(194,161,74,.62);
    border-radius:22px;
    background:linear-gradient(120deg,#fffdf8,#eef5fb 70%,#f5e8c7);
    box-shadow:var(--gmb-shadow-soft);
}
.gmbf-dental-callout img { width:88px; height:88px; object-fit:cover; border-radius:18px; }
.gmbf-dental-callout strong,.gmbf-dental-callout span { display:block; }
.gmbf-dental-callout strong { margin-bottom:4px; color:var(--gmb-navy); font:700 1.35rem var(--gmb-heading); }
.gmbf-dental-callout span { color:rgba(43,43,51,.7); line-height:1.45; }
@media(max-width:1050px){ .gmbf-start-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:760px){
    .gmbf-start-grid{grid-template-columns:1fr;}
    .gmbf-dental-callout{grid-template-columns:72px minmax(0,1fr);}
    .gmbf-dental-callout img{width:72px;height:72px;}
    .gmbf-dental-callout .gmb-button{grid-column:1/-1;width:100%;}
}
@media(max-width:480px){
    .gmbf-dental-callout{grid-template-columns:1fr;text-align:center;}
    .gmbf-dental-callout img{margin-inline:auto;}
}


/* v3.3 Super Smile Secrets display crop: hides the paperback bleed only on this reader. */
.gmbd-book-reader-cropped .gmbd-book-page { overflow: hidden; }
.gmbd-book-reader-cropped .gmbd-book-page img {
    transform: scale(1.05);
    transform-origin: center;
}


/* v3.3 Freebies book-sample presentation */
.gmbf-samples { background: linear-gradient(180deg,rgba(220,230,243,.35),rgba(250,246,238,.55)); }
.gmbf-sample-grid { grid-template-columns: minmax(0,900px); justify-content:center; }
.gmbf-sample-card { display:grid; grid-template-columns:minmax(190px,270px) minmax(0,1fr); align-items:center; }
.gmbf-sample-card .gmbf-book-cover { height:100%; aspect-ratio:auto; }
.gmbf-sample-card .gmbf-book-cover img { max-height:390px; object-fit:contain; }
@media(max-width:720px){
    .gmbf-sample-card{grid-template-columns:1fr;text-align:center;}
    .gmbf-sample-card .gmb-button-row{justify-content:center;}
}

/* v3.8 Dental Health Hub expansion */
html { scroll-behavior:smooth; }
.gmbd-main-v38 section[id] { scroll-margin-top:112px; }
.gmbd-hero-card-v38 { min-height:650px; }
.gmbd-hero-trust { margin-top:18px; color:rgba(43,43,51,.66); font-size:.9rem; font-weight:650; }
.gmbd-help { background:linear-gradient(180deg,#fffdf8,rgba(220,230,243,.45)); }
.gmbd-help-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.gmbd-help-card { display:grid; grid-template-columns:118px minmax(0,1fr); gap:16px; align-items:center; min-height:178px; padding:18px; border:1px solid rgba(27,42,77,.11); border-radius:22px; background:#fff; color:var(--gmb-charcoal); text-decoration:none; box-shadow:0 12px 28px rgba(27,42,77,.07); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.gmbd-help-card:hover,.gmbd-help-card:focus-visible { transform:translateY(-4px); border-color:rgba(194,161,74,.75); box-shadow:0 18px 34px rgba(27,42,77,.12); }
.gmbd-help-art { display:grid; place-items:center; width:118px; height:118px; overflow:hidden; border-radius:20px; background:linear-gradient(145deg,#edf5fb,#fff7e6); }
.gmbd-help-art img { width:100%; height:100%; object-fit:contain; }
.gmbd-help-copy { display:flex; min-width:0; flex-direction:column; gap:7px; }
.gmbd-help-copy strong { color:var(--gmb-navy); font:700 1.12rem var(--gmb-heading); line-height:1.25; }
.gmbd-help-copy small { color:rgba(43,43,51,.7); line-height:1.4; }
.gmbd-help-copy b { margin-top:4px; color:#80651e; font-size:.84rem; }

.gmbd-visit { background:#dce6f3; }
.gmbd-visit-shell { overflow:hidden; border:1px solid rgba(27,42,77,.12); border-radius:30px; background:#fffdf8; box-shadow:var(--gmb-shadow); }
.gmbd-visit-progress { display:flex; gap:10px; justify-content:center; padding:22px 18px; border-bottom:1px solid rgba(27,42,77,.1); background:linear-gradient(90deg,#f8efd8,#eef5fb); }
.gmbd-visit-dot { display:grid; place-items:center; width:42px; height:42px; padding:0; border:2px solid rgba(27,42,77,.2); border-radius:50%; background:#fff; color:var(--gmb-navy); font:800 .9rem var(--gmb-body); cursor:pointer; transition:transform .16s ease,background .16s ease,border-color .16s ease; }
.gmbd-visit-dot:hover,.gmbd-visit-dot:focus-visible { transform:translateY(-2px); border-color:var(--gmb-gold); }
.gmbd-visit-dot.is-active { border-color:var(--gmb-gold); background:var(--gmb-navy); color:#fff; box-shadow:0 0 0 5px rgba(194,161,74,.18); }
.gmbd-visit-step { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr); gap:0; align-items:stretch; }
.gmbd-visit-step[hidden] { display:none; }
.gmbd-visit-image { min-height:560px; background:#eef5fb; }
.gmbd-visit-image img { width:100%; height:100%; min-height:560px; object-fit:cover; }
.gmbd-visit-copy { display:flex; flex-direction:column; justify-content:center; padding:clamp(30px,5vw,58px); }
.gmbd-visit-copy h3 { font-size:clamp(2rem,3.2vw,3.25rem); }
.gmbd-visit-copy > p:not(.gmb-eyebrow) { color:rgba(43,43,51,.74); }
.gmbd-sensory-list { display:grid; gap:10px; margin:22px 0; }
.gmbd-sensory-list div { padding:12px 14px; border-left:4px solid var(--gmb-gold); border-radius:0 12px 12px 0; background:#f5f8fc; }
.gmbd-sensory-list dt { color:var(--gmb-navy); font-size:.76rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.gmbd-sensory-list dd { margin:3px 0 0; color:rgba(43,43,51,.72); line-height:1.4; }
.gmbd-visit-actions { margin-top:12px; }
.gmbd-visit-actions button:disabled { opacity:.45; cursor:not-allowed; }
.gmbd-visit-note { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center; margin-top:22px; padding:20px 24px; border:1px solid rgba(194,161,74,.35); border-radius:18px; background:#fffdf8; color:rgba(43,43,51,.72); }
.gmbd-visit-note strong { color:var(--gmb-navy); }
.gmbd-visit-note a { color:#80651e; font-weight:800; white-space:nowrap; }

.gmbd-tools { background:linear-gradient(180deg,#fffdf8,#f5f8fc); }
.gmbd-tool-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.gmbd-tool-card { display:flex; min-width:0; flex-direction:column; align-items:stretch; padding:12px; border:1px solid rgba(27,42,77,.11); border-radius:20px; background:#fff; color:var(--gmb-charcoal); text-align:left; cursor:pointer; box-shadow:0 8px 18px rgba(27,42,77,.05); transition:transform .16s ease,border-color .16s ease; }
.gmbd-tool-card:hover,.gmbd-tool-card:focus-visible,.gmbd-tool-card.is-active { transform:translateY(-3px); border-color:rgba(194,161,74,.75); }
.gmbd-tool-card.is-active { box-shadow:0 0 0 3px rgba(194,161,74,.15),0 12px 26px rgba(27,42,77,.1); }
.gmbd-tool-image { display:grid; place-items:center; aspect-ratio:1; overflow:hidden; border-radius:14px; background:#eef5fb; }
.gmbd-tool-image img { width:100%; height:100%; object-fit:contain; }
.gmbd-tool-card > span:last-child { display:flex; flex:1; flex-direction:column; gap:4px; padding:12px 4px 2px; }
.gmbd-tool-card small { color:#80651e; font-size:.72rem; font-weight:800; line-height:1.25; text-transform:uppercase; }
.gmbd-tool-card strong { color:var(--gmb-navy); font:700 1rem var(--gmb-heading); }
.gmbd-tool-card b { margin-top:auto; padding-top:7px; color:rgba(27,42,77,.72); font-size:.78rem; }
.gmbd-tool-details { margin-top:22px; }
.gmbd-tool-detail { display:grid; grid-template-columns:180px minmax(0,1fr); gap:28px; align-items:center; padding:26px; border:1px solid rgba(194,161,74,.32); border-radius:24px; background:#fffdf8; box-shadow:var(--gmb-shadow-soft); }
.gmbd-tool-detail[hidden] { display:none; }
.gmbd-tool-detail img { width:180px; height:180px; object-fit:contain; border-radius:18px; background:#eef5fb; }
.gmbd-tool-detail h3 { font-size:clamp(1.8rem,2.5vw,2.5rem); }
.gmbd-tool-detail p { color:rgba(43,43,51,.72); }

.gmbd-coach-section { background:#1b2a4d; color:#fff; }
.gmbd-coach-section .gmb-section-heading h2,.gmbd-coach-section .gmb-section-heading p { color:#fffdf8; }
.gmbd-coach-section .gmb-eyebrow { color:#e5c96f; }
.gmbd-coach { overflow:hidden; border:1px solid rgba(255,255,255,.18); border-radius:30px; background:#fffdf8; color:var(--gmb-charcoal); box-shadow:0 26px 55px rgba(0,0,0,.25); }
.gmbd-coach-scene { display:grid; grid-template-columns:minmax(170px,.5fr) minmax(0,1fr) minmax(240px,.7fr); gap:24px; align-items:center; min-height:480px; padding:clamp(24px,4vw,50px); background-position:center; background-size:cover; }
.gmbd-coach.is-morning .gmbd-coach-scene { background-image:linear-gradient(rgba(250,246,238,.42),rgba(250,246,238,.42)),url('../images/dental/education-v38/backgrounds/01-morning.webp'); }
.gmbd-coach.is-bedtime .gmbd-coach-scene { background-image:linear-gradient(rgba(27,42,77,.22),rgba(27,42,77,.22)),url('../images/dental/education-v38/backgrounds/02-bedtime.webp'); }
.gmbd-coach-character img { width:100%; max-height:390px; object-fit:contain; filter:drop-shadow(0 18px 22px rgba(27,42,77,.2)); }
.gmbd-coach-instruction { padding:28px; border:1px solid rgba(255,255,255,.55); border-radius:24px; background:rgba(255,253,248,.92); box-shadow:0 14px 34px rgba(27,42,77,.14); }
.gmbd-coach-instruction h3 { font-size:clamp(1.8rem,3vw,3.1rem); }
.gmbd-coach-instruction p:not(.gmb-eyebrow) { color:rgba(43,43,51,.74); }
.gmbd-coach-diagram { display:grid; place-items:center; min-height:300px; padding:20px; border-radius:24px; background:rgba(255,255,255,.88); }
.gmbd-coach-diagram img { width:100%; max-height:320px; object-fit:contain; }
.gmbd-coach-console { display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:24px; align-items:center; padding:26px clamp(22px,4vw,44px); border-top:1px solid rgba(27,42,77,.12); background:#fffdf8; }
.gmbd-coach-modes { display:grid; gap:8px; }
.gmbd-coach-mode,.gmbd-coach-icon-button { min-height:42px; padding:9px 14px; border:1px solid rgba(27,42,77,.15); border-radius:999px; background:#eef5fb; color:var(--gmb-navy); font:750 .86rem var(--gmb-body); cursor:pointer; }
.gmbd-coach-mode.is-active { border-color:var(--gmb-gold); background:var(--gmb-navy); color:#fff; }
.gmbd-timer-ring { display:grid; place-items:center; width:126px; height:126px; border-radius:50%; background:radial-gradient(circle at center,#fff 57%,transparent 58%),conic-gradient(var(--gmb-gold) var(--progress),#dce6f3 var(--progress)); box-shadow:inset 0 0 0 1px rgba(27,42,77,.08); }
.gmbd-timer-ring span { color:var(--gmb-navy); font:800 2rem var(--gmb-heading); line-height:1; }
.gmbd-timer-ring small { margin-top:-24px; color:rgba(43,43,51,.58); font-size:.72rem; }
.gmbd-coach-controls { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.gmbd-coach-controls .gmb-button { min-width:105px; }
.gmbd-coach-icon-button { background:#f5f8fc; }
.gmbd-coach-stages { grid-column:1/-1; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin:0; padding:0; list-style:none; }
.gmbd-coach-stages li { padding:9px 8px; border-radius:999px; background:#eef2f7; color:rgba(43,43,51,.62); font-size:.78rem; font-weight:750; text-align:center; }
.gmbd-coach-stages li.is-active { background:var(--gmb-navy); color:#fff; }
.gmbd-coach-stages li.is-complete { background:#d8eee8; color:#276758; }
.gmbd-coach-note { grid-column:1/-1; margin:0; padding:12px 15px; border-left:4px solid var(--gmb-gold); background:#f5f8fc; color:rgba(43,43,51,.67); font-size:.82rem; line-height:1.45; }

.gmbd-toothpaste { background:linear-gradient(180deg,#f8efd8,#fffdf8); }
.gmbd-toothpaste-card { display:grid; grid-template-columns:minmax(0,.92fr) minmax(480px,1.08fr); gap:34px; align-items:center; padding:clamp(28px,5vw,58px); border:1px solid rgba(194,161,74,.34); border-radius:30px; background:#fffdf8; box-shadow:var(--gmb-shadow); }
.gmbd-toothpaste-copy h2 { font-size:clamp(2.2rem,4vw,4rem); }
.gmbd-amount-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:22px 0; }
.gmbd-amount-grid div { padding:16px; border:1px solid rgba(27,42,77,.1); border-radius:16px; background:#eef5fb; }
.gmbd-amount-grid strong,.gmbd-amount-grid span { display:block; }
.gmbd-amount-grid strong { color:var(--gmb-navy); }
.gmbd-amount-grid span { margin-top:5px; color:rgba(43,43,51,.68); line-height:1.4; }
.gmbd-review-pending { padding:12px 14px; border-left:4px solid var(--gmb-gold); background:#f7f2e4; color:rgba(43,43,51,.7); font-size:.84rem; }
.gmbd-source-links { display:flex; flex-wrap:wrap; gap:14px; margin-top:14px; }
.gmbd-source-links a { color:#6e571a; font-size:.82rem; font-weight:800; }
.gmbd-toothpaste-art img { width:100%; border-radius:22px; box-shadow:0 18px 36px rgba(27,42,77,.12); }

.gmbd-growing { background:#eef5fb; }
.gmbd-growing-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.gmbd-growing-card,.gmbd-urgent-card { display:grid; grid-template-columns:74px minmax(0,1fr); gap:18px; padding:28px; border:1px solid rgba(27,42,77,.11); border-radius:24px; background:#fffdf8; box-shadow:var(--gmb-shadow-soft); }
.gmbd-urgent-card { border-color:rgba(170,78,78,.24); }
.gmbd-growing-icon { display:grid; place-items:center; width:74px; height:74px; border-radius:20px; background:#dce6f3; color:var(--gmb-navy); font-size:2rem; }
.gmbd-growing-card h2,.gmbd-urgent-card h2 { font-size:clamp(1.7rem,2.8vw,2.7rem); }
.gmbd-growing-card p,.gmbd-urgent-card p { color:rgba(43,43,51,.72); }

.gmbd-library { background:#fffdf8; }
.gmbd-library-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.gmbd-library-card { overflow:hidden; border:1px solid rgba(27,42,77,.1); border-radius:22px; background:#fff; box-shadow:0 12px 28px rgba(27,42,77,.07); }
.gmbd-library-card > a { position:relative; display:block; aspect-ratio:1; overflow:hidden; background:#eef5fb; }
.gmbd-library-card > a img { width:100%; height:100%; object-fit:cover; transition:transform .18s ease; }
.gmbd-library-card > a:hover img { transform:scale(1.025); }
.gmbd-library-card > a .gmbd-free-badge { position:absolute; z-index:2; left:50%; bottom:12px; transform:translateX(-50%); width:max-content; max-width:90%; }
.gmbd-library-card > div { padding:20px; }
.gmbd-library-card h3 { font-size:clamp(1.35rem,2vw,1.9rem); }
.gmbd-library-card p { color:rgba(43,43,51,.7); }
.gmbd-card-subtitle { margin-top:-6px; color:#80651e !important; font-weight:700; }
.gmbd-preview-badge { background:#e989aa; color:#172b50; }
.gmbd-library-card .gmbd-dentist-note { margin:12px 0; }

.gmbd-printables { background:linear-gradient(135deg,#dce6f3,#f8efd8); }
.gmbd-printable-card { display:grid; grid-template-columns:260px minmax(0,1fr); gap:34px; align-items:center; padding:clamp(28px,5vw,54px); border:1px solid rgba(194,161,74,.32); border-radius:28px; background:#fffdf8; box-shadow:var(--gmb-shadow); }
.gmbd-printable-art { display:grid; place-items:center; min-height:260px; border-radius:24px; background:#eef5fb; }
.gmbd-printable-art img { width:100%; max-height:280px; object-fit:contain; }
.gmbd-printable-copy h2 { font-size:clamp(2rem,3.6vw,3.7rem); }
.gmbd-printable-note { color:rgba(43,43,51,.62); font-size:.85rem; }
.gmbd-print-button { padding:0; border:0; background:none; cursor:pointer; }

.gmbd-trust-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.46fr); gap:34px; align-items:center; padding:clamp(28px,5vw,52px); border:1px solid rgba(27,42,77,.12); border-radius:26px; background:#fffdf8; }
.gmbd-trust-card p { color:rgba(43,43,51,.7); }
.gmbd-trust-links { display:grid; gap:12px; }
.gmbd-trust-links a { padding:12px 14px; border:1px solid rgba(27,42,77,.1); border-radius:12px; background:#eef5fb; color:var(--gmb-navy); font-weight:750; }

/* v3.8 book preview */
.gmbd-preview-book-reader .gmbd-book-stage { width:min(100%,1100px); }
.gmbd-preview-after { background:linear-gradient(180deg,#eef5fb,#fffdf8); }
.gmbd-preview-cta { display:grid; grid-template-columns:minmax(320px,520px) minmax(0,1fr); gap:38px; align-items:center; max-width:1120px; margin:0 auto; padding:clamp(24px,4vw,42px); border:1px solid rgba(194,161,74,.3); border-radius:28px; background:#fffdf8; box-shadow:var(--gmb-shadow); }
.gmbd-preview-cta-image { display:block; border-radius:20px; overflow:hidden; box-shadow:0 18px 40px rgba(27,42,77,.18); transition:transform .18s ease; }
.gmbd-preview-cta-image:hover,.gmbd-preview-cta-image:focus-visible { transform:translateY(-4px); }
.gmbd-preview-cta-image img { display:block; width:100%; }
.gmbd-preview-cta-copy { color:rgba(43,43,51,.74); }
.gmbd-preview-cta-copy strong { color:var(--gmb-navy); }

/* v3.8 reader page seam and full updated page display */
.gmbd-book-stage { gap:10px; background:#f3e7cf; }
.gmbd-book-stage::after { width:10px; background:#f3e7cf; box-shadow:inset 2px 0 3px rgba(27,42,77,.08),inset -2px 0 3px rgba(27,42,77,.08); }
.gmbd-book-stage.is-title-page,.gmbd-book-stage.is-single-page { gap:0; background:#faf6ee; }
.gmbd-book-reader-cropped .gmbd-book-page img { transform:none; }

/* v3.8 Freebies additions */
.gmbf-printable-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.gmbf-printable-card { display:grid; grid-template-columns:160px minmax(0,1fr); gap:22px; align-items:center; padding:22px; border:1px solid rgba(27,42,77,.1); border-radius:22px; background:#fffdf8; box-shadow:var(--gmb-shadow-soft); }
.gmbf-printable-card img { width:160px; height:160px; object-fit:contain; border-radius:18px; background:#eef5fb; }

@media (max-width:1180px) {
    .gmbd-help-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .gmbd-tool-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .gmbd-library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .gmbd-coach-scene { grid-template-columns:170px minmax(0,1fr); }
    .gmbd-coach-diagram { grid-column:1/-1; min-height:240px; }
    .gmbd-coach-diagram img { max-height:270px; }
    .gmbd-toothpaste-card { grid-template-columns:1fr; }
}
@media (max-width:900px) {
    .gmbd-visit-step { grid-template-columns:1fr; }
    .gmbd-visit-image,.gmbd-visit-image img { min-height:0; }
    .gmbd-visit-image img { aspect-ratio:8/5; }
    .gmbd-visit-note { grid-template-columns:1fr; }
    .gmbd-tool-detail { grid-template-columns:130px minmax(0,1fr); }
    .gmbd-tool-detail img { width:130px; height:130px; }
    .gmbd-coach-console { grid-template-columns:1fr 140px; }
    .gmbd-coach-controls { align-content:center; }
    .gmbd-growing-grid { grid-template-columns:1fr; }
    .gmbd-printable-card { grid-template-columns:200px minmax(0,1fr); }
    .gmbd-trust-card { grid-template-columns:1fr; }
    .gmbd-preview-cta { grid-template-columns:minmax(260px,390px) minmax(0,1fr); }
}
@media (max-width:680px) {
    .gmbd-help-grid { grid-template-columns:1fr; }
    .gmbd-help-card { grid-template-columns:92px minmax(0,1fr); min-height:140px; }
    .gmbd-help-art { width:92px; height:92px; }
    .gmbd-visit-progress { justify-content:flex-start; overflow-x:auto; }
    .gmbd-visit-dot { flex:0 0 40px; width:40px; height:40px; }
    .gmbd-visit-copy { padding:28px 20px; }
    .gmbd-tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .gmbd-tool-detail { grid-template-columns:1fr; text-align:center; }
    .gmbd-tool-detail img { width:150px; height:150px; margin-inline:auto; }
    .gmbd-coach-scene { grid-template-columns:1fr; text-align:center; }
    .gmbd-coach-character img { max-height:260px; }
    .gmbd-coach-instruction { padding:22px; }
    .gmbd-coach-console { grid-template-columns:1fr; text-align:center; }
    .gmbd-coach-modes { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .gmbd-timer-ring { margin-inline:auto; }
    .gmbd-coach-controls { justify-content:center; }
    .gmbd-coach-stages { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .gmbd-amount-grid { grid-template-columns:1fr; }
    .gmbd-growing-card,.gmbd-urgent-card { grid-template-columns:1fr; }
    .gmbd-growing-icon { margin-inline:auto; }
    .gmbd-library-grid { grid-template-columns:1fr; }
    .gmbd-printable-card { grid-template-columns:1fr; text-align:center; }
    .gmbd-printable-art { min-height:220px; }
    .gmbd-printable-copy .gmb-button-row { justify-content:center; }
    .gmbd-preview-cta { grid-template-columns:1fr; text-align:center; }
    .gmbd-preview-cta-copy .gmb-button-row,.gmbd-preview-cta-copy .gmbd-after-secondary { justify-content:center; }
    .gmbf-printable-grid { grid-template-columns:1fr; }
    .gmbf-printable-card { grid-template-columns:120px minmax(0,1fr); }
    .gmbf-printable-card img { width:120px; height:120px; }
}
@media (max-width:460px) {
    .gmbd-help-card { grid-template-columns:78px minmax(0,1fr); padding:14px; }
    .gmbd-help-art { width:78px; height:78px; }
    .gmbd-tool-grid { grid-template-columns:1fr 1fr; gap:8px; }
    .gmbd-tool-card { padding:9px; }
    .gmbd-tool-card strong { font-size:.9rem; }
    .gmbd-coach-stages { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .gmbf-printable-card { grid-template-columns:1fr; text-align:center; }
    .gmbf-printable-card img { margin-inline:auto; }
}
@media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    .gmbd-help-card,.gmbd-visit-dot,.gmbd-tool-card,.gmbd-preview-cta-image { transition:none; }
}
@media print {
    body.gmbh-dental-page .gmb-header,body.gmbh-dental-page .gmb-footer,body.gmbh-dental-page section:not(.gmbd-printables),body.gmbh-dental-page #newsletter { display:none !important; }
    body.gmbh-dental-page .gmbd-printables { display:block !important; padding:0; background:#fff; }
    body.gmbh-dental-page .gmbd-printable-card { display:block; border:0; box-shadow:none; }
    body.gmbh-dental-page .gmbd-printable-art,body.gmbh-dental-page .gmb-button-row,body.gmbh-dental-page .gmbd-printable-note { display:none; }
}
