/*
Theme Name: Tageskurz
Theme URI: https://tageskurz.de
Description: GeneratePress-Child-Theme für Tageskurz: Startseite mit Ressort-Blöcken, Leiste „Heute“, Beitragsseite und Archive. Schriften lokal eingebunden.
Author: Tageskurz
Template: generatepress
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tageskurz
*/

/* ==========================================================================
   1. Czcionki (pliki lokalne)
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Zmienne marki
   ========================================================================== */

:root {
	--tk-navy: #0e2a33;
	--tk-navy-2: #17434f;
	--tk-ink: #131a29;
	--tk-muted: #566073;
	--tk-line: #dfe4ec;
	--tk-bg: #f3f5f9;
	--tk-surface: #ffffff;
	--tk-accent: #f0a202;
	--tk-accent-ink: #8f5a00;

	/* Kolor bieżącego działu; domyślnie kolor marki. */
	--tk-s: var(--tk-accent);
	--tk-s-ink: var(--tk-accent-ink);

	--tk-display: "Archivo", "Arial Narrow", Arial, sans-serif;
	--tk-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--tk-radius: 10px;
	--tk-gap: 28px;
	--tk-read: 720px;

	/* Zmienne GeneratePress */
	--contrast: var(--tk-ink);
	--contrast-2: var(--tk-muted);
	--contrast-3: #b6bfcc;
	--base: var(--tk-line);
	--base-2: var(--tk-bg);
	--base-3: var(--tk-surface);
	--accent: var(--tk-navy);
}

