/* MarketSource Bold & Dynamic – v2.2
   Global right‑anchored bands that persist from top to bottom (overlay right margin)
   - Decorative layer lives on body::after as position: fixed
   - Content sits above via z-index; footer stays fully visible
*/

:root {
    --ms-navy: #021A32;
    --ms-charcoal: #4d4f53;
    --ms-gray: #9A9B9C;
    --ms-orange: #F7971D;
    --ms-blue: #0195D3;
    --ms-red: #A51D25;
    --ms-green: #8DC63F;
    --ms-white: #ffffff;
    --ms-shadow: 0 8px 24px rgba(2, 26, 50, 0.25);
    --ms-radius: 12px;
    --container: 100%;
    --font-headline: "Segoe UI Semibold", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-subheader: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-body: "Segoe UI Light", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    /* Right band width (tunable) */
    --bands-width: min(48vw, 800px);
}

/* Global */
* {
    box-sizing: border-box;
}

html, body {
    height: auto;
    min-height: 100%;
    min-width: 100%;
    padding: 0;
}

body {
    margin: 0;
    color: var(--ms-white);
    background: var(--ms-navy);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------
   GLOBAL RIGHT-ANCHORED BANDS (overlay right margin)
   --------------------------------------------- */
body::after {
    content: "";
    position: fixed; /* stays while scrolling */
    top: 0;
    right: 0;
    bottom: 0; /* full viewport height */
    width: var(--bands-width);
    z-index: 0; /* under page content */
    pointer-events: none;
    opacity: 0.96;
    /* Robust stripes */
    background: repeating-linear-gradient(135deg, transparent 0 44%, var(--ms-orange) 44% 52%, transparent 52% 52%, var(--ms-blue) 52% 64%, transparent 64% 64%, var(--ms-green) 64% 76%, transparent 76% 100%);
    /* Strong diagonal right wedge */
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 18% 100%);
    box-shadow: -12px 0 24px rgba(0,0,0,.25); /* subtle separation from content */
    display: none !important;
}

body.bands-off::after {
    display: block !important;
}

.band-left {
    max-width: 55%;
}

