/* ==========================================================================
   Trade Academy: news archive (category-financni-zpravy.php) and the default
   single post (single.php + header from inc/news.php). Dark mode only.
   ========================================================================== */

body.category-financni-zpravy,
body.single-post {
	overflow-x: clip;
}

.ta-nw {
	--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);
	position: relative;
	color: var(--ta-text);
}
.ta-nw a {
	text-decoration: none;
}
.ta-nw-hero__bg {
	position: absolute;
	z-index: -1;
	top: -4rem;
	bottom: -30px;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background:
		radial-gradient(40% 70% at 85% 20%, rgba(3, 139, 220, 0.2), 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% 100% at 50% 0%, #000 30%, transparent 100%);
	mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 30%, transparent 100%);
	pointer-events: none;
}

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

.ta-nw-archive {
	padding-bottom: 40px;
}
.ta-nw-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: 36px 0 32px;
	border-bottom: 1px solid var(--ta-border);
}
.ta-nw-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-nw .ta-nw-hero__title {
	margin: 18px 0 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;
}
.ta-nw .ta-nw-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-nw-hero__date {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	text-align: right;
}
.ta-nw-hero__date small {
	color: var(--ta-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.ta-nw-hero__date strong {
	color: #FFFFFF;
	font-size: 1.125rem;
	font-weight: 700;
}
.ta-nw-hero__date strong::first-letter {
	text-transform: uppercase;
}
.ta-nw-hero__date span {
	color: var(--ta-muted);
	font-size: 0.8125rem;
}

/* Top stories */
.ta-nw-top {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 32px;
	padding: 32px 0 48px;
	border-bottom: 1px solid var(--ta-border);
}
.ta-nw-lead {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: 460px;
	overflow: hidden;
	border: 1px solid var(--ta-border);
	border-radius: 26px;
	background: #0B1526;
}
.ta-nw-lead__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.ta-nw-lead__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ta-nw-lead:hover .ta-nw-lead__media img {
	transform: scale(1.04);
}
.ta-nw-lead::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(11, 21, 38, 0) 30%, rgba(11, 21, 38, 0.6) 62%, rgba(11, 21, 38, 0.95) 100%);
}
.ta-nw-lead__body {
	padding: 30px 32px;
}
.ta-nw-lead__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.8125rem;
	font-weight: 600;
}
.ta-nw-live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px;
	border-radius: 999px;
	background: #038BDC;
	color: #FFFFFF;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.ta-nw .ta-nw-lead__title {
	margin: 14px 0 0;
	color: #FFFFFF;
	font-size: clamp(1.5rem, 1.05rem + 1.3vw, 2.25rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	text-wrap: balance;
}
.ta-nw .ta-nw-lead__title a {
	color: inherit;
}
.ta-nw-lead__title a::after,
.ta-nw-headline__title a::after,
.ta-nw-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}
.ta-nw-lead__excerpt {
	display: -webkit-box;
	max-width: 38rem;
	margin: 10px 0 0;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.8);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ta-nw-headlines {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ta-nw-headline {
	position: relative;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 96px;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--ta-border);
}
.ta-nw-headline:first-child {
	padding-top: 0;
}
.ta-nw-headline:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}
.ta-nw-headline__num {
	color: rgba(77, 179, 240, 0.45);
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}
.ta-nw-headline__body time {
	color: var(--ta-muted);
	font-size: 0.75rem;
	font-weight: 600;
}
.ta-nw .ta-nw-headline__title {
	display: -webkit-box;
	margin: 4px 0 0;
	overflow: hidden;
	color: #FFFFFF;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	transition: color 0.2s ease;
}
.ta-nw .ta-nw-headline__title a {
	color: inherit;
}
.ta-nw-headline:hover .ta-nw-headline__title {
	color: #7CC8F5;
}
.ta-nw-headline__media {
	overflow: hidden;
	border-radius: 14px;
	aspect-ratio: 1;
	background: #0B1526;
}
.ta-nw-headline__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Feed + sidebar */
.ta-nw-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	gap: 56px;
	padding-top: 48px;
}
.ta-nw-body .ta-aside {
	position: sticky;
	top: calc(var(--ta-header-offset, 0px) + 24px);
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	transition: top 0.3s ease;
}
.ta-nw .ta-nw-section-title {
	margin: 0 0 8px;
	color: #FFFFFF;
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.035em;
}
.ta-nw-day + .ta-nw-day {
	margin-top: 12px;
}
.ta-nw .ta-nw-day__label {
	position: sticky;
	top: calc(var(--ta-header-offset, 0px) + 0px);
	z-index: 3;
	margin: 0;
	padding: 18px 0 10px;
	background: linear-gradient(180deg, #0B1526 70%, rgba(11, 21, 38, 0));
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: top 0.3s ease;
}
.ta-nw-day__label span {
	display: inline-flex;
	padding: 5px 12px;
	border: 1px solid var(--ta-soft-border);
	border-radius: 999px;
	background: #0F1C33;
	color: var(--ta-blue-light);
}

.ta-nw-feed {
	position: relative;
	display: flex;
	flex-direction: column;
}
.ta-nw-feed::before {
	content: "";
	position: absolute;
	top: 26px;
	bottom: 26px;
	left: 27px;
	width: 1px;
	background: var(--ta-border);
}
.ta-nw-row {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 132px;
	align-items: start;
	gap: 18px;
	padding: 16px 12px 16px 0;
	border-radius: 18px;
	transition: background-color 0.2s ease;
}
.ta-nw-row:hover {
	background: rgba(77, 179, 240, 0.05);
}
.ta-nw-row:not(:has(.ta-nw-row__media)) {
	grid-template-columns: 56px minmax(0, 1fr);
}
.ta-nw-row__time {
	position: relative;
	z-index: 1;
	justify-self: center;
	margin-top: 2px;
	padding: 4px 8px;
	border: 1px solid var(--ta-border);
	border-radius: 999px;
	background: #0B1526;
	color: #D5DDEA;
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.ta-nw-row:hover .ta-nw-row__time {
	border-color: var(--ta-blue);
	color: #FFFFFF;
}
.ta-nw-row__cat {
	color: var(--ta-blue-light);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.ta-nw .ta-nw-row__title {
	margin: 2px 0 0;
	color: #FFFFFF;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	transition: color 0.2s ease;
}
.ta-nw .ta-nw-row__title a {
	color: inherit;
}
.ta-nw-row:hover .ta-nw-row__title {
	color: #7CC8F5;
}
.ta-nw-row__excerpt {
	display: -webkit-box;
	margin: 6px 0 0;
	overflow: hidden;
	color: var(--ta-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ta-nw-row__media {
	overflow: hidden;
	border-radius: 14px;
	aspect-ratio: 4 / 3;
	background: #0B1526;
}
.ta-nw-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.ta-nw-row:hover .ta-nw-row__media img {
	transform: scale(1.05);
}

/* Pagination */
.ta-nw-pagination {
	margin-top: 40px;
}
.ta-nw-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ta-nw-pagination li {
	margin: 0;
}
.ta-nw .ta-nw-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--ta-border);
	border-radius: 14px;
	background: var(--ta-surface);
	color: #D5DDEA;
	font-size: 0.9375rem;
	font-weight: 700;
	transition: border-color 0.2s ease;
}
.ta-nw .ta-nw-pagination a.page-numbers:hover {
	border-color: var(--ta-soft-border);
	color: #FFFFFF;
}
.ta-nw .ta-nw-pagination .page-numbers.current {
	border-color: #038BDC;
	background: #038BDC;
	color: #FFFFFF;
}
.ta-nw .ta-nw-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

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

.ta-nw-shero {
	position: relative;
	isolation: isolate;
	max-width: 900px;
	padding: 28px 0 36px;
}
.ta-nw-shero__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}
.ta-nw .ta-nw-pill {
	padding: 6px 13px;
	border-radius: 999px;
	background: #038BDC;
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}
.ta-nw .ta-nw-pill:hover {
	background: #0373B8;
	color: #FFFFFF;
}
.ta-nw-shero__time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ta-muted);
	font-size: 0.875rem;
	font-weight: 600;
}
.ta-nw-shero__time svg {
	color: var(--ta-blue-light);
}
.ta-nw .ta-nw-shero__title {
	margin: 20px 0 0;
	color: var(--ta-text);
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.04em;
	text-wrap: balance;
}
.ta-nw-shero__lead {
	max-width: 44rem;
	margin: 16px 0 0;
	color: #D5DDEA;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.55;
}
.ta-nw-shero__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--ta-border);
}
.ta-nw-author {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #FFFFFF;
	font-size: 0.9375rem;
	font-weight: 700;
}
.ta-nw-author span {
	display: flex;
	flex-direction: column;
}
.ta-nw-author small {
	color: var(--ta-muted);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.ta-nw-author__avatar {
	width: 40px;
	height: 40px;
	border: 2px solid var(--ta-soft-border);
	border-radius: 50%;
}
.ta-nw-share {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ta-nw .ta-nw-share a,
.ta-nw .ta-nw-share button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	min-width: 40px;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--ta-border);
	border-radius: 12px;
	background: var(--ta-surface);
	box-shadow: none;
	color: #D5DDEA;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.ta-nw .ta-nw-share button::before {
	display: none;
}
.ta-nw .ta-nw-share a:hover,
.ta-nw .ta-nw-share button:hover {
	border-color: #038BDC;
	background: var(--ta-surface);
	color: #FFFFFF;
}
.ta-nw .ta-nw-share button.is-copied {
	border-color: #22C55E;
	color: #86EFAC;
}