.tk-h-s-sport      { --tk-s: #0b8a5f; --tk-s-ink: #08774f; }
.tk-h-s-tv-shows  { --tk-s: #7440e0; --tk-s-ink: #6030cc; }
.tk-h-s-lotto    { --tk-s: #d9480f; --tk-s-ink: #b23a0a; }
.tk-h-s-veranstaltungen { --tk-s: #d6336c; --tk-s-ink: #bd2a5c; }
.tk-h-s-geld  { --tk-s: #0a7ea4; --tk-s-ink: #0a6a8c; }
.tk-h-s-nachrichten { --tk-s: #2b55b5; --tk-s-ink: #23479b; }
.tk-h-s-wetter     { --tk-s: #2a86e8; --tk-s-ink: #1b66c2; }
.tk-h-s-ratgeber   { --tk-s: #6a7385; --tk-s-ink: #515a6b; }
.tk-h-s-marka      { --tk-s: var(--tk-accent); --tk-s-ink: var(--tk-accent-ink); }

/* ==========================================================================
   3. Podstawy
   ========================================================================== */

body {
	background: var(--tk-surface);
	color: var(--tk-ink);
	font-family: var(--tk-text);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tk-display);
	font-stretch: 88%;
	font-weight: 700;
	line-height: 1.15;
	color: var(--tk-ink);
	letter-spacing: -0.005em;
}

a {
	color: var(--tk-navy);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--tk-navy);
}

:focus-visible {
	outline: 3px solid var(--tk-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

img {
	height: auto;
}

.tk-h-wrap {
	box-sizing: border-box;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* Znak „głosu”: trzy słupki w kolorze działu. */
.tk-h-bars {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	width: 20px;
	height: 20px;
	flex: none;
}

.tk-h-bars i {
	display: block;
	height: 4px;
	border-radius: 2px;
	background: var(--tk-s);
}

.tk-h-bars i:nth-child(1) { width: 20px; }
.tk-h-bars i:nth-child(2) { width: 13px; }
.tk-h-bars i:nth-child(3) { width: 8px; }

/* ==========================================================================
   4. Pasek górny, nagłówek, menu
   ========================================================================== */

.tk-h-topbar {
	background: var(--tk-bg);
	color: var(--tk-muted);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.tk-h-topbar__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 8px;
}

.tk-h-topbar__date::first-letter {
	text-transform: uppercase;
}

.tk-h-topbar__slogan {
	margin-left: auto;
}

.site-header {
	background: var(--tk-surface);
}

.site-header .inside-header {
	padding: 18px 24px;
}

.tk-h-logo {
	margin: 0;
	line-height: 0;
}

.tk-h-logo a {
	display: inline-block;
}

.tk-h-logo img {
	display: block;
	width: 199px;
	height: 40px;
}

.main-navigation,
.main-navigation ul ul {
	background: var(--tk-surface);
}

.main-navigation {
	border-block: 1px solid var(--tk-line);
}

.main-navigation .inside-navigation {
	padding-inline: 12px;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
	color: var(--tk-ink);
}

.main-navigation .main-nav ul li a {
	position: relative;
	padding-inline: 12px;
	font-family: var(--tk-display);
	font-stretch: 92%;
	font-size: 0.9875rem;
	font-weight: 600;
	line-height: 52px;
}

.main-navigation .main-nav > ul > li > a::after {
	content: "";
	position: absolute;
	inset: auto 12px -1px 12px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--tk-s);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.16s ease-out;
}

.main-navigation .main-nav > ul > li:hover > a::after,
.main-navigation .main-nav > ul > li > a:focus-visible::after,
.main-navigation .main-nav > ul > li.current-menu-item > a::after,
.main-navigation .main-nav > ul > li.current-menu-parent > a::after,
.main-navigation .main-nav > ul > li.current-category-ancestor > a::after {
	transform: scaleX(1);
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .menu-bar-item:hover > a,
.main-navigation .menu-bar-item.sfHover > a,
.main-navigation .menu-toggle:hover,
.main-navigation .menu-toggle:focus {
	color: var(--tk-ink);
	background: transparent;
}

.main-navigation .menu-bar-item > a {
	line-height: 52px;
}

.navigation-search input[type="search"],
.navigation-search input[type="search"]:active,
.navigation-search input[type="search"]:focus {
	background: var(--tk-surface);
	color: var(--tk-ink);
	font-family: var(--tk-text);
	font-size: 1rem;
	border-bottom: 3px solid var(--tk-accent);
}

/* ==========================================================================
   5. Pasek „Dziś” (strona główna)
   ========================================================================== */

.tk-h-today {
	background: var(--tk-navy);
	color: #fff;
}

.tk-h-today__in {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: stretch;
	gap: 0;
}

.tk-h-today__date {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 32px 20px 0;
}

.tk-h-today__day {
	font-family: var(--tk-display);
	font-stretch: 80%;
	font-weight: 800;
	font-size: 3.5rem;
	line-height: 0.9;
	letter-spacing: -0.02em;
	color: #fff;
}

.tk-h-today__rest {
	display: flex;
	flex-direction: column;
	font-size: 0.875rem;
	line-height: 1.35;
	color: #b9c6de;
}

.tk-h-today__rest strong {
	font-family: var(--tk-display);
	font-stretch: 92%;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #fff;
}

.tk-h-today__rest strong::first-letter {
	text-transform: uppercase;
}

.tk-h-today__cells {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tk-h-today__cell {
	display: flex;
	min-width: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.tk-h-today__cell > a,
.tk-h-today__cell:not(:has(> a)) {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	width: 100%;
	padding: 18px 22px;
	color: #fff;
	text-decoration: none;
}

.tk-h-today__cell > a:hover,
.tk-h-today__cell > a:focus-visible {
	background: var(--tk-navy-2);
	color: #fff;
}

.tk-h-today__label {
	font-size: 0.8125rem;
	line-height: 1.3;
	color: #9fb0cf;
}

.tk-h-today__value {
	font-family: var(--tk-display);
	font-stretch: 88%;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.15;
}

.tk-h-today__cell--text .tk-h-today__value {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
}

.tk-h-today__note {
	font-size: 0.8125rem;
	line-height: 1.3;
	color: #b9c6de;
}

/* ==========================================================================
   6. Układ treści
   ========================================================================== */

.one-container .site-content {
	padding: 36px 24px 56px;
}

.site-main > * + * {
	margin-top: 0;
}

.tk-h-block,
.tk-h-top,
.tk-h-duo,
.tk-h-quad {
	margin-bottom: 52px;
}

.tk-h-duo .tk-h-block,
.tk-h-quad .tk-h-block {
	margin-bottom: 0;
}

/* Nagłówek bloku */
.tk-h-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--tk-ink);
}

.tk-h-head__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.1;
}

.tk-h-head__title a {
	color: inherit;
	text-decoration: none;
}

.tk-h-head__title a:hover,
.tk-h-head__title a:focus-visible {
	color: var(--tk-s-ink);
}

.tk-h-head__more {
	margin-left: auto;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tk-s-ink);
	text-decoration: none;
}

.tk-h-head__more:hover,
.tk-h-head__more:focus-visible {
	color: var(--tk-s-ink);
	text-decoration: underline;
}

/* Siatki */
.tk-h-grid {
	display: grid;
	gap: var(--tk-gap);
}

.tk-h-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tk-h-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tk-h-top {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: 36px;
}

.tk-h-top__side {
	display: flex;
	flex-direction: column;
}

.tk-h-sport {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 36px;
}

.tk-h-sport--3 {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.8fr);
}

.tk-h-duo {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 44px;
}

.tk-h-quad {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--tk-gap);
}

.tk-h-quad--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-h-quad--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-h-quad--1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }

/* ==========================================================================
   7. Karty wpisów
   ========================================================================== */

.tk-h-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}

.tk-h-thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--tk-radius);
	background: var(--tk-bg);
}

.tk-h-thumb__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tk-h-thumb__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: color-mix(in srgb, var(--tk-s) 12%, #fff);
}

.tk-h-thumb__empty .tk-h-bars {
	transform: scale(2.4);
	opacity: 0.55;
}

.tk-h-card__body {
	min-width: 0;
}

.tk-h-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-bottom: 6px;
	font-size: 0.8125rem;
	line-height: 1.3;
	color: var(--tk-muted);
}

