:root {
    color-scheme: dark;

    --black: #020203;
    --panel: rgba(6, 6, 8, 0.96);
    --gold: #a9782c;
    --gold-soft: #d7ad55;
    --gold-bright: #f2d685;
    --pink: #d24da4;
    --violet: #7b3bb6;
    --blue: #41a4dd;
    --green: #66e497;
    --white: #f1eadc;
    --muted: #b9b0a4;
    --line: rgba(169, 120, 44, 0.58);
    --line-soft: rgba(169, 120, 44, 0.23);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background: var(--black);
}

html {
    overflow: hidden;
}

body {
    overflow: hidden;
    color: var(--white);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button {
    font: inherit;
    color: inherit;
}

.world-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 48% 43%,
            rgba(91, 35, 119, 0.26),
            transparent 30%
        ),
        radial-gradient(
            circle at 77% 72%,
            rgba(132, 29, 104, 0.13),
            transparent 31%
        ),
        linear-gradient(
            140deg,
            #010102,
            #07050a 54%,
            #010102
        );
}

.world-stars {
    position: absolute;
    inset: -8%;
    opacity: 0.34;
    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,0.8) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle,
            rgba(215,173,85,0.7) 0 1px,
            transparent 1.5px
        );
    background-size: 139px 139px, 227px 227px;
    background-position: 0 0, 57px 91px;
}

.world-nebula {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 50% 48%,
            rgba(122, 47, 158, 0.2),
            transparent 42%
        );
}

.world-vignette {
    position: absolute;
    inset: 0;
    box-shadow:
        inset 0 0 13rem rgba(0,0,0,0.94);
}

.sage-dashboard {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100dvh;
    padding: 0.65rem;
    display: grid;
    grid-template-columns:
        minmax(20rem, 0.86fr)
        minmax(39rem, 1.45fr)
        minmax(20rem, 0.86fr);
    grid-template-rows:
        minmax(0, 1fr)
        6.85rem;
    grid-template-areas:
        "left center right"
        "rail rail rail";
    gap: 0.55rem;
}

.dashboard-column {
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.dashboard-column--left {
    grid-area: left;
}

.dashboard-column--right {
    grid-area: right;
}

.center-stage {
    grid-area: center;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows:
        minmax(0, 1fr)
        7.3rem;
    gap: 0.55rem;
}

.feature-panel,
.zodiac-stage,
.realms-panel,
.information-rail {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.025),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(12,10,14,0.96),
            rgba(3,3,4,0.97)
        );
    box-shadow:
        inset 0 0 0 4px rgba(0,0,0,0.72),
        inset 0 0 0 5px var(--line-soft),
        0 0.8rem 2.4rem rgba(0,0,0,0.42);
}

.feature-panel {
    min-height: 0;
    padding: 0.8rem;
    display: grid;
    grid-template-columns:
        minmax(6.8rem, 37%)
        minmax(0, 1fr);
    gap: 0.85rem;
}

.feature-art {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 0.5rem;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(139,60,175,0.42),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #130a1a,
            #020203
        );
}

.feature-art::before,
.feature-art::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.feature-art::before {
    width: 80%;
    aspect-ratio: 1;
    border: 1px solid rgba(242,214,133,0.28);
}

.feature-art::after {
    width: 52%;
    aspect-ratio: 1;
    border: 1px solid rgba(210,77,164,0.38);
}

.feature-art-symbol {
    position: relative;
    z-index: 2;
    color: var(--gold-bright);
    font-family: Georgia, serif;
    font-size: clamp(3.4rem, 5.6vw, 6.4rem);
    text-shadow:
        0 0 1.3rem rgba(210,77,164,0.65);
}

.feature-content {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-status {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #9f978b;
    font-size: 0.57rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-status > span:first-child {
    width: 0.38rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--green);
    box-shadow:
        0 0 0.7rem rgba(102,228,151,0.75);
}

.panel-eyebrow {
    margin: 0 0 0.32rem;
    color: var(--gold-soft);
    font-family: Georgia, serif;
    font-size: clamp(0.62rem, 0.7vw, 0.79rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-panel h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(1.35rem, 1.7vw, 2rem);
    font-weight: 500;
    line-height: 1.05;
}

.panel-description {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: clamp(0.68rem, 0.77vw, 0.86rem);
    line-height: 1.48;
}

.panel-action {
    width: max-content;
    min-height: 2.15rem;
    margin-top: 0.7rem;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.35rem;
    background:
        linear-gradient(
            135deg,
            rgba(169,120,44,0.13),
            transparent
        );
    cursor: pointer;
}

.feature-panel[data-panel-id="stories"] {
    border-color: rgba(190,54,139,0.62);
}

.feature-panel[data-panel-id="stories"] .feature-art {
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(229,62,188,0.55),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #27102f,
            #050207 72%
        );
}

.feature-panel[data-panel-id="museum"] .feature-art {
    background:
        radial-gradient(
            circle,
            rgba(188,121,40,0.42),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #1b1004,
            #030303
        );
}

.feature-panel[data-panel-id="library"] .feature-art {
    background:
        radial-gradient(
            circle,
            rgba(136,82,28,0.34),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #160d05,
            #020202
        );
}

.feature-panel[data-panel-id="weather"] {
    border-color: rgba(75,134,61,0.56);
}

.feature-panel[data-panel-id="weather"] .feature-art {
    background:
        radial-gradient(
            circle at 76% 28%,
            rgba(255,219,123,0.76),
            transparent 13%
        ),
        radial-gradient(
            ellipse at 55% 65%,
            rgba(129,168,185,0.33),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #17302d,
            #030607
        );
}

.feature-panel[data-panel-id="radio"] {
    border-color: rgba(43,108,181,0.58);
}

.feature-panel[data-panel-id="radio"] .feature-art {
    background:
        radial-gradient(
            circle,
            rgba(65,62,229,0.42),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #090b2b,
            #030307
        );
}

.feature-panel[data-panel-id="lounge"] {
    border-color: rgba(190,54,139,0.58);
}

.feature-panel[data-panel-id="lounge"] .feature-art {
    background:
        radial-gradient(
            circle,
            rgba(224,48,183,0.52),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #2a0623,
            #040204
        );
}

.zodiac-stage {
    min-height: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(139,44,167,0.34),
            transparent 27%
        ),
        radial-gradient(
            circle at 50% 48%,
            rgba(37,45,130,0.21),
            transparent 54%
        ),
        linear-gradient(
            180deg,
            #08050d,
            #020203
        );
}

.zodiac-shell {
    position: relative;
    width: min(96%, 43rem);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.zodiac-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.zodiac-ring--outer {
    inset: 0;
    border: 2px solid rgba(169,120,44,0.76);
    box-shadow:
        0 0 1.4rem rgba(169,120,44,0.18),
        inset 0 0 2rem rgba(169,120,44,0.1);
}

.zodiac-ring--middle {
    inset: 13%;
    border: 1px solid rgba(215,173,85,0.46);
    box-shadow:
        0 0 2.2rem rgba(123,59,182,0.34),
        inset 0 0 2rem rgba(123,59,182,0.25);
}

.zodiac-ring--inner {
    inset: 29%;
    border: 1px solid rgba(215,173,85,0.39);
    background:
        radial-gradient(
            circle,
            rgba(114,39,145,0.27),
            rgba(3,3,4,0.96) 69%
        );
}

.zodiac-signs {
    position: absolute;
    inset: 0;
}

.zodiac-sign {
    --radius: 18.6rem;

    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.4rem;
    min-height: 4.1rem;
    padding: 0.25rem;
    display: grid;
    place-items: center;
    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(calc(var(--radius) * -1))
        rotate(calc(var(--angle) * -1));
    border: 0;
    background: transparent;
    color: var(--gold-soft);
    cursor: pointer;
}

.zodiac-sign-symbol {
    width: 2.55rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(215,173,85,0.68);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(130,53,200,0.92),
            rgba(33,7,55,0.95)
        );
    color: white;
    font-size: 1.45rem;
    box-shadow:
        0 0 0.9rem rgba(142,52,210,0.45);
}

.zodiac-sign-label {
    color: var(--gold-bright);
    font-family: Georgia, serif;
    font-size: 0.6rem;
    text-transform: uppercase;
}

.zodiac-sign:hover,
.zodiac-sign:focus-visible,
.zodiac-sign.is-active {
    color: white;
    text-shadow:
        0 0 0.8rem rgba(242,214,133,0.75);
}

.zodiac-sign.is-active .zodiac-sign-symbol {
    transform: scale(1.13);
    border-color: var(--gold-bright);
}

.zodiac-core {
    position: relative;
    z-index: 2;
    width: 45%;
    text-align: center;
}

.core-kicker {
    margin: 0;
    color: var(--gold-soft);
    font-family: Georgia, serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
}

