/*
 * DSE Helpdesk application shell and public home.
 * Loaded after the legacy client styles so the customer experience has one
 * calm header, one navigation row, and one clear service-operations landing.
 */

body.dse-client-portal {
    --dse-helpdesk-navy: #0b1628;
    --dse-helpdesk-navy-soft: #13243d;
    --dse-helpdesk-blue: #2563eb;
    --dse-helpdesk-blue-dark: #1d4ed8;
    --dse-helpdesk-cyan: #38bdf8;
    --dse-helpdesk-ink: #0f172a;
    --dse-helpdesk-text: #334155;
    --dse-helpdesk-muted: #64748b;
    --dse-helpdesk-border: #dbe4ef;
    --dse-helpdesk-surface: #ffffff;
    --dse-helpdesk-canvas: #f4f7fb;
}

body.dse-client-portal .dse-skip-link {
    position: fixed;
    z-index: 100000;
    top: 12px;
    left: 12px;
    max-width: calc(100vw - 24px);
    padding: 11px 16px;
    border: 2px solid #f4d000;
    border-radius: 10px;
    background: #ffffff;
    color: #0b1628;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(2, 8, 23, .28);
    transform: translateY(calc(-100% - 24px));
    transition: transform .14s ease;
}

body.dse-client-portal .dse-skip-link:focus,
body.dse-client-portal .dse-skip-link:focus-visible {
    color: #0b1628;
    outline: 3px solid rgba(37, 99, 235, .42);
    outline-offset: 3px;
    transform: translateY(0);
}

body.dse-client-portal #content:focus {
    outline: none;
}

body.dse-client-portal .dse-helpdesk-top {
    width: 100% !important;
    max-width: none !important;
    border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
    background: var(--dse-helpdesk-navy) !important;
}

body.dse-client-portal .dse-helpdesk-shell {
    width: min(calc(100% - clamp(16px, 3vw, 32px)), 1180px) !important;
    max-width: 1180px !important;
    margin-inline: auto !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

body.dse-client-portal #header.dse-helpdesk-header {
    min-height: 58px !important;
}

body.dse-client-portal #header.dse-helpdesk-header #logo {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    border-color: rgba(255, 255, 255, .16) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
}

body.dse-client-portal #header.dse-helpdesk-header #logo img {
    width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
}

body.dse-client-portal .dse-helpdesk-brand {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 13px !important;
}

body.dse-client-portal .dse-helpdesk-brand-text strong {
    color: #ffffff !important;
    font-size: 21px !important;
}

body.dse-client-portal .dse-helpdesk-brand-text span {
    color: #b9c8db !important;
    font-size: 12.5px !important;
}

body.dse-client-portal .dse-helpdesk-account {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

body.dse-client-portal .dse-helpdesk-account-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

body.dse-client-portal .dse-helpdesk-account .dse-helpdesk-customer-name {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 7px 11px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 750;
}

body.dse-client-portal .dse-helpdesk-account a {
    min-height: 44px !important;
    margin: 0 !important;
    padding: 8px 11px !important;
    border-color: rgba(255, 255, 255, .18) !important;
    background: rgba(255, 255, 255, .07) !important;
    color: #e5eef9 !important;
    font-size: 12px !important;
}

body.dse-client-portal .dse-helpdesk-account a:hover,
body.dse-client-portal .dse-helpdesk-account a:focus-visible {
    border-color: rgba(147, 197, 253, .62) !important;
    background: rgba(37, 99, 235, .24) !important;
    color: #ffffff !important;
}

body.dse-client-portal .dse-helpdesk-account a.dse-helpdesk-product-switch {
    border-color: rgba(56, 189, 248, .42) !important;
    background: rgba(56, 189, 248, .08) !important;
    color: #d8f4ff !important;
}

body.dse-client-portal .dse-helpdesk-account a.dse-helpdesk-signin {
    border-color: var(--dse-helpdesk-blue) !important;
    background: var(--dse-helpdesk-blue) !important;
    color: #ffffff !important;
}

body.dse-client-portal .dse-helpdesk-account a.dse-helpdesk-signin:hover,
body.dse-client-portal .dse-helpdesk-account a.dse-helpdesk-signin:focus-visible {
    border-color: #60a5fa !important;
    background: var(--dse-helpdesk-blue-dark) !important;
}

body.dse-client-portal .dse-helpdesk-flags {
    flex: 0 0 auto;
}

body.dse-client-portal .dse-helpdesk-nav-wrap {
    width: min(calc(100% - clamp(16px, 3vw, 32px)), 1180px) !important;
    max-width: 1180px !important;
    margin-inline: auto !important;
    margin-top: 10px !important;
}

body.dse-client-portal ul#nav.dse-helpdesk-nav {
    justify-content: flex-start !important;
    gap: 5px !important;
    padding: 5px !important;
    border-color: var(--dse-helpdesk-border) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 7px 22px rgba(15, 23, 42, .07) !important;
}

body.dse-client-portal ul#nav.dse-helpdesk-nav > li {
    flex: 0 1 auto !important;
    max-width: none !important;
}

