/* Match timetable (templates/site/tour_timetable.html). One table per ring, one row per minute;
   a match cell spans its duration. Cell colour arrives as --c and is tinted for light / dark. */
.tt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.tt-bar__info { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 14px; font-weight: 700; margin-inline-end: auto; }
.tt-bar__info i { color: var(--muted); margin-inline-end: 4px; }
.tt-only { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.tt-only input { width: 18px; height: 18px; accent-color: var(--red); }
.tt-only b { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.tt-search { position: sticky; top: calc(var(--hdr) + 6px); z-index: 20; box-shadow: var(--shadow); margin-bottom: 10px; padding-inline-end: 4px; }
.tt-search .icon { width: 34px; height: 34px; font-size: 13px; color: var(--muted); }
.tt-qcount { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tt-asum { padding: 10px 14px; margin-bottom: 10px; font-size: 13.5px; }
.tt-asum-row { padding: 3px 0; } .tt-asum-row i { color: var(--red); } .tt-asum-row small { color: var(--muted); }
.tt-asum-more { color: var(--muted); font-size: 12.5px; }
.tt-ages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tt-warn { padding: 12px 16px; margin-bottom: 12px; background: var(--warn-soft); color: var(--warn); border: 0; }

.tt-rings { display: grid; gap: 16px; }
@media (min-width: 1100px) { .tt-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tt-ring { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.tt-ring-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tt-ring-name { font-weight: 900; font-size: 16px; display: flex; align-items: center; gap: 8px; } .tt-ring-name i { color: var(--red); }
.tt-ring-name small { color: var(--muted); font-weight: 400; }
.tt-ring-clock { color: var(--muted); font-size: 13px; } .tt-ring-pend { color: var(--warn); }
.tt-ring-empty { padding: 30px 16px; text-align: center; color: var(--muted); }
.tt-schedule-wrap { max-height: 78vh; overflow: auto; }
.tt-schedule { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tt-schedule thead th { position: sticky; top: 0; z-index: 3; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700;
  padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: start; }
.tt-schedule th.tt-time-head { width: 62px; }
.tt-time-cell { position: sticky; inset-inline-start: 0; z-index: 2; width: 62px; padding: 0 8px; font-size: 11px; color: var(--muted);
  font-feature-settings: "tnum"; background: var(--surface); border-inline-end: 1px solid var(--line); vertical-align: top; line-height: 18px; }
.tt-schedule tbody tr:nth-child(5n + 1) > .tt-time-cell { color: var(--ink-2); font-weight: 700; }
.tt-schedule tbody td { height: 6px; }
.tt-empty-cell { background: transparent; }
.tt-match-cell { --c: #33ccff; position: relative; vertical-align: top; padding: 8px 10px 8px 12px; cursor: pointer;
  background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-inline-start: 4px solid var(--c); border-bottom: 2px solid var(--surface);
  transition: background .15s, opacity .15s; }
.tt-match-cell:hover { background: color-mix(in srgb, var(--c) 26%, var(--surface)); }
.tt-session { cursor: default; text-align: center; }
.tt-session-label { font-weight: 900; }
.tt-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.tt-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--ink-2); white-space: nowrap; }
.tt-badge-num { background: var(--ink); color: var(--bg); }
.tt-badge-bracket { color: var(--red); }
.tt-badge-light { color: var(--muted); font-weight: 400; }
.tt-match-title { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.tt-fighters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.tt-fighters strong { font-size: 11px; color: var(--muted); font-weight: 400; }
.tt-ath { display: inline-flex; align-items: center; gap: 6px; } .tt-ath small { color: var(--muted); font-size: 11.5px; }
.tt-ath-name { font-weight: 700; } a.tt-ath-name:hover { color: var(--red); }
.tt-win .tt-ath-name::after { content: " 🏆"; }
.tt-ava { width: 28px; height: 28px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid var(--surface); padding: 0; cursor: pointer;
  background: var(--surface-2); display: grid; place-items: center; }
.tt-ava img { width: 100%; height: 100%; object-fit: cover; }
.tt-ava-init { font-size: 11px; font-weight: 900; color: var(--ink-2); }
.tt-bye-tag { color: var(--warn); font-size: 11.5px; }
.tt-pending { color: var(--warn); font-size: 12.5px; font-weight: 700; }
.tt-cell-info { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.tt-cell-status { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--green); }
.tt-rings.only-concrete tr.tt-row-pending { display: none; }
.tt-hit { outline: 2px solid var(--red); outline-offset: -2px; }
.tt-cur { outline: 3px solid var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 25%, transparent); }
.tt-fade { opacity: .35; }
.tt-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.tt-legend b { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; margin-inline-end: 4px; border: 1px solid var(--line); }

/* athlete profile pop-up */
.tt-prof { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(5, 10, 22, .55); backdrop-filter: blur(4px); }
.tt-prof[hidden] { display: none; }
.tt-prof-card { position: relative; width: min(360px, 100%); padding: 24px 20px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg);
  text-align: center; animation: drop .2s var(--ease); }
.tt-prof-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.tt-prof-photo { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2);
  font-size: 32px; color: var(--muted); }
.tt-prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.tt-prof-init { font-weight: 900; font-size: 30px; color: var(--ink-2); }
.tt-prof-name { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.tt-prof-rows { display: grid; gap: 6px; text-align: start; }
.tt-prof-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.tt-prof-row i { color: var(--red); width: 18px; text-align: center; } .tt-prof-row span { color: var(--muted); } .tt-prof-row b { margin-inline-start: auto; }
.tt-prof-foot { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ring jump chips under the day tabs */
.tt-ringnav { margin-top: -6px; }
.tt-ringnav a { height: 34px; font-size: 13px; }
.tt-ringnav a i { color: var(--red); }
.tt-ring { scroll-margin-top: calc(var(--hdr, 64px) + 74px); }
.tt-ring.is-jump { outline: 2px solid var(--red); outline-offset: 2px; transition: outline-color 1.2s; }