@media (max-width: 768px) {
    
    body::after {
        background: repeating-linear-gradient(125deg, transparent 0 68%, var(--ms-orange) 68% 72%, transparent 72% 72%, var(--ms-blue) 72% 77%, transparent 77% 77%, var(--ms-green) 77% 81%, transparent 81% 100%);
    }
}

    /* Ensure all major sections sit above the global bands */
    .navbar, .hero, .section, .footer {
        position: relative;
        z-index: 1;
    }

    /* Navbar */
    .navbar {
        background: var(--ms-navy);
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 6px 16px rgba(0,0,0,.25)
    }



        /* ===========================
   HEADER LOGO: Bigger, no padding, no hover
   =========================== */

        /* Make the logo anchor neutral (no background, no padding) */
        .navbar .brand {
            display: inline-flex; /* keeps layout tidy */
            align-items: center;
            padding: 0 !important; /* remove anchor padding */
            margin: 0; /* no margin around the logo */
            background: transparent !important;
            border-radius: 0; /* ensure no rounded background shows */
        }

            /* Remove hover styling applied to all navbar links, only for the logo */
            .navbar .brand:hover {
                background: none !important;
                box-shadow: none !important;
                cursor: pointer; /* or 'default' if you want it to look non-clickable */
            }

            /* Increase the actual logo size */
            .navbar .brand .logo {
                height: clamp(20px, 4.5vw, 33px); /* scale with viewport but cap nicely */
                width: auto; /* preserve aspect ratio */
            }



        /* Optional: tighten header grid so the logo gets more visual space */
        .navbar .wrap {
            gap: 12px; /* slightly reduce spacing between columns */
        }

    /* Mobile: ensure larger logo still fits comfortably */
    @media (max-width: 768px) {
        .navbar .brand .logo {
            height: clamp(20px, 6vw, 33px);
        }
    }

    .navbar .wrap {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 16px;
        padding: 14px 24px
    }

    .navbar .logo {
        height: 32px
    }

    .navbar nav {
        display: flex;
        gap: 8px;
        justify-content: center
    }

    .navbar a {
        color: var(--ms-white);
        text-decoration: none;
        padding: 10px 14px;
        border-radius: 8px;
        font-family: var(--font-subheader);
        font-weight: 400
    }

        .navbar a:hover {
            background: rgba(247,151,29,.18)
        }

    .navbar .menu {
        color: var(--ms-white);
        background: transparent;
        border: 0;
        font-size: 22px;
        line-height: 1;
        cursor: pointer
    }

    @media (max-width:768px) {
        .navbar .wrap {
            grid-template-columns: auto auto auto
        }

        .navbar nav {
            display: none
        }
    }

    /* HERO (no accent here; bands come from body::after) */
    .hero {
        position: relative;
        overflow: hidden;
        background: var(--ms-navy);
        color: var(--ms-white);
        min-height: 52vh
    }


        .hero .brand {
            max-width: 320px
        }

        .hero h1 {
            font-family: var(--font-headline);
            font-weight: 600;
            font-size: clamp(32px,6vw,72px);
            line-height: 1.1;
            margin: 24px 0 12px
        }

        .hero p {
            font-family: var(--font-subheader);
            font-weight: 400;
            font-size: clamp(16px,2.4vw,22px);
            opacity: .92
        }

        .hero .cta {
            margin-top: 18px
        }

        /* Optional readability wash under text (left side) */
        .hero .content::before {
            content: "";
            position: absolute;
            inset: 0;
            left: 0;
            right: auto;
            width: 55%;
            background: linear-gradient(90deg,rgba(2,26,50,.55),rgba(2,26,50,0));
            z-index: 0;
            pointer-events: none
        }

.hero a {
    color: var(--ms-white);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 400
}

    .hero a:hover {
        background: rgba(247,151,29,.18)
    }

.a-small {
    font-size: clamp(12px,2.4vw,16px);
}

    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        border: 0;
        border-radius: var(--ms-radius);
        padding: 14px 24px;
        text-decoration: none;
        box-shadow: var(--ms-shadow);
        transition: transform .15s ease,box-shadow .15s ease,background .2s ease
    }

    .btn-primary {
        background: var(--ms-orange);
        color: var(--ms-white);
        font-family: var(--font-headline);
        font-weight: 600
    }

        .btn-primary:hover {
            transform: translateY(-1px);
            background: #ff9f2f
        }

        .btn-primary:active {
            transform: translateY(0)
        }

    .btn-outline {
        background: transparent;
        color: var(--ms-white);
        border: 2px solid var(--ms-blue)
    }

        .btn-outline:hover {
            background: rgba(1,149,211,.15)
        }

.homebutton {
    min-width: 150px;
    text-align: center;
}

@media (max-width:768px) {
    .homebutton {
        max-width: 100px;
        display: block !important;
        margin-bottom: 5px;
        
    }
}

    /* Cards Section */
    .section {
        background: #f7f7f7;
        color: #111
    }

        .section .wrap {
            padding: 40px 0
        }

    .cards {
        display: grid;
        gap: 24px;
        grid-template-columns: repeat(12,1fr)
    }

    .card {
        grid-column: span 3;
        background: var(--ms-white);
        border-radius: var(--ms-radius);
        box-shadow: var(--ms-shadow);
        padding: 22px;
        border-top: 6px solid var(--ms-blue)
    }

.card-blue {
    border-top-color: var(--ms-blue);
}

.card-orange {
    border-top-color: var(--ms-orange);
}

.card-green {
    border-top-color: var(--ms-green);
}

.card-red {
    border-top-color: var(--ms-red);
}

        .card h3 {
            font-family: var(--font-headline);
            font-weight: 600;
            color: var(--ms-navy);
            margin: 0 0 8px
        }

