/* ==========================================================================
   46 - Methods Grid
   Competing-approach cards on the Comparison / Benefits template.
   Pairs with 44-benefit-rows.css and shares its header conventions.

   Used by: template-parts/methods-grid.php
   ========================================================================== */

.methods-grid__header{
  max-width:var(--container-text);
  margin:0 auto var(--space-10);
  text-align:center;
}

.methods-grid__list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:var(--space-6);
}

.method-card{
  position:relative;
  padding:var(--space-8) var(--space-6) var(--space-6);
  background:var(--color-bg-white);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}

.method-card__num{
  position:absolute;
  top:calc(var(--space-4) * -1);
  left:var(--space-6);
  display:flex;
  align-items:center;
  justify-content:center;
  width:2.5rem;
  height:2.5rem;
  border-radius:50%;
  background:var(--color-action-deep);
  color:#fff;
  font-weight:700;
  font-size:var(--text-base);
  line-height:1;
}

.method-card__title{
  margin:0 0 var(--space-3);
  font-size:var(--text-lg);
  line-height:var(--leading-snug);
  color:var(--color-action-deep);
}

.method-card__body{
  color:var(--color-text-body);
  font-size:var(--text-sm);
  line-height:var(--leading-normal);
}

.method-card__body :where(p):last-child{
  margin-bottom:0;
}

.method-card__body :where(ul,ol){
  margin:var(--space-3) 0 0;
  padding-left:var(--space-5);
}

.method-card__body :where(li) + :where(li){
  margin-top:var(--space-2);
}

@media (max-width:640px){
  .methods-grid__list{
    grid-template-columns:1fr;
  }
}
