﻿/* Brand UI tweaks */
:root {
    --radius: 10px;
    /* Force Nunito across MudBlazor typography vars */
    --mud-typography-font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --mud-typography-h1-font-family: var(--mud-typography-font-family);
    --mud-typography-h2-font-family: var(--mud-typography-font-family);
    --mud-typography-h3-font-family: var(--mud-typography-font-family);
    --mud-typography-h4-font-family: var(--mud-typography-font-family);
    --mud-typography-h5-font-family: var(--mud-typography-font-family);
    --mud-typography-h6-font-family: var(--mud-typography-font-family);
    --mud-typography-subtitle1-font-family: var(--mud-typography-font-family);
    --mud-typography-subtitle2-font-family: var(--mud-typography-font-family);
    --mud-typography-body1-font-family: var(--mud-typography-font-family);
    --mud-typography-body2-font-family: var(--mud-typography-font-family);
    --mud-typography-button-font-family: var(--mud-typography-font-family);
    --mud-typography-caption-font-family: var(--mud-typography-font-family);
    --mud-typography-overline-font-family: var(--mud-typography-font-family);
    --mud-typography-button-text-transform: none !important; /* disable uppercase */
    --quill-font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Global font: Nunito */
html, body {
    font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Hard override to beat vendor defaults everywhere */
body, button, input, optgroup, select, textarea,
.mud-typography, .mud-typography-body1, .mud-typography-body2,
.mud-typography-caption, .mud-typography-button, .mud-typography-overline,
.mud-typography-subtitle1, .mud-typography-subtitle2,
.mud-typography-h1, .mud-typography-h2, .mud-typography-h3, .mud-typography-h4, .mud-typography-h5, .mud-typography-h6 {
    font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif !important;
}

.mud-paper, .mud-card {
    border-radius: var(--radius);
}

.mud-focus, :focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}
/* Softer default elevation for cards */
.mud-elevation-1 {
    box-shadow: 0 4px 14px rgba(0,0,0,.07) !important;
}

/* Sticky glass appbar styling */
.appbar-glass {
    position: sticky;
    top: 0;
    z-index: 1100; /* above content, below dialogs */
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    background-color: color-mix(in srgb, var(--mud-palette-surface) 85%, transparent);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Brand title font */
.brand-title {
    font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-weight: 900; /* Stronger weight */
    font-size: clamp(1.5rem, 2vw, 2rem); /* bigger */
    letter-spacing: .3px;
}

/* Push content below appbar height */
.layout-content {
    padding-top: 84px; /* increased to account for bigger brand */
}

/* Hero image size */
.hero-illustration {
    max-width: 380px;
    width: 100%;
    height: auto;
}

/* Keep existing styles */
a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0iIHRyYW5zbGF0ZSgtMjM1IC01MSk+PHBhdGggZD0iTTI26My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA9NC42NzgyIDI5MSA9Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY2LjAxODMuMjYzLjU3SiA2Ni4wMTgzIDI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Anchor offset so sticky appbar doesn't cover headings when using #hash links */
:root {
    --appbar-offset: 84px;
}

section[id] {
    scroll-margin-top: var(--appbar-offset);
}

html {
    scroll-behavior: smooth;
}

/* Publications card layout */
.pub-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
}

.pub-card-image {
    width: 160px;
    height: 100%;
}

    .pub-card-image > img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-top-left-radius: var(--radius);
        border-bottom-left-radius: var(--radius);
    }

.pub-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pub-card-content {
    flex: 1 1 auto;
}

.pub-card-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 16px 16px;
}

@media (max-width: 600px) {
    .pub-card {
        grid-template-columns: 100px 1fr;
    }

    .pub-card-image {
        width: 100px;
    }
}

/* Schedule calendar item styling */
.sb-cal-item {
    background: rgba(245, 124, 0, 0.18); /* orange-ish */
    color: var(--mud-palette-text-primary);
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(245,124,0,0.35);
}

