/* =========================================================
   DEBT CONSOLIDATION LOANS
   GLOBAL TOP BAR + HEADER
   FINAL / LOCKED VERSION
   ========================================================= */

:root {
    --dc-blue: #155EEF;
    --dc-green: #12B76A;
    --dc-text: #101828;
    --dc-muted: #667085;
    --dc-border: #E4E7EC;
    --dc-white: #FFFFFF;
    --dc-max-width: 1200px;
}


/* =========================================================
   GLOBAL BOX SIZING — HEADER ONLY
   ========================================================= */

.dc-topbar,
.dc-topbar *,
.dc-header,
.dc-header * {
    box-sizing: border-box;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.dc-topbar {
    width: 100%;
    height: 34px;

    background: #FFFFFF;

    border-top: 2px solid var(--dc-blue);
    border-bottom: 1px solid var(--dc-border);

    display: flex;
    align-items: center;

    position: relative;
    z-index: 1001;
}

.dc-topbar-inner {
    width: min(calc(100% - 40px),
            var(--dc-max-width));

    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 28px;
}

.dc-topbar a {
    display: inline-flex;
    align-items: center;

    height: 100%;

    color: var(--dc-blue);
    text-decoration: none;

    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        color .2s ease,
        opacity .2s ease;
}

.dc-topbar a:hover {
    color: #1248C7;
    opacity: .9;
}

.dc-top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-right: 5px;

    font-size: 12px;
    line-height: 1;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

.dc-header {
    width: 100%;

    height: 74px;

    background: var(--dc-white);

    border-bottom: 1px solid var(--dc-border);

    position: sticky;
    top: 0;

    z-index: 1000;
}

.dc-header-inner {
    width: min(calc(100% - 40px),
            var(--dc-max-width));

    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 34px;
}


/* =========================================================
   LOGO
   ========================================================= */

.dc-logo {
    display: flex;
    align-items: center;

    min-width: 220px;

    flex-shrink: 0;

    color: var(--dc-text);
    text-decoration: none;
}

.dc-logo:hover {
    color: var(--dc-text);
    text-decoration: none;
}


/* Logo Mark */

.dc-logo-mark {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border-radius: 10px;

    background:
        linear-gradient(135deg,
            var(--dc-blue),
            var(--dc-green));

    color: #FFFFFF;

    display: grid;
    place-items: center;

    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;

    line-height: 1;

    overflow: hidden;
}


/* Logo Text */

.dc-logo-text {
    margin-left: 9px;

    min-width: 0;

    font-family: Inter, Arial, sans-serif;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -.7px;

    color: var(--dc-text);
}


/* Brand name */

.dc-logo-name {
    display: block;

    white-space: nowrap;
}

.dc-logo-name span {
    color: var(--dc-blue);
}


/* Tagline */

.dc-logo-text small {
    display: block;

    margin-top: 3px;

    font-family: Inter, Arial, sans-serif;

    font-size: 7px;
    font-weight: 600;

    line-height: 1;

    color: var(--dc-muted);

    letter-spacing: 1px;

    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.dc-nav {
    display: flex;
    align-items: center;

    gap: 25px;

    flex: 1;

    min-width: 0;
}

.dc-nav a {
    display: inline-flex;
    align-items: center;

    height: 74px;

    position: relative;

    color: var(--dc-text);
    text-decoration: none;

    font-family: Inter, Arial, sans-serif;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color .2s ease;
}

.dc-nav a:hover {
    color: var(--dc-blue);
}

.dc-nav a.active {
    color: var(--dc-blue);
}

.dc-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: var(--dc-blue);

    border-radius: 2px 2px 0 0;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.dc-actions {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-left: auto;

    flex-shrink: 0;
}


/* Check Options */

.dc-header-check-button {
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 13px;

    border: 1px solid var(--dc-blue);
    border-radius: 7px;

    background: #FFFFFF;

    color: var(--dc-blue);

    text-decoration: none;

    font-family: Inter, Arial, sans-serif;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.dc-header-check-button:hover {
    background: var(--dc-blue);
    color: #FFFFFF;

    box-shadow:
        0 4px 12px rgba(21, 94, 239, .16);
}


/* App Button */

.dc-header-app-button {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--dc-blue);
    border-radius: 7px;

    background: #FFFFFF;

    color: var(--dc-blue);

    text-decoration: none;

    font-family: Arial, sans-serif;

    font-size: 15px;
    font-weight: 700;

    line-height: 1;

    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.dc-header-app-button:hover {
    background: var(--dc-blue);
    color: #FFFFFF;

    box-shadow:
        0 4px 12px rgba(21, 94, 239, .16);
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.dc-hamburger {
    display: none;

    width: 38px;
    height: 38px;

    padding: 6px;

    border: 0;
    outline: 0;

    background: transparent;

    cursor: pointer;

    flex: 0 0 38px;
}

.dc-hamburger span,
.dc-hamburger i {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: var(--dc-text);

    border-radius: 2px;

    transition:
        transform .2s ease,
        opacity .2s ease;
}


/* =========================================================
   MOBILE NAV OVERLAY
   ========================================================= */

.dc-mobile-nav-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(16, 24, 40, .35);

    z-index: 998;
}

.dc-mobile-nav-overlay.is-open {
    display: block;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .dc-header-inner {
        gap: 22px;
    }

    .dc-logo {
        min-width: 200px;
    }

    .dc-nav {
        gap: 18px;
    }

    .dc-nav a {
        font-size: 12px;
    }

}


/* =========================================================
   MOBILE HEADER
   ========================================================= */

@media (max-width: 900px) {

    .dc-header {
        height: 68px;
    }

    .dc-header-inner {
        width: calc(100% - 24px);

        gap: 10px;
    }

    .dc-hamburger {
        display: block;
    }

    .dc-logo {
        min-width: 0;

        flex: 1;
    }

    .dc-nav {
        display: none;

        position: fixed;

        top: 102px;
        left: 12px;
        right: 12px;

        width: auto;

        padding: 14px;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: #FFFFFF;

        border: 1px solid var(--dc-border);
        border-radius: 10px;

        box-shadow:
            0 16px 40px rgba(16, 24, 40, .14);

        z-index: 999;
    }

    .dc-nav.is-open {
        display: flex;
    }

    .dc-nav a {
        height: auto;

        min-height: 44px;

        padding: 11px 12px;

        border-bottom: 1px solid #F2F4F7;

        font-size: 13px;
    }

    .dc-nav a:last-child {
        border-bottom: 0;
    }

    .dc-nav a.active::after {
        display: none;
    }

    .dc-actions {
        margin-left: auto;
    }

    .dc-header-check-button {
        height: 36px;

        padding: 0 11px;

        font-size: 10px;
    }

    .dc-header-app-button {
        width: 36px;
        height: 36px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .dc-topbar {
        height: 32px;
    }

    .dc-topbar-inner {
        width: calc(100% - 24px);

        gap: 14px;
    }

    .dc-topbar a {
        font-size: 9px;
    }

    .dc-top-icon {
        font-size: 10px;
        margin-right: 3px;
    }

    .dc-header {
        height: 64px;
    }

    .dc-header-inner {
        width: calc(100% - 24px);
    }

    .dc-logo-mark {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        border-radius: 9px;

        font-size: 17px;
    }

    .dc-logo-text {
        margin-left: 7px;

        font-size: 15px;

        letter-spacing: -.5px;
    }

    .dc-logo-text small {
        margin-top: 3px;

        font-size: 6px;

        letter-spacing: .8px;
    }

    .dc-header-check-button {
        display: none;
    }

    .dc-header-app-button {
        width: 34px;
        height: 34px;

        font-size: 13px;
    }

    .dc-nav {
        top: 96px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .dc-topbar-inner {
        justify-content: space-between;
    }

    .dc-topbar a {
        font-size: 8.5px;
    }

    .dc-logo-text {
        font-size: 14px;
    }

    .dc-logo-text small {
        font-size: 5.5px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.dc-header a:focus-visible,
.dc-topbar a:focus-visible,
.dc-hamburger:focus-visible {
    outline: 2px solid var(--dc-blue);
    outline-offset: 3px;
}


/* =========================================================
   SAFETY:
   PREVENT OLD GENERIC HEADER STYLES FROM AFFECTING THIS
   ========================================================= */

.dc-topbar a,
.dc-header a {
    text-decoration: none;
}

.dc-topbar button,
.dc-header button {
    font-family: inherit;
}