/* Guide walkthrough F169 (Marko, 2026-10-25, mockup round-29 f169.html, variant D): the two views of the public tournament
   list ("Upcoming and active", "Completed") as two choice cards in a nav (Views/Tournaments/PublicList.cshtml). Each card
   has an icon, the name and one line with the count and what is there. The card of the shown view (aria-current="page")
   has the brand frame, a light brand tint and its icon on a brand square; the other card has its own fill and frame, and
   hover changes both. Every fill is solid (the tint lies over the surface), so the text keeps its contrast over the page
   photo. On a phone (760px and less) the two cards sit side by side without the icon; the search form wraps below them.
   The frame width is a custom property, so a wider frame takes its room from the padding and the card keeps its size.
   Round 29 combined fix round 1 (accessibility sweep, edge contrast): a card is a link that looks like a control, so the
   frame of the other card is the house control edge --control-border (3:1 and more against the page in both themes),
   not the strong hairline token it had (1.67:1 light, 1.78:1 dark). */
.section-head > .tlist-views { flex: 1 1 auto; min-width: 0; }
.tlist-views { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 10px; padding-bottom: var(--sp-2); }
.tlist-view {
  --tlist-py: 12px;
  --tlist-px: 16px;
  --tlist-bw: 1px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--sp-3); align-items: center;
  padding: calc(var(--tlist-py) + 1px - var(--tlist-bw)) calc(var(--tlist-px) + 1px - var(--tlist-bw));
  border: var(--tlist-bw) solid var(--control-border); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.tlist-view:not([aria-current="page"]):hover { border-color: var(--brand-text); background: var(--surface-2); color: var(--text); }
.tlist-view[aria-current="page"] { --tlist-bw: 2px; border-color: var(--brand); background: var(--surface) linear-gradient(var(--brand-tint), var(--brand-tint)); }
.tlist-view:focus-visible { border-radius: var(--r-lg); }
.tlist-view__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-lg); background: var(--surface-3); color: var(--text-2); }
.tlist-view[aria-current="page"] .tlist-view__icon { background: var(--brand); color: var(--brand-on); }
.tlist-view__icon svg { width: 22px; height: 22px; }
.tlist-view__name { font: 800 var(--fs-xl)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.tlist-view__line { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 760px) {
  .tlist-views { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; width: 100%; }
  .tlist-view { --tlist-py: 10px; --tlist-px: 10px; grid-template-columns: minmax(0, 1fr); align-content: start; }
  .tlist-view__icon { display: none; }
  .tlist-view__name { font-size: var(--fs-md); }
}
@media (prefers-reduced-motion: reduce) {
  .tlist-view { transition: none; }
}
/* Forced colours drop the fills: every card keeps a frame and the shown card a thicker one in the system mark colour. */
@media (forced-colors: active) {
  .tlist-view { border-color: CanvasText; }
  .tlist-view[aria-current="page"] { --tlist-bw: 3px; border-color: Highlight; }
  .tlist-view__icon { border: 1px solid CanvasText; }
}
