
/* ===== V71 GLOBAL VISUAL FIX ===== */

/* Stop annoying sticky sidebar */
.portal-sidebar,
.sidebar,
.left-sidebar {
    position: relative !important;
    top: auto !important;
    height: auto !important;
}

/* Normalize overall scale */
html {
    font-size: 15px;
}

body {
    overflow-x: hidden;
}

/* Containers */
.container,
.container-fluid {
    max-width: 1320px;
}

/* Reduce oversized spacing */
.dashboard-topbar,
.public-hero,
.section-block {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
}

/* Hero scaling fix */
.hero-title,
.display-1,
.display-2 {
    font-size: clamp(2rem, 4vw, 3.8rem) !important;
    line-height: 1.05 !important;
}

.lead,
.hero-subtitle {
    font-size: 1.05rem !important;
}

/* Image fixes */
img {
    max-width: 100%;
    height: auto;
}

.partner-logo,
.product-logo {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
}

.product-cover,
.portfolio-cover,
.story-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
}

/* Prevent squeezed images */
img[style*="height"] {
    height: auto !important;
}

/* Cards */
.card,
.dash-card {
    border-radius: 14px;
    padding: 1rem;
}

/* Header balance */
.navbar,
.topbar {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

/* Fix zoomed feeling */
body {
    transform: scale(1);
}

/* Clean button spacing */
.btn {
    padding: 0.45rem 0.9rem;
}



/* ===== V72 DASHBOARD TOPBAR HOTFIX ===== */
/* Remove sticky/fixed dashboard top area and reduce wasted vertical space */
.dashboard-topbar,
.portal-topbar,
.page-topbar,
.topbar-sticky,
.sticky-topbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
}

.dashboard-topbar {
    padding: 0.9rem 1.35rem !important;
    margin-bottom: 0.9rem !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(18,22,26,.06) !important;
}

.dashboard-title-block h1,
.dashboard-title-block .h3,
.dashboard-topbar h1,
.dashboard-topbar .h3 {
    font-size: clamp(1.65rem, 2vw, 2.45rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 0.2rem !important;
}

.dashboard-title-block .small-muted,
.dashboard-topbar .small-muted,
.dashboard-topbar p {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    max-width: 760px !important;
}

.dashboard-actions {
    gap: 0.55rem !important;
    align-items: center !important;
}

.dashboard-actions .btn {
    padding: 0.5rem 0.95rem !important;
    font-size: 0.98rem !important;
    border-radius: 999px !important;
    min-height: auto !important;
}

main,
.portal-content,
.dashboard-content,
.portal-shell main {
    padding-top: 0 !important;
}

/* Keep portal pages balanced under the smaller topbar */
.portal-hero-panel,
.dash-card,
.portal-cta-strip {
    margin-top: 0 !important;
}

/* Mobile tightening */
@media (max-width: 991.98px) {
    .dashboard-topbar {
        padding: 0.85rem 1rem !important;
    }

    .dashboard-actions {
        margin-top: 0.65rem !important;
        width: 100% !important;
    }

    .dashboard-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}
