/* ===== Two Paths story (particle board vs. solid wood) =====
   Shared by dangers_of_particle_board, solid_wood, wood, safe,
   product_specifications and greenlundia. Self-contained: does not
   rely on any page stylesheet. */
.tps {
  --pb: #b5462f;
  --pb-soft: #fbf1ee;
  --sw: #1e7d3d;
  --sw-soft: #f1f8f2;
  box-sizing: border-box;
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 2.5rem 1.5rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
  text-align: left;
}

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

.tps-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.tps-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
}

.tps-title {
  margin: 0 0 0.75rem;
  font-size: 2.2rem;
  line-height: 1.15;
  color: #2b3542;
}

.tps-lead {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

.tps-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tps-vs {
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #999;
}

.tps-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.tps-tag-pb { background-color: var(--pb); }
.tps-tag-sw { background-color: var(--sw); }

/* Steps: particle board | marker | solid wood */
.tps-steps {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.tps-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, #d9dde2, #d9dde2 85%, transparent);
}

.tps-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  grid-template-areas: "pb marker sw";
  align-items: stretch;
  gap: 0;
  margin-bottom: 2.5rem;
}

.tps-marker {
  grid-area: marker;
  align-self: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  color: #2b3542;
}

.tps-marker span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid #d9dde2;
  border-radius: 50%;
  background-color: #ffffff;
  font-size: 1.3rem;
  color: #2b3542;
}

.tps-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.tps-card-pb { grid-area: pb; border-top: 4px solid var(--pb); }
.tps-card-sw { grid-area: sw; border-top: 4px solid var(--sw); }

.tps-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tps-card:hover img {
  transform: scale(1.04);
}

.tps-card figcaption {
  flex: 1;
  position: relative;
  padding: 1rem 1.25rem 1.25rem;
}

.tps-card-pb figcaption { background-color: var(--pb-soft); }
.tps-card-sw figcaption { background-color: var(--sw-soft); }

.tps-card h3 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.2rem;
  color: #2b3542;
}

.tps-card-pb h3 { color: var(--pb); }
.tps-card-sw h3 { color: var(--sw); }

.tps-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #444;
}

/* Tally */
.tps-tally {
  max-width: 760px;
  margin: 1rem auto 0;
  text-align: center;
}

.tps-tally-title {
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
  color: #2b3542;
}

.tps-tally-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  text-align: left;
}

.tps-tally-col {
  grid-area: auto;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
}

.tps-tally-col.tps-card-pb { background-color: var(--pb-soft); }
.tps-tally-col.tps-card-sw { background-color: var(--sw-soft); }

.tps-tally-col ul {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.tps-tally-col li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.6rem;
  font-size: 1.02rem;
  color: #333;
}

.tps-card-pb li::before,
.tps-card-sw li::before {
  position: absolute;
  left: 0;
  font-weight: bold;
}

.tps-card-pb li::before { content: "+"; color: var(--pb); }
.tps-card-sw li::before { content: "\2713"; color: var(--sw); }

.tps-tally-note {
  margin: 0.5rem 0 0;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--sw);
}

.tps-close {
  margin: 1.75rem 0 1rem;
  font-size: 1.2rem;
  font-style: italic;
  color: #2b3542;
}

.tps-cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  background-color: var(--sw);
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.tps-cta:hover,
.tps-cta:focus-visible {
  background-color: #145c2b;
  color: #ffffff;
}

/* Scroll reveal (only when JS has added .tps-reveal-ready) */
.tps-reveal-ready .tps-card,
.tps-reveal-ready .tps-marker {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tps-reveal-ready .tps-card-pb { transform: translateX(-30px); }
.tps-reveal-ready .tps-card-sw { transform: translateX(30px); transition-delay: 0.15s; }
.tps-reveal-ready .tps-marker { transform: scale(0.8); }

.tps-reveal-ready .is-visible .tps-card,
.tps-reveal-ready .is-visible .tps-marker {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .tps-reveal-ready .tps-card,
  .tps-reveal-ready .tps-marker {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tps-card img,
  .tps-card:hover img {
    transition: none;
    transform: none;
  }
}

/* Tablet: narrower marker column */
@media (max-width: 900px) {
  .tps-step {
    grid-template-columns: 1fr 84px 1fr;
  }

  .tps-marker {
    font-size: 0.65rem;
  }
}

/* Phone: marker on top, each card becomes a compact photo + text row */
@media (max-width: 640px) {
  .tps {
    padding: 1.75rem 0.75rem;
  }

  .tps-title {
    font-size: 1.7rem;
  }

  .tps-lead {
    font-size: 1rem;
  }

  .tps-steps::before {
    display: none;
  }

  .tps-step {
    grid-template-columns: 1fr;
    grid-template-areas:
      "marker"
      "pb"
      "sw";
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .tps-marker {
    flex-direction: row;
    justify-content: center;
    font-size: 0.8rem;
  }

  .tps-marker span {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }

  .tps-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    border-top: 0;
  }

  .tps-card-pb { border-left: 4px solid var(--pb); }
  .tps-card-sw { border-left: 4px solid var(--sw); }

  .tps-card img {
    height: 100%;
    min-height: 130px;
    aspect-ratio: auto;
  }

  .tps-card figcaption {
    padding: 0.75rem 0.85rem;
  }

  .tps-tag {
    font-size: 0.62rem;
    padding: 0.2rem 0.55rem;
  }

  .tps-card h3 {
    margin: 0.4rem 0 0.3rem;
    font-size: 1.02rem;
  }

  .tps-card p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .tps-reveal-ready .tps-card-pb,
  .tps-reveal-ready .tps-card-sw {
    transform: translateY(20px);
  }

  .tps-tally-title {
    font-size: 1.35rem;
  }

  .tps-tally-grid {
    grid-template-columns: 1fr;
  }

  .tps-cta {
    display: block;
  }
}
