:root {
    --cw-ink: #0b2540;
    --cw-sea: #174f77;
    --cw-mint: #99f4e1;
    --cw-line: #ccdade;
    --cw-paper: #f4f8f8;
}
body {
    background-color: var(--cw-paper);
    color: var(--cw-ink);
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
}
#header .navbar-light, #header .main-navbar-wrapper, #footer {
    background: var(--cw-ink);
    color: white;
}
#header .navbar-brand .logo-img { width: 130px; height: auto; max-height: none; }
#header .main-navbar-wrapper { border-top: 1px solid #294861; }
#header .navbar-nav > li > a, #header .toolbar .nav-link { color: white; }
#header .navbar-nav > li > a:hover, #header .toolbar .nav-link:hover {
    background: #193e5b;
    color: var(--cw-mint);
}
#header .dropdown-menu { border: 1px solid var(--cw-line); border-radius: .7rem; }
#header .dropdown-menu .dropdown-item { color: var(--cw-ink); }
#header .dropdown-menu .dropdown-item:hover { background: #e1f6f1; color: var(--cw-ink); }
#footer a { color: var(--cw-mint); }
#main-body, .master-breadcrumb { background-color: var(--cw-paper); }
.cw-welcome {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 220px;
    padding: clamp(24px,4vw,52px);
    margin: 0 0 24px;
    border-radius: 20px;
    background: radial-gradient(ellipse at 94% 80%,#196477 0%,transparent 56%),#0b2540;
    color: white;
}
.cw-intro { position: relative; z-index: 1; width: 65%; }
.cw-intro h1 { font-size: clamp(28px,3.3vw,50px); font-weight: 730; line-height: 1.05; letter-spacing: -.045em; color: white; margin: 10px 0 14px; }
.cw-intro p { font-size: 16px; line-height: 1.5; margin: 0; max-width: 45ch; color: #e3f0f4; }
.cw-intro .cw-label { color: var(--cw-mint); text-transform: uppercase; font-weight: 700; letter-spacing: .14em; font-size: 11px; }
.cw-label::before { content: ""; display: inline-block; width: 19px; height: 3px; background: currentColor; vertical-align: middle; margin-right: 9px; }
.cw-art { position: absolute; right: 1%; top: 0; height: 100%; width: 34%; object-fit: contain; }
.cw-action { display: inline-flex; gap: 14px; align-items: center; border-radius: 24px; padding: 9px 18px; margin-top: 19px; background: var(--cw-mint); color: var(--cw-ink); font-weight: 700; }
.cw-action:hover { background: white; color: var(--cw-ink); }
.primary-content .tiles { border: none; background: transparent; box-shadow: none; }
.primary-content .tiles .row { margin: -5px; }
.primary-content .tiles .row > div { padding: 5px; }
.primary-content .tiles .tile {
    position: relative; display: block; height: 100%; padding: 18px;
    background: white; border: 1px solid var(--cw-line); border-radius: 14px;
    color: var(--cw-ink); box-shadow: 0 3px 10px #0b254009; overflow: hidden;
}
.primary-content .tiles .tile:hover { border-color: #3b887c; background: #f0fbf8; text-decoration: none; }
.primary-content .tiles .stat { color: var(--cw-ink); font-weight: 730; }
.primary-content .tiles .title { color: #335368; }
.primary-content .tiles .tile i { color: var(--cw-sea); }
.primary-content .tiles .tile .highlight { display: none; }
.client-home-cards .card, .home .card, .login-form .card, .sidebar .card {
    border: 1px solid var(--cw-line); border-radius: 14px; box-shadow: 0 6px 22px #0b254009;
}
.client-home-cards .card-header, .sidebar .card-header { background-color: #e9f2f2; color: var(--cw-ink); border-radius: 13px 13px 0 0; }
.login-form .card { border-top: 5px solid #278873; }
.btn.btn-primary { color: white; background: var(--cw-sea); border-color: var(--cw-sea); }
.btn.btn-primary:hover, .btn.btn-primary:focus { color: white; background: var(--cw-ink); border-color: var(--cw-ink); }
.home .btn-outline-primary { border-radius: 24px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #cf8019; outline-offset: 2px; }
@media (max-width: 575px) {
    .cw-welcome { min-height: auto; padding: 24px 20px; border-radius: 15px; }
    .cw-intro { width: 100%; }
    .cw-art { display: none; }
    .cw-intro h1 { font-size: 30px; }
    .primary-content .tiles .tile { padding: 14px; }
}
.primary-content .tiles .tile i, .primary-content .tiles .tile:hover i { font-size: 23px; top: 17px; right: 16px; }
.primary-content .tiles .row > div > .tile { border: 1px solid var(--cw-line); }
@media (prefers-reduced-motion: reduce) {
    .primary-content .tiles .tile, .primary-content .tiles .tile i { transition: none; }
}

/* Match the Nexus storefront and both responsive domain search controls. */
#frmDomainHomepage #btnDomainSearch.btn, #frmDomainHomepage #btnDomainSearch2.btn,
body #order-standard_cart .products .product footer .btn.btn-order-now {
    background: var(--cw-sea);
    border-color: var(--cw-sea);
    color: white;
}
body #main-body .card-columns.home .btn-outline-primary {
    background: white;
    border-color: var(--cw-sea);
    color: var(--cw-sea);
}
#frmDomainHomepage #btnDomainSearch.btn:is(:hover, :focus, :active),
#frmDomainHomepage #btnDomainSearch2.btn:is(:hover, :focus, :active),
body #main-body .card-columns.home .btn-outline-primary:is(:hover, :focus, :active),
body #order-standard_cart .products .product footer .btn.btn-order-now:is(:hover, :focus, :active) {
    background: var(--cw-ink);
    border-color: var(--cw-ink);
    color: white;
}
