/* =============================================================
   ParlayDesk — the shared back control (2026-11-10, BETA).

   One look for every "← Back to …" control in the Game Center family:
   the public team / player / game pages' signed-in way back (#pdReturn,
   /pd-return.js), the app's game details back, the Game Center hub's
   Teams / Players views back, and Research's return buttons. Reference:
   the NHL player page's "← Back to Game Center" (a rounded, outlined,
   quiet button that turns ParlayDesk blue on hover / focus).

   Markup: <a|button class="pd-back"> with an optional
   <span class="pd-back__arrow">←</span> + <span class="pd-back__text">.
   A control whose arrow is part of its text (Research) works too.
   Look only: labels, destinations and history behaviour stay with each
   control's own code. Loaded by /apps and by the public pages' shell.
   ============================================================= */

.pd-back {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  min-height: 36px; margin: 0; padding: 6px 12px; box-sizing: border-box;
  border: 1px solid rgba(148,163,184,.24); border-radius: 10px;
  background: rgba(255,255,255,.03); color: #cbd5e1;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.25;
  text-decoration: none; cursor: pointer;
  transition: color 150ms, border-color 150ms, background-color 150ms;
}
.pd-back[hidden] { display: none; }
.pd-back__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-back__arrow { flex: none; transition: transform 150ms; }
.pd-back:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; color: #93c5fd; }
@media (hover: hover) {
  .pd-back:hover { color: #93c5fd; border-color: rgba(96,165,250,.55); background: rgba(59,130,246,.08); }
  .pd-back:hover .pd-back__arrow { transform: translateX(-2px); }
}
@media (max-width: 640px) {
  .pd-back { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-back, .pd-back__arrow { transition: none; }
}
@media (forced-colors: active) {
  .pd-back { border-color: ButtonText; }
}