/* Right-side composer drawer: fixed and above other overlays */
.sb-composer.mud-drawer {
    position: fixed !important;
    right: 0;
    top: 56px; /* app bar height */
    height: calc(100vh - 56px);
    /*z-index: 1400;*/ /* above dialog backdrop */
    pointer-events: auto;
}

/* Ensure content within the drawer can scroll fully */
.sb-composer .mud-drawer-content {
    height: 100%;
    overflow: auto;
}

/* Schedule: visually and interactively disable past items */
.sb-cal-item--past {
    pointer-events: none; /* disable drag/resize/click */
}

.mud-nav-link.active {
    pointer-events: none;
    cursor: default;
}

/* Collaborations Map styles: tweak InfoWindow and hide scrollbars */
.gm-style-iw {
    background-color: white;
    box-shadow: 0 2px 7px rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 2px;
    font-size: 14px;
    line-height: 18px;
    overflow: hidden !important;
}

.gm-ui-hover-effect {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 24px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 2px !important;
    cursor: pointer;
}

.gm-control-active {
    background-color: #fff;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 1px 4px -1px rgba(0,0,0,.3);
    cursor: pointer;
    margin: 10px;
    padding: 6px;
    text-align: center;
}

    .gm-control-active img {
        width: 18px;
        height: 18px;
    }

.gm-fullscreen-control {
    background: none rgb(255, 255, 255);
    border: 0px;
    margin: 10px;
    padding: 0px;
    text-transform: none;
    appearance: none;
    position: absolute;
    cursor: pointer;
    user-select: none;
    border-radius: 2px;
    height: 40px;
    width: 40px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    overflow: hidden;
    top: 0px;
    right: 0px;
}

.gm-control-active > img {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%, -50%);
}

.gm-ui-hover-effect > span {
    background-color: light-dark(#000, #fff);
    margin: 0 !important;
}

.gm-style-iw-chr {
    height: 24px;
}

.gm-style-iw, .gm-style-iw-d {
    overflow: hidden !important;
}

    .gm-style-iw-d::-webkit-scrollbar {
        display: none;
    }

.sb-iw {
    width: 200px;
    overflow: hidden;
}

.sb-iw-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-iw-pubimg {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.sb-iw-title {
    font-weight: 800;
    line-height: 1.1;
}

.sb-iw-by {
    color: #6b7280;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.sb-iw-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.sb-iw-chips {
    margin-top: 4px;
}

.sb-iw-chip {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 11px;
    margin-right: 4px;
    white-space: nowrap;
}

.sb-iw-actions {
    margin-top: 8px;
}

.sb-iw-link {
    text-decoration: none;
    color: #1b6ec2;
    font-weight: 800;
}

/* Looking For callout */
.sb-lookingfor {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(16,185,129,0.08));
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 30%, transparent);
    border-radius: 10px;
    padding: 10px 12px;
}

.sb-lf-title {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--mud-palette-primary);
    margin-bottom: 4px;
}

.sb-lf-text {
    color: var(--mud-palette-text-secondary);
}

/* Clamp helper */
.sb-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ql-editor {
    font-size: 15px;
}

/* --- Collaborations Landing Styles (moved from inline) --- */
:root {
    --sb-bg: radial-gradient(circle at 20% 20%, #2d2f55 0%, #141626 60%, #0c0e18 100%);
    --sb-accent: #ffb347;
    --sb-accent-alt: #6ec9ff;
    --sb-primary: #ff6a3d;
    --sb-primary-focus: #e4572b;
    --sb-txt: #f5f7fb;
    --sb-txt-dim: #b5b9c9;
}

.sb-hero {
    background: var(--sb-bg);
    color: var(--sb-txt);
    padding: 4.5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}

    .sb-hero:before {
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 75% 35%, rgba(255,179,71,.15), transparent 60%);
    }

