/* ═══════════════════════════════════════════
   Trust Badge — Sommelier-verified
   ═══════════════════════════════════════════ */

/* ── Badge pill ──────────────────────────── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.trust-badge-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.trust-badge-icon svg {
  width: 100%;
  height: 100%;
  stroke: #6B2737;
  fill: none;
  stroke-width: 1.5;
  vertical-align: middle;
}

.trust-badge-label {
  font-family: var(--font-subhead);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  line-height: 13px;
  color: #6B2737;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

/* ── Tooltip ─────────────────────────────── */
.trust-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: #FBF6ED;
  border: 0.5px solid #6B2737;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(44, 24, 16, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10000;
}
.trust-badge:hover .trust-tooltip,
.trust-badge.active .trust-tooltip {
  opacity: 1;
  pointer-events: auto;
}

/* Tooltip arrow */
.trust-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #FBF6ED;
}
.trust-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #6B2737;
}

.trust-tooltip-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: #5C5348;
  line-height: 1.6;
  margin: 0;
}

/* ── Footer trust cluster ────────────────── */
.footer-trust {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  border-bottom: 1px solid rgba(245, 241, 232, 0.1);
  margin-top: 20px;
  margin-bottom: 12px;
}

.footer-trust .trust-badge {
  margin-bottom: 10px;
}

.footer-trust-line {
  font-family: var(--font-subhead);
  font-style: italic;
  font-size: 13px;
  color: #7A6F63;
  margin: 0 0 8px;
  line-height: 1.5;
}

.footer-trust-link {
  font-family: var(--font-body);
  font-size: 12px;
  color: #7A6F63;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-trust-link:hover {
  color: #6B2737;
  text-decoration: underline;
}

/* ── Badge in hero context ───────────────── */
.hero .trust-badge {
  margin-bottom: 0;
}

/* ── Badge at bottom of content pages ────── */
.section-trust-footer {
  text-align: center;
  padding: 24px 0 8px;
  margin-top: 20px;
}

.section-trust-footer .footer-trust-line {
  color: var(--ink-xlight, #9A9A9A);
}

/* ── Badge on chat responses ─────────────── */
.ps-trust-badge {
  margin-top: 6px;
}
.ps-trust-badge .trust-badge {
  transform: scale(0.85);
  transform-origin: left center;
}

/* ── Dark background variant ─────────────── */
.trust-badge--dark {
  background: rgba(251, 246, 237, 0.08);
  border-color: rgba(107, 39, 55, 0.4);
}
.trust-badge--dark .trust-badge-label {
  color: rgba(245, 241, 232, 0.7);
}
.trust-badge--dark .trust-badge-icon svg {
  stroke: rgba(245, 241, 232, 0.7);
}
