/* ==========================================================================
   Uniweld Distributor & Representative Portal — custom modern theme
   Built on Cassiopeia (upgrade-safe user.css override). Brand: navy + orange.
   ========================================================================== */

:root {
    --uw-orange: #f47920;
    --uw-orange-dark: #d9660f;
    --uw-blue: #1b4d9b;
    --uw-navy: #14305c;
    --uw-bg: #eef2f8;
    --uw-card: #ffffff;
    --uw-ink: #29384f;
    --uw-muted: #5d6b80;
    --uw-radius: 14px;
    --uw-radius-sm: 9px;
    --uw-shadow: 0 6px 24px rgba(20, 48, 92, .09);
    --uw-shadow-sm: 0 2px 10px rgba(20, 48, 92, .07);

    /* Override Cassiopeia link colours */
    --link-color: #1b4d9b;
    --link-hover-color: #f47920;
}

/* ---------- Base ---------- */
body.site {
    background: var(--uw-bg);
    color: var(--uw-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
}

.site .container-component {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

h1, h2, h3, h4 {
    color: var(--uw-navy);
    font-weight: 700;
    letter-spacing: -.01em;
}

a {
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--uw-orange); }

/* ---------- Header ---------- */
.container-header {
    background: #ffffff !important;
    background-image: none !important;
    border-top: 4px solid var(--uw-orange);
    box-shadow: var(--uw-shadow-sm);
    /* lay logo + nav out on ONE row: logo left, nav right */
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    padding: .3rem 1.75rem;
}
.container-header .grid-child { background: transparent !important; margin: 0; }   /* logo + nav grouped together on the left */
.brand-logo img, .container-header .logo img, header .logo img {
    max-height: 74px;
    width: auto;
    height: auto;
}

/* ---------- Navigation (dark-blue links on the white header) ---------- */
.container-nav, .container-nav .grid-child { background: transparent !important; }
.navbar, .container-nav .navbar { background: transparent !important; }
.container-nav .navbar-nav { align-items: center; }
.mod-menu .nav-link, .navbar-nav .nav-link, .container-nav a {
    color: var(--uw-navy) !important;
    font-weight: 700;
    letter-spacing: .01em;
    padding: .6rem 1rem !important;
    border-radius: 8px;
    position: relative;
}
.mod-menu .nav-link:hover, .navbar-nav .nav-link:hover, .container-nav a:hover {
    color: var(--uw-orange) !important;
    background: rgba(244, 121, 32, .10);
}
.mod-menu .current > .nav-link,
.mod-menu .active > .nav-link,
.navbar-nav .nav-item.current .nav-link {
    color: var(--uw-orange) !important;
    border-radius: 0;
    box-shadow: inset 0 -3px 0 var(--uw-orange);
}
.navbar-toggler { color: var(--uw-navy) !important; border-color: rgba(20, 48, 92, .3) !important; }

/* ---------- Main content card ---------- */
.container-component .com-content-article,
.container-component .item-page,
.container-component > .components-container > * {
    background: var(--uw-card);
    border-radius: var(--uw-radius);
    box-shadow: var(--uw-shadow);
    padding: 2rem 2.25rem;
}
.item-page h1, .com-content-article h1 {
    border-bottom: 3px solid var(--uw-orange);
    padding-bottom: .5rem;
    display: inline-block;
    margin-bottom: 1.25rem;
}

/* ---------- Modules / cards ---------- */
.moduletable, .module {
    background: var(--uw-card);
    border-radius: var(--uw-radius);
    box-shadow: var(--uw-shadow-sm);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.5rem;
}
.moduletable > h3, .module > h3, .moduletable-title, .module-title {
    color: var(--uw-navy);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid #eef2f8;
}

/* Bottom notice cards get coloured accents */
.container-bottom-a { gap: 1.5rem; }
.container-bottom-a .moduletable {
    border-left: 5px solid var(--uw-blue);
    height: 100%;
}
.container-bottom-a .moduletable:nth-child(1) { border-left-color: var(--uw-orange); }
.container-bottom-a .moduletable:nth-child(3) { border-left-color: #c0392b; }

/* ---------- Buttons & download links ---------- */
.btn-primary, .btn-secondary {
    background: var(--uw-orange);
    border-color: var(--uw-orange);
    border-radius: 8px;
    font-weight: 600;
    padding: .5rem 1.2rem;
    box-shadow: none;
    transition: background .15s ease;
}
.btn-primary:hover, .btn-secondary:hover {
    background: var(--uw-orange-dark);
    border-color: var(--uw-orange-dark);
}

/* ARS download list — one clean row per file (see template override item.php) */
.ars-items .uw-dlrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .85rem 1.1rem;
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: var(--uw-radius-sm);
    margin-bottom: .7rem;
    box-shadow: var(--uw-shadow-sm);
}
.uw-dlrow-main { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.uw-dlrow-icon { font-size: 1.5rem; color: var(--uw-orange); flex: 0 0 auto; }
.uw-dlrow-text { display: flex; flex-direction: column; min-width: 0; }
.uw-dlrow-title { font-weight: 700; color: var(--uw-navy); }
.uw-dlrow-meta { font-size: .85rem; color: var(--uw-muted); overflow: hidden; text-overflow: ellipsis; }
.uw-dlrow-meta code { color: var(--uw-muted); background: transparent; padding: 0; }
.uw-dlbtn { flex: 0 0 auto; white-space: nowrap; }
.uw-dlbtn .fa { margin-right: .4rem; }

/* ARS / generic tables */
.container-component table, table.table {
    background: #fff;
    border-radius: var(--uw-radius-sm);
    overflow: hidden;
    box-shadow: var(--uw-shadow-sm);
}
.container-component table thead th, table.table thead th {
    background: var(--uw-navy);
    color: #fff;
    border: 0;
}
.container-component table td { vertical-align: middle; }

/* ---------- Login form ---------- */
.mod-login input.form-control, .com-users-login input.form-control {
    border-radius: var(--uw-radius-sm);
    border: 1px solid #d3dceb;
    padding: .6rem .85rem;
}
/* The actual "Log in" submit button only */
.mod-login button[type="submit"], .com-users-login button[type="submit"] {
    background: var(--uw-orange);
    border-color: var(--uw-orange);
    border-radius: 8px;
    width: 100%;
    font-weight: 700;
    color: #fff;
}
.mod-login button[type="submit"]:hover,
.com-users-login button[type="submit"]:hover { background: var(--uw-orange-dark); }

/* Unify the username person-icon box and the password show/hide toggle so they
   line up (same size + look); toggle is no longer a big orange bar */
.mod-login .input-group-text, .com-users-login .input-group-text,
.mod-login .input-group .btn, .com-users-login .input-group .btn {
    width: 46px;
    min-width: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4fb;
    color: var(--uw-muted);
    border: 1px solid #d3dceb;
    border-radius: 0 var(--uw-radius-sm) var(--uw-radius-sm) 0;
    box-shadow: none;
    padding: 0;
}
.mod-login .input-group .btn:hover, .com-users-login .input-group .btn:hover {
    background: #e3eaf6;
    color: var(--uw-navy);
}

/* Home welcome card (guest) — paired with the login card on the right */
.uw-welcome {
    background: var(--uw-card);
    border: 1px solid #e3e9f4;
    border-top: 4px solid var(--uw-orange);
    border-radius: var(--uw-radius);
    box-shadow: var(--uw-shadow);
    padding: 1.7rem 1.9rem;
    margin-bottom: 1.5rem;
}
.uw-welcome h2 {
    margin: 0 0 .55rem;
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--uw-navy);
    border: 0;
}
.uw-welcome p { margin: 0; color: var(--uw-muted); font-size: 1.05rem; }
/* guest variant — vertically centred; user.js matches its height to the login card */
.uw-welcome-fill {
    min-height: 20rem; /* fallback before JS runs / if JS disabled */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.uw-welcome-fill p + p { margin-top: .8rem; }
.uw-welcome-hint {
    font-size: .92rem !important;
    margin-top: 1.1rem !important;
    padding-top: .85rem;
    border-top: 1px solid #eef1f7;
    color: var(--uw-navy) !important;
    font-weight: 600;
    opacity: .92;
}
/* welcome icon badge + "what's inside" list */
.uw-welcome-ico {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--uw-navy), var(--uw-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--uw-shadow-sm);
}
.uw-welcome-ico svg { width: 1.6rem; height: 1.6rem; fill: #fff; }
.uw-welcome-list {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
}
.uw-welcome-list li {
    position: relative;
    padding-left: 1.6rem;
    margin: .45rem 0;
    color: var(--uw-ink);
    font-size: 1rem;
}
.uw-welcome-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--uw-orange);
}

