/* normalized */

body
{
    background: #ffffff;
    color: #0f172a;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

:root
{
    --nvx-header-row-height: 112px;
    --nvx-header-slice-height: 30px;
    --nvx-header-total-height: var(--nvx-header-row-height);
    --nvx-nav-top-height: 112px;
    --nvx-nav-gray-height: 40px;
    --nvx-nav-total-height: calc(var(--nvx-nav-top-height) + var(--nvx-nav-gray-height) - var(--nvx-nav-overlap));
    --nvx-nav-overlap: 30px;
    --nvx-nav-content-gap: 12px;
    --drawer-width: 280px;
    --drawer-max-h: 72vh;
    --nvx-navy: #003366;
    --nvx-navy-dark: #00234d;
    --nvx-accent: #0b5aa7;
    --nvx-footer-bg: #0b3d66;
    --nvx-footer-border: rgba(255,255,255,0.55);
    --nvx-backtotop-bg: #36454F;
    --nvx-backtotop-fg: #fff;
    --nvx-footer-link: #ffffff;
    --nvx-footer-muted: rgba(255,255,255,0.85);
}

html, body, body.has-fixed-nav
{
    margin: 0;
    padding-top: 0 !important;
}

html, body
{
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    overflow-y: auto !important;
    height: auto !important;
}

html
{
    scroll-behavior: smooth;
}

header.header
{
    background: #ffffff !important;
    color: white;
    border-bottom: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    overflow: visible !important;
    width: 100%;
    background-color: #003366;
    padding: 20px 0 0;
    box-sizing: border-box;
    margin-bottom: 0;
}

.header-container
{
    width: 100%;
    max-width: none;
    padding: 0 !important;
    height: var(--nvx-nav-top-height) !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: visible !important;
    justify-content: space-between;
}

.left-title
{
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: var(--nvx-nav-top-height) !important;
    justify-content: flex-start;
    margin-right: auto;
}

.logo-stack
{
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
}

.header-hamburger
{
    background: transparent;
    border: none;
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 4px;
    flex-shrink: 0;
    position: relative !important;
    z-index: 10020 !important;
}

.header-hamburger .bar
{
    display: block !important;
    width: 22px !important;
    height: 3px !important;
    margin: 0 !important;
    border-radius: 2px;
    opacity: 1 !important;
    background: #1d4ed8 !important;
}

.logo-link-brand
{
    display: inline-flex;
    align-items: center;
    line-height: 0;
    min-width: 0;
    position: relative;
    z-index: 10;
}

.logo-link-brand, .logo-link-brand img
{
    align-self: center;
    transform: translateY(0);
}

.header-logo-wordmark
{
    display: block;
    width: auto !important;
    height: auto !important;
    max-height: 100px;
    max-width: min(46vw, 420px);
    object-fit: contain;
    aspect-ratio: auto;
    flex: 0 1 auto;
}

.logo-link-brand img.header-logo-wordmark
{
    width: auto !important;
    height: auto !important;
    max-height: 100px;
    max-width: min(46vw, 420px);
    object-fit: contain;
}

.nvx-login-btn
{
    margin-left: auto;
    background: linear-gradient(180deg, #2f6fed 0%, #2154c4 100%);
    color: #ffffff !important;
    border: 1px solid rgba(32, 76, 180, 0.95);
    border-radius: 16px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 18px rgba(33, 84, 196, 0.18);
}



.nvx-login-btn:hover
{
    background: linear-gradient(180deg, #255fd2 0%, #1e4eb5 100%);
    filter: brightness(0.95);
}

.logo-stack, .header-hamburger
{
    position: relative !important;
    z-index: 10020 !important;
    pointer-events: auto !important;
}

.dx-nav-footer #headerLinkSep
{
    display: none !important;
}

#clinicalResearchLink,
#patientDashboardLink
{
    display: none !important;
}

.header
{
    width: 100%;
    height: 110px;
    background-color: #003366;
    color: white;
    padding: 20px 0 0;
    box-sizing: border-box;
    margin-bottom: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.logo-link
{
    display: inline-block;
    border: none;
}

.logo-link img
{
    display: block;
}

.left-title .header-logo
{
    height: 40px;
    margin-right: 10px;
}

.header-logo
{
    height: 40px;
    margin-right: 10px;
}

.header, .header-container
{
    overflow: visible !important;
}

header.header > *:not(.toolbar):last-child
{
    margin-bottom: 0;
    padding-bottom: 0;
}

.brand-block
{
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: flex-start;
    min-width: 0 !important;
    margin-left: 10px;
    line-height: 1.2;
}

.brand-meta
{
    display: flex;
    flex-direction: column !important;
    align-items: baseline;
    justify-content: center !important;
    gap: 6px;
    min-width: 0 !important;
    line-height: 1.15 !important;
    margin-top: 2px;
}

.brand-email
{
    display: block !important;
    color: #0f172a !important;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 240px !important;
    margin-top: 0;
    margin-left: 0;
    text-align: left;
}

@media (max-width: 900px)
{
    .brand-block
    {
        display: none !important;
    }
}

.login-status
{
    display: block !important;
    color: #475569 !important;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap !important;
}

.dx-nav-footer
{
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 34%, #e4e9ef 100%) !important;
    border-top: 1px solid rgba(255,255,255,0.85);
    padding: 0 16px !important;
    position: relative;
    z-index: 4;
    height: var(--nvx-nav-gray-height) !important;
    min-height: var(--nvx-nav-gray-height) !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-top: calc(-1 * var(--nvx-nav-overlap)) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    transform: none !important;
    box-sizing: border-box;
    margin-bottom: 0 !important;
    font-size: 16px;
    font-weight: 500;
}

.dx-nav-footer a
{
    text-decoration: underline;
    color: white;
    font-weight: 600 !important;
    font-size: 0.98rem !important;
    line-height: 1.15 !important;
    pointer-events: auto !important;
    user-select: auto !important;
    margin: 0 6px;
}

.dx-nav-footer a:hover
{
    text-decoration: underline;
    color: #A0A0FF;
}

.dx-nav-footer a, .dx-nav-footer span
{
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-decoration: none !important;
    pointer-events: none;
    user-select: none;
}

.dx-nav-footer span
{
    color: white;
    font-size: 0.98rem !important;
    line-height: 1.15 !important;
    margin: 0 4px;
}


.dx-nav-footer #admin-nav-link,
.dx-nav-footer #subscribe-nav-link,
.dx-nav-footer #physiciansDashboardLink,
.dx-nav-footer #clinicalResearchLink,
.dx-nav-footer #doctor-nav-link,
#patientDashboardLink
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dx-nav-footer #physiciansDashboardLink,
.dx-nav-footer #admin-nav-link,
.dx-nav-footer #subscribe-nav-link,
.dx-nav-footer #clinicalResearchLink,
.dx-nav-footer #doctor-nav-link,
#patientDashboardLink
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: auto;
    max-width: calc(100vw - 40px);
    padding: 5px 10px;
    margin: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.06) 100%),
        linear-gradient(180deg, #1b4638 0%, #12362b 100%);
    color: #f8fafc !important;
    font-size: 0.88rem !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.24),
        0 8px 18px rgba(18, 54, 43, 0.16);
    border: 1px solid rgba(9, 46, 35, 0.92);
    transition: transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}

.dx-nav-footer #physiciansDashboardLink:hover,
.dx-nav-footer #admin-nav-link:hover,
.dx-nav-footer #subscribe-nav-link:hover,
.dx-nav-footer #clinicalResearchLink:hover,
.dx-nav-footer #doctor-nav-link:hover,
.dx-nav-footer #patientDashboardLink:hover
{
    background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.08) 100%),
        linear-gradient(180deg, #205343 0%, #163f32 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28),
        0 12px 24px rgba(18, 54, 43, 0.20);
    transform: translateY(-1px);
    border-color: rgba(12, 57, 43, 0.98);
}