.tk-h-chip {
	font-weight: 700;
	color: var(--tk-s-ink);
	text-decoration: none;
}

a.tk-h-chip:hover,
a.tk-h-chip:focus-visible {
	color: var(--tk-s-ink);
	text-decoration: underline;
}

.tk-h-card__title {
	margin: 0;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.tk-h-card__title a {
	color: var(--tk-ink);
	text-decoration: none;
}

.tk-h-card__title a:hover,
.tk-h-card__title a:focus-visible {
	color: var(--tk-ink);
	text-decoration: underline;
	text-decoration-color: var(--tk-s);
	text-decoration-thickness: 2px;
}

/* Duża */
.tk-h-card--lead .tk-h-thumb {
	margin-bottom: 18px;
}

.tk-h-card--lead .tk-h-card__title {
	font-size: clamp(1.75rem, 1.1rem + 2vw, 2.625rem);
	font-weight: 800;
	font-stretch: 84%;
	line-height: 1.06;
	letter-spacing: -0.012em;
}

.tk-h-card--lead .tk-h-card__meta {
	margin-bottom: 10px;
	font-size: 0.875rem;
}

.tk-h-card__lead {
	max-width: 62ch;
	margin: 12px 0 0;
	font-size: 1.0625rem;
	color: #333c4d;
}

/* Z obrazkiem nad tytułem */
.tk-h-card--card .tk-h-thumb {
	margin-bottom: 12px;
}

/* Mały obrazek obok */
.tk-h-card--row {
	flex-direction: row;
	align-items: flex-start;
	gap: 14px;
	padding-block: 16px;
	border-top: 1px solid var(--tk-line);
}

.tk-h-card--row:first-child {
	padding-top: 0;
	border-top: 0;
}

.tk-h-card--row:last-child {
	padding-bottom: 0;
}

.tk-h-card--row .tk-h-thumb {
	flex: none;
	width: 124px;
	aspect-ratio: 3 / 2;
	border-radius: 8px;
}

.tk-h-card--row .tk-h-card__title {
	font-size: 1.0625rem;
	line-height: 1.22;
}

.tk-h-card--row .tk-h-thumb__empty .tk-h-bars {
	transform: scale(1.5);
}

/* Sam tytuł */
.tk-h-lines {
	margin-top: 16px;
}

.tk-h-card--line {
	padding-block: 12px;
	border-top: 1px solid var(--tk-line);
}

.tk-h-card--line .tk-h-card__meta {
	margin-bottom: 3px;
}

.tk-h-card--line .tk-h-card__title {
	font-size: 1rem;
	font-weight: 600;
	font-stretch: 92%;
	line-height: 1.28;
}

.tk-h-latest .tk-h-lines {
	margin-top: 0;
}

.tk-h-lines--2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 44px;
}

