.tmtd {
	--tmtd-ink: #0e2240;
	--tmtd-accent: #e0662f;
	--tmtd-muted: #5b6778;
	--tmtd-line: #e8ecf2;
	--tmtd-pol: #fde4d6;
	--tmtd-up: #13804a;
	--tmtd-down: #c0392b;
	background: #fff;
	border-radius: 14px;
	padding: 22px;
	color: var(--tmtd-ink);
	font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	width: 100%;
	box-sizing: border-box;
}

/* Widżety Elementora na całą szerokość kontenera. W kontenerze „w rzędzie”
   Elementor zwęża widżety do szerokości treści – tu dwa obok siebie dzielą
   miejsce po równo. Szerokość ustawiona ręcznie w widżecie (Zaawansowane →
   Układ) ma wyższy priorytet i nadal działa. */
.e-con > [class*="elementor-widget-tmtd-"],
.e-con-inner > [class*="elementor-widget-tmtd-"] {
	width: 100%;
	max-width: 100%;
	flex: 1 1 0%;
	min-width: 0;
}

[class*="elementor-widget-tmtd-"] > .elementor-widget-container {
	height: 100%;
}

[class*="elementor-widget-tmtd-"] .tmtd {
	height: 100%;
}

.tmtd__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.tmtd__title {
	margin: 0;
	font-family: Anton, Impact, "Arial Narrow", sans-serif;
	font-weight: 400;
	font-size: 24px;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--tmtd-ink);
}

.tmtd__date {
	font-size: 12px;
	color: var(--tmtd-muted);
	white-space: nowrap;
}

.tmtd__sub {
	margin: 14px 0 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tmtd-accent);
}

.tmtd__sub:first-of-type {
	margin-top: 4px;
}

/* ---------- tabela rankingu ---------- */

.tmtd__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 14px;
}

.tmtd__table th {
	padding: 0 6px 6px;
	border-bottom: 2px solid var(--tmtd-line);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-align: left;
	text-transform: uppercase;
	color: var(--tmtd-muted);
}

.tmtd__table td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--tmtd-line);
	vertical-align: middle;
}

.tmtd__table tr:last-child td {
	border-bottom: 0;
}

.tmtd__c-rank {
	width: 2.2em;
	font-weight: 800;
	text-align: right !important;
	font-variant-numeric: tabular-nums;
}

.tmtd__c-num {
	text-align: right !important;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tmtd__c-mv {
	width: 3.2em;
	text-align: right !important;
}

/* Wysoka szczegółowość: motywy (np. Hello Elementor) paskują tabele regułą
   „table tbody > tr:nth-child(odd) > td”, która wygrywała z prostym selektorem. */
.tmtd .tmtd__table tbody tr.tmtd__row--pol > td,
.tmtd .tmtd__table tbody tr.tmtd__row--pol:hover > td {
	background-color: var(--tmtd-pol);
}

.tmtd .tmtd__table tbody tr.tmtd__row--pol > td:first-child {
	box-shadow: inset 3px 0 0 var(--tmtd-accent);
}

.tmtd .tmtd__row--pol .tmtd__name {
	font-weight: 800;
}

.tmtd__name {
	font-weight: 600;
}

.tmtd__cc {
	margin-left: 2px;
	font-size: 11px;
	font-weight: 700;
	color: var(--tmtd-muted);
}

.tmtd__mv {
	font-size: 12px;
	font-weight: 700;
	color: var(--tmtd-muted);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.tmtd__mv--up {
	color: var(--tmtd-up);
}

.tmtd__mv--down {
	color: var(--tmtd-down);
}

.tmtd__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Polacy w rankingu ---------- */

.tmtd__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tmtd__li {
	display: grid;
	grid-template-columns: 2.4em 1fr auto 3.2em;
	align-items: baseline;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid var(--tmtd-line);
}

.tmtd__li:last-child {
	border-bottom: 0;
}

.tmtd__rank {
	font-weight: 800;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.tmtd__pts {
	font-size: 12px;
	color: var(--tmtd-muted);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.tmtd__li .tmtd__mv {
	text-align: right;
}

/* ---------- kalendarz ---------- */

.tmtd__cal {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tmtd__ev {
	display: grid;
	grid-template-columns: 5.6em 1fr;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--tmtd-line);
}

.tmtd__ev:last-child {
	border-bottom: 0;
}

.tmtd__when {
	font-size: 12px;
	font-weight: 800;
	color: var(--tmtd-accent);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tmtd__what strong {
	font-weight: 700;
}

.tmtd__meta {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--tmtd-muted);
}

.tmtd__tour {
	display: inline-block;
	padding: 1px 5px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	vertical-align: 1px;
	color: #fff;
	background: var(--tmtd-ink);
}

.tmtd__tour--wta {
	background: #7b3fa0;
}

.tmtd__live {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	color: #fff;
	background: var(--tmtd-accent);
	vertical-align: 1px;
}

.tmtd__ev--live .tmtd__when {
	color: var(--tmtd-ink);
}

/* ---------- wspólne ---------- */

.tmtd__empty {
	margin: 0;
	color: var(--tmtd-muted);
}

.tmtd__table tr[hidden],
.tmtd__li[hidden] {
	display: none;
}

.tmtd__morewrap {
	margin: 12px 0 0;
	text-align: center;
}

.tmtd .tmtd__more {
	display: inline-block;
	margin: 0;
	padding: 5px 14px;
	border: 1px solid var(--tmtd-line);
	border-radius: 999px;
	background: #fff;
	color: var(--tmtd-ink);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}

.tmtd .tmtd__more:hover,
.tmtd .tmtd__more:focus-visible {
	border-color: var(--tmtd-accent);
	color: var(--tmtd-accent);
	background: #fff;
}

.tmtd .tmtd__more:focus-visible {
	outline: 2px solid var(--tmtd-accent);
	outline-offset: 2px;
}

.tmtd__src {
	margin: 12px 0 0;
	font-size: 11px;
	color: var(--tmtd-muted);
}

.tmtd__src a {
	color: inherit;
}

@media (max-width: 480px) {
	.tmtd {
		padding: 16px;
	}

	.tmtd__li {
		grid-template-columns: 2.2em 1fr auto;
	}

	.tmtd__li .tmtd__mv {
		display: none;
	}
}

/* ---------- Karta zawodnika [tm_zawodnik] ---------- */
.tmtd-pc {
	display: grid;
	grid-template-columns: minmax(130px, auto) 1fr;
	gap: 18px 24px;
	align-items: start;
}
.tmtd-pc__rank {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #f4f6f9;
}
.tmtd-pc--pol .tmtd-pc__rank { background: var(--tmtd-pol); box-shadow: inset 3px 0 0 var(--tmtd-accent); }
.tmtd-pc__no {
	font-family: Anton, Oswald, Impact, sans-serif;
	font-size: 46px;
	line-height: 1;
	color: var(--tmtd-ink);
}
.tmtd-pc__no small { font-size: 24px; color: var(--tmtd-accent); margin-right: 2px; }
.tmtd-pc__pts { font-weight: 800; font-variant-numeric: tabular-nums; }
.tmtd-pc__mv { font-size: 12px; color: var(--tmtd-muted); }
.tmtd-pc__rank .tmtd__tour { align-self: flex-start; margin-top: 4px; }
.tmtd-pc__facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px 16px;
	margin: 0;
}
.tmtd-pc__facts div { min-width: 0; }
.tmtd-pc__facts dt {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--tmtd-muted);
	margin: 0 0 2px;
}
.tmtd-pc__facts dd { margin: 0; font-weight: 700; }
.tmtd-pc__trend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--tmtd-line);
}
.tmtd-pc__best { margin: 0; font-size: 13px; }
.tmtd-pc__spark { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; min-width: 0; max-width: 320px; }
.tmtd-pc__sparklab { font-size: 11px; color: var(--tmtd-muted); white-space: nowrap; }
@media (max-width: 480px) {
	.tmtd-pc { grid-template-columns: 1fr; }
}

