/* RS-SH24 — Public Home dark-mode readable UI layer
 * Final page-specific CSS. This file intentionally scopes to public_home only
 * and only activates in dark mode so Light mode RS-SH19/20/21/22/23 remains unchanged.
 */
html[data-theme="dark"] body.public-shell.page-public-home #main-content,
body.public-shell.page-public-home.theme-dark #main-content {
  --sh24-bg: #06120e;
  --sh24-bg-soft: #0a1b14;
  --sh24-surface: #0f241b;
  --sh24-surface-2: #142d22;
  --sh24-surface-3: #18372a;
  --sh24-border: #3a5f4f;
  --sh24-border-soft: rgba(172, 213, 193, .22);
  --sh24-heading: #f7fff9;
  --sh24-text: #e9f7ef;
  --sh24-muted: #c0d8cc;
  --sh24-soft: #9fc3b1;
  --sh24-green: #6ee7a8;
  --sh24-green-strong: #95f5c4;
  --sh24-orange: #ffc678;
  --sh24-danger: #fecaca;
  --sh24-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --sh24-focus: 0 0 0 4px rgba(110, 231, 168, .24);
  color-scheme: dark;
  color: var(--sh24-text) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(25, 118, 82, .26), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(255, 149, 65, .14), transparent 26%),
    linear-gradient(180deg, #06120e 0%, #081812 44%, #06120e 100%) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content a,
body.public-shell.page-public-home.theme-dark #main-content a {
  color: var(--sh24-green-strong) !important;
  text-decoration: none !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content a:hover,
body.public-shell.page-public-home.theme-dark #main-content a:hover {
  color: #ffffff !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :focus-visible,
body.public-shell.page-public-home.theme-dark #main-content :focus-visible {
  outline: 0 !important;
  box-shadow: var(--sh24-focus) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-hero,
body.public-shell.page-public-home.theme-dark #main-content .sh-hero {
  background:
    radial-gradient(circle at 16% 8%, rgba(110, 231, 168, .20), transparent 31%),
    radial-gradient(circle at 88% 14%, rgba(255, 198, 120, .14), transparent 28%),
    linear-gradient(135deg, #06130f 0%, #0a2018 55%, #06120e 100%) !important;
  border-bottom: 1px solid var(--sh24-border-soft) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-eyebrow,.sh-section-kicker),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-eyebrow,.sh-section-kicker) {
  color: #dcfff0 !important;
  background: rgba(110, 231, 168, .12) !important;
  border: 1px solid rgba(157, 245, 196, .26) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-eyebrow__dot,
body.public-shell.page-public-home.theme-dark #main-content .sh-eyebrow__dot {
  background: var(--sh24-green-strong) !important;
  box-shadow: 0 0 0 6px rgba(110, 231, 168, .18) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-hero__title,.sh-hero__title-main,.sh-section-head h2,.sh-area-copy h2,.sh-final-cta h2,.sh-vision-copy h2,.sh-matching-journey__head h2),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-hero__title,.sh-hero__title-main,.sh-section-head h2,.sh-area-copy h2,.sh-final-cta h2,.sh-vision-copy h2,.sh-matching-journey__head h2) {
  color: var(--sh24-heading) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .12) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-hero__title,
body.public-shell.page-public-home.theme-dark #main-content .sh-hero__title {
  font-weight: 600 !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-hero__title-accent,
body.public-shell.page-public-home.theme-dark #main-content .sh-hero__title-accent {
  color: var(--sh24-green-strong) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-hero__title-accent::after,
body.public-shell.page-public-home.theme-dark #main-content .sh-hero__title-accent::after {
  background: linear-gradient(90deg, var(--sh24-green-strong), var(--sh24-orange)) !important;
  opacity: .95 !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-hero__lead,.sh-section-head p,.sh-area-copy p,.sh-final-cta p,.sh-vision-copy__lead,.sh-matching-journey__head p),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-hero__lead,.sh-section-head p,.sh-area-copy p,.sh-final-cta p,.sh-vision-copy__lead,.sh-matching-journey__head p) {
  color: var(--sh24-muted) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-hero__promise > span,
body.public-shell.page-public-home.theme-dark #main-content .sh-hero__promise > span {
  color: #e7fff1 !important;
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(178, 221, 201, .18) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-hero__promise b,
body.public-shell.page-public-home.theme-dark #main-content .sh-hero__promise b {
  /* Dark ink keeps the 01–03 labels readable on the bright mint badge. */
  color: #08271c !important;
}

