/* ══ Player dashboard (player.php) ════════════════════════════════════════════
   Builds on includes/team.css (.tpd-* cards, tables, chart, tiles) and the .tp-*
   hero in _styles.css. Only player-specific pieces live here. Versioned by
   filemtime like the other page stylesheets. */

/* ── Hero photo with team badge ───────────────────────────────────────────── */
.pd-photo { position: relative; flex: none; width: 112px; height: 112px; }
.pd-face { display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%;
           overflow: hidden; background: var(--tp-accent,#3d4852); color: #fff;
           font-family: 'Josefin Sans', helvetica, arial, sans-serif; font-size: 40px; font-weight: 600; letter-spacing: .02em;
           box-shadow: 0 0 0 4px rgba(255,255,255,.92), 0 8px 22px rgba(0,0,0,.45); }
.pd-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-badge { position: absolute; right: -8px; bottom: -4px; display: flex; align-items: center; justify-content: center;
            width: 46px; height: 46px; padding: 5px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.pd-badge img { width: 100%; height: 100%; object-fit: contain; }
.pd-status { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.pd-status:hover { border-bottom-color: #fff; }

/* ── Snapshot strip bits ──────────────────────────────────────────────────── */
.pd-page .tpd-place { white-space: nowrap; }
.pd-mini-crest { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; margin-right: 5px; }
.pd-star { display: inline-flex; align-items: center; gap: 2px; padding: 0 7px; border-radius: 9px; background: #fbf1dc; color: #7a560f;
           font-size: 10px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.pd-best { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 9px; background: var(--tp-accent,#3d4852); color: #fff;
           font-size: 9.5px; font-weight: 700; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.pd-type { display: inline-block; margin-left: 3px; padding: 0 5px; border-radius: 4px; background: #e9edf0; color: #59616a;
           font-size: 9.5px; font-weight: 700; line-height: 16px; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.pd-team-cell { display: inline-flex; align-items: center; gap: 6px; }
.pd-team-cell img { width: 20px; height: 20px; object-fit: contain; }
.pd-log { max-height: 520px; overflow-y: auto; }
.pd-log thead th { position: sticky; top: 0; z-index: 1; }
.pd-log-note { margin: 0; padding: 10px 16px 12px; border-top: 1px solid #eef0f2; }

/* ── Rail ─────────────────────────────────────────────────────────────────── */
.pd-dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px 14px; margin: 0; }
.pd-dl dt { align-self: center; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a929c; }
.pd-dl dd { margin: 0; text-align: right; font-size: 13px; font-weight: 700; color: #22262b; }

.pd-awards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-bottom: 1px solid #eef0f2; }
.pd-award { padding: 14px 8px 12px; text-align: center; border-left: 1px solid #eef0f2; }
.pd-award:first-child { border-left: 0; }
.pd-award b { display: block; font-family: 'Josefin Sans', helvetica, arial, sans-serif; font-size: 28px; line-height: 1; font-weight: 600; color: #22262b; }
.pd-award span { display: block; margin-top: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a929c; line-height: 1.3; }
.pd-award.is-gold { background: linear-gradient(160deg,#fffdf7 0%,#fbf1dc 100%); }
.pd-award.is-gold b { color: #7a560f; }
.pd-award-detail p { margin: 0 0 6px; font-size: 12px; line-height: 1.55; color: #59616a; }
.pd-award-detail p:last-child { margin-bottom: 0; }
.pd-award-detail b { color: #22262b; }
.pd-ad:empty { display: none; }
/* AdSense reserves ~600px for a responsive slot even when no ad comes back; hide
   unfilled slots (Google's documented data-ad-status) so the rail doesn't push
   the highlights section down behind a blank block. */
.pd-ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* ── Highlights ───────────────────────────────────────────────────────────── */
.pd-subhead { padding: 12px 16px 2px; }
.pd-people .tpd-avatar { width: 34px; height: 34px; font-size: 11.5px; }
.pd-snip { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: #59616a; }
.pd-mark { background: #fff1b8; color: inherit; padding: 0 1px; border-radius: 2px; }
.pd-row2 { margin-top: 0; }
.pd-row2.is-single { grid-template-columns: minmax(0,1fr); }

@media (max-width: 900px) {
  .pd-photo, .pd-face { width: 84px; height: 84px; }
  .pd-face { font-size: 30px; }
  .pd-badge { width: 36px; height: 36px; padding: 4px; }
}
@media (max-width: 620px) {
  .pd-photo, .pd-face { width: 72px; height: 72px; }
  .pd-face { font-size: 26px; }
  .pd-log { max-height: 440px; }
}
