/* SmartHerb Public Home — RS-VC44
 * Warm botanical public experience inspired by the attached DESIGN.md references.
 * Scope: public_home.php only (.sh-home).
 */

.sh-home {
  --sh-forest-950: #0b2f26;
  --sh-forest-900: #123c31;
  --sh-forest-800: #185244;
  --sh-forest-700: #1f6b55;
  --sh-green-600: #23835f;
  --sh-green-500: #2f9870;
  --sh-mint-200: #cfe7dc;
  --sh-mint-100: #e7f3ed;
  --sh-cream-100: #f4f1e9;
  --sh-cream-50: #faf8f3;
  --sh-sand-100: #f1e5d2;
  --sh-white: #ffffff;
  --sh-ink: #1f2925;
  --sh-muted: #66736d;
  --sh-border: rgba(18, 60, 49, 0.13);
  --sh-shadow-sm: 0 1px 2px rgba(11, 47, 38, 0.06), 0 8px 24px rgba(11, 47, 38, 0.06);
  --sh-shadow-md: 0 18px 44px rgba(11, 47, 38, 0.12);
  --sh-radius-sm: 14px;
  --sh-radius-md: 22px;
  --sh-radius-lg: 32px;
  --sh-section-space: clamp(4.5rem, 8vw, 7rem);
  color: var(--sh-ink);
  background: var(--sh-white);
  font-family: "Noto Sans Thai", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: clip;
}

[data-theme="dark"] .sh-home,
body.theme-dark .sh-home {
  --sh-forest-950: #061d18;
  --sh-forest-900: #0a2a22;
  --sh-forest-800: #104237;
  --sh-forest-700: #17614d;
  --sh-green-600: #38a778;
  --sh-green-500: #50bb8d;
  --sh-mint-200: #1d4e3f;
  --sh-mint-100: #102f27;
  --sh-cream-100: #10231e;
  --sh-cream-50: #0c1c18;
  --sh-sand-100: #30271d;
  --sh-white: #0a1714;
  --sh-ink: #eef8f3;
  --sh-muted: #a8bbb3;
  --sh-border: rgba(218, 244, 232, 0.13);
  --sh-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 28px rgba(0, 0, 0, 0.22);
  --sh-shadow-md: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.sh-home *,
.sh-home *::before,
.sh-home *::after {
  box-sizing: border-box;
}

.sh-home img {
  display: block;
  max-width: 100%;
}

.sh-container {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
}

.sh-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  transform: translateY(-160%);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #123c31;
  box-shadow: var(--sh-shadow-md);
  font-weight: 700;
  text-decoration: none;
}

.sh-skip-link:focus {
  transform: translateY(0);
}

.sh-home a,
.sh-home button,
.sh-home input,
.sh-home select {
  -webkit-tap-highlight-color: transparent;
}

.sh-home :where(a, button, input, select):focus-visible {
  outline: 3px solid rgba(47, 152, 112, 0.34);
  outline-offset: 3px;
}

.sh-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
  background: var(--sh-cream-100);
}

.sh-hero::after {
  content: "";
  position: absolute;
  right: clamp(-5rem, -2vw, -1rem);
  top: 10%;
  width: clamp(8rem, 18vw, 15rem);
  aspect-ratio: 1;
  border: 1px solid rgba(18, 60, 49, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.sh-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.sh-hero__content {
  min-width: 0;
}

.sh-eyebrow,
.sh-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sh-forest-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sh-eyebrow__dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--sh-green-600);
  box-shadow: 0 0 0 6px rgba(35, 131, 95, 0.12);
}

