/* ==========================================================================
   SOLVIS premium layer
   Loaded after style.css. Retunes the legacy tokens to the SOLVIS logo
   palette (navy → royal → sky) and adds the `sv-` component set used by the
   header, footer, home page, book cards, and the Look Inside reader.
   ========================================================================== */

:root {
    /* Brand — sampled from the SOLVIS wordmark */
    --sv-ink: #0b1233;
    --sv-navy: #14205a;
    --sv-royal: #1b6fc6;
    --sv-sky: #3cbfeb;
    --sv-ice: #eaf6fd;
    --sv-mist: #f5f9fd;
    --sv-paper: #fdfbf6;
    --sv-gold: #d9a441;
    --sv-gold-soft: #f7ebd0;
    --sv-text: #111a3a;
    --sv-muted: #5a6582;
    --sv-line: rgba(17, 26, 58, 0.1);
    --sv-white: #ffffff;

    --sv-grad: linear-gradient(120deg, var(--sv-navy) 0%, var(--sv-royal) 58%, var(--sv-sky) 100%);
    --sv-grad-deep: radial-gradient(120% 90% at 85% 10%, #1b4fa0 0%, #0f1a4d 45%, var(--sv-ink) 100%);
    --sv-shadow-sm: 0 4px 14px rgba(11, 18, 51, 0.08);
    --sv-shadow: 0 18px 44px -12px rgba(11, 18, 51, 0.22);
    --sv-shadow-lg: 0 40px 80px -24px rgba(11, 18, 51, 0.38);
    --sv-radius: 22px;
    --sv-radius-sm: 14px;
    --sv-display: "Fraunces", Georgia, serif;
    --sv-body: "Manrope", system-ui, sans-serif;
    --sv-ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Legacy tokens → brand palette so untouched pages stay consistent */
    --bg: var(--sv-mist);
    --text: var(--sv-text);
    --ink: var(--sv-ink);
    --muted: var(--sv-muted);
    --accent: var(--sv-royal);
    --accent-dark: var(--sv-navy);
    --accent-soft: var(--sv-ice);
    --premium: var(--sv-navy);
    --premium-dark: var(--sv-ink);
    --gold: var(--sv-gold);
    --accent-rgb: 27, 111, 198;
    --accent-dark-rgb: 20, 32, 90;
    --premium-rgb: 20, 32, 90;
    --gold-rgb: 217, 164, 65;
}

body {
    font-family: var(--sv-body);
    color: var(--sv-text);
    background: var(--sv-mist);
}

.sv-display,
.sv-h2,
.sv-hero h1 {
    font-family: var(--sv-display);
    font-optical-sizing: auto;
    letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.button,
.sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.8rem 1.45rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--sv-grad);
    background-size: 160% 100%;
    color: #fff;
    font: 700 0.95rem/1 var(--sv-body);
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(27, 111, 198, 0.7);
    transition: transform 0.3s var(--sv-ease), box-shadow 0.3s var(--sv-ease), background-position 0.5s var(--sv-ease);
}

.button:hover,
.sv-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 16px 30px -12px rgba(27, 111, 198, 0.8);
}

.button:disabled,
.sv-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.button-secondary,
.sv-btn--ghost {
    background: var(--sv-white);
    color: var(--sv-navy);
    border-color: var(--sv-line);
    box-shadow: var(--sv-shadow-sm);
}

.button-secondary:hover,
.sv-btn--ghost:hover {
    border-color: rgba(27, 111, 198, 0.4);
    color: var(--sv-royal);
    box-shadow: var(--sv-shadow-sm);
}

.button-ghost {
    background: transparent;
    color: inherit;
    border-color: currentColor;
    box-shadow: none;
}

.sv-btn--gold {
    background: linear-gradient(120deg, #f3cf7a, var(--sv-gold) 60%, #b98126);
    color: var(--sv-ink);
    box-shadow: 0 12px 28px -12px rgba(217, 164, 65, 0.9);
}

.sv-btn--glass {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.sv-btn--glass:hover {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.sv-btn--sm {
    min-height: 2.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

.sv-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--sv-royal);
    font-weight: 700;
}

.sv-link i {
    transition: transform 0.3s var(--sv-ease);
}

.sv-link:hover i {
    transform: translateX(4px);
}

/* ---------- Section scaffolding ---------- */
.sv-section {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.sv-section--tight {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.sv-section--white {
    background: var(--sv-white);
}

.sv-section--ice {
    background: linear-gradient(180deg, var(--sv-ice), var(--sv-mist));
}

.sv-section--dark {
    background: var(--sv-grad-deep);
    color: #e7eeff;
}

.sv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--sv-royal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sv-eyebrow::before {
    content: "";
    width: 1.8rem;
    height: 2px;
    border-radius: 2px;
    background: var(--sv-grad);
}

.sv-section--dark .sv-eyebrow,
.sv-hero .sv-eyebrow {
    color: var(--sv-sky);
}

.sv-h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.08;
    font-weight: 600;
    color: var(--sv-ink);
}

.sv-h2 em {
    font-style: italic;
    background: var(--sv-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sv-section--dark .sv-h2 {
    color: #fff;
}

.sv-section--dark .sv-h2 em {
    background: linear-gradient(120deg, var(--sv-sky), #a9e6fb);
    -webkit-background-clip: text;
    background-clip: text;
}

.sv-lede {
    margin: 0;
    max-width: 38rem;
    color: var(--sv-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.sv-section--dark .sv-lede {
    color: rgba(231, 238, 255, 0.78);
}

.sv-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.sv-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sv-head--center .sv-lede {
    margin-inline: auto;
}

.sv-js .sv-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--sv-ease), transform 0.9s var(--sv-ease);
}

.sv-js .sv-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .sv-js .sv-reveal {
        opacity: 1;
        transform: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
.sv-topbar {
    background: var(--sv-ink);
    color: rgba(231, 238, 255, 0.8);
    font-size: 0.8rem;
}

.sv-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.4rem;
}

.sv-topbar-note {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.sv-topbar-note i {
    color: var(--sv-gold);
}

.sv-topbar-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.sv-topbar-links a:hover {
    color: #fff;
}

.sv-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--sv-line);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    transition: box-shadow 0.3s var(--sv-ease);
}

.sv-header.is-scrolled {
    box-shadow: 0 10px 30px -18px rgba(11, 18, 51, 0.45);
}

.sv-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 4.6rem;
}

.sv-brand img {
    height: 3rem;
    width: auto;
}

.sv-menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
}

.sv-menu a {
    position: relative;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    color: var(--sv-text);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s, background 0.2s;
}

.sv-menu a:hover {
    color: var(--sv-royal);
    background: var(--sv-ice);
}

.sv-menu a.is-active {
    color: var(--sv-royal);
}

.sv-menu a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.15rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sv-sky);
    transform: translateX(-50%);
}

.sv-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sv-icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--sv-line);
    border-radius: 50%;
    background: #fff;
    color: var(--sv-navy);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.sv-icon-btn:hover {
    color: var(--sv-royal);
    border-color: rgba(27, 111, 198, 0.4);
    transform: translateY(-1px);
}

.sv-icon-btn .sv-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--sv-gold);
    color: var(--sv-ink);
    font-size: 0.7rem;
    font-weight: 800;
}

.sv-search {
    position: relative;
}

.sv-search input {
    width: 12.5rem;
    height: 2.6rem;
    padding: 0 1rem 0 2.5rem;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    background: var(--sv-mist);
    color: var(--sv-text);
    font: 500 0.88rem var(--sv-body);
    transition: width 0.35s var(--sv-ease), border-color 0.2s, background 0.2s;
}

.sv-search input:focus {
    width: 16rem;
    outline: none;
    border-color: var(--sv-royal);
    background: #fff;
}

.sv-search button {
    position: absolute;
    left: 0.35rem;
    top: 50%;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: none;
    color: var(--sv-muted);
    transform: translateY(-50%);
    cursor: pointer;
}

.sv-account-form {
    margin: 0;
}

.sv-burger {
    display: none;
}

.sv-drawer-input,
.sv-drawer,
.sv-drawer-backdrop {
    display: none;
}

@media (max-width: 1180px) {
    .sv-search {
        display: none;
    }
}

@media (max-width: 1024px) {
    .sv-menu,
    .sv-actions .sv-desktop-only,
    .sv-topbar-links {
        display: none;
    }

    .sv-actions {
        margin-left: auto;
    }

    .sv-burger {
        display: inline-grid;
    }

    .sv-drawer {
        display: flex;
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 90;
        flex-direction: column;
        gap: 1.25rem;
        width: min(22rem, 88vw);
        padding: 1.25rem;
        background: #fff;
        box-shadow: var(--sv-shadow-lg);
        transform: translateX(105%);
        transition: transform 0.4s var(--sv-ease);
        overflow-y: auto;
    }

    .sv-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(11, 18, 51, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .sv-drawer-input:checked ~ .sv-drawer {
        transform: none;
    }

    .sv-drawer-input:checked ~ .sv-drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 560px) {
    .sv-brand img {
        height: 2.4rem;
    }

    .sv-topbar {
        display: none;
    }
}

.sv-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sv-drawer-head img {
    height: 2.5rem;
    width: auto;
}

.sv-drawer .sv-search {
    display: block;
}

.sv-drawer .sv-search input,
.sv-drawer .sv-search input:focus {
    width: 100%;
}

.sv-drawer-nav {
    display: grid;
    gap: 0.25rem;
}

.sv-drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: var(--sv-radius-sm);
    font-weight: 700;
    color: var(--sv-text);
}

.sv-drawer-nav a:hover,
.sv-drawer-nav a.is-active {
    background: var(--sv-ice);
    color: var(--sv-royal);
}

.sv-drawer-actions {
    display: grid;
    gap: 0.6rem;
    margin-top: auto;
}

.sv-drawer-actions form,
.sv-drawer-actions .sv-btn,
.sv-drawer-actions button {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.sv-footer {
    position: relative;
    overflow: hidden;
    background: var(--sv-ink);
    color: rgba(231, 238, 255, 0.72);
    font-size: 0.93rem;
}

.sv-footer::before {
    content: "";
    position: absolute;
    top: -12rem;
    right: -10rem;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 191, 235, 0.18), transparent 65%);
    pointer-events: none;
}

.sv-footer-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sv-footer-cta h2 {
    margin: 0;
    max-width: 32rem;
    color: #fff;
    font: 600 clamp(1.6rem, 3vw, 2.3rem)/1.15 var(--sv-display);
}

.sv-footer-cta h2 em {
    color: var(--sv-sky);
}

.sv-footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding: 3rem 0;
}

.sv-footer-plate {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--sv-radius-sm);
    background: #fff;
}

.sv-footer-plate img {
    height: 2.6rem;
    width: auto;
}

