/* RS-SH19 — Public Home readable UX/UI overhaul
 * Single final layer for public_home. Designed for production readability.
 */
body.public-shell.page-public-home #main-content {
  --sh19-ink: #102a20;
  --sh19-text: #253e33;
  --sh19-muted: #526a5f;
  --sh19-green: #0f6b47;
  --sh19-green-dark: #083f2d;
  --sh19-green-soft: #e9f4ee;
  --sh19-orange: #b95c0b;
  --sh19-border: #c7d8cf;
  --sh19-surface: #ffffff;
  --sh19-canvas: #f6f8f6;
  --sh19-cream: #f6f1e7;
  --sh19-radius: 18px;
  --sh19-shadow: 0 10px 28px rgba(10, 54, 36, .09);
  --sh19-shadow-hover: 0 18px 44px rgba(10, 54, 36, .14);
  color: var(--sh19-text);
  background: var(--sh19-canvas);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.public-shell.page-public-home #main-content .sh-container {
  width: min(calc(100% - clamp(2rem, 5vw, 5rem)), 1180px);
  margin-inline: auto;
}
body.public-shell.page-public-home #main-content .sh-section {
  padding-block: clamp(4.5rem, 7vw, 7.25rem);
}
body.public-shell.page-public-home #main-content .sh-section--white { background: #fff; }
body.public-shell.page-public-home #main-content .sh-section--cream { background: var(--sh19-cream); }
body.public-shell.page-public-home #main-content .sh-section-head {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
body.public-shell.page-public-home #main-content .sh-section-head--split {
  gap: 1.5rem 3rem;
  align-items: end;
}
body.public-shell.page-public-home #main-content .sh-section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .38rem .7rem;
  border-radius: 999px;
  background: #e8f3ed;
  color: #0b6242;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .015em;
}
body.public-shell.page-public-home #main-content .sh-section-kicker--light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
body.public-shell.page-public-home #main-content :is(.sh-section-head h2,.sh-area-copy h2,.sh-final-cta h2,.sh-vision-copy h2) {
  max-width: 22ch;
  margin: .9rem 0 0;
  color: var(--sh19-ink);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -.025em;
}
body.public-shell.page-public-home #main-content :is(.sh-section-head p,.sh-area-copy p,.sh-final-cta p,.sh-vision-copy p) {
  max-width: 68ch;
  margin-top: .85rem;
  color: var(--sh19-muted);
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.78;
}
body.public-shell.page-public-home #main-content .sh-text-link {
  color: #0b5d40;
  font-size: .98rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Hero */
body.public-shell.page-public-home #main-content .sh-hero {
  padding-block: clamp(4rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 82% 15%, rgba(244, 151, 65, .14), transparent 32%),
    radial-gradient(circle at 10% 10%, rgba(61, 145, 104, .12), transparent 34%),
    linear-gradient(180deg, #fbfdfb 0%, #eef6f1 100%);
}
body.public-shell.page-public-home #main-content .sh-hero__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .78fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}
body.public-shell.page-public-home #main-content .sh-hero__title {
  max-width: 13ch;
  margin: 1rem 0 1.4rem;
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.045em;
}
body.public-shell.page-public-home #main-content .sh-hero__title-main { color: #103c2d; }
body.public-shell.page-public-home #main-content .sh-hero__title-accent { color: #158557; }
body.public-shell.page-public-home #main-content .sh-hero__lead {
  max-width: 62ch;
  color: #334f42;
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  line-height: 1.82;
}
body.public-shell.page-public-home #main-content .sh-hero__promise {
  gap: .7rem 1rem;
  margin-top: 1.45rem;
}
body.public-shell.page-public-home #main-content .sh-hero__promise > * {
  color: #214638;
  font-size: .94rem;
  font-weight: 750;
}
body.public-shell.page-public-home #main-content .sh-hero__visual {
  max-width: 470px;
  margin-inline: auto;
}
body.public-shell.page-public-home #main-content .sh-hero__feature {
  border: 1px solid #b8cfc2;
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(8, 63, 45, .15);
}
body.public-shell.page-public-home #main-content .sh-hero__caption-kicker,
body.public-shell.page-public-home #main-content .sh-hero__meta-copy small {
  font-size: .82rem;
}
body.public-shell.page-public-home #main-content .sh-hero__caption strong,
body.public-shell.page-public-home #main-content .sh-hero__meta-copy strong {
  font-size: 1rem;
}