.sh-hero__title {
  margin: 1.25rem 0 1.25rem;
  max-width: 13ch;
  color: var(--sh-forest-950);
  font-size: clamp(2.65rem, 5.6vw, 5rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.sh-hero__title span {
  color: var(--sh-green-600);
}

.sh-hero__lead {
  max-width: 62ch;
  margin: 0;
  color: var(--sh-muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.85;
}

.sh-search {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(160px, 0.72fr) auto;
  align-items: end;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.82rem;
  border: 1px solid var(--sh-border);
  border-radius: 24px;
  background: var(--sh-white);
  box-shadow: var(--sh-shadow-md);
}

.sh-search__field {
  min-width: 0;
}

.sh-search__field label {
  display: block;
  margin: 0 0 0.38rem 0.25rem;
  color: var(--sh-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.sh-search__control {
  position: relative;
}

.sh-search__control svg {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--sh-green-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.sh-search input,
.sh-search select {
  width: 100%;
  min-height: 3.35rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--sh-cream-50);
  color: var(--sh-ink);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sh-search input {
  padding: 0.85rem 0.95rem 0.85rem 2.75rem;
}

.sh-search select {
  padding: 0.85rem 2.35rem 0.85rem 0.95rem;
}

.sh-search input::placeholder {
  color: color-mix(in srgb, var(--sh-muted) 80%, transparent);
}

.sh-search input:focus,
.sh-search select:focus {
  border-color: rgba(35, 131, 95, 0.45);
  background: var(--sh-white);
  box-shadow: 0 0 0 4px rgba(35, 131, 95, 0.1);
  outline: none;
}

.sh-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sh-button:hover {
  transform: translateY(-2px);
}

.sh-button:active {
  transform: scale(0.97);
}

.sh-button--primary {
  border-color: var(--sh-green-600);
  background: var(--sh-green-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(35, 131, 95, 0.2);
}

.sh-button--primary:hover {
  border-color: var(--sh-forest-700);
  background: var(--sh-forest-700);
  color: #fff;
}

.sh-button--outline {
  border-color: rgba(18, 60, 49, 0.4);
  background: transparent;
  color: var(--sh-forest-900);
}

.sh-button--outline:hover {
  border-color: var(--sh-forest-700);
  background: rgba(35, 131, 95, 0.08);
  color: var(--sh-forest-900);
}

.sh-button--light {
  border-color: #fff;
  background: #fff;
  color: #123c31;
}

.sh-button--light:hover {
  background: var(--sh-mint-100);
  color: #123c31;
}

.sh-button--outline-light {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.sh-button--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sh-search__submit {
  min-height: 3.35rem;
  padding-inline: 1.25rem;
  white-space: nowrap;
}

.sh-search__submit svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sh-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-top: 1.25rem;
  color: var(--sh-muted);
  font-size: 0.84rem;
}

.sh-popular__label {
  font-weight: 700;
}

.sh-popular a {
  color: var(--sh-forest-700);
  font-weight: 700;
  text-decoration: none;
}

.sh-popular a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sh-hero__visual {
  position: relative;
  min-height: clamp(460px, 58vw, 610px);
}

.sh-hero__image-wrap {
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--sh-radius-lg);
  background: var(--sh-mint-100);
  box-shadow: var(--sh-shadow-md);
}

[data-theme="dark"] .sh-hero__image-wrap,
body.theme-dark .sh-hero__image-wrap {
  border-color: rgba(255, 255, 255, 0.08);
}

.sh-hero__image-wrap img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.sh-hero__caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: grid;
  gap: 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: rgba(8, 36, 29, 0.78);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.sh-hero__caption-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
}

.sh-hero__caption strong {
  font-size: 1.15rem;
}

.sh-hero__caption em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-style: italic;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-hero__floating {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  background: var(--sh-white);
  color: var(--sh-ink);
  box-shadow: var(--sh-shadow-sm);
  font-size: 0.82rem;
}

.sh-hero__floating strong {
  color: var(--sh-forest-700);
}

.sh-hero__floating--top {
  top: 2rem;
  left: -1.7rem;
}

.sh-hero__floating--bottom {
  right: -1.35rem;
  bottom: 7.25rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  border-radius: 18px;
}

.sh-hero__floating--bottom span {
  color: var(--sh-muted);
  font-size: 0.7rem;
}

.sh-hero__floating-icon {
  color: var(--sh-green-600);
  font-size: 0.62rem;
}

.sh-stat-band {
  background: var(--sh-forest-900);
  color: #fff;
}

.sh-stat-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sh-stat {
  display: grid;
  gap: 0.18rem;
  padding: 2rem clamp(1rem, 3vw, 2.2rem);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.sh-stat:first-child {
  border-left: 0;
}

.sh-stat strong {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.sh-stat span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

.sh-section {
  padding: var(--sh-section-space) 0;
}

.sh-section--white {
  background: var(--sh-white);
}

.sh-section--cream {
  background: var(--sh-cream-50);
}

.sh-section--forest {
  background: var(--sh-forest-900);
  color: #fff;
}

.sh-section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.1rem);
}

.sh-section-head--split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.sh-section-head h2,
.sh-area-copy h2,
.sh-final-cta h2 {
  margin: 0.72rem 0 0.8rem;
  color: var(--sh-forest-950);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 720;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.sh-section-head p,
.sh-area-copy p,
.sh-final-cta p {
  margin: 0;
  color: var(--sh-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.sh-section-kicker--light {
  color: var(--sh-mint-200);
}

.sh-text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.22rem;
  border-bottom: 1px solid var(--sh-forest-700);
  color: var(--sh-forest-800);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.sh-text-link:hover {
  color: var(--sh-green-600);
}

.sh-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.sh-service-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--sh-cream-50);
  color: var(--sh-ink);
  box-shadow: var(--sh-shadow-sm);
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.sh-service-card--mint {
  background: var(--sh-mint-100);
}

.sh-service-card--sand {
  background: var(--sh-sand-100);
}

.sh-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(35, 131, 95, 0.28);
  box-shadow: var(--sh-shadow-md);
  color: var(--sh-ink);
}

.sh-service-card__icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--sh-forest-900);
  color: #fff;
}

.sh-service-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sh-service-card__number {
  position: absolute;
  top: 1.6rem;
  right: 1.75rem;
  color: color-mix(in srgb, var(--sh-forest-900) 42%, transparent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sh-service-card h3 {
  margin: 3rem 0 0.8rem;
  color: var(--sh-forest-950);
  font-size: 1.42rem;
  font-weight: 750;
}

.sh-service-card p {
  margin: 0;
  color: var(--sh-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.sh-service-card__link {
  position: absolute;
  right: 1.8rem;
  bottom: 1.7rem;
  left: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sh-forest-800);
  font-size: 0.88rem;
  font-weight: 800;
}

.sh-herb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.sh-herb-card {
  overflow: hidden;
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-md);
  background: var(--sh-white);
  box-shadow: var(--sh-shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.sh-herb-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-shadow-md);
}

.sh-herb-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sh-mint-100);
}

.sh-herb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.sh-herb-card:hover .sh-herb-card__media img {
  transform: scale(1.045);
}

.sh-herb-card__count {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  background: rgba(8, 36, 29, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.sh-herb-card__body {
  padding: 1.25rem 1.25rem 1.3rem;
}

.sh-herb-card__meta {
  margin-bottom: 0.55rem;
  color: var(--sh-green-600);
  font-size: 0.72rem;
  font-weight: 800;
}

.sh-herb-card h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 750;
}

.sh-herb-card h3 a {
  color: var(--sh-forest-950);
  text-decoration: none;
}

.sh-herb-card h3 a:hover {
  color: var(--sh-green-600);
}

.sh-herb-card p {
  display: -webkit-box;
  min-height: 2.8rem;
  margin: 0.45rem 0 1rem;
  overflow: hidden;
  color: var(--sh-muted);
  font-size: 0.84rem;
  font-style: italic;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sh-herb-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sh-forest-800);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.sh-area-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.sh-area-copy h2,
.sh-final-cta h2 {
  color: #fff;
}

.sh-area-copy p,
.sh-final-cta p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.7);
}

.sh-area-copy .sh-button {
  margin-top: 1.75rem;
}

.sh-area-list {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.sh-area-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  transition: padding 0.18s ease, background 0.18s ease;
}

.sh-area-card:hover {
  padding-inline: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sh-area-card__rank {
  color: var(--sh-mint-200);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sh-area-card__content {
  display: grid;
  gap: 0.18rem;
}

.sh-area-card__content strong {
  font-size: 1.05rem;
}

.sh-area-card__content small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.sh-area-card__arrow {
  font-size: 1.15rem;
}

.sh-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.sh-project-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-md);
  padding: 1.5rem;
  background: var(--sh-white);
  box-shadow: var(--sh-shadow-sm);
}

.sh-project-card__top,
.sh-project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sh-project-card__status,
.sh-project-card__year {
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
}

.sh-project-card__status {
  background: var(--sh-mint-100);
  color: var(--sh-forest-700);
}

.sh-project-card__year {
  color: var(--sh-muted);
}

.sh-project-card h3 {
  margin: 1.55rem 0 0.7rem;
  color: var(--sh-forest-950);
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.45;
}

.sh-project-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--sh-muted);
  font-size: 0.88rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.sh-project-card__footer {
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid var(--sh-border);
  color: var(--sh-muted);
  font-size: 0.78rem;
}

.sh-project-card__footer a {
  color: var(--sh-forest-700);
  font-weight: 800;
  text-decoration: none;
}

.sh-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  border: 1px dashed var(--sh-border);
  border-radius: var(--sh-radius-md);
  padding: 2.5rem 1.25rem;
  background: color-mix(in srgb, var(--sh-cream-50) 76%, transparent);
  color: var(--sh-muted);
  text-align: center;
}

.sh-empty-state strong {
  color: var(--sh-forest-900);
}

.sh-empty-state--dark {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
}

.sh-empty-state--dark strong {
  color: #fff;
}

.sh-final-cta {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--sh-green-600);
  color: #fff;
}

