/* GyanPilot unified public storefront UI. Existing covers and SEO are unchanged. */
.gp-store-header{background:#fff;color:#0a2d60;border-bottom:1px solid #dce2ee;position:sticky;top:0;z-index:100;box-shadow:0 2px 12px #071e4814}
.gp-store-bar{max-width:1120px;min-height:84px;margin:auto;padding:8px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative;box-sizing:border-box}
.gp-store-brand{display:flex;align-items:center;flex:0 1 280px;min-width:0}
.gp-store-brand img{display:block;width:100%;max-width:280px;height:auto;max-height:64px;object-fit:contain}
.gp-store-brand .gp-logo-dark{display:none}
.gp-store-desktop{display:flex;align-items:center;justify-content:flex-end;gap:20px;font-size:15px;font-weight:700}
.gp-store-header a{color:inherit;text-decoration:none;white-space:nowrap}
.gp-store-header a:hover{color:#a84f00}
.gp-store-header .gp-current{color:#a84f00;text-decoration:underline;text-underline-offset:5px}
.gp-store-login,.gp-store-theme{min-height:44px;border:1px solid #dce2ee;border-radius:999px;background:transparent;color:inherit;font:inherit;font-weight:750;padding:8px 14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.gp-store-login{border-color:#ff9b28}
.gp-store-header .gp-mobile-menu{display:none;padding:0;border:0;margin:0}
.gp-store-header .gp-mobile-menu summary{list-style:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:#071e48;color:white;border:1px solid #dce2ee;border-radius:9px;cursor:pointer}
.gp-store-header summary::-webkit-details-marker{display:none}
.gp-store-header .gp-menu-icon{display:flex;flex-direction:column;gap:5px;width:23px}
.gp-store-header .gp-menu-icon span{display:block;width:23px;height:2px;background:#fff;border-radius:2px}
.gp-store-header .gp-mobile-menu[open] .gp-menu-icon span:first-child{transform:translateY(7px) rotate(45deg)}
.gp-store-header .gp-mobile-menu[open] .gp-menu-icon span:nth-child(2){opacity:0}
.gp-store-header .gp-mobile-menu[open] .gp-menu-icon span:last-child{transform:translateY(-7px) rotate(-45deg)}
.gp-store-header .gp-mobile-menu:not([open]) .gp-mobile-panel{display:none}
.gp-store-header .gp-mobile-panel{position:absolute;top:100%;left:0;right:0;background:#071e48;color:#fff;padding:12px;box-shadow:0 12px 24px #0003;border-radius:0 0 12px 12px;display:flex;flex-direction:column;gap:3px;max-height:75vh;overflow:auto;z-index:101}
.gp-store-header .gp-mobile-panel a,.gp-store-header .gp-mobile-panel button{color:#fff;display:block;text-align:left;padding:12px 15px;min-height:44px;font-size:15px;font-weight:650;margin:0;border-radius:8px;white-space:normal}
.gp-store-header .gp-mobile-panel .gp-current{color:#071e48;background:#ffc247;text-decoration:none}
.gp-store-header .gp-mobile-panel button{background:transparent;border:1px solid #ffffff50;font:inherit;cursor:pointer}
.gp-store-header :focus-visible,#gp-share :focus-visible,.gp-preview-dialog :focus-visible{outline:3px solid #ffb82c;outline-offset:3px}
@media(max-width:1050px){.gp-store-bar{min-height:70px;padding:8px 14px}.gp-store-brand{flex:0 1 190px}.gp-store-brand img{max-width:190px;max-height:52px}.gp-store-desktop{display:none}.gp-store-header .gp-mobile-menu{display:block}}
/* Home uses its existing logo/theme controls and mobile stylesheet. */
header .gp-mobile-panel .gp-home-theme{background:transparent;color:white;border:1px solid #ffffff50;padding:12px 15px;border-radius:8px;text-align:left;font:inherit;min-height:44px;cursor:pointer}
/* Sharing symbols are generic text/Unicode, not official platform logos. */
#gp-share .share{display:flex;align-items:flex-start;gap:12px 16px;flex-wrap:wrap}
#gp-share .share .gp-share-item{display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:0!important;margin:0!important;min-width:58px;min-height:64px;background:transparent!important;border:0!important;border-radius:8px;color:#10264c!important;box-shadow:none!important;font:inherit;text-decoration:none;cursor:pointer;text-align:center;filter:none!important;transform:none!important;appearance:none;-webkit-appearance:none}
#gp-share .share .gp-share-item[hidden]{display:none!important}
#gp-share .gp-share-circle{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--gp-share-color);color:#fff;font:700 23px/1 system-ui,sans-serif;box-sizing:border-box;flex:none;transition:filter .15s ease;forced-color-adjust:none}
#gp-share .gp-share-item:hover .gp-share-circle{filter:brightness(.88)}
#gp-share .gp-share-label{font-size:12px;font-weight:650;line-height:1.3;white-space:nowrap}
#gp-share .gp-wa{--gp-share-color:#128c4a}#gp-share .gp-fb{--gp-share-color:#1877f2}#gp-share .gp-pin{--gp-share-color:#bd081c}#gp-share .gp-x{--gp-share-color:#111111}#gp-share .gp-tg{--gp-share-color:#167daa}#gp-share .gp-copy{--gp-share-color:#475569}#gp-share .gp-more{--gp-share-color:#071e48}
#gp-share #copyStatus{flex-basis:100%;font-size:13px;overflow-wrap:anywhere}
@media(max-width:480px){#gp-share .share{gap:10px 8px}#gp-share .share .gp-share-item{min-width:58px}}
/* Native dialog provides focus containment and Escape handling. */
.gp-preview-dialog{width:min(96vw,920px);max-width:96vw;height:min(94vh,1050px);max-height:94vh;height:min(94dvh,1050px);max-height:94dvh;border:0;border-radius:14px;padding:0;background:#fff;color:#10264c;box-shadow:0 15px 60px #0006;overflow:hidden}
.gp-preview-dialog::backdrop{background:rgba(5,17,36,.82)}
.gp-preview-shell{display:flex;flex-direction:column;height:100%;min-height:0}
.gp-preview-top,.gp-preview-tools,.gp-preview-bottom{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 14px;background:#fff;color:#10264c;flex:none}
.gp-preview-top{border-bottom:1px solid #dce2ee}.gp-preview-top strong{flex:1;min-width:100px;font-size:15px;line-height:1.3}
.gp-preview-tools{justify-content:center;border-bottom:1px solid #dce2ee}.gp-preview-bottom{justify-content:center;border-top:1px solid #dce2ee}
.gp-preview-dialog button,.gp-preview-dialog a{min-height:44px;min-width:44px;border:1px solid #dce2ee;border-radius:8px;background:white;color:#10264c;padding:8px 12px;font:650 14px/1.2 system-ui,sans-serif;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.gp-preview-dialog button:disabled{opacity:.4;cursor:default}.gp-preview-dialog .gp-preview-buy{background:#ffb82c;border-color:#ffb82c;color:#10264c;font-weight:800;flex:1;max-width:250px}
.gp-preview-view{flex:1;min-height:0;overflow:auto;background:#172131;display:flex;align-items:flex-start;justify-content:flex-start;overscroll-behavior:contain;padding:10px;touch-action:pan-x pan-y pinch-zoom}
.gp-preview-view img{display:block;width:auto;height:auto;max-width:none;max-height:none;flex:none;margin:auto;object-fit:contain}
.gp-preview-view[data-zoom="1"] img{max-width:100%;max-height:100%}
.gp-preview-view[data-zoom="1.5"] img{width:150%;max-width:none;margin:0 auto}
.gp-preview-view[data-zoom="2"] img{width:200%;max-width:none;margin:0 auto}
.gp-preview-view[data-zoom="2.5"] img{width:250%;max-width:none;margin:0 auto}
.gp-preview-view[data-zoom="3"] img{width:300%;max-width:none;margin:0 auto}
.gp-preview-count{font-size:13px;font-weight:650;min-width:55px;text-align:center}
@media(max-width:480px){.gp-preview-dialog{width:98vw;max-width:98vw;height:96vh;max-height:96vh;height:96dvh;max-height:96dvh}.gp-preview-top,.gp-preview-tools,.gp-preview-bottom{padding:8px;gap:5px}.gp-preview-dialog button{padding:6px 9px}.gp-preview-view{padding:5px}}
/* Same saved theme preference as homepage, applied only to store pages. */
html.gp-store[data-theme="dark"]{color-scheme:dark}
html.gp-store[data-theme="dark"] body{background:#071c3d;color:#f3f6fc}
html.gp-store[data-theme="dark"] .gp-store-header{background:#0e2a55;color:#f3f6fc;border-color:#1e3e70}
html.gp-store[data-theme="dark"] .gp-store-brand .gp-logo-light{display:none}
html.gp-store[data-theme="dark"] .gp-store-brand .gp-logo-dark{display:block}
html.gp-store[data-theme="dark"] .gp-store-header a:hover,html.gp-store[data-theme="dark"] .gp-store-header .gp-current{color:#ffc247}
html.gp-store[data-theme="dark"] .gp-store-header .gp-mobile-panel .gp-current{color:#071e48}
html.gp-store[data-theme="dark"] main section:not(.hero),html.gp-store[data-theme="dark"] main section.hero:has(.cover),html.gp-store[data-theme="dark"] main .product{background:#0e2a55;color:#f3f6fc;border-color:#1e3e70}
html.gp-store[data-theme="dark"] main a:not(.buy):not(.cta),html.gp-store[data-theme="dark"] main .cost,html.gp-store[data-theme="dark"] main .age,html.gp-store[data-theme="dark"] main .chapter-group{color:#f3f6fc}
html.gp-store[data-theme="dark"] main .muted,html.gp-store[data-theme="dark"] main .crumb,html.gp-store[data-theme="dark"] main figcaption{color:#afc0dd}
html.gp-store[data-theme="dark"] main .count-label,html.gp-store[data-theme="dark"] main .eyebrow{color:#ffc247}
html.gp-store[data-theme="dark"] #gp-share .share .gp-share-item{color:#f3f6fc!important}
html.gp-store[data-theme="dark"] main .status{background:#342810;color:#fff1cc;border-color:#6e521b}
@media(prefers-reduced-motion:reduce){#gp-share .gp-share-circle{transition:none}}

/* Match storefront hamburger breakpoint on homepage. */
@media (min-width: 901px) and (max-width: 1050px) {

    header:has(>.wrap.bar) {
        position: relative;
        z-index: 100;
    }

    header .nav,
    header .bar {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
        padding-right: 14px;
    }

    header .nav > a:not(:first-child),
    header .wrap.bar > nav {
        display: none !important;
    }

    header .nav > a:first-child,
    header .bar > a:first-child {
        display: block !important;
        min-width: 0;
        flex-shrink: 1;
    }

    header .nav > a:first-child img,
    header .bar > a:first-child img {
        max-width: 190px;
        max-height: 52px;
        height: auto;
        object-fit: contain;
    }

    header .wrap.bar > .gp-mobile-menu {
        display: block !important;
        margin-left: auto;
        flex-shrink: 0;
    }

    header .wrap.bar > .gp-mobile-menu summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid #ffffff66;
        border-radius: 9px;
        background: #071e48;
        color: #fff;
    }

    header .wrap.bar > .gp-mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .gp-menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 23px;
    }

    .gp-menu-icon span {
        display: block;
        width: 23px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
    }

    .gp-mobile-menu[open] .gp-menu-icon span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .gp-mobile-menu[open] .gp-menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .gp-mobile-menu[open] .gp-menu-icon span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    header .wrap.bar > .gp-mobile-menu:not([open]) .gp-mobile-panel {
        display: none !important;
    }

    header .wrap.bar > .gp-mobile-menu[open] .gp-mobile-panel {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        padding: 12px;
        margin: 0;
        background: #071e48;
        box-shadow: 0 12px 24px #0003;
        border-radius: 0 0 12px 12px;
        z-index: 999;
        box-sizing: border-box;
    }

    header .gp-mobile-panel a {
        display: block !important;
        color: #fff !important;
        text-decoration: none;
        font-size: 15px;
        font-weight: 650;
        padding: 13px 15px;
        margin: 0 !important;
        border-radius: 8px;
    }

    header .gp-mobile-panel a:hover,
    header .gp-mobile-panel a:focus-visible {
        background: #ffc247;
        color: #071e48 !important;
    }

    header .wrap.bar > .gp-mobile-menu summary:focus-visible {
        outline: 3px solid #ffc247;
        outline-offset: 3px;
    }
}
/* GP WA TG ICON FIX START */

#gp-share .gp-wa {
    --gp-share-color: #25D366 !important;
}

#gp-share .gp-tg {
    --gp-share-color: #229ED9 !important;
}

#gp-share .gp-wa .gp-share-circle,
#gp-share .gp-tg .gp-share-circle {
    font-size: 0 !important;
    position: relative;
}

#gp-share .gp-wa .gp-share-circle::before,
#gp-share .gp-tg .gp-share-circle::before {
    content: "";
    display: block;
    width: 29px;
    height: 29px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

#gp-share .gp-wa .gp-share-circle::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 25L8.5 20A11 11 0 1 1 12 25Z' fill='none' stroke='white' stroke-width='2.1' stroke-linejoin='round'/%3E%3Cpath d='M12 9.5C9 11 11 17 16 20C21 23 24 19 22 18L18.5 16.5L16.5 18C14 16.5 13 15 12.5 13.5L14 12Z' fill='white'/%3E%3C/svg%3E");
}

#gp-share .gp-tg .gp-share-circle::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M3 14L28 4L23 28L15 21L10 25L11 17Z' fill='white'/%3E%3Cpath d='M11 17L23 9L15 21' fill='%23229ED9'/%3E%3C/svg%3E");
}

/* GP WA TG ICON FIX END */