.sv-footer h4 {
    margin: 0 0 1.1rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sv-footer p {
    margin: 0 0 0.6rem;
    line-height: 1.7;
}

.sv-footer ul {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sv-footer a:hover {
    color: var(--sv-sky);
}

.sv-footer-contact li {
    display: flex;
    gap: 0.7rem;
}

.sv-footer-contact i {
    width: 1rem;
    margin-top: 0.3rem;
    color: var(--sv-sky);
}

.sv-socials {
    display: flex;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.sv-socials a {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sv-socials a:hover {
    background: var(--sv-royal);
    border-color: var(--sv-royal);
    color: #fff;
}

.sv-footer-base {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.sv-footer-base div {
    display: flex;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .sv-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .sv-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.sv-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 8rem);
    background: var(--sv-grad-deep);
    color: #e7eeff;
    isolation: isolate;
}

/* Sparkles echo the stars around the SOLVIS lightbulb */
.sv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 28% 68%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 44% 14%, rgba(160, 225, 250, 0.8), transparent),
        radial-gradient(1px 1px at 62% 82%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(2px 2px at 78% 30%, rgba(160, 225, 250, 0.7), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 6% 88%, rgba(255, 255, 255, 0.4), transparent);
    animation: sv-twinkle 6s ease-in-out infinite alternate;
}

.sv-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: -1;
    height: 5rem;
    background: var(--sv-mist);
    clip-path: ellipse(75% 100% at 50% 100%);
}

@keyframes sv-twinkle {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

.sv-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.sv-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.sv-pill b {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--sv-gold);
    color: var(--sv-ink);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sv-hero h1 {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: clamp(2.8rem, 6.4vw, 5.2rem);
    font-weight: 600;
    line-height: 1;
}

.sv-hero h1 em {
    display: block;
    padding-bottom: 0.12em;
    font-style: italic;
    background: linear-gradient(100deg, var(--sv-sky), #b6ecff 60%, var(--sv-gold-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sv-hero-tagline {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.sv-hero-lead {
    max-width: 34rem;
    margin: 0 0 2.25rem;
    color: rgba(231, 238, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.75;
}

.sv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.sv-hero-proof {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sv-hero-proof div {
    display: grid;
    gap: 0.15rem;
}

.sv-hero-proof strong {
    color: #fff;
    font: 600 1.6rem/1 var(--sv-display);
}

.sv-hero-proof span {
    color: rgba(231, 238, 255, 0.65);
    font-size: 0.82rem;
}

.sv-stars {
    color: var(--sv-gold);
    letter-spacing: 0.1em;
}

/* Stage + orbit ring (the logo swoosh) */
.sv-hero-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 34rem;
}

.sv-orbit {
    position: absolute;
    width: 118%;
    aspect-ratio: 1.9;
    border: 2px solid rgba(60, 191, 235, 0.35);
    border-radius: 50%;
    transform: rotate(-14deg);
    animation: sv-orbit 14s linear infinite;
}

.sv-orbit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sv-sky);
    box-shadow: 0 0 18px 4px rgba(60, 191, 235, 0.7);
}

.sv-orbit--2 {
    width: 96%;
    border-color: rgba(255, 255, 255, 0.1);
    transform: rotate(10deg);
    animation-duration: 22s;
    animation-direction: reverse;
}

@keyframes sv-orbit {
    to { rotate: 360deg; }
}

.sv-glow {
    position: absolute;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 191, 235, 0.35), transparent 65%);
    filter: blur(10px);
}

/* Featured book — reused in hero and product page. Covers are often 3D
   mockups on transparent backgrounds, so shadows follow the image's alpha
   (drop-shadow) rather than drawing a rectangular box around it. */
.sv-book3d {
    --w: 17rem;
    position: relative;
    display: block;
    width: var(--w);
    transition: transform 0.8s var(--sv-ease);
}

.sv-book3d:hover {
    transform: translateY(-6px) scale(1.02);
}

.sv-book3d img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 28px 34px rgba(5, 10, 35, 0.45)) drop-shadow(0 6px 10px rgba(5, 10, 35, 0.25));
}

.sv-book3d .sv-cover-fallback {
    aspect-ratio: 2 / 3;
    border-radius: 4px 10px 10px 4px;
    box-shadow: var(--sv-shadow-lg);
}

.sv-hero .sv-book3d {
    --w: clamp(14rem, 24vw, 19rem);
    animation: sv-float 7s ease-in-out infinite;
}

@keyframes sv-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

.sv-cover-fallback {
    display: grid;
    place-items: center;
    background: var(--sv-grad);
    color: #fff;
    font: 600 4rem var(--sv-display);
}

.sv-float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sv-text);
    box-shadow: var(--sv-shadow);
    backdrop-filter: blur(10px);
    animation: sv-float 8s ease-in-out infinite;
}

.sv-float-card small {
    display: block;
    color: var(--sv-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.sv-float-card strong {
    display: block;
    font-size: 0.92rem;
}

.sv-float-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    background: var(--sv-ice);
    color: var(--sv-royal);
}

.sv-float-icon--gold {
    background: var(--sv-gold-soft);
    color: #9a6a12;
}

.sv-float-card--a {
    top: 12%;
    left: -2%;
    animation-delay: -2s;
}

.sv-float-card--b {
    right: -3%;
    bottom: 16%;
    animation-delay: -5s;
}

.sv-float-card--c {
    right: 4%;
    top: 4%;
    animation-delay: -1s;
}

@media (max-width: 960px) {
    .sv-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sv-hero-lead {
        margin-inline: auto;
    }

    .sv-hero-actions,
    .sv-hero-proof {
        justify-content: center;
    }

    .sv-hero-stage {
        min-height: 26rem;
    }
}

@media (max-width: 560px) {
    .sv-hero-lead:not(.sv-hero-lead--full) {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sv-hero-proof {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 560px) {
    .sv-float-card--c {
        display: none;
    }

    .sv-float-card--a {
        left: 0;
    }

    .sv-float-card--b {
        right: 0;
    }
}

/* ---------- Pre-order ribbon ---------- */
.sv-ribbon {
    background: linear-gradient(90deg, var(--sv-gold), #f3cf7a, var(--sv-gold));
    color: var(--sv-ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.sv-ribbon .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.65rem 0;
    text-align: center;
}

.sv-ribbon a {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Trust marquee ---------- */
.sv-marquee {
    overflow: hidden;
    padding: 1.4rem 0;
    border-block: 1px solid var(--sv-line);
    background: #fff;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.sv-marquee-track {
    display: flex;
    gap: 3.5rem;
    width: max-content;
    animation: sv-marquee 38s linear infinite;
}

.sv-marquee:hover .sv-marquee-track {
    animation-play-state: paused;
}

.sv-marquee span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--sv-navy);
    font-weight: 700;
    white-space: nowrap;
}

.sv-marquee i {
    color: var(--sv-sky);
}

@keyframes sv-marquee {
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   Book card — cover on a lit stage, lifts in 3D on hover
   ========================================================================== */
.sv-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 1.75rem;
}

.sv-book {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sv-line);
    border-radius: 26px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.5s var(--sv-ease), box-shadow 0.5s var(--sv-ease), border-color 0.3s;
}

.sv-book:hover {
    transform: translateY(-6px);
    border-color: rgba(27, 111, 198, 0.25);
    box-shadow: var(--sv-shadow);
}

.sv-book-stage {
    position: relative;
    display: grid;
    place-items: center;
    padding: 2.25rem 1.5rem 1.75rem;
    background:
        radial-gradient(80% 70% at 50% 100%, rgba(60, 191, 235, 0.25), transparent 70%),
        linear-gradient(160deg, var(--sv-ice), #dcecf9);
    overflow: hidden;
}

.sv-book-stage::after {
    content: "";
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    width: 62%;
    height: 14px;
    border-radius: 50%;
    background: rgba(11, 18, 51, 0.25);
    filter: blur(8px);
    transform: translateX(-50%);
}

.sv-book-cover {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: end center;
    width: 70%;
    aspect-ratio: 3 / 4;
    transition: transform 0.6s var(--sv-ease);
}

.sv-book-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 18px rgba(11, 18, 51, 0.35));
}

.sv-book-cover .sv-cover-fallback {
    width: 80%;
    aspect-ratio: 2 / 3;
    border-radius: 3px 8px 8px 3px;
    box-shadow: 0 18px 30px -12px rgba(11, 18, 51, 0.55);
    font-size: 3rem;
}

.sv-book:hover .sv-book-cover {
    transform: translateY(-8px) scale(1.04);
}

.sv-book-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--sv-navy);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sv-badge--gold {
    background: var(--sv-gold);
    color: var(--sv-ink);
}

.sv-badge--sky {
    background: #fff;
    color: var(--sv-royal);
}

.sv-book-peek {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    color: var(--sv-navy);
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: var(--sv-shadow-sm);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s, transform 0.35s var(--sv-ease);
}

.sv-book:hover .sv-book-peek {
    opacity: 1;
    transform: none;
}

.sv-book-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 1.35rem 1.35rem;
}

.sv-book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--sv-royal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sv-book-body h3 {
    margin: 0;
    font: 600 1.25rem/1.25 var(--sv-display);
    color: var(--sv-ink);
}

.sv-book-body h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sv-book-author {
    margin: 0;
    color: var(--sv-muted);
    font-size: 0.88rem;
}

.sv-book-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--sv-line);
}

.sv-price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.sv-price strong {
    color: var(--sv-ink);
    font-size: 1.15rem;
    font-weight: 800;
}

.sv-price small {
    color: var(--sv-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.sv-price s {
    color: var(--sv-muted);
    font-size: 0.85rem;
}

.sv-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--sv-navy);
    font-size: 0.85rem;
    font-weight: 700;
}

.sv-rating i {
    color: var(--sv-gold);
}

/* ==========================================================================
   Look Inside teaser (home) — an open book with the table of contents
   ========================================================================== */
.sv-inside {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.sv-openbook {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.7rem;
    border-radius: 14px;
    background: linear-gradient(90deg, #0d1745, var(--sv-navy) 50%, #0d1745);
    box-shadow: var(--sv-shadow-lg);
    transform: perspective(2000px) rotateX(8deg);
}

.sv-openbook-page {
    position: relative;
    min-height: 26rem;
    padding: 2rem 1.75rem;
    background: var(--sv-paper);
    color: #2b2a26;
}

.sv-openbook-page:first-child {
    border-radius: 6px 0 0 6px;
    background: linear-gradient(90deg, var(--sv-paper) 85%, #ece6d6);
}

.sv-openbook-page:last-child {
    border-radius: 0 6px 6px 0;
    background: linear-gradient(270deg, var(--sv-paper) 85%, #ece6d6);
}

.sv-openbook-page--image {
    padding: 0;
    overflow: hidden;
}

.sv-openbook-page--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 0 6px 6px 0;
}

.sv-openbook-page h4 {
    margin: 0 0 1.25rem;
    font: 600 0.72rem var(--sv-body);
    letter-spacing: 0.24em;
    text-align: center;
    text-transform: uppercase;
    color: #8a7f68;
}

.sv-toc {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sv-toc li {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.45rem 0;
    font: 500 0.95rem/1.35 var(--sv-display);
}

.sv-toc li::after {
    content: "";
    order: 2;
    flex: 1;
    border-bottom: 1px dotted #b8ad95;
    translate: 0 -4px;
}

.sv-toc .sv-toc-num {
    order: 0;
    color: var(--sv-royal);
    font: 700 0.75rem var(--sv-body);
}

.sv-toc .sv-toc-title {
    order: 1;
}

.sv-toc .sv-toc-page {
    order: 3;
    font: 700 0.8rem var(--sv-body);
    color: #6f6553;
}

.sv-openbook-drop {
    margin: 0 0 0.75rem;
    font: 600 0.72rem var(--sv-body);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sv-royal);
    text-align: center;
}

.sv-openbook-title {
    margin: 0 0 1.25rem;
    font: 600 1.6rem/1.2 var(--sv-display);
    text-align: center;
}

.sv-openbook-text {
    font: 400 0.95rem/1.85 var(--sv-display);
    color: #3b382f;
}

.sv-openbook-text::first-letter {
    float: left;
    margin: 0.3rem 0.5rem 0 0;
    font-size: 3.4rem;
    line-height: 0.8;
    color: var(--sv-navy);
}

.sv-openbook-fade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    border-radius: 0 0 6px 0;
    background: linear-gradient(transparent, var(--sv-paper) 75%);
}

.sv-openbook-folio {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    font: 600 0.75rem var(--sv-body);
    color: #9c917b;
}

.sv-feature-list {
    display: grid;
    gap: 1.1rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.sv-feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sv-feature-list i {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 14px;
    background: var(--sv-ice);
    color: var(--sv-royal);
}

.sv-feature-list strong {
    display: block;
    color: var(--sv-ink);
}

.sv-feature-list span {
    color: var(--sv-muted);
    font-size: 0.93rem;
}

@media (max-width: 960px) {
    .sv-inside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sv-openbook {
        grid-template-columns: 1fr;
        transform: none;
    }

    .sv-openbook-page:first-child {
        border-radius: 6px 6px 0 0;
    }

    .sv-openbook-page:last-child {
        display: none;
    }

    .sv-openbook-page {
        min-height: 0;
    }
}

/* ==========================================================================
   Pillar cards — arch-topped photo cards
   ========================================================================== */
.sv-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.sv-pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0.8rem 1.75rem;
    border: 1px solid var(--sv-line);
    border-radius: 999px 999px 28px 28px;
    background: #fff;
    transition: transform 0.5s var(--sv-ease), box-shadow 0.5s var(--sv-ease);
}

.sv-pillar:hover {
    transform: translateY(-8px);
    box-shadow: var(--sv-shadow);
}

.sv-pillar-img {
    position: relative;
    aspect-ratio: 4 / 4.2;
    border-radius: 999px 999px 20px 20px;
    overflow: hidden;
}

.sv-pillar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--sv-ease);
}

.sv-pillar:hover .sv-pillar-img img {
    transform: scale(1.07);
}

.sv-pillar-num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--sv-grad);
    color: #fff;
    font: 600 1rem var(--sv-display);
    margin: -1.5rem auto 0;
}

