/* Generated by deleteable/tools/build-ai-cost-css.js; edit the shared source files. */
/* Night mode. GENERATED by tools/gen-dark-css.js from the site's stylesheets; hand-made fixes are in tools/cb-dark-manual.css (appended below). */
html[data-cb-theme="dark"] { color-scheme: dark; }
html[data-cb-theme="dark"] { --bs-white: #1a1624; --bs-primary: #6c96ef; --bs-light: #11171f; --bs-dark: #c2cee6; --bs-pink: #ef6caa; }
html:where([data-cb-theme="dark"]) body { background-color: #1a1624; color: #acb8d9; }
html:where([data-cb-theme="dark"]) a { color: #6c96ef; }
html:where([data-cb-theme="dark"]) a:hover { color: #6c97ef; }
html:where([data-cb-theme="dark"]) code { color: #ef6caa; }
html:where([data-cb-theme="dark"]) .table > :not(:last-child) > :last-child > * { border-bottom-color: #2a374a; }
html:where([data-cb-theme="dark"]) .form-control { background-color: #1a1624; border: 1px solid #2d3a4c; color: #acb8d9; }
html:where([data-cb-theme="dark"]) .form-control:focus { background-color: #1a1624; color: #acb8d9; }
html:where([data-cb-theme="dark"]) .form-control::placeholder { color: #919ec9; }
html:where([data-cb-theme="dark"]) .form-control:disabled,
html:where([data-cb-theme="dark"]) .form-control[readonly] { background-color: #11171f; }
html:where([data-cb-theme="dark"]) .form-control::file-selector-button { background-color: #11171f; color: #acb8d9; }
html:where([data-cb-theme="dark"]) .form-control:hover:not(:disabled):not([readonly])::file-selector-button { background-color: #0d1116; }
html:where([data-cb-theme="dark"]) .form-control::-webkit-file-upload-button { background-color: #11171f; color: #acb8d9; }
html:where([data-cb-theme="dark"]) .form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button { background-color: #0d1116; }
html:where([data-cb-theme="dark"]) .form-check-input { background-color: #1a1624; }
html:where([data-cb-theme="dark"]) .btn { color: #acb8d9; }
html:where([data-cb-theme="dark"]) .btn:hover { color: #acb8d9; }
html:where([data-cb-theme="dark"]) .btn-link { color: #6c96ef; }
html:where([data-cb-theme="dark"]) .btn-link:hover { color: #6c97ef; }
html:where([data-cb-theme="dark"]) .btn-link:disabled,
html:where([data-cb-theme="dark"]) .btn-link.disabled { color: #919ec9; }
html:where([data-cb-theme="dark"]) .dropdown-menu { background-color: #1a1624; color: #acb8d9; }
html:where([data-cb-theme="dark"]) .dropdown-item { color: #c2cee6; }
html:where([data-cb-theme="dark"]) .dropdown-item:hover,
html:where([data-cb-theme="dark"]) .dropdown-item:focus { background-color: #131322; color: #c5d1e7; }
html:where([data-cb-theme="dark"]) .card { background-color: #1a1624; }
html:where([data-cb-theme="dark"]) .accordion-button { background-color: #1a1624; color: #acb8d9; }
html:where([data-cb-theme="dark"]) .accordion-button:not(.collapsed) { color: #6c96ef; }
html:where([data-cb-theme="dark"]) .accordion-item { background-color: #1a1624; border: 1px solid #2d3a4c; }
html:where([data-cb-theme="dark"]) .alert-success { background-color: #091610; border-color: #2e644e; color: #9ef4d0; }
html:where([data-cb-theme="dark"]) .list-group-item { background-color: #1a1624; border: 1px solid #2d3a4c; color: #c2cee6; }
html:where([data-cb-theme="dark"]) .list-group-item.disabled,
html:where([data-cb-theme="dark"]) .list-group-item:disabled { background-color: #1a1624; color: #919ec9; }
html:where([data-cb-theme="dark"]) .modal-content { background-color: #1a1624; border: 1px solid #2d3a4c; }
html:where([data-cb-theme="dark"]) .modal-header { border-bottom: 1px solid #2a374a; }
html:where([data-cb-theme="dark"]) .offcanvas { background-color: #1a1624; }
html:where([data-cb-theme="dark"]) .offcanvas-start { border-right: 1px solid #2d3a4c; }
html:where([data-cb-theme="dark"]) .offcanvas-end { border-left: 1px solid #2d3a4c; }
html:where([data-cb-theme="dark"]) .border { border: 1px solid #2a374a !important; }
html:where([data-cb-theme="dark"]) .border-bottom { border-bottom: 1px solid #2a374a !important; }
html:where([data-cb-theme="dark"]) .text-primary { color: #6c96ef !important; }
html:where([data-cb-theme="dark"]) .text-success { color: #6cefb8 !important; }
html:where([data-cb-theme="dark"]) .text-danger { color: #ef6c88 !important; }
html:where([data-cb-theme="dark"]) .card { background-color: #1a1624; border: 1px solid #2d3a4c; }
html:where([data-cb-theme="dark"]) .card .card-header { background-color: #1a1624; border-bottom: 1px solid #2d3a4c; }
html:where([data-cb-theme="dark"]) .left-sidenav { background-color: #0b1626; border-right: 1px solid #2d3a4c; }
html:where([data-cb-theme="dark"]) .left-sidenav hr.hr-dashed.hr-menu { border-color: #3b4358; }
html:where([data-cb-theme="dark"]) .left-sidenav-menu li > a { color: #99a4c2; }
html:where([data-cb-theme="dark"]) .left-sidenav-menu li > a:hover { color: #6c93ef; }
html:where([data-cb-theme="dark"]) .left-sidenav-menu li > a:hover i { color: #6c93ef; }
html:where([data-cb-theme="dark"]) .left-sidenav-menu li > a i { color: #919ec9; }
html:where([data-cb-theme="dark"]) .left-sidenav-menu li > a span i { color: #acb8d9; }
html:where([data-cb-theme="dark"]) .left-sidenav-menu li ul li > a { color: #99a4c2; }
html:where([data-cb-theme="dark"]) .left-sidenav-menu li ul li > a:hover { color: #6c93ef; }
html:where([data-cb-theme="dark"]) .navbar-custom { background: #1a1624; border-bottom: 1px solid #2d3a4c; }
html:where([data-cb-theme="dark"]) body.dark-sidenav .left-sidenav { background-color: #0b1626 !important; }
html:where([data-cb-theme="dark"]) body.dark-sidenav .left-sidenav-menu li > a:hover { background-color: #091015; color: #ac80ea; }
html:where([data-cb-theme="dark"]) body.dark-sidenav .left-sidenav-menu li > a:hover i { color: #b9c9f7; }
html:where([data-cb-theme="dark"]) body.dark-sidenav .left-sidenav-menu li > a:hover span i { color: #efda6c; }
html:where([data-cb-theme="dark"]) body.dark-sidenav .left-sidenav-menu li > a i { color: #99a4c2; }
html:where([data-cb-theme="dark"]) body.dark-sidenav .left-sidenav-menu li ul li > a { color: #ac80ea; }
html:where([data-cb-theme="dark"]) body.dark-sidenav .left-sidenav-menu .menu-arrow i { color: #efda6c; }
html:where([data-cb-theme="dark"]) .h1,
html:where([data-cb-theme="dark"]) .h2,
html:where([data-cb-theme="dark"]) .h3,
html:where([data-cb-theme="dark"]) .h4,
html:where([data-cb-theme="dark"]) .h5,
html:where([data-cb-theme="dark"]) .h6,
html:where([data-cb-theme="dark"]) h1,
html:where([data-cb-theme="dark"]) h2,
html:where([data-cb-theme="dark"]) h3,
html:where([data-cb-theme="dark"]) h4,
html:where([data-cb-theme="dark"]) h5,
html:where([data-cb-theme="dark"]) h6 { color: #acb8d9; }
html:where([data-cb-theme="dark"]) a { color: #acb8d9; }
html:where([data-cb-theme="dark"]) hr.hr-dashed { border-top-color: #2d3a4c; }
html:where([data-cb-theme="dark"]) .card .card-header { background-color: #1a1624; }
html:where([data-cb-theme="dark"]) .badge.badge-dot::after { border: 2px solid #2e293d; }
html:where([data-cb-theme="dark"]) .dropdown-menu .dropdown-item:hover,
html:where([data-cb-theme="dark"]) .dropdown-menu .dropdown-item:focus { color: #c2cee6; }
html:where([data-cb-theme="dark"]) :not(pre) > code[class*="language-"],
html:where([data-cb-theme="dark"]) pre[class*="language-"] { background: #11171f; }
html:where([data-cb-theme="dark"]) .simplebar-scrollbar::before { background: #0b0d14; }

html:where([data-cb-theme="dark"]) .card-title { color: #bcc4db; }
html:where([data-cb-theme="dark"]) .right-mennu-drawer-popup-icon { background-color: #0c0c17; color: #ac80ea; }
html:where([data-cb-theme="dark"]) .right-mennu-drawer-popup { background: linear-gradient(#1a1624 0%, #150b27 100%); border: 2px solid #372259; color: #c6b1e5; }
html:where([data-cb-theme="dark"]) .toc-popup-close { border: 1px solid #382258; background: #160a24; color: #ac80ea; }
html:where([data-cb-theme="dark"]) .right-mennu-drawer-popup h5 { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .right-mennu-drawer-popup li { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .right-mennu-drawer-popup li::marker { color: #efd06c; }
html:where([data-cb-theme="dark"]) .right-mennu-drawer-popup a { color: #beaddd; }
html:where([data-cb-theme="dark"]) .right-mennu-drawer-popup a:hover { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .nav-bg-pink { background-color: #110c17; border: 1px solid #453d5c; color: #b06fec !important; }
html:where([data-cb-theme="dark"]) .nav-bg-green { background-color: #0c1615; border: 1px solid #453d5c; }
html:where([data-cb-theme="dark"]) .nav-bg-orange { background-color: #140f0a; border: 1px solid #453d5c; }
html:where([data-cb-theme="dark"]) .text-piped { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .text-piped li::before { color: #ab7fec; }
html:where([data-cb-theme="dark"]) .accordion-flush .accordion-item .accordion-button { border: 0px solid #453d5c; }
html:where([data-cb-theme="dark"]) .accordion-button:not(.collapsed) { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .accordion-button { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .piped span { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .topbarpiped span { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .dropdown-megamenu { background-color: #17170b; }
html:where([data-cb-theme="dark"]) .megamenu-list { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .footer-2-bg { background-color: #17170b; }
html:where([data-cb-theme="dark"]) .text-gold { color: #efda6c; }
html:where([data-cb-theme="dark"]) .text-pills-left-nav { background-color: #0d0a15; color: #a184f0; }
html:where([data-cb-theme="dark"]) .half-a-border-on-top::after { background-color: #1a1624; }
html:where([data-cb-theme="dark"]) .bg-light-footer { background-color: #0c0c17; }
html:where([data-cb-theme="dark"]) .aliencloud-highlight-badge { background: #1a1624; border: 1px solid #333b4f; }
html:where([data-cb-theme="dark"]) .left-search-input { border: 1px solid #403955; background: #1a1624; color: #ad94ea; }
html:where([data-cb-theme="dark"]) .left-search-icon { color: #a198c3; }
html:where([data-cb-theme="dark"]) .left-search-drawer { border: 1px solid #3c3753; background: #1a1624; }
html:where([data-cb-theme="dark"]) .aliencloud-highlight-badge:has(.aliencloud-highlight-icon[src*="cloudbrum-icon"]) { border: 3px solid #2e293d; }
html:where([data-cb-theme="dark"]) .cb-gl-az a { background: #130d21; color: #ac80ea; }
html:where([data-cb-theme="dark"]) .cbrn-h { color: #9c99c2; }
html:where([data-cb-theme="dark"]) .cbrn-h a { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .cbrn-app { border: 1px solid #352e48; background: #1a1624; color: #cfcce7; }
html:where([data-cb-theme="dark"]) .cbrn-app:hover { color: #cfcce7; }
html:where([data-cb-theme="dark"]) .cbrn-tx small { color: #9a99c2; }
html:where([data-cb-theme="dark"]) .cbrn-ad { background: #271e0b; }
html:where([data-cb-theme="dark"]) .cbrn-ad small { color: #f3d490; }
html:where([data-cb-theme="dark"]) .cbrn-ad .slot { background: repeating-linear-gradient(45deg, #1c1708, #1c1708 10px, #271e0b 10px, #271e0b 20px); color: #f3d490; }
html:where([data-cb-theme="dark"]) .cbrn-ad .slot span { color: #e0c37b; }
html:where([data-cb-theme="dark"]) .cbrn-socbox { background: #140b27; }
html:where([data-cb-theme="dark"]) .cbrn-socbox p { color: #b7b5d3; }
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item { color: #acb8d9; }
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item i { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item:hover,
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item:focus { background: #140b26; color: #ac80ea; }
html:where([data-cb-theme="dark"]) .header-item.cb-home { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .cb-indian { background: linear-gradient(90deg, #23170a, #1a1624 50%, #0f1a10); color: #cfcce7; }
html:where([data-cb-theme="dark"]) .cb-indian .cb-flag { border: 1px solid #433c59; }
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item.cb-nolink:hover,
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item.cb-nolink:focus { color: #acb8d9; }
html:where([data-cb-theme="dark"]) .cb-badge-blue { background: #070f19; color: #9fc7f4; }
html:where([data-cb-theme="dark"]) .topbarpiped .cb-badge-blue,
html:where([data-cb-theme="dark"]) .topbarpiped span.cb-badge-blue:first-child { color: #9fc7f4 !important; }
html:where([data-cb-theme="dark"]) .topbarpiped .cb-badge-blue:hover { color: #9fc7f4 !important; }
html:where([data-cb-theme="dark"]) .accordion-button .cb-info { color: #b791f0; }
html:where([data-cb-theme="dark"]) .cb-link-off { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .cbrn-app .cbrn-ext { color: color-mix(in srgb, var(--c) 55%, #ffffff); }
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item.cb-expert { background: #1f1809; color: #ac80ea; }
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item.cb-expert:hover,
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item.cb-expert:focus { background: #181307; }
html:where([data-cb-theme="dark"]) .er { color: #d7d4ec; }
html:where([data-cb-theme="dark"]) .er h1 { color: #cfcce7; }
html:where([data-cb-theme="dark"]) .cbq-err { color: #e77484; }
html:where([data-cb-theme="dark"]) .cb-rc-note { color: #a099c2; }
html:where([data-cb-theme="dark"]) .left-sidenav-menu li > a.active .menu-icon { color: #6c96ef; fill: rgba(108,150,239,0.12); }
html:where([data-cb-theme="dark"]) .topbar .header-item.cb-current { background: #140b26; color: #ac80ea; }
html:where([data-cb-theme="dark"]) .topbar .header-item.cb-current .fw-bold,
html:where([data-cb-theme="dark"]) .topbar .header-item.cb-current .mdi { color: #ac80ea; }
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item.active,
html:where([data-cb-theme="dark"]) .cb-offer-menu .dropdown-item[aria-current="page"] { background: #110a22; color: #ac80ea; }
html:where([data-cb-theme="dark"]) #rightinfoModal ul a.cur { color: #ac80ea; }
html:where([data-cb-theme="dark"]) #rightinfoModal ul a.cur::after { color: #9a99c2; }
html:where([data-cb-theme="dark"]) mark,
html:where([data-cb-theme="dark"]) .mark { background-color: #1f1c0b; }
html:where([data-cb-theme="dark"]) .sp { --brand: #a473e8; --ink: #cfcce7; --muted: #9c9bc3; --line: #372e4d; --soft: #140c28; }
html:where([data-cb-theme="dark"]) .sp-form { border-right: 1px solid #3a2f50; border-bottom: 1px solid #3a2f50; border-left: 1px solid #3a2f50; background: #1a1624; }
html:where([data-cb-theme="dark"]) .sp-form label.l { color: #b7b5d3; }
html:where([data-cb-theme="dark"]) .sp-form label.l .req { color: #e37786; }
html:where([data-cb-theme="dark"]) .sp-form input[type="text"],
html:where([data-cb-theme="dark"]) .sp-form input[type="email"],
html:where([data-cb-theme="dark"]) .sp-form input[type="tel"],
html:where([data-cb-theme="dark"]) .sp-form input[type="number"],
html:where([data-cb-theme="dark"]) .sp-form select,
html:where([data-cb-theme="dark"]) .sp-form textarea { border: 1px solid #3c344f; background: #1a1624; }
html:where([data-cb-theme="dark"]) .sp-form [aria-invalid="true"] { background: #2a0c11; }
html:where([data-cb-theme="dark"]) .sp-form .err { color: #e37786; }
html:where([data-cb-theme="dark"]) .sp-form .warn { background: #1f1a09; color: #f7e6b7; }
html:where([data-cb-theme="dark"]) .sp .ph { background: #181507; color: #f9efcc; }
html:where([data-cb-theme="dark"]) .sp details { background: #1a1624; }
html:where([data-cb-theme="dark"]) .ar { --a-box: #160b27; --a-text: #cfcce7; --a-muted: #a09bc3; --a-role: #b791f0; --a-lane: #bd9eef; }
html:where([data-cb-theme="dark"]) .modal-content .modal-body p,
html:where([data-cb-theme="dark"]) .modal-content h4 { color: #919ec9; }
html:where([data-cb-theme="dark"]) .cbs-btn { border: 1.5px solid #3d3159; background: #1a1624; color: #ac80ea; }
html:where([data-cb-theme="dark"]) .cbs-btn:hover { background: #140b26; color: #ac80ea; }
html:where([data-cb-theme="dark"]) .cbs-modal .modal-header { background: #1a1624; }
html:where([data-cb-theme="dark"]) .cbs-modal .modal-content .modal-header .modal-title { color: #cfcce7; }
html:where([data-cb-theme="dark"]) .cbs-modal .modal-body { background: #1a1624; }
html:where([data-cb-theme="dark"]) .cbs-modal .btn-close { background: none #140b26 !important; color: #ac80ea; }
html:where([data-cb-theme="dark"]) .cbs-modal .btn-close:hover { background: #0f091e !important; }
html:where([data-cb-theme="dark"]) .cbs-lab { color: #9a99c2; }
html:where([data-cb-theme="dark"]) .cbs-seg { border: 1px solid #392e56; }
html:where([data-cb-theme="dark"]) .cbs-seg button { background: #1a1624; color: #9c99c2; }
html:where([data-cb-theme="dark"]) .cbs-theme { border: 1.5px solid #382e51; background: #1a1624; color: #b7b5d3; }
html:where([data-cb-theme="dark"]) .cbs-theme i { border: 2px solid #2e293d; }
html:where([data-cb-theme="dark"]) .cbs-theme.on { background: #130c28; }
html:where([data-cb-theme="dark"]) .cbs-stage { background: #151020; }
html:where([data-cb-theme="dark"]) .cbs-note { color: #9c99c2; }
@media screen {
html:where([data-cb-theme="dark"]) .tag { color: #f28c8c !important; }
}
html:where([data-cb-theme="dark"]) .gl-modal .modal-header { background: #1a1624; }
html:where([data-cb-theme="dark"]) .gl-modal .modal-body { background: #1a1624; }
html:where([data-cb-theme="dark"]) .cb-hero { --cb-purple: #a473e8; --cb-purple-2: #a284d7; --cb-purple-soft: #130a23; --cb-gold-soft: #1c1708; --cb-ink: #cfcce7; --cb-muted: #9c9bc3; background: radial-gradient(900px 400px at 92% -10%, rgba(255, 184, 34, 0.28), transparent 60%), radial-gradient(700px 380px at -10% 110%, rgba(84, 27, 163, 0.18), transparent 60%), linear-gradient(135deg, #190c2a 0%, #150b25 48%, #0b1526 100%); border: 1px solid #332157; }
html:where([data-cb-theme="dark"]) .cbn-err { color: #e77484; }
html:where([data-cb-theme="dark"]) .cb-ch__card { background: #1a1624; border: 1px solid #2f3546; }
html:where([data-cb-theme="dark"]) .cb-ch__icon { color: color-mix(in srgb, var(--accent) 55%, #ffffff); }
html:where([data-cb-theme="dark"]) .cb-ch__title { color: #cbcfe7; }
html:where([data-cb-theme="dark"]) .cb-ch__num { color: color-mix(in srgb, var(--accent) 55%, #ffffff); }
html:where([data-cb-theme="dark"]) .cb-ch__block--problem { background: #290c0f; border: 1px dashed #5d2c31; }
html:where([data-cb-theme="dark"]) .cb-ch__block--solution { background: #102017; border: 1px solid #355643; }
html:where([data-cb-theme="dark"]) .cb-ch__block--problem .cb-ch__label { color: #e57683; }
html:where([data-cb-theme="dark"]) .cb-ch__block--solution .cb-ch__label { color: #8af1c3; }
html:where([data-cb-theme="dark"]) .cb-ch__block--problem .cb-ch__text { color: #99a2c2; }
html:where([data-cb-theme="dark"]) .cb-ch__block--solution .cb-ch__text { color: #cfd7e4; }
html:where([data-cb-theme="dark"]) .cb-ch__bridge span { background: #1a1624; color: color-mix(in srgb, var(--accent) 55%, #ffffff); }
html:where([data-cb-theme="dark"]) .cb-ch__card--teal { --accent: #8cf2e9; }
html:where([data-cb-theme="dark"]) .svc-modal .modal-header { background: #1a1624 !important; }
html:where([data-cb-theme="dark"]) .svc-modal .modal-title { color: #cfcce7 !important; }
html:where([data-cb-theme="dark"]) .svc-modal .modal-body { background: #1a1624; }
@media print {
html:where([data-cb-theme="dark"]) body::before { color: rgba(172,128,234,0.075); }
html:where([data-cb-theme="dark"]) body::after { color: #aaa3bd; }
}
html:where([data-cb-theme="dark"]) .svc-ai-modal .modal-content { background: linear-gradient(135deg, #190c2a 0%, #140a24 55%, #0b1526 100%); }
html:where([data-cb-theme="dark"]) .svc-ai-modal .modal-content { background: #161120; }

html:where([data-cb-theme="dark"]) #rightinfoModal .toc-popup-close,
html:where([data-cb-theme="dark"]) #rightinfoModal .btn-close { background: none #140b26 !important; color: #ac80ea; }

html:where([data-cb-theme="dark"]) #rightinfoModal .toc-popup-close:hover,
html:where([data-cb-theme="dark"]) #rightinfoModal .btn-close:hover { background: #0f091e !important; }

/* ===== hand-made fixes ===== */
/* ---- night mode toggle button (both themes) ---- */
.cb-theme-btn { width: 100%; height: 100%; display: grid; place-items: center; border: 0; background: transparent; padding: 0; color: #541ba3; cursor: pointer; font-size: 1.05rem; line-height: 1; }
.cb-theme-btn .cb-ic-sun { display: none; }
html[data-cb-theme="dark"] .cb-theme-btn .cb-ic-moon { display: none; }
html[data-cb-theme="dark"] .cb-theme-btn .cb-ic-sun { display: inline; }
.cb-theme-btn:focus-visible { outline: 2px solid #541ba3; outline-offset: 2px; border-radius: 50%; }

/* header logo: until the script swaps in the white logo, brighten the coloured one */
html[data-cb-theme="dark"] .topbar .logo img:not([data-cb-white]) { filter: brightness(1.9) saturate(.8); }

/* brand purple text (Bootstrap-style utility is !important in the base theme) */
html[data-cb-theme="dark"] .text-purple,
html[data-cb-theme="dark"] a.text-purple,
html[data-cb-theme="dark"] a.text-purple:hover { color: #b9a0f2 !important; }
html[data-cb-theme="dark"] b, html[data-cb-theme="dark"] em, html[data-cb-theme="dark"] legend.l { color: #c7b3f5; }
html[data-cb-theme="dark"] .bg-light-footer a { color: #c7b3f5; }
html[data-cb-theme="dark"] .bg-light-footer a:hover { color: #ffd36b; }

/* dark text on yellow surfaces keeps the original reading order (yellow stays yellow) */
html[data-cb-theme="dark"] .btn-warning, html[data-cb-theme="dark"] .btn-warning * { color: #2a1500 !important; }
html[data-cb-theme="dark"] .sp-submit, html[data-cb-theme="dark"] .sp-submit * { color: #2a1500 !important; }
/* inline-styled form legend on the feedback page */

/* service sections pass their tint inline (--sc / --scbg), so derive the dark tint from --sc */

/* drawer close button: service pages draw their own X (cb-service.css); every other page keeps the gold cross image */
html[data-cb-theme="dark"] body:has(.svc) .offcanvas .btn-close { background: none #140b26 !important; color: #e9ddff !important; }   /* the base theme forces purple with !important */
html[data-cb-theme="dark"] body:has(.svc) .offcanvas .btn-close:hover { background: #0f091e !important; }

/* the AWS logo in the left menu is dark text on a transparent background */   /* the images were converted to WebP, so name both */

/* focus ring for form fields (the base theme removes outlines, so the ring is a border + shadow) */
html[data-cb-theme="dark"] .sp-form input:focus, html[data-cb-theme="dark"] .sp-form select:focus, html[data-cb-theme="dark"] .sp-form textarea:focus {
    border-color: #ac80ea; box-shadow: 0 0 0 3px rgba(172, 128, 234, .32);
}

/* outline (secondary) call-to-action buttons stay light-on-dark; the yellow-button rule above must not catch them */

/* "Coming soon" pill in the top bar */
html[data-cb-theme="dark"] .cb-soon { background: #2a2110; border-color: #7a5a1a; color: #ffd36b; }

/* Home icon in the top bar matches the menu labels */
html[data-cb-theme="dark"] .header-item.cb-home { color: #ac80ea; }

/* service suggester: keyboard focus ring (the page sets it with !important because the base theme removes outlines) */

html[data-cb-theme="dark"] .cb-indian { background: linear-gradient(90deg, #2a1c0c, #1a1624 50%, #0f2514); color: #f1ecff; }
/* architecture pattern diagrams: keep arrows and labels readable on the dark background */
/* blue "Coming soon" pill in the Our Cloud Tools menu */
html[data-cb-theme="dark"] .cb-badge-blue, html[data-cb-theme="dark"] .topbarpiped .cb-badge-blue { background: #1d3f6e !important; color: #d6e8ff !important; }
/* home page "Our Cloud Tools": small grey text and the "live" / "soon" chips keep a readable contrast on the dark panel */
/* the site-wide dark rule for bold text would turn these accent labels lavender */
/* architecture patterns: regulated-industries section */
/* left menu "i" icon */
html[data-cb-theme="dark"] .accordion-button .cb-info { color: #c9a8f5; }
/* top bar: current section, sub-menu highlights */
html[data-cb-theme="dark"] .topbar .header-item.cb-current { background: #2a1f45; box-shadow: inset 0 -3px 0 #ffb822; }
html[data-cb-theme="dark"] .topbar .header-item.cb-current .fw-bold, html[data-cb-theme="dark"] .topbar .header-item.cb-current .mdi { color: #d2bbf7; }
html[data-cb-theme="dark"] .cb-offer-menu .dropdown-item.active, html[data-cb-theme="dark"] .cb-offer-menu .dropdown-item[aria-current="page"] { background: #2a1f45; color: #d2bbf7; }
html[data-cb-theme="dark"] .cb-offer-menu .dropdown-item.cb-expert { background: #2a2108; color: #ffd36b; }
html[data-cb-theme="dark"] .cb-offer-menu .dropdown-item.cb-expert:hover { background: #3a2d0a; }
/* sitemap page */
html[data-cb-theme="dark"] .text-muted { color: #a4abc5 !important; }
html[data-cb-theme="dark"] .text-secondary { color: #9ba7ca !important; }

/* Selected sidebar links use the same accessible highlight in dark mode. */
html[data-cb-theme="dark"] body.dark-sidenav {
 --cb-left-active-ink: #d2bbf7;
 --cb-left-active-bg: #2a1f45;
}