.tk-h-latest .tk-h-head {
	margin-bottom: 4px;
}

.tk-h-latest .tk-h-card--line:nth-child(-n+2) {
	border-top: 0;
}

/* Pierwszy materiał w kolumnach „Wydarzenia” i „Pieniądze”: obraz obok tytułu */
.tk-h-duo__first .tk-h-card--card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 18px;
}

.tk-h-duo__first .tk-h-card--card .tk-h-thumb {
	margin-bottom: 0;
	aspect-ratio: 3 / 2;
}

.tk-h-duo__first .tk-h-card__title,
.tk-h-sport__main .tk-h-card__title {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.12;
}

/* Tytuły w kolumnach bocznych nieco mniejsze */
.tk-h-quad .tk-h-card--card .tk-h-card__title {
	font-size: 1.0625rem;
}

.tk-h-quad .tk-h-head__title {
	font-size: 1.25rem;
}

/* Pusty stan */
.tk-h-empty {
	max-width: 560px;
	margin: 48px auto 64px;
	text-align: center;
}

.tk-h-empty .tk-h-bars {
	transform: scale(1.6);
	margin-bottom: 18px;
}

.tk-h-empty h2 {
	margin: 0 0 8px;
	font-size: 1.625rem;
}

.tk-h-empty p {
	margin: 0 0 20px;
	color: var(--tk-muted);
}

/* ==========================================================================
   8. Archiwa
   ========================================================================== */

.tk-h-archive {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 14px;
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--tk-ink);
}

.tk-h-archive > .tk-h-bars {
	transform: scale(1.5);
	transform-origin: left center;
	margin-right: 6px;
}

.tk-h-archive__title {
	margin: 0;
	font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
	font-weight: 800;
	font-stretch: 84%;
	line-height: 1.02;
}

.tk-h-archive__desc,
.tk-h-subs {
	grid-column: 1 / -1;
}

.tk-h-archive__desc {
	max-width: 70ch;
	margin-top: 14px;
	color: #333c4d;
}

.tk-h-archive__desc p {
	margin: 0;
}

.tk-h-subs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.tk-h-subs a {
	padding: 7px 14px;
	border: 1px solid var(--tk-line);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tk-ink);
	text-decoration: none;
}

.tk-h-subs a:hover,
.tk-h-subs a:focus-visible {
	border-color: var(--tk-s);
	color: var(--tk-s-ink);
}

.tk-h-subs a[aria-current="page"] {
	border-color: var(--tk-s-ink);
	background: var(--tk-s-ink);
	color: #fff;
}

.tk-h-archive__list {
	row-gap: 40px;
}

.tk-h-archive__first {
	grid-column: 1 / -1;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--tk-line);
}

.tk-h-archive__first .tk-h-card--lead {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: center;
	gap: 32px;
}

.tk-h-archive__first .tk-h-card--lead .tk-h-thumb {
	margin-bottom: 0;
}

.tk-h-pages {
	margin-top: 48px;
}

.tk-h-pages .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.tk-h-pages .page-numbers {
	min-width: 44px;
	padding: 10px 14px;
	border: 1px solid var(--tk-line);
	border-radius: 8px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	color: var(--tk-ink);
	text-decoration: none;
}

.tk-h-pages a.page-numbers:hover,
.tk-h-pages a.page-numbers:focus-visible {
	border-color: var(--tk-ink);
}

.tk-h-pages .page-numbers.current {
	border-color: var(--tk-ink);
	background: var(--tk-ink);
	color: #fff;
}

.tk-h-pages .page-numbers.dots {
	border-color: transparent;
}