.card p {
    font-family: var(--font-body);
    font-weight: 100;
    font-size: smaller;
    color: var(--ms-charcoal);
    margin: 0 0 16px
}

        .card span {
            pointer-events: auto;
            cursor: alias;
        }


        .card .link {
            font-family: var(--font-subheader);
            font-weight: 400;
            color: var(--ms-blue);
            text-decoration: none
        }

            .card .link:hover {
                text-decoration: underline
            }

    @media (max-width:1024px) {
        .card {
            grid-column: span 6
        }
    }

    @media (max-width:640px) {
        .card {
            grid-column: span 12
        }
    }

    /* Footer */
    .footer {
        background: var(--ms-navy);
        color: var(--ms-white);
        text-align: center;
    }

        .footer .wrap {
            padding: 2px 0
        }

        .footer .columns {
            display: grid;
            gap: 24px;
            grid-template-columns: repeat(4,1fr)
        }

        .footer h4 {
            font-family: var(--font-headline);
            font-weight: 600;
            margin: 0 0 12px
        }

        .footer ul {
            list-style: none;
            padding: 0;
            margin: 0
        }

        .footer li {
            margin: 6px 0
        }

        .footer a {
            color: var(--ms-gray);
            text-decoration: none
        }

            .footer a:hover {
                color: var(--ms-white)
            }

        .footer .brand {
            display: inline-flex; /* keeps layout tidy */
            align-items: center;
            padding: 0 !important; /* remove anchor padding */
            margin: 0; /* no margin around the logo */
            background: transparent !important;
            border-radius: 0; /* ensure no rounded background shows */
        }

            /* Increase the actual logo size */
            .footer .brand .logo {
                height: clamp(10px, 4.5vw, 18px); /* scale with viewport but cap nicely */
                width: auto; /* preserve aspect ratio */
                display: block;
                margin-left: auto;
                margin-right: auto;
            }


    /* Mobile: ensure larger logo still fits comfortably */
    @media (max-width: 768px) {
        .footer .brand .logo {
            height: clamp(10px, 6vw, 18px);
        }
    }

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

    /* Accessibility & Mobile nav helper */
    :focus-visible {
        outline: 3px solid var(--ms-blue);
        outline-offset: 2px;
        border-radius: 6px
    }

    @media (max-width:768px) {
        .navbar.open nav {
            display: flex !important;
            flex-direction: column;
            gap: 12px;
            padding: 12px 0
        }
    }

    /* Responsiveness: adjust band width as screens change */
    @media (max-width:1200px) {
        body {
            --bands-width: min(52vw, 680px);
        }
    }

    @media (max-width:992px) {
        body {
            --bands-width: min(58vw, 560px);
        }
    }

    @media (max-width:768px) {
        body {
            --bands-width: min(62vw, 480px);
        }

        .hero {
            min-height: 48vh
        }
    }

    @media (max-width:480px) {
        body {
            --bands-width: min(68vw, 420px);
        }

        .hero {
            min-height: 44vh
        }
    }

    @media (min-width:1600px) {
        body {
            --bands-width: min(42vw, 960px);
        }

        .hero {
            min-height: 60vh
        }
    }


    /* ---------------------------------------------
   Per-page controls for hero background/wash
   --------------------------------------------- */

    /* Default: hero shows an optional readability wash under text */
    .hero .content::before {
        content: "";
        position: absolute;
        inset: 0;
        left: 0;
        right: auto;
        width: 55%;
        background: linear-gradient(90deg, rgba(2,26,50,0.55), rgba(2,26,50,0.00));
        z-index: 0;
        pointer-events: none;
    }

    /* TURN OFF the wash and any hero-specific overlay on select pages */
    body.hero-transparent .hero .content::before {
        display: none !important; /* transparent behind the headline area */
    }

    /* Optional: if your hero had a local background, nuke it when transparent is on */
    body.hero-transparent .hero {
        background: transparent; /* the page's base navy and global bands will show through */
    }

        /* Optional enhancement: improve readability when wash is off */
        body.hero-transparent .hero h1 {
            text-shadow: 0 2px 12px rgba(0,0,0,0.25);
        }



    /* =========================================================
   Per-page: keep content alignment, anchor footer to bottom
   Enable with: <body class="page-grid">
   ========================================================= */

    body.page-grid {
        min-height: 100vh; /* fill the viewport */
        display: grid; /* three-row page grid */
        grid-template-rows: auto 1fr auto;
    }

        /* Ensure the layout rows map correctly */
        body.page-grid .navbar {
            grid-row: 1;
        }

        body.page-grid .page-shell {
            grid-row: 2;
        }
        /* wrapper for your main+container */
        body.page-grid .footer {
            grid-row: 3;
        }

        /* Your existing containers keep their alignment; we do not center anything. */
        body.page-grid .page-shell {
            /* no flex or centering here, just a normal block */
        }

        /* If your layout doesn’t have a dedicated wrapper around main, you can target main directly */
        body.page-grid main {
            grid-row: 2;
        }

        /* Optional: when the page is short, add a little breathing room above footer */
        body.page-grid main {
            padding-bottom: clamp(24px, 3vw, 48px);
        }

    /* iOS safe area protection (optional) */
    @supports (padding: max(0px)) {
        body.page-grid main {
            padding-bottom: max(clamp(24px, 3vw, 48px), env(safe-area-inset-bottom));
        }
    }


    /* ============================
   Login form – MarketSource UI
   ============================ */

    .ms-field {
        margin: 16px 0 12px;
    }

    .ms-label {
        display: inline-block;
        margin-bottom: 6px;
        font-family: var(--font-subheader);
        font-weight: 400;
        color: var(--ms-white);
        opacity: .9;
    }

    .ms-input {
        display: grid;
        grid-template-columns: 1fr auto; /* input + optional button */
        align-items: stretch;
        gap: 8px;
    }

    .ms-control {
        width: 100%;
        padding: 14px 16px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,.15);
        background: rgba(255,255,255,.08);
        color: var(--ms-white);
        font-family: var(--font-body);
        font-weight: 300;
        outline: none;
        transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    }

        .ms-control::placeholder {
            color: rgba(255,255,255,.65);
        }

        .ms-control:focus {
            border-color: var(--ms-blue);
            background: rgba(255,255,255,.12);
            box-shadow: 0 0 0 4px rgba(1,149,211,0.20);
        }

    /* Password input with toggle */
