/* Small shared UI foundations; mirrored in the Figma quality reference. */
:root {
  --ease-out:cubic-bezier(.2,0,.2,1); --ease-in-out:cubic-bezier(.4,0,.2,1);
  /* Foundations: navy ink, evergreen actions, warm neutral canvas. */
  --br-surface:#071b16; --br-panel:#fffdf6; --br-inverse:#ffffff;
  --br-text:#172e30; --br-muted:#52645e; --br-action:#20594a;
  --br-action-hover:#11533e; --br-focus:#236dba; --br-line:#d4d6ca;
  --br-soft:#f3f0e7; --br-navy:#173a35; --br-gold:#896329;
  --br-success:#176b50; --br-success-soft:#e9f4ed;
  --br-error:#ae3540; --br-error-soft:#fceef0;
  --br-warning:#805719; --br-warning-soft:#fff4d9;
  --br-info:#285f91; --br-info-soft:#eaf2fa;
  --br-disabled:#718093; --br-disabled-bg:#e9edf1;
  --br-space-1:4px; --br-space-2:8px; --br-space-3:12px;
  --br-space-4:16px; --br-space-5:24px; --br-space-6:32px;
  --br-gap:12px; --br-padding:16px; --br-radius:22px; --br-radius-small:12px; --br-radius-large:30px; --br-touch:44px;
  --br-shadow:0 4px 8px #0c302406,0 14px 36px #0c302412;
  --br-font:system-ui,-apple-system,"Segoe UI","Nirmala UI",sans-serif;
}
.art-rank { background-image: url('../images/interlands.webp') !important; }
.art-legends { background-image: url('../images/legends.webp') !important; }
.art-clubs { background-image: url('../images/clubs.webp') !important; }
.art-stats { background-image: url('../images/higherlower.webp') !important; }
.art-transfers { background-image: url('../images/transfers.webp') !important; }
.art-passport { background-image: url('../images/passport.webp') !important; }
.lb-refresh-btn, .side-lb-refresh-btn, .lb-mode-pill, .lb-back-btn, .lb-empty-cta-btn { min-height: var(--br-touch); }
.lb-refresh-btn:focus-visible, .side-lb-refresh-btn:focus-visible, .lb-mode-pill:focus-visible, .lb-back-btn:focus-visible, .lb-empty-cta-btn:focus-visible {
  outline: 3px solid var(--br-action);
  outline-offset: 3px;
}
.lb-error-title { color: var(--br-error); }
.lb-player-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lb-col-player { min-width: 0; }
.lb-score-number { font-variant-numeric: tabular-nums; }
.score-card > div:first-child > span, .score-card .score-big small { color: var(--br-text) !important; }
.score-card .score-card-share-chip { color: #166534 !important; background: #dcfce7 !important; }
.slot:focus-visible, .passport-opt-btn:focus-visible, .hl-player-card:focus-visible, .rank-arrow-btn:focus-visible {
  outline: 3px solid var(--br-action);
  outline-offset: 3px;
}
.side-lb-empty[role="status"] { padding: var(--br-padding); color: var(--br-error); }
@media (display-mode: browser) {
  /* The document scrolls; a second fixed-height shell must not trap the page. */
  body, .shell { height: auto; }
  .shell { overflow-x: clip !important; overflow-y: visible !important; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-row, .mode-transition, .route-fade-out, .route-fade-in, .route-fade-settled {
    animation: none !important;
    transition: none !important;
  }
}
/* Source-backed guide examples: scroll inside the table, never the page. */
.publisher-card .guide-table-scroll { max-width:100%; overflow-x:auto; margin:20px 0; }
.publisher-card .guide-table-scroll table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.publisher-card .guide-table-scroll caption { text-align:left; font-weight:700; margin-bottom:10px; }
.publisher-card .guide-table-scroll th,.publisher-card .guide-table-scroll td { padding:12px; border-bottom:1px solid #dce3e9; text-align:left; vertical-align:top; }
.publisher-card .guide-table-scroll thead { background:#f4f7f9; }
.publisher-card h2[id] { scroll-margin-top:24px; }

/* Source-backed player catalogue: readable surfaces and flexible six-stat cards. */
.reviewed-database .player-db-title { color:var(--br-text); font-size:clamp(24px,4vw,32px); }
.reviewed-database p { line-height:1.55; }
.reviewed-database .player-db-search-input { display:block; box-sizing:border-box; width:100%; min-height:44px; margin:8px 0 16px; border:1px solid var(--br-line); border-radius:var(--br-radius-small); background:#fff; color:var(--br-text); }
.reviewed-database .player-db-search-input:focus-visible { outline:3px solid var(--br-focus); outline-offset:2px; }
.reviewed-database .player-cards-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr)); }
.reviewed-database .player-mini-card { color:var(--br-text); background:#fff; border-color:var(--br-line); box-shadow:var(--br-shadow); border-radius:var(--br-radius); text-align:left; min-width:0; }
.reviewed-database .player-card-name { color:var(--br-text); overflow-wrap:anywhere; }
.reviewed-database .player-mini-card:hover { transform:translateY(-2px); border-color:var(--br-action); box-shadow:var(--br-shadow); }
.reviewed-database .player-mini-card:focus-visible { outline:3px solid var(--br-focus); outline-offset:3px; }
.player-career-milestones.reviewed-milestones { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); margin:8px 0; }
.reviewed-milestones .milestone-box { min-width:0; padding:12px 8px; background:var(--br-soft); border-color:var(--br-line); }
.reviewed-milestones .milestone-num { color:var(--br-action); font-variant-numeric:tabular-nums; }
.reviewed-milestones .milestone-lbl { color:var(--br-muted); text-transform:none; font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
@media(prefers-reduced-motion:reduce) { .reviewed-database .player-mini-card { transition:none; } .reviewed-database .player-mini-card:hover { transform:none; } }