.core-symbol {
    width: clamp(5rem, 7vw, 7.2rem);
    aspect-ratio: 1;
    margin: 0.6rem auto 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(228,119,215,0.53);
    border-radius: 0.8rem;
    background:
        linear-gradient(
            145deg,
            #b85de2,
            #5a21a3 70%
        );
    color: white;
    font-size: clamp(4rem, 6vw, 6.4rem);
    line-height: 0.9;
    box-shadow:
        0 0 1.5rem rgba(194,73,222,0.49);
}

.zodiac-core h2 {
    margin: 0.5rem 0 0;
    font-family: Georgia, serif;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: 500;
    line-height: 0.95;
    text-transform: uppercase;
}

.core-dates,
.core-element {
    margin: 0.22rem 0;
    color: #e2d5c1;
    font-family: Georgia, serif;
    font-size: 0.82rem;
}

.zodiac-core blockquote {
    max-width: 17rem;
    margin: 0.6rem auto 0;
    color: var(--white);
    font-family: Georgia, serif;
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.35;
}

.core-action {
    min-height: 2.3rem;
    margin-top: 0.65rem;
    padding: 0.42rem 1rem;
    border: 1px solid rgba(210,77,164,0.7);
    border-radius: 0.35rem;
    background:
        linear-gradient(
            135deg,
            rgba(173,37,136,0.36),
            rgba(52,15,71,0.74)
        );
    cursor: pointer;
}

.realms-panel {
    min-height: 0;
    padding: 0.5rem 0.75rem;
}

.panel-heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.65rem;
}

.panel-heading span {
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--line)
        );
}

.panel-heading span:last-child {
    background:
        linear-gradient(
            90deg,
            var(--line),
            transparent
        );
}

.panel-heading h2 {
    margin: 0;
    color: var(--gold-soft);
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.realm-grid {
    margin-top: 0.38rem;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.38rem;
}

.realm-placeholder {
    min-width: 0;
    min-height: 4.25rem;
    padding: 0.25rem;
    display: grid;
    place-items: center;
    gap: 0.18rem;
    border: 1px solid var(--line-soft);
    border-radius: 0.45rem;
    background:
        linear-gradient(
            145deg,
            rgba(169,120,44,0.09),
            transparent
        );
    cursor: default;
}

.realm-symbol {
    width: 2rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-soft);
    font-size: 1rem;
}

.realm-label {
    color: #d9ccb9;
    font-family: Georgia, serif;
    font-size: 0.52rem;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}

.realm-notice {
    margin: 0.28rem 0 0;
    color: #777067;
    font-size: 0.48rem;
    letter-spacing: 0.11em;
    text-align: center;
    text-transform: uppercase;
}

.information-rail {
    grid-area: rail;
    min-height: 0;
    display: grid;
    grid-template-columns:
        0.92fr
        1.12fr
        1.12fr
        1.12fr
        1.12fr
        1.05fr;
}

.information-rail > * {
    min-width: 0;
    padding: 0.7rem 0.75rem;
    border: 0;
    border-right: 1px solid var(--line-soft);
    background: transparent;
}

.information-rail > *:last-child {
    border-right: 0;
}

.about-sage-chip,
.rail-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
}

.about-sage-chip {
    cursor: pointer;
}

.rail-icon {
    flex: 0 0 auto;
    width: 2.4rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-soft);
    font-size: 1.08rem;
}

.rail-card strong,
.about-sage-chip strong {
    display: block;
    color: var(--gold-soft);
    font-family: Georgia, serif;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.rail-card small,
.about-sage-chip small {
    display: block;
    margin-top: 0.22rem;
    color: var(--muted);
    font-size: 0.58rem;
    line-height: 1.35;
}

.rail-card--status {
    position: relative;
    border: 1px solid var(--line-soft);
    border-radius: 0.45rem;
    margin: 0.55rem;
    padding: 0.55rem 0.7rem;
}

.status-light {
    flex: 0 0 auto;
    width: 0.48rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--green);
    box-shadow:
        0 0 0.7rem rgba(102,228,151,0.79);
}

.status-copy {
    color: var(--green) !important;
}

@media (max-height: 850px) and (min-width: 1181px) {
    .sage-dashboard {
        grid-template-rows:
            minmax(0, 1fr)
            5.7rem;
    }

    .center-stage {
        grid-template-rows:
            minmax(0, 1fr)
            6.65rem;
    }

    .feature-panel {
        padding: 0.65rem;
    }

    .zodiac-shell {
        width: min(91%, 38rem);
    }

    .zodiac-sign {
        --radius: 16.4rem;
    }

    .core-symbol {
        width: 5rem;
        font-size: 4rem;
    }

    .zodiac-core h2 {
        font-size: 2.9rem;
    }

    .rail-card small,
    .about-sage-chip small {
        font-size: 0.53rem;
    }
}

@media (max-width: 760px) {
    html,
    body {
        overflow: auto;
    }

    .sage-dashboard {
        height: auto;
        min-height: 100dvh;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "center center"
            "left right"
            "rail rail";
    }

    .center-stage {
        min-height: 47rem;
    }

    .dashboard-column {
        min-height: 52rem;
    }

    .information-rail {
        grid-template-columns: repeat(3, 1fr);
    }

    .information-rail > * {
        border-bottom: 1px solid var(--line-soft);
    }
}

@media (max-width: 760px) {
    .sage-dashboard {
        display: flex;
        flex-direction: column;
        padding: 0.45rem;
    }

    .center-stage {
        min-height: auto;
        order: 1;
    }

    .zodiac-stage {
        min-height: 32rem;
    }

    .dashboard-column--left {
        order: 2;
    }

    .dashboard-column--right {
        order: 3;
    }

    .information-rail {
        order: 4;
        display: grid;
        grid-template-columns: 1fr;
    }

    .feature-panel {
        min-height: 15rem;
        grid-template-columns: 7rem 1fr;
    }

    .zodiac-shell {
        width: 100%;
    }

    .zodiac-sign {
        --radius: min(41vw, 10.6rem);
        width: 3.1rem;
        min-height: 3.3rem;
    }

    .zodiac-sign-symbol {
        width: 2rem;
        font-size: 1.05rem;
    }

    .zodiac-sign-label {
        display: none;
    }

    .zodiac-core {
        width: 48%;
    }

    .core-symbol {
        width: 4rem;
        font-size: 3rem;
    }

    .zodiac-core h2 {
        font-size: 1.6rem;
    }

    .core-dates,
    .core-element,
    .zodiac-core blockquote {
        font-size: 0.68rem;
    }

    .realm-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   SAGE PHASE 3 — ZODIAC CIRCLE SCALE CORRECTION
   Shrinks only the wheel inside the existing center panel.
   ========================================================== */

@media (min-width: 1181px) {
    .zodiac-shell {
        width: min(82%, 37rem);
    }

    .zodiac-sign {
        --radius: 16rem;
    }
}

@media (min-width: 1500px) and (min-height: 850px) {
    .zodiac-shell {
        width: min(84%, 39rem);
    }

    .zodiac-sign {
        --radius: 16.9rem;
    }
}

/* ==========================================================
   SAGE — INNER ARIES CORE SHRINK
   Changes only the central sign-information circle.
   Outer wheel, center panel and realm bar remain unchanged.
   ========================================================== */

@media (min-width: 1181px) {
    .zodiac-ring--inner {
        inset: 35%;
    }

    .zodiac-core {
        width: 34%;
    }

    .core-symbol {
        width: clamp(4.1rem, 5.2vw, 5.6rem);
        font-size: clamp(3.2rem, 4.7vw, 4.8rem);
        margin-top: 0.35rem;
    }

    .zodiac-core h2 {
        margin-top: 0.32rem;
        font-size: clamp(2rem, 3.2vw, 3.15rem);
    }

    .core-kicker {
        font-size: 0.61rem;
    }

    .core-dates,
    .core-element {
        font-size: 0.72rem;
    }

    .zodiac-core blockquote {
        max-width: 13rem;
        margin-top: 0.42rem;
        font-size: 0.75rem;
        line-height: 1.28;
    }

    .core-action {
        min-height: 2.05rem;
        margin-top: 0.48rem;
        padding: 0.34rem 0.85rem;
        font-size: 0.82rem;
    }
}

/* SAGE SIGN-WHEEL TARGET — START
   The center panel box remains unchanged.
   This resizes only the wheel containing the twelve zodiac signs.
   It also restores the inner Aries core changed by the previous patch.
*/

@media (min-width: 1181px) {
    .zodiac-shell {
        --sage-wheel-size: min(
            calc(100dvh - 20rem),
            30rem
        );

        width: var(--sage-wheel-size);
        height: var(--sage-wheel-size);
        max-width: none;
    }

    .zodiac-sign {
        --radius: calc(
            var(--sage-wheel-size) * 0.425
        );
    }

    /* Restore the inner Aries circle */
    .zodiac-ring--inner {
        inset: 29%;
    }

    .zodiac-core {
        width: 45%;
    }

    .core-kicker {
        font-size: 0.68rem;
    }

    .core-symbol {
        width: 5rem;
        margin: 0.6rem auto 0;
        font-size: 4rem;
    }

    .zodiac-core h2 {
        margin: 0.5rem 0 0;
        font-size: 2.9rem;
    }

    .core-dates,
    .core-element {
        font-size: 0.82rem;
    }

    .zodiac-core blockquote {
        max-width: 17rem;
        margin-top: 0.6rem;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .core-action {
        min-height: 2.3rem;
        margin-top: 0.65rem;
        padding: 0.42rem 1rem;
        font-size: inherit;
    }
}

/* SAGE SIGN-WHEEL TARGET — END */

/* SAGE REPLACEABLE ZODIAC MEDALLIONS — START
   Adds replaceable artwork support without changing dimensions.
*/

.zodiac-sign.has-custom-medallion .zodiac-sign-symbol {
    overflow: hidden;
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.zodiac-sign-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
}

/* SAGE REPLACEABLE ZODIAC MEDALLIONS — END */

/* SAGE_NATIVE_PANEL_IMAGES_20260728 START */

.feature-panel.has-custom-panel-image .feature-art {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #050306;
}

.feature-panel.has-custom-panel-image .feature-art::before,
.feature-panel.has-custom-panel-image .feature-art::after {
    display: none;
}

.feature-panel-custom-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter:
        brightness(0.88)
        saturate(1.05)
        contrast(1.04);
    transition:
        transform 220ms ease,
        filter 220ms ease;
}

.feature-art--interactive {
    cursor: pointer;
}

.feature-art--interactive:hover
.feature-panel-custom-image,
.feature-art--interactive:focus-visible
.feature-panel-custom-image {
    transform: scale(1.025);
    filter:
        brightness(0.98)
        saturate(1.08)
        contrast(1.04);
}

.feature-art--interactive:focus-visible {
    outline: 2px solid #d9a93a;
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    .feature-panel-custom-image {
        transition: none;
    }
}

/* SAGE_NATIVE_PANEL_IMAGES_20260728 END */

/* SAGE_FULL_ART_SIDE_WINDOWS_20260728 START */

/*
 * Converts the six side destination panels into full-art windows.
 * Controls remain accessible through pointer movement, touch and focus.
 */

.feature-panel.sage-living-window {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: block !important;
    padding: 0 !important;
    background: #030304;
    touch-action: manipulation;
    box-shadow:
        inset 0 0 0 1px rgba(242, 214, 133, 0.14),
        0 0.8rem 2.4rem rgba(0, 0, 0, 0.42);
}

.feature-panel.sage-living-window > .feature-art {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    display: block !important;
    border-radius: inherit;
    background-color: #030304;
}

.feature-panel.sage-living-window
.feature-panel-custom-image,
.feature-panel.sage-living-window
.museum-spotlight-image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter:
        brightness(0.96)
        saturate(1.08)
        contrast(1.04);
    transform: scale(1.01);
    transition:
        transform 700ms ease,
        filter 700ms ease;
}

