[data-theme="dark"] { color-scheme: dark; }

/* Shared dark variables for public + brochure + auth templates */
[data-theme="dark"] {
  --bg: #0b1220 !important;
  --panel: #111827 !important;
  --text: #e5eefb !important;
  --muted: #94a3b8 !important;
  --line: #334155 !important;
  --brand: #7aa2e3 !important;
  --brand-2: #5b84c9 !important;
  --cream: #0b1220 !important;
  --cream-2: #111827 !important;
  --ink: #e5eefb !important;
  --ink-soft: #cbd5e1 !important;
  --teal: #7aa2e3 !important;
  --teal-2: #5b84c9 !important;
  --teal-light: #7aa2e3 !important;
  --gold: #7aa2e3 !important;
  --gold-soft: #1e293b !important;
  --card: #111827 !important;
}

.public-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #1f3a5f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}
.public-theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(31, 58, 95, 0.08);
  box-shadow: none;
}
.public-theme-toggle:active { transform: translateY(0); }
.public-theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-theme-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.public-theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .public-theme-toggle {
  background: transparent;
  color: #7aa2e3;
}
[data-theme="dark"] .public-theme-toggle:hover {
  background: rgba(122, 162, 227, 0.14);
}
[data-theme="dark"] .public-theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .public-theme-toggle .icon-moon { display: block; }

/* WhatsApp floating button */
.public-whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  z-index: 1001;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.public-whatsapp-fab:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.public-whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
[data-theme="dark"] .public-whatsapp-fab {
  background: #128c4a;
  color: #ecfdf5;
  border: 1px solid #22c55e;
}
[data-theme="dark"] .public-whatsapp-fab:hover {
  filter: brightness(1.08);
}
body.public-footer-visible .public-whatsapp-fab {
  bottom: 92px;
}