/* Search - strict no-overlap component */
body.public-shell.page-public-home #main-content .sh-search {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(210px, .72fr) auto;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.15rem;
  border: 1px solid #b9cdc2;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--sh19-shadow);
}
body.public-shell.page-public-home #main-content .sh-search__field { min-width: 0; }
body.public-shell.page-public-home #main-content .sh-search__field label {
  display: block;
  margin: 0 0 .48rem .1rem;
  color: #183c2d;
  font-size: .86rem;
  font-weight: 800;
}
body.public-shell.page-public-home #main-content .sh-search__control--icon {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 3.35rem minmax(0, 1fr) !important;
  min-height: 3.7rem;
  overflow: hidden;
  border: 1.5px solid #8daa9a !important;
  border-radius: 14px !important;
  background: #fff !important;
}
body.public-shell.page-public-home #main-content .sh-search__icon {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  grid-column: 1 !important;
  place-items: center;
  width: 3.35rem !important;
  min-width: 3.35rem !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-inline-end: 1px solid #c8d8cf !important;
  background: #edf5f0 !important;
  transform: none !important;
  pointer-events: none;
}
body.public-shell.page-public-home #main-content .sh-search__icon svg {
  position: static !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  margin: 0 !important;
  transform: none !important;
  fill: none !important;
  stroke: #0c6745 !important;
  stroke-width: 2 !important;
}
body.public-shell.page-public-home #main-content .sh-search__control--icon input[type="search"] {
  position: static !important;
  inset: auto !important;
  grid-column: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 3.7rem !important;
  margin: 0 !important;
  padding: .9rem 1rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #132e23 !important;
  font-size: 1rem !important;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: none !important;
  transform: none !important;
}
body.public-shell.page-public-home #main-content .sh-search__control--icon input::placeholder {
  color: #61786c !important;
  opacity: 1 !important;
  font-weight: 550;
}
body.public-shell.page-public-home #main-content .sh-search__control--icon:focus-within {
  border-color: #0f6b47 !important;
  box-shadow: 0 0 0 4px rgba(15,107,71,.16) !important;
}
body.public-shell.page-public-home #main-content .sh-search select {
  min-height: 3.7rem;
  border: 1.5px solid #8daa9a;
  border-radius: 14px;
  color: #18362a;
  font-size: 1rem;
  font-weight: 650;
  background-color: #fff;
}
body.public-shell.page-public-home #main-content .sh-search__hint {
  display: block;
  margin: .5rem .12rem 0;
  color: #526b5e;
  font-size: .82rem;
  line-height: 1.45;
}
body.public-shell.page-public-home #main-content .sh-search__submit {
  align-self: end;
  min-height: 3.7rem;
  padding-inline: 1.45rem;
  border-radius: 14px;
  background: #0f744d;
  color: #fff;
  font-size: .98rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(15, 107, 71, .18);
}

/* Stats */
body.public-shell.page-public-home #main-content .sh-stat-band {
  padding-block: 1.25rem;
  background: #eef5f1;
  border-block: 1px solid #d1ded7;
}
body.public-shell.page-public-home #main-content .sh-stat-grid { gap: .85rem; }
body.public-shell.page-public-home #main-content .sh-stat {
  min-height: 92px;
  padding: 1.1rem 1.25rem;
  border: 1px solid #c8d8cf;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(12,61,42,.06);
}
body.public-shell.page-public-home #main-content .sh-stat strong {
  color: #0b6744;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1;
}
body.public-shell.page-public-home #main-content .sh-stat span {
  margin-top: .45rem;
  color: #405b4e;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
}