.ta-nw-article {
	max-width: 780px;
}
.ta-nw-cover {
	overflow: hidden;
	margin: 0 0 36px;
	border: 1px solid var(--ta-border);
	border-radius: 24px;
}
.ta-nw-cover img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.ta-nw-cover figcaption {
	padding: 10px 16px;
	color: var(--ta-muted);
	font-size: 0.8125rem;
}
.ta-nw-content {
	color: #D5DDEA;
	font-size: 1.125rem;
	line-height: 1.8;
}
.ta-nw-content p {
	margin: 0 0 1.3em;
}
.ta-nw-content h2,
.ta-nw-content h3,
.ta-nw-content h4 {
	margin: 1.9em 0 0.6em;
	color: #FFFFFF;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
}
.ta-nw-content h2 {
	font-size: 1.75rem;
}
.ta-nw-content h3 {
	font-size: 1.375rem;
}
.ta-nw-content ul,
.ta-nw-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.3em;
}
.ta-nw-content li {
	margin-bottom: 0.5em;
}
.ta-nw-content li::marker {
	color: var(--ta-blue-light);
}
.ta-nw-content strong {
	color: #FFFFFF;
}
.ta-nw-content blockquote {
	margin: 1.6em 0;
	padding: 20px 24px;
	border: 0;
	border-left: 3px solid #038BDC;
	border-radius: 0 18px 18px 0;
	background: var(--ta-soft);
	color: #FFFFFF;
	font-style: normal;
}
.ta-nw-content img {
	height: auto;
	border-radius: 18px;
}
.ta-nw-content a {
	color: var(--ta-blue-light);
	text-decoration: underline;
	text-decoration-color: rgba(77, 179, 240, 0.4);
	text-underline-offset: 3px;
}