.feature-panel.sage-living-window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.2;
    background:
        linear-gradient(
            180deg,
            transparent 48%,
            rgba(0, 0, 0, 0.08) 66%,
            rgba(0, 0, 0, 0.34) 100%
        );
    transition: opacity 420ms ease;
}

.feature-panel.sage-living-window
.feature-content {
    position: absolute !important;
    z-index: 7;
    top: auto !important;
    right: auto !important;
    bottom: 0.62rem;
    left: 50%;

    width: calc(100% - 1.2rem);
    max-width: calc(100% - 1.2rem);
    min-width: 0;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    padding: 0.58rem 0.7rem 0.62rem;
    border: 1px solid rgba(242, 214, 133, 0.34);
    border-radius: 0.62rem;

    background:
        linear-gradient(
            135deg,
            rgba(5, 4, 8, 0.17),
            rgba(5, 4, 8, 0.05)
        );

    box-shadow:
        0 0.55rem 1.4rem rgba(0, 0, 0, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);

    -webkit-backdrop-filter:
        blur(4px)
        saturate(1.06);

    backdrop-filter:
        blur(4px)
        saturate(1.06);

    text-align: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translate(-50%, 0.55rem);

    transition:
        opacity 420ms ease,
        transform 420ms ease,
        visibility 0s linear 420ms;
}

.feature-panel.sage-living-window.is-overlay-visible
.feature-content,
.feature-panel.sage-living-window:focus-within
.feature-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translate(-50%, 0);

    transition-delay: 0s;
}

.feature-panel.sage-living-window.is-overlay-visible::after,
.feature-panel.sage-living-window:focus-within::after {
    opacity: 0.78;
}

.feature-panel.sage-living-window.is-overlay-visible
.feature-panel-custom-image,
.feature-panel.sage-living-window:focus-within
.feature-panel-custom-image,
.feature-panel.sage-living-window.is-overlay-visible
.museum-spotlight-image.is-active,
.feature-panel.sage-living-window:focus-within
.museum-spotlight-image.is-active {
    transform: scale(1.026);

    filter:
        brightness(1)
        saturate(1.1)
        contrast(1.04);
}

.feature-panel.sage-living-window
.panel-description,
.feature-panel.sage-living-window
.feature-status {
    display: none !important;
}

.feature-panel.sage-living-window
.panel-eyebrow {
    margin: 0 0 0.18rem;
    color: #f0c969;
    font-size: clamp(0.59rem, 0.67vw, 0.75rem);
    line-height: 1.1;
    text-shadow:
        0 1px 0.3rem rgba(0, 0, 0, 0.98),
        0 0 0.8rem rgba(0, 0, 0, 0.88);
}

.feature-panel.sage-living-window h2 {
    margin: 0;
    max-width: 100%;
    color: #fff8e9;
    font-size: clamp(1.18rem, 1.5vw, 1.72rem);
    line-height: 1.03;
    text-wrap: balance;
    text-shadow:
        0 2px 0.35rem rgba(0, 0, 0, 1),
        0 0 1rem rgba(0, 0, 0, 0.94);
}

.feature-panel.sage-living-window
.panel-action {
    width: max-content;
    max-width: 100%;
    min-height: 2rem;
    margin-top: 0.42rem;
    padding: 0.34rem 0.86rem;

    border:
        1px solid rgba(242, 214, 133, 0.66);

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(4, 3, 7, 0.2),
            rgba(4, 3, 7, 0.08)
        );

    box-shadow:
        0 0.25rem 0.9rem rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);

    -webkit-backdrop-filter:
        blur(6px)
        saturate(1.1);

    backdrop-filter:
        blur(6px)
        saturate(1.1);

    color: #fff9eb;
    text-shadow:
        0 1px 0.35rem rgba(0, 0, 0, 1);

    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.feature-panel.sage-living-window
.panel-action:hover,
.feature-panel.sage-living-window
.panel-action:focus-visible {
    border-color: rgba(255, 225, 150, 0.96);

    background:
        linear-gradient(
            135deg,
            rgba(38, 23, 8, 0.42),
            rgba(8, 5, 12, 0.22)
        );

    box-shadow:
        0 0 1rem rgba(215, 173, 85, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.055);

    transform: translateY(-1px);
}

/*
 * Museum arrows and slide counter follow the same reveal behavior.
 */

.feature-panel.sage-living-window
.museum-spotlight-arrow,
.feature-panel.sage-living-window
.museum-spotlight-counter {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 360ms ease,
        visibility 0s linear 360ms;
}