/* ==========================================================================
   9. Strona wpisu
   ========================================================================== */

.single-post .inside-article > *,
.page .inside-article > * {
	max-width: var(--tk-read);
	margin-inline: auto;
}

.single-post .inside-article > .tk-h-hero,
.single-post .entry-content > .tk-h-related,
.single-post .inside-article > .tk-h-related {
	max-width: 960px;
}

.tk-h-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin-bottom: 16px;
	font-size: 0.875rem;
	line-height: 1.3;
	color: var(--tk-muted);
}

.tk-h-crumbs a {
	color: var(--tk-muted);
	text-decoration: none;
}

.tk-h-crumbs a:hover,
.tk-h-crumbs a:focus-visible {
	color: var(--tk-ink);
	text-decoration: underline;
}

.tk-h-crumbs a:last-of-type {
	font-weight: 700;
	color: var(--tk-s-ink);
}

.single-post .entry-header {
	margin-bottom: 24px;
}

.single-post .entry-title,
.page .entry-title {
	margin: 0;
	font-size: clamp(1.875rem, 1.2rem + 2.6vw, 2.875rem);
	font-weight: 800;
	font-stretch: 84%;
	line-height: 1.05;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

.tk-h-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	margin-top: 16px;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--tk-muted);
}

.tk-h-meta__author {
	font-weight: 700;
	color: var(--tk-ink);
	text-decoration: none;
}

.tk-h-meta__author:hover,
.tk-h-meta__author:focus-visible {
	text-decoration: underline;
}

.tk-h-meta__updated {
	padding-left: 14px;
	border-left: 1px solid var(--tk-line);
}

.tk-h-hero {
	margin-block: 0 28px;
}

.tk-h-hero img {
	display: block;
	width: 100%;
	border-radius: var(--tk-radius);
}

.tk-h-hero figcaption {
	margin-top: 8px;
	font-size: 0.8125rem;
	color: var(--tk-muted);
}

.entry-content {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.entry-content > * + * {
	margin-top: 1.15em;
	margin-bottom: 0;
}

.entry-content > p:first-of-type {
	font-size: 1.1875rem;
	line-height: 1.6;
	color: #1f2737;
}

.entry-content h2 {
	margin-top: 1.9em;
	font-size: 1.625rem;
	font-weight: 800;
}

.entry-content h3 {
	margin-top: 1.6em;
	font-size: 1.3125rem;
}

.entry-content a {
	color: var(--tk-navy);
	text-decoration: underline;
	text-decoration-color: var(--tk-s);
	text-decoration-thickness: 2px;
}

.entry-content a:hover,
.entry-content a:focus-visible {
	background: color-mix(in srgb, var(--tk-s) 14%, #fff);
}

.entry-content ul,
.entry-content ol {
	margin-left: 1.3em;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content li::marker {
	color: var(--tk-s-ink);
	font-weight: 700;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--tk-s);
	font-size: 1.125rem;
	font-style: normal;
	color: #1f2737;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: 0.875rem;
	font-style: normal;
	color: var(--tk-muted);
}

.entry-content figure img,
.entry-content > img {
	border-radius: var(--tk-radius);
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: 0.8125rem;
	color: var(--tk-muted);
	text-align: left;
}

/* Tabele: czytelne i przewijane w poziomie na telefonie */
.entry-content table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.entry-content th,
.entry-content td {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--tk-line);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	border-bottom: 2px solid var(--tk-ink);
	font-family: var(--tk-display);
	font-stretch: 92%;
	font-weight: 700;
	white-space: nowrap;
}

.entry-content tbody tr:nth-child(even) {
	background: var(--tk-bg);
}

/* Kasten „Kurz gesagt“: <div class="tk-kurz">…</div> na początku tekstu */
.entry-content .tk-kurz {
	padding: 18px 22px 20px;
	border-radius: var(--tk-radius);
	background: color-mix(in srgb, var(--tk-s) 9%, #fff);
	font-size: 1rem;
	line-height: 1.55;
}

.entry-content .tk-kurz::before {
	content: "Kurz gesagt";
	display: block;
	margin-bottom: 8px;
	font-family: var(--tk-display);
	font-stretch: 88%;
	font-size: 1.0625rem;
	font-weight: 800;
	color: var(--tk-s-ink);
}

.entry-content .tk-kurz ul {
	margin: 0 0 0 1.1em;
}

.entry-content .tk-kurz > :last-child {
	margin-bottom: 0;
}

/* Pod treścią */
.tk-h-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block: 36px 0;
	padding: 0;
	list-style: none;
}

.tk-h-tags a {
	display: block;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--tk-bg);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--tk-ink);
	text-decoration: none;
}

