/* -----------------------------------------------------------------------------
   telix.pl front-page magazine layout (golem.de-style)
   Loaded only on the front page by inc/front-page.php.
-------------------------------------------------------------------------------- */

.telix-frontpage {
	--telix-accent: #ffcc00;       /* yellow — bars, markers, badges */
	--telix-accent-text: #9a7a00;  /* gold — readable accent text on white */
	--telix-ink: #14181f;
	--telix-muted: #6b7280;
	--telix-line: #e4e7ec;
	max-width: 1250px;
	margin: 0 auto;
	padding: 28px 20px 56px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 44px;
	align-items: start;
}

.telix-frontpage a { text-decoration: none; color: inherit; }

/* min-width:0 lets the grid columns actually shrink (prevents content forcing
   the layout wider than the viewport on mobile/tablet). */
.telix-fp-main { min-width: 0; }

/* ----- Section headings (thin rule + yellow accent tab) ------------------- */
.telix-section__head,
.telix-box__head {
	font-size: 1.05rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--telix-ink);
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--telix-line);
	position: relative;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.telix-section__head::after,
.telix-box__head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 44px;
	height: 2px;
	background: var(--telix-accent);
}

.telix-section { margin-bottom: 48px; }

.telix-section__more {
	font-size: .78rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--telix-accent-text);
	white-space: nowrap;
}
.telix-section__more:hover { text-decoration: underline; }

/* ----- Kicker (category label) -------------------------------------------- */
.telix-kicker {
	display: inline-block;
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--telix-accent-text);
	margin-bottom: 6px;
}
.telix-kicker:hover { color: var(--telix-ink); }
/* small yellow accent flag — only on the featured cards */
.telix-card__body .telix-kicker::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 7px;
	vertical-align: 1px;
	border-radius: 2px;
	background: var(--telix-accent);
}

/* ----- Featured slider ----------------------------------------------------- */
.telix-slider { position: relative; }
.telix-slider__viewport {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
/* White rounded hover lift on the whole slider (matches the cards/news list). */
.telix-slider:hover .telix-slider__viewport {
	background: #fff;
	box-shadow: 0 14px 34px rgba(20, 24, 31, .14);
}
.telix-slider__track {
	display: flex;
	transition: transform .5s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}
.telix-slider__slide { flex: 0 0 100%; min-width: 0; }

/* The hero card fills each slide (reset the list-card hover offsets). */
.telix-slider .telix-card { margin: 0; padding: 16px; border-radius: 0; }
.telix-slider .telix-card:hover { background: transparent; box-shadow: none; transform: none; }
.telix-slider .telix-card:hover .telix-card__image img { transform: none; }
.telix-slider .telix-card__image:hover img { transform: scale(1.04); }

/* Prev / next arrows (inside the viewport, centered on the hero). */
.telix-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(20, 24, 31, .55);
	color: #fff;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.telix-slider__arrow:hover { background: var(--telix-accent); color: var(--telix-accent-ink, #14181f); }
.telix-slider__arrow--prev { left: 12px; }
.telix-slider__arrow--next { right: 12px; }

/* Dot indicators (active = yellow pill). */
.telix-slider__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}
.telix-slider__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--telix-line);
	cursor: pointer;
	transition: width .25s ease, background .2s ease, border-radius .25s ease;
}
.telix-slider__dot:hover { background: var(--telix-muted); }
.telix-slider__dot.is-active { width: 26px; border-radius: 5px; background: var(--telix-accent); }