.feature-panel.sage-living-window.is-overlay-visible
.museum-spotlight-arrow,
.feature-panel.sage-living-window.is-overlay-visible
.museum-spotlight-counter,
.feature-panel.sage-living-window:focus-within
.museum-spotlight-arrow,
.feature-panel.sage-living-window:focus-within
.museum-spotlight-counter {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.feature-panel.sage-living-window.is-overlay-visible
.museum-spotlight-arrow,
.feature-panel.sage-living-window:focus-within
.museum-spotlight-arrow {
    pointer-events: auto;
}

@media (max-width: 1180px) {
    .feature-panel.sage-living-window {
        min-height: 18rem;
    }

    .feature-panel.sage-living-window
    .feature-content {
        bottom: 0.7rem;
        width: calc(100% - 1.3rem);
    }
}

@media (max-width: 760px) {
    .feature-panel.sage-living-window {
        min-height: 19rem;
    }

    .feature-panel.sage-living-window
    .feature-content {
        bottom: 0.55rem;
        width: calc(100% - 1rem);
        max-width: calc(100% - 1rem);
        padding: 0.58rem 0.62rem;
    }

    .feature-panel.sage-living-window h2 {
        font-size: clamp(1.28rem, 6vw, 1.72rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-panel.sage-living-window::after,
    .feature-panel.sage-living-window
    .feature-content,
    .feature-panel.sage-living-window
    .feature-panel-custom-image,
    .feature-panel.sage-living-window
    .museum-spotlight-image,
    .feature-panel.sage-living-window
    .museum-spotlight-arrow,
    .feature-panel.sage-living-window
    .museum-spotlight-counter {
        transition: none !important;
    }
}

/* SAGE_FULL_ART_SIDE_WINDOWS_20260728 END */

/* SAGE_TAROT_ATTRACTION_BUTTONS_20260729 START */

/*
 * Visual treatment only.
 * Existing grid, width, height, padding, spacing and position rules
 * above remain untouched.
 */

.realms-panel .realm-placeholder {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    border-color:
        rgba(208, 174, 255, 0.38);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(200, 169, 255, 0.15),
            transparent 64%
        ),
        linear-gradient(
            145deg,
            rgba(95, 52, 133, 0.2),
            rgba(18, 12, 25, 0.56)
        );

    box-shadow:
        inset 0 0 0.72rem
            rgba(126, 71, 188, 0.11),
        0 0 0.42rem
            rgba(213, 173, 83, 0.08);

    text-decoration: none;

    transition:
        border-color 240ms ease,
        box-shadow 240ms ease,
        filter 240ms ease;
}

.realms-panel .realm-placeholder::before {
    position: absolute;
    inset: -35%;
    z-index: -1;

    content: "";

    pointer-events: none;

    opacity: 0.2;

    background:
        linear-gradient(
            115deg,
            transparent 38%,
            rgba(255, 226, 160, 0.16) 48%,
            rgba(200, 169, 255, 0.2) 52%,
            transparent 62%
        );
}

.realms-panel .realm-placeholder
.realm-symbol {
    border-color:
        rgba(213, 173, 83, 0.58);

    color: #d8c0ff;

    background:
        radial-gradient(
            circle,
            rgba(126, 71, 188, 0.28),
            rgba(22, 13, 29, 0.55)
        );

    box-shadow:
        inset 0 0 0.55rem
            rgba(200, 169, 255, 0.11),
        0 0 0.55rem
            rgba(213, 173, 83, 0.09);

    text-shadow:
        0 0 0.5rem
            rgba(200, 169, 255, 0.72);
}

.realms-panel .realm-placeholder
.realm-label {
    color: #e4d7f4;

    text-shadow:
        0 0 0.42rem
            rgba(200, 169, 255, 0.32);
}

.realms-panel .realm-placeholder:not(.is-active) {
    opacity: 0.76;
}

.realms-panel .realm-placeholder.is-active {
    cursor: pointer;

    border-color:
        rgba(255, 218, 139, 0.88);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(200, 169, 255, 0.3),
            transparent 67%
        ),
        linear-gradient(
            145deg,
            rgba(116, 61, 158, 0.42),
            rgba(23, 13, 32, 0.75)
        );

    box-shadow:
        inset 0 0 0.88rem
            rgba(200, 169, 255, 0.19),
        0 0 0.66rem
            rgba(126, 71, 188, 0.47),
        0 0 1rem
            rgba(213, 173, 83, 0.22);

    animation:
        sageAttractionGlow
        3.8s
        ease-in-out
        infinite;
}

.realms-panel .realm-placeholder.is-active::before {
    opacity: 0.72;

    animation:
        sageAttractionShimmer
        4.6s
        linear
        infinite;
}

.realms-panel .realm-placeholder.is-active
.realm-symbol {
    border-color:
        rgba(255, 226, 160, 0.96);

    color: #fff0c3;

    box-shadow:
        inset 0 0 0.65rem
            rgba(200, 169, 255, 0.25),
        0 0 0.72rem
            rgba(213, 173, 83, 0.48);

    text-shadow:
        0 0 0.42rem
            rgba(255, 226, 160, 0.9),
        0 0 0.72rem
            rgba(200, 169, 255, 0.72);
}

.realms-panel .realm-placeholder.is-active
.realm-label {
    color: #fff0c3;

    text-shadow:
        0 0 0.45rem
            rgba(213, 173, 83, 0.62),
        0 0 0.7rem
            rgba(200, 169, 255, 0.5);
}

.realms-panel .realm-placeholder.is-active:hover,
.realms-panel .realm-placeholder.is-active:focus-visible {
    border-color: #ffe2a0;

    outline: none;

    filter:
        brightness(1.09)
        saturate(1.08);

    box-shadow:
        inset 0 0 1rem
            rgba(200, 169, 255, 0.25),
        0 0 0.82rem
            rgba(126, 71, 188, 0.64),
        0 0 1.3rem
            rgba(213, 173, 83, 0.34);
}

@keyframes sageAttractionGlow {
    0%,
    100% {
        box-shadow:
            inset 0 0 0.88rem
                rgba(200, 169, 255, 0.17),
            0 0 0.58rem
                rgba(126, 71, 188, 0.42),
            0 0 0.9rem
                rgba(213, 173, 83, 0.18);
    }

    50% {
        box-shadow:
            inset 0 0 1rem
                rgba(200, 169, 255, 0.23),
            0 0 0.8rem
                rgba(126, 71, 188, 0.62),
            0 0 1.18rem
                rgba(213, 173, 83, 0.3);
    }
}

@keyframes sageAttractionShimmer {
    from {
        transform: translateX(-64%);
    }

    to {
        transform: translateX(64%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .realms-panel .realm-placeholder.is-active,
    .realms-panel .realm-placeholder.is-active::before {
        animation: none !important;
    }
}

/* SAGE_TAROT_ATTRACTION_BUTTONS_20260729 END */


/* ==========================================================
   MENTAL HEALTH & WELLNESS — FULL INFORMATION RAIL BUTTON
   ========================================================== */

.rail-card--wellness {
    position: relative;

    cursor: pointer;

    text-decoration: none;

    color: inherit;

    background:
        radial-gradient(
            circle at 18% 50%,
            rgba(88, 224, 194, 0.12),
            transparent 42%
        );

    transition:
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}


.rail-card--wellness::after {
    content: "";

    position: absolute;

    inset: 0.28rem;

    pointer-events: none;

    border:
        1px solid
        rgba(103, 229, 200, 0.20);

    border-radius: 0.45rem;

    box-shadow:
        inset 0 0 1.2rem
        rgba(80, 220, 187, 0.04);

    opacity: 0.85;
}


.rail-card--wellness .rail-icon {
    color:
        #8ff1d7;

    border-color:
        rgba(107, 232, 203, 0.48);

    box-shadow:
        0 0 0.75rem
        rgba(84, 223, 190, 0.24),
        inset 0 0 0.65rem
        rgba(84, 223, 190, 0.08);
}


.rail-card--wellness strong {
    color:
        #a7f3df;

    text-shadow:
        0 0 0.65rem
        rgba(105, 231, 200, 0.38);
}


.rail-card--wellness:hover,
.rail-card--wellness:focus-visible {
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(92, 232, 199, 0.21),
            transparent 48%
        ),
        rgba(47, 137, 118, 0.055);

    box-shadow:
        inset 0 0 1.35rem
        rgba(85, 225, 192, 0.07);

    transform:
        translateY(-1px);

    outline: none;
}


.rail-card--wellness:hover .rail-icon,
.rail-card--wellness:focus-visible .rail-icon {
    box-shadow:
        0 0 1.15rem
        rgba(93, 239, 204, 0.48),
        inset 0 0 0.75rem
        rgba(93, 239, 204, 0.13);
}




/* Accessible page heading; visually hidden without removing it from the accessibility tree */
.sage-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* SAGE_SILVER_FRAME_STAGE1_20260921 START */
.feature-panel,
.zodiac-stage,
.realms-panel,
.information-rail {
    border: 1px solid rgba(186, 194, 206, 0.72);

    box-shadow:
        inset 0 0 0 4px rgba(0, 0, 0, 0.80),
        inset 0 0 0 5px rgba(207, 216, 229, 0.24),
        inset 0 0 1.1rem rgba(255, 255, 255, 0.025),
        0 0 0 1px rgba(255, 255, 255, 0.045),
        0 0.8rem 2.4rem rgba(0, 0, 0, 0.48),
        0 0 0.7rem rgba(207, 216, 229, 0.08);
}
/* SAGE_SILVER_FRAME_STAGE1_20260921 END */

/* SAGE_SILVER_BUTTON_STAGE2_20260921 START */

/* Main center action */
.core-action {
    border: 1px solid rgba(205, 214, 226, 0.78);
    background:
        linear-gradient(
            145deg,
            rgba(45, 49, 57, 0.88),
            rgba(7, 8, 11, 0.96)
        );
    color: #f4f7fb;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        inset 0 0 0.8rem rgba(255,255,255,0.035),
        0 0 0.6rem rgba(210,220,235,0.10);
}

/* Buttons inside side artwork panels */
.feature-panel.sage-living-window .panel-action {
    border-color: rgba(205, 214, 226, 0.72);
    background:
        linear-gradient(
            145deg,
            rgba(39, 43, 50, 0.80),
            rgba(5, 6, 9, 0.92)
        );
    color: #f4f7fb;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.07),
        0 0.25rem 0.9rem rgba(0,0,0,0.30);
}

.feature-panel.sage-living-window .panel-action:hover,
.feature-panel.sage-living-window .panel-action:focus-visible {
    border-color: rgba(245, 249, 255, 0.98);
    background:
        linear-gradient(
            145deg,
            rgba(69, 75, 86, 0.88),
            rgba(9, 11, 15, 0.96)
        );
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.12),
        0 0 0.85rem rgba(230,238,250,0.22);
}

/* Explore the Realms buttons */
.realms-panel .realm-placeholder {
    border-color: rgba(184, 194, 209, 0.48);
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,0.07),
            transparent 62%
        ),
        linear-gradient(
            145deg,
            rgba(43,47,56,0.72),
            rgba(8,9,12,0.92)
        );
    box-shadow:
        inset 0 0 0.72rem rgba(255,255,255,0.025),
        0 0 0.42rem rgba(205,215,230,0.06);
}