.sh-final-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.sh-final-cta h2 {
  max-width: 18ch;
  margin-top: 0.55rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.sh-final-cta__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sh-home + .public-footer {
  margin-top: 0 !important;
}

@media (max-width: 1199.98px) {
  .sh-hero__floating--top {
    left: 1rem;
  }

  .sh-hero__floating--bottom {
    right: 1rem;
  }
}

@media (max-width: 991.98px) {
  .sh-hero__grid,
  .sh-area-layout {
    grid-template-columns: 1fr;
  }

  .sh-hero__content {
    max-width: 760px;
  }

  .sh-hero__title {
    max-width: 14ch;
  }

  .sh-hero__visual {
    min-height: 520px;
  }

  .sh-service-grid,
  .sh-herb-grid,
  .sh-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sh-service-card:last-child,
  .sh-project-card:last-child {
    grid-column: span 2;
  }

  .sh-final-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .sh-container {
    width: min(100% - 1.25rem, 1240px);
  }

  .sh-hero {
    padding-top: 2.5rem;
  }

  .sh-hero__title {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
  }

  .sh-search {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .sh-search__submit {
    width: 100%;
  }

  .sh-stat-band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sh-stat {
    min-height: 118px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sh-stat:nth-child(odd) {
    border-left: 0;
  }

  .sh-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .sh-section-head--split {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .sh-service-grid,
  .sh-herb-grid,
  .sh-project-grid {
    grid-template-columns: 1fr;
  }

  .sh-service-card:last-child,
  .sh-project-card:last-child {
    grid-column: auto;
  }

  .sh-service-card {
    min-height: 290px;
  }

  .sh-area-layout {
    gap: 2.2rem;
  }
}

@media (max-width: 575.98px) {
  .sh-hero__visual {
    min-height: 430px;
  }

  .sh-hero__image-wrap {
    border-width: 6px;
    border-radius: 24px;
  }

  .sh-hero__caption {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    border-radius: 16px;
  }

  .sh-hero__floating--top {
    top: 0.85rem;
    left: 0.85rem;
  }

  .sh-hero__floating--bottom {
    display: none;
  }

  .sh-hero__actions,
  .sh-final-cta__actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .sh-hero__actions .sh-button,
  .sh-final-cta__actions .sh-button {
    width: 100%;
  }

  .sh-stat {
    padding: 1.35rem 1rem;
  }

  .sh-stat strong {
    font-size: 1.8rem;
  }

  .sh-section {
    padding-block: 4rem;
  }

  .sh-project-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-home *,
  .sh-home *::before,
  .sh-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   RS-VC44 Public home layout and contrast correction
   - Prevent Bootstrap container nesting conflicts
   - Keep hero/supporting information in normal document flow
   - Override legacy public-shell !important color rules locally
========================================================= */

body.public-shell.page-public-home {
  overflow-x: hidden;
  background: #f7f5ef !important;
}

body.public-shell.page-public-home .public-navbar {
  z-index: 1030;
}

body.public-shell.page-public-home .sh-home {
  width: 100%;
  overflow-x: clip;
  isolation: isolate;
}

body.public-shell.page-public-home .sh-container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

body.public-shell.page-public-home .sh-hero {
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

body.public-shell.page-public-home .sh-hero__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

body.public-shell.page-public-home .sh-hero__content,
body.public-shell.page-public-home .sh-hero__visual,
body.public-shell.page-public-home .sh-section-head > *,
body.public-shell.page-public-home .sh-area-layout > * {
  min-width: 0;
}

body.public-shell.page-public-home .sh-hero__title {
  max-width: 15ch;
  text-wrap: balance;
}

body.public-shell.page-public-home .sh-search {
  grid-template-columns: minmax(0, 1fr) minmax(170px, .48fr);
  align-items: end;
  padding: 1rem;
}

body.public-shell.page-public-home .sh-search__submit {
  width: 100%;
  grid-column: 1 / -1;
}

body.public-shell.page-public-home .sh-hero__visual {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 1rem;
}

body.public-shell.page-public-home .sh-hero__image-wrap {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 4.25;
}

body.public-shell.page-public-home .sh-hero__image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 0;
}

body.public-shell.page-public-home .sh-hero__caption {
  position: static;
  z-index: auto;
  width: 100%;
  min-width: 0;
  border-color: rgba(255, 255, 255, .18);
  background: #123c31;
  backdrop-filter: none;
}

body.public-shell.page-public-home .sh-hero__caption em {
  white-space: normal;
  overflow-wrap: anywhere;
}

body.public-shell.page-public-home .sh-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

body.public-shell.page-public-home .sh-hero__meta-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--sh-border);
  border-radius: 18px;
  padding: .9rem 1rem;
  background: var(--sh-white);
  box-shadow: var(--sh-shadow-sm);
}

body.public-shell.page-public-home .sh-hero__meta-icon {
  flex: 0 0 auto;
  color: var(--sh-green-600);
  font-size: .7rem;
}

body.public-shell.page-public-home .sh-hero__meta-copy {
  display: grid;
  min-width: 0;
  gap: .16rem;
}

body.public-shell.page-public-home .sh-hero__meta-copy small {
  color: var(--sh-muted) !important;
  font-size: .72rem;
  line-height: 1.35;
}

body.public-shell.page-public-home .sh-hero__meta-copy strong {
  overflow-wrap: anywhere;
  font-size: .9rem;
  line-height: 1.35;
}

body.public-shell.page-public-home .sh-hero__floating {
  display: none !important;
}

body.public-shell.page-public-home .sh-service-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: visible;
}

body.public-shell.page-public-home .sh-service-card h3 {
  margin-top: 2.5rem;
}

body.public-shell.page-public-home .sh-service-card__link {
  position: static;
  width: 100%;
  margin-top: auto;
  padding-top: 1.5rem;
}

body.public-shell.page-public-home .sh-section-head--split {
  align-items: flex-end;
}

body.public-shell.page-public-home .sh-herb-card,
body.public-shell.page-public-home .sh-project-card,
body.public-shell.page-public-home .sh-service-card {
  min-width: 0;
}

body.public-shell.page-public-home .sh-project-card__top,
body.public-shell.page-public-home .sh-project-card__footer {
  flex-wrap: wrap;
}

/* Explicit contrast against legacy app.css public-shell !important rules. */
body.public-shell.page-public-home .sh-home .sh-hero__title,
body.public-shell.page-public-home .sh-home .sh-section-head h2,
body.public-shell.page-public-home .sh-home .sh-service-card h3,
body.public-shell.page-public-home .sh-home .sh-herb-card h3,
body.public-shell.page-public-home .sh-home .sh-project-card h3,
body.public-shell.page-public-home .sh-home .sh-empty-state strong,
body.public-shell.page-public-home .sh-home .sh-hero__meta-copy strong {
  color: var(--sh-forest-950) !important;
}

body.public-shell.page-public-home .sh-home .sh-hero__title span,
body.public-shell.page-public-home .sh-home .sh-section-kicker,
body.public-shell.page-public-home .sh-home .sh-eyebrow,
body.public-shell.page-public-home .sh-home .sh-herb-card__meta {
  color: var(--sh-green-600) !important;
}

body.public-shell.page-public-home .sh-home .sh-hero__lead,
body.public-shell.page-public-home .sh-home .sh-section-head p,
body.public-shell.page-public-home .sh-home .sh-service-card p,
body.public-shell.page-public-home .sh-home .sh-herb-card p,
body.public-shell.page-public-home .sh-home .sh-project-card > p,
body.public-shell.page-public-home .sh-home .sh-project-card__footer,
body.public-shell.page-public-home .sh-home .sh-popular,
body.public-shell.page-public-home .sh-home .sh-search__field label {
  color: var(--sh-muted) !important;
}

body.public-shell.page-public-home .sh-home .sh-stat strong,
body.public-shell.page-public-home .sh-home .sh-stat span,
body.public-shell.page-public-home .sh-home .sh-hero__caption strong,
body.public-shell.page-public-home .sh-home .sh-area-copy h2,
body.public-shell.page-public-home .sh-home .sh-area-card strong,
body.public-shell.page-public-home .sh-home .sh-empty-state--dark strong,
body.public-shell.page-public-home .sh-home .sh-final-cta h2 {
  color: #ffffff !important;
}

body.public-shell.page-public-home .sh-home .sh-area-copy p,
body.public-shell.page-public-home .sh-home .sh-final-cta p {
  color: rgba(255, 255, 255, .82) !important;
}

body.public-shell.page-public-home .sh-home .sh-area-card small,
body.public-shell.page-public-home .sh-home .sh-empty-state--dark,
body.public-shell.page-public-home .sh-home .sh-empty-state--dark span {
  color: rgba(255, 255, 255, .76) !important;
}

body.public-shell.page-public-home .sh-home .sh-section-kicker--light,
body.public-shell.page-public-home .sh-home .sh-area-card__rank {
  color: #bcebd6 !important;
}

body.public-shell.page-public-home .sh-home .sh-hero__caption-kicker,
body.public-shell.page-public-home .sh-home .sh-hero__caption em {
  color: rgba(255, 255, 255, .8) !important;
}

body.public-shell.page-public-home .sh-home a.sh-button--primary,
body.public-shell.page-public-home .sh-home button.sh-button--primary {
  color: #ffffff !important;
}

body.public-shell.page-public-home .sh-home a.sh-button--outline {
  color: var(--sh-forest-900) !important;
}

body.public-shell.page-public-home .sh-home a.sh-button--light {
  color: #123c31 !important;
  background: #ffffff !important;
}

body.public-shell.page-public-home .sh-home a.sh-button--outline-light,
body.public-shell.page-public-home .sh-home a.sh-area-card {
  color: #ffffff !important;
}

body.public-shell.page-public-home .sh-home a.sh-service-card,
body.public-shell.page-public-home .sh-home a.sh-herb-card__link,
body.public-shell.page-public-home .sh-home a.sh-text-link,
body.public-shell.page-public-home .sh-home .sh-herb-card h3 a,
body.public-shell.page-public-home .sh-home .sh-project-card__footer a,
body.public-shell.page-public-home .sh-home .sh-popular a {
  color: var(--sh-forest-800) !important;
}

body.public-shell.page-public-home .sh-home .sh-service-card__number {
  color: rgba(18, 60, 49, .56) !important;
}

body.public-shell.page-public-home .sh-home .sh-project-card__status {
  color: var(--sh-forest-800) !important;
}

body.public-shell.page-public-home .sh-home .sh-project-card__year {
  color: var(--sh-muted) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home,
body.public-shell.page-public-home.theme-dark {
  background: #07120f !important;
}

html[data-theme="dark"] body.public-shell.page-public-home .sh-home .sh-service-card__number,
body.public-shell.page-public-home.theme-dark .sh-home .sh-service-card__number {
  color: rgba(238, 248, 243, .62) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home .sh-home a.sh-button--outline,
body.public-shell.page-public-home.theme-dark .sh-home a.sh-button--outline,
html[data-theme="dark"] body.public-shell.page-public-home .sh-home a.sh-service-card,
body.public-shell.page-public-home.theme-dark .sh-home a.sh-service-card,
html[data-theme="dark"] body.public-shell.page-public-home .sh-home a.sh-herb-card__link,
body.public-shell.page-public-home.theme-dark .sh-home a.sh-herb-card__link,
html[data-theme="dark"] body.public-shell.page-public-home .sh-home a.sh-text-link,
body.public-shell.page-public-home.theme-dark .sh-home a.sh-text-link,
html[data-theme="dark"] body.public-shell.page-public-home .sh-home .sh-herb-card h3 a,
body.public-shell.page-public-home.theme-dark .sh-home .sh-herb-card h3 a,
html[data-theme="dark"] body.public-shell.page-public-home .sh-home .sh-project-card__footer a,
body.public-shell.page-public-home.theme-dark .sh-home .sh-project-card__footer a,
html[data-theme="dark"] body.public-shell.page-public-home .sh-home .sh-popular a,
body.public-shell.page-public-home.theme-dark .sh-home .sh-popular a {
  color: #8ee0b8 !important;
}

@media (max-width: 1199.98px) {
  body.public-shell.page-public-home .sh-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
    gap: 2rem;
  }
}

@media (max-width: 991.98px) {
  body.public-shell.page-public-home .sh-hero__grid,
  body.public-shell.page-public-home .sh-area-layout {
    grid-template-columns: 1fr;
  }

  body.public-shell.page-public-home .sh-hero__content {
    max-width: none;
  }

  body.public-shell.page-public-home .sh-hero__visual {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  body.public-shell.page-public-home .sh-hero__image-wrap {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 767.98px) {
  body.public-shell.page-public-home .sh-container {
    padding-inline: 1rem;
  }

  body.public-shell.page-public-home .sh-search,
  body.public-shell.page-public-home .sh-hero__meta {
    grid-template-columns: 1fr;
  }

  body.public-shell.page-public-home .sh-section-head--split {
    align-items: flex-start;
  }

  body.public-shell.page-public-home .sh-hero__image-wrap {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575.98px) {
  body.public-shell.page-public-home .sh-hero__title {
    font-size: clamp(2.15rem, 10vw, 3rem);
    letter-spacing: -.035em;
  }

  body.public-shell.page-public-home .sh-hero__caption,
  body.public-shell.page-public-home .sh-hero__meta-item {
    border-radius: 16px;
  }

  body.public-shell.page-public-home .sh-stat-band__grid {
    grid-template-columns: 1fr 1fr;
  }

  body.public-shell.page-public-home .sh-stat {
    min-height: 104px;
  }
}

body.public-shell.page-public-home .sh-hero::after { right: clamp(1rem, 3vw, 3rem); }


/* ID-scoped link colors outrank the legacy multi-:not public link selector. */
body.public-shell.page-public-home #main-content a.sh-button--light {
  color: #123c31 !important;
}
body.public-shell.page-public-home #main-content a.sh-button--outline-light,
body.public-shell.page-public-home #main-content a.sh-area-card {
  color: #ffffff !important;
}
body.public-shell.page-public-home #main-content a.sh-button--outline {
  color: var(--sh-forest-900) !important;
}
html[data-theme="dark"] body.public-shell.page-public-home #main-content a.sh-button--outline,
body.public-shell.page-public-home.theme-dark #main-content a.sh-button--outline {
  color: #8ee0b8 !important;
}

/* ========================================================================== 
   RS-VC45 — screenshot-grounded hero geometry and contrast correction
   ========================================================================== */

body.public-shell.page-public-home {
  --public-home-nav-height: 64px;
}

body.public-shell.page-public-home .public-skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 2100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 2px solid #0f6b4d;
  border-radius: 12px;
  padding: .65rem 1rem;
  background: #ffffff;
  color: #0b3d2f !important;
  box-shadow: 0 12px 30px rgba(7, 43, 32, .2);
  font-weight: 800;
  text-decoration: none;
  transition: top .16s ease;
}

body.public-shell.page-public-home .public-skip-link:focus,
body.public-shell.page-public-home .public-skip-link:focus-visible {
  top: .75rem;
  outline: 3px solid rgba(35, 131, 95, .28);
  outline-offset: 3px;
}

body.public-shell.page-public-home .sh-hero {
  overflow: hidden;
  padding-block: clamp(2.25rem, 4.2vw, 4rem);
  background:
    radial-gradient(circle at 92% 12%, rgba(35, 131, 95, .08), transparent 20rem),
    var(--sh-cream-100);
}

body.public-shell.page-public-home .sh-hero::after {
  display: none;
}

body.public-shell.page-public-home .sh-hero__grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

body.public-shell.page-public-home .sh-hero__content {
  max-width: 690px;
}

body.public-shell.page-public-home .sh-hero__title {
  display: grid;
  max-width: none;
  gap: .08em;
  margin: 1rem 0 1.1rem;
  font-size: clamp(2.55rem, 4.5vw, 4.35rem);
  line-height: 1.07;
  letter-spacing: -.038em;
  text-wrap: pretty;
}

body.public-shell.page-public-home .sh-hero__title-main,
body.public-shell.page-public-home .sh-hero__title-accent {
  display: block;
}

body.public-shell.page-public-home .sh-hero__title-main {
  color: var(--sh-forest-950) !important;
}

body.public-shell.page-public-home .sh-hero__title-accent {
  max-width: 13.5ch;
  color: var(--sh-green-600) !important;
  font-size: .88em;
}

body.public-shell.page-public-home .sh-hero__lead {
  max-width: 60ch;
  font-size: clamp(.98rem, 1.18vw, 1.08rem);
  line-height: 1.72;
}

body.public-shell.page-public-home .sh-search {
  max-width: 680px;
  margin-top: 1.5rem;
  border-radius: 20px;
  padding: .85rem;
  box-shadow: 0 14px 34px rgba(11, 47, 38, .11);
}

body.public-shell.page-public-home .sh-hero__actions,
body.public-shell.page-public-home .sh-popular {
  margin-top: 1rem;
}

body.public-shell.page-public-home .sh-hero__visual {
  display: grid;
  width: 100%;
  min-height: 0;
  align-content: center;
  gap: .85rem;
}

body.public-shell.page-public-home .sh-hero__feature {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--sh-border);
  border-radius: 26px;
  background: var(--sh-white);
  box-shadow: 0 18px 42px rgba(11, 47, 38, .13);
}

