/**
 * Impresion page (432) - technique cards, material chips, compatibility matrix.
 * Loaded by inc/site-polish.php on the /impresion/ page only.
 * Brand tokens follow assets/css/tokens.css (petrol / teal / lime, Poppins + Inter).
 */
:root {
  --pt-imp-ink: #042f3d;
  --pt-imp-teal: #0b617e;
  --pt-imp-lime: #a5c83f;
  --pt-imp-lime-deep: #8ab030;
  --pt-imp-bg: #f5f8ee;
  --pt-imp-body: #64748b;
  --pt-imp-warn: #b45309;
  --pt-imp-warn-bg: #fef3c7;
  --pt-imp-no: #94a3b8;
  --pt-imp-no-bg: #f1f5f9;
  --pt-imp-ok: #4d7c0f;
  --pt-imp-ok-bg: #f2f7e3;
}

/* ---- Technique cards ---- */
.pt-imp-card {
  background: #fff;
  border: 1px solid #e6ecf1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(4, 47, 61, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pt-imp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(4, 47, 61, 0.12);
}

/* Image slot: branded panel that reserves the photo space.
   Swap the whole .pt-imp-imgslot block for an <img> when the photo exists. */
.pt-imp-imgslot {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pt-imp-ink) 0%, var(--pt-imp-teal) 100%);
}
.pt-imp-imgslot svg {
  width: 64px;
  height: 64px;
  stroke: var(--pt-imp-lime);
}
.pt-imp-imgslot__label {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font: 600 11px/1 Poppins, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.pt-imp-card .pt-imp-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* ---- Material chips ---- */
.pt-imp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pt-imp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font: 600 12.5px/1.2 Inter, sans-serif;
}
.pt-imp-chip--ok {
  background: var(--pt-imp-ok-bg);
  color: var(--pt-imp-ok);
  border: 1px solid rgba(138, 176, 48, 0.45);
}
.pt-imp-chip--warn {
  background: var(--pt-imp-warn-bg);
  color: var(--pt-imp-warn);
  border: 1px solid rgba(180, 83, 9, 0.3);
}
.pt-imp-chip--no {
  background: var(--pt-imp-no-bg);
  color: var(--pt-imp-no);
  border: 1px solid #e2e8f0;
  text-decoration: line-through;
}

/* ---- Compatibility matrix ---- */
.pt-imp-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.25);
}
table.pt-imp-matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-family: Inter, sans-serif;
  margin: 0;
}
.pt-imp-matrix th,
.pt-imp-matrix td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #eef2f6;
  font-size: 14.5px;
}
.pt-imp-matrix thead th {
  background: var(--pt-imp-ink);
  color: #fff;
  font: 600 14px/1.3 Poppins, sans-serif;
  letter-spacing: 0.02em;
}
.pt-imp-matrix thead th small {
  display: block;
  font: 400 11.5px/1.3 Inter, sans-serif;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}
.pt-imp-matrix tbody th {
  text-align: left;
  font: 600 14.5px/1.3 Poppins, sans-serif;
  color: var(--pt-imp-ink);
  background: #fbfdf7;
  white-space: nowrap;
}
.pt-imp-matrix tbody tr:hover td {
  background: #fafcf5;
}
.pt-imp-matrix tbody tr:last-child th,
.pt-imp-matrix tbody tr:last-child td {
  border-bottom: 0;
}
.pt-b {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font: 600 12px/1.4 Inter, sans-serif;
  white-space: nowrap;
}
.pt-b--best {
  background: var(--pt-imp-lime);
  color: var(--pt-imp-ink);
}
.pt-b--ok {
  background: var(--pt-imp-ok-bg);
  color: var(--pt-imp-ok);
  border: 1px solid rgba(138, 176, 48, 0.45);
}
.pt-b--warn {
  background: var(--pt-imp-warn-bg);
  color: var(--pt-imp-warn);
}
.pt-b--no {
  background: var(--pt-imp-no-bg);
  color: var(--pt-imp-no);
}
.pt-imp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
}

/* ---- Material cards ---- */
.pt-imp-mat {
  border-top: 4px solid var(--pt-imp-lime);
}

/* ---- Process step number bubble ---- */
.pt-imp-step-num .elementor-heading-title,
.pt-imp-step-num {
  font-family: Poppins, sans-serif;
}
span.pt-imp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--pt-imp-lime);
  color: var(--pt-imp-ink);
  font: 700 22px/1 Poppins, sans-serif;
  box-shadow: 0 6px 18px rgba(165, 200, 63, 0.4);
}

@media (max-width: 767px) {
  .pt-imp-matrix th,
  .pt-imp-matrix td {
    padding: 11px 10px;
    font-size: 13px;
  }
  .pt-imp-matrix tbody th {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pt-imp-card,
  .pt-imp-card:hover {
    transform: none;
    transition: none;
  }
}
