/* tennis-data / golf-data blocks (content/blocks/tennis_golf.html).
   Neutral base: every colour is a --tgd-* token so a theme skin re-tokens instead of
   re-writing rules (malaysia-tiger: _tiger-pt-sports.scss). Never wider than its column. */
.tgd {
  --tgd-ink: #1b2430; --tgd-muted: #5b6574; --tgd-surface: #fff; --tgd-surface-2: #f3f5f8;
  --tgd-border: #dfe4ea; --tgd-accent: #1f5fbf; --tgd-accent-ink: #fff; --tgd-live: #c62828;
  --tgd-hl: #fff6d6; --tgd-hl-border: #e0b400; --tgd-win: #1b2430; --tgd-radius: 12px;
  --tgd-font: inherit; --tgd-font-display: inherit;
  margin: 0 0 2rem; color: var(--tgd-ink); font-family: var(--tgd-font); max-width: 100%; min-width: 0;
}
.tgd *, .tgd *::before, .tgd *::after { box-sizing: border-box; }
.tgd-head { margin: 0 0 12px; }
.tgd-title { margin: 0 0 6px; font-family: var(--tgd-font-display); color: var(--tgd-ink); }
.tgd-intro { margin: 0 0 6px; }
.tgd-note { margin: 0; font-size: 14px; color: var(--tgd-muted); }
.tgd-foot { margin-top: 8px; font-size: 13px; }
.tgd-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tgd-muted); }

.tgd-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--tgd-border); border-radius: var(--tgd-radius); background: var(--tgd-surface); overflow: hidden; }
.tgd-list > li::before, .tgd-mlist > li::before { content: none !important; }
.tgd-ev {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  margin: 0; padding: 10px 16px; min-height: 52px;
}
.tgd-ev + .tgd-ev { border-top: 1px solid var(--tgd-border); }
.tgd-ev__date { font-weight: 700; font-variant-numeric: tabular-nums; }
.tgd-ev__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tgd-ev__name { font-weight: 700; overflow-wrap: anywhere; }
.tgd-ev__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 13px; color: var(--tgd-muted); min-width: 0; }
.tgd-ev__meta > span { overflow-wrap: anywhere; }
.tgd .tgd-hl { background: var(--tgd-hl); box-shadow: inset 4px 0 0 var(--tgd-hl-border); }

.tgd-tag {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--tgd-border);
  font-size: 12px; font-weight: 700; color: var(--tgd-ink); background: var(--tgd-surface-2); white-space: nowrap;
}
.tgd-tag-slam, .tgd-tag-1000, .tgd-tag-finals { background: var(--tgd-accent); border-color: var(--tgd-accent); color: var(--tgd-accent-ink); }
.tgd-badge {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--tgd-surface-2); color: var(--tgd-ink); white-space: nowrap; border: 1px solid var(--tgd-border);
}
.tgd-badge-on { background: var(--tgd-ink); color: var(--tgd-surface); border-color: var(--tgd-ink); }
.tgd-badge-home { background: var(--tgd-hl-border); border-color: var(--tgd-hl-border); color: var(--tgd-ink); }

.tgd-card {
  margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--tgd-border); border-radius: var(--tgd-radius);
  background: var(--tgd-surface); min-width: 0;
}
.tgd-card__head { margin: 0 0 8px; }
.tgd-card__title { margin: 2px 0 6px; font-family: var(--tgd-font-display); font-size: 19px; line-height: 1.25; color: var(--tgd-ink); overflow-wrap: anywhere; }
.tgd-sub { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tgd-muted); }
.tgd-dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--tgd-live); }

.tgd-mlist { list-style: none; margin: 0; padding: 0; }
.tgd-m {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  margin: 0; padding: 8px 0; border-top: 1px solid var(--tgd-border);
}
.tgd-m__when { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--tgd-muted); font-variant-numeric: tabular-nums; }
.tgd-m__when b { color: var(--tgd-ink); font-size: 15px; }
.tgd-m__when time { display: flex; flex-direction: column; }
.tgd-st { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tgd-muted); }
.tgd-st-live { color: var(--tgd-live); }
.tgd-m__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tgd-m__players { overflow-wrap: anywhere; }
.tgd-vs { color: var(--tgd-muted); font-size: .9em; }
.tgd-win { font-weight: 800; color: var(--tgd-win); }
.tgd-m__round { font-size: 13px; color: var(--tgd-muted); }
.tgd-m__score { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tgd-m-result .tgd-pl:not(.tgd-win) { color: var(--tgd-muted); }

.tgd-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .tgd-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tgd-tbl-wrap { min-width: 0; }
.tgd-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; background: var(--tgd-surface); }
.tgd-tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tgd-muted); padding: 8px 6px; border-bottom: 2px solid var(--tgd-border); }
.tgd-tbl td { padding: 8px 6px; border-bottom: 1px solid var(--tgd-border); vertical-align: middle; overflow-wrap: anywhere; }
.tgd-tbl th.tgd-num, .tgd-tbl td.tgd-num { text-align: right; font-variant-numeric: tabular-nums; }
.tgd-tbl th:first-child, .tgd-tbl td:first-child { width: 56px; text-align: center; }
.tgd-tbl th:last-child, .tgd-tbl td:last-child { width: 76px; }
.tgd-board th:nth-child(3), .tgd-board td:nth-child(3) { width: 72px; }
.tgd-pl { font-weight: 600; }
.tgd-cty { display: block; font-size: 12px; color: var(--tgd-muted); }
.tgd-par { font-weight: 800; }

.tgd-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .tgd-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.tgd-gcard { margin: 0; }
.tgd-gcard__date { margin: 0 0 4px; font-weight: 700; }
.tgd-gcard__venue { margin: 0; font-size: 14px; color: var(--tgd-muted); overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .tgd-ev { grid-template-columns: 84px minmax(0, 1fr); padding: 10px 12px; }
  .tgd-ev > .tgd-badge { grid-column: 2; justify-self: start; }
  .tgd-m { grid-template-columns: 72px minmax(0, 1fr); }
  .tgd-m__score { grid-column: 2; text-align: left; }
  .tgd-card { padding: 12px; }
  .tgd-tbl { font-size: 14px; }
  .tgd-tbl th:first-child, .tgd-tbl td:first-child { width: 44px; }
  .tgd-tbl th:last-child, .tgd-tbl td:last-child { width: 64px; }
}