@media (max-width: 860px) {
  .public-whatsapp-fab {
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
  body.public-footer-visible .public-whatsapp-fab {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* Contrast safety-net for pages with heavy inline styles */
[data-theme="dark"] body {
  background: #0b1220 !important;
  color: #dbe3ee !important;
}
[data-theme="dark"] .issue-strip {
  background: #0f2f4f !important;
  color: rgba(219, 227, 238, 0.82) !important;
}
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .card,
[data-theme="dark"] .pathway-card,
[data-theme="dark"] .service-premium,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .quote-card,
[data-theme="dark"] .story-card,
[data-theme="dark"] .notice-box,
[data-theme="dark"] .auth-panel {
  background: #111827 !important;
  color: #dbe3ee !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .hero,
[data-theme="dark"] .auth-side,
[data-theme="dark"] .services-highlight {
  background: linear-gradient(130deg, #0f2038, #17345a 58%, #214b7f) !important;
  color: #dbeafe !important;
}
[data-theme="dark"] .nav-h,
[data-theme="dark"] .nav-panel-h,
[data-theme="dark"] .footer-h-bar {
  background: #0f172a !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .nav-toggle-h {
  background: #0b1220 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .nav-toggle span,
[data-theme="dark"] .nav-toggle-h span {
  background: #dbeafe !important;
}
[data-theme="dark"] .nav-brand,
[data-theme="dark"] .nav-brand span,
[data-theme="dark"] .hero-h1,
[data-theme="dark"] .hero-h1 em,
[data-theme="dark"] .pathways-intro,
[data-theme="dark"] .timeline-h,
[data-theme="dark"] .timeline-h em,
[data-theme="dark"] .timeline-name,
[data-theme="dark"] .timeline-num,
[data-theme="dark"] .story-h,
[data-theme="dark"] .feature-head h2,
[data-theme="dark"] .testimonials-head h2,
[data-theme="dark"] .card-title,
[data-theme="dark"] .card-title em {
  color: #e5eefb !important;
}
[data-theme="dark"] .nav-links-h a,
[data-theme="dark"] .nav-alt-h,
[data-theme="dark"] .hero-deck,
[data-theme="dark"] .timeline-sub,
[data-theme="dark"] .timeline-desc,
[data-theme="dark"] .story-p,
[data-theme="dark"] .feature-head a,
[data-theme="dark"] .fcol-text,
[data-theme="dark"] .t-attr,
[data-theme="dark"] .card-sub,
[data-theme="dark"] .back-site,
[data-theme="dark"] .back-link,
[data-theme="dark"] .footer-h-links a {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .atlas-stage::before,
[data-theme="dark"] .timeline-track::before {
  border-color: rgba(148, 163, 184, 0.45) !important;
  background: rgba(148, 163, 184, 0.45) !important;
}
[data-theme="dark"] .atlas-node,
[data-theme="dark"] .t-card {
  background: #111827 !important;
  border-color: #334155 !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25) !important;
}
[data-theme="dark"] .atlas-node h3 {
  color: #7aa2e3 !important;
}
[data-theme="dark"] .atlas-node p,
[data-theme="dark"] .t-quote {
  color: #dbeafe !important;
}
[data-theme="dark"] .fcol-num,
[data-theme="dark"] .timeline-num,
[data-theme="dark"] .service-tag,
[data-theme="dark"] .service-chip,
[data-theme="dark"] .luxe-service-card .service-chip {
  color: #93c5fd !important;
  opacity: 1 !important;
}
[data-theme="dark"] .atlas-core {
  background: radial-gradient(circle at 50% 35%, rgba(122, 162, 227, 0.2), rgba(122, 162, 227, 0) 46%), linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .nav-cta-h,
[data-theme="dark"] .btn-prim-h,
[data-theme="dark"] .btn-closing-h {
  background: #1f3a5f !important;
  border-color: #1f3a5f !important;
  color: #ffffff !important;
}
[data-theme="dark"] .btn-sec-h,
[data-theme="dark"] .nav-alt-h {
  color: #dbeafe !important;
  border-color: #3b82f6 !important;
  background: #111827 !important;
}
[data-theme="dark"] .btn-sec-h:hover,
[data-theme="dark"] .nav-alt-h:hover {
  background: #1f3a5f !important;
  color: #ffffff !important;
}
[data-theme="dark"] .btn-secondary {
  background: #0f172a !important;
  color: #dbeafe !important;
  border-color: #3b82f6 !important;
}
[data-theme="dark"] .btn-secondary:hover {
  background: #1f3a5f !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}
[data-theme="dark"] .login-btn {
  background: #0f172a !important;
  color: #dbeafe !important;
  border-color: #3b82f6 !important;
}
[data-theme="dark"] .login-btn:hover {
  background: #1f3a5f !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}
[data-theme="dark"] .feature-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .quote-card,
[data-theme="dark"] .service-detail,
[data-theme="dark"] .premium-detail,
[data-theme="dark"] .doctor-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .final-cta-premium,
[data-theme="dark"] .story-card,
[data-theme="dark"] .pathway-card,
[data-theme="dark"] .service-overview-card,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .flash {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #e5eefb !important;
}
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .quote-card p,
[data-theme="dark"] .doctor-content p,
[data-theme="dark"] .doctor-content li,
[data-theme="dark"] .value-card p,
[data-theme="dark"] .service-detail p,
[data-theme="dark"] .story-card p,
[data-theme="dark"] .pathway-card li,
[data-theme="dark"] .service-overview-card p,
[data-theme="dark"] .flash,
[data-theme="dark"] .page-hero p,
[data-theme="dark"] .section-head p {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .feature-card h1,
[data-theme="dark"] .feature-card h2,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .service-card h1,
[data-theme="dark"] .service-card h2,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .story-card h1,
[data-theme="dark"] .story-card h2,
[data-theme="dark"] .story-card h3,
[data-theme="dark"] .quote-card h1,
[data-theme="dark"] .quote-card h2,
[data-theme="dark"] .quote-card h3,
[data-theme="dark"] .doctor-content h2,
[data-theme="dark"] .premium-detail h3,
[data-theme="dark"] .value-card h1,
[data-theme="dark"] .value-card h2,
[data-theme="dark"] .value-card h3,
[data-theme="dark"] .article-richtext h1,
[data-theme="dark"] .article-richtext h2,
[data-theme="dark"] .article-richtext h3,
[data-theme="dark"] .article-richtext h4 {
  color: #e5eefb !important;
}
[data-theme="dark"] .text-link,
[data-theme="dark"] .story-link,
[data-theme="dark"] .service-card a,
[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .nav-links a:hover {
  color: #93c5fd !important;
}
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .services-hero,
[data-theme="dark"] .about-hero,
[data-theme="dark"] .funnel,
[data-theme="dark"] .timeline-section {
  background: #0f172a !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .steps li,
[data-theme="dark"] .timeline-step,
[data-theme="dark"] .timeline-dot {
  background: #111827 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .steps p,
[data-theme="dark"] .timeline-desc,
[data-theme="dark"] .testimonials-head p,
[data-theme="dark"] .page-subtitle {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .steps span,
[data-theme="dark"] .timeline-dot.start,
[data-theme="dark"] .timeline-dot.end {
  background: #1e293b !important;
  color: #dbeafe !important;
  border-color: #3b82f6 !important;
}
[data-theme="dark"] .timeline-step {
  background: transparent !important;
}
[data-theme="dark"] .card-head,
[data-theme="dark"] .section-title {
  background: #111827 !important;
  color: #7aa2e3 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .brochure-list li .n {
  background: #1e293b !important;
  color: #dbeafe !important;
  border: 1px solid #3b82f6 !important;
}
[data-theme="dark"] .field-label,
[data-theme="dark"] label,
[data-theme="dark"] .card-subtitle,
[data-theme="dark"] .auth-subtitle,
[data-theme="dark"] .field-help,
[data-theme="dark"] .brochure-list li,
[data-theme="dark"] .auth-links a,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-bar {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .check {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e5eefb !important;
}
[data-theme="dark"] .check:hover { background: #1e293b !important; }
[data-theme="dark"] .hint-box,
[data-theme="dark"] .notice,
[data-theme="dark"] .msg,
[data-theme="dark"] .auth-msg {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #dbeafe !important;
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #0f172a !important;
  color: #e5eefb !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .submit-btn,
[data-theme="dark"] .auth-btn,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .brochure-btn {
  background: #1f3a5f !important;
  border-color: #1f3a5f !important;
  color: #ffffff !important;
}
[data-theme="dark"] .brand-name,
[data-theme="dark"] .card-eyebrow,
[data-theme="dark"] .brand-sub {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .doctor-role,
[data-theme="dark"] .education-block .premium-detail strong {
  color: #93c5fd !important;
}
[data-theme="dark"] .doctor-pillars span {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #dbeafe !important;
}
[data-theme="dark"] .doctor-photo-wrap img,
[data-theme="dark"] .about-hero-image img {
  border-color: #334155 !important;
}
[data-theme="dark"] .t-attr {
  border-top-color: #334155 !important;
}
[data-theme="dark"] .card-title,
[data-theme="dark"] .card-title em,
[data-theme="dark"] .auth-card .card-title,
[data-theme="dark"] .auth-card .card-title em,
[data-theme="dark"] .auth-card .card-subtitle,
[data-theme="dark"] .auth-card .card-sub,
[data-theme="dark"] .auth-card .field-label {
  color: #e5eefb !important;
}
[data-theme="dark"] .footer-right,
[data-theme="dark"] .footer-h-right {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .faq-list details {
  background: #111827 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .faq-list summary {
  color: #dbeafe !important;
}
[data-theme="dark"] .faq-list summary::marker {
  color: #93c5fd !important;
}
[data-theme="dark"] .faq-list p {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .article-layout,
[data-theme="dark"] .article-richtext,
[data-theme="dark"] .article-block-paragraph,
[data-theme="dark"] .article-block-heading,
[data-theme="dark"] .article-block-quote blockquote,
[data-theme="dark"] .article-block-quote cite,
[data-theme="dark"] .article-block-list li {
  color: #dbeafe !important;
}
[data-theme="dark"] .article-richtext p,
[data-theme="dark"] .article-richtext li,
[data-theme="dark"] .article-richtext td,
[data-theme="dark"] .article-richtext th {
  color: #dbeafe !important;
}
[data-theme="dark"] .article-richtext table,
[data-theme="dark"] .article-block-table {
  background: #111827 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .article-richtext td,
[data-theme="dark"] .article-richtext th,
[data-theme="dark"] .article-block-table td,
[data-theme="dark"] .article-block-table th {
  background: #0f172a !important;
  color: #dbeafe !important;
  border-color: #334155 !important;
}

/* Activate account split-screen specific fixes */
[data-theme="dark"] .login-shell {
  background: #020817 !important;
}
[data-theme="dark"] .login-editorial {
  background: #0f172a !important;
}
[data-theme="dark"] .login-editorial::before {
  background:
    radial-gradient(ellipse at 10% 80%, rgba(59, 130, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(122, 162, 227, 0.12) 0%, transparent 50%) !important;
}
[data-theme="dark"] .ed-brand,
[data-theme="dark"] .ed-footer {
  color: rgba(219, 234, 254, 0.72) !important;
}
[data-theme="dark"] .ed-brand span,
[data-theme="dark"] .ed-eyebrow,
[data-theme="dark"] .ed-heading em {
  color: #93c5fd !important;
}
[data-theme="dark"] .ed-eyebrow::before,
[data-theme="dark"] .ed-reqs li::before {
  background-color: #93c5fd !important;
}
[data-theme="dark"] .ed-heading {
  color: #e5eefb !important;
}
[data-theme="dark"] .ed-reqs li {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .login-form-wrap {
  background: #020817 !important;
  border-left-color: #334155 !important;
}
[data-theme="dark"] .form-title {
  color: #e5eefb !important;
}
[data-theme="dark"] .form-subtitle,
[data-theme="dark"] .back-home {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .back-home:hover,
[data-theme="dark"] .auth-links a:hover {
  color: #93c5fd !important;
}

/* Remove top issue strip on tablet/mobile to save vertical space */
@media (max-width: 1024px) {
  .issue-strip {
    display: none !important;
  }
  .login-shell,
  .auth-shell,
  .login-form-wrap {
    min-height: 100vh !important;
  }
}