.sb-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sb-hero-collab-join {
    background: inherit;
    color: var(--sb-txt);
    padding: 4.5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}

    .sb-hero-collab-join:before {
        position: absolute;
        inset: 0;
        /*        background: radial-gradient(circle at 75% 35%, rgba(255,179,71,.15), transparent 60%);
*/
    }

.sb-hero-inner-collab-join {
    /*display: flex;*/
    flex-wrap: wrap;
    align-items: center;
    gap: inherit;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sb-hero-left {
    flex: 1 1 460px;
    min-width: 320px;
    position: relative;
    z-index: 3;
}

.sb-hero-art {
    flex: 1 1 480px;
    min-width: 340px;
    position: relative;
    height: 420px;
}

.sb-brand {
    color: #fff;
    font-weight: 900;
}

.sb-accent {
    background: linear-gradient(90deg,var(--sb-accent),var(--sb-accent-alt));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 600;
}

.sb-tagline {
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 1.25rem 0 1.75rem;
    max-width: 600px;
}

.sb-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sb-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 10px;
    padding: .85rem 1.5rem;
    font-size: 1rem;
    line-height: 1.1;
    transition: all .25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.sb-btn-xl {
    font-size: 1.15rem;
    padding: 1.05rem 2rem;
}

.sb-btn-primary {
    background: var(--sb-primary);
    color: #fff;
    box-shadow: 0 8px 24px -6px rgba(255,106,61,.45);
}

    .sb-btn-primary:hover {
        background: var(--sb-primary-focus);
        transform: translateY(-2px);
        box-shadow: 0 10px 30px -6px rgba(255,106,61,.6);
    }

.sb-btn-outline {
    background: rgba(255,255,255,.04);
    color: var(--sb-txt);
    border-color: rgba(255,255,255,.15);
}

    .sb-btn-outline:hover {
        background: rgba(255,255,255,.08);
    }

.sb-btn-accent {
    background: linear-gradient(90deg,var(--sb-accent),var(--sb-accent-alt));
    color: #1a1d29;
    font-weight: 700;
}

    .sb-btn-accent:hover {
        filter: brightness(1.1);
    }

.pulse {
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(255,179,71,.4);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(255,179,71,0);
    }
}

.sb-social-proof {
    display: flex;
    gap: .85rem;
    align-items: center;
    margin-top: 2rem;
    font-size: .9rem;
    color: var(--sb-txt-dim);
}

    .sb-social-proof img {
        height: 48px;
        width: auto;
        filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
    }

.sb-screenshot {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(145deg,#1b1e2d,#252a41);
    box-shadow: 0 25px 60px -15px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .sb-screenshot .placeholder {
        color: #5f6480;
        font-size: 1rem;
        letter-spacing: .5px;
        text-align: center;
        padding: 1.5rem;
        line-height: 1.4;
    }

.sb-floating-card {
    position: absolute;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: .9rem 1.1rem;
    font-size: .8rem;
    color: #fff;
    box-shadow: 0 8px 26px -8px rgba(0,0,0,.55);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

    .sb-floating-card .mini {
        opacity: .9;
    }

    .sb-floating-card.a {
        top: 14%;
        right: 13%;
        animation-delay: .4s;
    }

    .sb-floating-card.b {
        bottom: 22%;
        left: 24%;
        animation-delay: 1.2s;
    }

    .sb-floating-card.c {
        top: 12%;
        left: 8%;
        animation-delay: 2s;
    }

@keyframes float {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px)
    }
}

.sb-trust {
    background: #0f111b;
    padding: 3.5rem 0;
}

.sb-shell {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 2rem;
}

    .sb-shell.narrow {
        max-width: 900px;
    }

.sb-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
    gap: 2rem;
}

    .sb-trust-grid h3 {
        margin: .65rem 0 .4rem;
        font-size: 1.05rem;
        color: #fff;
    }

    .sb-trust-grid p {
        margin: 0;
        font-size: .85rem;
        line-height: 1.35;
        color: #a4a9b9;
    }

    .sb-trust-grid .m {
        font-size: 1.4rem;
    }