body.public-shell.page-public-home .sh-hero__image-wrap {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 11;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.public-shell.page-public-home .sh-hero__image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

body.public-shell.page-public-home .sh-hero__caption {
  position: static;
  display: grid;
  width: 100%;
  gap: .18rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 1rem 1.15rem 1.1rem;
  background: #123c31;
  color: #ffffff !important;
  box-shadow: none;
  backdrop-filter: none;
}

body.public-shell.page-public-home .sh-hero__caption strong {
  color: #ffffff !important;
  font-size: 1.05rem;
  line-height: 1.35;
}

body.public-shell.page-public-home .sh-hero__caption em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, .82) !important;
  font-size: .78rem;
  line-height: 1.45;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.public-shell.page-public-home .sh-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

body.public-shell.page-public-home .sh-hero__meta-item {
  min-height: 72px;
  border-radius: 16px;
  padding: .8rem .9rem;
}

/* app.css has a legacy !important link rule. ID scope is intentional. */
body.public-shell.page-public-home #main-content a.btn.sh-button--primary,
body.public-shell.page-public-home #main-content a.btn.sh-button--primary:hover,
body.public-shell.page-public-home #main-content a.btn.sh-button--primary:focus {
  border-color: var(--sh-green-600) !important;
  background: var(--sh-green-600) !important;
  color: #ffffff !important;
}

