.history-page .site-main{width:min(1560px,calc(100% - 40px));padding:28px 0 64px}.history-shell{--history-line:var(--line-strong);--history-panel:var(--backdrop-tint)}.history-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:26px 28px;border: 1px solid var(--history-line);background: linear-gradient(135deg,var(--panel-grad-1),var(--backdrop-tint));box-shadow:0 18px 50px rgba(0,0,0,.24)}.history-hero>div:first-child>span{color: var(--lime);font-size:12px;font-weight:900;letter-spacing:.14em}.history-hero h1{margin:7px 0 5px;color: var(--text-1);font-size:34px}.history-hero p{margin:0;color: var(--muted);font-size:15px}.history-summary{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:8px}.history-summary span{display:grid;gap:2px;min-width:100px;padding:10px 12px;border: 1px solid var(--line);background:var(--surface-inset);color: var(--muted);font-size:12px}.history-summary b{color: var(--text-1);font-size:22px;font-variant-numeric:tabular-nums}.history-filters{display:flex;gap:8px;margin:16px 0}.history-filters a{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 16px;border: 1px solid var(--history-line);background:var(--surface-inset);color: var(--text-2);font-size:14px;font-weight:850}.history-filters a:hover,.history-filters a.active{border-color: color-mix(in srgb, var(--lime) 46%, transparent);background: color-mix(in srgb, var(--lime) 10%, transparent);color: var(--text-1)}.history-filters a.active{box-shadow:inset 0 -2px var(--lime)}.history-filters b{color: var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.history-timeline{border: 1px solid var(--history-line);background:var(--surface-inset)}.history-event{display:grid;grid-template-columns:42px minmax(0,1fr);padding:0 22px}.history-event+.history-event{border-top: 1px solid var(--line)}.history-rail{position:relative;min-height:124px}.history-rail::before{position:absolute;top:0;bottom:0;left:16px;width:1px;background:var(--line);content:""}.history-event:first-child .history-rail::before{top:28px}.history-event:last-child .history-rail::before{bottom:calc(100% - 40px)}.history-rail i{position:absolute;top:31px;left:10px;width:13px;height:13px;border: 3px solid var(--panel-3);border-radius:50%;background:#9eb5bf;box-shadow:0 0 0 4px var(--panel-3)}.history-event--auction .history-rail i{background:#f1c15f}.history-event--match .history-rail i{background:var(--lime)}.history-event--roster .history-rail i{background:#74bfff}.history-event--budget .history-rail i{background:#b89aff}.history-card{min-width:0;padding:18px 4px 20px}.history-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:9px}.history-kind{padding:3px 8px;border: 1px solid var(--line);color: var(--text-2);font-size:12px;font-weight:900;letter-spacing:.04em}.history-card-head time{color: var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.history-auction,.history-adjustment{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:15px;align-items:center}.history-team-mark{display:grid;width:54px;height:54px;flex:0 0 auto;place-items:center}.history-team-mark img{display:block;width:100%;height:100%;object-fit:contain}.history-team-mark b{display:grid;width:48px;height:48px;place-items:center;border: 1px solid color-mix(in srgb,var(--team-color,#57a8ff) 72%,white 10%);border-radius:15px;background: color-mix(in srgb,var(--team-color,#57a8ff) 30%,var(--panel-2));color: var(--text-1);font-size:20px}.history-event-copy{min-width:0}.history-event-copy h2,.history-match-note h2{overflow:hidden;margin:0;color: var(--text-1);font-size:18px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.history-event-copy p,.history-match-note p{margin:5px 0 0;color: var(--muted);font-size:14px;line-height:1.45}.history-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.history-meta span{padding:3px 7px;border: 1px solid var(--line);color: var(--muted);font-size:11px}.history-price,.history-delta{color: var(--gold);font-size:25px;font-variant-numeric:tabular-nums;white-space:nowrap}.history-price small,.history-delta small{margin-left:3px;color: var(--muted);font-size:12px}.history-delta.positive{color: var(--lime)}.history-delta.negative{color: var(--gold)}.history-adjustment-icon{display:grid;width:52px;height:52px;place-items:center;border: 1px solid color-mix(in srgb, var(--blue) 36%, transparent);border-radius:50%;background: color-mix(in srgb, var(--blue) 12%, transparent);color: var(--blue);font-size:24px}.history-match{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:22px;align-items:center;padding:4px 0}.history-match-team{display:flex;align-items:center;gap:12px;min-width:0}.history-match-team.home{justify-content:flex-end;text-align:right}.history-match-team.home .history-team-mark{order:2}.history-match-team.away{justify-content:flex-start}.history-match-team>span{overflow:hidden;color: var(--text-1);font-size:17px;font-weight:820;text-overflow:ellipsis;white-space:nowrap}.history-score{display:grid;min-width:114px;place-items:center}.history-score strong{color: var(--text-1);font-size:33px;font-variant-numeric:tabular-nums;line-height:1}.history-score strong i{margin:0 9px;color: var(--muted);font-style:normal}.history-score small{margin-top:6px;color: var(--muted);font-size:11px}.history-score--reverted strong{color: var(--gold);font-size:17px}.history-match-note{margin-top:10px;text-align:center}.history-match-note h2{font-size:14px}.history-match-note p{font-size:13px}.history-empty{display:grid;min-height:220px;padding:30px;place-items:center;text-align:center}.history-empty b{color: var(--text-1);font-size:20px}.history-empty p{margin:8px 0 0;color: var(--muted);font-size:14px}.history-empty--page{margin-top:18px;border: 1px solid var(--history-line);background:var(--history-panel)}.history-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px;color: var(--muted);font-size:14px}.history-pagination .button-link{min-height:38px;padding:0 14px}@media(min-width:2560px){.history-page .site-main{width:min(2200px,calc(100% - 96px));padding-top:44px}.history-hero{padding:34px 40px}.history-hero h1{font-size:44px}.history-hero p{font-size:19px}.history-summary span{min-width:140px;padding:14px 18px;font-size:16px}.history-summary b{font-size:29px}.history-filters a{min-height:52px;padding:0 22px;font-size:18px}.history-event{grid-template-columns:56px minmax(0,1fr);padding-inline:30px}.history-rail{min-height:154px}.history-rail::before{left:22px}.history-rail i{top:38px;left:15px;width:16px;height:16px}.history-card{padding:24px 6px 27px}.history-kind,.history-card-head time{font-size:15px}.history-team-mark{width:70px;height:70px}.history-team-mark b{width:64px;height:64px;font-size:26px}.history-event-copy h2{font-size:24px}.history-event-copy p{font-size:18px}.history-meta span{font-size:14px}.history-price,.history-delta{font-size:33px}.history-match-team>span{font-size:22px}.history-score strong{font-size:43px}.history-score small{font-size:14px}.history-match-note h2{font-size:18px}.history-match-note p{font-size:16px}}@media(max-width:900px){.history-page .site-main{width:calc(100% - 24px);padding-top:18px}.history-hero{align-items:stretch;flex-direction:column;padding:20px}.history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.history-summary span{min-width:0}.history-filters{overflow-x:auto;padding-bottom:2px}.history-filters a{flex:0 0 auto}.history-event{grid-template-columns:28px minmax(0,1fr);padding:0 10px}.history-rail::before{left:10px}.history-rail i{left:4px}.history-match{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px}.history-match-team{gap:6px}.history-match-team .history-team-mark{width:40px;height:40px}.history-match-team .history-team-mark b{width:38px;height:38px;border-radius:11px;font-size:16px}.history-match-team>span{font-size:13px}.history-score{min-width:70px}.history-score strong{font-size:24px}.history-score strong i{margin-inline:4px}.history-score small{font-size:9px}}@media(max-width:560px){.history-hero h1{font-size:29px}.history-hero p{font-size:14px;line-height:1.5}.history-summary b{font-size:19px}.history-card-head{align-items:flex-start;flex-direction:column;gap:5px}.history-auction,.history-adjustment{grid-template-columns:auto minmax(0,1fr)}.history-price,.history-delta{grid-column:2;margin-top:2px;font-size:20px}.history-event-copy h2{font-size:16px;white-space:normal}.history-event-copy p{font-size:13px}.history-team-mark{width:46px;height:46px}.history-team-mark b{width:43px;height:43px;border-radius:12px}.history-match{gap:5px}.history-match-team{display:grid;justify-items:center;gap:4px;text-align:center}.history-match-team.home{justify-content:center;text-align:center}.history-match-team.home .history-team-mark{order:0}.history-match-team>span{max-width:100%;font-size:11px}.history-score{min-width:58px}.history-score strong{font-size:21px}.history-score small{max-width:74px;text-align:center}.history-match-note h2{white-space:normal}.history-pagination{justify-content:center}}

/* Keep the score anchored to the exact centre column. Separate numeric cells
   stop the colon and one/two-digit scores from visually drifting. */
.history-score{justify-self:center;text-align:center}
.history-score:not(.history-score--reverted) strong{
  display:grid;
  grid-template-columns:minmax(1.15ch,auto) .55ch minmax(1.15ch,auto);
  align-items:center;
  justify-content:center;
  width:100%;
  column-gap:8px;
}
.history-score:not(.history-score--reverted) strong>span{
  display:block;
  min-width:1.15ch;
  text-align:center;
}
.history-score:not(.history-score--reverted) strong>i{margin:0;text-align:center}
.history-score small{
  width:100%;
  text-align:center;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
@media(max-width:900px){
  .history-match{
    grid-template-columns:minmax(0,1fr) clamp(64px,18vw,76px) minmax(0,1fr);
    align-items:center;
    gap:6px;
  }
  .history-match-team,
  .history-match-team.home,
  .history-match-team.away{
    width:100%;
    justify-content:stretch;
    justify-items:center;
    text-align:center;
  }
  .history-match-team>span{width:100%;text-align:center}
  .history-score{width:100%;min-width:0;align-self:center}
  .history-score:not(.history-score--reverted) strong{column-gap:3px}
}

/* Tournament reset is an explicit public timeline boundary, not an auction,
   match or roster adjustment. */
.history-summary{grid-template-columns:repeat(6,minmax(90px,1fr))}
.history-event--standings .history-rail i{background:#5ed8d4}
.history-event--standings .history-kind{border-color: rgba(94,216,212,.34);color: var(--mint)}
.history-standings-adjustment .history-meta span{border-color: rgba(94,216,212,.22);color: var(--mint)}
.history-event--reset .history-rail i{background:#ff826f}
.history-reset{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:15px}
.history-reset-icon{display:grid;width:52px;height:52px;place-items:center;border: 1px solid color-mix(in srgb, var(--coral) 42%, transparent);border-radius:50%;background: color-mix(in srgb, var(--coral) 12%, transparent);color: var(--coral);font-size:28px;font-weight:900}
@media(max-width:900px){.history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.history-reset{grid-template-columns:auto minmax(0,1fr)}.history-reset-icon{width:46px;height:46px;font-size:24px}}

/* Settlement identities stay visible beside the immutable headline. */
.history-auction-media{display:flex;align-items:center;gap:12px}
.history-auction-media figure{display:grid;justify-items:center;gap:5px;margin:0;min-width:0}
.history-auction-media figcaption{color:var(--muted);font-size:12px;line-height:1.3}
.history-auction-team .history-team-mark{width:64px;height:82px}
.history-auction-team .history-team-mark img{width:60px;height:60px}
.history-auction-team .history-team-mark b{width:52px;height:56px;border-radius:14px 14px 20px 20px}
.history-portrait{display:grid;place-items:center;width:70px;height:82px;overflow:hidden;border:1px solid var(--line-strong);border-radius:10px;background:linear-gradient(145deg,var(--panel-grad-1),var(--surface-inset))}
.history-portrait img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.history-portrait img.is-placeholder{object-fit:cover;object-position:center;opacity:.82}
.history-portrait-label{display:grid;place-items:center;align-self:stretch;width:100%;color:var(--text-2);font-size:16px;font-weight:800;background:linear-gradient(145deg,var(--panel-3),var(--surface-inset))}
.history-team-mark>[hidden],.history-portrait>[hidden]{display:none}
.history-auction .history-subject-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-filters a:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
@media(min-width:2560px){
  .history-auction-media{gap:16px}
  .history-auction-media figcaption{font-size:14px}
  .history-auction-team .history-team-mark{width:78px;height:104px}
  .history-auction-team .history-team-mark img{width:74px;height:74px}
  .history-auction-team .history-team-mark b{width:66px;height:70px}
  .history-portrait{width:88px;height:104px}
}
@media(max-width:900px){
  .history-auction-media{gap:7px}
  .history-auction-team .history-team-mark{width:48px;height:72px}
  .history-auction-team .history-team-mark img{width:46px;height:46px}
  .history-auction-team .history-team-mark b{width:43px;height:46px;font-size:18px}
  .history-portrait{width:58px;height:72px}
}
@media(max-width:560px){
  .history-auction{grid-template-columns:minmax(0,1fr) auto;gap:12px}
  .history-auction-media{grid-column:1;grid-row:1;justify-content:flex-start}
  .history-auction .history-price{grid-column:2;grid-row:1}
  .history-auction .history-event-copy{grid-column:1/-1}
}
