/* Light/dark themes for the Northstar shell. Demo illustrations preserve their own palettes. */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
.theme-toggle {
  flex: 0 0 40px; width: 40px; height: 40px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0; border-radius: 10px;
  border: 1px solid #45536c; background: #202d44; color: #f0f3fb;
  font: 23px/1 system-ui, sans-serif; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.theme-toggle:hover { background: #324361; border-color: #acbcdb; }
.theme-toggle:active { transform: scale(.96); }
html[data-theme="light"] .theme-toggle { background: #fff; color: #354259; border-color: #bdc9d6; }
html[data-theme="light"] .theme-toggle:hover { background: #eaf0f8; border-color: #7066b2; }
@media (max-width: 1000px) { .theme-toggle { order: 2; } }
@media (max-width: 650px) {
  .site-header .nav-wrap { grid-template-columns: minmax(0,1fr) auto auto; }
  .site-header .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .theme-toggle { grid-column: 2; grid-row: 1; width: 38px; height: 38px; }
  .site-header .menu-toggle { grid-column: 3; grid-row: 1; }
  .site-header .site-search { grid-column: 1 / -1; grid-row: 2; }
}

/* Dark mode: all content sections and functional controls use navy surfaces. */
html[data-theme="dark"] {
  --ns-panel: #111b2c; --ns-card: #1b2940; --ns-text: #ecf2fc;
  --ns-muted: #b7c6d9; --ns-border: #3e506c; --ns-link: #c5baff;
}
html[data-theme="dark"] body { background: #0d1422; color: var(--ns-text); }
html[data-theme="dark"] :is(.services-section,.how-section,.home-paths,.work-section,.search-section,.free-resource-section,.quote-prep-section,.audience-section,.proof-section,.work-next) {
  background: var(--ns-panel); color: var(--ns-text);
}
html[data-theme="dark"] :is(.service-card,.path-card,.search-result-card,.search-empty,.work-card,.proof-card,.audience-card,.demo-tile,.checklist-group,.quote-prep-card) {
  background: var(--ns-card); border-color: var(--ns-border); color: var(--ns-text);
}
html[data-theme="dark"] :is(.work-card-featured,.proof-card) { background: #202f47; }
html[data-theme="dark"] :is(.service-card p,.service-bottom,.pricing-note,.section-heading>p,.step p,.path-card p,.path-number,.search-result-card p,.search-page-heading p,.search-empty p,.work-card p,.proof-card p,.audience-card p,.work-card ul,.demo-tile .tile-body p,.quote-prep-card p,.free-resource-section p,.work-next p,.audience-note,.quote-prep-note,.scope-panel p,.offer-includes li,.checklist-group label) {
  color: var(--ns-muted);
}
html[data-theme="dark"] :is(.service-bottom b,.service-card h3,.path-card h3,.search-result-card h3,.work-card h3,.work-card h4,.proof-card h3,.audience-card h3,.demo-tile h3,.checklist-group h2,.quote-prep-card h3,.scope-panel h3) { color: var(--ns-text); }
html[data-theme="dark"] :is(.service-bottom,.path-action,.step) { border-color: var(--ns-border); }
html[data-theme="dark"] .service-bottom a { background: #30435d; color: #f1f5fd; }
html[data-theme="dark"] :is(.preview-link,.work-actions a,.audience-card a,.audience-note a,.quote-prep-note a,.free-resource-section a,.proof-link,.search-result-card .result-type,.work-type,.path-icon,.search-page-heading .text-accent) { color: var(--ns-link); }
html[data-theme="dark"] .eyebrow.dark { color: #c9e7a1; }
html[data-theme="dark"] :is(.scope-panel,.audience-note,.quote-prep-note,.launch-note,.work-card .work-caveat) {
  background: #24334c; color: var(--ns-muted); border-color: #ae9ff6;
}
html[data-theme="dark"] .scope-panel .btn { background: #c8fc72; color: #111c2f; }
html[data-theme="dark"] .work-status { background: #254c46; color: #d8f9e9; }
html[data-theme="dark"] .contact-section { background: #1a2037; color: #f0f3fd; }
html[data-theme="dark"] .contact-section .eyebrow { color: #c5b7ff; }
html[data-theme="dark"] :is(.contact-grid>div:first-child>p,.contact-side-note,.contact-side-note b,.form-top>span,.form-message) { color: #bfccdd; }
html[data-theme="dark"] .contact-panel { background: #24334a; color: #f4f6fe; box-shadow: 0 25px 65px #050a1780; }
html[data-theme="dark"] .contact-panel :is(input,select,textarea) {
  background: #151f31; border-color: #61708a; color: #f0f5ff;
}
html[data-theme="dark"] .contact-panel :is(input,textarea)::placeholder { color: #b1bfd1; }
html[data-theme="dark"] .contact-panel select option { background: #151f31; color: #f0f5ff; }
html[data-theme="dark"] .form-message[data-state="success"] { color: #99e7b2; }
html[data-theme="dark"] .form-message[data-state="error"] { color: #ffadba; }
html[data-theme="dark"] .contact-section .direct-email a { color: #d8ceff; }
html[data-theme="dark"] .checklist-group input { accent-color: #bdadff; }

/* Light mode: ivory, pale lavender, dark navy text; keep Northstar lime accents. */
html[data-theme="light"] body { background: #fbfcfa; color: #182438; }
html[data-theme="light"] .announcement { background: #eaf0e9; color: #25364a; }
html[data-theme="light"] .announcement-line { background: #a9b6b3; }
html[data-theme="light"] .site-header { background: rgba(250,252,250,.97); border-color: #d8e0e3; box-shadow: 0 2px 18px #1f354010; }
html[data-theme="light"] .brand { color: #14243a; }
html[data-theme="light"] .brand small { color: #63758a; }
html[data-theme="light"] .nav-links>a { color: #35465c; }
html[data-theme="light"] .nav-links>a:hover,
html[data-theme="light"] .nav-links>a[aria-current="page"]:not(.nav-cta) { color: #4d419b; }
html[data-theme="light"] .nav-links .nav-cta { color: #152331; background: #c8fc72; }
html[data-theme="light"] .nav-links .nav-cta:hover { color: #152331; background: #dffd9e; }
html[data-theme="light"] .menu-toggle { border-color: #bfcbd8; }
html[data-theme="light"] .menu-toggle span { background: #24364a; }
html[data-theme="light"] .site-search { background: #fff; color: #415873; border-color: #c9d3de; }
html[data-theme="light"] .site-search:focus-within { background: #fff; border-color: #6157a4; }
html[data-theme="light"] .site-search input { color: #1d2d43; }
html[data-theme="light"] .site-search input::placeholder { color: #66788b; }
html[data-theme="light"] .search-shortcut { background: #e8edf3; color: #435469; }
html[data-theme="light"] .search-suggestions { background: #fff; color: #1d2d43; border-color: #ced8e3; box-shadow: 0 25px 58px #25365330; }
html[data-theme="light"] :is(.suggestion-heading,.suggestion-item p,.suggestion-empty) { color: #4f6074; }
html[data-theme="light"] .suggestion-title { color: #182b46; }
html[data-theme="light"] :is(.suggestion-type,.suggestion-all) { color: #4e4099; }
html[data-theme="light"] .suggestion-all { border-color: #dce2ea; }
html[data-theme="light"] :is(.suggestion-item:hover,.suggestion-item:focus-visible,.suggestion-all:hover,.suggestion-all:focus-visible) { background: #eff1fb; }
html[data-theme="light"] :is(.hero,.page-intro) { background: #f4f7f2; color: #17263a; }
html[data-theme="light"] .hero-glow { background: radial-gradient(circle,rgba(164,152,242,.19),transparent 68%); }
html[data-theme="light"] :is(.hero .eyebrow,.page-intro .eyebrow) { color: #476b46; }
html[data-theme="light"] :is(.hero h1 em,.page-intro h1 em) { color: #6555b2; }
html[data-theme="light"] :is(.hero-lead,.hero-notes,.page-intro p,.crumbs,.hero-footer,.hero-footer b) { color: #526477; }
html[data-theme="light"] .hero-footer { border-color: #cbd5dc; }
html[data-theme="light"] .crumbs a { color: #4b4096; }
html[data-theme="light"] .btn-outline { color: #23344a; border-color: #99aabc; }
html[data-theme="light"] .btn-outline:hover { background: #e4e8f4; color: #15243a; }
html[data-theme="light"] .shop-section { background: #e8edf5; color: #1b2b41; }
html[data-theme="light"] :is(.shop-section h2,.shop-heading .section-heading h2) { color: #1b2b41; }
html[data-theme="light"] .shop-section :is(.section-heading>p,.filter-status,.shop-disclaimer,.pricing-note) { color: #53657c; }
html[data-theme="light"] .product-card { background: #fff; border-color: #d7dfe8; color: #192a41; }
html[data-theme="light"] .product-card:hover { border-color: #8b7ac8; }
html[data-theme="light"] .product-info p { color: #526476; }
html[data-theme="light"] .product-category { color: #375c42; }
html[data-theme="light"] .product-bottom { border-color: #d6dee8; }
html[data-theme="light"] .product-link { color: #433591; }
html[data-theme="light"] .product-link[aria-disabled="true"] { color: #68798b; }
html[data-theme="light"] .filter-pill { border-color: #9cadc0; color: #263851; }
html[data-theme="light"] .filter-pill:hover { border-color: #6458a4; }
html[data-theme="light"] .filter-pill.is-active { background: #203453; color: #fff; border-color: #203453; }
html[data-theme="light"] .feature-card { background: #d7f9a1; color: #162431; border-color: #bbd884; }
html[data-theme="light"] .feature-card em { color: #4e6653; }
html[data-theme="light"] .faq-section { background: #f3f5fa; color: #1d2c42; }
html[data-theme="light"] .faq-list,
html[data-theme="light"] .faq-list details { border-color: #c9d4e0; }
html[data-theme="light"] :is(.faq-section>p,.faq-grid>div:first-child>p,.faq-list p) { color: #4f6078; }
html[data-theme="light"] .faq-list summary span { color: #5446a0; }
html[data-theme="light"] .faq-section .text-link { color: #4b4099; }
html[data-theme="light"] .mini-cta { background: #e3e9f5; color: #172b46; }
html[data-theme="light"] .mini-cta-wrap span:not(.btn span) { color: #526a44; }
html[data-theme="light"] .site-footer { background: #e6ecf3; color: #30445c; }
html[data-theme="light"] .site-footer .brand { color: #152741; }
html[data-theme="light"] .site-footer .brand small { color: #52677d; }
html[data-theme="light"] .footer-top p { color: #4c6179; }
html[data-theme="light"] .footer-nav b { color: #425b73; }
html[data-theme="light"] .footer-nav a:hover { color: #4b4099; }
html[data-theme="light"] .footer-bottom { border-color: #c5d0de; color: #4f637a; }
html[data-theme="light"] .error-body { background: #f3f6f6; color: #17263e; }
html[data-theme="light"] .error-page p { color: #536377; }
@media (max-width: 650px) {
  html[data-theme="light"] .nav-links { background: #fcfdfc; border-color: #d7dee5; box-shadow: 0 18px 30px #273d5428; }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } }

/* Keep the new website-care panels readable in both Northstar themes. */
html[data-theme="dark"] .care-details{background:#111b2c;color:#ecf2fc}
html[data-theme="dark"] .care-detail-card{background:#1b2940;border-color:#3e506c;color:#ecf2fc}
html[data-theme="dark"] .care-detail-card p{color:#b7c6d9}
html[data-theme="dark"] .care-details-note{background:#24334c;border-color:#a5d46b;color:#b7c6d9}
html[data-theme="light"] .care-details{background:#f4f4ed;color:#19212c}
html[data-theme="light"] .care-detail-card{background:#fff;color:#19212c;border-color:#e0e4e3}
html[data-theme="light"] .care-detail-card p{color:#536276}
