/* Canada feedback implementation — 28 Aug 2026. */

/* 1 + 2: keep the Home utility bar green and use the shared white submenu treatment. */
@media (min-width: 1025px) {
  body.home .site-header__utility,
  .cw-home-has-video-hero .site-header:not(.is-scrolled) .site-header__utility,
  .cw-home-has-video-hero .site-header:not(.is-scrolled):hover .site-header__utility,
  .cw-home-has-video-hero .site-header:not(.is-scrolled):focus-within .site-header__utility {
    background: var(--cw-dark-evergreen);
    box-shadow: none;
  }

  body.home.cw-home-has-video-hero .site-header:not(.is-scrolled) .site-header__utility .site-utility-nav a,
  body.home.cw-home-has-video-hero .site-header:not(.is-scrolled) .site-header__utility .site-language__toggle,
  body.home .site-header__utility .site-utility-nav a,
  body.home .site-header__utility .site-language__toggle {
    color: var(--cw-white);
    text-shadow: none;
  }

  body.home.cw-home-has-video-hero .site-header:not(.is-scrolled) .site-nav__menu .sub-menu,
  body.home .site-nav__menu .sub-menu {
    top: calc(100% + 26px);
    background: var(--cw-white);
  }

  body.home.cw-home-has-video-hero .site-header:not(.is-scrolled) .site-nav__menu .sub-menu::before,
  body.home .site-nav__menu .sub-menu::before {
    top: -30px;
    height: 30px;
  }

  body.home.cw-home-has-video-hero .site-header:not(.is-scrolled) .site-nav__menu .sub-menu a,
  body.home .site-nav__menu .sub-menu a {
    color: var(--cw-green-primary);
    text-shadow: none;
  }
}

/* 3: the new About block intentionally inherits the existing Home intro UI. */
.cw-home-about .cw-home-intro__body {
  color: var(--cw-text-muted);
}

/* 5: keep every property text block on the left and add the gallery CTA. */
.cw-why-gallery-cta {
  padding-top: 0;
  padding-bottom: clamp(72px, 7vw, 108px);
}

/* 6: About-style corner-to-corner staggered cells, constrained by the current container. */
.cw-why-forest-grid {
  column-gap: 0;
}

.cw-why-forest-column {
  min-height: 0;
  gap: 0;
}

.cw-why-forest-copy,
.cw-why-forest-image {
  flex: 1 1 0;
  min-height: clamp(340px, 26vw, 430px);
}

.cw-why-forest-copy {
  align-self: stretch;
  justify-content: center;
  padding: clamp(38px, 4.4vw, 68px);
  background: var(--cw-white);
}

/* 7: align the map captions with the bottom of the annual-harvest card. */
@media (min-width: 1025px) {
  .cw-why-sustainable__map-captions {
    top: 621.5px;
  }
}

/* 1 Sep: smaller desktops below 1920px align both captions with the live data-note row. */
@media (min-width: 1025px) and (max-width: 1919px) {
  .cw-why-sustainable__map-captions {
    top: var(--cw-map-caption-note-top, 665.75px);
  }
}

/* 8: species overview becomes neutral; characteristic cards match Program benefits. */
.cw-species-panel {
  background: var(--cw-white);
  color: var(--cw-text);
}

.cw-species-panel__text h2,
.cw-species-panel__text div {
  color: var(--cw-text);
}

.cw-species-characteristics__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 52px;
}

.cw-species-characteristic {
  position: relative;
  display: block;
  min-height: 148px;
  padding: 16px 0 16px 16px;
  background: transparent;
}

.cw-species-characteristic::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  border-radius: 28px;
  background: var(--cw-species-accent);
}

.cw-species-characteristic__inner {
  position: relative;
  min-height: 116px;
  height: 100%;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--cw-color-surface-neutral);
  box-shadow: -4px 4px 0 rgba(0, 0, 0, 0.18);
}

.cw-species-characteristic h3,
.cw-species-characteristic p {
  display: block;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.cw-species-characteristic h3 {
  margin: 0 0 12px;
  color: var(--cw-green-primary);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.08;
}

.cw-species-characteristic p {
  margin: 0;
  color: var(--cw-color-text);
  font-size: 15px;
  line-height: 1.28;
}

.cw-species-characteristic:hover h3,
.cw-species-characteristic:focus-within h3 {
  color: var(--cw-green-primary);
  background: transparent;
}

/* 9: News begins with the feature and uses a real action instead of a date. */
.cw-media-news > .cw-news-featured {
  margin-top: 0;
}

.cw-news-featured__button {
  position: relative;
  z-index: 2;
  margin-top: 22px;
}

/* Follow-up 1 revision: connect the active Species tab to its overview panel. */
.cw-species-tabs {
  isolation: isolate;
  margin-bottom: 0;
  box-shadow: none;
}

.cw-species-tabs__item {
  z-index: 1;
  border-bottom: 0;
  font-weight: 700;
  transition: color 160ms ease, background-color 160ms ease;
}

.cw-species-tabs__item:not(.is-active):hover,
.cw-species-tabs__item:not(.is-active):focus-visible {
  color: var(--cw-dark-evergreen);
  background: var(--cw-color-surface-evergreen-soft);
}

.cw-species-tabs__item:focus-visible {
  outline: 3px solid var(--cw-green-primary);
  outline-offset: -6px;
}

.cw-species-tabs__item.is-active {
  border-bottom: 0;
  box-shadow: none;
}

.cw-species-tabs__item.is-active::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 5px;
  background: var(--cw-species-accent);
}

.cw-species-tabs::after {
  content: none;
}

.cw-species-panel {
  margin-right: auto;
  margin-left: auto;
  border: 2px solid var(--cw-species-accent);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 18px 48px rgba(10, 70, 47, 0.1);
}

.cw-species-panel__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding-right: clamp(32px, 4vw, 64px);
  padding-left: clamp(32px, 4vw, 64px);
}

/* Follow-up 2: replace the inline Home Species link with a proper CTA. */
.cw-home-species__intro-button {
  margin-top: 28px;
}

/* Follow-up 3: use the same six-color rhythm as Program benefits. */
.cw-species-characteristic::before {
  background: var(--cw-species-characteristic-accent, var(--cw-species-accent));
}

@media (max-width: 1024px) {
  .cw-species-characteristics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw-species-panel__inner {
    padding-right: clamp(24px, 5vw, 48px);
    padding-left: clamp(24px, 5vw, 48px);
  }
}

@media (max-width: 767px) {
  .cw-why-gallery-cta {
    padding-top: 0;
    padding-bottom: 64px;
  }

  .cw-why-forest-grid,
  .cw-why-forest-column {
    gap: 0;
  }

  .cw-why-forest-copy {
    min-height: 0;
    padding: 36px 26px;
  }

  .cw-why-forest-image {
    min-height: 320px;
  }

  .cw-why-forest-column:nth-child(2) .cw-why-forest-copy {
    order: 1;
  }

  .cw-why-forest-column:nth-child(2) .cw-why-forest-image {
    order: 2;
  }

  .cw-species-characteristics__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cw-species-panel {
    border-radius: 0 0 6px 6px;
  }

  .cw-species-panel__inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .cw-home-species__intro-button {
    margin-top: 24px;
  }
}