.ms-input--password .ms-toggle {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--ms-navy);
    background: var(--ms-navy);
    color: var(--ms-white);
    font-family: var(--font-subheader);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

        .ms-input--password .ms-toggle:hover {
            background: rgba(255,255,255,.12);
            border-color: var(--ms-blue);
        }

    /* Error text */
    .ms-error {
        display: block;
        margin-top: 6px;
        color: #ffb3b8; /* soft red for errors on dark bg */
        font-size: 0.95rem;
    }

    /* Remember me */
    .ms-check {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 10px 0 18px;
    }

    .ms-check__input {
        width: 18px;
        height: 18px;
    }

    .ms-check__label {
        color: var(--ms-white);
        opacity: .85;
    }

    /* Submit button alignment */
    .ms-actions {
        margin: 10px 0 22px;
    }

    .ms-submit {
        min-width: 180px;
    }

    /* Help links */
    .ms-links a {
        color: var(--ms-gray);
        text-decoration: none;
    }

        .ms-links a:hover {
            color: var(--ms-white);
            text-decoration: underline;
        }

    /* High-contrast focus (keyboard) */
    .ms-control:focus-visible, .ms-toggle:focus-visible {
        outline: 3px solid var(--ms-blue);
        outline-offset: 2px;
        border-radius: 10px;
    }


/* ============================
   Password input with eye icon
   ============================ */