/* Cards */
body.public-shell.page-public-home #main-content :is(.sh-service-grid,.sh-herb-grid,.sh-project-grid,.sh-ecosystem-grid) {
  gap: clamp(1.25rem, 2.3vw, 1.8rem);
}
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) {
  border: 1px solid var(--sh19-border);
  border-radius: var(--sh19-radius);
  background: #fff;
  box-shadow: var(--sh19-shadow);
}
body.public-shell.page-public-home #main-content :is(.sh-service-card,.sh-herb-card,.sh-project-card,.sh-ecosystem-card):hover {
  border-color: #75a18a;
  box-shadow: var(--sh19-shadow-hover);
  transform: translateY(-3px);
}
body.public-shell.page-public-home #main-content .sh-service-card {
  min-height: 310px;
  padding: clamp(1.5rem, 2.4vw, 2rem);
}
body.public-shell.page-public-home #main-content :is(.sh-service-card h3,.sh-herb-card h3,.sh-project-card h3,.sh-ecosystem-card h3) {
  color: #13372a;
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  font-weight: 850;
  line-height: 1.35;
}
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) {
  color: #4a6256;
  font-size: .98rem;
  line-height: 1.72;
}
body.public-shell.page-public-home #main-content :is(.sh-service-card__link,.sh-herb-card__link,.sh-project-card__footer a) {
  color: #0c6645;
  font-size: .93rem;
  font-weight: 850;
}
body.public-shell.page-public-home #main-content .sh-herb-card__body,
body.public-shell.page-public-home #main-content .sh-project-card { padding: 1.4rem; }
body.public-shell.page-public-home #main-content .sh-herb-card__count,
body.public-shell.page-public-home #main-content .sh-project-card__status {
  color: #fff;
  background: #0f6b47;
  font-weight: 800;
}
body.public-shell.page-public-home #main-content .sh-empty-state {
  min-height: 120px;
  padding: 2rem;
  border: 1.5px dashed #a9c0b3;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: #3b5548;
}
body.public-shell.page-public-home #main-content .sh-empty-state strong {
  color: #173a2c;
  font-size: 1.08rem;
}

/* Dark green sections retain readable white text. */
body.public-shell.page-public-home #main-content :is(.sh-vision-section,.sh-matching-journey,.sh-section--forest,.sh-final-cta) {
  color: #fff;
}
body.public-shell.page-public-home #main-content :is(.sh-vision-section,.sh-matching-journey,.sh-section--forest,.sh-final-cta) :is(h2,h3,strong) {
  color: #fff;
}
body.public-shell.page-public-home #main-content :is(.sh-vision-section,.sh-matching-journey,.sh-section--forest,.sh-final-cta) p {
  color: #dcece4;
}
body.public-shell.page-public-home #main-content .sh-section--forest {
  background: linear-gradient(135deg, #073c2b 0%, #0c5639 100%);
}
body.public-shell.page-public-home #main-content .sh-area-layout { gap: clamp(2rem, 5vw, 5rem); }
body.public-shell.page-public-home #main-content .sh-area-card {
  padding: 1.2rem 1.35rem;
  background: rgba(255,255,255,.96);
}
body.public-shell.page-public-home #main-content .sh-area-card strong { color: #173a2c; font-size: 1.05rem; }
body.public-shell.page-public-home #main-content .sh-area-card small { color: #52695e; font-size: .86rem; }
body.public-shell.page-public-home #main-content .sh-final-cta__inner {
  gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}