.sv-pillar-body {
    padding: 1rem 1rem 0;
    text-align: center;
}

.sv-pillar h3 {
    margin: 0 0 0.6rem;
    font: 600 1.4rem var(--sv-display);
    color: var(--sv-ink);
}

.sv-pillar p {
    margin: 0 0 1.1rem;
    color: var(--sv-muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .sv-pillars {
        grid-template-columns: 1fr;
        max-width: 26rem;
        margin-inline: auto;
    }
}

/* ==========================================================================
   Author section
   ========================================================================== */
.sv-author {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5.5rem);
}

.sv-author-frame {
    position: relative;
    max-width: 27rem;
    margin-inline: auto;
}

.sv-author-frame::before {
    content: "";
    position: absolute;
    inset: -1.25rem 1.25rem 1.25rem -1.25rem;
    border: 2px solid var(--sv-sky);
    border-radius: 999px 999px 30px 30px;
    opacity: 0.6;
}

.sv-author-frame img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
    border-radius: 999px 999px 30px 30px;
    box-shadow: var(--sv-shadow-lg);
}

.sv-author-sig {
    position: absolute;
    right: -1.5rem;
    bottom: 2rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--sv-shadow);
}

.sv-author-sig strong {
    display: block;
    font: italic 600 1.35rem var(--sv-display);
    color: var(--sv-navy);
}

.sv-author-sig span {
    color: var(--sv-muted);
    font-size: 0.8rem;
}

.sv-quote {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem 1.75rem 1.5rem 4rem;
    border-radius: 20px;
    background: var(--sv-ice);
    font: italic 500 1.2rem/1.6 var(--sv-display);
    color: var(--sv-navy);
}

.sv-quote::before {
    content: "\201C";
    position: absolute;
    top: 0.3rem;
    left: 1.1rem;
    font: 600 4.5rem/1 var(--sv-display);
    color: var(--sv-sky);
}

.sv-stockists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0 0 2rem;
}

.sv-stockist {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--sv-line);
    border-radius: 16px;
    background: #fff;
}

.sv-stockist i {
    margin-top: 0.2rem;
    color: var(--sv-gold);
}

.sv-stockist strong {
    display: block;
    color: var(--sv-ink);
    font-size: 0.95rem;
}

.sv-stockist span {
    color: var(--sv-muted);
    font-size: 0.83rem;
}

@media (max-width: 900px) {
    .sv-author {
        grid-template-columns: 1fr;
    }

    .sv-author-sig {
        right: 0;
    }
}

@media (max-width: 520px) {
    .sv-stockists {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Video review
   ========================================================================== */
.sv-video {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.sv-video-frame {
    position: relative;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
}

.sv-video-frame video {
    display: block;
    width: 100%;
    max-height: 32rem;
    border-radius: 22px;
    background: #000;
}

.sv-video-cite {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.sv-video-cite span:first-child {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--sv-grad);
    color: #fff;
    font-weight: 800;
}

.sv-video-cite strong {
    display: block;
    color: #fff;
}

.sv-video-cite small {
    color: rgba(231, 238, 255, 0.65);
}

.sv-video blockquote {
    margin: 1.5rem 0 0;
    font: italic 500 clamp(1.3rem, 2.4vw, 1.75rem)/1.45 var(--sv-display);
    color: #fff;
}

@media (max-width: 900px) {
    .sv-video {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Image band (mentorship) — full-bleed photo with glass card
   ========================================================================== */
.sv-band {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 34rem;
    padding: 4rem 0;
    overflow: hidden;
    color: #fff;
}

.sv-band-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sv-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(11, 18, 51, 0.94) 0%, rgba(20, 32, 90, 0.78) 45%, rgba(27, 111, 198, 0.25) 100%);
}

.sv-band .container {
    position: relative;
    z-index: 2;
}

.sv-band-card {
    max-width: 36rem;
}

.sv-band .sv-h2 {
    color: #fff;
}

.sv-band .sv-h2 em {
    background: linear-gradient(120deg, var(--sv-sky), #b6ecff);
    -webkit-background-clip: text;
    background-clip: text;
}

.sv-band .sv-lede {
    color: rgba(231, 238, 255, 0.82);
}

.sv-band-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.sv-band-stats strong {
    display: block;
    font: 600 2.2rem/1 var(--sv-display);
    color: var(--sv-sky);
}

.sv-band-stats span {
    font-size: 0.85rem;
    color: rgba(231, 238, 255, 0.7);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.sv-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
}

.sv-review {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border: 1px solid var(--sv-line);
    border-radius: 28px 28px 28px 6px;
    background: #fff;
    transition: transform 0.4s var(--sv-ease), box-shadow 0.4s var(--sv-ease);
}

.sv-review:hover {
    transform: translateY(-4px);
    box-shadow: var(--sv-shadow);
}

.sv-review::after {
    content: "\201D";
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font: 600 5rem/1 var(--sv-display);
    color: var(--sv-ice);
}

.sv-review h3 {
    margin: 0;
    font: 600 1.15rem var(--sv-display);
    color: var(--sv-ink);
}

.sv-review p {
    margin: 0;
    color: var(--sv-muted);
    line-height: 1.75;
}

.sv-review-by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--sv-line);
}

.sv-avatar {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--sv-grad);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
}

.sv-review-by strong {
    display: block;
    color: var(--sv-ink);
    font-size: 0.92rem;
}

.sv-review-by small {
    color: var(--sv-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   App + newsletter split
   ========================================================================== */
.sv-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sv-duo-card {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 32px;
}

.sv-duo-card h2 {
    margin: 0 0 0.8rem;
    font: 600 clamp(1.6rem, 2.8vw, 2.2rem)/1.15 var(--sv-display);
}

.sv-duo-card p {
    margin: 0 0 1.75rem;
    line-height: 1.7;
}

.sv-duo-card--app {
    background: var(--sv-grad-deep);
    color: rgba(231, 238, 255, 0.8);
}

.sv-duo-card--app h2 {
    color: #fff;
}

.sv-duo-card--app::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -4rem;
    width: 16rem;
    height: 16rem;
    border: 2px solid rgba(60, 191, 235, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 0 2.5rem rgba(60, 191, 235, 0.06), 0 0 0 5rem rgba(60, 191, 235, 0.04);
}

.sv-duo-card--news {
    border: 1px solid var(--sv-line);
    background: linear-gradient(150deg, #fff, var(--sv-ice));
    color: var(--sv-muted);
}

.sv-duo-card--news h2 {
    color: var(--sv-ink);
}

.sv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.sv-chips span {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sv-play {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.3rem;
    border-radius: 14px;
    background: #fff;
    color: var(--sv-ink);
    transition: transform 0.3s var(--sv-ease);
}

.sv-play:hover {
    transform: translateY(-2px);
}

.sv-play i {
    font-size: 1.6rem;
    color: var(--sv-royal);
}

.sv-play small {
    display: block;
    font-size: 0.68rem;
    color: var(--sv-muted);
}

.sv-play strong {
    display: block;
    font-size: 1rem;
}

.sv-subscribe {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--sv-shadow-sm);
}

.sv-subscribe input {
    flex: 1;
    min-width: 0;
    padding: 0 1rem;
    border: 0;
    background: none;
    font: 500 0.95rem var(--sv-body);
    color: var(--sv-text);
}

.sv-subscribe input:focus {
    outline: none;
}

.sv-note {
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .sv-duo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .sv-subscribe {
        flex-direction: column;
        border-radius: 20px;
    }

    .sv-subscribe input {
        min-height: 2.8rem;
    }
}

/* ==========================================================================
   Articles
   ========================================================================== */
.sv-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: 1.75rem;
}

.sv-article {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--sv-line);
    overflow: hidden;
    transition: transform 0.5s var(--sv-ease), box-shadow 0.5s var(--sv-ease);
}

.sv-article:hover {
    transform: translateY(-6px);
    box-shadow: var(--sv-shadow);
}

.sv-article-img {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0.6rem 0.6rem 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--sv-ice);
}

.sv-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--sv-ease);
}

.sv-article:hover .sv-article-img img {
    transform: scale(1.06);
}

.sv-article-date {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sv-navy);
    font-size: 0.75rem;
    font-weight: 800;
}

.sv-article-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.4rem 1.5rem 1.6rem;
}

.sv-article h3 {
    margin: 0;
    font: 600 1.25rem/1.3 var(--sv-display);
    color: var(--sv-ink);
}

.sv-article h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.sv-article p {
    margin: 0 0 0.6rem;
    color: var(--sv-muted);
    line-height: 1.7;
}

.sv-article .sv-link {
    margin-top: auto;
}

/* ---------- Continue reading ---------- */
.sv-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(19rem, 1fr);
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.sv-progress-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--sv-line);
    border-radius: 20px;
    background: #fff;
    scroll-snap-align: start;
}

.sv-progress-card img,
.sv-progress-card .sv-cover-fallback {
    flex-shrink: 0;
    width: 4.5rem;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    border-radius: 4px 8px 8px 4px;
    font-size: 1.5rem;
}

.sv-progress-card > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.4rem;
}

.sv-progress-card strong {
    color: var(--sv-ink);
    font-family: var(--sv-display);
}

.sv-progress-card small {
    color: var(--sv-muted);
}

.sv-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--sv-ice);
    overflow: hidden;
}

.sv-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--sv-grad);
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.sv-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    color: #fff;
    isolation: isolate;
}

.sv-page-hero img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sv-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(11, 18, 51, 0.95), rgba(20, 32, 90, 0.8) 55%, rgba(27, 111, 198, 0.45));
}

.sv-page-hero h1 {
    margin: 0 0 0.75rem;
    font: 600 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--sv-display);
    color: #fff;
}

.sv-page-hero p {
    max-width: 36rem;
    margin: 0;
    color: rgba(231, 238, 255, 0.8);
    font-size: 1.05rem;
}

.sv-crumbs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(231, 238, 255, 0.7);
    font-size: 0.85rem;
}

.sv-crumbs a:hover {
    color: #fff;
}

/* ==========================================================================
   Product page
   ========================================================================== */
.sv-product {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.sv-product-stage {
    position: sticky;
    top: 6.5rem;
    display: grid;
    place-items: center;
    padding: 3.5rem 2rem 3rem;
    border-radius: 34px;
    background:
        radial-gradient(70% 60% at 50% 95%, rgba(60, 191, 235, 0.3), transparent 70%),
        linear-gradient(160deg, var(--sv-ice), #d6e8f7);
    overflow: hidden;
}

.sv-product-stage .sv-book3d {
    --w: min(19rem, 62vw);
}

.sv-product-stage .sv-book-badges {
    top: 1.25rem;
    left: 1.25rem;
}

.sv-cover-switch {
    display: flex;
    gap: 0.6rem;
    margin-top: 2.25rem;
}

.sv-cover-switch button {
    width: 3.4rem;
    aspect-ratio: 2 / 3;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.sv-cover-switch button.is-active,
.sv-cover-switch button:hover {
    border-color: var(--sv-royal);
    opacity: 1;
}

.sv-cover-switch img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sv-product-info h1 {
    margin: 0.5rem 0 0.4rem;
    font: 600 clamp(2.2rem, 4.5vw, 3.4rem)/1.05 var(--sv-display);
    color: var(--sv-ink);
}

.sv-product-sub {
    margin: 0 0 0.9rem;
    color: var(--sv-muted);
    font: italic 500 1.2rem var(--sv-display);
}

.sv-product-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--sv-line);
    color: var(--sv-muted);
}

.sv-product-byline strong {
    color: var(--sv-navy);
}

.sv-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.sv-tag {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--sv-ice);
    color: var(--sv-royal);
    font-size: 0.78rem;
    font-weight: 700;
}

.sv-tag--alt {
    background: var(--sv-gold-soft);
    color: #8a5d0e;
}

.sv-product-price {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.sv-product-price strong {
    font: 600 2.6rem/1 var(--sv-display);
    color: var(--sv-ink);
}

.sv-product-price s {
    color: var(--sv-muted);
    font-size: 1.1rem;
}

.sv-save {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #e5f6ec;
    color: #1f7a45;
    font-size: 0.8rem;
    font-weight: 800;
}

.sv-formats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
}