.sb-how {
    background: #161a27;
    padding: 4.5rem 0 4rem;
    color: #e5e8ef;
    text-align: center;
}

    .sb-how h2 {
        font-size: 2.15rem;
        margin: 0 0 2.25rem;
        background: linear-gradient(90deg,var(--sb-accent),var(--sb-accent-alt));
        -webkit-background-clip: text;
        color: transparent;
    }

.sb-steps {
    list-style: decimal;
    text-align: left;
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 1.4rem;
}

    .sb-steps li {
        line-height: 1.5;
    }

.sb-value {
    background: #11131d;
    padding: 4.5rem 0 4.25rem;
    color: #d7dbe5;
}

.sb-value-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
}

.v-card {
    background: #1b1f2c;
    border: 1px solid #262c3c;
    border-radius: 18px;
    padding: 1.35rem 1.35rem 1.2rem;
    box-shadow: 0 10px 32px -12px rgba(0,0,0,.45);
}

    .v-card.highlight {
        background: linear-gradient(135deg,#262d46,#1d2132 55%,#262d46);
        border-color: #323a52;
    }

    .v-card h3 {
        margin: .2rem 0 .6rem;
        font-size: 1.05rem;
        color: #fff;
    }

    .v-card p {
        margin: 0;
        font-size: .85rem;
        line-height: 1.45;
        color: #a8afbd;
    }

.sb-final-cta {
    background: radial-gradient(circle at 65% 40%,rgba(99,102,241,.2),rgba(17,19,29,1) 60%), #11131d;
    padding: 5rem 0 6rem;
    text-align: center;
    color: #e8ebf5;
}

    .sb-final-cta h2 {
        font-size: 2.1rem;
        max-width: 860px;
        margin: 0 auto 1.3rem;
        line-height: 1.25;
    }

    .sb-final-cta p {
        font-size: 1.05rem;
        margin: .25rem 0 2.2rem;
        color: #b9c0d1;
    }

    .sb-final-cta .mini-note {
        margin-top: 1.75rem;
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: 1.6px;
        color: #757d91;
    }

.center {
    text-align: center;
}

.mt-l {
    margin-top: 2.4rem;
}

.mt-xl {
    margin-top: 3.5rem;
}

/* Responsive tweaks for collaborations landing */
@media (max-width: 940px) {
    .sb-hero {
        padding: 3.2rem 0 4.2rem;
    }

    .sb-hero-art {
        order: -1;
        height: 340px;
    }
}

@media (max-width: 640px) {
    .sb-tagline {
        font-size: 1.05rem;
    }

    .sb-hero-art {
        height: 300px;
    }

    .sb-value-grid {
        grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    }
}

/* --- Responsive Enhancements: Collaborations Landing --- */
.sb-hero-left h1 {
    font-size: clamp(2.2rem,4.2vw + .5rem,3.25rem);
    line-height: 1.05;
    margin: 0 0 .4rem;
}

/* Medium: allow steps to go 2 columns for readability */
@media (min-width:720px) and (max-width:1100px) {
    .sb-steps {
        grid-template-columns: 1fr 1fr;
    }
}

/* CTA buttons stack on narrow screens */
@media (max-width:680px) {
    .sb-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

        .sb-cta-group .sb-btn {
            width: 100%;
        }
}

/* Further tighten below 560px */
@media (max-width:560px) {
    .sb-hero-inner {
        padding: 0 1.25rem;
    }

    .sb-hero {
        padding: 2.8rem 0 3.4rem;
    }

    .sb-hero-art {
        height: 260px;
    }

    .sb-tagline {
        font-size: 1.02rem;
    }

    .sb-value {
        padding: 3.4rem 0 3.1rem;
    }

    .sb-final-cta {
        padding: 4.4rem 0 5.2rem;
    }

    .sb-floating-card {
        transform: scale(.9);
    }
}

/* Ultra small devices */
@media (max-width:440px) {
    .sb-hero-inner {
        padding: 0 1rem;
    }

    .sb-hero {
        padding: 2.4rem 0 3rem;
    }

    .sb-hero-art {
        height: 225px;
    }

    .sb-tagline {
        font-size: .98rem;
    }

    .sb-btn-xl {
        font-size: 1.03rem;
        padding: .95rem 1.4rem;
    }

    .sb-value-grid {
        gap: 1.25rem;
    }

    .v-card {
        padding: 1.1rem 1.05rem 1rem;
    }

    .sb-final-cta h2 {
        font-size: 1.65rem;
    }
}

/* Light variant fine‑tuning on very small screens */
@media (max-width:560px) {
    .collab-landing.light .sb-screenshot {
        box-shadow: 0 16px 42px -18px rgba(0,40,90,.15),0 0 0 1px rgba(0,0,0,.05);
    }
}

/* Smooth scaling for floating cards */
.sb-floating-card {
    transition: transform .6s ease, box-shadow .6s ease;
}

/* Prevent horizontal scroll due to transforms */
.collab-landing {
    overflow-x: hidden;
}

    /* --- Light Variant: Collaborations Landing (restored) --- */
    .collab-landing.light .sb-hero {
        background: linear-gradient(135deg,#f8fafc,#eef4ff 55%, #e9f3ff);
        color: #1b2430;
    }

        .collab-landing.light .sb-hero:before {
            background: radial-gradient(circle at 75% 35%, rgba(255,179,71,.35), transparent 60%);
        }

    .collab-landing.light .sb-brand {
        color: #111827;
    }

    .collab-landing.light .sb-accent {
        background: linear-gradient(90deg,var(--sb-accent),var(--sb-accent-alt));
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    .collab-landing.light .sb-tagline {
        color: #334155;
    }

    .collab-landing.light .sb-btn-primary {
        background: #ff6a3d;
        box-shadow: 0 8px 24px -6px rgba(255,106,61,.35);
    }

        .collab-landing.light .sb-btn-primary:hover {
            background: #e4572b;
            box-shadow: 0 10px 30px -6px rgba(255,106,61,.5);
        }

    .collab-landing.light .sb-btn-outline {
        background: rgba(255,255,255,.7);
        color: #1f2937;
        border-color: rgba(0,0,0,.08);
    }

        .collab-landing.light .sb-btn-outline:hover {
            background: #fff;
        }

    .collab-landing.light .sb-social-proof {
        color: #475569;
    }

    .collab-landing.light .sb-screenshot {
        background: linear-gradient(145deg,rgba(255,255,255,0.85),rgba(241,245,249,0)), url('/images/people-collaborating.png') center/cover no-repeat;
    }

    .collab-landing.light .sb-screenshot-alpha {
        background: linear-gradient(145deg,rgba(255,255,255,0.85),rgba(241,245,249,0)), url('/images/stackbuddy-alpha-chill.png') center/cover no-repeat;
    }

    .collab-landing.light .sb-floating-card {
        background: rgba(255,255,255,.75);
        color: #0f172a;
        border: 1px solid rgba(0,0,0,.06);
        box-shadow: 0 8px 26px -8px rgba(0,40,90,.15);
    }

    .collab-landing.light .sb-trust {
        background: #ffffff;
    }

    .collab-landing.light .sb-trust-grid h3 {
        color: #0f172a;
    }

    .collab-landing.light .sb-trust-grid p {
        color: #475569;
    }

    .collab-landing.light .sb-how {
        background: #f1f5f9;
        color: #334155;
    }

        .collab-landing.light .sb-how h2 {
            background: none;
            -webkit-background-clip: initial;
            color: #1e293b;
        }

    .collab-landing.light .sb-steps li {
        color: #1e293b;
    }

    .collab-landing.light .sb-value {
        background: #ffffff;
        color: #1e293b;
    }

    .collab-landing.light .v-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 32px -12px rgba(0,40,90,.12);
    }

        .collab-landing.light .v-card.highlight {
            background: linear-gradient(135deg,#f1f5f9,#e2e8f0 55%,#f1f5f9);
            border-color: #d1dbe6;
        }

        .collab-landing.light .v-card h3 {
            color: #0f172a;
        }

        .collab-landing.light .v-card p {
            color: #475569;
        }

    .collab-landing.light .sb-final-cta {
        background: radial-gradient(circle at 65% 40%,rgba(99,102,241,.18),#f1f5f9 60%), #f1f5f9;
        color: #1e293b;
    }

        .collab-landing.light .sb-final-cta h2 {
            color: #1e293b;
        }

        .collab-landing.light .sb-final-cta p {
            color: #475569;
        }

        .collab-landing.light .sb-final-cta .mini-note {
            color: #64748b;
        }

    .collab-landing.light .sb-btn-accent {
        color: #111827;
    }

        .collab-landing.light .sb-btn-accent:hover {
            filter: brightness(1.08);
        }

    .collab-landing.light .sb-btn {
        transition: background .3s ease, box-shadow .3s ease, transform .25s ease;
    }

    /* Transition group */
    .collab-landing.light .sb-hero, .collab-landing.light .sb-trust, .collab-landing.light .sb-how, .collab-landing.light .sb-value, .collab-landing.light .sb-final-cta, .collab-landing.light .v-card, .collab-landing.light .sb-screenshot, .collab-landing.light .sb-floating-card {
        transition: background .6s ease, color .4s ease, box-shadow .6s ease, border-color .5s ease;
    }
/* --- End Light Variant --- */

/* --- Global MudBlazor Button Hover Animation (from collaborations landing) --- */
.mud-button-root.mud-button {
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
    will-change: transform;
}

    .mud-button-root.mud-button:hover:not(.mud-disabled) {
        transform: translateY(-1px);
        /* Generic shadow using current color where possible */
        box-shadow: 0 8px 24px -6px rgba(0,0,0,.25);
    }

/* Stronger glow for primary filled */
.mud-button-root.mud-button-filled-primary:hover:not(.mud-disabled) {
    box-shadow: 0 10px 30px -6px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.05);
}

/* Contained (filled) buttons of any color get a subtle lift */
.mud-button-root[class*='mud-button-filled-']:hover:not(.mud-disabled) {
    filter: brightness(1.02);
}

/* Active press state: soften movement to avoid jitter */
.mud-button-root.mud-button:active:not(.mud-disabled) {
    transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .mud-button-root.mud-button, .mud-button-root.mud-button:hover, .mud-button-root.mud-button:active {
        transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
        transform: none !important;
    }
}
/* --- End Global MudBlazor Button Hover Animation --- */

/* --- Primary Filled Button: global sizing + case (professional, non-full-width) --- */
.mud-button-root.mud-button-filled-primary {
    /* Keep text as written in markup (no automatic uppercase) */
    text-transform: none;
    /* Balanced, prominent size, but not overly tall */
    border-radius: var(--radius);
    /* Text a bit bigger than default */
    font-size: 1rem;
    /* Avoid taking full height; size by content + padding */
    height: auto;
    min-height: 0;
    /* Professional fixed baseline width with room for label */
    min-width: 140px;
    white-space: nowrap; /* keep label on one line for consistent height */
}

    /* Ensure label inside respects case and size as well */
    .mud-button-root.mud-button-filled-primary .mud-button-label {
        text-transform: none;
        font-size: 1rem;
    }
/* --- End Primary Filled Button adjustments --- */

.collab-tabs {
    gap: .25rem;
    align-items: flex-end;
}

/* Tab-like nav links */
.collab-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    /*padding: .35rem .9rem .25rem .9rem;*/ /* a bit more top so bottom aligns with appbar */
    border-top-left-radius: .6rem;
    border-top-right-radius: .6rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    color: var(--mud-palette-text-primary);
    text-decoration: none;
    min-width: 9rem; /* ensure center text space left/right */
    height: 40px;
    font-weight: 600;
    transition: color .15s ease, background-color .2s ease, transform .15s ease, box-shadow .2s ease;
    background-color: rgba(0, 0, 0, .04);
    margin-bottom: -16px;
}

    /* Keep visuals flat with the appbar, and create subtle bottom overlap */
    .collab-tab::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px; /* sit exactly on appbar bottom line */
        height: 2px;
        background: transparent;
        transition: background-color .2s ease;
    }

    /* Hover animation: gentle raise and underline glow */
    .collab-tab:hover:not(.active) {
        background-color: rgba(0,0,0,.04);
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0,0,0,.08);
    }

    .collab-tab:hover::after {
        background: var(--mud-palette-primary);
    }

