/* Monolith presentation for existing WealthVia views and forms. */
body[data-theme="monolith"] {
    --wv-night: #080e1f;
    --wv-panel: #111d38;
    --wv-blue: #1742d8;
    --wv-hover: #1233a7;
    --wv-ice: #c4d3ff;
    --wv-on-dark: #f5f2ec;
    --wv-muted-dark: #bbc8e3;
    --ink: #131e36;
    --muted: #536079;
    --teal: var(--wv-blue);
    --nav: var(--wv-night);
    --canvas: #f3f5fa;
    --line: #d9e0ee;
    --focus-night: var(--wv-night);
    --focus-mint: var(--wv-ice);
    --focus-line: var(--line);
    --radius: 14px;
    background: var(--canvas);
    color: var(--ink);
}

body[data-theme="monolith"] :is(h1, .focus-final h2, .login-form-wrap h2) {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.045em;
}

body[data-theme="monolith"] :is(.button, .nav-invest):not(.button-outline, .button-light, .focus-secondary) {
    background: var(--wv-blue);
    border-color: var(--wv-blue);
    color: #fff;
}

body[data-theme="monolith"] :is(.button, .nav-invest):not(.button-outline, .button-light, .focus-secondary):hover {
    background: var(--wv-hover);
    border-color: var(--wv-hover);
}

body[data-theme="monolith"] :is(.button-outline, .button-light) {
    background: #fff;
    border-color: #aebcdc;
    color: #16389c;
}

body[data-theme="monolith"] :is(.button-outline, .button-light):hover {
    background: #edf2ff;
}

body[data-theme="monolith"] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #5377fa;
    outline-offset: 3px;
}

body[data-theme="monolith"] :is(.wordmark, .brand-mark) {
    font-family: Georgia, "Times New Roman", serif;
}

body[data-theme="monolith"] .wordmark > span:last-child { color: #284fc9; }
body[data-theme="monolith"] .brand-mark {
    background: var(--wv-blue);
    color: #fff;
    border-radius: 4px 1px 4px 1px;
    letter-spacing: -.1em;
}

body[data-theme="monolith"] :is(.sidebar, .topbar) {
    background: var(--wv-night);
    color: var(--wv-on-dark);
    border-color: #293858;
}

body[data-theme="monolith"] :is(.sidebar .wordmark, .sidebar .wordmark > span:last-child,
    .login-story .wordmark > span:last-child, .topbar .breadcrumb strong) {
    color: var(--wv-on-dark);
}

body[data-theme="monolith"] :is(.sidebar .nav-label, .sidebar-bottom p, .topbar .breadcrumb, .topbar .text-button) {
    color: var(--wv-muted-dark);
}

body[data-theme="monolith"] .sidebar :is(.side-nav a:hover, .side-nav a[aria-current], summary:hover) {
    background: #1e305c;
    color: #fff;
}

body[data-theme="monolith"] .sidebar .nav-icon { color: var(--wv-ice); }
body[data-theme="monolith"] .account-avatar { background: #253a70; color: #fff; }

body[data-theme="monolith"] :is(.public-nav, .topbar) {
    border-bottom: 1px solid var(--line);
}

body[data-theme="monolith"] .topbar { border-bottom-color: #293858; }
body[data-theme="monolith"] .nav-dropdown > summary { color: var(--ink); }
body[data-theme="monolith"] .nav-dropdown-panel a:hover { background: #eaf0ff; }

body[data-theme="monolith"] .workspace-main > .page-heading {
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid #cfdaee;
    border-radius: 16px;
    background: linear-gradient(112deg, #fff 48%, #e8eeff);
}

body[data-theme="monolith"] :is(.focus-hero, .focus-final, .login-story) {
    isolation: isolate;
    position: relative;
    background: radial-gradient(ellipse at 84% 72%, #203e92 0, transparent 54%), var(--wv-night);
    color: var(--wv-on-dark);
    border: 1px solid #263c70;
    overflow: hidden;
}

body[data-theme="monolith"] .focus-hero::after,
body[data-theme="monolith"] .login-story::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    right: 8%;
    bottom: -5%;
    width: min(28%, 300px);
    height: 85%;
    border: 1px solid #6c8bff;
    border-radius: 7rem 0 0 0;
    transform: skewY(-11deg);
    background: linear-gradient(118deg, #101a3a 22%, #14296a 50%, #254cdf 76%, #6f8dff);
    box-shadow: 0 0 48px #375dff6b, inset 0 0 40px #385aeb65;
    opacity: .62;
}

body[data-theme="monolith"] :is(.focus-kicker, .focus-hero h1 span, .focus-final .focus-kicker) {
    color: var(--wv-ice);
}

body[data-theme="monolith"] :is(.focus-lead, .login-story-content p, .login-story > .eyebrow) {
    color: var(--wv-muted-dark);
}

body[data-theme="monolith"] .login-panel {
    background: var(--wv-panel);
    color: var(--wv-on-dark);
}

body[data-theme="monolith"] .login-panel :is(p, .back-link, .beginner-help a) { color: var(--wv-ice); }
body[data-theme="monolith"] .login-panel .input {
    color-scheme: dark;
    background: var(--wv-night);
    color: var(--wv-on-dark);
    border-color: #7183ac;
}

body[data-theme="monolith"] .login-panel .input::placeholder { color: #9faccc; }
body[data-theme="monolith"] .login-panel .login-error { color: #922729; background: #ffedef; }

body[data-theme="monolith"] :is(.workspace-main, .public-shell) :is(input, select, textarea):not([type=checkbox], [type=radio], [type=range], [type=hidden]) {
    border-color: #aab7d0;
}

body[data-theme="monolith"] .academy .academy-course {
    background: #fff;
    border-color: var(--line);
    border-radius: 14px;
}

body[data-theme="monolith"] .academy .academy-language a[aria-current] {
    background: var(--wv-blue);
    border-color: var(--wv-blue);
}

body[data-theme="monolith"] .academy .academy-notice {
    background: #eaf0ff;
    border-left-color: var(--wv-blue);
}

body[data-theme="monolith"] .academy .academy-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(20px, 4vw, 42px);
    border: 1px solid #293b6a;
    border-radius: 16px;
    background: var(--wv-night);
    color: var(--wv-on-dark);
}

body[data-theme="monolith"] .academy .academy-intro::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: 18% 0 0 65%;
    background: linear-gradient(135deg, #142653, #4168ea);
    clip-path: polygon(0 100%, 0 85%, 20% 85%, 20% 64%, 40% 64%, 40% 43%, 62% 43%, 62% 22%, 82% 22%, 82% 0, 100% 0, 100% 100%);
    opacity: .55;
}

body[data-theme="monolith"] .academy .academy-intro p { color: var(--wv-muted-dark); }
body[data-theme="monolith"] .academy .academy-intro .eyebrow { color: var(--wv-ice); }

@media (max-width: 700px) {
    body[data-theme="monolith"] .focus-hero::after,
    body[data-theme="monolith"] .login-story::before {
        width: 32%;
        right: 2%;
        opacity: .34;
    }
    body[data-theme="monolith"] .workspace-main > .page-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    body[data-theme="monolith"] .login-panel { border-top: 1px solid #293858; }
}
