/* ============================================================
   QualiTracker Topic Picker — scroll-only list, no input surface.
   Self-contained: doesn't depend on qualitracker.css's :root.
   ============================================================ */

:root {
  --tp-navy:       #1A3A4A;
  --tp-teal:       #0B6E5F;
  --tp-gold:       #C9A84C;
  --tp-bg:         #F4F6F7;
  --tp-white:      #FFFFFF;
  --tp-text:       #1C2833;
  --tp-text-mid:   #666666;
  --tp-border:     #e3e8e9;
  --tp-shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --tp-shadow-md:  0 4px 16px rgba(0,0,0,.1);
  --tp-radius-md:  12px;
  --tp-radius-lg:  18px;
  --tp-font-ui:    'Poppins', Lato, sans-serif;
  --tp-font-body:  'Inter', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--tp-font-body), system-ui, -apple-system, sans-serif;
  color: var(--tp-text);
  background: var(--tp-bg);
}

.tp-shell {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Scroll-only list — the whole point: browse and tap, never type here. */
.tp-list-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 16px 40px;
}

.tp-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 860px) {
  .tp-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .tp-list { grid-template-columns: 1fr; }
}

.tp-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--tp-shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}

.tp-card:hover, .tp-card:focus-visible {
  box-shadow: var(--tp-shadow-md);
  transform: translateY(-1px);
}

.tp-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tp-mint, #E6F4F1);
  color: var(--tp-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.tp-card-body { min-width: 0; flex: 1; }

.tp-card-title {
  font-family: var(--tp-font-ui);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--tp-navy);
  margin-bottom: 3px;
}

.tp-card-summary {
  font-size: 12.5px;
  color: var(--tp-text-mid);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tp-card-chevron {
  flex-shrink: 0;
  color: var(--tp-text-mid);
  font-size: 14px;
}

.tp-empty {
  text-align: center;
  color: var(--tp-text-mid);
  font-size: 14px;
  padding: 60px 20px;
}

