/* Gift tag planner: each person on the list gets a tag */
.gift-tags {
  list-style: none;
  margin: 1rem 0 0.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
  align-items: stretch;
}
.gift-tag,
.person-chip {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 0;
  border-left: 1px solid var(--border);
  border-radius: var(--radius);
  clip-path: none;
  overflow: visible;
  transform: none;
  font-size: 0.9rem;
  color: var(--ink);
}
.gift-tag::before,
.person-chip::before {
  content: "";
  position: static;
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: var(--surface);
}
.gift-tag__name {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.gift-tag__amt {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.gift-tag--more {
  border-color: var(--border);
  color: var(--muted);
  justify-content: center;
}
.tool__result .note a { color: var(--brand); }
@media (max-width: 480px) {
  .gift-tags { grid-template-columns: 1fr 1fr; }
  .gift-tag,
  .person-chip { min-width: 0; }
}

/* Hero entry card */
.hero--split { align-items: center; }
.hero-entry {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-self: center;
}
.hero-entry__title { margin: 0 0 0.25rem; font-size: 1.1rem; }
.hero-entry .data-card { margin: 0; }

/* Gift ideas grid: even cards */
lg-cards [class*="grid"] { align-items: stretch; }
lg-cards a[class*="card"],
lg-cards article[class*="card"],
lg-cards div[class*="card"] {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
lg-cards a[class*="card"]::before,
lg-cards article[class*="card"]::before {
  content: "";
  display: block;
  flex: none;
  height: 3.5rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent) 25%, transparent 25% 50%, color-mix(in srgb, var(--brand) 18%, transparent) 50% 75%, transparent 75%) 0 0 / 1.5rem 1.5rem,
    color-mix(in srgb, var(--brand) 8%, var(--surface));
}
lg-cards [class*="eyebrow"],
lg-cards [class*="kicker"] {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}
lg-cards [class*="card"] h3,
lg-cards [class*="card"] [class*="title"] { min-height: 2.6em; }
lg-cards [class*="card"] p { min-height: 3em; }
lg-cards [class*="__go"],
lg-cards [class*="footer"],
lg-cards [class*="card"] > :last-child { margin-top: auto; }

/* STEM toys: let few cards stretch across the row */
lg-cards[variant="compact"] [class*="grid"],
lg-cards[variant="compact"] > div,
lg-cards[variant="compact"] > ul {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: center;
}

/* Recommended gear: equal-height cards, link at the bottom */
.data-grid .data-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.data-grid .data-card .data-card__go {
  margin-top: auto;
  padding-top: 0.6rem;
}

/* Hero side column: styled placeholder tile when there is no image */
@media (min-width: 900px) {
  .hero--split > :last-child:not(.hero-entry)::after {
    content: "";
    display: block;
    min-height: 11rem;
    margin-top: 1rem;
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, transparent) 25%, transparent 25% 50%, color-mix(in srgb, var(--brand) 22%, transparent) 50% 75%, transparent 75%) 0 0 / 1.75rem 1.75rem,
      color-mix(in srgb, var(--brand) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  }
}