/* Sidebar login card — matched look + branded navy header */
.container-sidebar-right .sidebar-right.card {
    background: var(--uw-card);
    border: 1px solid #e3e9f4;
    border-radius: var(--uw-radius);
    box-shadow: var(--uw-shadow);
    overflow: hidden;
}
.container-sidebar-right .sidebar-right.card > .card-header {
    background: var(--uw-navy);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.01em;
    margin: 0;
    padding: .95rem 1.3rem;
    border: 0;
}
.container-sidebar-right .sidebar-right.card > .card-body {
    padding: 1.4rem 1.4rem 1.25rem;
}
.mod-login__options {
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid #eef1f7;
}
.mod-login__options li { margin: .15rem 0; }
.mod-login__options a { font-weight: 600; }

/* Align the login card top with the welcome card top: the component column has
   24px top padding but the sidebar column has none, so match it. */
.site .container-sidebar-right { padding-top: 1.5rem; }

/* Centre the three home notice-card titles (first line of each card). */
.container-bottom-a .mod-custom > p:first-child { text-align: center; }

/* Vertically centre each bottom card's content within its (equal-height) card. */
.container-bottom-a .card { display: flex; flex-direction: column; }
.container-bottom-a .card > .card-body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }

/* Passkey call-to-action (shown to logged-in distributors in the sidebar) */
.uw-passkey {
    background: linear-gradient(135deg, var(--uw-navy), var(--uw-blue));
    color: #fff;
    border-radius: var(--uw-radius);
    box-shadow: var(--uw-shadow);
    padding: 1.4rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.uw-passkey-ico {
    width: 2.7rem;
    height: 2.7rem;
    margin: 0 auto .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    border-radius: 11px;
}
.uw-passkey-ico svg { width: 1.5rem; height: 1.5rem; fill: #fff; }
.uw-passkey h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .35rem; }
.uw-passkey p { color: rgba(255, 255, 255, .85); font-size: .95rem; line-height: 1.45; margin: 0 0 1rem; }
.uw-passkey-btn {
    display: inline-block;
    background: var(--uw-orange);
    color: #fff;
    font-weight: 700;
    padding: .6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s ease;
}
.uw-passkey-btn:hover { background: var(--uw-orange-dark); color: #fff; }

/* Once a passkey is enrolled the CTA content is replaced by a hidden marker;
   hide the whole sidebar card so no empty white box is left behind. */
.uw-passkey-enrolled { display: none !important; }
.container-sidebar-right .sidebar-right.card:has(.uw-passkey-enrolled) { display: none !important; }

/* Hide the passwordless "Passkey Login" panel — the account uses the MFA passkey (required at login) instead */
.form-group.row:has(#plg_system_webauthn-management-interface) { display: none !important; }

/* Hide the passwordless "Sign in with a passkey" button on the login form */
.plg_system_webauthn_login_button { display: none !important; }

/* Big attention hand to the RIGHT of the MFA "Add a new Passkey" button, pointing at it */
.com-users-methods-list-method-name-webauthn .com-users-methods-list-method-addnew { position: relative; overflow: visible; }
@media (min-width: 992px) {
    .com-users-methods-list-method-name-webauthn .com-users-methods-list-method-addnew::after {
        content: "\01F448"; /* 👈 */
        position: absolute;
        left: calc(100% + 1.5rem);
        top: 50%;
        transform: translateY(-50%);
        font-size: 3rem;
        line-height: 1;
        pointer-events: none;
        white-space: nowrap;
        animation: uw-point .9s ease-in-out infinite;
    }
    @keyframes uw-point {
        0%, 100% { margin-left: 0; }
        50% { margin-left: -12px; }
    }
}
/* keep a clean seam between field and its append button */
.mod-login .input-group > .form-control,
.com-users-login .input-group > .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* ---------- Breadcrumbs ---------- */
.mod-breadcrumbs__wrapper, .breadcrumb {
    background: transparent;
    font-size: .85rem;
}

/* ---------- Footer ---------- */
.container-footer {
    background: var(--uw-navy);
    color: #c5d2e8;
    border-top: 4px solid var(--uw-orange);
}
.container-footer a { color: #fff; }

/* ---------- Brand-logo row (the "Links" module) ---------- */
.container-main-top .moduletable, .main-top .moduletable {
    background: transparent;
    box-shadow: none;
    text-align: center;
}
.container-main-top img { max-height: 64px; width: auto; margin: .5rem 1.25rem; filter: saturate(1.05); }

/* ---------- Hero banner (home) ---------- */
.container-banner .moduletable {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0 0 1.75rem;
}
.uw-hero {
    background:
        radial-gradient(1200px 400px at 85% -20%, rgba(244,121,32,.35), transparent 60%),
        linear-gradient(120deg, var(--uw-navy) 0%, #1b4276 55%, #1f4a8a 100%);
    background-color: var(--uw-navy);
    border-radius: var(--uw-radius);
    box-shadow: var(--uw-shadow);
    padding: 3.25rem 2.75rem;
    position: relative;
    overflow: hidden;
}
.uw-hero::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0; height: 6px; width: 100%;
    background: linear-gradient(90deg, var(--uw-orange), #ffb066);
}
.uw-hero-inner { max-width: 760px; }
.uw-hero-eyebrow {
    display: inline-block;
    color: #ffd9b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .8rem;
    margin-bottom: .65rem;
}
.uw-hero-title {
    color: #fff !important;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.1;
    margin: 0 0 .65rem;
    border: 0;
}
.uw-hero-sub {
    color: #cfdcf0;
    font-size: 1.12rem;
    margin: 0;
}

/* ---------- Download-sections dashboard (card grid) ---------- */
.container-main-top .moduletable {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 2rem;
}
.container-main-top .moduletable > h3,
.uw-dashboard > h3 {
    text-align: center;
    border: 0;
    font-size: 1.35rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--uw-navy);
    margin-bottom: 1.4rem;
}
.uw-dashboard ul.mod-menu,
.moduletable.uw-dashboard ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.uw-dashboard ul.mod-menu > li { margin: 0; }
.uw-dashboard ul.mod-menu > li > a,
.uw-dashboard ul.mod-menu > li > span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .35rem;
    min-height: 104px;
    background: var(--uw-card);
    color: var(--uw-navy) !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem 1.4rem;
    border-radius: var(--uw-radius);
    box-shadow: var(--uw-shadow-sm);
    border-left: 5px solid var(--uw-orange);
    transition: transform .14s ease, box-shadow .14s ease;
}
.uw-dashboard ul.mod-menu > li > a::before {
    content: "\1F4C1"; /* folder */
    font-size: 1.5rem;
    line-height: 1;
}
.uw-dashboard ul.mod-menu > li > a::after {
    content: "View downloads \2192";
    font-size: .82rem;
    font-weight: 600;
    color: var(--uw-orange);
}
.uw-dashboard ul.mod-menu > li > a:hover {
    transform: translateY(-3px);
    box-shadow: var(--uw-shadow);
    color: var(--uw-navy) !important;
}

/* ---------- Community Builder profile ---------- */
/* hide the "Powered by Community Builder" credit */
.cbPoweredBy { display: none !important; }
/* default profile banner: branded Uniweld gradient for users without their own cover
   (CB tags the auto-generated default canvas with .cbImgCanvasInitial; a user's
   uploaded cover lacks this class, so their custom banner is preserved) */
.cbImgCanvasInitial {
    background:
        radial-gradient(900px 300px at 82% -40%, rgba(244, 121, 32, .45), transparent 60%),
        linear-gradient(120deg, var(--uw-navy) 0%, #1b4276 55%, #1f4a8a 100%) !important;
    background-size: cover !important;
    position: relative;
}
.cbImgCanvasInitial::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--uw-orange), #ffb066);
}
/* roomier padding for the contact-info rows (CB uses no-gutters which strips it) */
.cbProfile .cb_tab_content { padding: .5rem 1rem 1rem; }
.cb_form_line {
    padding: .75rem .25rem !important;
    margin: 0 !important;
    align-items: center;
}
.cb_form_line > [class*="col-"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
.cbProfile .cbFieldsContentsTab { padding: .25rem; }

/* ---------- Misc polish ---------- */
::selection { background: var(--uw-orange); color: #fff; }
img { max-width: 100%; height: auto; }

/* ============================ DARK MODE ============================ */
/* Toggle button injected into the header by user.js */
/* minimal pill switch in Uniweld colours (navy = light mode, orange = dark mode) */
.uw-theme-toggle {
    margin-left: .75rem;
    width: 56px;
    height: 28px;
    border: 2px solid var(--uw-navy);
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    padding: 0;
    flex: 0 0 auto;
    transition: border-color .2s ease, background .2s ease;
}
.uw-theme-toggle .uw-tt-ic {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uw-navy);
    opacity: 1;
    pointer-events: none;
}
.uw-theme-toggle .uw-tt-sun { left: 6px; }
.uw-theme-toggle .uw-tt-moon { right: 6px; }
.uw-theme-toggle .uw-tt-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--uw-navy);
    transition: transform .2s ease, background .2s ease;
}

html.uw-dark {
    --uw-bg: #0e1622;
    --uw-card: #17233a;
    --uw-ink: #e7edf6;
    --uw-muted: #9fb0c9;
    --uw-shadow: 0 8px 26px rgba(0, 0, 0, .5);
    --uw-shadow-sm: 0 2px 10px rgba(0, 0, 0, .45);
    --link-color: #7fb0ff;
    --link-hover-color: #ffa04d;
}
html.uw-dark body.site { background: var(--uw-bg); color: var(--uw-ink); }

/* headings + nav -> light */
html.uw-dark h1, html.uw-dark h2, html.uw-dark h3, html.uw-dark h4,
html.uw-dark .item-page h1, html.uw-dark .com-content-article h1,
html.uw-dark .uw-welcome h2, html.uw-dark .uw-dlrow-title { color: var(--uw-ink); }
html.uw-dark .moduletable > h3, html.uw-dark .module > h3,
html.uw-dark .moduletable-title, html.uw-dark .module-title { color: var(--uw-ink); border-bottom-color: #2a3a55; }

/* header */
html.uw-dark .container-header { background: #0e1622 !important; box-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
html.uw-dark .mod-menu .nav-link, html.uw-dark .navbar-nav .nav-link, html.uw-dark .container-nav a { color: var(--uw-ink) !important; }
html.uw-dark .navbar-toggler { color: var(--uw-ink) !important; border-color: rgba(255, 255, 255, .25) !important; }
html.uw-dark .uw-theme-toggle { border-color: var(--uw-orange); background: rgba(244, 121, 32, .15); }
html.uw-dark .uw-theme-toggle .uw-tt-knob { transform: translateX(28px); background: var(--uw-orange); }
html.uw-dark .uw-theme-toggle .uw-tt-ic { color: #ffdcb0; }

/* surfaces that hardcode white -> dark card */
html.uw-dark .container-component .com-content-article,
html.uw-dark .container-component .item-page,
html.uw-dark .container-component > .components-container > *,
html.uw-dark .moduletable, html.uw-dark .module,
html.uw-dark .uw-welcome,
html.uw-dark .container-sidebar-right .sidebar-right.card,
html.uw-dark .container-bottom-a .card,
html.uw-dark .card,
html.uw-dark .container-component table, html.uw-dark table.table {
    background: var(--uw-card) !important;
    border-color: #2a3a55 !important;
    color: var(--uw-ink);
}
html.uw-dark .ars-items .uw-dlrow { background: #101b2c !important; border-color: #2a3a55 !important; }
html.uw-dark .uw-welcome-hint, html.uw-dark .mod-login__options { border-top-color: #2a3a55 !important; color: var(--uw-ink) !important; }
html.uw-dark .uw-welcome-list li { color: var(--uw-ink); }

/* form inputs / selects */
html.uw-dark .form-control, html.uw-dark input.form-control, html.uw-dark select.form-control,
html.uw-dark select, html.uw-dark textarea, html.uw-dark .mod-login input.form-control {
    background: #101b2c !important; color: var(--uw-ink) !important; border-color: #2a3a55 !important;
}
html.uw-dark .mod-login .input-group-text, html.uw-dark .mod-login .input-group .btn,
html.uw-dark .com-users-login .input-group-text, html.uw-dark .com-users-login .input-group .btn {
    background: #1d2c46 !important; color: var(--uw-muted) !important; border-color: #2a3a55 !important;
}

/* bottom notice cards use INLINE navy/grey text -> force light (keep orange accents) */
html.uw-dark .container-bottom-a .mod-custom p { color: var(--uw-ink) !important; }
html.uw-dark .container-bottom-a .mod-custom p[style*="f47920"] { color: var(--uw-orange) !important; }

/* tables */
html.uw-dark .container-component table td { border-color: #2a3a55; }
html.uw-dark .table > :not(caption) > * > * { background: transparent; color: var(--uw-ink); }

/* ---------- Header: nav on one row, right of the logo, centred ---------- */
.container-header { flex-wrap: nowrap; }
.container-header > .grid-child:not(.container-nav) { flex: 0 0 auto; width: auto; }
.container-header > .container-nav { flex: 1 1 auto; width: auto; min-width: 0; }
.container-nav ul.mod-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    margin: 0;
}

/* ---------- Dark mode: fixes ---------- */
/* download-section dashboard card titles were navy (invisible on dark) */
html.uw-dark .uw-dashboard ul.mod-menu > li > a,
html.uw-dark .uw-dashboard ul.mod-menu > li > span,
html.uw-dark .uw-dashboard ul.mod-menu > li > a:hover { color: var(--uw-ink) !important; }
html.uw-dark .container-main-top .moduletable > h3, html.uw-dark .uw-dashboard > h3 { color: var(--uw-ink); }

/* CB profile edit ("Contact Info") sheet — the tab content was a white box */
html.uw-dark .cbTabsContent, html.uw-dark .cbTabPane, html.uw-dark .cbFieldsContentsTab,
html.uw-dark .cb_tab_content, html.uw-dark .cbProfileEdit, html.uw-dark #cbcheckedadminForm,
html.uw-dark .cbProfile, html.uw-dark .cbProfile .card {
    background: transparent !important;
    color: var(--uw-ink);
}
html.uw-dark .cbProfile label, html.uw-dark .cb_form_line label,
html.uw-dark .cbProfileEdit label, html.uw-dark #cbcheckedadminForm label { color: var(--uw-ink) !important; }
html.uw-dark .cbTabsNav.nav-tabs { border-bottom-color: #2a3a55; }
html.uw-dark .cbTabNavLink.nav-link { color: var(--uw-muted); }
html.uw-dark .cbTabNavLink.nav-link.active {
    background: var(--uw-card) !important;
    color: var(--uw-ink) !important;
    border-color: #2a3a55 #2a3a55 var(--uw-card) !important;
}

/* CB profile VIEW page: white Edit/Connections + Articles/Blogs bars, faint values */
html.uw-dark .cbNavBar, html.uw-dark .navbar.bg-light {
    background: var(--uw-card) !important;
    border-color: #2a3a55 !important;
}
html.uw-dark .cbNavBar .nav-link, html.uw-dark .cbNavBarLink,
html.uw-dark .cbNavBar .navbar-nav .nav-link { color: var(--uw-ink) !important; }
html.uw-dark .cbSubMenu.dropdown-menu { background: var(--uw-card) !important; border-color: #2a3a55 !important; }
html.uw-dark .cbSubMenu .dropdown-item { color: var(--uw-ink) !important; }
html.uw-dark .cbSubMenu .dropdown-item:hover { background: #1d2c46 !important; }
/* field values shown as read-only plaintext were dim */
html.uw-dark .form-control-plaintext { color: var(--uw-ink) !important; }

/* any Bootstrap .bg-light / .bg-white utility must go dark in dark mode (CB banner wrapper etc.) */
html.uw-dark .bg-light, html.uw-dark .bg-white { background-color: var(--uw-card) !important; }

/* dark mode: input placeholder text (Username/Password etc.) was too faint */
html.uw-dark .form-control::placeholder,
html.uw-dark input.form-control::placeholder,
html.uw-dark .mod-login input::placeholder,
html.uw-dark .com-users-login input::placeholder {
    color: #aab9cd !important;
    opacity: 1 !important;
}

/* ---------- Dark mode: profile-edit odds & ends ---------- */
/* Time Zone / Frontend Language fancy-select (choices.js) dropdown */
html.uw-dark .choices__inner { background: #101b2c !important; color: var(--uw-ink) !important; border-color: #2a3a55 !important; }
html.uw-dark .choices__list--dropdown, html.uw-dark .choices__list[role="listbox"] { background: var(--uw-card) !important; border-color: #2a3a55 !important; }
html.uw-dark .choices__item, html.uw-dark .choices__list--single .choices__item { color: var(--uw-ink) !important; }
html.uw-dark .choices__list--dropdown .choices__item--selectable.is-highlighted { background: #1d2c46 !important; }
html.uw-dark .choices__input { background: #101b2c !important; color: var(--uw-ink) !important; }
html.uw-dark .choices__placeholder { color: #aab9cd !important; opacity: 1; }
html.uw-dark .choices__heading { color: #aab9cd !important; border-bottom-color: #2a3a55 !important; }

/* password "Show" (unmask) button text was dark */
html.uw-dark .cbPasswordUnmaskShow { color: var(--uw-ink) !important; border-color: #2a3a55 !important; background: #1d2c46 !important; }
html.uw-dark .cbPasswordUnmaskShow:hover { background: #26374f !important; }

/* MFA method logo chips (YubiKey / Verification code / Passkey / Email) — keep a light chip
   so the fixed-colour SVG icons stay legible (they're drawn for a light background) */
html.uw-dark .com-users-methods-list-method-image { background: #eef2f8 !important; }

/* dark mode: bottom notice-card titles in Uniweld orange */
html.uw-dark .container-bottom-a .mod-custom > p:first-child { color: var(--uw-orange) !important; }

/* ARS price-sheet release header: drop the maturity "Beta" badge + lighten the title in dark */
[class*="ars-release"] h3 .badge { display: none !important; }
html.uw-dark [class*="ars-release"] h3,
html.uw-dark [class*="ars-release"] .text-muted { color: var(--uw-ink) !important; }