/* ---------- Wykres [tm_ranking_historia] ---------- */
.tmtd-ch__wrap { margin: 0; }
.tmtd-ch {
	position: relative;
	height: 260px;
	margin: 6px 6px 26px 36px; /* miejsce na napisy osi */
}
.tmtd-ch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tmtd-ch__grid { stroke: var(--tmtd-line); stroke-width: 1; }
.tmtd-ch__y, .tmtd-ch__x {
	position: absolute;
	font: 600 11px/1 Manrope, system-ui, sans-serif;
	color: var(--tmtd-muted);
	white-space: nowrap;
	pointer-events: none;
}
.tmtd-ch__y { right: 100%; padding-right: 8px; transform: translateY(-50%); }
.tmtd-ch__x { top: 100%; margin-top: 8px; transform: translateX(-50%); }
.tmtd-ch__dot {
	position: absolute;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 2px #fff;
}
.tmtd-ch--mini { height: 44px; margin: 4px 6px; flex: 1 1 auto; min-width: 0; }
.tmtd-ch--mini .tmtd-ch__dot { width: 7px; height: 7px; }
@media (max-width: 480px) {
	.tmtd-ch { height: 200px; }
	.tmtd-ch__x--alt { display: none; }
}
.tmtd-ch__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.tmtd-ch__legend li { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.tmtd-ch__sw { width: 14px; height: 4px; border-radius: 2px; align-self: center; }
.tmtd-ch__now { font-weight: 800; font-variant-numeric: tabular-nums; }
.tmtd-ch__info { font-size: 12px; color: var(--tmtd-muted); }
.tmtd-ch__note { display: block; margin-top: 6px; font-size: 11px; color: var(--tmtd-muted); }

/* ---------- Karta turnieju [tm_turniej] ---------- */
.tmtd-tc__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tmtd-tc__st {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	background: #f4f6f9;
	color: var(--tmtd-ink);
}
.tmtd-tc__st--live { background: var(--tmtd-accent); color: #fff; }
.tmtd-tc__st--end { color: var(--tmtd-muted); }

/* ---------- Awanse i spadki [tm_awanse] ---------- */
.tmtd-mv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.tmtd-mv .tmtd__sub { margin-top: 0; }
.tmtd-mv__col--up .tmtd__sub { color: var(--tmtd-up); }
.tmtd-mv__col--down .tmtd__sub { color: var(--tmtd-down); }
.tmtd__li--pol { background: var(--tmtd-pol); }
@media (max-width: 480px) {
	.tmtd-mv { grid-template-columns: 1fr; }
}

/* ---------- Kraje w top 100 [tm_ranking_kraje] ---------- */
.tmtd-ct__sum { margin: 0 0 8px; font-size: 13px; color: var(--tmtd-muted); }
.tmtd-ct__cc { font-size: 13px; font-weight: 800; color: var(--tmtd-ink); }