/* Player directory columns; other History lists retain their own layouts. */
.history-clubs .history-players__list .history-honours__table-head,
.history-clubs .history-players__list .history-players__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) repeat(3, minmax(3rem, .3fr)) minmax(3.5rem, .4fr) 1rem;
  align-items: center;
  gap: .6rem;
}
.history-clubs .history-players__row > span { grid-column: auto; }
.history-clubs .history-players__row > span::before { display: none; }
.history-clubs .history-players__row > span:nth-child(n+3),
.history-clubs .history-players__list .history-honours__table-head > span:nth-child(n+3) { text-align: right; white-space: nowrap; }
.history-clubs .history-players__row .history-honours__chevron { grid-column: 7; grid-row: 1; }
@media (max-width: 38rem) {
  .history-clubs .history-players__list .history-honours__table-head { display: none; }
  .history-clubs .history-players__list .history-players__row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 1rem;
    gap: .4rem .6rem;
  }
  .history-clubs .history-players__row > span:first-child { grid-column: 1 / 5; font-weight: 700; }
  .history-clubs .history-players__row > span:nth-child(2) { grid-column: 1 / 5; color: var(--color-muted); }
  .history-clubs .history-players__row > span:nth-child(n+3) { grid-row: 3; text-align: left; }
  .history-clubs .history-players__row > span:nth-child(n+3)::before {
    display: block; content: attr(data-label); color: var(--color-muted); font-size: .7rem; font-weight: 700;
  }
  .history-clubs .history-players__row .history-honours__chevron { grid-column: 5; grid-row: 1 / 4; }
}

/* Player details share History colours; directory layouts above are unchanged. */
.history-player { width: min(100% - 1.5rem, 90rem); margin: 1.5rem auto; min-width: 0; }
.history-player > section { max-width: none; margin-bottom: .75rem; }
.history-player > .section-box { padding: 0; border: 1px solid var(--history-border); border-radius: var(--history-radius); background: var(--color-surface); box-shadow: var(--shadow-card); overflow: hidden; }
.history-player .my-fluid-text { padding: 0; }
.history-player .inpage-header { margin: 0; padding: .6rem .75rem; background: linear-gradient(110deg,var(--color-navy),var(--color-navy-light)); color: white; font-size: 1.05rem; font-weight: 700; text-transform: none; letter-spacing: normal; text-align: left; line-height: 1.35; }
.history-player .history__intro a { color: inherit; text-underline-offset: .2em; }
.history-player .history-player__totals { grid-template-columns: repeat(2,minmax(0,1fr)); }
.history-player__highlights { display: grid; grid-template-columns: repeat(auto-fit,minmax(9rem,1fr)); gap: .5rem; margin: .65rem; }
.history-player__highlights div { padding: .5rem; background: var(--history-stripe); border-radius: .2rem; }
.history-player__highlights dt { font-size: .8rem; color: var(--color-muted); text-align: center; }
.history-player__highlights dd { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 700; color: var(--color-navy); text-align: center;}
.history-player__records { display: grid; gap: .65rem; padding: .65rem; }
.history-player__records article { min-width: 0; padding: .6rem; background: var(--history-stripe); border: 1px solid var(--history-border); border-radius: .2rem; }
.history-player__records h3 { margin: 0 0 .4rem; font-size: .95rem; color: var(--color-navy); text-align: center;}
.history-player__records ul { margin: 0; padding-left: 1.1rem; font-size: .85rem; overflow-wrap: anywhere; }
.history-player .card-container { overflow-x: auto; margin: 0; padding: .5rem; border: 0; border-radius: 0; box-shadow: none; }
.history-player .cvsl-table { width: 100%; min-width: 0; font-size: .8rem; table-layout: fixed; }
.history-player .cvsl-table :is(th,td) { padding: .5rem .35rem; text-align: right; white-space: normal; overflow-wrap: anywhere; }
.history-player .cvsl-table thead th { background: var(--history-header); color: var(--color-navy); }
.history-player .cvsl-table tbody tr:nth-child(even) { background: var(--history-stripe); }
.history-player .cvsl-table :is(th,td):first-child { width: 30%; text-align: left; }
.history-player .cvsl-table :is(th,td):last-child { width: 2rem; text-align: center; }
/* Spread season and break data evenly, reserving only the navigation column. */
.history-player #PlayerSummary .cvsl-table :is(th,td):not(:last-child) { width: calc((100% - 2rem) / 6); }
.history-player #PlayerHighBreaks .cvsl-table :is(th,td):not(:last-child) { width: calc((100% - 2rem) / 3); }
.history-player #PlayerHandicaps :is(th,td):last-child { width: 22%; text-align: right; }
.history-player #PlayerHandicaps :is(th,td):nth-child(2) { text-align: left; }
.history-player :is(#TeamRounds,#PairsRounds,#VeteransRounds,#IndividualRounds,#MeritRounds) .cvsl-table :is(th,td):first-child { width: 35%; }
.history-player :is(#TeamRounds,#PairsRounds,#VeteransRounds,#IndividualRounds,#MeritRounds) .cvsl-table :is(th,td):nth-child(2) { width: 23%; text-align: center; }
.history-player :is(#TeamRounds,#PairsRounds,#VeteransRounds,#IndividualRounds,#MeritRounds) .cvsl-table :is(th,td):nth-child(3) { text-align: left; }
.history-player tr[data-href] { cursor: pointer; height: 2.75rem; }
.history-player tr[data-href]:is(:hover,:focus-visible) { background: var(--history-hover); }
.history-player tr[data-href]:focus-visible { outline: 2px solid var(--color-navy); outline-offset: -2px; }
.history-player .cvsl-table td:last-child svg { width: 1rem; height: 1rem; margin-inline: auto; }
.history-player [hidden] { display: none !important; }
@media(min-width:48rem) { .history-player .history-player__totals { grid-template-columns: repeat(4,minmax(0,1fr)); } .history-player__records { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:30rem) { .history-player #PlayerSummary .cvsl-table { min-width: 26rem; } .history-player .cvsl-table { font-size: .75rem; } }