.sv-formats legend {
    margin-bottom: 0.75rem;
    color: var(--sv-ink);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sv-format {
    position: relative;
    cursor: pointer;
}

.sv-format input {
    position: absolute;
    opacity: 0;
}

.sv-format span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--sv-line);
    border-radius: 18px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.sv-format i {
    color: var(--sv-royal);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.sv-format strong {
    color: var(--sv-ink);
}

.sv-format b {
    color: var(--sv-royal);
    font-size: 1.1rem;
}

.sv-format small {
    color: var(--sv-muted);
    font-size: 0.75rem;
}

.sv-format input:checked + span {
    border-color: var(--sv-royal);
    background: linear-gradient(160deg, #fff, var(--sv-ice));
    box-shadow: 0 0 0 4px rgba(27, 111, 198, 0.12);
}

.sv-format input:focus-visible + span {
    outline: 2px solid var(--sv-royal);
    outline-offset: 2px;
}

.sv-buy-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sv-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--sv-line);
    border-radius: 999px;
    background: #fff;
}

.sv-qty button {
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    background: none;
    color: var(--sv-navy);
    font-size: 1.1rem;
    cursor: pointer;
}

.sv-qty input {
    width: 2.8rem;
    border: 0;
    background: none;
    text-align: center;
    font: 700 1rem var(--sv-body);
    color: var(--sv-ink);
    -moz-appearance: textfield;
}

.sv-qty input::-webkit-outer-spin-button,
.sv-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.sv-buy-row .sv-btn {
    flex: 1;
    min-width: 12rem;
}

.sv-secondary-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.sv-secondary-actions form {
    margin: 0;
}

.sv-assurances {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.sv-assurances div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 16px;
    background: var(--sv-white);
    border: 1px solid var(--sv-line);
    font-size: 0.8rem;
    color: var(--sv-muted);
}

.sv-assurances i {
    color: var(--sv-royal);
    font-size: 1.1rem;
}

.sv-assurances strong {
    color: var(--sv-ink);
    font-size: 0.85rem;
}

.sv-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--sv-line);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.sv-specs div {
    padding: 1.1rem 1.25rem;
    border-right: 1px solid var(--sv-line);
}

.sv-specs div:last-child {
    border-right: 0;
}

.sv-specs span {
    display: block;
    color: var(--sv-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sv-specs strong {
    color: var(--sv-ink);
    font-size: 1rem;
}

.sv-prose {
    color: #3a4461;
    font-size: 1.02rem;
    line-height: 1.85;
}

.sv-lessons {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lesson;
}

.sv-lessons li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--sv-line);
    counter-increment: lesson;
}

.sv-lessons li::before {
    content: counter(lesson, decimal-leading-zero);
    color: var(--sv-sky);
    font: 600 1.4rem/1 var(--sv-display);
}

.sv-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 960px) {
    .sv-product,
    .sv-detail-grid {
        grid-template-columns: 1fr;
    }

    .sv-product-stage {
        position: relative;
        top: 0;
    }
}

@media (max-width: 620px) {
    .sv-specs {
        grid-template-columns: 1fr 1fr;
    }

    .sv-specs div:nth-child(2) {
        border-right: 0;
    }

    .sv-specs div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--sv-line);
    }

    .sv-assurances {
        grid-template-columns: 1fr;
    }
}

/* ---------- Look Inside panel on the product page ---------- */
.sv-look {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.sv-chapters {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sv-chapter {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--sv-line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    transition: border-color 0.2s, transform 0.3s var(--sv-ease), box-shadow 0.3s;
}

button.sv-chapter {
    cursor: pointer;
}

button.sv-chapter:hover,
a.sv-chapter:hover {
    border-color: rgba(27, 111, 198, 0.45);
    transform: translateX(4px);
    box-shadow: var(--sv-shadow-sm);
}

.sv-chapter-num {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    background: var(--sv-ice);
    color: var(--sv-royal);
    font: 600 1rem var(--sv-display);
}

.sv-chapter strong {
    display: block;
    color: var(--sv-ink);
    font-size: 0.97rem;
}

.sv-chapter small {
    display: block;
    color: var(--sv-muted);
    font-size: 0.8rem;
}

.sv-chapter-page {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--sv-muted);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.sv-chapter-page .fa-circle-play {
    color: var(--sv-royal);
}

.sv-chapter.is-locked {
    background: var(--sv-mist);
}

.sv-chapter.is-locked .sv-chapter-num {
    background: #e8ecf3;
    color: var(--sv-muted);
}

.sv-look-cta {
    position: relative;
    overflow: hidden;
    padding: 2.25rem;
    border-radius: 30px;
    background: var(--sv-grad-deep);
    color: rgba(231, 238, 255, 0.8);
}

.sv-look-cta h3 {
    margin: 0 0 0.6rem;
    font: 600 1.8rem/1.15 var(--sv-display);
    color: #fff;
}

.sv-look-meter {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0 0.5rem;
    font-size: 0.85rem;
}

.sv-look-meter strong {
    color: #fff;
}

.sv-look-cta .sv-bar {
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 1.75rem;
}

.sv-look-cta .sv-bar span {
    background: linear-gradient(90deg, var(--sv-sky), #b6ecff);
}

.sv-look-cta-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.sv-look-cta-actions form {
    margin: 0;
}

@media (max-width: 960px) {
    .sv-look {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Look Inside reader (dialog)
   ========================================================================== */
.sv-reader {
    width: min(76rem, 100vw - 2rem);
    height: min(52rem, 100dvh - 2rem);
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: #eef2f8;
    color: var(--sv-text);
    box-shadow: var(--sv-shadow-lg);
    overflow: hidden;
}

.sv-reader[open] {
    display: grid;
    grid-template-rows: auto 1fr auto;
    animation: sv-pop 0.45s var(--sv-ease);
}

.sv-reader::backdrop {
    background: rgba(11, 18, 51, 0.72);
    backdrop-filter: blur(6px);
}

@keyframes sv-pop {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
}

.sv-reader-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--sv-line);
}

.sv-reader-top img {
    width: 2.2rem;
    aspect-ratio: 2 / 3;
    object-fit: contain;
}

.sv-reader-title {
    flex: 1;
    min-width: 0;
}

.sv-reader-title small {
    display: block;
    color: var(--sv-royal);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sv-reader-title strong {
    display: block;
    overflow: hidden;
    color: var(--sv-ink);
    font-family: var(--sv-display);
    font-size: 1.1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sv-reader-tools {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sv-reader-tools select {
    height: 2.4rem;
    padding: 0 0.8rem;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    background: #fff;
    font: 600 0.82rem var(--sv-body);
    color: var(--sv-navy);
}

.sv-zoom-value {
    min-width: 3.2rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sv-navy);
}

.sv-reader-body {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    min-height: 0;
}

.sv-reader-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--sv-line);
    background: #fff;
}

.sv-reader-side h4 {
    margin: 0;
    padding: 1.1rem 1.25rem 0.6rem;
    color: var(--sv-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sv-reader-toc {
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 0 0.6rem 1rem;
    list-style: none;
}

.sv-reader-toc button {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--sv-text);
    font: 600 0.87rem/1.35 var(--sv-body);
    text-align: left;
    cursor: pointer;
}

.sv-reader-toc button small {
    display: block;
    color: var(--sv-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.sv-reader-toc button span:last-child {
    color: var(--sv-muted);
    font-size: 0.75rem;
}

.sv-reader-toc button:hover:not(:disabled) {
    background: var(--sv-mist);
}

.sv-reader-toc button.is-current {
    background: var(--sv-ice);
    color: var(--sv-royal);
}

.sv-reader-toc button:disabled {
    color: #a3abbf;
    cursor: not-allowed;
}

.sv-reader-side-foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--sv-line);
    font-size: 0.8rem;
    color: var(--sv-muted);
}

.sv-reader-side-foot .sv-bar {
    margin-top: 0.5rem;
}

.sv-reader-view {
    position: relative;
    overflow: auto;
    padding: 1.75rem;
    background:
        radial-gradient(circle at 50% 0, rgba(60, 191, 235, 0.12), transparent 60%),
        #e9eef6;
}

.sv-reader-sheet {
    position: relative;
    min-height: 24rem;
    width: min(100%, 44rem);
    margin: 0 auto;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 24px 50px -20px rgba(11, 18, 51, 0.35);
    transition: width 0.3s var(--sv-ease);
}

.sv-reader-sheet img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: opacity 0.25s;
}

.sv-reader-sheet.is-loading img {
    opacity: 0.35;
}

.sv-reader-sheet.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.4rem;
    height: 2.4rem;
    margin: -1.2rem 0 0 -1.2rem;
    border: 3px solid var(--sv-ice);
    border-top-color: var(--sv-royal);
    border-radius: 50%;
    animation: sv-spin 0.8s linear infinite;
}

@keyframes sv-spin {
    to { transform: rotate(360deg); }
}

/* EPUB preview text */
.sv-reader-epub {
    max-width: 42rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border-radius: 6px;
    background: var(--sv-paper);
    box-shadow: 0 24px 50px -20px rgba(11, 18, 51, 0.3);
    font: 400 1.08rem/1.9 var(--sv-display);
    color: #2b2a26;
}

.sv-reader-epub section + section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e6dfcd;
}

.sv-reader-epub h3 {
    margin: 0 0 1.5rem;
    font-size: 1.6rem;
    text-align: center;
}

.sv-reader-epub .sv-part {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--sv-royal);
    font: 800 0.72rem var(--sv-body);
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
}

.sv-reader-epub img {
    max-width: 100%;
    height: auto;
}

.sv-reader-view[data-theme="sepia"] {
    background: #efe6d2;
}

.sv-reader-view[data-theme="sepia"] .sv-reader-epub {
    background: #f6ecd6;
    color: #4a3b22;
}

.sv-reader-view[data-theme="dark"] {
    background: #0b1233;
}

.sv-reader-view[data-theme="dark"] .sv-reader-epub {
    background: #141c3f;
    color: #dde4f7;
}

.sv-reader-view[data-size="small"] .sv-reader-epub {
    font-size: 0.96rem;
}

.sv-reader-view[data-size="large"] .sv-reader-epub {
    font-size: 1.25rem;
}

.sv-reader-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.25rem;
    background: #fff;
    border-top: 1px solid var(--sv-line);
}

.sv-reader-bottom .sv-bar {
    flex: 1;
}

.sv-page-jump {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--sv-muted);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.sv-page-jump input {
    width: 3.4rem;
    height: 2.3rem;
    padding: 0;
    border: 1px solid var(--sv-line);
    border-radius: 10px;
    text-align: center;
    font: 700 0.9rem var(--sv-body);
    color: var(--sv-ink);
}

/* Unlock overlay at the end of the preview */
.sv-unlock {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(11, 18, 51, 0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}

.sv-unlock.is-revealed {
    opacity: 1;
    pointer-events: auto;
}

.sv-unlock-card {
    position: relative;
    max-width: 26rem;
    padding: 2.25rem;
    border-radius: 26px;
    background: #fff;
    text-align: center;
    box-shadow: var(--sv-shadow-lg);
}

.sv-unlock-card > i {
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--sv-gold-soft);
    color: #9a6a12;
    font-size: 1.3rem;
}

.sv-unlock-card h3 {
    margin: 0 0 0.5rem;
    font: 600 1.6rem var(--sv-display);
    color: var(--sv-ink);
}

.sv-unlock-card p {
    margin: 0 0 1.5rem;
    color: var(--sv-muted);
}

.sv-unlock-card form {
    margin: 0;
}

.sv-unlock-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.sv-epub-end {
    position: static;
    margin-top: 2rem;
    background: none;
    backdrop-filter: none;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 860px) {
    .sv-reader {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }

    .sv-reader-body {
        grid-template-columns: 1fr;
    }

    .sv-reader-side {
        display: none;
    }

    .sv-reader.show-toc .sv-reader-side {
        display: flex;
        position: absolute;
        inset: 4rem 0 3.8rem;
        z-index: 6;
    }

    .sv-reader-view {
        padding: 1rem;
    }

    .sv-reader-bottom .sv-bar {
        display: none;
    }

    .sv-reader-bottom {
        justify-content: space-between;
    }

    .sv-hide-sm {
        display: none;
    }
}

@media (min-width: 861px) {
    .sv-toc-toggle {
        display: none;
    }
}

/* ---------- Workspace chapter jump ---------- */
.sv-chapter-jump {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sv-navy);
}

.sv-chapter-jump select {
    max-width: 16rem;
    height: 2.4rem;
    padding: 0 0.8rem;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    background: #fff;
    font: 600 0.85rem var(--sv-body);
    color: var(--sv-navy);
}

/* ---------- Floating widgets retuned to brand ---------- */
.floating-whatsapp {
    box-shadow: var(--sv-shadow);
}

