/* =============================================================
   PUBLEX — Wedge Page Styles
   Shared template for product-type landing pages
   ============================================================= */

/* ─── Content width constraint ────────────────────────────── */
.wedge-content {
  max-width: 760px;
}

/* ─── Problem lead sentence ───────────────────────────────── */
.wedge-problem-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--white);
  line-height: 1.65;
  font-weight: 400;
  margin-top: 1.5rem;
}

/* ─── Scenario flow panel ─────────────────────────────────── */
.scenario-panel {
  margin-top: 2.5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow);
  display: grid;
  grid-template-columns: auto 1fr;
  overflow: hidden;
}

.scenario-panel__label {
  display: flex;
  align-items: center;
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
}

.scenario-panel__label span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 1.7;
}

.scenario-panel__flow {
  display: flex;
  align-items: center;
  padding: 1.5rem 1.75rem;
  gap: 0.75rem;
}

.scenario-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  min-width: 0;
}

.scenario-step__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-l);
  flex-shrink: 0;
}

.scenario-step__caption {
  font-size: 0.78rem;
  color: var(--grey-l);
  line-height: 1.45;
}

.scenario-arrow {
  color: var(--grey);
  font-size: 0.9rem;
  flex-shrink: 0;
  opacity: 0.6;
}

.scenario-leave {
  color: var(--yellow);
  font-weight: 600;
}

/* Mobile: collapse to vertical list */
@media (max-width: 640px) {
  .scenario-panel {
    grid-template-columns: 1fr;
  }

  .scenario-panel__label {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
  }

  .scenario-panel__label span {
    line-height: 1;
  }

  .scenario-panel__flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .scenario-step {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex: none;
    align-items: center;
  }

  .scenario-step:last-child {
    border-bottom: none;
  }

  .scenario-arrow {
    display: none;
  }
}

/* ─── Problem section: full-bleed 2-col ──────────────────── */
.wedge-problem-outer {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.wedge-problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.wedge-problem__left {
  /* Align left edge with the container, add vertical breathing room */
  padding: 5rem 3rem 5rem max(2rem, calc((100vw - 1160px) / 2 + 2rem));
  align-self: center;
}

.wedge-problem__right {
  overflow: hidden;
  min-height: 540px;
}

.wedge-problem__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
}

@media (max-width: 900px) {
  .wedge-problem__grid {
    grid-template-columns: 1fr;
  }

  .wedge-problem__left {
    padding: 3.5rem 2rem;
    order: 2;
  }

  .wedge-problem__right {
    order: 1;
    min-height: 280px;
  }
}

/* ─── Wedge section body text ─────────────────────────────── */
.wedge-body {
  margin-top: 1.25rem;
  color: var(--grey-l);
  line-height: 1.75;
  max-width: 680px;
}

/* ─── Wedge CTA section ───────────────────────────────────── */
.wedge-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.wedge-cta__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .wedge-cta__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