.realms-panel .realm-symbol {
    border-color: rgba(207,216,229,0.62);
    color: #f3f6fa;
    background:
        radial-gradient(
            circle,
            rgba(72,78,90,0.82),
            rgba(10,11,15,0.96)
        );
    box-shadow:
        inset 0 0 0.5rem rgba(255,255,255,0.06),
        0 0 0.5rem rgba(210,220,235,0.10);
}

.realms-panel .realm-label {
    color: #e6e9ee;
    text-shadow:
        0 0 0.4rem rgba(255,255,255,0.10);
}

.realms-panel .realm-placeholder.is-active {
    border-color: rgba(235,241,249,0.88);
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(183,157,225,0.18),
            transparent 66%
        ),
        linear-gradient(
            145deg,
            rgba(58,62,73,0.88),
            rgba(9,10,14,0.96)
        );
    box-shadow:
        inset 0 0 0.85rem rgba(255,255,255,0.05),
        0 0 0.65rem rgba(210,220,235,0.18),
        0 0 0.9rem rgba(145,102,195,0.15);
}

.realms-panel .realm-placeholder.is-active .realm-symbol {
    border-color: rgba(250,252,255,0.96);
    color: #ffffff;
    box-shadow:
        inset 0 0 0.65rem rgba(255,255,255,0.08),
        0 0 0.72rem rgba(225,234,247,0.22);
}

.realms-panel .realm-placeholder.is-active .realm-label {
    color: #ffffff;
}

/* SAGE_SILVER_BUTTON_STAGE2_20260921 END */

/* SAGE_SILVER_REALMS_HEADING_STAGE3 START */

.realms-panel .panel-heading h2 {
    color: #e9edf3;
    text-shadow:
        0 0 0.55rem rgba(230,238,250,0.13);
}

.realms-panel .panel-heading span {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(205,214,226,0.64)
        );
}

.realms-panel .panel-heading span:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(205,214,226,0.64),
            transparent
        );
}

/* SAGE_SILVER_REALMS_HEADING_STAGE3 END */

/* SAGE_SILVER_STAGE4_MUSEUM_ARROWS START */

.feature-panel.sage-living-window .museum-spotlight-arrow {
    border-color: rgba(205, 214, 226, 0.82) !important;
    background:
        radial-gradient(
            circle,
            rgba(46, 51, 60, 0.92),
            rgba(5, 6, 9, 0.97)
        ) !important;
    color: #f4f7fb !important;

    box-shadow:
        0 0 0.7rem rgba(0,0,0,0.9),
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 0 0.48rem rgba(215,225,240,0.13) !important;
}

.feature-panel.sage-living-window .museum-spotlight-arrow:hover,
.feature-panel.sage-living-window .museum-spotlight-arrow:focus-visible {
    border-color: rgba(250,252,255,0.98) !important;
    color: #ffffff !important;

    box-shadow:
        0 0 0.75rem rgba(0,0,0,0.9),
        inset 0 0 0 1px rgba(255,255,255,0.13),
        0 0 0.8rem rgba(230,238,250,0.24) !important;
}

/* SAGE_SILVER_STAGE4_MUSEUM_ARROWS END */

/* SAGE_BKS_TOP_LEDGE_V1 START */
.bks-top-ledge {
    position: relative;
    z-index: 20;
    height: 2.65rem;
    padding: 0 0.9rem;
    display: flex;
    align-items: center;

    border-bottom: 1px solid rgba(190, 200, 214, 0.48);

    background:
        linear-gradient(
            180deg,
            rgba(10, 12, 16, 0.98),
            rgba(3, 4, 6, 0.99)
        );

    box-shadow:
        inset 0 -1px 0 rgba(255,255,255,0.035),
        0 0.35rem 1rem rgba(0,0,0,0.38);
}

.bks-top-brand {
    color: #eef2f7;
    font-family: Georgia, serif;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    white-space: nowrap;
}

.bks-top-brand:hover,
.bks-top-brand:focus-visible {
    color: #ffffff;
}

.sage-dashboard {
    height: calc(100dvh - 2.65rem);
}
/* SAGE_BKS_TOP_LEDGE_V1 END */

/* SAGE_BKS_CONTENT_LEDGE_V2 START */

.bks-top-ledge {
    z-index: 100;
    gap: 0.9rem;
    overflow: visible;
}

.bks-top-brand {
    flex: 0 0 auto;
}

.bks-top-intro {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 0 0 0.65rem;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: rgba(220, 226, 235, 0.83);
    font-size: 0.77rem;
    line-height: 1;
    letter-spacing: 0.015em;
}

.bks-top-about {
    position: relative;
    flex: 0 0 auto;
    margin-left: auto;
}

.bks-top-about > summary {
    min-height: 1.85rem;
    padding: 0.34rem 0.72rem;

    display: flex;
    align-items: center;
    gap: 0.42rem;

    border: 1px solid rgba(198, 207, 220, 0.58);
    border-radius: 999px;

    background:
        linear-gradient(
            145deg,
            rgba(42, 46, 54, 0.82),
            rgba(6, 7, 10, 0.96)
        );

    color: #edf1f6;
    font-family: Georgia, serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;

    cursor: pointer;
    list-style: none;
    user-select: none;
}

.bks-top-about > summary::-webkit-details-marker {
    display: none;
}

.bks-top-about > summary::after {
    content: "▾";
    color: #ffffff;
    font-size: 0.76rem;
}

.bks-top-about[open] > summary::after {
    content: "▴";
}

.bks-top-about[open] > summary {
    border-color: rgba(245, 249, 255, 0.9);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.06),
        0 0 0.7rem rgba(220,230,245,0.14);
}

.bks-top-about-panel {
    position: absolute;
    z-index: 200;
    top: calc(100% + 0.65rem);
    right: 0;

    width: min(54rem, calc(100vw - 1.8rem));
    max-height: calc(100dvh - 5.2rem);
    overflow-y: auto;

    padding: 1.25rem 1.4rem;

    border: 1px solid rgba(196, 205, 218, 0.72);
    border-radius: 0.7rem;

    background:
        linear-gradient(
            145deg,
            rgba(17, 19, 24, 0.985),
            rgba(3, 4, 7, 0.995)
        );

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.035),
        0 1rem 3rem rgba(0,0,0,0.72),
        0 0 1rem rgba(215,225,240,0.08);

    color: #e4e8ee;
}