/* Position a toggle button inside the input wrapper */
.ms-input--password {
    position: relative; /* establishes positioning context */
}

    /* Make room on the right side of the input for the eye button */
    .ms-input--password .ms-control {
        padding-right: 44px; /* room for icon button; adjust if needed */
    }

    /* Eye toggle button (icon-only) placed inside the input, right aligned */
    .ms-input--password .ms-toggle {
        position: absolute;
        top: 50%;
        right: 10px; /* distance from input’s right edge */
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 20px 20px;
        /* Subtle focus and hover feedback */
        box-shadow: inset 0 0 0 0 rgba(255,255,255,0);
        transition: box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
        opacity: .85;
    }

        .ms-input--password .ms-toggle:hover {
            opacity: 1;
        }

        .ms-input--password .ms-toggle:focus-visible {
            outline: 3px solid var(--ms-blue);
            outline-offset: 2px;
        }

    /* Dark theme polish: dim the button if the input is disabled */
    .ms-input--password .ms-control:disabled ~ .ms-toggle {
        opacity: .4;
        pointer-events: none;
    }

    /* Optional: high-contrast ring matching your brand when the input itself has focus */
    .ms-input--password .ms-control:focus {
        border-color: var(--ms-blue);
        background: rgba(255,255,255,.12);
        box-shadow: 0 0 0 4px rgba(1,149,211,0.20);
    }

.tableau-viz {
    padding-top: 0px;
    display: block;
    width: 100%;
}

#myViz {
    display: block;
    width: auto;
    height: auto;
    flex: 0 0 auto;
}

#myViz {
    flex-grow: 1;
    align-self: stretch;
}


/* Container for the title + search form */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap; /* allows stacking on small screens */
    gap: 16px;
}

    /* Title styling (optional, adjust as needed) */
    .dashboard-header h2 {
        margin: 0;
    }

/* Search form layout */
.dashboard-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
    padding-top: 5vh;
}

    /* Input styling */
    .dashboard-search-form input[type="text"] {
        max-width: 260px;
        background: white;
        color: #111;
        padding: 8px 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    /* Clear link styling */
    .dashboard-search-form .link {
        text-decoration: none;
        color: #0078d4;
        font-weight: 500;
    }

        .dashboard-search-form .link:hover {
            text-decoration: underline;
        }

    /* Button styling (optional override) */
    .dashboard-search-form button {
        padding: 8px 16px;
    }

/* ------------------------------ */
/* RESPONSIVE BREAKPOINTS         */
/* ------------------------------ */

/* Medium screens (tablets) */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-search-form {
        width: 100%;
    }

        .dashboard-search-form input[type="text"] {
            flex: 1;
            max-width: 100%;
        }
}

/* Small screens (phones) */
@media (max-width: 480px) {
    .dashboard-search-form {
        flex-direction: column;
        align-items: stretch;
       
    }

        .dashboard-search-form button,
        .dashboard-search-form .link {
            width: 100%;
            text-align: center;
        }
}

/* Inline Tableau tools in the main nav (minimal, non-invasive) */
.navbar .nav-tableau-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px; /* small spacing after "List" */
}

.navbar .nav-tool {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px; /* matches your nav link radius */
    background: transparent;
    color: #fff; /* consistent with nav link color */
    cursor: pointer;
    transition: background .15s ease;
}

    /* Use the same hover wash your links use (soft orange tint over navy) */
    .navbar .nav-tool:hover {
        background: rgba(247,151,29,.18);
    }

    .navbar .nav-tool:focus-visible {
        outline: 3px solid var(--ms-blue, #0195D3);
        outline-offset: 2px;
    }

    .navbar .nav-tool i {
        font-size: 16px;
        line-height: 1;
    }

.navbar .nav-tool-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.22);
    display: inline-block;
    margin: 0 2px;
}

/* Mobile: let tools wrap neatly under the links when burger opens */
@media (max-width: 768px) {
    .navbar.open #primaryNav .nav-tableau-tools {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-left: 0;
        padding-top: 6px;
    }
}




