/* Taste calibration, step 2 (the grid). Linked after taste-calibration-who.css. */

/* Step 2: glass person tabs and the live "We'll look for" capsule above the grid. */
.tc-grid-head { flex: none; padding: 8px 0 4px; }
.tc-grid-head .tc-wide { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.tc-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 25px; overflow-x: auto; scrollbar-width: none; }
.tc-tabs::-webkit-scrollbar { display: none; }
/* More people than fit: the tabs scroll sideways and fade out at the edge while some are out of sight. */
.tc-tabs.is-clipped { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.tc-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--tc-muted) !important;
  font-size: 0.9062rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.tc-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.25);
  color: var(--tc-text) !important;
}
.tc-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--tc-sky);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}
.tc-learn {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border-color: rgba(24, 152, 234, 0.42);
  border-radius: 16px;
  background: rgba(24, 152, 234, 0.12);
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--tc-muted);
}
.tc-learn .tc-icon { width: 14px; height: 14px; fill: var(--tc-sky-light); stroke: none; }
.tc-learn-empty, .tc-learn-labels { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tc-learn-prefix { flex: none; }
.tc-learn-labels { font-weight: 600; letter-spacing: -0.1px; color: var(--tc-text); }
.tc-learn-labels em { padding: 0 3px; font-style: normal; color: rgba(124, 200, 248, 0.7); }

/* Product grid: 2 columns on phones, 3 from 768 px, 4 from 1100 px; 1 column at large text sizes. */
.tc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 12px 0 calc(116px + env(safe-area-inset-bottom));
  list-style: none;
}
.tc-cell { display: flex; }
.tc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 6px 6px 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.tc-tile .tc-meta { padding: 8px 5px 0; }
.tc-tile .tc-name { min-height: 2.25rem; }
.tc-tile.is-new { border-color: rgba(124, 200, 248, 0.45); }
.tc-tile[aria-pressed="true"] {
  padding: 5px 5px 10px;
  border: 2px solid var(--tc-sky);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 4px rgba(24, 152, 234, 0.16), 0 0 26px rgba(24, 152, 234, 0.45);
}
.tc-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(11, 18, 32, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: background-color 150ms ease;
}
.tc-heart .tc-icon { width: 19px; height: 17px; fill: none; stroke: rgba(255, 255, 255, 0.88); stroke-width: 2; }
.tc-tile[aria-pressed="true"] .tc-heart {
  border-color: rgba(255, 90, 110, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(255, 90, 110, 0.35);
}
.tc-tile[aria-pressed="true"] .tc-heart .tc-icon { fill: var(--tc-heart); stroke: var(--tc-heart); }
.tc-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 50px);
  min-height: 22px;
  padding: 0 7px 0 6px;
  border-radius: 11px;
  background: rgba(24, 152, 234, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(24, 152, 234, 0.4);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  animation: tc-badge 3s ease forwards;
}
.tc-badge span { overflow: hidden; text-overflow: ellipsis; }
.tc-badge .tc-icon { width: 11px; height: 11px; fill: #fff; stroke: none; }

/* Floating glass bottom bar over a soft fade, above the safe area. */
.tc-grid-step::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 150px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 28, 51, 0) 0%, rgba(17, 28, 51, 0.6) 55%, rgba(17, 28, 51, 0.94) 100%);
}
.tc-bar {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 7px 8px 7px 22px;
  border-radius: 31px;
  background: rgba(20, 30, 52, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 34px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}
.tc-bar-text { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.tc-bar-count { font-size: 1rem; font-weight: 700; line-height: 1.25rem; letter-spacing: -0.2px; }
.tc-bar-count[data-i18n="taste_bar_zero"] { font-size: 0.9062rem; font-weight: 600; line-height: 1.1875rem; letter-spacing: 0; }
.tc-bar-saving { margin-top: 2px; font-size: 0.8125rem; font-weight: 600; line-height: 1rem; color: var(--tc-save-text); }