/* Search */
html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search,
body.public-shell.page-public-home.theme-dark #main-content .sh-search {
  background: rgba(11, 28, 21, .94) !important;
  border-color: rgba(157, 245, 196, .30) !important;
  box-shadow: var(--sh24-shadow) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search__field label,
body.public-shell.page-public-home.theme-dark #main-content .sh-search__field label {
  color: #f2fff8 !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search__control--icon,
body.public-shell.page-public-home.theme-dark #main-content .sh-search__control--icon {
  background: #081913 !important;
  border-color: #5d8874 !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search__icon,
body.public-shell.page-public-home.theme-dark #main-content .sh-search__icon {
  background: #112c21 !important;
  border-inline-end-color: #446a58 !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search__icon svg,
body.public-shell.page-public-home.theme-dark #main-content .sh-search__icon svg {
  stroke: var(--sh24-green-strong) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search__control--icon input[type="search"],
html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search select,
body.public-shell.page-public-home.theme-dark #main-content .sh-search__control--icon input[type="search"],
body.public-shell.page-public-home.theme-dark #main-content .sh-search select {
  background: #081913 !important;
  color: #f5fff9 !important;
  border-color: #5d8874 !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search__control--icon input::placeholder,
body.public-shell.page-public-home.theme-dark #main-content .sh-search__control--icon input::placeholder {
  color: #b4d4c4 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search__control--icon:focus-within,
html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search select:focus,
body.public-shell.page-public-home.theme-dark #main-content .sh-search__control--icon:focus-within,
body.public-shell.page-public-home.theme-dark #main-content .sh-search select:focus {
  border-color: var(--sh24-green-strong) !important;
  box-shadow: var(--sh24-focus) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search__submit,
body.public-shell.page-public-home.theme-dark #main-content .sh-search__submit {
  background: linear-gradient(135deg, #25a66f 0%, #0b7a50 100%) !important;
  color: #ffffff !important;
  border-color: rgba(149, 245, 196, .42) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34) !important;
}

/* Surfaces and statistics */
html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-section--white,.sh-section--cream,.sh-stat-band,.sh-vision-section,.sh-ecosystem-section,.sh-matching-journey),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-section--white,.sh-section--cream,.sh-stat-band,.sh-vision-section,.sh-ecosystem-section,.sh-matching-journey) {
  background: var(--sh24-bg-soft) !important;
  border-color: var(--sh24-border-soft) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-stat,
body.public-shell.page-public-home.theme-dark #main-content .sh-stat {
  background: linear-gradient(180deg, #11271e 0%, #0d2018 100%) !important;
  border: 1px solid var(--sh24-border-soft) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-stat strong,
body.public-shell.page-public-home.theme-dark #main-content .sh-stat strong {
  color: #ffffff !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-stat span,
body.public-shell.page-public-home.theme-dark #main-content .sh-stat span {
  color: var(--sh24-muted) !important;
}

/* Cards */
html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-service-card,.sh-herb-card,.sh-project-card,.sh-ecosystem-card,.sh-journey-step,.sh-area-card,.sh-empty-state,.sh-hero__meta-item,.sh-hero__feature,.sh-network-signal,.sh-vision-visual__frame),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-service-card,.sh-herb-card,.sh-project-card,.sh-ecosystem-card,.sh-journey-step,.sh-area-card,.sh-empty-state,.sh-hero__meta-item,.sh-hero__feature,.sh-network-signal,.sh-vision-visual__frame) {
  background: linear-gradient(180deg, var(--sh24-surface-2) 0%, var(--sh24-surface) 100%) !important;
  border: 1px solid var(--sh24-border-soft) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .30) !important;
  color: var(--sh24-text) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-service-card:hover,.sh-herb-card:hover,.sh-project-card:hover,.sh-ecosystem-card:hover,.sh-journey-step:hover,.sh-area-card:hover),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-service-card:hover,.sh-herb-card:hover,.sh-project-card:hover,.sh-ecosystem-card:hover,.sh-journey-step:hover,.sh-area-card:hover) {
  border-color: rgba(149, 245, 196, .40) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-service-card h3,.sh-herb-card h3,.sh-herb-card h3 a,.sh-project-card h3,.sh-ecosystem-card h3,.sh-journey-step strong,.sh-area-card strong,.sh-empty-state strong,.sh-hero__caption strong,.sh-hero__meta-copy strong),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-service-card h3,.sh-herb-card h3,.sh-herb-card h3 a,.sh-project-card h3,.sh-ecosystem-card h3,.sh-journey-step strong,.sh-area-card strong,.sh-empty-state strong,.sh-hero__caption strong,.sh-hero__meta-copy strong) {
  color: #ffffff !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-service-card p,.sh-herb-card p,.sh-project-card p,.sh-ecosystem-card p,.sh-journey-step p,.sh-area-card small,.sh-empty-state span,.sh-herb-card__meta,.sh-project-card__footer,.sh-hero__caption em,.sh-hero__caption-kicker,.sh-hero__meta-copy small),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-service-card p,.sh-herb-card p,.sh-project-card p,.sh-ecosystem-card p,.sh-journey-step p,.sh-area-card small,.sh-empty-state span,.sh-herb-card__meta,.sh-project-card__footer,.sh-hero__caption em,.sh-hero__caption-kicker,.sh-hero__meta-copy small) {
  color: var(--sh24-muted) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-service-card__icon,.sh-ecosystem-card__icon,.sh-hero__meta-icon,.sh-area-card__arrow),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-service-card__icon,.sh-ecosystem-card__icon,.sh-hero__meta-icon,.sh-area-card__arrow) {
  background: rgba(110, 231, 168, .14) !important;
  color: var(--sh24-green-strong) !important;
  border-color: rgba(149, 245, 196, .24) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-service-card__link,.sh-herb-card__link,.sh-text-link,.sh-project-card__footer a),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-service-card__link,.sh-herb-card__link,.sh-text-link,.sh-project-card__footer a) {
  color: var(--sh24-green-strong) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-herb-card__count,
body.public-shell.page-public-home.theme-dark #main-content .sh-herb-card__count {
  background: rgba(6, 18, 14, .86) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-project-card__status,.sh-project-card__year),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-project-card__status,.sh-project-card__year) {
  background: rgba(110, 231, 168, .14) !important;
  color: #dffff0 !important;
  border: 1px solid rgba(149, 245, 196, .24) !important;
}