.sv-empty {
    padding: 3rem;
    border: 1.5px dashed var(--sv-line);
    border-radius: 24px;
    background: #fff;
    color: var(--sv-muted);
    text-align: center;
}

/* ==========================================================================
   Look Inside flip-book (templates/main/book_preview.html)
   ========================================================================== */
.sv-flip-body {
    --bar-h: 68px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(1000px 600px at 50% 45%, #1b3a78 0%, transparent 70%),
        radial-gradient(600px 400px at 90% 100%, rgba(60, 191, 235, 0.16), transparent 70%),
        var(--sv-ink);
    color: #fff;
    -webkit-user-select: none;
    user-select: none;
}

/* This page doesn't load style.css, so bring over its base resets. */
.sv-flip-body *,
.sv-flip-body *::before,
.sv-flip-body *::after {
    box-sizing: border-box;
}

.sv-flip-body a {
    color: inherit;
    text-decoration: none;
}

.sv-flip-body img {
    display: block;
    max-width: 100%;
}

.sv-flip-bar {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    flex-shrink: 0;
    align-items: center;
    gap: 16px;
    height: var(--bar-h);
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(11, 18, 51, 0.72);
    backdrop-filter: blur(14px);
}

.sv-flip-bar-side {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sv-flip-bar-end {
    justify-content: flex-end;
}

.sv-flip-btn {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s;
}

.sv-flip-btn:hover {
    border-color: var(--sv-sky);
    color: var(--sv-sky);
}

.sv-flip-toc-toggle {
    display: none;
}

.sv-flip-title {
    min-width: 0;
}

.sv-flip-title strong {
    display: block;
    overflow: hidden;
    font: 600 17px var(--sv-display);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sv-flip-title span {
    color: rgba(231, 238, 255, 0.6);
    font-size: 12px;
}

.sv-flip-label {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--sv-sky);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.sv-flip-layout {
    position: relative;
    display: flex;
    flex: 1;
    min-height: 0;
}

.sv-flip-toc {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 310px;
    padding: 24px 18px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(11, 18, 51, 0.55);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sv-flip-toc-book {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 0 6px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sv-flip-toc-book img {
    width: 52px;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

.sv-flip-toc-book strong {
    display: block;
    font: 600 16px/1.3 var(--sv-display);
}

.sv-flip-toc-book span {
    color: rgba(231, 238, 255, 0.6);
    font-size: 12.5px;
}

.sv-flip-toc-label {
    padding: 0 8px 10px;
    color: var(--sv-sky);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.sv-flip-toc-nav {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sv-flip-toc-nav button,
.sv-flip-toc-nav a,
.sv-flip-toc-nav .locked {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: none;
    color: rgba(255, 255, 255, 0.88);
    font: 600 14px/1.35 var(--sv-body);
    text-align: left;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}

.sv-flip-toc-nav button:hover,
.sv-flip-toc-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sv-flip-toc-nav button.is-current {
    border-color: rgba(60, 191, 235, 0.4);
    background: rgba(60, 191, 235, 0.12);
}

.sv-flip-toc-nav .n {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--sv-sky);
    font: 600 14px var(--sv-display);
}

.sv-flip-toc-nav .n i {
    font-size: 12px;
}

.sv-flip-toc-nav .t em {
    display: block;
    color: rgba(231, 238, 255, 0.55);
    font-size: 12.5px;
    font-weight: 400;
    font-style: italic;
}

.sv-flip-toc-nav .p {
    color: rgba(231, 238, 255, 0.55);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.sv-flip-toc-nav .locked {
    cursor: not-allowed;
    opacity: 0.45;
}

.sv-flip-toc-cta {
    margin-top: auto;
    padding: 20px;
    border: 1px solid rgba(217, 164, 65, 0.3);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(217, 164, 65, 0.18), rgba(217, 164, 65, 0.04));
}

.sv-flip-toc-nav + .sv-flip-toc-cta {
    margin-top: 26px;
}

.sv-flip-toc-cta strong {
    font: 600 18px var(--sv-display);
}

.sv-flip-toc-cta p {
    margin: 4px 0 14px;
    color: rgba(231, 238, 255, 0.6);
    font-size: 13px;
}

.sv-flip-toc-cta .sv-btn {
    width: 100%;
}

.sv-flip-scrim {
    display: none;
}

.sv-flip-stage {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 20px 80px 16px;
}

.sv-flip-wrap {
    position: relative;
    width: min(100%, calc((100dvh - var(--bar-h) - 110px) * 1.412));
}

.sv-flip-wrap::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -26px;
    z-index: -1;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6), transparent 70%);
    filter: blur(8px);
}

#flipbook {
    margin: 0 auto;
}

.sv-flip-page {
    position: relative;
    overflow: hidden;
    background: var(--sv-paper);
}

.sv-flip-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f3efe4 0%, var(--sv-paper) 100%);
}

.sv-flip-page img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--sv-paper);
    -webkit-user-drag: none;
}

.sv-flip-page img:not([src]) {
    visibility: hidden;
}

.sv-flip-cover {
    background: var(--sv-grad-deep);
}

.sv-flip-cover::before {
    display: none;
}

.sv-flip-cover img {
    padding: 6%;
    background: none;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}

.sv-flip-back img.sv-flip-back-logo {
    width: 40%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    border-radius: 16px;
    object-fit: contain;
    filter: none;
    opacity: 0.9;
}

.sv-flip-end {
    background: radial-gradient(circle at 50% 30%, #fff, var(--sv-ice));
    color: var(--sv-ink);
}

.sv-flip-end::before {
    display: none;
}

.sv-flip-end-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10%;
    text-align: center;
}

.sv-flip-end-inner h2 {
    margin: 10px 0 6px;
    font: 600 clamp(1.2rem, 2.4vw, 2rem)/1.15 var(--sv-display);
    color: var(--sv-ink);
}

.sv-flip-end-inner h2 em {
    color: var(--sv-royal);
}

.sv-flip-end-inner p {
    margin: 0 0 10px;
    color: var(--sv-muted);
    font-size: clamp(0.8rem, 1.2vw, 0.98rem);
}

.sv-flip-end-inner form {
    margin: 0;
}

.sv-flip-end-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sv-grad);
    color: #fff;
    font-size: 1.4rem;
}

.sv-flip-end-link {
    margin-top: 12px;
    border-bottom: 1px solid currentColor;
    color: var(--sv-royal);
    font-size: 13px;
    font-weight: 700;
}

.sv-flip-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background 0.3s var(--sv-ease), color 0.3s, border-color 0.3s;
}

.sv-flip-nav:hover {
    border-color: var(--sv-sky);
    background: var(--sv-sky);
    color: var(--sv-ink);
}

.sv-flip-nav:disabled {
    opacity: 0.25;
    pointer-events: none;
}

.sv-flip-nav.prev {
    left: 16px;
}

.sv-flip-nav.next {
    right: 16px;
}

.sv-flip-foot {
    width: min(560px, 100%);
    margin-top: 34px;
    text-align: center;
}

.sv-flip-foot input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sv-sky) var(--pct, 0%), rgba(255, 255, 255, 0.14) var(--pct, 0%));
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sv-flip-foot input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid var(--sv-ink);
    border-radius: 50%;
    background: var(--sv-sky);
    box-shadow: 0 0 0 1px var(--sv-sky);
    -webkit-appearance: none;
}

.sv-flip-foot input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid var(--sv-ink);
    border-radius: 50%;
    background: var(--sv-sky);
}

.sv-flip-hint {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.sv-flip-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    max-width: 420px;
    color: rgba(231, 238, 255, 0.65);
    text-align: center;
}

.sv-flip-empty > i {
    font-size: 2.6rem;
    color: var(--sv-sky);
}

.sv-flip-empty h2 {
    margin: 16px 0 0;
    font: 600 1.8rem var(--sv-display);
    color: #fff;
}

.sv-flip-empty .sv-btn {
    margin-top: 14px;
}

@media (max-width: 1000px) {
    .sv-flip-toc-toggle {
        display: grid;
    }

    .sv-flip-toc {
        position: absolute;
        inset: 0 auto 0 0;
        z-index: 30;
        background: #0d1640;
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
        transform: translateX(-105%);
        transition: transform 0.45s var(--sv-ease);
    }

    .sv-flip-toc.is-open {
        transform: none;
    }

    .sv-flip-scrim {
        position: absolute;
        inset: 0;
        z-index: 25;
        display: block;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .sv-flip-scrim.is-open {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 700px) {
    .sv-flip-body {
        --bar-h: 60px;
    }

    .sv-flip-bar {
        grid-template-columns: auto 1fr auto;
        padding: 0 12px;
    }

    .sv-flip-title {
        display: none;
    }

    .sv-view-switch--dark {
        justify-self: center;
    }

    .sv-view-switch--dark a span {
        display: none;
    }

    .sv-flip-label {
        padding: 6px 14px;
        font-size: 12px;
    }

    .sv-flip-title span,
    .sv-flip-hide-sm {
        display: none;
    }

    .sv-flip-title strong {
        max-width: 42vw;
        font-size: 15px;
    }

    .sv-flip-stage {
        padding: 20px 14px 14px;
    }

    .sv-flip-wrap {
        width: min(100%, calc((100dvh - var(--bar-h) - 150px) * 0.706));
    }

    .sv-flip-nav {
        display: none;
    }

    .sv-flip-foot {
        margin-top: 26px;
    }
}

/* ==========================================================================
   About + Mentorship pages
   ========================================================================== */
.sv-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.sv-split--flip {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.sv-split--flip > :first-child {
    order: 2;
}

.sv-poster {
    position: relative;
    width: 100%;
    max-width: 30rem;
    margin-inline: auto;
}

.sv-poster::before {
    content: "";
    position: absolute;
    inset: 1.5rem -1.5rem -1.5rem 1.5rem;
    border-radius: 30px;
    background: var(--sv-grad);
    opacity: 0.18;
}

.sv-poster img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 26px;
    box-shadow: var(--sv-shadow-lg);
}

.sv-arch {
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
}

.sv-arch img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 999px 999px 30px 30px;
    box-shadow: var(--sv-shadow-lg);
}

.sv-arch::before {
    content: "";
    position: absolute;
    inset: -1.1rem -1.1rem 1.1rem 1.1rem;
    border: 2px solid rgba(60, 191, 235, 0.55);
    border-radius: 999px 999px 30px 30px;
}

.sv-arch .sv-float-card {
    left: -1.5rem;
    bottom: 2rem;
}

.sv-chips--light span {
    border-color: var(--sv-line);
    background: #fff;
    color: var(--sv-navy);
}

.sv-lede + .sv-lede {
    margin-top: 1rem;
}

/* Vision / mission */
.sv-mission {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1.5rem;
}

.sv-mission-card {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--sv-line);
    border-radius: 32px;
    background: #fff;
}

.sv-mission-card > i {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: var(--sv-ice);
    color: var(--sv-royal);
    font-size: 1.3rem;
}

.sv-mission-card h3 {
    margin: 0 0 0.8rem;
    font: 600 1.7rem var(--sv-display);
    color: var(--sv-ink);
}

.sv-mission-card p {
    margin: 0;
    color: var(--sv-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.sv-mission-card--dark {
    border: 0;
    background: var(--sv-grad-deep);
}

.sv-mission-card--dark > i {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sv-sky);
}

.sv-mission-card--dark h3 {
    color: #fff;
}

.sv-mission-card--dark p {
    color: rgba(231, 238, 255, 0.8);
}

.sv-mission-card--dark .sv-quote {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Audience stages */
.sv-stages {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.sv-stage {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--sv-line);
    border-radius: 24px;
    background: #fff;
    transition: transform 0.4s var(--sv-ease), box-shadow 0.4s var(--sv-ease);
}

.sv-stage:hover {
    transform: translateY(-6px);
    box-shadow: var(--sv-shadow);
}

.sv-stage > i {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 14px;
    background: var(--sv-grad);
    color: #fff;
}

.sv-stage .sv-age {
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--sv-gold-soft);
    color: #8a5d0e;
    font-size: 0.75rem;
    font-weight: 800;
}

.sv-stage strong {
    color: var(--sv-ink);
    font: 600 1.1rem/1.3 var(--sv-display);
}

.sv-stage span:last-child {
    color: var(--sv-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Numbered steps / outcomes */
.sv-steps {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.sv-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--sv-line);
    border-radius: 18px;
    background: #fff;
    color: var(--sv-ink);
    font-weight: 600;
    counter-increment: step;
}

.sv-steps li::before {
    content: counter(step, decimal-leading-zero);
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--sv-ice);
    color: var(--sv-royal);
    font: 600 0.95rem var(--sv-display);
}

.sv-uniques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.9rem;
}

