/* FLAT DATE — stored variant, switched on by DATE_STYLE = 'flat' in tools/build.py (default 'tile').
   build.py injects this file after the series CSS at the series_css placeholder in home.html; it is empty for 'tile'.
   The date loses its rounded square: a small grey weekday over a large serif day number, centred, no fill.
   Scoped to .game-list so the training page and the booking page's compact card keep their tiles.
   The :is() pads the selector so it also beats the social / special / quiet-row date rules written above it. */
.game-list .game-card:is(.game-card,.game-card--social,.game-card--special) .game-date{
  background:none;width:56px;padding:2px 0 0;text-align:center;
}
.game-list .game-card:is(.game-card,.game-card--social,.game-card--special) .game-mon{
  color:var(--ink2);font-weight:500;letter-spacing:.1em;margin-bottom:5px;
}
.game-list .game-card .game-day{font-size:34px;line-height:1}
@container row (max-width:560px){
  .game-list .game-card:is(.game-card,.game-card--social,.game-card--special) .game-date{width:44px;padding:2px 0 0}
  .game-list .game-card .game-day{font-size:30px}
}

/* SAME-DAY LINE — games that share a date (the later rows have a blank date) hang off one vertical line under the
   first row's date, so it reads as one day. The first row's line starts under its date and runs to the row's bottom
   (the card clips it, overflow:hidden); each blank-date row continues it, and the last one stops at its middle.
   The divider between same-day rows goes, so the line is unbroken. --dl-x is the date column's centre. */
.game-list .game-card{--dl-x:calc(26px + 28px)}
.game-list .game-card .game-date{position:relative}
.game-list .game-card:has(+ .game-card .game-date--blank) .game-date::after{
  content:'';position:absolute;left:50%;top:calc(100% + 8px);width:2px;height:200px;margin-left:-1px;
  border-radius:2px;background:rgb(var(--accent-rgb) / .3);
}
.game-list .game-card:has(.game-date--blank){border-top:0}
.game-list .game-card:has(.game-date--blank)::after{
  content:'';position:absolute;left:calc(var(--dl-x) - 1px);top:0;width:2px;height:50%;
  border-radius:0 0 2px 2px;background:rgb(var(--accent-rgb) / .3);
}
.game-list .game-card:has(.game-date--blank):has(+ .game-card .game-date--blank)::after{height:100%;border-radius:0}
@container row (max-width:560px){
  .game-list .game-card{--dl-x:calc(16px + 22px)}
}
