.tt {
  --ink: var(--csi-ink, #10253d);
  --blue: var(--csi-blue, #134395);
  --accent: var(--csi-orange, #ec6608);
  --paper: var(--csi-paper, #f3f5f7);
  --muted: var(--csi-muted, #526176);
  --border: var(--csi-line, #ccd6e1);
  --meta: var(--csi-type-meta, .8125rem);
  min-width: 0;
  margin-block: clamp(1rem, 3vw, 2.5rem);
  color: var(--ink);
  font-size: var(--csi-type-body, 1rem);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.tt *, .tt *::before, .tt *::after { box-sizing: border-box; }
.tt [hidden] { display: none; }
.tt :is(select,button,.tt-tw):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.tt-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .2rem 0 .2rem 1rem;
  border-inline-start: .25rem solid var(--accent);
}

.tt-logo { flex: none; }
.tt-logo img { display: block; width: min(15vw, 4rem); height: auto; }
.tt .tt-ttl {
  margin: 0;
  color: var(--blue);
  font-size: var(--csi-type-lead, clamp(1.125rem, 1rem + .4vw, 1.375rem));
  font-weight: 700;
  line-height: 1.3;
}
.tt .tt-season { margin: .2rem 0 0; color: var(--muted); font-size: var(--meta); }
.tt.tt-js .tt-panel-context, .tt .tt-season:empty { display: none; }
.tt-panel-context span:not(:empty)::before { content: " · "; }
.tt .tt-note { max-width: 64ch; margin: .85rem 0 1.25rem; color: var(--muted); font-size: .9em; }

.tt-toolbar {
  display: grid;
  align-items: end;
  gap: .9rem;
  padding: clamp(.85rem, 2vw, 1.25rem);
  border: 1px solid var(--border);
  background: var(--paper);
}
.tt-selection { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .7rem 1rem; align-items: end; }
.tt-pdf { display: flex; flex-wrap: wrap; gap: .65rem 1rem; min-width: 0; }
.tt-field {
  display: grid;
  gap: .35rem;
  min-width: 0;
  color: var(--ink);
  font-size: var(--meta);
  font-weight: 700;
}
.tt .tt-field select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid var(--border);
  border-radius: 0;
  appearance: auto;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: max(1rem, var(--csi-type-control, .9375rem));
  font-weight: 600;
}
.tt-pdf { gap: .5rem; }
.tt .tt-pdfbtn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .45rem .7rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: white;
  color: var(--blue);
  font: inherit;
  font-size: var(--meta);
  font-weight: 700;
  line-height: 1.25;
  text-align: start;
  cursor: pointer;
}
.tt .tt-pdfbtn svg { flex: none; }
.tt .tt-pdfbtn:hover { border-color: var(--blue); }
.tt-announcement, .tt.tt-js :is(.tt-cathead,.tt-grp) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}
.tt-print-frame { position: fixed; inset: auto 0 0 auto; width: 0; height: 0; border: 0; }

.tt .tt-cathead, .tt .tt-grp, .tt .tt-st, .tt .tt-daybar { color: var(--ink); }
.tt .tt-cathead {
  margin: 1.5rem 0 .35rem;
  font-size: var(--csi-type-subtitle, clamp(1.4rem, 1.1rem + 1vw, 2rem));
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.tt .tt-grp { margin: .45rem 0 1rem; color: var(--blue); font-size: var(--csi-type-lead, 1.2rem); }
.tt-sec { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 1.35rem 0 .7rem; }
.tt .tt-st { margin: 0; font-size: var(--csi-type-body, 1rem); font-weight: 750; line-height: 1.3; }
.tt:not(.tt-js) .tt-group + .tt-group, .tt-js .tt-pool + .tt-group:not(.tt-pool) { margin-top: 1.5rem; }
.tt-card { background: white; border-top: 1px solid var(--border); }

.tt-nav { display: flex; gap: .35rem; }
.tt .tt-nav button {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0;
  background: white;
  color: var(--blue);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.tt .tt-nav button:not(:disabled):hover { border-color: var(--blue); }
.tt .tt-nav button:disabled { opacity: .45; cursor: default; }
.tt:not(.tt-js) .tt-nav, .tt-js .tt-day:not(.on) { display: none; }

.tt .tt-daybar {
  margin: 0;
  padding: .6rem .85rem;
  background: var(--paper);
  color: var(--blue);
  font: inherit;
  font-size: var(--meta);
  font-weight: 750;
}
.tt-mr {
  display: grid;
  grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr);
  column-gap: clamp(.65rem, 2vw, 1.35rem);
  padding: .8rem .85rem;
  border-bottom: 1px solid var(--border);
}
.tt-dt {
  display: grid;
  grid-row: span 2;
  align-self: center;
  gap: .15rem;
  color: var(--muted);
  font-size: var(--meta);
}
.tt-match-status { color: var(--blue); font-weight: 650; }
.tt-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .5rem;
  padding-block: .14rem;
}
.tt-name { overflow-wrap: anywhere; line-height: 1.35; }
.tt .tt-side .w { color: var(--ink); font-weight: 750; }
.tt .tt-side .l, .tt-sc > b.e { color: var(--muted); font-weight: 400; }
.tt-sc { padding-inline-start: .45rem; border-inline-start: 1px solid var(--border); }
.tt-sc > b { display: flex; flex-wrap: wrap; justify-content: flex-end; color: var(--ink); font-weight: 400; }
.tt-sc i { min-width: 1.25rem; font-style: normal; text-align: center; }

.tt .tt-table-hint { display: none; margin: 0 0 .5rem; color: var(--muted); font-size: var(--meta); }
.tt-tw { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-top: 2px solid var(--blue); }
.tt .tt-tw table { width: 100%; min-width: 36rem; table-layout: fixed; margin: 0; border: 0; border-collapse: collapse; font-size: .9em; }
.tt .tt-tw :is(td,th) {
  min-width: 2.65rem;
  padding: .7rem .55rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: white;
  color: var(--ink);
  text-align: end;
  white-space: nowrap;
}
.tt .tt-tw thead th { background: var(--paper); font-size: var(--meta); font-weight: 750; }
.tt .tt-tw tbody tr:last-child > * { border-bottom: 0; }
.tt .tt-tw :is(.tt-left,.nm) { text-align: start; }
.tt .tt-tw thead th:not(.tt-left) { width: 2.75rem; }
.tt .tt-tw thead th:first-child { width: 3.2rem; }
.tt .tt-tw .nm {
  min-width: 0;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}
.tt .tt-tw .pt { color: var(--blue); font-weight: 750; }
.tt-qualified { display: block; color: #24774c; font-size: var(--meta); }

.tt-bracket { display: flex; gap: 1rem; overflow-x: auto; }
.tt-rcol { flex: 1 0 17rem; }
.tt-champ { margin: 1rem 0 0; padding: .65rem .85rem; border-inline-start: .2rem solid var(--accent); background: var(--paper); }
.tt-empty { margin: .6rem 0 1rem; color: var(--muted); }

@media (min-width: 1120px) {
  .tt-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 1180px) {
  .tt-group-content {
    display: grid;
    grid-template-columns: minmax(34rem, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2vw, 2rem);
  }
  .tt-group-content > div { min-width: 0; }
  .tt-group-content .tt-sec { min-height: 2.75rem; }
  .tt .tt-tw table { min-width: 34rem; }
}

@media (max-width: 700px) {
  .tt-selection { grid-template-columns: minmax(0, 1fr); }
  .tt .tt-table-hint { display: block; }
  .tt-mr { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .tt-dt { grid-row: auto; display: flex; flex-wrap: wrap; gap: .2rem .7rem; }
  .tt-sc { max-width: 32vw; }
  .tt-bracket { flex-direction: column; overflow: visible; }
  .tt-rcol { flex: none; }
}