/* ----- Teaser cards (slider hero) ----------------------------------------- */
/* White rounded hover card that lifts (matches the Newsy list). */
.telix-card {
	padding: 12px;
	margin: 0 -12px;
	border-radius: 14px;
	transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.telix-card:hover {
	background: #fff;
	box-shadow: 0 14px 32px rgba(20, 24, 31, .13);
}

.telix-card__image {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 16 / 9;
	background: #f0f1f4;
}
.telix-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.telix-card:hover .telix-card__image img { transform: scale(1.05); }

.telix-card__body { padding-top: 12px; }

.telix-card__title {
	font-size: 1.08rem;
	line-height: 1.32;
	font-weight: 700;
	letter-spacing: -.01em;
	margin: 0;
	color: var(--telix-ink);
}
.telix-card__title a:hover { color: var(--telix-accent-text); }

.telix-card__excerpt {
	margin: 8px 0 0;
	font-size: .92rem;
	line-height: 1.55;
	color: var(--telix-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Lead story — full-width magazine hero (image + text side by side) */
.telix-card--lead {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 30px;
	align-items: center;
	margin-bottom: 6px;
}
.telix-card--lead .telix-card__image { aspect-ratio: 3 / 2; }
.telix-card--lead .telix-card__body { padding-top: 0; }
.telix-card--lead .telix-card__title { font-size: 1.9rem; line-height: 1.16; letter-spacing: -.02em; }
.telix-card--lead .telix-card__excerpt { font-size: 1rem; line-height: 1.6; margin-top: 12px; -webkit-line-clamp: 4; }

/* ----- Newsy date separators ---------------------------------------------- */
.telix-newsy__date {
	font-size: .8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--telix-ink);
	margin: 28px 0 4px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--telix-line);
}
.telix-newsy__date:first-child { margin-top: 0; }

/* ----- Right rail ---------------------------------------------------------- */
.telix-fp-rail { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }

.telix-box__head { font-size: .95rem; }

.telix-mostread__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: telix-mr;
}
.telix-mostread__list li {
	counter-increment: telix-mr;
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 11px 12px;
	margin: 0 -12px;          /* hover card bleeds into the gutter; content stays aligned */
	border-radius: 10px;
	border-bottom: 1px solid var(--telix-line);
	font-size: .92rem;
	line-height: 1.4;
	transition: background .15s ease, box-shadow .15s ease;
}
.telix-mostread__list li:last-child { border-bottom: 0; }
.telix-mostread__list li:hover {
	background: #fff;
	border-bottom-color: transparent;
	box-shadow: 0 8px 22px rgba(20, 24, 31, .12);
}
.telix-mostread__list li::before {
	content: counter(telix-mr);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: var(--telix-accent);
	color: var(--telix-accent-ink, #14181f);
	font-weight: 800;
	font-size: .9rem;
}
.telix-mostread__list a { transition: color .15s ease; }
.telix-mostread__list a:hover { color: var(--telix-accent-text); }

/* ----- Rail "Polecamy" — compact teasers with a small thumbnail ----------- */
.telix-railnews { list-style: none; margin: 0; padding: 0; }
.telix-railnews__item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 11px 12px;
	margin: 0 -12px;          /* hover card bleeds into the gutter; content stays aligned */
	border-radius: 10px;
	border-bottom: 1px solid var(--telix-line);
	transition: background .15s ease, box-shadow .15s ease;
}
.telix-railnews__item:last-child { border-bottom: 0; }
.telix-railnews__item:hover {
	background: #fff;
	border-bottom-color: transparent;
	box-shadow: 0 8px 22px rgba(20, 24, 31, .12);
}
.telix-railnews__media {
	display: block;
	width: 92px;
	aspect-ratio: 16 / 10;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f1f4;
}
.telix-railnews__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.telix-railnews__item:hover .telix-railnews__media img { transform: scale(1.05); }
.telix-railnews__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #eceef2, #dfe3e9);
}
.telix-railnews__body { min-width: 0; }
.telix-railnews__body .telix-kicker { display: block; width: fit-content; color: var(--telix-muted); line-height: 1; margin-bottom: 5px; }
.telix-railnews__title {
	font-size: .92rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.01em;
	margin: 0;
}
.telix-railnews__title a { color: var(--telix-ink); }
.telix-railnews__title a:hover { color: var(--telix-accent-text); }

/* Tag badges (.telix-tag / .telix-tags) are styled site-wide in base.css. */

/* ----- Newsy teaser rows (image on the right) ----------------------------- */
.telix-news { list-style: none; margin: 0; padding: 0; }

.telix-news__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 22px;
	align-items: start;
	padding: 16px;
	margin: 0 -16px;          /* card extends into the gutter; content stays aligned */
	border-radius: 12px;
	border-bottom: 1px solid var(--telix-line);
	transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.telix-news__item:hover {
	background: #fff;
	border-bottom-color: transparent;
	box-shadow: 0 14px 30px rgba(20, 24, 31, .12);
}
.telix-news__body { min-width: 0; padding-top: 2px; }

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

.telix-news__title {
	font-size: 1.18rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
	margin: 5px 0 9px;
}
.telix-news__title a { color: var(--telix-ink); text-decoration: none; }
.telix-news__title a:hover { color: var(--telix-accent-text); }

.telix-news__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	font-size: .8rem;
	color: var(--telix-muted);
}
.telix-news__meta > *:not(:last-child)::after {
	content: "·";
	margin: 0 10px;
	color: var(--telix-muted);
	opacity: .55;
}
.telix-news__meta a { color: var(--telix-muted); text-decoration: none; }
.telix-news__meta a:hover { color: var(--telix-accent-text); }
.telix-news__time {
	font-weight: 700;
	color: var(--telix-ink);
	font-variant-numeric: tabular-nums;
}
.telix-news__comments::before {
	content: "";
	display: inline-block;
	width: 13px; height: 13px;
	margin-right: 5px;
	vertical-align: -2px;
	background: currentColor;
	-webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12H7l-3 3V4z'/%3E%3C/svg%3E");
	mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12H7l-3 3V4z'/%3E%3C/svg%3E");
}
.telix-news__excerpt {
	margin: 10px 0 0;
	font-size: .92rem;
	line-height: 1.55;
	color: var(--telix-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ----- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
	.telix-frontpage { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.telix-fp-rail { position: static; }
}

@media (max-width: 600px) {
	.telix-card--lead { grid-template-columns: 1fr; gap: 14px; }
	.telix-card--lead .telix-card__image { aspect-ratio: 16 / 9; }
	.telix-card--lead .telix-card__title { font-size: 1.4rem; }
	.telix-slider__arrow { display: none; } /* swipe + dots on mobile */
	.telix-news__item { grid-template-columns: minmax(0, 1fr) 120px; gap: 14px; }
	.telix-news__media { width: 120px; }
}