.dx-nav-footer #physiciansDashboardLink:active,
.dx-nav-footer #admin-nav-link:active,
.dx-nav-footer #subscribe-nav-link:active,
.dx-nav-footer #clinicalResearchLink:active,
.dx-nav-footer #doctor-nav-link:active,
.dx-nav-footer #patientDashboardLink:active
{
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.20),
        0 6px 12px rgba(18, 54, 43, 0.14);
}

.dx-nav-footer #physiciansDashboardLink:focus-visible,
.dx-nav-footer #admin-nav-link:focus-visible,
.dx-nav-footer #subscribe-nav-link:focus-visible,
.dx-nav-footer #clinicalResearchLink:focus-visible,
.dx-nav-footer #patientDashboardLink:focus-visible
{
    outline: 3px solid rgba(22, 101, 52, 0.18);
    outline-offset: 3px;
}

body.has-fixed-nav
{
    padding-top: 88px;
    padding-bottom: 72px;
}

.nvx-hero
{
    padding: 42px 18px 18px 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
    padding-top: 140px !important;
}

#sideDrawer
{
    z-index: 3100;
    top: 0;
    margin-top: 0 !important;
}

#drawerBackdrop
{
    z-index: 3090;
}

#sideDrawer.drawer
{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    margin-top: 0 !important;
    width: 300px !important;
    max-width: 86vw !important;
    height: auto !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    transform: translateX(-110%) !important;
    transition: transform 0.28s ease !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.18) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 12px !important;
}

#drawerBackdrop.drawer-backdrop
{
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.28) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    z-index: 9998 !important;
}

.drawer-backdrop
{
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.28);
    backdrop-filter: saturate(120%) blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
}

.drawer
{
    position: fixed;
    top: 0;
    left: 0;
    height: auto;
    max-height: var(--drawer-max-h);
    margin-top: 56px;
    width: var(--drawer-width);
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 14px 38px rgba(2,6,23,.18);
    z-index: 1001;
    transform: translateX(-100%);
    opacity: 0.01;
    pointer-events: none;
    transition: transform .28s ease, opacity .28s ease;
}