/* Accessible interaction */
body.public-shell.page-public-home #main-content :is(a,button,input,select):focus-visible {
  outline: 3px solid #ed9a3d;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  body.public-shell.page-public-home #main-content .sh-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, .75fr);
    gap: 3rem;
  }
  body.public-shell.page-public-home #main-content .sh-search {
    grid-template-columns: minmax(0, 1fr) minmax(190px, .7fr);
  }
  body.public-shell.page-public-home #main-content .sh-search__submit {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 767.98px) {
  body.public-shell.page-public-home #main-content {
    font-size: 16px;
  }
  body.public-shell.page-public-home #main-content .sh-container {
    width: min(calc(100% - 1.5rem), 1180px);
  }
  body.public-shell.page-public-home #main-content .sh-section {
    padding-block: 4rem;
  }
  body.public-shell.page-public-home #main-content .sh-hero {
    padding-block: 3rem 4rem;
  }
  body.public-shell.page-public-home #main-content .sh-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  body.public-shell.page-public-home #main-content .sh-hero__title {
    max-width: 15ch;
    font-size: clamp(2.55rem, 12vw, 4rem);
  }
  body.public-shell.page-public-home #main-content .sh-hero__visual {
    width: min(100%, 480px);
  }
  body.public-shell.page-public-home #main-content .sh-search {
    grid-template-columns: 1fr;
    gap: .9rem;
    padding: 1rem;
  }
  body.public-shell.page-public-home #main-content .sh-search__submit {
    grid-column: auto;
  }
  body.public-shell.page-public-home #main-content .sh-section-head--split {
    align-items: flex-start;
  }
  body.public-shell.page-public-home #main-content .sh-service-card {
    min-height: auto;
  }
  body.public-shell.page-public-home #main-content .sh-final-cta__actions,
  body.public-shell.page-public-home #main-content .sh-final-cta__actions .sh-button {
    width: 100%;
  }
}
@media (max-width: 420px) {
  body.public-shell.page-public-home #main-content .sh-search__control--icon {
    grid-template-columns: 3rem minmax(0, 1fr) !important;
  }
  body.public-shell.page-public-home #main-content .sh-search__icon {
    width: 3rem !important;
    min-width: 3rem !important;
  }
  body.public-shell.page-public-home #main-content .sh-search__control--icon input[type="search"] {
    padding-inline: .8rem !important;
    font-size: .95rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.public-shell.page-public-home #main-content *,
  body.public-shell.page-public-home #main-content *::before,
  body.public-shell.page-public-home #main-content *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* RS-SH20 content reduction and readable card typography */
body.public-shell.page-public-home #main-content .sh-search__hint { display: none !important; }
body.public-shell.page-public-home #main-content .sh-journey-grid {
  color: #fff;
}
body.public-shell.page-public-home #main-content .sh-journey-step {
  padding: 1.45rem 1.5rem;
  background: rgba(255,255,255,.98);
  color: #18392c;
}
body.public-shell.page-public-home #main-content .sh-journey-step strong {
  display: block;
  color: #103c2b !important;
  font-size: clamp(1.08rem, 1.35vw, 1.25rem);
  line-height: 1.35;
  margin-bottom: .55rem;
}
body.public-shell.page-public-home #main-content .sh-journey-step p {
  color: #405d4f !important;
  font-size: .98rem;
  line-height: 1.65;
  margin: 0;
}
body.public-shell.page-public-home #main-content .sh-area-list {
  color: #173a2c;
}
body.public-shell.page-public-home #main-content .sh-area-card {
  grid-template-columns: minmax(0,1fr) auto;
  color: #173a2c !important;
}
body.public-shell.page-public-home #main-content .sh-area-card__content strong {
  color: #123d2c !important;
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  line-height: 1.35;
}
body.public-shell.page-public-home #main-content .sh-area-card__content small {
  color: #3f5d4f !important;
  font-size: .94rem;
  line-height: 1.5;
}
body.public-shell.page-public-home #main-content :is(.sh-service-card,.sh-ecosystem-card,.sh-herb-card__body,.sh-project-card) {
  font-size: 1rem;
}
body.public-shell.page-public-home #main-content :is(.sh-service-card h3,.sh-ecosystem-card h3,.sh-herb-card h3,.sh-project-card h3) {
  font-size: clamp(1.22rem, 1.55vw, 1.46rem);
  line-height: 1.35;
  margin-bottom: .65rem;
}
body.public-shell.page-public-home #main-content :is(.sh-service-card p,.sh-ecosystem-card p,.sh-herb-card p,.sh-project-card p) {
  font-size: 1rem;
  line-height: 1.65;
}
body.public-shell.page-public-home #main-content .sh-service-card { min-height: 270px; }
body.public-shell.page-public-home #main-content .sh-ecosystem-card { min-height: 250px; }
body.public-shell.page-public-home #main-content :is(.sh-ecosystem-card__index,.sh-service-card__number,.sh-area-card__rank) { display:none !important; }
@media (max-width: 767.98px) {
  body.public-shell.page-public-home #main-content :is(.sh-service-card,.sh-ecosystem-card,.sh-journey-step,.sh-project-card) {
    padding: 1.25rem;
  }
  body.public-shell.page-public-home #main-content :is(.sh-service-card h3,.sh-ecosystem-card h3,.sh-herb-card h3,.sh-project-card h3) {
    font-size: 1.18rem;
  }
}