body.public-shell.page-public-home #main-content a.btn.sh-button--outline,
body.public-shell.page-public-home #main-content a.btn.sh-button--outline:hover,
body.public-shell.page-public-home #main-content a.btn.sh-button--outline:focus {
  color: var(--sh-forest-900) !important;
}

body.public-shell.page-public-home #main-content a.btn.sh-button--light,
body.public-shell.page-public-home #main-content a.btn.sh-button--light:hover,
body.public-shell.page-public-home #main-content a.btn.sh-button--light:focus {
  background: #ffffff !important;
  color: #123c31 !important;
}

body.public-shell.page-public-home #main-content a.btn.sh-button--outline-light,
body.public-shell.page-public-home #main-content a.btn.sh-button--outline-light:hover,
body.public-shell.page-public-home #main-content a.btn.sh-button--outline-light:focus {
  color: #ffffff !important;
}

body.public-shell.page-public-home #main-content .sh-service-card,
body.public-shell.page-public-home #main-content .sh-herb-card h3 a,
body.public-shell.page-public-home #main-content .sh-herb-card__link,
body.public-shell.page-public-home #main-content .sh-text-link,
body.public-shell.page-public-home #main-content .sh-project-card__footer a,
body.public-shell.page-public-home #main-content .sh-popular a {
  color: var(--sh-forest-800) !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-service-card,
