/* S7 product-card typography + alignment, 2026-12-01.
   Overlay only. No new borders, shadows, rounded chrome, or decorative icons.
   Desktop tight pass (t1199u): no reserved empty button stacks; actions in one row.
   Mobile (max-width:819px) layout is locked — do not change that block. */

/* Equal-height cards in a grid row; actions stay at the bottom. */
.v2-card{
  height:100%;
}
.v2-card-h{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  column-gap:12px;
  row-gap:6px;
  align-items:start;
}
.v2-card-h > picture,
.v2-card-h > img,
.v2-card-h > .v2-mono{
  grid-column:1;
  grid-row:1;
}
.v2-card-h > div{
  grid-column:2;
  grid-row:1;
  min-width:0;
}
.v2-card-h > .v2-badge{
  grid-column:1 / -1;
  grid-row:2;
  justify-self:start;
  box-sizing:border-box;
  max-width:100%;
  white-space:nowrap;
  font-size:.7rem;
  line-height:1.2;
  padding:3px 8px;
}

/* Chips stay whole; long store facts sit as a short line under platforms. */
.v2-tags li,
.v2-plats li{
  white-space:nowrap;
  max-width:100%;
}
.v2-plat-note{
  margin:0;
  font-size:.72rem;
  line-height:1.35;
  color:var(--mu);
}

/* Do not hyphenate or mid-word-break action labels. */
.v2-links a{
  overflow-wrap:normal;
  hyphens:manual;
  text-align:center;
  justify-content:center;
}

/* Homepage: tighten body copy so one card is not a tall wall. */
.v2-home .v2-card .sum{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:.82rem;
  line-height:1.4;
  min-height:2.8em;
}
.v2-home .v2-card .cave{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:.75rem;
  line-height:1.35;
}
.v2-home .v2-tags,
.v2-home .v2-plats{
  gap:5px;
}

/* Featured own products: Web try + Download App, equal weight, one row. */
.v2-home .v2-grid--featured .v2-links{
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:8px;
  margin-top:auto;
}
.v2-home .v2-grid--featured .v2-links a{
  flex:1 1 0;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:.78rem;
}

/* Desktop / tablet-landscape (≥820): one horizontal action row, no empty stacks.
   821–1023 still used the tall stacked-button layout; include them here.
   Mobile rules below this block must stay byte-stable. */
@media (min-width:820px){
  .v2-home .v2-card{
    padding:10px 10px 8px;
    gap:6px;
  }
  .v2-home .v2-card-h{
    column-gap:10px;
    row-gap:4px;
  }
  .v2-home .v2-tags,
  .v2-home .v2-plats{
    gap:4px;
  }
  .v2-home .v2-tags li,
  .v2-home .v2-plats li,
  .v2-home .v2-card-h > .v2-badge{
    font-size:.65rem;
    padding:2px 6px;
  }
  .v2-home .v2-plat-note{
    font-size:.68rem;
    line-height:1.3;
  }
  .v2-home .v2-card .sum{
    font-size:.78rem;
    line-height:1.35;
    min-height:2.7em;
  }
  .v2-home .v2-card .cave{
    -webkit-line-clamp:1;
    font-size:.7rem;
    line-height:1.3;
  }
  .v2-home .v2-links{
    padding-top:4px;
  }
  .v2-home .v2-grid--featured .v2-links{
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:stretch;
    gap:6px;
    margin-top:auto;
  }
  .v2-home .v2-grid--featured .v2-links a{
    flex:1 1 0;
    min-width:0;
    min-height:36px;
    padding:0 8px;
    font-size:.75rem;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .v2-home .v2-grid--rest .v2-card .v2-links{
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:stretch;
    gap:5px;
    margin-top:auto;
    min-height:0;
  }
  .v2-home .v2-grid--rest .v2-guide .v2-links{
    min-height:0;
  }
  .v2-home .v2-grid--rest .v2-links a{
    flex:1 1 0;
    min-width:0;
    min-height:36px;
    padding:0 6px;
    font-size:.7rem;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* Locked mobile card layout (accepted t1199u). Do not alter. */
@media (max-width:819px){
  .v2-home .v2-plat-note{display:none}
  .v2-home .v2-grid--featured .v2-links{
    flex-direction:row;
    flex-wrap:nowrap;
  }
  .v2-home .v2-grid--rest .v2-card .v2-links{
    flex-direction:row;
    flex-wrap:wrap;
    min-height:0;
  }
  .v2-home .v2-grid--rest .v2-links a{
    flex:1 1 auto;
  }
}
