/* The detail view deliberately has no v1 geometry overrides: team.css and the
   shared literal inner.php shell are the visual source of truth.  This file is
   retained as the measured-port boundary for future source-safe corrections. */

/* `inner.php` sets bg-page-top1.jpg inline for site_team.php.  Its byte-local
   FastAPI copy is supplied by the route, so no generic shell overlay remains. */

/* The booted source renders the same four labels 19.7px narrower than the
   bundled browser face. Keep the right source edge and restore that measured
   423.19px desktop width without changing the semantic legacy markup. */
.legacy-team-profile .rating-place-column .team-results { transform: scaleX(.9556); transform-origin: right bottom; }
@media (max-width: 639px) { .legacy-team-profile .rating-place-column .team-results { transform: scaleX(.9613); } }

/* FastAPI's second, data-dense history view keeps the source cards as the
 * default, while making long team histories filterable without a JS reload. */
.legacy-team-history__controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:0 0 28px;padding:16px;background:#f4f2f6}.legacy-team-history__controls label{display:grid;gap:4px;color:#302f43;font-size:13px;font-weight:700}.legacy-team-history__controls select,.legacy-team-history__controls button{min-height:34px;padding:6px 10px;border:1px solid #cbc9d3;background:#fff;font:inherit}.legacy-team-history__controls button{border-color:#f0cf18;border-radius:17px;background:#fcea1c;font-weight:700;cursor:pointer}.legacy-team-history__controls>a,.legacy-team-history__view a{color:#4b486b;font-size:13px;font-weight:700}.legacy-team-history__view{display:flex;gap:8px;margin-left:auto}.legacy-team-history__view a[aria-current='page']{color:#302f43;text-decoration-thickness:2px}.legacy-team-history__table-wrap{overflow-x:auto;background:#fff;box-shadow:0 7px 19px rgba(26,25,42,.1)}.legacy-team-history__table{width:100%;border-collapse:collapse;text-align:left}.legacy-team-history__table th,.legacy-team-history__table td{padding:13px 15px;border-bottom:1px solid #e5e4e9}.legacy-team-history__table th{white-space:nowrap;color:#fff;background:#302f43}.legacy-team-history__table th a,.legacy-team-history__table td a,.team-game-name a{color:inherit}.legacy-team-history__table td a,.team-game-name a{font-weight:700;text-decoration:underline}.legacy-team-history__empty{padding:24px;background:#fff;color:#302f43}@media(max-width:639px){.legacy-team-history__controls{align-items:stretch}.legacy-team-history__controls label{flex:1 1 100%}.legacy-team-history__view{width:100%;margin-left:0}.legacy-team-history__table th,.legacy-team-history__table td{padding:11px;white-space:nowrap}}

/* A result-history card is one destination. Give the whole result geometry
 * that semantic link rather than making visitors discover isolated text links. */
.legacy-team-history .team-game_wrapper{display:flex;color:inherit;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}.legacy-team-history .team-game-row a.team-game-details{color:#3a3851;font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}.legacy-team-history .team-game_wrapper:hover,.legacy-team-history .team-game_wrapper:focus-visible{position:relative;z-index:1;box-shadow:0 9px 20px rgba(27,25,45,.2);transform:translateY(-3px);outline:3px solid #fcea1c;outline-offset:3px}.legacy-team-history .team-game-row a.team-game-details:hover,.legacy-team-history .team-game-row a.team-game-details:focus-visible{color:#e52016;outline:3px solid #fcea1c;outline-offset:3px}

/* The alternative stays review-only until its information density is chosen
 * by the product owner.  It follows, rather than replaces, the source cards. */
.legacy-team-history__variant{margin-top:58px;padding:26px;background:#302f43;color:#fff}.legacy-team-history__variant header{margin-bottom:18px}.legacy-team-history__variant header p{margin:0 0 5px;color:#fcea1c;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.legacy-team-history__variant h3{margin:0;color:#fff;font-family:'Code-Pro-Black-LC',Arial,sans-serif;font-size:26px;line-height:1;text-transform:uppercase}.legacy-team-history__variant header span{display:block;margin-top:8px;color:#d7d6df;font-size:14px}.legacy-team-history__variant .legacy-team-history__table-wrap{color:#302f43}@media(max-width:639px){.legacy-team-history__variant{margin-top:42px;padding:20px 0 0;background:#302f43}.legacy-team-history__variant header{padding:0 15px}.legacy-team-history__variant h3{font-size:22px}}

/* Standings use the same compact three-column language as the public game
 * page.  The current team is labelled and can be targeted by the explicit
 * #current-team-result fragment, but ordinary filtering never moves focus. */
.legacy-team-game-results{padding:62px 0;background:#f4f2f6;color:#302f43}.legacy-team-game-results h2{margin:0 0 24px;font-size:28px}.legacy-team-game-results__scroll{overflow-x:auto;background:#fff;box-shadow:0 7px 19px rgba(26,25,42,.1)}.legacy-team-game-results table{width:100%;border-collapse:collapse;text-align:left}.legacy-team-game-results th,.legacy-team-game-results td{padding:14px 16px;border-bottom:1px solid #e5e4e9}.legacy-team-game-results th{color:#fff;background:#302f43}.legacy-team-game-results td a{color:#302f43;font-weight:700;text-decoration-thickness:2px;text-underline-offset:3px}.legacy-team-game-results tr.is-current td{background:#fff5aa}.legacy-team-game-results__current{display:inline-block;margin-left:8px;padding:2px 7px;border-radius:10px;background:#fcea1c;color:#302f43;font-size:11px;font-weight:700;white-space:nowrap}@media(max-width:639px){.legacy-team-game-results{padding:42px 0}.legacy-team-game-results h2{font-size:24px}.legacy-team-game-results__scroll{overflow-x:visible}.legacy-team-game-results table{table-layout:fixed}.legacy-team-game-results th,.legacy-team-game-results td{padding:10px 8px;white-space:normal;overflow-wrap:anywhere}.legacy-team-game-results th{font-size:13px;white-space:nowrap}.legacy-team-game-results th:first-child,.legacy-team-game-results td:first-child{width:58px}.legacy-team-game-results th:last-child,.legacy-team-game-results td:last-child{width:60px}.legacy-team-game-results__current{display:table;margin:5px 0 0}}
