.forest-page {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(247, 247, 240, 0), #eef3e5 72%),
    radial-gradient(circle at 18% 14%, rgba(199, 220, 88, 0.32), transparent 24rem),
    radial-gradient(circle at 88% 22%, rgba(15, 118, 110, 0.22), transparent 26rem),
    #f7f7f0;
}

.forest-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.forest-header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.back-link {
  flex: 0 0 auto;
  font-weight: 900;
  min-width: max-content;
  text-decoration: none;
  white-space: nowrap;
}

.forest-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
  flex-wrap: wrap;
}

.forest-nav a {
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--muted);
}

.forest-hero {
  min-height: 42svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: end;
  padding: 72px 0 48px;
}

.forest-copy h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(4rem, 8vw, 8.6rem);
  line-height: 0.88;
}

.forest-copy p {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(1.12rem, 2vw, 1.6rem);
  line-height: 1.45;
  color: var(--muted);
}

.forest-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(21, 23, 18, 0.12);
  background: rgba(21, 23, 18, 0.12);
  box-shadow: 0 18px 60px rgba(21, 23, 18, 0.08);
}

.forest-stats div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.forest-stats dt {
  margin-bottom: 20px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.forest-stats dd {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 0.9;
}

.forest-stage {
  position: relative;
  min-height: 640px;
  border: 1px solid rgba(21, 23, 18, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.28)),
    linear-gradient(0deg, rgba(15, 118, 110, 0.08), transparent 36%),
    repeating-linear-gradient(
      90deg,
      rgba(21, 23, 18, 0.035) 0,
      rgba(21, 23, 18, 0.035) 1px,
      transparent 1px,
      transparent 54px
    );
  box-shadow: var(--shadow);
}

#forest-canvas {
  display: block;
  width: 100%;
  height: 640px;
}

.tree-tooltip {
  position: absolute;
  z-index: 2;
  max-width: 260px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 23, 18, 0.16);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(21, 23, 18, 0.14);
  pointer-events: none;
}

.tree-tooltip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.tree-tooltip span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.forest-log {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
  padding: 72px 0 0;
}

.forest-log h2 {
  font-size: clamp(2.25rem, 5vw, 5rem);
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.activity-card strong,
.activity-card span {
  display: block;
}

.activity-card strong {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.activity-card span {
  color: var(--muted);
  line-height: 1.35;
}

.activity-card time {
  font-weight: 900;
  color: var(--teal);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .forest-shell {
    width: min(100% - 28px, 680px);
    padding-top: 16px;
  }

  .forest-header,
  .forest-hero,
  .forest-log {
    grid-template-columns: 1fr;
  }

  .forest-hero {
    min-height: auto;
    gap: 28px;
    padding: 52px 0 32px;
  }

  .forest-copy h1 {
    font-size: clamp(3.25rem, 18vw, 5.8rem);
  }

  .forest-stats {
    grid-template-columns: 1fr;
  }

  .forest-stage {
    min-height: 560px;
  }

  #forest-canvas {
    height: 560px;
  }

  .activity-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .forest-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .forest-nav {
    justify-content: space-between;
  }
}