body.dse-client-portal ul#nav.dse-helpdesk-nav > li > a {
    min-height: 44px !important;
    padding: 9px 13px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

body.dse-client-portal ul#nav.dse-helpdesk-nav > li > a:focus-visible {
    outline: 3px solid #60a5fa !important;
    outline-offset: 2px !important;
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: var(--dse-helpdesk-blue-dark) !important;
}

body.dse-client-portal .dse-client-command-bar {
    display: none !important;
}

body.dse-client-portal .dse-helpdesk-nav-toggle {
    display: none;
}

body.dse-client-portal #footer {
    width: min(calc(100% - clamp(16px, 3vw, 32px)), 1180px) !important;
    max-width: 1180px !important;
    margin-inline: auto !important;
}

/* Public Helpdesk home -------------------------------------------------- */

body.dse-client-portal #content:has(.dse-helpdesk-home) {
    padding-top: 22px !important;
    padding-bottom: 0 !important;
}

.dse-helpdesk-home,
.dse-helpdesk-home * {
    box-sizing: border-box;
}

body.dse-client-portal #content > main#landing_page.dse-helpdesk-home {
    width: min(calc(100% - clamp(16px, 3vw, 32px)), 1180px) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 0 64px;
    color: var(--dse-helpdesk-ink);
}

.dse-helpdesk-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 34px;
    align-items: stretch;
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid #22324a;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 8%, rgba(56, 189, 248, .18), transparent 32%),
        radial-gradient(circle at 0 100%, rgba(37, 99, 235, .20), transparent 36%),
        linear-gradient(135deg, var(--dse-helpdesk-navy), var(--dse-helpdesk-navy-soft));
    box-shadow: 0 24px 64px rgba(15, 23, 42, .20);
}

.dse-helpdesk-home-copy {
    align-self: center;
    min-width: 0;
}

.dse-helpdesk-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dse-helpdesk-home-eyebrow::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, .14);
    content: "";
}

.dse-helpdesk-home h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.dse-helpdesk-home-lead {
    max-width: 730px;
    margin: 19px 0 0;
    color: #d2deec;
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.65;
}

.dse-helpdesk-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 27px;
}

.dse-helpdesk-home-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none !important;
}

body.dse-client-portal #content a.dse-helpdesk-home-button,
body.dse-client-portal #content a.dse-helpdesk-home-button:visited {
    color: #ffffff !important;
}

.dse-helpdesk-home-button.primary {
    border-color: var(--dse-helpdesk-blue);
    background: var(--dse-helpdesk-blue);
    box-shadow: 0 12px 30px rgba(37, 99, 235, .34);
}

.dse-helpdesk-home-button:hover,
.dse-helpdesk-home-button:focus-visible {
    border-color: #93c5fd;
    background: rgba(37, 99, 235, .28);
}

.dse-helpdesk-home-button.primary:hover,
.dse-helpdesk-home-button.primary:focus-visible {
    background: var(--dse-helpdesk-blue-dark);
}

.dse-helpdesk-home-assurance {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(147, 197, 253, .20);
    border-radius: 18px;
    background: rgba(2, 8, 23, .28);
}

.dse-helpdesk-home-assurance > span {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
}

.dse-helpdesk-home-assurance b {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(37, 99, 235, .24);
    color: #93c5fd;
    font-size: 11px;
    letter-spacing: .04em;
}

.dse-helpdesk-home-assurance strong,
.dse-helpdesk-home-assurance small {
    display: block;
}

.dse-helpdesk-home-assurance strong {
    color: #ffffff;
    font-size: 13px;
}

.dse-helpdesk-home-assurance small {
    margin-top: 2px;
    color: #aebed2;
    font-size: 11px;
    line-height: 1.4;
}

.dse-helpdesk-home-section {
    margin-top: 38px;
}

.dse-helpdesk-home-section-head {
    max-width: 760px;
    margin-bottom: 18px;
}

.dse-helpdesk-home-section-head span {
    color: var(--dse-helpdesk-blue-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dse-helpdesk-home-section-head h2 {
    margin: 6px 0 0;
    color: var(--dse-helpdesk-ink);
    font-size: clamp(27px, 3vw, 36px);
    letter-spacing: -.025em;
    line-height: 1.14;
}

body.dse-client-portal #content .dse-helpdesk-home-section-head h2,
body.dse-client-portal #content .dse-helpdesk-workstream h3 {
    color: var(--dse-helpdesk-ink) !important;
}

.dse-helpdesk-home-section-head p {
    margin: 9px 0 0;
    color: #566980;
    font-size: 15px;
    line-height: 1.6;
}

.dse-helpdesk-workstreams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dse-helpdesk-workstream {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--dse-helpdesk-border);
    border-radius: 17px;
    background: var(--dse-helpdesk-surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

.dse-helpdesk-workstream-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--dse-helpdesk-blue-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
}

.dse-helpdesk-workstream h3 {
    margin: 1px 0 0;
    color: var(--dse-helpdesk-ink);
    font-size: 19px;
    line-height: 1.25;
}

.dse-helpdesk-workstream p {
    margin: 7px 0 0;
    color: var(--dse-helpdesk-muted);
    font-size: 13.5px;
    line-height: 1.58;
}

.dse-helpdesk-home-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 32px;
    padding: 21px 23px;
    border: 1px solid var(--dse-helpdesk-border);
    border-radius: 17px;
    background: #ffffff;
}