.ta-nw-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--ta-border);
	color: var(--ta-blue-light);
}
.ta-nw .ta-nw-tags a {
	padding: 6px 12px;
	border: 1px solid var(--ta-border);
	border-radius: 999px;
	background: var(--ta-surface);
	color: #D5DDEA;
	font-size: 0.8125rem;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.ta-nw .ta-nw-tags a:hover {
	border-color: #038BDC;
	color: #FFFFFF;
}

.ta-nw-more {
	margin-top: 56px;
}
.ta-nw-more__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}
.ta-nw .ta-nw-more__title {
	margin: 0;
	color: #FFFFFF;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}
.ta-nw .ta-nw-more__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ta-blue-light);
	font-size: 0.875rem;
	font-weight: 700;
}
.ta-nw-feed--compact .ta-nw-row {
	grid-template-columns: 56px minmax(0, 1fr) 104px;
}
.ta-nw-feed--compact .ta-nw-row__time {
	font-size: 0.6875rem;
}

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

@media (max-width: 1247.98px) {
	.ta-nw-body {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 40px;
	}
}
@media (max-width: 991.98px) {
	.ta-nw-top {
		grid-template-columns: minmax(0, 1fr);
	}
	.ta-nw-lead {
		min-height: 400px;
	}
	.ta-nw-body {
		grid-template-columns: minmax(0, 1fr);
	}
	.ta-nw-body .ta-aside {
		position: static;
	}
	.ta-nw-article {
		max-width: none;
	}
}
@media (max-width: 575.98px) {
	.ta-nw-hero {
		padding: 20px 0 24px;
	}
	.ta-nw-hero__date {
		align-items: flex-start;
		text-align: left;
	}
	.ta-nw-lead {
		min-height: 360px;
		border-radius: 22px;
	}
	.ta-nw-lead__body {
		padding: 22px;
	}
	.ta-nw-lead__excerpt {
		display: none;
	}
	.ta-nw-headline {
		grid-template-columns: 26px minmax(0, 1fr) 72px;
		gap: 12px;
	}
	.ta-nw-headline__num {
		font-size: 1.375rem;
	}
	.ta-nw-feed::before {
		left: 23px;
	}
	.ta-nw-row,
	.ta-nw-feed--compact .ta-nw-row {
		grid-template-columns: 48px minmax(0, 1fr) 84px;
		gap: 12px;
		padding-right: 0;
	}
	.ta-nw-row__excerpt {
		display: none;
	}
	.ta-nw .ta-nw-row__title {
		font-size: 1rem;
	}
	.ta-nw-shero__lead {
		font-size: 1.0625rem;
	}
	.ta-nw-share button span {
		display: none;
	}
	.ta-nw-content {
		font-size: 1.0625rem;
	}
	.ta-nw-cover {
		border-radius: 18px;
	}
}
