/* -----------------------------------------------------------------------------
   telix.pl single-article layout (golem.de-style)
   Loaded on single posts only. Width (~728px) is set by the GP Premium Layout
   Element; this file handles typography, lead image, meta, related + discussion.
-------------------------------------------------------------------------------- */

.single-post {
	--telix-accent: #ffcc00;       /* yellow — bars, markers, badges */
	--telix-accent-text: #9a7a00;  /* gold — readable accent text on white */
	--telix-accent-ink: #14181f;   /* text on yellow */
	--telix-ink: #14181f;
	--telix-muted: #6b7280;
	--telix-line: #e4e7ec;
}

/* ----- Header: kicker, title, meta ---------------------------------------- */
.single-post .telix-article-kicker {
	margin-bottom: 8px;
}
.single-post .telix-article-kicker .telix-kicker {
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--telix-accent-text);
	text-decoration: none;
}
.single-post .telix-article-kicker .telix-kicker:hover { text-decoration: underline; }

.single-post .entry-header .entry-title {
	font-size: 2.2rem;
	line-height: 1.18;
	font-weight: 800;
	letter-spacing: -.01em;
	margin: 4px 0 14px;
	color: var(--telix-ink);
}

.single-post .entry-meta {
	font-size: .85rem;
	color: var(--telix-muted);
}
.single-post .entry-meta a { color: var(--telix-muted); text-decoration: none; }
.single-post .entry-meta a:hover { color: var(--telix-accent-text); }

/* ----- Lead (featured) image ---------------------------------------------- */
.single-post .featured-image,
.single-post .post-image {
	margin: 20px 0 30px;
	max-width: 100%;
	padding: 0;
}
.single-post .featured-image img,
.single-post .post-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

/* ----- Body: comfortable reading measure ---------------------------------- */
.single-post .entry-content {
	font-size: 1.12rem;
	line-height: 1.75;
	color: #23272f;
}
.single-post .entry-content p { margin: 0 0 1.3em; }

.single-post .entry-content a {
	color: var(--telix-accent-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-post .entry-content h2 {
	font-size: 1.55rem;
	line-height: 1.25;
	font-weight: 800;
	margin: 1.8em 0 .5em;
}
.single-post .entry-content h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 1.5em 0 .4em;
}

.single-post .entry-content img { height: auto; border-radius: 4px; }
.single-post .entry-content figcaption {
	font-size: .82rem;
	color: var(--telix-muted);
	margin-top: 6px;
}

.single-post .entry-content blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--telix-accent);
	font-size: 1.18rem;
	font-style: italic;
	color: #2a2f38;
}

.single-post .entry-content ul,
.single-post .entry-content ol { margin: 0 0 1.3em 1.3em; }
.single-post .entry-content li { margin-bottom: .4em; }

/* Inline ad slots (ad-inserter) — center and space them */
.single-post .entry-content .code-block,
.single-post .entry-content .telix-ad {
	margin: 28px auto;
	text-align: center;
}

/* ----- Article foot: related + discussion --------------------------------- */
.telix-article-foot {
	margin: 40px 0 10px;
}

.telix-related__head {
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--telix-ink);
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--telix-accent);
}

.telix-related__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.telix-related__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 4px;
	overflow: hidden;
	background: #f0f1f4;
	margin-bottom: 8px;
}
.telix-related__thumb img,
.telix-related__ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.telix-related__ph { background: linear-gradient(135deg, #eceef2, #dfe3e9); }
.telix-related__thumb:hover img { transform: scale(1.05); }

.telix-related__title {
	display: block;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--telix-ink);
	text-decoration: none;
}
.telix-related__title:hover { color: var(--telix-accent-text); }

/* Discussion / comments jump link */
.telix-discuss {
	margin-top: 28px;
}
.telix-discuss__link {
	display: inline-block;
	background: var(--telix-ink);
	color: #fff;
	font-weight: 600;
	font-size: .92rem;
	padding: 11px 22px;
	border-radius: 4px;
	text-decoration: none;
	transition: background .15s ease;
}
.telix-discuss__link:hover { background: var(--telix-accent); color: var(--telix-accent-ink); }

/* ----- Right sidebar (golem-style): ad + most-read + tags ----------------- */
.telix-post-sidebar {
	position: sticky;
	top: 78px; /* clears the ~58px sticky header + breathing room */
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.telix-post-sidebar .telix-box__head {
	font-size: .95rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--telix-ink);
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--telix-accent);
}

.telix-post-sidebar .telix-mostread__list {
	margin: 0; padding: 0; list-style: none; counter-reset: telix-mr;
}
.telix-post-sidebar .telix-mostread__list li {
	counter-increment: telix-mr;
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 9px 0;
	border-bottom: 1px solid var(--telix-line);
	font-size: .92rem;
	line-height: 1.35;
}
.telix-post-sidebar .telix-mostread__list li::before {
	content: counter(telix-mr);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px; height: 24px;
	border-radius: 4px;
	background: var(--telix-accent);
	color: var(--telix-accent-ink);
	font-weight: 800;
	font-size: .85rem;
}
.telix-post-sidebar .telix-mostread__list a { color: var(--telix-ink); text-decoration: none; }
.telix-post-sidebar .telix-mostread__list a:hover { color: var(--telix-accent-text); }

.telix-post-sidebar .telix-tags { display: flex; flex-wrap: wrap; }
.telix-post-sidebar .telix-tag {
	display: inline-block;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1;
	padding: 5px 9px;
	margin: 0 5px 5px 0;
	border-radius: 3px;
	background: #f3f4f6;
	color: var(--telix-muted);
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.telix-post-sidebar .telix-tag:hover { background: var(--telix-accent); color: var(--telix-accent-ink); }

/* ----- Responsive ---------------------------------------------------------- */
@media (max-width: 768px) {
	.telix-post-sidebar { position: static; }
}

@media (max-width: 600px) {
	.single-post .entry-header .entry-title { font-size: 1.7rem; }
	.single-post .entry-content { font-size: 1.06rem; }
	.telix-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