.drawer-inner
{
    display: flex;
    flex-direction: column;
    max-height: var(--drawer-max-h);
}

.drawer-header
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 0 12px 0 0;
}

.drawer-title
{
    font-weight: 700;
    color: #0f172a;
}

.drawer-close
{
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.drawer-list
{
    list-style: none;
    margin: 0;
    padding: 6px;
    overflow: auto;
}

.drawer-link
{
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    color: #0f172a;
}

.drawer-link:hover
{
    background: #f1f5f9;
}

.drawer-link:focus
{
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

#footer-placeholder
{
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 80px;
    background: #ffffff !important;
    margin-top: auto;
    width: 100%;
    background-color: #003366;
    padding: 0;
    color: transparent;
}

td:last-child > div
{
    margin: 4px 0;
    line-height: 1.35;
}

[hidden]
{
    display: none !important;
}

#loginBtn
{
    background: linear-gradient(180deg, #0078d7 0%, #005bb5 100%);
    color: #ffffff;
    font-weight: 700;
    border: 1px solid #004a99;
    border-radius: 12px;
    padding: 10px 22px;
    box-shadow: 0 6px 0 #003f80, 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    height: 40px;
    min-width: 120px;
    box-sizing: border-box;
    text-align: center;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

#loginBtn:hover
{
    background: linear-gradient(180deg, #0090ff 0%, #006fd1 100%);
    transform: translateY(calc(-50% - 2px));
    box-shadow: 0 8px 0 #003f80, 0 8px 20px rgba(0, 0, 0, 0.25);
}

#loginBtn:active
{
    transform: translateY(calc(-50% + 2px));
    box-shadow: 0 3px 0 #003f80, 0 3px 8px rgba(0, 0, 0, 0.2);
}

#loginBtn:focus-visible
{
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

#nvx-top
{
    scroll-margin-top: 80px;
}

.subscription-block
{
    display: inline-block;
    margin: 0 auto;
    text-align: left;
}

.subscription-block .sub-row
{
    display: grid;
    grid-template-columns: 120px auto;
    column-gap: 10px;
    align-items: baseline;
    margin: 2px 0;
}

.subscription-block .sub-label
{
    text-align: right;
    font-weight: bold;
}

.subscription-content-wrap
{
    display: flex;
    justify-content: center;
    width: 100%;
    margin: calc(var(--nvx-nav-total-height) + var(--nvx-nav-content-gap)) 0 1.75rem 0;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.02);
}

.subscription-content
{
    width: 80%;
    max-width: 1280px;
    min-width: 320px;
    font-size: 1rem;
    line-height: 1.45;
    text-align: left;
    border: 2px solid rgba(0, 0, 0, 0.22);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
    box-sizing: border-box;
    scroll-behavior: smooth;
    overscroll-behavior: auto;
}

.subscription-content h2,
.subscription-content h3
{
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: 0.6rem;
    margin-bottom: 0.45rem;
}

.subscription-content h2
{
    margin-top: 0;
    font-size: 1.15rem;
}

.subscription-content h3
{
    font-size: 1.0rem;
}

.subscription-content p
{
    margin: 0.35rem 0 0.75rem 0;
}

.subscription-content ul
{
    list-style: none;
    margin: 0.25rem 0 0.85rem 1.2rem;
    padding: 0;
}

.subscription-content li
{
    margin: 0.2rem 0;
    position: relative;
    padding-left: 22px;
}

.subscription-content > ul > li::before
{
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-weight: 700;
}

.subscription-content ul ul
{
    list-style: disc;
    margin: 0.25rem 0 0.85rem 1.2rem;
    padding-left: 22px;
}

.subscription-content ul ul li
{
    padding-left: 0;
}

.subscription-content ul ul li::before
{
    content: none;
}

.subscription-content:focus
{
    outline: none;
}

.subscription-content:focus-visible
{
    outline: 3px solid rgba(0, 90, 180, 0.35);
    outline-offset: 3px;
}

.subscription-content .policy-meta
{
    margin: 0.15rem 0 0.9rem 0;
    font-size: 0.95rem;
}

.subscription-content h4
{
    margin: 0.55rem 0 0.35rem 0;
    font-size: 0.98rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}



@media (max-width: 768px)
{
    .subscription-content
    {
        width: 95%;
        max-width: 95%;
        min-width: 0;
        padding: 16px 14px;
    }
}

/* ===== DRAWER OPEN STATES (restored) ===== */
#sideDrawer.drawer.is-open
{
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#drawerBackdrop.drawer-backdrop.is-open
{
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.25s ease !important;
}

.drawer.is-open
{
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.drawer-backdrop.is-open
{
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
}



#footer-placeholder.ready
{
    color: inherit;
    min-height: 0;
    background-color: transparent;
}
