/* Sitewide spacing system and shared collection modal — 15 Sep 2026. */

:root {
  --cw-space-section-l: clamp(72px, 4.2vw, 80px);
  --cw-space-section-m: clamp(60px, 3.55vw, 68px);
  --cw-space-section-s: clamp(44px, 2.7vw, 52px);
  --cw-space-heading: clamp(20px, 1.45vw, 28px);
  --cw-space-block: clamp(28px, 2.1vw, 40px);
  --cw-space-content: clamp(14px, 1vw, 18px);
}

/* Finishes desktop: keep the final CTA-to-footer boundary on the compact
   section rhythm instead of the legacy 94px archive padding. */
@media (min-width: 1025px) {
  .cw-finishes__content {
    padding-bottom: var(--cw-space-section-s);
  }

  /* Gallery category: center the filter control on the title's visual axis. */
  .cw-gallery-detail__header {
    align-items: center;
  }

  .cw-gallery-detail__header h1,
  .cw-gallery-detail__header .cw-gallery-filter {
    margin-top: 0;
  }

  /* News pagination owns both surrounding gaps; do not also retain the
     listing section's bottom padding above it. */
  .cw-media-news .cw-news-list:has(+ .cw-media-pagination) {
    padding-bottom: 0;
  }

  .cw-media-news > .cw-media-pagination {
    margin-top: var(--cw-space-section-s);
    margin-bottom: var(--cw-space-section-s);
  }

  /* Contact: use the same vertical value between the two overview rows as
     the overview's bottom edge, keeping the highlighted gaps equal. */
  .cw-contact-overview__inner {
    row-gap: clamp(48px, 5.8vh, 68px);
  }

  /* News/Event detail: one narrower editorial measure (a further 10% below
     the approved 896px width) shared by title, body, builder and gallery. */
  .cw-media-single--news,
  .cw-media-single--event {
    --cw-media-detail-width: 806.4px;
  }

  body .cw-media-single--news .cw-media-single-head,
  body .cw-media-single--news .cw-media-single-body,
  body .cw-media-single--event .cw-media-single-hero h1,
  body .cw-media-single--event .cw-media-single-body,
  body .cw-media-single--event .cw-event-gallery {
    width: calc(100% - 48px);
    max-width: var(--cw-media-detail-width);
    margin-right: auto;
    margin-left: auto;
  }

  body .cw-media-single--news .cw-media-single-head h1 {
    width: 100%;
    max-width: none;
  }

  /* Builder blocks must use the article container itself as their edge;
     they must not introduce a second horizontal inset. */
  .cw-media-single--news .cw-media-single-body,
  .cw-media-single--event .cw-media-single-body,
  .cw-media-single--news .cw-media-builder,
  .cw-media-single--event .cw-media-builder,
  .cw-media-single--news .cw-media-builder-block,
  .cw-media-single--event .cw-media-builder-block {
    padding-right: 0;
    padding-left: 0;
  }

  .cw-media-single--news .cw-media-builder-block,
  .cw-media-single--event .cw-media-builder-block {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }
}

/* Keep primary CTA proportions consistent across page templates. */
.cw-home-button,
.cw-gallery-detail__back a,
.cw-resources-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 38px;
  padding: 10px 22px;
  border: 1px solid var(--cw-green-cta);
  background: var(--cw-green-cta);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.cw-home-button:hover,
.cw-home-button:focus-visible,
.cw-gallery-detail__back a:hover,
.cw-gallery-detail__back a:focus-visible,
.cw-resources-button:hover,
.cw-resources-button:focus-visible {
  border-color: var(--cw-green-hover);
  background: var(--cw-green-hover);
  color: #fff;
}