.tk-h-tags a:hover,
.tk-h-tags a:focus-visible {
	background: var(--tk-line);
}

.tk-h-series {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 32px;
}

.tk-h-series__link {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--tk-line);
	border-radius: var(--tk-radius);
	font-family: var(--tk-display);
	font-stretch: 92%;
	font-weight: 600;
	line-height: 1.25;
	color: var(--tk-ink);
	text-decoration: none;
}

.tk-h-series__link span {
	display: block;
	margin-bottom: 4px;
	font-family: var(--tk-text);
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--tk-muted);
}

.tk-h-series__link--next {
	grid-column: 2;
	text-align: right;
}

.tk-h-series__link:hover,
.tk-h-series__link:focus-visible {
	border-color: var(--tk-s);
	color: var(--tk-ink);
}

.tk-h-author {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--tk-line);
}

.tk-h-author__img {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--tk-s) 14%, #fff);
	font-family: var(--tk-display);
	font-stretch: 88%;
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--tk-s-ink);
}

.tk-h-author p {
	margin: 0;
}

.tk-h-author__name a {
	font-family: var(--tk-display);
	font-stretch: 92%;
	font-weight: 700;
	color: var(--tk-ink);
	text-decoration: none;
}

.tk-h-author__name a:hover,
.tk-h-author__name a:focus-visible {
	text-decoration: underline;
}

.tk-h-author__bio {
	margin-top: 2px;
	font-size: 0.9375rem;
	color: var(--tk-muted);
}

.tk-h-related {
	margin-top: 56px;
}

/* Strony redakcji */
.page .entry-header {
	margin-bottom: 28px;
}

/* ==========================================================================
   10. Reklamy — miejsce rezerwujemy tylko, gdy obszar ma zawartość
   ========================================================================== */

.tk-h-ad {
	display: flex;
	justify-content: center;
	min-height: 100px;
	margin: 0 auto 40px;
	max-width: 1240px;
	padding-inline: 24px;
	text-align: center;
}

.site-header ~ .tk-h-ad {
	margin-block: 16px 0;
}

/* ==========================================================================
   11. Stopka
   ========================================================================== */

.tk-h-footer {
	text-align: left;
	background: var(--tk-navy);
	color: #c9d4e8;
	font-size: 0.9375rem;
}

.tk-h-footer a {
	color: #fff;
	text-decoration: none;
}

.tk-h-footer a:hover,
.tk-h-footer a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.tk-h-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(150px, 1fr));
	gap: 40px;
	padding-block: 52px 40px;
}

.tk-h-footer__brand img {
	display: block;
	width: 199px;
	height: 40px;
}

.tk-h-footer__brand p {
	max-width: 36ch;
	margin: 16px 0 0;
}

.tk-h-footer__title {
	margin: 0 0 12px;
	font-family: var(--tk-display);
	font-stretch: 92%;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.tk-h-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tk-h-footer__col li + li {
	margin-top: 8px;
}

.tk-h-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 18px 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.8125rem;
	color: #9fb0cf;
}

.generate-back-to-top,
.generate-back-to-top:visited {
	border-radius: 8px;
	background: var(--tk-navy);
}

/* Formularze i przyciski */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background) {
	border-radius: 8px;
	background: var(--tk-navy);
	font-family: var(--tk-display);
	font-stretch: 92%;
	font-weight: 600;
}

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
a.button:focus {
	background: var(--tk-navy-2);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
	border-color: var(--tk-line);
	border-radius: 8px;
	background: var(--tk-surface);
}

