/* ==========================================================================
   Trade Academy: broker reviews (category-srovnani-brokeru.php, single-broker.php)
   Dark mode only.
   ========================================================================== */

body.category-srovnani-brokeru,
body:has(.ta-br-single) {
	overflow-x: clip;
}

.ta-br {
	--ta-text: var(--cs-color-primary, #FFFFFF);
	--ta-muted: var(--cs-color-secondary, #B4BFD0);
	--ta-border: var(--cs-color-border, #22324F);
	--ta-surface: #101D35;
	--ta-blue: #038BDC;
	--ta-blue-light: #4DB3F0;
	--ta-soft: rgba(77, 179, 240, 0.1);
	--ta-soft-border: rgba(77, 179, 240, 0.3);
	--ta-red: #F87171;
	--ta-red-soft: rgba(248, 113, 113, 0.12);
	--ta-red-border: rgba(248, 113, 113, 0.35);
	position: relative;
	padding-bottom: 40px;
	color: var(--ta-text);
}
.ta-br a {
	text-decoration: none;
}

/* ---------- Shared ---------- */

.ta-br-hero__bg {
	position: absolute;
	z-index: -1;
	top: -4rem;
	bottom: -40px;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background:
		radial-gradient(40% 60% at 70% 25%, rgba(3, 139, 220, 0.22), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 20%, #000 35%, transparent 100%);
	mask-image: radial-gradient(ellipse 80% 90% at 50% 20%, #000 35%, transparent 100%);
	pointer-events: none;
}
.ta-br-single.is-warning .ta-br-hero__bg {
	background:
		radial-gradient(40% 60% at 70% 25%, rgba(248, 113, 113, 0.18), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px;
}
.ta-br-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 12px;
	border: 1px solid var(--ta-soft-border);
	border-radius: 999px;
	background: var(--ta-soft);
	color: var(--ta-blue-light);
	font-size: 0.8125rem;
	font-weight: 600;
}
.ta-br-kicker.is-warning {
	border-color: var(--ta-red-border);
	background: var(--ta-red-soft);
	color: var(--ta-red);
}

/* Logo tile */
.ta-br-logo {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	overflow: hidden;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background: #0B1526;
}
.ta-br-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ta-br-logo.is-light {
	background: #FFFFFF;
}
.ta-br-logo--mono {
	border-color: var(--ta-soft-border);
	background: linear-gradient(135deg, #16284C 0%, #0B1526 100%);
	color: #7CC8F5;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.ta-br-logo--xs {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	font-size: 0.75rem;
}
.ta-br-logo--sm {
	width: 44px;
	height: 44px;
	border-radius: 13px;
}
.ta-br-logo--lg {
	width: 72px;
	height: 72px;
	border-radius: 20px;
	font-size: 1.5rem;
	box-shadow: 0 16px 40px -16px rgba(3, 139, 220, 0.7);
}

/* ---------- Archive ---------- */

.ta-br-hero {
	position: relative;
	isolation: isolate;
	max-width: 760px;
	padding: 40px 0 56px;
}
.ta-br .ta-br-hero__title {
	margin: 20px 0 0;
	color: var(--ta-text);
	font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.045em;
}
.ta-br .ta-br-hero__title span {
	background: linear-gradient(95deg, #7CC8F5 0%, #38A9EF 50%, #038BDC 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.ta-br-hero__lead {
	max-width: 36rem;
	margin: 18px 0 0;
	color: var(--ta-muted);
	font-size: 1.125rem;
	line-height: 1.6;
}

.ta-br-section {
	scroll-margin-top: 110px;
}
.ta-br-section + .ta-br-section {
	margin-top: 72px;
}
.ta-br-section__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}
.ta-br .ta-br-section__title {
	margin: 0;
	color: var(--ta-text);
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.035em;
}
.ta-br-section__count {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--ta-border);
	border-radius: 999px;
	color: var(--ta-muted);
	font-size: 0.875rem;
	font-weight: 700;
}
.ta-br-section__lead {
	max-width: 44rem;
	margin: -8px 0 24px;
	color: var(--ta-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* Ranking */
.ta-br-ranking {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ta-br-rank {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--ta-border);
	border-radius: 24px;
	background: var(--ta-surface);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.ta-br-rank.is-top {
	border-color: var(--ta-soft-border);
	background:
		radial-gradient(100% 70% at 0% 0%, rgba(3, 139, 220, 0.25), transparent 60%),
		var(--ta-surface);
}
.ta-br-rank:hover,
.ta-br-rank:focus-within {
	border-color: var(--ta-soft-border);
	box-shadow: 0 30px 60px -28px rgba(3, 139, 220, 0.55);
	transform: translateY(-4px);
}
.ta-br-rank__media {
	position: relative;
	overflow: hidden;
	margin: 10px 10px 0;
	border-radius: 16px;
	aspect-ratio: 16 / 10;
	background: #0B1526;
}
.ta-br-rank__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ta-br-rank:hover .ta-br-rank__media img {
	transform: scale(1.05);
}
.ta-br-rank__pos {
	position: absolute;
	top: 10px;
	left: 10px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	background: rgba(11, 21, 38, 0.8);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #FFFFFF;
	font-size: 0.9375rem;
	font-weight: 800;
}
.ta-br-rank.is-top .ta-br-rank__pos {
	border-color: #038BDC;
	background: #038BDC;
}
.ta-br-rank__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 18px 20px 20px;
}
.ta-br-rank__head {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.ta-br .ta-br-rank__name {
	overflow: hidden;
	margin: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #FFFFFF;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.025em;
}
.ta-br .ta-br-rank__name a {
	color: inherit;
}
.ta-br-rank__name a::after,
.ta-br-card__name a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}
.ta-br-rank__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--ta-blue-light);
	font-size: 0.875rem;
	font-weight: 700;
}
.ta-br-rank__cta svg,
.ta-br-card__arrow svg,
.ta-br-warning__arrow svg {
	transition: transform 0.25s ease;
}
.ta-br-rank:hover .ta-br-rank__cta svg {
	transform: translateX(4px);
}

/* Other reviews */
.ta-br-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.ta-br-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px 14px 14px;
	border: 1px solid var(--ta-border);
	border-radius: 18px;
	background: var(--ta-surface);
	transition: border-color 0.25s ease, background-color 0.25s ease;
}
.ta-br-card:hover,
.ta-br-card:focus-within {
	border-color: var(--ta-soft-border);
	background: #14254A;
}
.ta-br-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.ta-br .ta-br-card__name {
	overflow: hidden;
	margin: 0;
	color: #FFFFFF;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ta-br .ta-br-card__name a {
	color: inherit;
}
.ta-br-card__meta {
	color: var(--ta-muted);
	font-size: 0.75rem;
}
.ta-br-card__arrow {
	display: flex;
	color: var(--ta-muted);
}
.ta-br-card:hover .ta-br-card__arrow {
	color: var(--ta-blue-light);
}
.ta-br-card:hover .ta-br-card__arrow svg {
	transform: translateX(3px);
}

/* Warnings */
.ta-br-warnings {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ta-br-warning {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 14px 16px 14px 14px;
	border: 1px solid var(--ta-border);
	border-radius: 18px;
	background: var(--ta-surface);
	transition: border-color 0.25s ease, background-color 0.25s ease;
}
.ta-br-warning:hover,
.ta-br-warning:focus-within {
	border-color: var(--ta-red-border);
	background: rgba(248, 113, 113, 0.06);
}
.ta-br-warning__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--ta-red-soft);
	color: var(--ta-red);
}
.ta-br-warning__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.ta-br .ta-br-warning__title {
	display: -webkit-box;
	overflow: hidden;
	color: #FFFFFF;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ta-br-warning__title::after {
	content: "";
	position: absolute;
	inset: 0;
}
.ta-br-warning__meta {
	color: var(--ta-muted);
	font-size: 0.75rem;
}
.ta-br-warning__arrow {
	display: flex;
	color: var(--ta-muted);
}
.ta-br-warning:hover .ta-br-warning__arrow {
	color: var(--ta-red);
}
.ta-br-warning:hover .ta-br-warning__arrow svg {
	transform: translateX(3px);
}

/* ---------- Single ---------- */

.ta-br-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-top: 8px;
	color: var(--ta-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}
.ta-br-crumbs svg {
	opacity: 0.5;
}
.ta-br .ta-br-crumbs a {
	color: var(--ta-muted);
}
.ta-br .ta-br-crumbs a:hover {
	color: var(--ta-blue-light);
}
.ta-br-crumbs [aria-current] {
	overflow: hidden;
	max-width: 40ch;
	color: var(--ta-text);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ta-br-shero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 56px;
	padding: 36px 0 56px;
}
.ta-br-shero__title-row {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 22px;
}
.ta-br .ta-br-shero__title {
	margin: 0;
	color: var(--ta-text);
	font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.045em;
	text-wrap: balance;
}
.ta-br-single.is-warning .ta-br-shero__title {
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
	line-height: 1.12;
}
.ta-br-shero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	color: var(--ta-muted);
	font-size: 0.875rem;
}

/* Screenshot in a browser frame */
.ta-br-browser {
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--ta-border);
	border-radius: 20px;
	background: #0B1526;
	box-shadow: 0 40px 80px -40px rgba(3, 139, 220, 0.6);
	transform: perspective(1400px) rotateY(-5deg);
	transform-origin: right center;
}
.ta-br-single.is-warning .ta-br-browser {
	box-shadow: 0 40px 80px -40px rgba(248, 113, 113, 0.45);
}
.ta-br-browser img {
	display: block;
	border-radius: inherit;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: top;
}

.ta-br-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	gap: 56px;
}
.ta-br-article {
	max-width: 760px;
}
.ta-br-alert {
	display: flex;
	gap: 14px;
	margin-bottom: 32px;
	padding: 18px 20px;
	border: 1px solid var(--ta-red-border);
	border-radius: 18px;
	background: var(--ta-red-soft);
}
.ta-br-alert__icon {
	display: flex;
	flex-shrink: 0;
	padding-top: 2px;
	color: var(--ta-red);
}
.ta-br-alert p {
	margin: 0;
	color: #FECACA;
	font-size: 0.9375rem;
	line-height: 1.6;
}
.ta-br-content {
	color: #D5DDEA;
	font-size: 1.0625rem;
	line-height: 1.8;
}
.ta-br-content p {
	margin: 0 0 1.25em;
}
.ta-br-content > p:first-child {
	color: #FFFFFF;
	font-size: 1.1875rem;
	font-weight: 500;
	line-height: 1.65;
}
.ta-br-content h2,
.ta-br-content h3,
.ta-br-content h4 {
	margin: 1.8em 0 0.6em;
	color: #FFFFFF;
	font-weight: 800;
	letter-spacing: -0.03em;
	scroll-margin-top: 110px;
}
.ta-br-content ul,
.ta-br-content ol {
	margin: 0 0 1.4em;
	padding: 18px 20px 18px 38px;
	border: 1px solid var(--ta-border);
	border-radius: 18px;
	background: var(--ta-surface);
}
.ta-br-content li {
	margin-bottom: 0.5em;
}
.ta-br-content li:last-child {
	margin-bottom: 0;
}
.ta-br-content li::marker {
	color: var(--ta-blue-light);
}
.ta-br-content strong {
	color: #FFFFFF;
}
.ta-br-content blockquote {
	margin: 1.5em 0;
	padding: 18px 22px;
	border: 0;
	border-left: 3px solid var(--ta-blue);
	border-radius: 0 16px 16px 0;
	background: var(--ta-soft);
	color: #FFFFFF;
	font-style: normal;
}
.ta-br-single.is-warning .ta-br-content blockquote {
	border-left-color: var(--ta-red);
	background: var(--ta-red-soft);
}
.ta-br-content a {
	color: var(--ta-blue-light);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ta-br-aside {
	position: sticky;
	top: calc(var(--ta-header-offset, 0px) + 24px);
	transition: top 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ta-br .ta-br-aside-card {
	padding: 22px;
	border: 1px solid var(--ta-border);
	border-radius: 22px;
	background: var(--ta-surface);
}
.ta-br .ta-br-aside-card__title {
	margin: 0 0 14px;
	color: var(--ta-blue-light);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}
.ta-br-toc ol {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 -8px;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}
.ta-br-toc li {
	margin: 0;
	counter-increment: toc;
}
.ta-br .ta-br-toc a {
	display: flex;
	gap: 10px;
	padding: 8px;
	border-radius: 10px;
	color: #D5DDEA;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.ta-br .ta-br-toc a::before {
	content: counter(toc, decimal-leading-zero);
	color: var(--ta-blue-light);
	font-variant-numeric: tabular-nums;
}
.ta-br .ta-br-toc a:hover {
	background: var(--ta-soft);
	color: #FFFFFF;
}
.ta-br-toc li.is-sub a {
	padding-left: 28px;
	font-weight: 500;
}

.ta-br-mini {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 -8px;
	padding: 0;
	list-style: none;
}
.ta-br-mini li {
	margin: 0;
}
.ta-br .ta-br-mini a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 12px;
	color: #FFFFFF;
	font-size: 0.9375rem;
	font-weight: 700;
	transition: background-color 0.2s ease;
}
.ta-br .ta-br-mini a:hover {
	background: var(--ta-soft);
}
.ta-br-mini li.is-current a {
	background: rgba(3, 139, 220, 0.16);
	box-shadow: inset 0 0 0 1px rgba(77, 179, 240, 0.4);
}
.ta-br-mini__rank {
	width: 16px;
	color: var(--ta-muted);
	font-size: 0.8125rem;
	font-weight: 800;
	text-align: center;
}
.ta-br-mini__name {
	flex: 1;
}
.ta-br-mini svg {
	color: var(--ta-muted);
}
.ta-br .ta-br-aside-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	color: var(--ta-blue-light);
	font-size: 0.875rem;
	font-weight: 700;
}
.ta-br .ta-br-note {
	display: flex;
	gap: 12px;
	border-style: dashed;
	background: transparent;
}
.ta-br-note__icon {
	display: flex;
	flex-shrink: 0;
	color: var(--ta-blue-light);
}
.ta-br-note p {
	margin: 0;
	color: var(--ta-muted);
	font-size: 0.8125rem;
	line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 1247.98px) {
	.ta-br-ranking {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 991.98px) {
	.ta-br-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ta-br-warnings {
		grid-template-columns: minmax(0, 1fr);
	}
	.ta-br-shero {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}
	.ta-br-browser {
		transform: none;
	}
	.ta-br-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
	.ta-br-article {
		max-width: none;
	}
	.ta-br-aside {
		position: static;
	}
}
@media (max-width: 575.98px) {
	.ta-br-hero,
	.ta-br-shero {
		padding: 20px 0 36px;
	}
	.ta-br-ranking,
	.ta-br-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.ta-br-logo--lg {
		width: 56px;
		height: 56px;
		border-radius: 16px;
	}
	.ta-br-shero__title-row {
		gap: 14px;
	}
	.ta-br-content {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ta-br *,
	.ta-br *::before,
	.ta-br *::after {
		transition: none !important;
	}
}