/* Desktop section boundaries. Hero, modal, map canvas and slider geometry are excluded. */
@media (min-width: 1025px) {
  /* Keep desktop flyouts compact while preserving the hover bridge to the menu. */
  .site-nav__menu .sub-menu {
    --cw-submenu-inline-offset: clamp(20px, 1.45vw, 28px);
    --cw-submenu-hover-bridge: 18px;
    top: calc(100% + 14px);
    min-width: 0;
    padding: 8px var(--cw-submenu-inline-offset);
    transform: translate(calc(-1 * var(--cw-submenu-inline-offset)), 8px);
  }

  .site-nav__menu .sub-menu::before {
    top: calc(-1 * var(--cw-submenu-hover-bridge));
    height: var(--cw-submenu-hover-bridge);
  }

  .site-nav__menu .sub-menu a {
    min-height: 31px;
    padding: 5px 0;
    font-size: 17px;
  }

  .site-nav__menu .sub-menu a::after {
    height: 1px;
  }

  .site-utility-nav__menu .sub-menu a {
    min-height: 31px;
    padding: 5px 0;
    font-size: 17px;
    text-decoration-thickness: 1px;
  }

  .site-utility-nav__menu .sub-menu {
    --cw-utility-submenu-hover-bridge: 14px;
    min-width: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header__utility .site-language__menu {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header__utility .site-language__option {
    font-size: 17px;
  }

  .site-header__utility .site-language__option:hover,
  .site-header__utility .site-language__option:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  /* Global compact sticky state. Header.js applies is-scrolled after 24px. */
  .site-header,
  .site-header__main,
  .site-header__utility,
  .site-header__utility-inner,
  .site-header__inner,
  .site-brand,
  .site-brand__logo,
  .site-nav,
  .site-utility-nav__menu > li > a,
  .site-language__toggle {
    transition: min-height 220ms ease, width 220ms ease, font-size 220ms ease,
      background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  }

  body .site-header.is-scrolled,
  body .site-header.is-scrolled .site-header__main {
    background: var(--cw-color-surface-evergreen-soft);
  }

  body .site-header.is-scrolled {
    border-bottom-color: rgba(102, 132, 94, 0.28);
    box-shadow: 0 8px 22px rgba(21, 68, 45, 0.08);
  }

  .site-header.is-scrolled .site-header__inner {
    min-height: 70px;
  }

  .site-header.is-scrolled .site-brand,
  .site-header.is-scrolled .site-brand__logo {
    width: 155px;
  }

  .site-header.is-scrolled .site-nav {
    font-size: 18px;
  }

  .site-header.is-scrolled .site-header__utility,
  .site-header.is-scrolled .site-header__utility-inner {
    min-height: 36px;
  }

  .site-header.is-scrolled .site-utility-nav__menu > li > a,
  .site-header.is-scrolled .site-language__toggle {
    font-size: 18px;
  }

  .site-header.is-scrolled .site-nav__menu .sub-menu {
    --cw-submenu-hover-bridge: 22px;
    top: calc(100% + var(--cw-submenu-hover-bridge));
  }

  .site-header.is-scrolled .site-utility-nav__menu .sub-menu {
    --cw-utility-submenu-hover-bridge: 8px;
    top: calc(100% + var(--cw-utility-submenu-hover-bridge));
  }

  .site-header.is-scrolled .site-header__utility .site-language__menu {
    top: 100%;
  }

  .site-header.is-scrolled .site-nav__menu .sub-menu::before,
  .site-header.is-scrolled .site-utility-nav__menu .sub-menu::before {
    top: calc(-1 * var(--cw-submenu-hover-bridge, var(--cw-utility-submenu-hover-bridge)));
    height: var(--cw-submenu-hover-bridge, var(--cw-utility-submenu-hover-bridge));
  }

  .site-header.is-scrolled .site-language__menu::before {
    top: 0;
    height: 0;
  }

  body .site-header.is-scrolled .site-header__main .site-nav__menu .sub-menu,
  body .site-header.is-scrolled .site-header__utility .site-utility-nav__menu .sub-menu,
  body .site-header.is-scrolled .site-header__utility .site-language__menu {
    background: var(--cw-color-surface-evergreen-soft);
  }

  .site-header.is-scrolled .site-nav__menu .sub-menu a,
  .site-header.is-scrolled .site-utility-nav__menu .sub-menu a,
  .site-header.is-scrolled .site-header__utility .site-language__option {
    font-size: 16px;
  }

  .cw-home {
    --cw-home-section-space: var(--cw-space-section-l);
  }

  .cw-home > .cw-home-programs {
    padding-bottom: var(--cw-space-section-l);
  }

  .cw-home-section-text {
    margin-top: var(--cw-space-heading);
  }

  .cw-home-intro__body,
  .cw-home-finishes__body {
    margin-top: var(--cw-space-heading);
  }

  .cw-home-species__tabs,
  .cw-home-programs__slider {
    margin-top: var(--cw-space-block);
  }

  .cw-home-programs__action {
    margin-top: var(--cw-space-block);
  }

  .cw-home-gallery {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--cw-site-header-height, 118px));
    min-height: 0;
    padding-bottom: 0;
  }

  .cw-home-gallery__heading {
    flex: 0 0 auto;
    padding-bottom: clamp(20px, 2.8vh, 30px);
  }

  .cw-home-gallery__slider {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }

  .cw-about-overview {
    padding-top: var(--cw-space-section-m);
  }

  .cw-about-split__copy {
    padding-top: var(--cw-space-section-m);
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-about-work {
    padding-top: var(--cw-space-section-m);
    padding-bottom: var(--cw-space-section-l);
  }

  .cw-about-split h2,
  .cw-about-work h2,
  .cw-why-wood-properties > h2,
  .cw-why-properties h2,
  .cw-why-forests h2,
  .cw-why-forests-builder h2,
  .cw-why-sustainable__copy h2 {
    margin-bottom: var(--cw-space-heading);
  }

  .cw-about-work__item h3,
  .cw-why-wood-property__copy h3,
  .cw-why-property h3,
  .cw-why-forest-copy h3 {
    margin-bottom: var(--cw-space-content);
  }

  .cw-why-wood-properties,
  .cw-why-properties,
  .cw-why-page > .cw-page-hero + .cw-media-builder > .cw-why-forests-builder:first-child,
  .cw-why-page > .cw-page-hero + .cw-why-forests {
    padding-top: var(--cw-space-section-m);
  }

  .cw-why-wood-properties,
  .cw-why-gallery-cta,
  .cw-why-forests,
  .cw-why-forests-builder {
    padding-bottom: var(--cw-space-section-m);
  }

  /* One shared two-row grid keeps the staggered forest images corner-locked. */
  .cw-why-page .cw-why-forest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 0;
  }

  .cw-why-page .cw-why-forest-column {
    display: contents;
  }

  .cw-why-page .cw-why-forest-copy,
  .cw-why-page .cw-why-forest-image {
    width: 100%;
    min-height: 0;
  }

  .cw-why-page .cw-why-forest-image {
    height: clamp(340px, 22vw, 410px);
    flex: none;
  }

  .cw-why-page .cw-why-forest-copy--top {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    padding-left: 0;
    text-align: left;
  }

  .cw-why-page .cw-why-forest-image--top {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .cw-why-page .cw-why-forest-image--bottom {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .cw-why-page .cw-why-forest-copy--lower {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
  }

  .cw-why-properties {
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-why-cert__inner {
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-section-s);
  }

  .cw-why-cert h2,
  .cw-finishes-intro h2,
  .cw-gallery-category__text h2,
  .cw-program-card h2,
  .cw-program-offer h2,
  .cw-resources-intro h2,
  .cw-media-related__head {
    margin-bottom: var(--cw-space-content);
  }

  .cw-finishes-intro,
  .cw-gallery-intro,
  .cw-programs-list,
  .cw-news-list,
  .cw-blog-list {
    padding-top: var(--cw-space-section-m);
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-gallery-categories,
  .cw-success-list,
  .cw-event-gallery {
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-gallery-detail {
    padding-top: var(--cw-space-section-s);
  }

  .cw-gallery-detail__header {
    margin-bottom: var(--cw-space-block);
  }

  .cw-gallery-detail__back {
    padding-top: var(--cw-space-section-m);
    padding-bottom: var(--cw-space-section-l);
  }

  .cw-program-single-intro,
  .cw-program-offer,
  .cw-success-intro,
  .cw-media-single-body,
  .cw-contact-overview {
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-section-s);
  }

  .cw-program-single-intro h2,
  .cw-program-benefits h2,
  .cw-success-intro h1,
  .cw-species-panel__text h2,
  .cw-resources-group__title,
  .privacy-policy-page__header {
    margin-bottom: var(--cw-space-heading);
  }

  .cw-program-benefits,
  .cw-program-single-builder,
  .cw-program-form,
  .cw-company-form {
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-program-form__intro,
  .cw-company-form__intro,
  body:not(.home) .cw-end-form--forest {
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-section-s);
  }

  .cw-resources-intro__inner {
    min-height: clamp(460px, 54vh, 560px);
    padding-top: var(--cw-space-section-m);
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-resources-sections {
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-resources-group {
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-section-s);
  }

  .cw-species-panel__inner {
    min-height: 0;
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-section-s);
  }

  .cw-species-characteristics {
    padding-top: var(--cw-space-section-m);
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-species-properties {
    padding-top: var(--cw-space-block);
    padding-bottom: var(--cw-space-section-s);
  }

  .cw-species-resources {
    padding-top: 0;
    padding-bottom: var(--cw-space-section-s);
  }

  .cw-species-collections {
    padding-top: 0;
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-species-characteristics__graphic,
  .cw-species-characteristics__grid,
  .cw-species-properties__grid,
  .cw-species-resources__viewport,
  .cw-species-collections__viewport {
    margin-top: var(--cw-space-block);
  }

  .cw-events-list {
    padding-top: var(--cw-space-block);
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-media-single-head {
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-block);
  }

  .cw-media-single-head h1 {
    margin-bottom: var(--cw-space-content);
  }

  .cw-media-builder,
  .cw-media-single--success_story .cw-media-builder,
  .cw-media-single--news .cw-media-builder,
  .cw-media-single--event .cw-media-builder {
    gap: var(--cw-space-block);
  }

  .cw-media-builder-rich-text h2,
  .cw-media-builder-rich-text h3,
  .cw-media-builder-text-image h2,
  .cw-media-builder-text-image h3 {
    margin-bottom: var(--cw-space-content);
  }

  .cw-media-related {
    padding-top: var(--cw-space-block);
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-media-single-form__intro .cw-container,
  .cw-media-single-form__form,
  .cw-contact-lead__form,
  .cw-species-contact__form {
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-contact-overview__inner {
    column-gap: var(--cw-space-section-m);
    row-gap: var(--cw-space-section-l);
  }

  .cw-contact-office__body,
  .cw-contact-people__grid,
  .cw-contact-resources ul {
    margin-top: var(--cw-space-content);
  }

  .cw-contact-lead__intro {
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-section-l);
  }

  .cw-contact-lead__intro h2 {
    margin-bottom: var(--cw-space-content);
  }

  .privacy-policy-page {
    padding-top: var(--cw-space-section-m);
    padding-bottom: var(--cw-space-section-l);
  }

  .privacy-policy-page__content h2 {
    margin-top: var(--cw-space-block);
    margin-bottom: var(--cw-space-content);
  }

  .privacy-policy-page__content h3 {
    margin-top: var(--cw-space-heading);
    margin-bottom: 7px;
  }
}

@media (min-width: 1920px) {
  .cw-home-button,
  .cw-gallery-detail__back a,
  .cw-resources-button {
    min-height: 48px;
    padding-inline: 30px;
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .cw-home-button,
  .cw-gallery-detail__back a,
  .cw-resources-button {
    min-width: 118px;
    min-height: 40px;
    padding: 10px 18px;
    font-size: 16px;
  }
}

/* Species detail end form: keep the wood multi-select compact and lift its
   chevron clear of the underline on both desktop and mobile. */
body:has(.js-species-page) .cw-form-multiselect summary::after {
  top: 4px;
}

body:has(.js-species-page) .cw-form-multiselect[open] summary::after {
  top: 9px;
}

body:has(.js-species-page) .cw-form-multiselect__panel fieldset {
  padding-block: 4px;
}

body:has(.js-species-page) .cw-form-multiselect__panel label {
  min-height: 34px;
  gap: 8px;
  padding: 4px 12px;
}

body:has(.js-species-page) .cw-end-form .cw-form-multiselect__panel input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex-basis: 16px;
}

@media (min-width: 1025px) and (max-width: 1400px) {
  .site-nav__menu > li > a::after {
    bottom: -4px;
  }

  .site-nav__menu .sub-menu,
  .site-utility-nav__menu .sub-menu {
    min-width: 0;
    padding: 8px 20px;
  }

  .site-utility-nav__menu .sub-menu {
    --cw-utility-submenu-inline-offset: 20px;
  }

  .site-nav__menu .sub-menu a,
  .site-utility-nav__menu .sub-menu a {
    min-height: 28px;
    padding: 3px 0;
  }

  .site-header.is-scrolled .site-header__inner {
    min-height: 50px;
  }

  .site-header.is-scrolled .site-brand,
  .site-header.is-scrolled .site-brand__logo {
    width: 119px;
  }

  .site-header.is-scrolled .site-nav__menu .sub-menu {
    --cw-submenu-hover-bridge: 12px;
    top: calc(100% + var(--cw-submenu-hover-bridge));
  }
}

/* Fit the complete Gallery section below the sticky header on smaller desktops. */
@media (min-width: 1025px) and (max-width: 1600px) {
  .cw-home-gallery {
    height: calc(100svh - var(--cw-site-header-height, 118px) - 8px);
  }

  .cw-home-gallery__slider {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
}

/* Keep the desktop footer compact without shrinking its readable content. */
@media (min-width: 1025px) {
  .site-footer::before {
    inset: 0 0 19px;
  }

  .site-footer__inner {
    min-height: 106px;
    padding-bottom: 18px;
  }

  .site-footer__brand,
  .site-footer__contact {
    transform: translateY(8px);
  }

  .site-footer__bottom {
    min-height: 22px;
    transform: translateY(-7px);
  }
}

@media (max-width: 1024px) {
  .site-footer__inner {
    gap: 14px;
    padding-top: 27px;
    padding-bottom: 24px;
  }

  .site-footer__bottom {
    padding-top: 12px;
    padding-bottom: 13px;
  }
}

@media (max-width: 380px) {
  .site-footer__inner {
    padding-top: 23px;
    padding-bottom: 21px;
  }
}

/* Media pages: compact transitions and shared filter-control geometry. */
.cw-media-single--news .cw-media-single-body {
  padding-bottom: 16px;
}

.cw-media-single--event .cw-media-single-body {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* 16 Sep: compact Resources/Species layouts and normalize editorial media width. */
@media (min-width: 1025px) {
  .cw-resources-intro__inner {
    min-height: 390px;
    padding-top: 42px;
    padding-bottom: 46px;
    align-items: center;
  }

  .cw-resources-intro__media {
    height: 340px;
    overflow: hidden;
  }

  .cw-resources-intro__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .cw-resources-intro::after {
    height: 175px;
    clip-path: polygon(0 84%, 100% 8%, 100% 100%, 0 100%);
  }

  .cw-species-tabs {
    margin-top: 22px;
  }

  .cw-species-tabs__item {
    min-height: 64px;
    padding: 9px 14px;
    font-size: 18px;
  }

  .cw-species-tabs__item + .cw-species-tabs__item::before {
    top: 14px;
    bottom: 14px;
  }

  .cw-species-tabs__item.is-active::after {
    bottom: 0;
    height: 4px;
  }

  .cw-species-characteristics__grid {
    gap: 28px 36px;
    margin-top: 42px;
  }

  .cw-species-characteristic {
    min-height: 112px;
    padding: 12px 0 12px 12px;
  }

  .cw-species-characteristic::before {
    border-radius: 22px;
  }

  .cw-species-characteristic__inner {
    min-height: 88px;
    padding: 17px 22px;
    border-radius: 20px;
  }

  .cw-species-characteristic h3 {
    margin-bottom: 8px;
    font-size: 21px;
  }

  .cw-species-properties__grid {
    gap: 14px;
    margin-top: 42px;
  }

  .cw-species-accordion__trigger {
    min-height: 58px;
    padding: 14px 24px;
    font-size: 20px;
  }

  .cw-species-accordion__icon {
    width: 21px;
    height: 21px;
  }

  .cw-species-accordion__icon::before {
    top: 10px;
  }

  .cw-species-accordion__icon::after {
    left: 10px;
  }

  .cw-species-accordion__panel {
    padding: 0 24px 22px;
  }

  .cw-event-card .cw-media-button {
    width: 168px;
    min-width: 168px;
    align-self: flex-start;
  }

  .cw-media-single--event .cw-media-single-body,
  .cw-media-single--event .cw-event-gallery,
  .cw-media-single--news .cw-media-single-body {
    width: calc(100% - 48px);
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
  }

  .cw-media-single--event .cw-media-single-body img,
  .cw-media-single--event .cw-media-single-body figure,
  .cw-media-single--event .cw-media-single-body .wp-caption,
  .cw-media-single--event .cw-event-gallery img,
  .cw-media-single--news .cw-media-single-body img,
  .cw-media-single--news .cw-media-single-body figure,
  .cw-media-single--news .cw-media-single-body .wp-caption {
    max-width: 100%;
  }

  .cw-why-page .cw-why-forest-copy--top {
    padding-left: 0;
  }
}

.cw-media-single--event .cw-event-gallery:empty,
.cw-media-single--event .cw-event-gallery:not(:has(img)) {
  display: none;
}

.cw-events-toolbar form {
  position: relative;
  width: min(240px, 100%);
  min-width: 0;
  height: 40px;
  gap: 8px;
  padding: 5px 16px 5px 28px;
  border: 1.5px solid #939393;
  border-radius: 21px;
  background: var(--cw-color-surface);
  color: #4f4f4f;
  font-size: 16px;
  line-height: 1.2;
}

.cw-events-toolbar form label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cw-events-toolbar select {
  min-width: 0;
  flex: 1 1 auto;
  height: 30px;
  appearance: none;
  border: 0;
  padding: 0 24px 0 2px;
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, var(--cw-green-primary) 50%), linear-gradient(135deg, var(--cw-green-primary) 50%, transparent 50%);
  background-position: calc(100% - 9px) calc(50% - 2px), calc(100% - 3px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 7px 7px, 7px 7px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cw-events-toolbar form:focus-within {
  border-color: var(--cw-green-primary);
  box-shadow: 0 0 0 3px rgb(16 102 59 / 11%);
}

.cw-events-toolbar select:focus {
  outline: 0;
}

.cw-event-card__media {
  position: relative;
}

.cw-event-card__status {
  position: absolute;
  right: 0;
  bottom: 16px;
  box-sizing: border-box;
  width: 54%;
  padding: 10px 18px 9px 22%;
  background: linear-gradient(90deg, rgb(16 102 59 / 0%) 0%, rgb(16 102 59 / 58%) 42%, rgb(16 102 59 / 88%) 100%);
  color: var(--cw-white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 767px) {
  .cw-event-card__status {
    bottom: 12px;
    width: 62%;
    padding: 8px 13px 7px 22%;
    font-size: 13px;
  }
}

@media (min-width: 1025px) {
  .cw-event-card {
    --cw-event-card-content-height: 180px;
    align-items: center;
    min-height: 0;
  }

  .cw-event-card__date {
    height: var(--cw-event-card-content-height);
    min-height: 0;
    margin-top: 0;
  }

  .cw-event-card__body {
    display: flex;
    height: var(--cw-event-card-content-height);
    min-height: 0;
    flex-direction: column;
  }

  .cw-event-card h2 {
    margin-bottom: 16px;
  }

  .cw-event-card__location {
    margin-bottom: auto;
  }

  .cw-event-card__media {
    height: 210px;
    aspect-ratio: auto;
  }

  .cw-event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 1601px) {
  .cw-events-toolbar form {
    font-size: 18px;
  }

  .cw-event-card {
    --cw-event-card-content-height: 210px;
  }

  .cw-event-card__media {
    height: 240px;
  }
}

/* Tablet uses the same hierarchy with a compact scale. */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --cw-space-section-l: 64px;
    --cw-space-section-m: 56px;
    --cw-space-section-s: 40px;
    --cw-space-heading: 22px;
    --cw-space-block: 32px;
    --cw-space-content: 14px;
  }

  .cw-home {
    --cw-home-section-space: var(--cw-space-section-l);
  }

  .cw-home-species__tabs,
  .cw-home-programs__slider {
    margin-top: var(--cw-space-block);
  }

  .cw-home-section-text {
    margin-top: var(--cw-space-heading);
  }

  .cw-home-programs__action {
    margin-top: var(--cw-space-block);
  }

  .cw-home-intro__body,
  .cw-home-finishes__body {
    margin-top: var(--cw-space-heading);
  }

  .cw-home-gallery__heading {
    padding-bottom: var(--cw-space-block);
  }

  .cw-about-work,
  .cw-why-wood-properties,
  .cw-why-properties,
  .cw-why-forests,
  .cw-why-forests-builder,
  .cw-finishes-intro,
  .cw-gallery-intro,
  .cw-programs-list,
  .cw-news-list,
  .cw-blog-list,
  .cw-species-characteristics {
    padding-top: var(--cw-space-section-m);
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-about-split__copy,
  .cw-program-single-intro,
  .cw-program-offer,
  .cw-success-intro,
  .cw-media-single-body,
  .cw-contact-overview,
  body:not(.home) .cw-end-form--forest {
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-section-s);
  }

  .cw-about-split h2,
  .cw-about-work h2,
  .cw-why-wood-properties > h2,
  .cw-why-properties h2,
  .cw-why-forests h2,
  .cw-why-forests-builder h2,
  .cw-program-single-intro h2,
  .cw-program-benefits h2,
  .cw-resources-group__title,
  .cw-species-section-title {
    margin-bottom: var(--cw-space-heading);
  }

  .cw-species-characteristics__graphic,
  .cw-species-characteristics__grid,
  .cw-species-properties__grid,
  .cw-species-resources__viewport,
  .cw-species-collections__viewport {
    margin-top: var(--cw-space-block);
  }

  .cw-gallery-detail__header {
    margin-bottom: var(--cw-space-block);
  }
}

/* Mobile retains the established hierarchy at a tighter, consistent scale. */
@media (max-width: 767px) {
  :root {
    --cw-mobile-section-space: 48px;
    --cw-mobile-heading-gap: 20px;
    --cw-mobile-content-gap: 14px;
    --cw-space-section-l: 48px;
    --cw-space-section-m: 44px;
    --cw-space-section-s: 32px;
    --cw-space-heading: 20px;
    --cw-space-block: 28px;
    --cw-space-content: 14px;
  }

  .cw-home {
    --cw-home-section-space: var(--cw-mobile-section-space);
  }

  .cw-home > .cw-home-programs,
  .cw-home-gallery {
    padding-bottom: var(--cw-mobile-section-space);
  }

  .cw-home-species__tabs,
  .cw-home-programs__slider {
    margin-top: var(--cw-space-block);
  }

  .cw-home-section-text {
    margin-top: var(--cw-space-heading);
  }

  .cw-home-programs__action {
    margin-top: var(--cw-space-block);
  }

  .cw-home-intro__body,
  .cw-home-finishes__body {
    margin-top: var(--cw-space-heading);
  }

  .cw-home-gallery__heading {
    gap: var(--cw-space-content);
    padding-bottom: var(--cw-space-block);
  }

  .cw-about-split__copy,
  .cw-about-work,
  .cw-why-wood-properties,
  .cw-why-properties,
  .cw-why-forests,
  .cw-why-forests-builder,
  .cw-finishes-intro,
  .cw-gallery-intro,
  .cw-programs-list,
  .cw-program-single-intro,
  .cw-program-offer,
  .cw-success-intro,
  .cw-media-single-body,
  .cw-contact-overview,
  .privacy-policy-page {
    padding-top: var(--cw-space-section-m);
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-gallery-categories,
  .cw-program-benefits,
  .cw-program-single-builder,
  .cw-success-list,
  .cw-event-gallery,
  .cw-media-related,
  .cw-resources-sections {
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-why-cert__inner,
  .cw-resources-group,
  .cw-media-single-form__intro .cw-container,
  .cw-media-single-form__form,
  .cw-contact-lead__form,
  .cw-species-contact__form,
  body:not(.home) .cw-end-form--forest {
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-section-s);
  }

  .cw-about-split h2,
  .cw-about-work h2,
  .cw-why-wood-properties > h2,
  .cw-why-properties h2,
  .cw-why-forests h2,
  .cw-why-forests-builder h2,
  .cw-program-single-intro h2,
  .cw-program-benefits h2,
  .cw-resources-group__title,
  .cw-species-section-title,
  .cw-success-intro h1,
  .privacy-policy-page__header {
    margin-bottom: var(--cw-space-heading);
  }

  .cw-species-characteristics__graphic,
  .cw-species-characteristics__grid,
  .cw-species-properties__grid,
  .cw-species-resources__viewport,
  .cw-species-collections__viewport,
  .cw-species-characteristics__graphic {
    margin-top: var(--cw-space-block);
  }

  .cw-media-builder {
    gap: var(--cw-space-block);
  }

  .cw-gallery-detail__header {
    margin-bottom: var(--cw-space-block);
  }
}

/* Shared Home/Gallery collection popup: Gallery is the visual source of truth. */
.cw-collection-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  background: var(--cw-color-surface);
}

.cw-collection-modal.is-open {
  display: block;
}

.cw-collection-modal__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 88px 92px 72px;
}

.cw-collection-modal__count {
  position: absolute;
  top: 16px;
  left: 28px;
  color: var(--cw-dark-moss);
  font-size: 18px;
  font-weight: 700;
}

.cw-collection-modal__close {
  position: absolute;
  z-index: 2;
  top: 30px;
  right: 38px;
  width: 51px;
  height: 51px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cw-collection-modal__close::before,
.cw-collection-modal__close::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 5px;
  width: 45px;
  height: 2px;
  background: var(--cw-dark-moss);
}

.cw-collection-modal__close::before {
  transform: rotate(45deg);
}

.cw-collection-modal__close::after {
  transform: rotate(-45deg);
}

.cw-collection-modal__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 58px;
  align-items: center;
  width: min(1660px, calc(100vw - 260px));
  margin: 0 auto;
}

.cw-collection-modal__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(74vh, 780px);
  min-height: 420px;
}

.cw-collection-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cw-collection-modal .cw-collection-modal__species {
  margin-bottom: 18px;
  color: var(--cw-green-primary);
  font-size: 18px;
  font-weight: 700;
}

.cw-collection-modal__text {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding-right: 8px;
}

.cw-collection-modal__text h2 {
  margin: 0 0 40px;
  color: var(--cw-color-text);
  font-size: 26px;
  line-height: 1.2;
}

.cw-collection-modal__text p {
  margin: 0;
  color: var(--cw-text);
  font-size: 22px;
  line-height: 1.22;
}

.cw-collection-modal__description p {
  font-size: 17px;
  line-height: 1.4;
  white-space: pre-line;
}

.cw-collection-modal__arrow {
  position: absolute;
  z-index: 2;
  top: 52%;
  width: 42px;
  height: 66px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.cw-collection-modal__arrow::before,
.cw-collection-modal__arrow::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 34px;
  height: 34px;
  border-top: 2px solid var(--cw-dark-moss);
  border-right: 2px solid var(--cw-dark-moss);
}

.cw-collection-modal__arrow--prev {
  left: 34px;
}

.cw-collection-modal__arrow--prev::before {
  left: 12px;
  transform: rotate(-135deg);
}

.cw-collection-modal__arrow--prev::after,
.cw-collection-modal__arrow--next::after {
  display: none;
}

.cw-collection-modal__arrow--next {
  right: 34px;
}

.cw-collection-modal__arrow--next::before {
  right: 12px;
  transform: rotate(45deg);
}

@media (max-width: 1180px) {
  .cw-collection-modal__inner {
    padding: 96px 72px 72px;
  }

  .cw-collection-modal__content {
    width: min(100%, calc(100vw - 180px));
    gap: 36px;
  }

  .cw-collection-modal__media {
    height: min(66vh, 680px);
  }
}

@media (max-width: 900px) {
  .cw-collection-modal__inner {
    padding-right: 32px;
    padding-left: 32px;
  }

  .cw-collection-modal__content {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .cw-collection-modal__media {
    height: min(54vh, 520px);
    min-height: 300px;
  }

  .cw-collection-modal__text {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .cw-collection-modal__text p {
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  .cw-collection-modal__inner {
    padding: 86px 20px 64px;
  }

  .cw-collection-modal__close {
    top: 24px;
    right: 22px;
  }

  .cw-collection-modal__arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .cw-collection-modal__arrow--prev {
    left: 24px;
  }

  .cw-collection-modal__arrow--next {
    right: 24px;
  }
}

/* Home desktop density pass — keep content sections compact and content-led. */
/* Sitewide desktop density pass — shared rhythm without changing media geometry. */
@media (min-width: 1025px) and (max-width: 1600px) {
  :root {
    --cw-space-section-l: 56px;
    --cw-space-section-m: 56px;
    --cw-space-section-s: 40px;
    --cw-space-heading: 18px;
    --cw-space-block: 18px;
    --cw-space-content: 9px;
    --cw-page-copy-leading: 1.42;
    --cw-page-paragraph-gap: 9px;
  }

  .cw-home-species__tab {
    min-height: 56px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 20px;
  }
}

@media (min-width: 1601px) {
  :root {
    --cw-space-section-l: 64px;
    --cw-space-section-m: 60px;
    --cw-space-section-s: 44px;
    --cw-space-heading: 20px;
    --cw-space-block: 20px;
    --cw-space-content: 10px;
    --cw-page-copy-leading: 1.46;
    --cw-page-paragraph-gap: 10px;
  }
}

/* Contact desktop: compact the two content rows and preserve a clear
   section boundary before the following forest/form block. */
@media (min-width: 1025px) and (max-width: 1600px) {
  .cw-contact-overview {
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-contact-overview__inner {
    row-gap: 34px;
  }
}

@media (min-width: 1601px) {
  .cw-contact-overview {
    padding-bottom: var(--cw-space-section-m);
  }

  .cw-contact-overview__inner {
    row-gap: 38px;
  }
}

@media (min-width: 1025px) {
  body:not(.home) :is(
    .cw-about-split__copy,
    .cw-about-work__text,
    .cw-why-wood-properties,
    .cw-why-forest-copy,
    .cw-why-sustainable__copy,
    .cw-why-cert__columns,
    .cw-finishes-intro,
    .cw-gallery-intro,
    .cw-gallery-category__text,
    .cw-program-card__content,
    .cw-program-single-intro__text,
    .cw-program-offer__copy,
    .cw-program-benefit__inner,
    .cw-success-intro,
    .cw-success-card__panel,
    .cw-resources-intro__text,
    .cw-resource-card,
    .cw-media-single-body,
    .cw-media-builder-rich-text,
    .cw-media-builder-text-image,
    .cw-contact-overview,
    .privacy-policy-page__content,
    .cw-species-panel__text,
    .cw-species-accordion__panel,
    .cw-species-resource__body
  ) :is(p, li) {
    line-height: var(--cw-page-copy-leading);
  }

  body:not(.home) :is(
    .cw-about-split__copy,
    .cw-about-work__text,
    .cw-why-wood-properties,
    .cw-why-forest-copy,
    .cw-why-sustainable__copy,
    .cw-why-cert__columns,
    .cw-finishes-intro,
    .cw-gallery-intro,
    .cw-gallery-category__text,
    .cw-program-single-intro__text,
    .cw-program-offer__copy,
    .cw-success-intro,
    .cw-success-card__panel,
    .cw-resources-intro__text,
    .cw-media-single-body,
    .cw-media-builder-rich-text,
    .cw-media-builder-text-image,
    .cw-contact-overview,
    .privacy-policy-page__content,
    .cw-species-panel__text,
    .cw-species-accordion__panel,
    .cw-species-resource__body
  ) p:not(:last-child) {
    margin-bottom: 0;
  }

  body:not(.home) :is(
    .cw-about-split__copy,
    .cw-about-work__text,
    .cw-why-wood-properties,
    .cw-why-forest-copy,
    .cw-why-sustainable__copy,
    .cw-why-cert__columns,
    .cw-finishes-intro,
    .cw-gallery-intro,
    .cw-gallery-category__text,
    .cw-program-single-intro__text,
    .cw-program-offer__copy,
    .cw-success-intro,
    .cw-success-card__panel,
    .cw-resources-intro__text,
    .cw-media-single-body,
    .cw-media-builder-rich-text,
    .cw-media-builder-text-image,
    .cw-contact-overview,
    .privacy-policy-page__content,
    .cw-species-panel__text,
    .cw-species-accordion__panel,
    .cw-species-resource__body
  ) p + p {
    margin-top: var(--cw-page-paragraph-gap);
  }
}

/* Home desktop density pass — keep content sections compact and content-led. */
@media (min-width: 1025px) {
  .cw-home {
    --cw-home-section-space: 56px;
    --cw-home-heading-gap: 18px;
    --cw-home-media-heading-offset: calc(5px + var(--cw-home-heading-gap));
    --cw-home-block-gap: 18px;
    --cw-home-content-gap: 9px;
    --cw-home-copy-leading: 1.35;
    --cw-home-program-copy-gap: 14px;
    --cw-home-cta-followup-gap: 30px;
  }

  /* A section receives one boundary gap; internal components use smaller gaps. */
  .cw-home > .cw-home-species,
  .cw-home > .cw-home-intro,
  .cw-home > .cw-home-finishes,
  .cw-home > .cw-home-gallery,
  .cw-home > .cw-home-programs {
    padding-top: var(--cw-home-section-space);
  }

  .cw-home > .cw-home-programs {
    padding-bottom: var(--cw-home-section-space);
  }

  .cw-home-section-title::before,
  .cw-home-intro__text h2::before {
    margin-bottom: var(--cw-home-heading-gap);
  }

  .cw-home-section-text,
  .cw-home-intro__body,
  .cw-home-finishes__body {
    margin-top: var(--cw-home-heading-gap);
    line-height: var(--cw-home-copy-leading);
  }

  /* Remove browser paragraph margins so all visual gaps come from our tokens. */
  .cw-home-section-text > p,
  .cw-home-intro__body > p,
  .cw-home-finishes__body > p,
  .cw-home-program-card__body > p {
    margin-top: 0;
    margin-bottom: 0;
  }

  .cw-home-section-text > p + p,
  .cw-home-intro__body > p + p,
  .cw-home-finishes__body > p + p,
  .cw-home-program-card__body > p + p {
    margin-top: var(--cw-home-content-gap);
  }

  .cw-home-intro .cw-home-button,
  .cw-home-species__intro-button,
  .cw-home-finishes .cw-home-button {
    margin-top: var(--cw-home-heading-gap);
  }

  /* Let copy define two-column section height; crop media to the resulting row. */
  .cw-home-intro {
    grid-template-columns: minmax(300px, 0.74fr) minmax(420px, 1fr);
    gap: clamp(40px, 6vw, 82px);
    align-items: stretch;
  }

  .cw-home-finishes {
    grid-template-columns: minmax(300px, 0.74fr) minmax(420px, 1fr);
    gap: clamp(40px, 6vw, 82px);
    align-items: stretch;
  }

  .cw-home-finish-card {
    min-height: 0;
    aspect-ratio: auto;
  }

  .cw-home-intro__media {
    position: relative;
    min-height: 0;
    margin-top: var(--cw-home-media-heading-offset);
    aspect-ratio: auto;
  }

  .cw-home-finishes__grid {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    contain: size;
    height: calc(100% - var(--cw-home-media-heading-offset));
    min-height: 0;
    margin-top: var(--cw-home-media-heading-offset);
  }

  .cw-home-intro__image {
    position: absolute;
    inset: 0;
  }

  .cw-home-species__tabs,
  .cw-home-programs__slider {
    margin-top: var(--cw-home-block-gap);
  }

  .cw-home-species__tabs {
    margin-top: var(--cw-home-cta-followup-gap);
  }

  .cw-home-program-card__link {
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .cw-home-program-card__body {
    margin-top: var(--cw-home-program-copy-gap);
    line-height: var(--cw-home-copy-leading);
  }

  .cw-home-program-card__media {
    margin-top: var(--cw-home-heading-gap);
  }

  .cw-home-programs__action {
    margin-top: var(--cw-home-cta-followup-gap);
  }

  .cw-home-gallery__heading {
    padding-bottom: var(--cw-home-block-gap);
  }
}

@media (min-width: 1601px) {
  .cw-home {
    --cw-home-section-space: 64px;
    --cw-home-heading-gap: 20px;
    --cw-home-block-gap: 20px;
    --cw-home-content-gap: 10px;
    --cw-home-copy-leading: 1.46;
    --cw-home-program-copy-gap: 16px;
    --cw-home-cta-followup-gap: 34px;
  }

}

/* About review: compact the joined intro rows and use one intentional work-grid rhythm. */
@media (min-width: 1025px) {
  .cw-about-page .cw-about-split {
    height: clamp(300px, 20vw, 400px);
  }

  .cw-about-page .cw-about-work__grid {
    row-gap: calc(var(--cw-space-heading) * 2);
  }

  .cw-about-page .cw-about-work__item {
    display: grid;
    grid-template-rows: auto 1fr auto;
  }

  .cw-about-page .cw-about-work__text {
    margin-bottom: 0;
  }

  .cw-about-page .cw-about-work__image {
    margin-top: var(--cw-space-content);
  }

  /* Sitemap content audit: remove stacked authoring margins and compact inner section rhythm. */
  .cw-gallery-intro > :last-child {
    margin-bottom: 0;
  }

  .cw-media-single-head time {
    margin-bottom: 0;
  }

  .cw-media-single--blog .cw-media-single-head {
    padding-bottom: calc(var(--cw-space-heading) + var(--cw-space-content));
  }

  .cw-media-single--event .cw-media-single-body,
  .cw-media-single--success_story .cw-media-single-body {
    padding-top: var(--cw-space-block);
  }

  .cw-why-cert__columns {
    margin-bottom: calc(var(--cw-space-heading) * 2);
  }

  .cw-why-cert__footer {
    margin-top: calc(var(--cw-space-heading) * 2);
  }

  .cw-success-card + .cw-success-card {
    margin-top: calc(var(--cw-space-heading) * 2);
  }

  .cw-success-card h2,
  .cw-success-card p {
    margin-bottom: var(--cw-space-heading);
  }

  .cw-program-card__content > p:last-of-type {
    margin-bottom: 0;
  }

  .cw-program-card__content .cw-program-button {
    margin-top: var(--cw-space-heading);
  }

  .cw-resources-intro__text p:last-child {
    margin-bottom: calc(var(--cw-space-heading) * 2);
  }
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .cw-gallery-intro {
    padding-bottom: 42px;
  }
}

@media (min-width: 1601px) {
  .cw-gallery-intro {
    padding-bottom: 48px;
  }
}

/* Deep section review: let content and compact media geometry control section height. */
@media (min-width: 1025px) {
  /*
   * Program detail rhythm: use one compact transition between every major block.
   * Removing the adjoining bottom padding prevents two section paddings from
   * accumulating into the oversized gaps seen above "WHAT WE OFFER".
   */
  .cw-program-single {
    --cw-program-section-gap: calc(var(--cw-space-section-s) + 10px);
  }

  .cw-program-single-intro {
    padding-top: var(--cw-program-section-gap);
    padding-bottom: 0;
  }

  .cw-program-offer {
    padding-top: var(--cw-program-section-gap);
    padding-bottom: 0;
  }

  .cw-program-benefits {
    padding-top: var(--cw-program-section-gap);
  }

  .cw-why-page .cw-why-forests-builder > h2,
  .cw-why-page .cw-why-forests > h2 {
    margin-bottom: calc(var(--cw-space-heading) - var(--cw-space-content));
  }

  /* Fill the first checkerboard row instead of leaving a blank strip above its image. */
  .cw-why-page .cw-why-forest-copy {
    padding: clamp(24px, 2.2vw, 34px) clamp(38px, 4.4vw, 68px);
  }

  .cw-why-page .cw-why-forest-image--top {
    height: auto;
    align-self: stretch;
  }

  .cw-why-page .cw-why-forest-image--bottom {
    height: clamp(300px, 20vw, 350px);
    align-self: start;
  }

  /* The map canvas is fixed-positioned internally; shorten only its flow footprint. */
  .cw-why-page .cw-why-sustainable__graphic {
    height: 738px;
  }

  /* Give every map statistic the same strong active/hover language as the forest card. */
  .cw-why-sustainable-stat.is-active {
    z-index: 1;
    transform: translateX(8px);
    filter: brightness(1.08) saturate(1.12);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sustainable-accent) 34%, transparent),
      0 12px 26px rgb(16 102 59 / 24%);
  }

  .cw-finishes-intro {
    padding-top: var(--cw-space-section-s);
    padding-bottom: var(--cw-space-section-s);
  }

  .cw-gallery-category {
    min-height: 0;
  }

  .cw-gallery-category__media {
    height: clamp(320px, 28vw, 380px);
  }

  .cw-gallery-category__image {
    height: 100%;
    aspect-ratio: auto;
  }

  .cw-program-single-intro__text {
    margin-bottom: var(--cw-space-heading);
  }

  .cw-program-offer__intro {
    margin-bottom: var(--cw-space-content);
  }

  .cw-program-offer__media img {
    aspect-ratio: 1.65 / 1;
  }

  .cw-program-benefits h2 {
    margin-bottom: calc(var(--cw-space-heading) * 2);
  }

  .cw-program-benefits__grid {
    row-gap: calc(var(--cw-space-heading) * 2);
  }
}

@media (min-width: 1601px) {
  .cw-why-page .cw-why-sustainable__graphic {
    height: 742px;
  }
}

/* Final media spacing overrides: keep article transitions balanced. */
.cw-media-single--news .cw-media-single-body {
  padding-bottom: 16px;
}

.cw-media-single--event .cw-media-single-body {
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 1025px) {
  /* Keep the first Sustainability copy aligned with the B.C. FORESTS heading. */
  .cw-why-page .cw-why-forest-copy--top {
    padding-left: 0;
  }
}

/* 16 Sep follow-up: shared slider dots, stable Home CTA and contained Event galleries. */
.cw-page-hero__dots {
  gap: 13px;
}

.cw-page-hero__dots button {
  width: 13px;
  height: 13px;
  background: var(--cw-white);
}

.cw-page-hero__dots button.is-active {
  background: var(--cw-green-cta);
}

.cw-home-species__detail,
.cw-home-species__detail:visited {
  border-color: var(--cw-green-cta);
  background: var(--cw-green-cta);
  color: var(--cw-white);
}

.cw-home-species__detail:hover,
.cw-home-species__detail:focus,
.cw-home-species__detail:focus-visible {
  border-color: var(--cw-green-hover);
  background: var(--cw-green-hover);
  color: var(--cw-white);
}

/* Chrome can restore both :focus and a stale :hover after browser Back.
   Hold the CTA at its default colour until the next real user interaction. */
.cw-home-species__detail.is-history-restored,
.cw-home-species__detail.is-history-restored:hover,
.cw-home-species__detail.is-history-restored:focus,
.cw-home-species__detail.is-history-restored:focus-visible {
  border-color: var(--cw-green-cta);
  background: var(--cw-green-cta);
  color: var(--cw-white);
}

.cw-event-gallery {
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.cw-event-gallery > * {
  min-width: 0;
  max-width: 100%;
}

.cw-event-gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1025px) {
  .cw-species-characteristic p {
    font-size: 20px;
    line-height: 1.25;
  }
}

/* 16 Sep: match Species downloads to Resources actions and refine Home markers. */
.cw-home-intro__text h2::before,
.cw-home-section-title::before {
  height: 5px;
}

.cw-species-resource__button {
  width: auto;
  min-width: 128px;
  min-height: 38px;
  align-self: flex-start;
  gap: 8px;
  padding: 8px 18px;
  box-sizing: border-box;
  font-size: 17px;
  line-height: 1;
}

.cw-species-resource__button img {
  width: 20px;
  height: 20px;
}

/* Per-slide focal point: preserve furniture when cover-cropping responsive sliders. */
.cw-page-hero__image,
.cw-home-hero__image,
.cw-home-species__image,
.cw-home-gallery__image,
.cw-gallery-category__image,
.cw-gallery-card__image,
.cw-species-collection__image,
.cw-species-hero__image {
  object-position: var(--cw-image-focus-desktop, 50% 65%);
}

@media (max-width: 767px) {
  .cw-page-hero__image,
  .cw-home-hero__image,
  .cw-home-species__image,
  .cw-home-gallery__image,
  .cw-gallery-category__image,
  .cw-gallery-card__image,
  .cw-species-collection__image,
  .cw-species-hero__image {
    object-position: var(--cw-image-focus-mobile, var(--cw-image-focus-desktop, 50% 65%));
  }
}

/* Compact desktop Gallery: size the artwork itself from viewport height.
   This replaces the former chain of section-height, header subtraction and
   flex sizing, which produced very different artwork ratios at 1280–1400px. */
@media (min-width: 1025px) and (max-width: 1400px) {
  .cw-home-gallery {
    display: block;
    height: auto;
    min-height: 0;
    padding-bottom: 0;
  }

  .cw-home-gallery__slider {
    display: block;
    flex: none;
    width: 100%;
    height: 92svh;
    min-height: 90svh;
    max-height: 95svh;
    aspect-ratio: auto;
  }
}

/* Larger desktops retain the approved complete-composition fit. */
@media (min-width: 1401px) {
  .cw-home-gallery {
    display: flex;
    flex-direction: column;
    height: calc(95svh - var(--cw-site-header-height, 118px));
    min-height: 0;
    padding-bottom: 0;
  }

  .cw-home-gallery__slider {
    flex: 1 1 0;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }
}

/* 18 Sep: compact desktop forms and keep every active/legacy form family on
   the same body-copy scale. Mobile keeps its separately approved rhythm. */
@media (min-width: 768px) {
  .cw-end-form__intro p,
  .cw-company-form h2 + p,
  .cw-program-form h2 + p,
  .cw-media-single-form__intro p {
    margin-top: 6px;
  }

  .cw-end-form__note,
  .cw-company-form__note,
  .cw-program-form__note,
  .cw-media-single-form__note,
  .cw-contact-lead__note,
  .cw-species-contact__note {
    font-size: clamp(15px, 0.94vw, 18px);
  }

  .cw-end-form__form,
  .cw-company-form__form,
  .cw-program-form__form,
  .cw-media-single-form__form,
  .cw-contact-lead__form,
  .cw-species-contact__form {
    padding-top: 18px;
  }

  .cw-end-form__fields,
  .cw-company-form__fields,
  .cw-program-form__fields,
  .cw-media-single-form__fields,
  .cw-contact-lead__fields,
  .cw-species-contact__fields {
    column-gap: clamp(42px, 4vw, 64px);
    row-gap: 24px;
  }

  .cw-end-form__field,
  .cw-company-form__field,
  .cw-program-form__field,
  .cw-media-single-form__field,
  .cw-contact-lead__field,
  .cw-species-contact__field,
  .cw-end-form input,
  .cw-end-form textarea,
  .cw-end-form select,
  .cw-company-form input,
  .cw-company-form textarea,
  .cw-program-form input,
  .cw-program-form textarea,
  .cw-program-form select,
  .cw-media-single-form input,
  .cw-media-single-form textarea,
  .cw-media-single-form select,
  .cw-contact-lead input,
  .cw-contact-lead textarea,
  .cw-species-contact input,
  .cw-species-contact textarea {
    font-size: clamp(15px, 0.94vw, 18px);
  }

  .cw-end-form__field,
  .cw-contact-lead__field,
  .cw-species-contact__field {
    gap: 4px;
  }

  .cw-end-form input,
  .cw-end-form select,
  .cw-contact-lead__field input,
  .cw-species-contact__field input {
    min-height: 32px;
  }

  .cw-company-form input,
  .cw-company-form textarea,
  .cw-program-form input,
  .cw-program-form textarea,
  .cw-program-form select,
  .cw-media-single-form__field input,
  .cw-media-single-form__field textarea,
  .cw-media-single-form__field select {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .cw-end-form textarea,
  .cw-contact-lead__field textarea,
  .cw-species-contact__field textarea,
  .cw-media-single-form__field textarea {
    min-height: 54px;
  }

  .cw-company-form textarea,
  .cw-program-form textarea {
    min-height: 38px;
  }

  .cw-end-form button,
  .cw-company-form button,
  .cw-program-form button,
  .cw-media-single-form__form button,
  .cw-contact-lead__submit,
  .cw-species-contact__submit {
    min-height: 44px;
    margin-top: 36px;
    font-size: clamp(15px, 0.94vw, 18px);
  }

  .cw-media-single-form__fields {
    margin-bottom: 0;
  }

  .cw-end-form__note {
    margin-bottom: 20px;
  }

  /* The shared active form uses the forest variant, whose selectors are more
     specific than the generic form rules above. Keep its compact values in
     the same authoritative desktop layer. */
  .cw-end-form--forest .cw-end-form__note {
    margin-bottom: 10px;
    font-size: clamp(15px, 0.94vw, 18px);
  }

  .cw-end-form--forest .cw-end-form__fields {
    column-gap: clamp(42px, 4vw, 64px);
    row-gap: 8px;
  }

  .cw-end-form--forest .cw-end-form__field {
    font-size: clamp(15px, 0.94vw, 18px);
  }

  .cw-end-form--forest input,
  .cw-end-form--forest select {
    min-height: 28px;
  }

  .cw-end-form--forest textarea {
    min-height: 48px;
  }

  .cw-end-form--forest button {
    min-height: 42px;
    margin-top: 18px;
    font-size: clamp(15px, 0.94vw, 18px);
  }

  .cw-company-form__note,
  .cw-program-form__note {
    margin-bottom: 24px;
  }
}

/* Shared post-submit destination. */
.cw-thank-you {
  display: grid;
  min-height: clamp(500px, 68vh, 760px);
  place-items: center;
  padding: var(--cw-space-section-l) 0;
  background: var(--cw-color-surface-evergreen-soft);
  text-align: center;
}

.cw-thank-you__inner {
  max-width: 1200px;
}

.cw-thank-you h1 {
  margin: 0;
  color: var(--cw-green-primary);
  font-family: var(--font-heading);
  font-size: clamp(18px, calc(5.4vw - 5px), 53px);
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
}

.cw-thank-you__copy {
  max-width: 680px;
  margin: var(--cw-space-heading) auto 0;
  color: #000;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.45;
}

.cw-thank-you__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: calc(var(--cw-space-block) + 8px);
  padding: 10px 24px;
  background: var(--cw-green-cta);
  color: var(--cw-white);
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.cw-thank-you__button:hover,
.cw-thank-you__button:focus-visible {
  background: var(--cw-green-hover);
  color: var(--cw-white);
}

@media (max-width: 767px) {
  .cw-thank-you {
    min-height: 520px;
    padding: var(--cw-space-section-m) 0;
  }

  .site-main .cw-thank-you__copy {
    margin-top: 28px;
    font-size: 17px;
  }
}

/* 18 Sep: Sustainability map — stronger desktop state contrast. The prior
   animation returned each region to a near-default colour, so the relationship
   between a statistic, its connector and the map was easy to miss. */
@media (min-width: 1025px) {
  .cw-why-sustainable.has-active-item .cw-why-sustainable__map-svg .cls-1,
  .cw-why-sustainable.has-active-item .cw-why-sustainable__map-svg .cls-2,
  .cw-why-sustainable.has-active-item .cw-why-sustainable__map-svg .cls-3,
  .cw-why-sustainable.has-active-item .cw-why-sustainable__map-svg .cls-4 {
    opacity: 0.24;
    filter: grayscale(0.32) saturate(0.55);
  }

  .cw-why-sustainable.has-active-item[data-active-layer="total"] .cw-why-sustainable__map-svg .cw-map-bc-region .cls-2,
  .cw-why-sustainable.has-active-item[data-active-layer="forest"] .cw-why-sustainable__map-svg .cls-1,
  .cw-why-sustainable.has-active-item[data-active-layer="harvest"] .cw-why-sustainable__map-svg .cls-4,
  .cw-why-sustainable.has-active-item[data-active-layer="annual"] .cw-why-sustainable__map-svg .cls-3 {
    opacity: 1;
    stroke: #fff;
    stroke-width: 2.25px;
    animation: cwSustainableMapHighContrast 620ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }

  .cw-why-sustainable.has-active-item[data-active-layer="total"] .cw-why-sustainable__map-svg .cw-map-bc-region .cls-2 {
    fill: #59634d;
  }

  .cw-why-sustainable.has-active-item[data-active-layer="forest"] .cw-why-sustainable__map-svg .cls-1 {
    fill: #b9dc4d;
  }

  .cw-why-sustainable.has-active-item[data-active-layer="harvest"] .cw-why-sustainable__map-svg .cls-4 {
    fill: #438c38;
  }

  .cw-why-sustainable.has-active-item[data-active-layer="annual"] .cw-why-sustainable__map-svg .cls-3 {
    fill: #004f2d;
  }

  .cw-why-sustainable.has-active-item .cw-map-connector:not(.is-active) {
    opacity: 0.1;
  }

  .cw-map-connector.is-active line,
  .cw-map-connector.is-active polyline,
  .cw-map-connector.is-active circle {
    stroke-width: 2.25;
  }

  .cw-map-connector.is-active circle {
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--connector-color) 80%, transparent));
  }

  .cw-why-sustainable-stat.is-active {
    transform: translateX(12px);
    filter: brightness(1.12) saturate(1.22);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--sustainable-accent) 48%, transparent),
      0 14px 30px rgb(16 102 59 / 30%);
  }
}

@keyframes cwSustainableMapHighContrast {
  0% {
    transform: scale(0.975);
    filter: brightness(0.86) saturate(0.75);
  }

  58% {
    transform: scale(1.045);
    filter: brightness(1.18) saturate(1.35)
      drop-shadow(0 0 12px rgb(147 193 68 / 78%));
  }

  100% {
    transform: scale(1.018);
    filter: brightness(1.06) saturate(1.2)
      drop-shadow(0 0 7px rgb(16 102 59 / 55%));
  }
}

/* 18 Sep: Desktop Finishes CTA and primary-navigation spacing. */
@media (min-width: 1025px) {
  /* Match the shared Home CTA exactly while retaining button semantics. */
  .cw-finishes-load-more {
    display: flex;
    width: max-content;
    min-width: 128px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin: 26px auto 0;
    padding: 10px 22px;
    border: 1px solid var(--cw-green-cta);
    border-radius: 0;
    background: var(--cw-green-cta);
    color: var(--cw-white);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    transition: background-color 160ms ease, border-color 160ms ease;
  }

  .cw-finishes-load-more:hover,
  .cw-finishes-load-more:focus-visible {
    border-color: var(--cw-green-hover);
    background: var(--cw-green-hover);
    color: var(--cw-white);
  }

  /* The previous 17–25px range is increased by 50%, fluidly across desktop. */
  .site-nav,
  .site-nav__menu {
    gap: clamp(25.5px, 2.025vw, 37.5px);
  }
}

/* 18 Sep: Optional static treatment for every non-Home slider hero. */
.cw-page-hero--static-banner .cw-page-hero__caption::after,
.cw-species-hero--static-banner .cw-species-hero__caption::after {
  content: "";
  display: block;
  width: clamp(88px, 7.5vw, 144px);
  height: 4px;
  margin-top: clamp(18px, 1.6vw, 28px);
  background: var(--cw-white);
}

@media (min-width: 1025px) {
  .cw-page-hero--static-banner,
  .cw-species-hero--static-banner,
  .cw-page-hero--static-banner.cw-page-hero--height-full,
  .cw-page-hero--static-banner.cw-page-hero--height-compact,
  .cw-species-hero--static-banner.cw-species-hero--height-full,
  .cw-species-hero--static-banner.cw-species-hero--height-compact {
    width: 100%;
    height: 50svh !important;
    min-height: 320px !important;
    max-height: none;
    aspect-ratio: auto;
  }

  .cw-page-hero--static-banner .cw-page-hero__shade,
  .cw-species-hero--static-banner .cw-species-hero__shade {
    background: linear-gradient(90deg, rgb(0 20 12 / 34%) 0%, rgb(0 20 12 / 13%) 52%, rgb(0 20 12 / 5%) 100%);
  }

  .cw-page-hero--static-banner .cw-page-hero__content {
    --cw-static-hero-container: 1200px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-block: clamp(40px, 5.5vh, 68px);
    padding-inline: max(24px, calc((100% - var(--cw-static-hero-container)) / 2));
    text-align: left;
  }

  .cw-page-hero--static-banner .cw-page-hero__caption {
    width: min(760px, 62vw);
    text-align: left;
  }

  .cw-page-hero--static-banner .cw-page-hero__content h1 {
    width: 100%;
    max-width: 760px;
    margin: 0;
    font-size: clamp(38px, 3vw, 58px);
    line-height: 1.05;
    text-align: left;
  }

  .cw-page-hero--static-banner .cw-page-hero__caption p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--cw-white);
    font-size: clamp(18px, 1.35vw, 26px);
    line-height: 1.2;
    text-align: left;
  }

  .cw-species-hero--static-banner .cw-species-hero__caption {
    top: auto;
    right: auto;
    bottom: clamp(40px, 5.5vh, 68px);
    left: max(24px, calc((100% - 1200px) / 2));
    width: min(900px, 72vw);
    transform: none;
    text-align: left;
  }

  .cw-species-hero--static-banner .cw-species-hero__caption h1,
  .cw-species-hero--static-banner .cw-species-hero__caption h2 {
    width: 100%;
    max-width: 900px;
    margin: 0;
    font-size: clamp(38px, 3vw, 58px);
    line-height: 1.05;
    text-align: left;
  }

  .cw-species-hero--static-banner .cw-species-hero__caption p {
    max-width: 860px;
    margin: 12px 0 0;
    font-size: clamp(18px, 1.35vw, 26px);
    line-height: 1.2;
    text-align: left;
  }
}

@media (min-width: 1600px) {
  .cw-page-hero--static-banner .cw-page-hero__content {
    --cw-static-hero-container: 1320px;
  }

  .cw-species-hero--static-banner .cw-species-hero__caption {
    left: max(24px, calc((100% - 1320px) / 2));
  }
}

@media (min-width: 1920px) {
  .cw-page-hero--static-banner .cw-page-hero__content {
    --cw-static-hero-container: 1440px;
  }

  .cw-species-hero--static-banner .cw-species-hero__caption {
    left: max(24px, calc((100% - 1440px) / 2));
  }
}

@media (max-width: 1024px) {
  .cw-page-hero--static-banner .cw-page-hero__content {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 32px 24px;
    text-align: left;
  }

  .cw-page-hero--static-banner .cw-page-hero__caption,
  .cw-page-hero--static-banner .cw-page-hero__content h1 {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .cw-page-hero--static-banner .cw-page-hero__caption::after,
  .cw-species-hero--static-banner .cw-species-hero__caption::after {
    margin-right: 0;
    margin-left: 0;
  }

  .cw-species-hero--static-banner .cw-species-hero__caption {
    right: 24px;
    left: 24px;
    width: auto;
    text-align: left;
  }

  .cw-species-hero--static-banner .cw-species-hero__caption h1,
  .cw-species-hero--static-banner .cw-species-hero__caption h2,
  .cw-species-hero--static-banner .cw-species-hero__caption p {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .cw-page-hero--static-banner .cw-page-hero__content {
    padding-inline: var(--cw-mobile-gutter, 18px);
  }

  .cw-species-hero--static-banner .cw-species-hero__caption {
    right: var(--cw-mobile-gutter, 18px);
    left: var(--cw-mobile-gutter, 18px);
  }
}