.bks-top-about-panel h2 {
    margin: 0 0 0.8rem;

    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.bks-top-about-panel p {
    margin: 0 0 0.85rem;

    color: rgba(229, 233, 239, 0.9);
    font-size: 0.87rem;
    line-height: 1.62;
}

.bks-top-about-panel p:last-child {
    margin-bottom: 0;
}

.bks-top-about-panel strong {
    color: #ffffff;
}

@media (max-width: 900px) {
    .bks-top-ledge {
        gap: 0.45rem;
        padding-inline: 0.6rem;
    }

    .bks-top-brand {
        font-size: 0.82rem;
    }

    .bks-top-intro {
        margin-left: 0.15rem;
        font-size: 0.67rem;
    }

    .bks-top-about > summary {
        padding-inline: 0.55rem;
        font-size: 0.66rem;
    }

    .bks-top-about-panel {
        position: fixed;
        top: 3.2rem;
        left: 0.6rem;
        right: 0.6rem;

        width: auto;
        max-height: calc(100dvh - 4rem);
    }
}

/* SAGE_BKS_CONTENT_LEDGE_V2 END */

/* SAGE_BKS_EXPLORE_BUTTON_STAGE5_20260922 START */

.bks-top-explore {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    min-height: 2rem;
    padding: .35rem .78rem;
    border: 1px solid rgba(205, 211, 220, .64);
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            rgba(48, 52, 61, .96),
            rgba(15, 17, 22, .98)
        );
    color: rgba(246, 248, 252, .96);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 0 0 1px rgba(0,0,0,.42),
        0 4px 14px rgba(0,0,0,.32);
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.bks-top-explore:hover,
.bks-top-explore:focus-visible {
    border-color: rgba(245, 247, 252, .92);
    background:
        linear-gradient(
            180deg,
            rgba(76, 82, 94, .98),
            rgba(22, 25, 31, .99)
        );
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 0 14px rgba(226, 231, 241, .2);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 760px) {
    .bks-top-explore {
        padding-inline: .62rem;
        font-size: .64rem;
    }
}

/* SAGE_BKS_EXPLORE_BUTTON_STAGE5_20260922 END */

/* SAGE_BKS_CREATOR_BUTTON_V1 START */

.bks-top-creator {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    min-height: 2rem;
    padding: .35rem .78rem;
    border: 1px solid rgba(205, 211, 220, .64);
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            rgba(48, 52, 61, .96),
            rgba(15, 17, 22, .98)
        );
    color: rgba(246, 248, 252, .96);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 0 0 1px rgba(0,0,0,.42),
        0 4px 14px rgba(0,0,0,.32);
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.bks-top-creator:hover,
.bks-top-creator:focus-visible {
    border-color: rgba(245, 247, 252, .92);
    background:
        linear-gradient(
            180deg,
            rgba(76, 82, 94, .98),
            rgba(22, 25, 31, .99)
        );
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 0 14px rgba(226,231,241,.2);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 900px) {
    .bks-top-creator {
        padding-inline: .62rem;
        font-size: .64rem;
    }
}

/* SAGE_BKS_CREATOR_BUTTON_V1 END */

/* ============================================================
   BKS_RAIL_7X2_ADS_V1 START
   Seven equal parent groups.
   Two LEFT-TO-RIGHT actions inside every group.
   Two independent advertising windows above rail.
   ============================================================ */


/* ---------- DASHBOARD: ADD AD ROW ---------- */

.sage-dashboard {
    grid-template-rows:
        minmax(0, 1fr)
        3.45rem
        6.85rem;

    grid-template-areas:
        "left center right"
        "ads ads ads"
        "rail rail rail";
}


/* ---------- TWO SEPARATE AD WINDOWS ---------- */

.bks-ad-row {
    grid-area: ads;

    min-width: 0;
    min-height: 0;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: clamp(0.8rem, 1.4vw, 1.5rem);

    padding-inline:
        clamp(1.25rem, 5vw, 5rem);
}

.bks-ad-box {
    min-width: 0;
    overflow: hidden;

    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 0.65rem;

    padding:
        0.35rem
        0.75rem;

    border:
        1px solid
        rgba(190, 199, 212, 0.62);

    border-radius: 0.38rem;

    background:
        linear-gradient(
            145deg,
            rgba(35, 39, 47, 0.92),
            rgba(7, 8, 11, 0.98)
        );

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.04),
        inset 0 0 1rem rgba(255,255,255,0.025),
        0 0.3rem 1rem rgba(0,0,0,0.34);
}

.bks-ad-label,
.bks-ad-sponsor {
    color:
        rgba(205, 212, 222, 0.62);

    font-size: 0.43rem;
    font-weight: 800;

    letter-spacing: 0.12em;
    line-height: 1;

    text-transform: uppercase;
    white-space: nowrap;
}

.bks-ad-sponsor {
    text-align: right;
}

.bks-ad-placeholder {
    min-width: 0;

    color:
        rgba(240, 243, 248, 0.70);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.56rem;

    letter-spacing: 0.12em;

    text-align: center;
    text-transform: uppercase;
}


/* ---------- SEVEN FRAMED PARENT CARDS ---------- */
/* BKS_RAIL_CARD_MOCKUP_V1 START */

.information-rail.bks-rail-groups {
    grid-area: rail;

    min-height: 0;

    display: grid;

    grid-template-columns:
        repeat(
            7,
            minmax(0, 1fr)
        );

    gap: 0.34rem;

    padding: 0.38rem;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(8, 10, 14, 0.94),
            rgba(3, 4, 7, 0.99)
        );
}

.information-rail.bks-rail-groups > * {
    min-width: 0;

    padding: 0;

    border: 0;

    background: transparent;
}


/* ---------- INDIVIDUAL CARD ---------- */

.bks-rail-group {
    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-rows:
        auto
        minmax(0, 1fr);

    overflow: hidden;

    border:
        1px solid
        rgba(183, 193, 207, 0.48);

    border-radius: 0.38rem;

    background:
        linear-gradient(
            145deg,
            rgba(31, 35, 43, 0.94),
            rgba(7, 9, 13, 0.99)
        );

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.025),
        inset 0 0 0.85rem rgba(255,255,255,0.018),
        0 0.28rem 0.8rem rgba(0,0,0,0.38);
}


/* ---------- ICON + PARENT TITLE ---------- */

.bks-rail-group-title {
    min-width: 0;

    min-height: 2rem;

    padding:
        0.32rem
        0.38rem;

    display: flex;

    align-items: center;

    gap: 0.38rem;

    overflow: hidden;

    border-bottom:
        1px solid
        rgba(183, 193, 207, 0.23);

    color:
        rgba(229, 234, 242, 0.92);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.46rem;

    font-weight: 700;

    letter-spacing: 0.045em;

    line-height: 1.05;

    text-align: left;

    text-transform: uppercase;
}

.bks-rail-group-title > span:last-child {
    min-width: 0;
}

.bks-rail-icon {
    flex: 0 0 auto;

    width: 1.4rem;
    height: 1.4rem;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(201, 210, 222, 0.54);

    border-radius: 50%;

    color:
        rgba(239, 243, 249, 0.88);

    background:
        rgba(255,255,255,0.025);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.68rem;

    line-height: 1;

    box-shadow:
        inset 0 0 0.55rem
        rgba(225, 232, 242, 0.035);
}


/* ---------- TWO STACKED ACTION ROWS ---------- */

.bks-rail-group-actions {
    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-columns: 1fr;

    grid-template-rows:
        repeat(
            2,
            minmax(0, 1fr)
        );
}

.bks-rail-action,
.bks-rail-action.about-sage-chip {
    min-width: 0;
    min-height: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 0.28rem;

    padding:
        0.22rem
        0.38rem;

    overflow: hidden;

    border: 0;

    border-bottom:
        1px solid
        rgba(181, 191, 204, 0.18);

    border-radius: 0;

    background:
        linear-gradient(
            180deg,
            rgba(26, 30, 37, 0.52),
            rgba(9, 11, 15, 0.82)
        );

    color:
        rgba(231, 236, 243, 0.88);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        sans-serif;

    font-size: 0.39rem;

    font-weight: 650;

    letter-spacing: 0.025em;

    line-height: 1.05;

    text-align: left;

    text-decoration: none;

    text-transform: none;

    cursor: pointer;

    transition:
        background 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.bks-rail-group-actions
> .bks-rail-action:last-child {
    border-bottom: 0;
}

.bks-rail-action > span:first-child {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.bks-rail-chevron {
    flex: 0 0 auto;

    color:
        rgba(225, 232, 241, 0.62);

    font-size: 0.68rem;

    line-height: 1;
}

a.bks-rail-action:hover,
a.bks-rail-action:focus-visible,
button.bks-rail-action:hover,
button.bks-rail-action:focus-visible {
    outline: none;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(58, 64, 75, 0.66),
            rgba(15, 18, 24, 0.95)
        );

    box-shadow:
        inset 0 0 0.75rem
        rgba(226, 233, 243, 0.065);
}


/* ---------- UNFINISHED ROWS ---------- */

.bks-rail-action--soon {
    cursor: default;

    color:
        rgba(178, 185, 196, 0.59);
}

.bks-rail-soon {
    flex: 0 0 auto;

    color:
        rgba(160, 169, 181, 0.45);

    font-size: 0.31rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    line-height: 1;

    text-transform: uppercase;
}


/* ---------- WELLNESS: SAME CARD, SOFT GREEN CENTER ---------- */

.bks-rail-group--wellness {
    border-color:
        rgba(183, 198, 198, 0.54);

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(67, 207, 160, 0.13),
            transparent 64%
        ),
        linear-gradient(
            145deg,
            rgba(31, 39, 40, 0.95),
            rgba(7, 11, 12, 0.99)
        );
}

.bks-rail-group--wellness
.bks-rail-icon {
    color: #aaf0d6;

    border-color:
        rgba(113, 225, 185, 0.56);

    box-shadow:
        0 0 0.65rem
        rgba(72, 210, 160, 0.20),
        inset 0 0 0.5rem
        rgba(72, 210, 160, 0.06);
}

.bks-rail-group--wellness
.bks-rail-group-title {
    color:
        rgba(229, 240, 236, 0.94);
}

.bks-rail-group--wellness
.bks-rail-action {
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(74, 211, 162, 0.055),
            transparent 72%
        ),
        linear-gradient(
            180deg,
            rgba(28, 35, 36, 0.56),
            rgba(8, 11, 12, 0.86)
        );
}


/* BKS_RAIL_CARD_MOCKUP_V1 END */

/* ---------- SHORT DESKTOP ---------- */

@media
(max-height: 850px)
and
(min-width: 1181px) {

    .sage-dashboard {
        grid-template-rows:
            minmax(0, 1fr)
            2.9rem
            6.15rem;
    }

    .bks-rail-group-title {
        min-height: 1.72rem;

        padding:
            0.24rem
            0.28rem;

        font-size: 0.41rem;
    }

    .bks-rail-icon {
        width: 1.2rem;
        height: 1.2rem;

        font-size: 0.58rem;
    }

    .bks-rail-action,
    .bks-rail-action.about-sage-chip {
        padding:
            0.18rem
            0.3rem;

        font-size: 0.36rem;
    }
}