/* ==========================================================================
   12. Mniejsze ekrany
   ========================================================================== */

@media (max-width: 1024px) {
	.tk-h-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tk-h-quad,
	.tk-h-quad--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
	.tk-h-sport--3 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.tk-h-sport__aside { grid-column: 1 / -1; }
	.tk-h-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tk-h-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
	body { font-size: 16px; }

	.tk-h-wrap,
	.tk-h-ad { padding-inline: 16px; }

	.one-container .site-content { padding: 24px 16px 44px; }

	.site-header .inside-header { padding: 12px 16px; }

	.tk-h-logo img { width: 164px; height: 34px; }

	.tk-h-topbar__slogan { display: none; }

	.main-navigation .main-nav > ul > li > a::after { display: none; }

	.main-navigation .main-nav ul li a {
		line-height: 46px;
		border-top: 1px solid var(--tk-line);
	}

	.main-navigation .main-nav > ul > li > a {
		border-left: 4px solid var(--tk-s);
	}

	.tk-h-today__in { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }

	.tk-h-today__date { padding: 14px 16px 12px; }

	.tk-h-today__day { font-size: 2.5rem; }

	.tk-h-today__cells {
		grid-auto-columns: 74%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
	}

	.tk-h-today__cells::-webkit-scrollbar { display: none; }

	.tk-h-today__cell { scroll-snap-align: start; }

	.tk-h-today__cell:first-child { border-left: 0; }

	.tk-h-today__cell > a,
	.tk-h-today__cell:not(:has(> a)) { padding: 14px 16px; }

	.tk-h-block,
	.tk-h-top,
	.tk-h-duo,
	.tk-h-quad { margin-bottom: 40px; }

	.tk-h-top,
	.tk-h-sport,
	.tk-h-sport--3,
	.tk-h-duo { grid-template-columns: minmax(0, 1fr); gap: 24px; }

	.tk-h-duo { gap: 40px; }

	.tk-h-grid--3 { grid-template-columns: minmax(0, 1fr); }

	.tk-h-archive__first .tk-h-card--lead { grid-template-columns: minmax(0, 1fr); gap: 16px; }

	.tk-h-lines--2 { grid-template-columns: minmax(0, 1fr); }

	.tk-h-latest .tk-h-card--line:nth-child(2) { border-top: 1px solid var(--tk-line); }

	.tk-h-duo__first .tk-h-card__title,
	.tk-h-sport__main .tk-h-card__title { font-size: 1.25rem; }

	.tk-h-head__title { font-size: 1.375rem; }

	.tk-h-card--row .tk-h-thumb { width: 108px; }

	.tk-h-series { grid-template-columns: minmax(0, 1fr); }

	.entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.entry-content th,
	.entry-content td { white-space: nowrap; }

	.tk-h-series__link--next { grid-column: auto; text-align: left; }

	.tk-h-meta__updated { padding-left: 0; border-left: 0; flex-basis: 100%; }

	.tk-h-footer__grid { gap: 32px 24px; padding-block: 40px 28px; }
}

@media (max-width: 480px) {
	.tk-h-grid--4,
	.tk-h-quad,
	.tk-h-quad--3,
	.tk-h-quad--2 { grid-template-columns: minmax(0, 1fr); }

	/* Na telefonie karty w siatkach stają się zwartymi wierszami. */
	.tk-h-grid--4 .tk-h-card--card,
	.tk-h-quad .tk-h-card--card { flex-direction: row; gap: 14px; }

	.tk-h-grid--4 .tk-h-card--card .tk-h-thumb,
	.tk-h-quad .tk-h-card--card .tk-h-thumb {
		flex: none;
		width: 108px;
		aspect-ratio: 3 / 2;
		margin-bottom: 0;
		border-radius: 8px;
	}

	.tk-h-grid--4 { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.tk-h-topbar,
	.main-navigation,
	.tk-h-today,
	.tk-h-ad,
	.tk-h-related,
	.tk-h-series,
	.tk-h-footer { display: none; }
}
