body {
    margin: 0;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.header-bg-cutoff {
    position: absolute;
    top: 320px;
    left: 0;
    width: 100vw;
    height: calc(100% - 320px);
    background: #fff;
    z-index: 1;
}
.main-content-container {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    min-height: 400px;
    margin-top: 80px;
    flex: 1 0 auto;
}
.cover-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 260px;
}
.book-cover[data-shape="portrait"] {
    height: 320px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.35), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    background: #fff;
}
.book-cover[data-shape="landscape"] {
    width: 320px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.35), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    background: #fff;
}
.book-cover[data-shape="square"] {
    width: 280px;
    height: 280px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.35), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    background: #fff;
}
.info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-left: 40px;
    min-width: 500px;
}
.book-title,
.book-byline {
    color: #fff !important;
    text-shadow:
        0 2px 8px rgba(0,0,0,0.85),
        0 0px 1px #fff;
}
.book-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.12em 0;
    line-height: 1.1;
    text-align: center;
}
.book-byline {
    font-size: 1.1rem;
    margin: 0 0 24px 0;
    font-weight: 400;
    text-align: center;
}
.mockup-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-radius: 10px 10px 0 0;
    overflow: visible;
    border-bottom: 2.5px solid var(--bp-color-border);
    width: fit-content;
    box-shadow: none;
}
.mockup-tabs .tab {
    padding: 7px 22px;
    border: 2px solid var(--bp-color-border);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: var(--bp-color-bg);
    color: var(--bp-color-text);
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    margin-right: 2px;
    position: relative;
    top: 2px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.04);
    z-index: 1;
}
.mockup-tabs .tab:last-child {
    margin-right: 0;
}
.mockup-tabs .tab.active,
.mockup-tabs .tab:focus,
.mockup-tabs .tab:hover {
    background: var(--bp-color-accent1);
    color: #fff;
    z-index: 2;
    top: 0;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.08);
}
.section-heading {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 0 16px 0;
    text-align: center;
}
.store-icons-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: center !important;
    align-items: flex-start !important;
}
.store-icon {
    width: 90px !important;
    min-width: 90px !important;
    height: 90px !important;
    min-height: 90px !important;
    border-radius: 22px;
    background: transparent;
    flex: 0 0 90px !important;
    margin-right: 18px;
    margin-bottom: 12px;
    padding: 0;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    overflow: visible;
}
.store-icon:last-child {
    margin-right: 0;
}
.store-icon img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 22px;
    object-fit: contain;
    background: #eee;
    display: block;
    box-shadow: 0 2px 12px 2px rgba(0,0,0,0.1);
    margin: 0 !important;
}
.store-icon img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px 2px rgba(0,0,0,0.12);
}
.footer-links {
    margin-bottom: 8px;
}
.footer-meta {
    margin-bottom: 8px;
    font-size: 0.98rem;
    opacity: 0.85;
}
@media (max-width: 900px) {
    .main-content-container {
        flex-direction: column;
        align-items: center;
    }
    .info-col {
        margin-left: 0;
        margin-top: 20px;
    }
    
    /* Change to black text when title stacks below cover */
    .info-col .book-title,
    .info-col .book-subtitle,
    .info-col .book-byline,
    .info-col .book-series-info {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .info-col .book-series-info a {
        color: #000 !important;
        text-shadow: none !important;
    }
}
@media (max-width: 767px) {
    .main-content-container {
        margin-top: 40px;
        padding: 0 16px;
    }
    .cover-col {
        width: auto;
        margin-bottom: 24px;
    }
    .book-cover[data-shape="portrait"] {
        height: 280px;
    }
    .book-cover[data-shape="landscape"] {
        width: 280px;
    }
    .book-cover[data-shape="square"] {
        width: 240px;
        height: 240px;
    }
    .info-col {
        min-width: 0;
        width: 100%;
        align-items: center;
    }
    .book-title {
        font-size: 1.8rem;
        margin-top: 1em;
    }
    .store-icons-grid {
        justify-content: center !important;
    }
    .blurry-cover-bg {
        height: 250px;
    }
    .header-bg-cutoff {
        top: 250px;
        height: calc(100% - 250px);
    }
}
/* Styles for the globe icon overlay */
.global-icon-overlay {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none; /* Allows clicks to go through to the link */
    z-index: 10;
}
.global-icon-overlay svg {
    width: 16px;
    height: 16px;
    color: #333;
}

/* Series Information Styling */
.book-series-info {
    font-size: 1.1rem;
    margin: 0 0 24px 0;
    font-weight: 400;
    text-align: center;
    color: #fff !important;
    text-shadow:
        0 2px 8px rgba(0,0,0,0.85),
        0 0px 1px #fff;
}

.book-series-info a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 400;
    text-shadow:
        0 2px 8px rgba(0,0,0,0.85),
        0 0px 1px #fff;
}

.book-series-info a:hover {
    text-decoration: underline;
} 