@media (max-width: 760px) {
    .sage-dashboard {
        grid-template-areas:
            "center center"
            "left right"
            "ads ads"
            "rail rail";
    }
}

/* ---------- TABLET / NARROW DESKTOP ---------- */

@media (max-width: 1180px) {



    .bks-ad-row {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        padding-inline: 0.75rem;
    }

    .information-rail.bks-rail-groups {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .bks-rail-group {
        min-height: 6.15rem;

        border-bottom:
            1px solid
            rgba(181, 190, 202, 0.24);
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 760px) {

    .bks-ad-row {
        order: 4;

        grid-template-columns: 1fr;

        gap: 0.45rem;

        padding-inline: 0;
    }

    .information-rail.bks-rail-groups {
        order: 5;

        grid-template-columns: 1fr;
    }

    .bks-ad-box {
        min-height: 2.8rem;
    }

    .bks-rail-group {
        min-height: 6rem;
    }

}


/* BKS_RAIL_7X2_ADS_V1 END */

/* ============================================================
   BKS_RAIL_READABLE_TYPE_V1
   Keep current card sizing. Increase legibility only.
   ============================================================ */

.bks-rail-group-title {
    font-size: 0.80rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.bks-rail-action,
.bks-rail-action.about-sage-chip {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.bks-rail-soon {
    font-size: 0.54rem;
    font-weight: 800;
}

.bks-rail-icon {
    font-size: 0.78rem;
}

@media (max-height: 850px) and (min-width: 1181px) {

    .bks-rail-group-title {
        font-size: 0.72rem;
    }

    .bks-rail-action,
    .bks-rail-action.about-sage-chip {
        font-size: 0.66rem;
    }

    .bks-rail-soon {
        font-size: 0.50rem;
    }
}

/* BKS_RAIL_READABLE_TYPE_V1 END */


/* SAGE_AUDIOBOOK_PREVIEW_V1 */
#sage-audiobook-preview {
    position: fixed;
    z-index: 10000;
    box-sizing: border-box;
    width: 320px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow: auto;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #bac2ce;
    border-radius: 8px;
    background: #101217;
    color: #edf0f5;
    box-shadow: 0 8px 24px #0009;
    font: 15px/1.5 Georgia, serif;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}
#sage-audiobook-preview[hidden] {
    display: none !important;
}
#sage-audiobook-realm,
#sage-audiobook-realm::before {
    animation: none !important;
}


/* ============================================================
   SAGE MENTAL HEALTH LANDING GATEWAY V1
   Fills the former wellness hole.
   No internal scrolling.
   ============================================================ */

.bks-mh-gateway {
    position: relative;

    overflow: visible;

    border-color:
        rgba(86, 236, 157, .30) !important;

    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(71, 231, 144, .13),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(7, 41, 31, .94),
            rgba(5, 20, 23, .97)
        ) !important;
}


.bks-mh-gateway-head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;
}


.bks-mh-live {
    padding: 3px 7px;

    border:
        1px solid
        rgba(91, 236, 158, .35);

    border-radius: 999px;

    color: #8af0b6;

    background:
        rgba(29, 112, 73, .20);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .13em;
}


.bks-mh-primary {
    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr) auto;

    gap: 10px;

    align-items: center;

    width: 100%;

    margin-top: 9px;

    padding: 11px 12px;

    border:
        1px solid
        rgba(91, 236, 158, .38);

    border-radius: 10px;

    color: #eefbf4;

    background:
        linear-gradient(
            135deg,
            rgba(34, 142, 88, .42),
            rgba(16, 67, 53, .28)
        );

    text-decoration: none;

    box-sizing: border-box;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}


.bks-mh-primary:hover,
.bks-mh-primary:focus-visible {
    transform: scale(1.025);

    border-color:
        rgba(108, 255, 176, .72);

    background:
        linear-gradient(
            135deg,
            rgba(39, 164, 99, .52),
            rgba(18, 79, 59, .36)
        );
}


.bks-mh-primary-icon {
    display: grid;

    place-items: center;

    width: 31px;
    height: 31px;

    border:
        1px solid
        rgba(118, 255, 183, .28);

    border-radius: 50%;

    color: #89efb5;

    background:
        rgba(49, 160, 101, .17);

    font-size: 18px;
}


.bks-mh-primary-copy {
    display: grid;

    gap: 2px;

    min-width: 0;
}


.bks-mh-primary-copy strong {
    color: #effbf5;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .055em;
}


.bks-mh-primary-copy small {
    color: #a8c7b9;

    font-size: 8px;
    line-height: 1.35;
}


.bks-mh-primary-arrow {
    color: #7eeaaa;

    font-size: 22px;
    line-height: 1;
}


.bks-mh-gateway-actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 6px;

    margin-top: 6px;
}


.bks-mh-gateway-actions a {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 6px;

    min-width: 0;

    padding: 8px 9px;

    border:
        1px solid
        rgba(86, 216, 151, .18);

    border-radius: 8px;

    color: #c9e8da;

    background:
        rgba(17, 65, 49, .22);

    font-size: 7px;
    font-weight: 850;

    text-decoration: none;

    transition:
        border-color .17s ease,
        background .17s ease;
}


.bks-mh-gateway-actions a:hover,
.bks-mh-gateway-actions a:focus-visible {
    border-color:
        rgba(101, 242, 170, .48);

    background:
        rgba(27, 105, 69, .30);
}


.bks-mh-gateway-hover {
    position: absolute;

    right: 0;
    bottom: calc(100% + 8px);

    width: min(
        310px,
        calc(100vw - 36px)
    );

    z-index: 400;

    padding: 13px;

    border:
        1px solid
        rgba(92, 239, 162, .35);

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(5, 32, 25, .98),
            rgba(6, 18, 22, .99)
        );

    box-shadow:
        0 18px 55px
        rgba(0, 0, 0, .50);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(7px)
        scale(.98);

    transition:
        opacity .16s ease,
        transform .16s ease,
        visibility .16s ease;
}


.bks-mh-gateway:hover
.bks-mh-gateway-hover,

.bks-mh-gateway:focus-within
.bks-mh-gateway-hover {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


.bks-mh-gateway-hover > span {
    color: #71e9a6;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .13em;
}


.bks-mh-gateway-hover strong {
    display: block;

    margin-top: 4px;

    color: #f0faf5;

    font-size: 15px;
}


.bks-mh-gateway-hover p {
    margin: 6px 0 0;

    color: #a9c1b6;

    font-size: 9px;
    line-height: 1.45;
}


/*
   Phones/tablets use the actual buttons.
   No hover overlay.
*/
@media (max-width: 999px) {

    .bks-mh-gateway-hover {
        display: none;
    }

    .bks-mh-primary:hover {
        transform: none;
    }

}


@media (max-width: 520px) {

    .bks-mh-gateway-actions {
        grid-template-columns: 1fr;
    }

}


/* ============================================================
   SAGE_MH_LANDING_COMPACT_V2
   Clean Mental Health lower-rail links.
   ============================================================ */

.bks-rail-group--wellness {
    overflow: hidden;
}


.bks-rail-group--wellness
.bks-rail-icon {
    color: #72efaa;
}


.bks-rail-group--wellness
.bks-rail-action {
    color: #d9f7e7;

    border-color:
        rgba(87, 232, 156, .20);
}


.bks-rail-group--wellness
.bks-rail-action:hover,
.bks-rail-group--wellness
.bks-rail-action:focus-visible {

    color: #ffffff;

    border-color:
        rgba(98, 255, 177, .55);

    background:
        rgba(29, 113, 73, .24);
}


.bks-rail-group--wellness
.bks-rail-chevron {
    color: #78efab;
}



/* ============================================================
   SAGE TEN REAL BLOCKS V2

   ONE ROW.
   TEN BLOCKS.
   NO STACKED ACTION ROWS.
   NO HOVER EXPLANATIONS.
   ============================================================ */

.sage-ten-block-row {
    grid-area: rail;

    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-columns:
        repeat(
            10,
            minmax(0, 1fr)
        );

    gap:
        0.42rem;

    padding:
        0.40rem;

    overflow:
        hidden;

    border:
        1px solid
        rgba(184,194,209,.38);

    border-radius:
        0.55rem;

    background:
        linear-gradient(
            180deg,
            rgba(8,10,14,.95),
            rgba(3,4,7,.99)
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,.025);
}


.sage-ten-block {
    --sage-ten-rgb:
        190, 198, 213;

    min-width:
        0;

    height:
        5.65rem;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        0.46rem;

    padding:
        0.42rem 0.24rem;

    overflow:
        hidden;

    border:
        1px solid
        rgba(
            var(--sage-ten-rgb),
            .48
        );

    border-radius:
        0.48rem;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(
                var(--sage-ten-rgb),
                .095
            ),
            transparent 62%
        ),
        linear-gradient(
            145deg,
            rgba(43,47,56,.72),
            rgba(8,9,12,.95)
        );

    box-shadow:
        inset 0 0 .72rem
        rgba(255,255,255,.025),
        0 0 .42rem
        rgba(
            var(--sage-ten-rgb),
            .07
        );

    color:
        #e9edf3;

    text-decoration:
        none !important;

    text-align:
        center;

    cursor:
        pointer;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}