.sv-unique {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.4rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--sv-line);
}

.sv-unique i {
    color: var(--sv-sky);
    font-size: 1.4rem;
}

.sv-unique strong {
    color: var(--sv-ink);
    font-size: 0.98rem;
}

/* Delivery modes on dark band */
.sv-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.sv-mode {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.sv-mode i {
    color: var(--sv-sky);
    font-size: 1.3rem;
}

.sv-mode strong {
    display: block;
    margin: 0.6rem 0 0.25rem;
    color: #fff;
}

.sv-mode span {
    color: rgba(231, 238, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.5;
}

.sv-band .sv-quote {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Program facts row */
.sv-facts {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: -4.5rem;
}

.sv-fact {
    padding: 1.6rem;
    border: 1px solid var(--sv-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--sv-shadow);
}

.sv-fact i {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--sv-ice);
    color: var(--sv-royal);
}

.sv-fact small {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--sv-royal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sv-fact p {
    margin: 0;
    color: var(--sv-ink);
    font-weight: 600;
    line-height: 1.55;
}

.sv-checks {
    display: grid;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.sv-checks li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--sv-line);
    border-radius: 16px;
    background: #fff;
    color: var(--sv-ink);
    font-weight: 600;
}

.sv-checks li::before {
    content: "\f00c";
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--sv-grad);
    color: #fff;
    font: 900 0.75rem "Font Awesome 6 Free";
}

/* Centered CTA panel */
.sv-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    border-radius: 36px;
    background: var(--sv-grad-deep);
    color: rgba(231, 238, 255, 0.8);
    text-align: center;
}

.sv-cta::after {
    content: "";
    position: absolute;
    right: -6rem;
    top: -6rem;
    width: 20rem;
    height: 20rem;
    border: 2px solid rgba(60, 191, 235, 0.25);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(60, 191, 235, 0.05);
}

.sv-cta h2 {
    margin: 0 0 0.75rem;
    font: 600 clamp(1.9rem, 4vw, 2.8rem)/1.1 var(--sv-display);
    color: #fff;
}

.sv-cta p {
    max-width: 34rem;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.sv-cta .sv-hero-actions {
    position: relative;
    z-index: 1;
    justify-content: center;
}

.sv-cta form {
    margin: 0;
}

/* Small message modal */
.sv-modal {
    width: min(28rem, calc(100vw - 2rem));
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: #fff;
    color: var(--sv-text);
    box-shadow: var(--sv-shadow-lg);
}

.sv-modal[open] {
    animation: sv-pop 0.4s var(--sv-ease);
}

.sv-modal::backdrop {
    background: rgba(11, 18, 51, 0.6);
    backdrop-filter: blur(4px);
}

.sv-modal-body {
    position: relative;
    padding: 2.25rem 2rem 2rem;
    text-align: center;
}

.sv-modal-body > i {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--sv-ice);
    color: var(--sv-royal);
    font-size: 1.3rem;
}

.sv-modal-body h3 {
    margin: 0 0 0.5rem;
    font: 600 1.5rem var(--sv-display);
    color: var(--sv-ink);
}

.sv-modal-body p {
    margin: 0;
    color: var(--sv-muted);
    line-height: 1.65;
}

.sv-modal-body p + p {
    margin-top: 0.75rem;
    font-size: 0.92rem;
}

.sv-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
}

@media (max-width: 1100px) {
    .sv-stages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .sv-split,
    .sv-split--flip,
    .sv-mission {
        grid-template-columns: 1fr;
    }

    .sv-split--flip > :first-child {
        order: 0;
    }

    .sv-facts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .sv-stages,
    .sv-modes,
    .sv-facts {
        grid-template-columns: 1fr;
    }

    .sv-arch .sv-float-card {
        left: 0;
    }
}

/* ==========================================================================
   Gallery — masonry tiles + lightbox
   ========================================================================== */
.sv-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.sv-gallery-filters button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    background: #fff;
    color: var(--sv-navy);
    font: 700 0.88rem var(--sv-body);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sv-gallery-filters button span {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--sv-ice);
    color: var(--sv-royal);
    font-size: 0.75rem;
}

.sv-gallery-filters button.is-active {
    border-color: transparent;
    background: var(--sv-grad);
    color: #fff;
}

.sv-gallery-filters button.is-active span {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sv-masonry {
    columns: 3 20rem;
    column-gap: 1.25rem;
}

.sv-tile {
    break-inside: avoid;
    margin: 0 0 1.25rem;
}

.sv-tile[hidden] {
    display: none;
}

.sv-tile-photo {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--sv-ice);
    cursor: zoom-in;
    box-shadow: var(--sv-shadow-sm);
    transition: transform 0.5s var(--sv-ease), box-shadow 0.5s var(--sv-ease);
}

.sv-tile-photo:hover,
.sv-tile-photo:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--sv-shadow);
}

.sv-tile-photo:focus-visible {
    outline: 3px solid var(--sv-sky);
    outline-offset: 3px;
}

.sv-tile-photo img {
    width: 100%;
    height: auto;
    transition: transform 1s var(--sv-ease);
}

.sv-tile-photo:hover img {
    transform: scale(1.06);
}

.sv-tile-overlay {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 3.5rem 1.25rem 1.2rem;
    background: linear-gradient(transparent, rgba(11, 18, 51, 0.92));
    color: #fff;
    text-align: left;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--sv-ease), transform 0.4s var(--sv-ease);
}

.sv-tile-photo:hover .sv-tile-overlay,
.sv-tile-photo:focus-visible .sv-tile-overlay {
    opacity: 1;
    transform: none;
}

.sv-tile-overlay strong {
    font: 600 1.1rem/1.3 var(--sv-display);
}

.sv-tile-overlay span {
    color: rgba(231, 238, 255, 0.82);
    font-size: 0.83rem;
    line-height: 1.5;
}

.sv-tile-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sv-navy);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s var(--sv-ease);
}

.sv-tile-photo:hover .sv-tile-zoom {
    opacity: 1;
    transform: none;
}

/* Touch screens have no hover: keep titles visible */
@media (hover: none) {
    .sv-tile-overlay {
        opacity: 1;
        transform: none;
    }
}

.sv-tile--video {
    border: 1px solid var(--sv-line);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.sv-tile-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.sv-tile-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sv-tile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.2rem;
}

.sv-tile-meta strong {
    color: var(--sv-ink);
    font: 600 1.05rem var(--sv-display);
}

.sv-tile-meta span {
    color: var(--sv-muted);
    font-size: 0.85rem;
}

.sv-lightbox {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #070b20;
    color: #fff;
}

.sv-lightbox[open] {
    display: grid;
    grid-template-rows: auto 1fr auto;
    animation: sv-fade 0.3s ease;
}

.sv-lightbox::backdrop {
    background: transparent;
}

@keyframes sv-fade {
    from { opacity: 0; }
}

.sv-lightbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.sv-lightbox-count {
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--sv-sky);
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sv-lightbox-btn {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sv-lightbox-btn:hover {
    border-color: var(--sv-sky);
    background: var(--sv-sky);
    color: var(--sv-ink);
}

.sv-lightbox-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 0 5.5rem;
}

.sv-lightbox-stage img {
    max-width: 100%;
    /* Leave room for the top bar and caption below */
    max-height: calc(100dvh - 12rem);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.sv-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.sv-lightbox-nav.prev {
    left: 1.25rem;
}

.sv-lightbox-nav.next {
    right: 1.25rem;
}

.sv-lightbox-caption {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 1.75rem;
    text-align: center;
}

.sv-lightbox-caption strong {
    font: 600 1.3rem var(--sv-display);
}

.sv-lightbox-caption span {
    color: rgba(231, 238, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .sv-masonry {
        columns: 2 10rem;
        column-gap: 0.75rem;
    }

    .sv-tile {
        margin-bottom: 0.75rem;
    }

    .sv-tile-photo {
        border-radius: 16px;
    }

    .sv-tile-overlay {
        padding: 2.5rem 0.75rem 0.7rem;
    }

    .sv-tile-overlay strong {
        font-size: 0.85rem;
    }

    .sv-tile-overlay span {
        display: none;
    }

    .sv-lightbox-stage {
        padding: 0 0.75rem;
    }

    .sv-lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
        border-color: transparent;
        background: rgba(7, 11, 32, 0.55);
        font-size: 0.9rem;
    }

    .sv-lightbox-nav.prev {
        left: 1.1rem;
    }

    .sv-lightbox-nav.next {
        right: 1.1rem;
    }
}

/* ==========================================================================
   Essays (blog list)
   ========================================================================== */
.sv-essays-hero {
    padding-bottom: clamp(5rem, 8vw, 7rem);
    text-align: center;
}

.sv-essays-hero h1 em {
    display: inline;
}

.sv-essays-hero .sv-hero-lead {
    margin-inline: auto;
}

.sv-essays-hero .sv-hero-proof {
    justify-content: center;
    max-width: 36rem;
    margin-inline: auto;
}

.sv-essay-no {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--sv-grad);
    color: #fff;
    font: 600 0.8rem var(--sv-display);
    letter-spacing: 0.04em;
    box-shadow: 0 6px 16px -6px rgba(11, 18, 51, 0.6);
}

.sv-essay-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    margin-top: -4.5rem;
    border: 1px solid var(--sv-line);
    border-radius: 32px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--sv-shadow);
}

.sv-essay-feature[hidden] {
    display: none;
}

.sv-essay-feature-img {
    position: relative;
    display: block;
    min-height: 22rem;
    overflow: hidden;
}

.sv-essay-feature-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--sv-ease);
}

.sv-essay-feature:hover .sv-essay-feature-img img {
    transform: scale(1.04);
}

.sv-essay-feature-img .sv-essay-no {
    top: 1.25rem;
    left: 1.25rem;
    font-size: 0.95rem;
}

.sv-essay-feature-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(2rem, 4vw, 3.25rem);
}

.sv-essay-feature-body .sv-eyebrow {
    margin-bottom: 0;
}

.sv-essay-feature-body h2 {
    margin: 0;
    font: 600 clamp(1.6rem, 3vw, 2.3rem)/1.15 var(--sv-display);
    color: var(--sv-ink);
}

.sv-essay-feature-body h2 a:hover {
    color: var(--sv-royal);
}

.sv-essay-feature-body p {
    margin: 0;
    color: var(--sv-muted);
    line-height: 1.75;
}