html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-herb-card h3 a,
html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-herb-card__link,
html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-text-link,
html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-project-card__footer a,
html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-popular a,
body.public-shell.page-public-home.theme-dark #main-content .sh-service-card,
body.public-shell.page-public-home.theme-dark #main-content .sh-herb-card h3 a,
body.public-shell.page-public-home.theme-dark #main-content .sh-herb-card__link,
body.public-shell.page-public-home.theme-dark #main-content .sh-text-link,
body.public-shell.page-public-home.theme-dark #main-content .sh-project-card__footer a,
body.public-shell.page-public-home.theme-dark #main-content .sh-popular a {
  color: #8ee0b8 !important;
}

@media (max-width: 1199.98px) {
  body.public-shell.page-public-home .sh-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
    gap: 2rem;
  }

  body.public-shell.page-public-home .sh-hero__title {
    font-size: clamp(2.45rem, 4.4vw, 3.65rem);
  }
}

@media (max-width: 991.98px) {
  body.public-shell.page-public-home .sh-hero__grid {
    grid-template-columns: 1fr;
  }

  body.public-shell.page-public-home .sh-hero__content,
  body.public-shell.page-public-home .sh-search {
    max-width: none;
  }

  body.public-shell.page-public-home .sh-hero__visual {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  body.public-shell.page-public-home .sh-hero__image-wrap {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767.98px) {
  body.public-shell.page-public-home .sh-hero {
    padding-block: 2rem 2.5rem;
  }

  body.public-shell.page-public-home .sh-hero__title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  body.public-shell.page-public-home .sh-search,
  body.public-shell.page-public-home .sh-hero__meta {
    grid-template-columns: 1fr;
  }

  body.public-shell.page-public-home .sh-hero__image-wrap {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575.98px) {
  body.public-shell.page-public-home .sh-hero__title-accent {
    max-width: none;
  }

  body.public-shell.page-public-home .sh-hero__actions .sh-button {
    width: 100%;
  }
}

/* Final ID-scoped color contract: outranks legacy public-shell rules. */
body.public-shell.page-public-home #main-content .sh-hero__title-main {
  color: #0b2f26 !important;
}

body.public-shell.page-public-home #main-content .sh-hero__title-accent {
  color: #23835f !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-hero__title-main,
body.public-shell.page-public-home.theme-dark #main-content .sh-hero__title-main {
  color: #eef8f3 !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: #50bb8d !important;
}

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 {
  border-color: rgba(218, 244, 232, .14) !important;
  background: #0a1d17 !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28) !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: #bdd0c7 !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search input,
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 input,
body.public-shell.page-public-home.theme-dark #main-content .sh-search select {
  border-color: rgba(218, 244, 232, .12) !important;
  background: #112b23 !important;
  color: #f3fbf7 !important;
}

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

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-search select option,
body.public-shell.page-public-home.theme-dark #main-content .sh-search select option {
  background: #112b23;
  color: #f3fbf7;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-hero__meta-item,
body.public-shell.page-public-home.theme-dark #main-content .sh-hero__meta-item {
  border-color: rgba(218, 244, 232, .13) !important;
  background: #0c211b !important;
}

html[data-theme="dark"] body.public-shell.page-public-home #main-content .sh-hero__meta-copy small,
body.public-shell.page-public-home.theme-dark #main-content .sh-hero__meta-copy small {
  color: #a9beb5 !important;
}

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

html[data-theme="dark"] body.public-shell.page-public-home #main-content a.btn.sh-button--outline,
html[data-theme="dark"] body.public-shell.page-public-home #main-content a.btn.sh-button--outline:hover,
html[data-theme="dark"] body.public-shell.page-public-home #main-content a.btn.sh-button--outline:focus,
body.public-shell.page-public-home.theme-dark #main-content a.btn.sh-button--outline,
body.public-shell.page-public-home.theme-dark #main-content a.btn.sh-button--outline:hover,
body.public-shell.page-public-home.theme-dark #main-content a.btn.sh-button--outline:focus {
  border-color: rgba(142, 224, 184, .62) !important;
  background: transparent !important;
  color: #bcebd6 !important;
}