.sage-ten-symbol {
    flex:
        0 0 auto;

    width:
        2.05rem;

    height:
        2.05rem;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid
        rgba(
            var(--sage-ten-rgb),
            .64
        );

    border-radius:
        50%;

    color:
        #f7f9fc;

    background:
        radial-gradient(
            circle,
            rgba(
                var(--sage-ten-rgb),
                .24
            ),
            rgba(10,11,15,.96)
        );

    box-shadow:
        inset 0 0 .5rem
        rgba(255,255,255,.06),
        0 0 .5rem
        rgba(
            var(--sage-ten-rgb),
            .10
        );

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        1rem;

    line-height:
        1;
}


.sage-ten-label {
    display:
        block;

    width:
        100%;

    color:
        #e6e9ee;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        0.70rem;

    font-weight:
        700;

    letter-spacing:
        .025em;

    line-height:
        1.02;

    text-align:
        center;

    text-decoration:
        none !important;

    text-transform:
        uppercase;

    text-shadow:
        0 0 .4rem
        rgba(255,255,255,.10);
}


.sage-ten-block:hover,
.sage-ten-block:focus-visible {
    transform:
        translateY(-1px);

    outline:
        none;

    border-color:
        rgba(
            var(--sage-ten-rgb),
            .86
        );

    box-shadow:
        inset 0 0 .85rem
        rgba(255,255,255,.045),
        0 0 .65rem
        rgba(
            var(--sage-ten-rgb),
            .16
        );
}


/* restrained individual tones */

.sage-ten-radio {
    --sage-ten-rgb:
        119, 177, 216;
}

.sage-ten-movie {
    --sage-ten-rgb:
        194, 164, 116;
}

.sage-ten-game {
    --sage-ten-rgb:
        121, 190, 151;
}

.sage-ten-realm {
    --sage-ten-rgb:
        154, 132, 204;
}

.sage-ten-story {
    --sage-ten-rgb:
        190, 126, 169;
}

.sage-ten-audio {
    --sage-ten-rgb:
        130, 157, 208;
}

.sage-ten-color {
    --sage-ten-rgb:
        203, 146, 192;
}

.sage-ten-chart {
    --sage-ten-rgb:
        207, 183, 116;
}

.sage-ten-store {
    --sage-ten-rgb:
        196, 119, 110;
}

.sage-ten-lunar {
    --sage-ten-rgb:
        137, 157, 204;
}


/*
   Desktop stays ONE ROW.
   We only collapse on genuinely smaller screens.
*/

@media (
    max-width: 1180px
) {

    .sage-ten-block-row {
        grid-template-columns:
            repeat(
                5,
                minmax(0, 1fr)
            );
    }

}


@media (
    max-width: 650px
) {

    .sage-ten-block-row {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* ============================================================
   SAGE_REALM_HOVER_INFO_V1
   Tarot / Dark Lore / Mental Health only.
   ============================================================ */

.sage-realm-hover-tip {
    position:
        fixed;

    z-index:
        99999;

    width:
        min(
            330px,
            calc(100vw - 24px)
        );

    padding:
        14px 16px;

    pointer-events:
        none;

    opacity:
        0;

    transform:
        translateY(4px);

    border:
        1px solid
        rgba(224, 230, 241, .48);

    border-radius:
        12px;

    color:
        #edf0f5;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(139, 103, 195, .19),
            transparent 65%
        ),
        rgba(
            6,
            8,
            12,
            .97
        );

    box-shadow:
        0 14px 38px
        rgba(0, 0, 0, .56),
        0 0 18px
        rgba(130, 93, 184, .15);

    transition:
        opacity 130ms ease,
        transform 130ms ease;
}


.sage-realm-hover-tip.is-visible {
    opacity:
        1;

    transform:
        translateY(0);
}


.sage-realm-hover-title {
    display:
        block;

    margin:
        0 0 5px;

    color:
        #fff0c3;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        .95rem;

    letter-spacing:
        .035em;
}


.sage-realm-hover-copy {
    display:
        block;

    color:
        #d4d7df;

    font-size:
        .78rem;

    line-height:
        1.48;
}

/* SAGE_REALM_HOVER_INFO_V1 END */


/* ============================================================
   SAGE_FEATURE_BOTTOM_HOVER_V1
   Rich informational hover / focus panel.
   ============================================================ */

.sage-universal-hover-preview {
    position:
        fixed;

    z-index:
        100000;

    width:
        min(
            360px,
            calc(100vw - 24px)
        );

    padding:
        18px 19px 17px;

    pointer-events:
        none;

    opacity:
        0;

    transform:
        translateY(5px)
        scale(.985);

    border:
        1px solid
        rgba(219, 225, 237, .46);

    border-radius:
        16px;

    color:
        #eef0f5;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(115, 83, 169, .22),
            transparent 64%
        ),
        linear-gradient(
            145deg,
            rgba(17, 19, 25, .985),
            rgba(5, 6, 9, .995)
        );

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, .66),
        0 0 22px
        rgba(126, 93, 181, .16),
        inset 0 0 28px
        rgba(255, 255, 255, .025);

    transition:
        opacity 140ms ease,
        transform 140ms ease;
}


.sage-universal-hover-preview.is-visible {
    opacity:
        1;

    transform:
        translateY(0)
        scale(1);
}


.sage-universal-hover-kicker {
    margin:
        0 0 6px;

    color:
        #d8ad54;

    font-size:
        .67rem;

    font-weight:
        900;

    letter-spacing:
        .15em;

    line-height:
        1.2;

    text-transform:
        uppercase;
}


.sage-universal-hover-title {
    display:
        block;

    margin:
        0 0 8px;

    color:
        #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        1.42rem;

    font-weight:
        600;

    line-height:
        1.05;

    text-shadow:
        0 0 18px
        rgba(199, 174, 235, .16);
}


.sage-universal-hover-copy {
    margin:
        0;

    color:
        #d6d9e0;

    font-size:
        .83rem;

    line-height:
        1.55;
}


/*
 * Subtle cue that these have information.
 * Does not change layout.
 */

[data-sage-hover-feature] {
    cursor:
        help;
}


/*
 * BLACK LANTERN PROTECTED.
 */

.sage-ten-store {
    cursor:
        pointer;
}

/* SAGE_FEATURE_BOTTOM_HOVER_V1 END */

/* SAGE_MOBILE_FLOW_20260929: restore natural phone height without changing desktop. */
@media (max-width: 760px) {
    html { overflow-y: auto; }
    body { overflow: visible; }
    .sage-dashboard {
        height: auto;
        min-height: 100dvh;
        min-width: 0;
        max-width: 100%;
    }
    .sage-dashboard > section {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 100%;
    }
    .sage-dashboard > .dashboard-column {
        min-height: 0;
        height: auto;
        grid-template-rows: repeat(3, auto);
        grid-auto-rows: auto;
        align-content: start;
    }
    .sage-dashboard > .center-stage {
        order: 1;
        grid-template-rows: auto auto;
    }
    .sage-dashboard > .sage-ten-block-row { order: 5; }
    .bks-top-ledge {
        height: auto;
        min-height: 2.65rem;
        flex-wrap: wrap;
        padding-block: 0.45rem;
    }
    .bks-top-intro {
        flex: 1 1 100%;
        order: 5;
        margin: 0;
        white-space: normal;
    }
}

/* ============================================================
   SAGE ELEVEN QUICK ACCESS BLOCKS — ANDROID DOWNLOAD V1
   Desktop: 11 across. Existing responsive breakpoints remain.
   ============================================================ */

@media (min-width: 1181px) {
    .sage-ten-block-row {
        grid-template-columns:
            repeat(12, minmax(0, 1fr)) !important;

        gap: 0.34rem !important;
    }
}

.sage-ten-download {
    --sage-ten-rgb: 111, 196, 173;
}

.sage-ten-library {
    --sage-ten-rgb: 195, 157, 94;
}

/* SAGE_ELEVEN_QUICK_ACCESS_ANDROID_V1 END */

/* BKS canonical tablet layout: natural height and four content rows. */
@media (min-width: 761px) and (max-width: 1180px) {
    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .sage-dashboard {
        padding: 1rem 0.5rem 0.5rem;
        gap: 0.4rem;
        height: auto;
        min-height: 100dvh;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas: "center center" "left right" "ads ads" "rail rail";
    }

    .center-stage {
        min-height: 38rem;
        gap: 0.4rem;
        grid-template-rows:
            minmax(0, 1fr)
            minmax(6.25rem, auto);
    }

    .dashboard-column {
        min-height: 40rem;
        gap: 0.4rem;
    }

    .feature-panel {
        padding: 0.6rem;
        gap: 0.65rem;
    }

    .information-rail { grid-template-columns: repeat(3, 1fr); }
    .information-rail > * { border-bottom: 1px solid var(--line-soft); }
}