.sv-essay-feature-body .sv-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.sv-essay-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    color: var(--sv-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.sv-essay-meta i {
    margin-right: 0.2rem;
    color: var(--sv-sky);
}

.sv-essays-head {
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.sv-essay-search {
    position: relative;
    display: block;
    width: min(100%, 20rem);
}

.sv-essay-search i {
    position: absolute;
    top: 50%;
    left: 1rem;
    color: var(--sv-muted);
    transform: translateY(-50%);
}

.sv-essay-search input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem 0 2.6rem;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    background: #fff;
    color: var(--sv-text);
    font: 500 0.92rem var(--sv-body);
    box-shadow: var(--sv-shadow-sm);
}

.sv-essay-search input:focus {
    outline: none;
    border-color: var(--sv-royal);
}

.sv-article[hidden] {
    display: none;
}

@media (max-width: 860px) {
    .sv-essay-feature {
        grid-template-columns: 1fr;
    }

    .sv-essay-feature-img {
        min-height: 15rem;
    }
}

@media (max-width: 560px) {
    .sv-essays-hero .sv-hero-proof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .sv-essays-hero .sv-hero-proof strong {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   Owner reader — Original layout / Reflow
   ========================================================================== */
.sv-view-switch {
    display: inline-flex;
    padding: 0.25rem;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    background: var(--sv-mist);
}

.sv-view-switch a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: var(--sv-muted);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.sv-view-switch a:hover {
    color: var(--sv-royal);
}

.sv-view-switch a.is-active {
    background: var(--sv-grad);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(27, 111, 198, 0.8);
}

.sv-reflow-settings {
    position: relative;
}

.sv-aa {
    font: 600 1rem var(--sv-display);
}

.sv-reflow-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    z-index: 40;
    display: grid;
    gap: 1rem;
    width: min(23rem, calc(100vw - 2rem));
    padding: 1.25rem;
    border: 1px solid var(--sv-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--sv-shadow-lg);
}

.sv-reflow-panel[hidden] {
    display: none;
}

.sv-reflow-row {
    display: grid;
    gap: 0.45rem;
}

.sv-reflow-row > span {
    color: var(--sv-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sv-seg,
.sv-stepper {
    display: flex;
    gap: 0.3rem;
    padding: 0.25rem;
    border-radius: 14px;
    background: var(--sv-mist);
}

.sv-seg button,
.sv-stepper button {
    flex: 1;
    min-height: 2.3rem;
    padding: 0 0.6rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--sv-navy);
    font: 600 0.85rem var(--sv-body);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.sv-seg button:hover,
.sv-stepper button:hover {
    background: #fff;
}

.sv-seg button.is-active {
    background: #fff;
    color: var(--sv-royal);
    box-shadow: 0 2px 8px rgba(11, 18, 51, 0.12);
}

.sv-stepper output {
    display: grid;
    place-items: center;
    min-width: 4rem;
    color: var(--sv-ink);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.sv-seg--themes .sv-swatch {
    font: 600 1rem var(--sv-display);
    border: 2px solid transparent;
}

.sv-swatch--paper { background: #fffdf8 !important; color: #2b2a26 !important; }
.sv-swatch--sepia { background: #f4e9d2 !important; color: #5b4630 !important; }
.sv-swatch--night { background: #121a3a !important; color: #dde4f7 !important; }

.sv-seg--themes .sv-swatch.is-active {
    border-color: var(--sv-royal);
}

.sv-reflow-reset {
    justify-self: start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sv-royal);
    font: 700 0.82rem var(--sv-body);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* The reading surface */
.sv-reflow-shell {
    --reflow-size: 18px;
    --reflow-bg: #fffdf8;
    --reflow-ink: #2b2a26;
    --reflow-accent: var(--sv-royal);
    --reflow-measure: 38em;
    --reflow-leading: 1.8;
    min-height: 100%;
    padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
    border-radius: 18px;
    background: var(--reflow-bg);
    color: var(--reflow-ink);
    transition: background 0.3s, color 0.3s;
}

.sv-reflow-shell[data-theme="sepia"] {
    --reflow-bg: #f4e9d2;
    --reflow-ink: #4a3b22;
    --reflow-accent: #9a6a12;
}

.sv-reflow-shell[data-theme="night"] {
    --reflow-bg: #121a3a;
    --reflow-ink: #d9e1f5;
    --reflow-accent: var(--sv-sky);
}

.sv-reflow-shell[data-width="narrow"] { --reflow-measure: 32em; }
.sv-reflow-shell[data-width="wide"] { --reflow-measure: 46em; }
.sv-reflow-shell[data-spacing="compact"] { --reflow-leading: 1.5; }
.sv-reflow-shell[data-spacing="relaxed"] { --reflow-leading: 2.15; }

.sv-reflow {
    max-width: var(--reflow-measure);
    margin: 0 auto;
    font-family: Literata, Georgia, serif;
    font-size: var(--reflow-size);
    line-height: var(--reflow-leading);
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    transition: font-size 0.2s, line-height 0.2s, max-width 0.3s;
}

.sv-reflow-shell[data-font="georgia"] .sv-reflow { font-family: Georgia, "Times New Roman", serif; }
.sv-reflow-shell[data-font="sans"] .sv-reflow { font-family: Manrope, system-ui, sans-serif; }
/* Tinos is metrically identical to Times New Roman — used where Times isn't installed (Linux, Android). */
.sv-reflow-shell[data-font="times"] .sv-reflow { font-family: "Times New Roman", Times, Tinos, "Liberation Serif", serif; }
.sv-reflow-shell[data-font="garamond"] .sv-reflow { font-family: "EB Garamond", Garamond, "Times New Roman", serif; font-size: calc(var(--reflow-size) * 1.06); } /* Garamond runs small */
.sv-reflow-shell[data-font="readable"] .sv-reflow { font-family: "Atkinson Hyperlegible", Verdana, sans-serif; }
.sv-reflow-shell[data-align="justify"] .sv-reflow p { text-align: justify; }

.sv-reflow p {
    margin: 0;
    text-indent: 1.6em;
}

.sv-reflow p:first-child,
.sv-reflow p.sv-cont,
.sv-reflow h2 + p,
.sv-reflow .sv-reflow-kicker + p {
    text-indent: 0;
}

.sv-reflow .sv-reflow-kicker {
    margin: 0.5em 0 0.3em;
    color: var(--reflow-accent);
    font-family: var(--sv-body);
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-align: center;
    text-indent: 0;
    text-transform: uppercase;
}

.sv-reflow h2 {
    margin: 0 0 1.4em;
    font-family: var(--sv-display);
    font-size: 1.75em;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: inherit;
}

.sv-reflow h2 + p::first-letter {
    float: left;
    margin: 0.08em 0.12em 0 0;
    font-family: var(--sv-display);
    font-size: 3.4em;
    line-height: 0.8;
    color: var(--reflow-accent);
}

.sv-reflow em {
    font-style: italic;
}

.sv-reflow-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    max-width: 30rem;
    margin: 0 auto 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(27, 111, 198, 0.08);
    color: inherit;
    font-size: 0.9rem;
    text-align: center;
}

.sv-reflow-page-img {
    max-width: min(100%, 36rem);
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: var(--sv-shadow);
}

@media (max-width: 640px) {
    .sv-view-switch {
        width: 100%;
    }

    .sv-view-switch a {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.6rem;
    }
}


/* Layout switch + reflow inside the dark Look Inside page */
.sv-view-switch--dark {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.sv-view-switch--dark a {
    color: rgba(231, 238, 255, 0.75);
}

.sv-view-switch--dark a:hover {
    color: #fff;
}

.sv-flip-foot .sv-flip-label {
    display: inline-block;
    margin-bottom: 16px;
}

/* ==========================================================================
   Reflow as a page-turning book (Look Inside preview)
   Markup: templates/main/book_preview.html · Behaviour: main/reflow-pages.js
   The text is poured into real pages that StPageFlip turns. Without JS
   (.is-paged absent) the reflowed text simply scrolls.
   ========================================================================== */
.sv-flip-stage--reflow {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

.sv-flip-stage--reflow .sv-flip-reflow {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem clamp(0.75rem, 3vw, 2.5rem);
    -webkit-user-select: text;
    user-select: text;
}

/* Fallback (no JS): a scrolling column */
.sv-rbook {
    position: relative;
    display: flex;
    justify-content: center;
}

.sv-rbook:not(.is-paged) .sv-reflow-shell {
    max-width: 52rem;
    margin: 0 auto;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

.sv-rbook:not(.is-paged) .sv-reflow-section + .sv-reflow-section {
    margin-top: 3em;
    padding-top: 2.5em;
    border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.sv-rbook .sv-flip-nav,
.sv-rbook:not(.is-paged) ~ .sv-rbook-foot,
.sv-rbook-host {
    display: none;
}

/* Paged book: the panel is locked; nothing scrolls, pages turn instead. */
.sv-flip-stage--reflow .sv-flip-reflow.is-book {
    overflow: hidden;
}

.sv-rbook.is-paged {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0 4.5rem;
}

.sv-rbook.is-paged .sv-flip-nav {
    display: grid;
}

/* The shell is just the area the book fills; the pages carry the paper colour. */
.sv-rbook.is-paged .sv-reflow-shell {
    position: relative;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.sv-rbook.is-paged .sv-rbook-viewport {
    display: none; /* the source text; pages are built from it */
}

.sv-rbook.is-paged .sv-rbook-host {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Off-screen box where pages are filled and measured */
.sv-rbook-measure {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    pointer-events: none;
}

.sv-rpage {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--reflow-bg);
    color: var(--reflow-ink);
}

.sv-rpage-inner {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.sv-rpage-text {
    position: relative;
    overflow: hidden;
}

.sv-rpage-text .sv-reflow {
    max-width: none;
    margin: 0;
    transition: none;
}

/* A fresh paragraph at the top of a page keeps its indent; a continued one doesn't. */
.sv-rpage-text .sv-reflow p:first-child:not(.sv-cont) {
    text-indent: 1.6em;
}

.sv-rpage-text .sv-reflow img,
.sv-reflow .sv-reflow-page-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: var(--page-h, 80vh);
    margin: 0 auto 1em;
}

.sv-rpage-folio {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    font: 600 0.75rem var(--sv-body);
    letter-spacing: 0.08em;
    text-align: center;
    opacity: 0.5;
    font-variant-numeric: tabular-nums;
}

/* End-of-preview page */
.sv-reflow .sv-reflow-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding-top: 18%;
    font-family: var(--sv-body);
    font-size: 0.85em;
    text-align: center;
}

.sv-reflow .sv-reflow-end h2 {
    margin: 0.5rem 0 0;
    color: inherit;
}

.sv-reflow .sv-reflow-end p {
    text-indent: 0;
    opacity: 0.8;
}

.sv-reflow .sv-reflow-end h2 + p::first-letter {
    float: none;
    margin: 0;
    font: inherit;
    color: inherit;
}

.sv-reflow .sv-reflow-end form {
    margin: 0;
}

/* Control row under the book: settings · page counter · slider */
.sv-rbook-foot {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
    align-self: center;
    gap: 1rem;
    width: min(760px, 100%);
    margin-top: 0.9rem;
}

.sv-rbook-foot .sv-flip-label {
    flex-shrink: 0;
    margin: 0;
}

.sv-rbook-foot .sv-reflow-panel {
    top: auto;
    bottom: calc(100% + 0.6rem);
}

.sv-rbook-foot input[type="range"] {
    flex: 1;
    min-width: 6rem;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sv-sky) var(--pct, 0%), rgba(255, 255, 255, 0.14) var(--pct, 0%));
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sv-rbook-foot input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid var(--sv-ink);
    border-radius: 50%;
    background: var(--sv-sky);
    -webkit-appearance: none;
}

.sv-rbook-foot input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid var(--sv-ink);
    border-radius: 50%;
    background: var(--sv-sky);
}

@media (max-width: 700px) {
    .sv-rbook.is-paged {
        padding: 0;
    }

    .sv-rbook.is-paged .sv-flip-nav {
        display: none;
    }

    .sv-rbook-foot {
        gap: 0.6rem;
    }

    .sv-reflow-settings-text {
        display: none;
    }
}

/* Six font choices: two rows of three */
.sv-seg--fonts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.sv-seg--fonts button {
    padding: 0.35rem 0.4rem;
    font-size: 0.9rem;
    line-height: 1.15;
}

/* Search inside the reflowed text (preview book + owner reader) */
.sv-rsearch {
    position: relative;
}

.sv-rsearch-panel {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: min(24rem, calc(100vw - 2rem));
    max-height: min(26rem, 60vh);
}

.sv-rsearch-panel[hidden] {
    display: none;
}

.sv-rsearch-field {
    position: relative;
    display: block;
}

.sv-rsearch-field i {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    color: var(--sv-muted);
    transform: translateY(-50%);
}

.sv-rsearch-field input {
    width: 100%;
    height: 2.6rem;
    padding: 0 0.9rem 0 2.4rem;
    border: 1px solid var(--sv-line);
    border-radius: 12px;
    background: var(--sv-mist);
    color: var(--sv-text);
    font: 500 0.92rem var(--sv-body);
}

.sv-rsearch-field input:focus {
    outline: none;
    border-color: var(--sv-royal);
    background: #fff;
}

.sv-rsearch-count {
    margin: 0;
    color: var(--sv-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.sv-rsearch-results {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.sv-rsearch-results li + li {
    border-top: 1px solid var(--sv-line);
}

.sv-rsearch-results button,
.sv-rsearch-results a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.4rem;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--sv-text);
    font: 500 0.84rem/1.45 var(--sv-body);
    text-align: left;
    cursor: pointer;
}

.sv-rsearch-results button:hover,
.sv-rsearch-results a:hover {
    background: var(--sv-mist);
}

.sv-rsearch-page {
    padding-top: 0.05rem;
    color: var(--sv-royal);
    font-weight: 800;
    white-space: nowrap;
}

.sv-rsearch-results mark {
    padding: 0 0.1em;
    border-radius: 3px;
    background: #ffe58a;
    color: inherit;
}

/* Matches highlighted on the pages themselves */
mark.sv-hit {
    padding: 0;
    border-radius: 2px;
    background: rgba(255, 213, 79, 0.55);
    color: inherit;
}

.sv-reflow-shell[data-theme="night"] mark.sv-hit {
    background: rgba(255, 213, 79, 0.35);
}

/* Owner reader: the paper grows with its text. (The scroll box is a CSS grid, and a
   min-height: 100% item would lock the grid row to the box height, so long pages
   spilled past the paper.) */
.preview-scroll-shell > .sv-reflow-shell {
    align-self: start;
    min-height: auto;
}

/* Phones: reading settings and search open as a bottom sheet instead of a popover
   anchored to their button (which ran off the right edge of small screens). */
@media (max-width: 700px) {
    .sv-reflow-panel,
    .sv-rbook-foot .sv-reflow-panel,
    .sv-flip-reflow-tools .sv-reflow-panel {
        position: fixed;
        top: auto;
        left: max(0.75rem, env(safe-area-inset-left));
        right: max(0.75rem, env(safe-area-inset-right));
        bottom: calc(4.75rem + env(safe-area-inset-bottom));
        z-index: 60;
        width: auto;
        max-height: min(70vh, 34rem);
        gap: 0.8rem;
        padding: 1rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 18px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.35);
    }

    .sv-rsearch-panel {
        max-height: min(60vh, 30rem);
    }

    .sv-reflow-row {
        gap: 0.35rem;
    }

    .sv-seg button,
    .sv-stepper button {
        min-height: 2.15rem;
        padding: 0 0.4rem;
        font-size: 0.82rem;
    }

    .sv-seg--fonts button {
        font-size: 0.84rem;
    }

    .sv-seg--themes .sv-swatch {
        min-height: 2.3rem;
    }
}

/* Panel header: title + close button (reading settings, search) */
.sv-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: -0.25rem 0 0.1rem;
}

.sv-panel-head strong {
    color: var(--sv-ink);
    font: 600 1.05rem var(--sv-display);
}

.sv-panel-close {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--sv-line);
    border-radius: 50%;
    background: #fff;
    color: var(--sv-navy);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sv-panel-close:hover,
.sv-panel-close:focus-visible {
    border-color: var(--sv-royal);
    color: var(--sv-royal);
}

@media (max-width: 700px) {
    /* Keep the header (and its close button) visible while the sheet scrolls. */
    .sv-panel-head {
        position: sticky;
        top: -1rem;
        z-index: 1;
        margin: -1rem -1rem 0;
        padding: 0.85rem 1rem 0.6rem;
        background: #fff;
        border-bottom: 1px solid var(--sv-line);
    }

    .sv-panel-close {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Share / promote the book (book page, inside the dark Look Inside card) */
.sv-share {
    position: relative;
    z-index: 1;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sv-share-head {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.sv-share-head strong {
    color: #fff;
    font-size: 1rem;
}

.sv-share-head strong i {
    margin-right: 0.35rem;
    color: var(--sv-sky);
}

.sv-share-head span {
    color: rgba(231, 238, 255, 0.7);
    font-size: 0.88rem;
}

.sv-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sv-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: 700 0.84rem var(--sv-body);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.sv-share-btn:hover,
.sv-share-btn:focus-visible {
    transform: translateY(-1px);
}

.sv-share-btn i {
    font-size: 1rem;
}

/* WhatsApp leads — it's how most readers here share. */
.sv-share-btn--whatsapp {
    border-color: #25d366;
    background: #25d366;
    color: #fff;
}

.sv-share-btn--whatsapp:hover { background: #1ebe5a; }
.sv-share-btn--facebook:hover { border-color: #1877f2; background: #1877f2; }
.sv-share-btn--x:hover { border-color: #000; background: #000; }
.sv-share-btn--telegram:hover { border-color: #229ed9; background: #229ed9; }
.sv-share-btn--linkedin:hover { border-color: #0a66c2; background: #0a66c2; }
.sv-share-btn--email:hover,
.sv-share-btn--copy:hover,
.sv-share-btn--native:hover { border-color: var(--sv-sky); background: rgba(60, 191, 235, 0.18); }

.sv-share-btn--copy.is-done {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.18);
}

.sv-share-btn[hidden] {
    display: none;
}

@media (max-width: 560px) {
    .sv-share-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .sv-share-btn {
        justify-content: center;
    }
}

/* No flash while the Look Inside book is being built (html.sv-js is set before first paint).
   The plain layouts are revealed by .is-fallback if the scripts can't build the book. */
.sv-js .sv-rbook:not(.is-paged):not(.is-fallback) .sv-reflow-shell {
    visibility: hidden;
}

.sv-js .sv-rbook:not(.is-paged):not(.is-fallback) {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sv-js .sv-rbook:not(.is-paged):not(.is-fallback)::after {
    content: "Preparing your book\2026";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(231, 238, 255, 0.7);
    font: 600 0.95rem var(--sv-body);
    letter-spacing: 0.02em;
}

.sv-js .sv-rbook:not(.is-paged):not(.is-fallback) ~ .sv-rbook-foot {
    visibility: hidden;
}

.sv-js [data-flipbook]:not(.stf__parent):not(.is-fallback) {
    visibility: hidden;
}

/* ==========================================================================
   Account pages — sign in, create account, password reset
   (templates/registration/auth_base.html)
   ========================================================================== */
.sv-auth {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 5rem);
    padding: clamp(1.5rem, 5vw, 4rem) 1rem;
    background:
        radial-gradient(60% 50% at 0% 0%, rgba(60, 191, 235, 0.16), transparent 70%),
        radial-gradient(50% 50% at 100% 100%, rgba(217, 164, 65, 0.14), transparent 70%),
        var(--sv-mist);
}

.sv-auth-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    width: min(100%, 64rem);
    overflow: hidden;
    border: 1px solid var(--sv-line);
    border-radius: 28px;
    background: var(--sv-white);
    box-shadow: var(--sv-shadow-lg);
}

/* Brand panel */
.sv-auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(2rem, 4vw, 3rem);
    overflow: hidden;
    background: var(--sv-grad-deep);
    color: #dfe8ff;
    isolation: isolate;
}

.sv-auth-orbit {
    position: absolute;
    inset: auto -30% -40% auto;
    width: 26rem;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(60, 191, 235, 0.25);
    box-shadow: 0 0 0 3.5rem rgba(60, 191, 235, 0.05), 0 0 0 7rem rgba(60, 191, 235, 0.03);
    z-index: -1;
}

.sv-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font: 700 1rem/1 var(--sv-display);
    letter-spacing: 0.01em;
}

.sv-auth-brand img {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0.3rem;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.sv-auth-book {
    align-self: center;
    width: min(62%, 13rem);
    margin: 0.5rem 0;
    filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.45));
    transform: rotate(-4deg);
    transition: transform 0.6s var(--sv-ease);
}

.sv-auth-card:hover .sv-auth-book {
    transform: rotate(0deg) translateY(-4px);
}

.sv-auth-aside blockquote {
    margin: 0;
    color: #fff;
    font: italic 500 1.35rem/1.35 var(--sv-display);
}

.sv-auth-perks {
    display: grid;
    gap: 0.75rem;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.93rem;
}

.sv-auth-perks li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sv-auth-perks i {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--sv-gold);
    font-size: 0.85rem;
}

/* Form panel */
.sv-auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.sv-auth-main h1 {
    margin: 0 0 0.5rem;
    color: var(--sv-ink);
    font: 600 clamp(1.8rem, 3.2vw, 2.4rem)/1.1 var(--sv-display);
    letter-spacing: -0.02em;
}

.sv-auth-sub {
    margin: 0 0 1.75rem;
    color: var(--sv-muted);
    line-height: 1.6;
}

.sv-auth-google {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.sv-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.4rem 0;
    color: var(--sv-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sv-auth-divider::before,
.sv-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--sv-line);
}

.sv-auth-form {
    display: grid;
    gap: 1.1rem;
}

.sv-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sv-field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.sv-field-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.sv-field-label label {
    color: var(--sv-text);
    font-size: 0.88rem;
    font-weight: 700;
}

.sv-field-label a {
    color: var(--sv-royal);
    font-size: 0.85rem;
    font-weight: 700;
}

.sv-input {
    position: relative;
}

.sv-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    transform: translateY(-50%);
    fill: none;
    stroke: #8090b3;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.2s;
    z-index: 2;
}

.sv-input input {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.85rem 1rem 0.85rem 2.9rem;
    border: 1.5px solid #dbe3f0;
    border-radius: 14px;
    background: #f8fafd;
    color: var(--sv-text);
    font: 500 0.98rem var(--sv-body);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.sv-input.password-field input {
    padding-right: 3rem;
}

.sv-input input::placeholder {
    color: #9aa6c0;
}

.sv-input input:hover {
    border-color: #c2cee3;
}

.sv-input input:focus {
    outline: none;
    border-color: var(--sv-royal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(27, 111, 198, 0.14);
}

.sv-input:focus-within .sv-input-icon {
    stroke: var(--sv-royal);
}

.sv-input .password-toggle {
    right: 0.6rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
}

.sv-input .password-toggle:hover {
    background: var(--sv-ice);
}

.sv-input .toggle-icon {
    stroke: #8090b3;
}

.sv-field.has-error input {
    border-color: #e0605a;
    background: #fff8f7;
}

.sv-field.has-error .sv-input-icon {
    stroke: #d0453e;
}

.sv-field-error {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0;
    color: #b3261e;
    font-size: 0.84rem;
    line-height: 1.45;
}

.sv-field-error i {
    margin-top: 0.2rem;
}

.sv-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(208, 69, 62, 0.25);
    border-radius: 14px;
    background: #fff4f3;
    color: #a52a22;
    font-size: 0.9rem;
    line-height: 1.5;
}

.sv-auth-alert i {
    margin-top: 0.2rem;
}

.sv-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--sv-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    cursor: pointer;
}

.sv-auth-check input {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.15rem 0 0;
    padding: 0;
    accent-color: var(--sv-royal);
    cursor: pointer;
}

.sv-auth-check a,
.sv-auth-state a,
.sv-auth-footer a {
    color: var(--sv-royal);
    font-weight: 700;
}

.sv-auth-check.has-error {
    color: #b3261e;
}

.sv-auth-submit {
    width: 100%;
    min-height: 3.3rem;
    margin-top: 0.4rem;
    font-size: 1rem;
}

.sv-auth-submit i {
    transition: transform 0.3s var(--sv-ease);
}

.sv-auth-submit:hover i {
    transform: translateX(3px);
}

.sv-auth-footer {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--sv-line);
    color: var(--sv-muted);
    font-size: 0.92rem;
    text-align: center;
}

.sv-auth-footer:empty {
    display: none;
}

.sv-auth-state {
    display: grid;
    justify-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--sv-muted);
    text-align: center;
    line-height: 1.6;
}

.sv-auth-state p {
    margin: 0;
}

.sv-auth-state-icon {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--sv-ice);
    color: var(--sv-royal);
    font-size: 1.6rem;
    box-shadow: 0 0 0 10px rgba(60, 191, 235, 0.08);
}

.sv-auth-state.is-ok .sv-auth-state-icon {
    background: #e6f6ec;
    color: #1d8a4a;
    box-shadow: 0 0 0 10px rgba(29, 138, 74, 0.07);
}

.sv-auth-state.is-warn .sv-auth-state-icon {
    background: var(--sv-gold-soft);
    color: #a8741a;
    box-shadow: 0 0 0 10px rgba(217, 164, 65, 0.1);
}

@media (max-width: 860px) {
    .sv-auth {
        place-items: start center;
        min-height: 0;
    }

    .sv-auth-card {
        grid-template-columns: 1fr;
        max-width: 32rem;
    }

    /* Slim brand strip on top instead of the full panel */
    .sv-auth-aside {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1.1rem 1.4rem;
    }

    .sv-auth-aside blockquote,
    .sv-auth-perks,
    .sv-auth-book {
        display: none;
    }
}

@media (max-width: 480px) {
    .sv-auth {
        padding: 1rem 0.75rem 2rem;
    }

    .sv-auth-card {
        border-radius: 22px;
    }

    .sv-auth-main {
        padding: 1.6rem 1.25rem 1.8rem;
    }

    .sv-auth-row {
        grid-template-columns: 1fr;
    }
}

/* Search button in the flip-book bar (owner's full book, Original layout) */
.sv-rsearch--bar .sv-reflow-panel {
    color: var(--sv-text);
    text-align: left;
}

@media (min-width: 701px) {
    .sv-rsearch--bar .sv-reflow-panel {
        left: auto;
        right: 0;
    }
}
