/* Near-black surfaces with brand color used only for focus and action. */
html[data-theme=dark]{color-scheme:dark;--ink:#f3f7f4;--body:#c4d0c9;--teal:color-mix(in srgb,var(--green,#246653) 38%,#c2f0e3);--olive:#b3cda9;--pale:#101411;--line:#36423b;--dark-base:#090b0a;--dark-section:#101411;--dark-card:#171c19;--dark-raised:#1e2520;--dark-border:#35423a;--dark-accent:color-mix(in srgb,var(--green,#246653) 42%,#d5ffe2);--dark-cta:color-mix(in srgb,var(--green,#246653) 25%,#9ff0c9)}
html[data-theme=dark] body,html[data-theme=dark] .admin-body{background:var(--dark-base);color:var(--ink)}
html[data-theme=dark] p,html[data-theme=dark] .muted,html[data-theme=dark] small{color:var(--body)}
html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] .hero h1{color:var(--ink)}
html[data-theme=dark] a:focus-visible,html[data-theme=dark] button:focus-visible,html[data-theme=dark] summary:focus-visible,html[data-theme=dark] input:focus-visible{outline-color:#92e7c4}
html[data-theme=dark] .preview{background:#17231c;color:#e8f5ec}
html[data-theme=dark] .skip{background:#1c2821;color:#fff}
html[data-theme=dark] .header,html[data-theme=dark] .header nav.open{background:#0d100ff2;border-color:var(--dark-border)}
html[data-theme=dark] .header nav a{color:#edf3ef}
html[data-theme=dark] .header nav a:hover,html[data-theme=dark] .header nav a[aria-current],html[data-theme=dark] .eyebrow,html[data-theme=dark] .text-link{color:var(--dark-accent)}
html[data-theme=dark] .language,html[data-theme=dark] .header-phone{border-color:var(--dark-border)}
html[data-theme=dark] .theme-toggle,html[data-theme=dark] .header-phone{background:#1b231e;border:1px solid #405247;color:#f3f8f4}
html[data-theme=dark] .theme-toggle:hover,html[data-theme=dark] .header-phone:hover{background:#26332a;border-color:#6fae8c}
html[data-theme=dark] .header-phone small,html[data-theme=dark] .phone-icon{color:#c5e7d3}
html[data-theme=dark] .button:not(.button-whatsapp),html[data-theme=dark] .hero-carousel .hero-actions .button{background:var(--dark-cta);border-color:var(--dark-cta);color:#092016;box-shadow:none}
html[data-theme=dark] .button:not(.button-whatsapp):hover,html[data-theme=dark] .hero-carousel .hero-actions .button:hover{background:color-mix(in srgb,var(--dark-cta) 76%,white);border-color:color-mix(in srgb,var(--dark-cta) 76%,white);color:#07170e;box-shadow:0 7px 22px #75d9ad20}
html[data-theme=dark] .outline-button:not(.button-whatsapp){background:#1c2520;border-color:#638672;color:#e5f2e9}
html[data-theme=dark] .outline-button:not(.button-whatsapp):hover{background:#28392d;border-color:#8cbd9b}
html[data-theme=dark] .hero-carousel .hero-slide{background:#171d19}
html[data-theme=dark] .hero-carousel .hero-slide h1,html[data-theme=dark] .hero-carousel .hero-slide .hero-headline,html[data-theme=dark] .hero-carousel .hero-copy{color:#f7faf8}
html[data-theme=dark] .hero-carousel .hero-slide h1 em{color:var(--dark-accent)}
html[data-theme=dark] .hero-carousel .hero-slide .hero-copy>p{color:#d6e1da}
html[data-theme=dark] .hero-carousel .hero-actions .text-link{background:#28342c;border-color:#5c7564;color:#f1f7f3}
html[data-theme=dark] .hero-carousel .hero-actions .text-link:hover{background:#344739;border-color:#8db89c}
html[data-theme=dark] .hero-carousel-arrow,html[data-theme=dark] .hero-carousel-dots button{background:#222c25;border-color:#57715f;color:#f4f8f5}
html[data-theme=dark] .hero-carousel-arrow:hover,html[data-theme=dark] .hero-carousel-dots button:hover{background:#344b39}
html[data-theme=dark] .hero-facts>.fact-card,html[data-theme=dark] .hero-facts>.fact-card:nth-child(2n){background:#171d19;border:1px solid #35443a;box-shadow:0 10px 28px #0005;color:var(--ink)}
html[data-theme=dark] .hero-facts>.fact-card:before{background:linear-gradient(90deg,var(--green,#246653),var(--dark-cta))}
html[data-theme=dark] .hero-facts>.fact-card .fact-icon,html[data-theme=dark] .hero-facts>.fact-card:nth-child(2n) .fact-icon{background:#263a2e;color:#a1edc4}
html[data-theme=dark] .hero-facts>.fact-card strong,html[data-theme=dark] .hero-facts>.fact-card:nth-child(2n) strong{color:#fbfdfb}
html[data-theme=dark] .hero-facts>.fact-card .fact-title,html[data-theme=dark] .hero-facts>.fact-card:nth-child(2n) .fact-title{color:#cbded0}
html[data-theme=dark] .branches-section,html[data-theme=dark] .home-care,html[data-theme=dark] .faq-section,html[data-theme=dark] .about-section,html[data-theme=dark] .reviews-section,html[data-theme=dark] .detail-hero,html[data-theme=dark] .blog-index,html[data-theme=dark] .career-hero,html[data-theme=dark] .branch-services-section{background:var(--dark-section)}
html[data-theme=dark] .steps-section{background:#111714}
html[data-theme=dark] footer{background:#070908;border-top:1px solid #26332a}
html[data-theme=dark] .service-card,html[data-theme=dark] .article-card,html[data-theme=dark] .testimonial-card,html[data-theme=dark] .aside-panel,html[data-theme=dark] .google-review,html[data-theme=dark] .permission-review,html[data-theme=dark] .hero-stage,html[data-theme=dark] .metric{background:var(--dark-card);border-color:var(--dark-border);box-shadow:0 10px 28px #0003;color:var(--ink)}
html[data-theme=dark] .branch-grid>.branch-card,html[data-theme=dark] .branch-grid>.branch-card:nth-child(3n+2),html[data-theme=dark] .branch-grid>.branch-card:nth-child(3n+3),html[data-theme=dark] .branch-grid>.branch-card:nth-child(4n+2),html[data-theme=dark] .branch-grid>.branch-card:nth-child(4n+3),html[data-theme=dark] .branch-grid>.branch-card:nth-child(4n+4),html[data-theme=dark] .branch-grid>.branch-card:nth-child(even){background:#181e1a;border-color:var(--dark-border);box-shadow:0 10px 28px #0003;color:var(--ink)}
html[data-theme=dark] .branch-grid>.branch-card:hover,html[data-theme=dark] .service-card:hover,html[data-theme=dark] .article-card:hover{border-color:#7cad8d;box-shadow:0 14px 32px #0006}
html[data-theme=dark] .branch-card:before,html[data-theme=dark] .branch-grid>.branch-card:after{border-color:#41564875}
html[data-theme=dark] .service-card h3,html[data-theme=dark] .branch-card h3,html[data-theme=dark] .article-card h2,html[data-theme=dark] .article-card h3{color:#f4f8f5}
html[data-theme=dark] .service-card p,html[data-theme=dark] .branch-grid>.branch-card p,html[data-theme=dark] .branch-grid>.branch-card .branch-hours p,html[data-theme=dark] .article-card p{color:#c3d1c8}
html[data-theme=dark] .fact-icon,html[data-theme=dark] .branch-location-icon,html[data-theme=dark] .round-icon{background:#27372d;color:#a5e9be}
html[data-theme=dark] .card-footer,html[data-theme=dark] .branch-card-footer,html[data-theme=dark] .branch-hours,html[data-theme=dark] .testimonial-card-footer,html[data-theme=dark] .branch-facts>div{border-color:var(--dark-border)}
html[data-theme=dark] .branch-card-footer,html[data-theme=dark] .branch-index,html[data-theme=dark] .branch-card .eyebrow{color:#a7dfbb}
html[data-theme=dark] .service-card .card-footer,html[data-theme=dark] .article-card-copy .text-link,html[data-theme=dark] .blog-grid .article-card-copy .text-link{background:#26382b;border:1px solid #486f52;color:#d7f3de}
html[data-theme=dark] .service-card:hover .card-footer,html[data-theme=dark] .article-card:hover .text-link,html[data-theme=dark] .blog-grid .article-card:hover .text-link{background:#34523a;border-color:#71a879;color:#f5fff5}
html[data-theme=dark] .home-care-panel,html[data-theme=dark] .booking-intro,html[data-theme=dark] .booking-panel,html[data-theme=dark] .contact-panel,html[data-theme=dark] .branch-map-panel,html[data-theme=dark] .google-reviews-panel{background:#181f1a;border-color:var(--dark-border)}
html[data-theme=dark] .booking-panel .request-form,html[data-theme=dark] .branch-map-title{background:#141a16}
html[data-theme=dark] .contact-phone,html[data-theme=dark] .request-tabs,html[data-theme=dark] .notice{background:#1d2920;border-color:#425647;color:#eaf3eb}
html[data-theme=dark] .request-tab:not([aria-selected=true]):hover{background:#2b3e2e}
html[data-theme=dark] .request-tab[aria-selected=true]{background:#75d9ad;color:#092016}
html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background:#111713;border-color:#53675a;color:#f2f7f3}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#aebfb3}
html[data-theme=dark] input:focus,html[data-theme=dark] textarea:focus,html[data-theme=dark] select:focus{border-color:#84dbac;box-shadow:0 0 0 3px #75d9ad2a}
html[data-theme=dark] .detail-hero p,html[data-theme=dark] .breadcrumbs,html[data-theme=dark] .prose p,html[data-theme=dark] .rich-content p{color:#c6d3c9}
html[data-theme=dark] .branch-facts dt,html[data-theme=dark] .branch-facts .hours-label{color:#bdd8c4}
html[data-theme=dark] .home-care-hours strong,html[data-theme=dark] .home-care-hours svg{color:#91e5b9}
html[data-theme=dark] .faq-section details,html[data-theme=dark] .section-heading,html[data-theme=dark] .branch-map-details{border-color:var(--dark-border)}
html[data-theme=dark] .notice.error{background:#352020;border-color:#ad685f;color:#ffddd7}
html[data-theme=dark] .notice.success{background:#183223;border-color:#4c9a69;color:#e1f7e8}
html[data-theme=dark] .back-to-top{background:#1b2820;border-color:#54745d;color:#d9f0df}
html[data-theme=dark] footer h3,html[data-theme=dark] footer a{color:#edf5ee}
html[data-theme=dark] footer p,html[data-theme=dark] .footer-bottom{color:#bdcfc2}
html[data-theme=dark] .branch-map-fallback{background:radial-gradient(circle at 50% 25%,#252e26 0,#171d19 55%,#141916 100%)}
html[data-theme=dark] .branch-map-fallback>.bi-icon{background:#2d4031;color:#bbebc8}
html[data-theme=dark] .branch-map-details summary:hover,html[data-theme=dark] .branch-map-details summary:focus-visible{background:#26342a}

/* Administration uses the same charcoal scale and a slightly deeper navigation rail. */
html[data-theme=dark] .admin-sidebar{background:#0b100d;box-shadow:inset -1px 0 #324236}
html[data-theme=dark] .admin-main,html[data-theme=dark] .admin-content{background:var(--dark-base)}
html[data-theme=dark] .admin-topbar{background:#111613;border-color:var(--dark-border);box-shadow:0 5px 22px #0005}
html[data-theme=dark] .admin-card,html[data-theme=dark] .metric,html[data-theme=dark] .admin-language-panel,html[data-theme=dark] .role-preview-group,html[data-theme=dark] .network-setting,html[data-theme=dark] .admin-body fieldset{background:var(--dark-card);border-color:var(--dark-border);box-shadow:0 8px 24px #0003}
html[data-theme=dark] .admin-body th{background:#202a22;color:#f0f7f0}
html[data-theme=dark] .admin-body td{background:var(--dark-card);color:#e1eae2;border-color:var(--dark-border)}
html[data-theme=dark] .admin-body tr:hover td{background:#222c24}
html[data-theme=dark] .admin-body table a,html[data-theme=dark] .admin-body .text-link,html[data-theme=dark] .admin-heading .eyebrow,html[data-theme=dark] .admin-card-heading{color:#8ddfb6}
html[data-theme=dark] .admin-body .badge,html[data-theme=dark] .admin-body .admin-status-preview,html[data-theme=dark] .admin-body .admin-status-review{background:#29362a;color:#e9f6e9;border-color:#5b775e}
html[data-theme=dark] .admin-locale,html[data-theme=dark] .admin-sidebar-toggle,html[data-theme=dark] .admin-user-menu summary,html[data-theme=dark] .admin-editor-tabs button,html[data-theme=dark] .admin-profile-tabs button,html[data-theme=dark] .admin-notifications>summary{background:#202822;border-color:#4c5e50;color:#f1f7f1}
html[data-theme=dark] .admin-user-panel,html[data-theme=dark] .admin-user-identity,html[data-theme=dark] .admin-notification-panel,html[data-theme=dark] .admin-notification-heading{background:#1a221c;border-color:#405346;color:#f1f7f1}
html[data-theme=dark] .admin-notification-heading{background:#222d24}
html[data-theme=dark] .admin-notifications li{border-color:#364a39}
html[data-theme=dark] .admin-notifications li.is-unread{background:#26372a;border-inline-start-color:#8cd8a6}
html[data-theme=dark] .admin-notifications li a:hover,html[data-theme=dark] .admin-notifications li a:focus-visible,html[data-theme=dark] .admin-user-panel .admin-user-links a:hover{background:#304235}
html[data-theme=dark] .admin-preview-notice{background:#26362b;border-color:#527556;color:#e3f4e4}
html[data-theme=dark] .analytics-metrics .metric{background:#171c19}
html[data-theme=dark] .login-shell{background:#090b0a}
html[data-theme=dark] .login-card{background:#181e1a;border-color:#405047;color:#f1f7f1;box-shadow:0 28px 70px #0007}
html[data-theme=dark] .login-card .admin-logo{content:url('/assets/images/care-origin-horizontal-white.png');background:transparent;border-radius:0;padding:0}
html[data-theme=dark] .secret{background:#111713;border-color:#4f6254;color:#f3f7f4}
html[data-theme=dark] .admin-nav-link.is-active{background:#304632;color:#f6fff5}
