/* ============================================================
   RESHORE BRIDGE — "ADD AS PREFERRED SOURCE" BUTTON
   Wired to Google's real Preferred Sources API (manual control).
   Two variants: solid (light/white backgrounds) and inverse
   (dark backgrounds — footer, article hero gradient).
   ============================================================ */

.psrc-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.psrc-btn__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── Solid variant — for white/light backgrounds ───────────── */
.psrc-btn--solid {
  background: var(--brand-700);
  color: var(--color-white);
  border: 1.5px solid var(--brand-700);
}
.psrc-btn--solid:hover {
  background: var(--brand-800);
  border-color: var(--brand-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(3,105,161,.3);
}

/* ── Inverse ghost variant — for dark backgrounds (footer, ── */
/* the article hero gradient). Light text + light border so   */
/* it stays legible instead of vanishing like dark-on-dark.   */
.psrc-btn--inverse {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,.55);
}
.psrc-btn--inverse:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--color-white);
  transform: translateY(-1px);
}

/* Subtle nod to Google's brand colors on focus/hover, without */
/* copying Google's own button design.                         */
.psrc-btn:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}
.psrc-btn--inverse:hover .psrc-btn__icon,
.psrc-btn--solid:hover .psrc-btn__icon {
  filter: drop-shadow(0 0 3px rgba(66,133,244,.5));
}

/* ── Placement wrappers ─────────────────────────────────────── */
.psrc-wrap {
  display: flex;
  margin-block: var(--sp-6);
}
.psrc-wrap--top {
  margin-top: var(--sp-5);
  margin-bottom: 0;
}
.psrc-wrap--footer {
  margin-top: var(--sp-6);
}

@media (max-width: 480px) {
  .psrc-btn { width: 100%; justify-content: center; }
}
