/* Itzania Base 0.2.61 — editorial and visual consolidation. */

/* One visual family for the cards touched in this pass. */
.ipp-guide-caution-card,
.ipp-preventive-process,
.ipp-preventive-activation > .wp-block-columns > .wp-block-column,
.ipp-vet-principle-card,
.ipp-vet-process-step,
.ipp-transfer-card,
.ipp-transfer-process,
.ipp-grief-card,
.ipp-grief-when,
.ipp-companeros-value {
  box-sizing:border-box;
  border:1px solid #E6E0E8;
  border-radius:18px;
  background:#fff;
}

/* Guide: the three cards should be peers, not one highlighted exception. */
.ipp-guide-caution-card.is-emphasis {
  background:#fff !important;
  border-color:#E6E0E8 !important;
}
.ipp-guide-cautions > .wp-block-columns {
  align-items:stretch;
}
.ipp-guide-cautions > .wp-block-columns > .wp-block-column {
  display:flex;
  min-width:0;
}
.ipp-guide-cautions .ipp-guide-caution-card {
  width:100%;
  margin-block-start:0 !important;
  margin-block-end:0 !important;
}

/* Preventive: preserve equal card widths in the incomplete second row. */
@media(min-width:783px) {
  .page-template-page-proteccion-preventiva .ipp-ceremony-process-row-last {
    width:100% !important;
    max-width:none !important;
    justify-content:center !important;
    gap:24px !important;
  }
  .page-template-page-proteccion-preventiva .ipp-ceremony-process-row-last > .wp-block-column {
    flex:0 1 calc((100% - 48px) / 3) !important;
    max-width:calc((100% - 48px) / 3) !important;
  }
}

/* Preventive activation: three real cards instead of one undivided white box. */
.ipp-preventive-activation {
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
}
.ipp-preventive-activation > .wp-block-columns {
  gap:22px !important;
  align-items:stretch !important;
}
.ipp-preventive-activation > .wp-block-columns > .wp-block-column {
  padding:26px !important;
  min-width:0;
  margin-block-start:0 !important;
  margin-block-end:0 !important;
}
.ipp-preventive-activation > .wp-block-columns > .wp-block-column h3 {
  margin-top:0 !important;
}
.ipp-preventive-activation > .wp-block-columns > .wp-block-column p:last-child {
  margin-bottom:0 !important;
}

/* Cards and process rows touched by this pass should align from the same top edge. */
.ipp-vet-principle-card,
.ipp-vet-process-step,
.ipp-transfer-card,
.ipp-transfer-process,
.ipp-grief-card,
.ipp-grief-when,
.ipp-preventive-process,
.ipp-companeros-value {
  margin-block-start:0 !important;
  margin-block-end:0 !important;
}

/* Gutenberg can add flow margins inside rows; keep incomplete rows optically centered. */
.page-template-page-proteccion-preventiva .ipp-ceremony-process-row-last > * {
  margin-block-start:0 !important;
  margin-block-end:0 !important;
}

@media(max-width:782px) {
  .page-template-page-proteccion-preventiva .ipp-ceremony-process-row-last > .wp-block-column {
    flex-basis:100% !important;
    max-width:none !important;
  }
  .ipp-preventive-activation > .wp-block-columns {
    gap:16px !important;
  }
  .ipp-preventive-activation > .wp-block-columns > .wp-block-column {
    padding:22px !important;
  }
}