.dse-helpdesk-home-foot-copy strong,
.dse-helpdesk-home-foot-copy span {
    display: block;
}

.dse-helpdesk-home-foot-copy strong {
    color: var(--dse-helpdesk-ink);
    font-size: 15px;
}

.dse-helpdesk-home-foot-copy span {
    margin-top: 4px;
    color: var(--dse-helpdesk-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.dse-helpdesk-home-links {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.dse-helpdesk-home-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--dse-helpdesk-border);
    border-radius: 9px;
    background: #f8fafc;
    color: var(--dse-helpdesk-blue-dark) !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.dse-helpdesk-home-links a:hover,
.dse-helpdesk-home-links a:focus-visible {
    border-color: #93c5fd;
    background: #eff6ff;
}

@media (max-width: 900px) {
    .dse-helpdesk-home-hero {
        grid-template-columns: 1fr;
    }

    .dse-helpdesk-home-assurance {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dse-helpdesk-home-assurance > span {
        grid-template-columns: 1fr;
        align-content: start;
    }
}

@media (max-width: 720px) {
    body.dse-client-portal #header.dse-helpdesk-header {
        grid-template-columns: 1fr !important;
    }

    body.dse-client-portal .dse-helpdesk-account,
    body.dse-client-portal .dse-helpdesk-account-links {
        justify-content: flex-start !important;
    }

    body.dse-client-portal .dse-helpdesk-account .dse-helpdesk-customer-name {
        width: 100%;
        padding-left: 0;
    }

    body.dse-client-portal .dse-helpdesk-nav-wrap.is-enhanced {
        display: grid !important;
        gap: 8px !important;
    }

    body.dse-client-portal .dse-helpdesk-nav-wrap.is-enhanced .dse-helpdesk-nav-toggle {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 13px;
        border: 1px solid var(--dse-helpdesk-border) !important;
        border-radius: 12px;
        background: #ffffff !important;
        color: var(--dse-helpdesk-ink) !important;
        box-shadow: 0 7px 22px rgba(15, 23, 42, .07) !important;
        cursor: pointer;
        text-align: left;
    }

    body.dse-client-portal .dse-helpdesk-nav-toggle-copy {
        display: grid;
        gap: 1px;
        min-width: 0;
    }

    body.dse-client-portal .dse-helpdesk-nav-toggle-copy strong {
        color: var(--dse-helpdesk-ink);
        font-size: 13px;
        line-height: 1.25;
    }

    body.dse-client-portal .dse-helpdesk-nav-toggle-copy small {
        color: var(--dse-helpdesk-muted);
        font-size: 11px;
        line-height: 1.25;
    }

    body.dse-client-portal .dse-helpdesk-nav-toggle-icon {
        position: relative;
        width: 20px;
        height: 14px;
        flex: 0 0 20px;
        border-top: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        color: var(--dse-helpdesk-blue);
    }

    body.dse-client-portal .dse-helpdesk-nav-toggle-icon::after {
        content: "";
        position: absolute;
        inset: 4px 0 auto;
        border-top: 2px solid currentColor;
    }

    body.dse-client-portal .dse-helpdesk-nav-wrap.is-enhanced ul#nav.dse-helpdesk-nav:not(.is-open) {
        display: none !important;
    }

    body.dse-client-portal .dse-helpdesk-nav-wrap.is-enhanced ul#nav.dse-helpdesk-nav.is-open {
        display: grid !important;
    }

    body.dse-client-portal ul#nav.dse-helpdesk-nav > li {
        flex: 1 1 calc(50% - 5px) !important;
    }

    body.dse-client-portal ul#nav.dse-helpdesk-nav > li > a {
        width: 100% !important;
    }

    .dse-helpdesk-home {
        padding-bottom: 44px;
    }

    .dse-helpdesk-home-hero {
        border-radius: 18px;
    }

    .dse-helpdesk-home-assurance,
    .dse-helpdesk-workstreams {
        grid-template-columns: 1fr;
    }

    .dse-helpdesk-home-assurance > span {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .dse-helpdesk-home-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .dse-helpdesk-home-links a {
        flex: 1 1 140px;
        justify-content: center;
    }
}

@media (max-width: 460px) {
    body.dse-client-portal ul#nav.dse-helpdesk-nav > li {
        flex-basis: 100% !important;
    }

    .dse-helpdesk-home-actions,
    .dse-helpdesk-home-button {
        width: 100%;
    }

    .dse-helpdesk-workstream {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dse-helpdesk-home-button,
    .dse-helpdesk-home-links a {
        transition: none !important;
    }
}