/*.collab-tab:active::after {
        background: var(--mud-palette-primary);
    }*/


/* Active tab: orange background with white text */
.mud-nav-link.collab-tab.active,
.mud-nav-link.collab-tab.mud-nav-link-active {
    /*background-color: var(--mud-palette-warning);*/
    color: var(--mud-palette-white);
    box-shadow: none;
}

    .mud-nav-link.collab-tab.active::after,
    .mud-nav-link.collab-tab.mud-nav-link-active::after {
        background: var(--mud-palette-primary);
    }

    .mud-nav-link.collab-tab.active .mud-nav-link-icon,
    .mud-nav-link.collab-tab.active .mud-nav-link-text,
    .mud-nav-link.collab-tab.mud-nav-link-active .mud-nav-link-icon,
    .mud-nav-link.collab-tab.mud-nav-link-active .mud-nav-link-text {
        color: inherit;
    }

/* Ensure icon + text centered with equal spacing left/right */
.collab-tab .mud-nav-link-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

/* Make sure default MudNavLink spacing doesn't fight our layout */
.collab-tabs .mud-nav-link {
    margin: 0;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: inherit;
    background-color: transparent;
    border-top-left-radius: .6rem;
    border-top-right-radius: .6rem;
}

@media (hover: hover) and (pointer: fine) {
    .mud-nav-link:hover:not(.mud-nav-link-disabled) {
        cursor: pointer;
        text-decoration: none;
        background-color: transparent;
        border-top-left-radius: .6rem;
        border-top-right-radius: .6rem;
    }
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled):focus-visible:not(.mud-nav-link-disabled), .mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled):active:not(.mud-nav-link-disabled) {
    background-color: transparent;
    border-top-left-radius: .6rem;
    border-top-right-radius: .6rem;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: inherit;
    border-top-left-radius: .6rem;
    border-top-right-radius: .6rem;
    background-color: rgba(0, 0, 0, .04);
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    border-bottom: 3px solid var(--mud-palette-primary);
}

.sb-content {
    margin-top: 36px;
}

/* Subscriber badges row spacing and emphasis */
.subs-badges .mud-chip {
    font-weight: 700;
}

    .subs-badges .mud-chip .mud-icon-root {
        opacity: .9;
    }

/* Make MudBlazor chart tooltip text white for better contrast */
.mud-chart .apexcharts-tooltip, /* ApexCharts tooltip container used by MudChart */
.mud-chart .apexcharts-tooltip-title,
.mud-chart .apexcharts-tooltip-series-group,
.mud-chart .apexcharts-tooltip-text,
.mud-chart .apexcharts-tooltip-y-group .apexcharts-tooltip-text,
.mud-chart .apexcharts-tooltip-goals-group .apexcharts-tooltip-text,
.mud-chart .apexcharts-xaxistooltip,
.mud-chart .apexcharts-xaxistooltip-text {
    color: #fff !important;
}

/* Also ensure tooltip background is dark enough, if using default */
.mud-chart .apexcharts-tooltip {
    background: rgba(0,0,0,.8) !important;
    border-color: rgba(255,255,255,.12) !important;
}

.queue-menu .mud-tabs-tabbar {
    background-color: transparent;
}

.queue-menu .mud-tab {
    text-transform: none;
}