/* Forest and CTA dark surfaces */
html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-section--forest,.sh-final-cta),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-section--forest,.sh-final-cta) {
  background:
    radial-gradient(circle at 12% 12%, rgba(110, 231, 168, .18), transparent 31%),
    linear-gradient(135deg, #05100c 0%, #0a241a 56%, #07140f 100%) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-final-cta__inner,
body.public-shell.page-public-home.theme-dark #main-content .sh-final-cta__inner {
  background: linear-gradient(135deg, rgba(18, 52, 38, .94), rgba(8, 29, 21, .96)) !important;
  border: 1px solid rgba(149, 245, 196, .24) !important;
  box-shadow: var(--sh24-shadow) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-button--light,.sh-button--outline-light),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-button--light,.sh-button--outline-light) {
  background: #f7fff9 !important;
  color: #08281c !important;
  border-color: rgba(255, 255, 255, .52) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-button--outline-light,
body.public-shell.page-public-home.theme-dark #main-content .sh-button--outline-light {
  background: rgba(255, 255, 255, .08) !important;
  color: #ffffff !important;
}

/* Spotlight carousel controls */
html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-spotlight__arrow,.sh-spotlight__dot),
body.public-shell.page-public-home.theme-dark #main-content :is(.sh-spotlight__arrow,.sh-spotlight__dot) {
  background: rgba(255, 255, 255, .08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .22) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-spotlight__dot.is-active,
body.public-shell.page-public-home.theme-dark #main-content .sh-spotlight__dot.is-active {
  background: var(--sh24-green-strong) !important;
  border-color: var(--sh24-green-strong) !important;
}

@media (max-width: 767.98px) {
  html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search,
  body.public-shell.page-public-home.theme-dark #main-content .sh-search {
    background: rgba(10, 27, 20, .98) !important;
  }

  html[data-theme="dark"] body.public-shell.page-public-home #main-content :is(.sh-service-card,.sh-herb-card,.sh-project-card,.sh-ecosystem-card,.sh-journey-step,.sh-area-card),
  body.public-shell.page-public-home.theme-dark #main-content :is(.sh-service-card,.sh-herb-card,.sh-project-card,.sh-ecosystem-card,.sh-journey-step,.sh-area-card) {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28) !important;
  }
}
