/* Trasa Kaszubska Premium – identyfikacja całego serwisu (nadpisuje zmienne i klasy motywu motyw-z-verseo).
   Paleta: siedem barw haftu kaszubskiego na lnianym tle. Fonty: Alegreya (nagłówki) + Work Sans (tekst). */

:root {
	--tk-linen: #f6f0e3;
	--tk-linen-2: #ede3cd;
	--tk-card: #fffbf3;
	--tk-ink: #16233a;
	--tk-muted: #55606f;
	--tk-line: #dccfb4;
	--tk-navy: #13294b;
	--tk-navy-2: #0d1d37;
	--tk-blue: #1f5fa8;
	--tk-sky: #6fa6d6;
	--tk-green: #2f7a3d;
	--tk-yellow: #e9a915;
	--tk-red: #c3312d;
	--tk-brown: #6b4426;
	--tk-red-text: #a9281f;
	--tk-display: 'Alegreya', Georgia, 'Times New Roman', serif;
	--tk-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tk-radius: 14px;
	--tk-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpath d='M0 10h40' stroke='%236fa6d6' stroke-width='1.5' stroke-dasharray='3 2'/%3E%3Cpath d='M10 3l5 7-5 7-5-7z' fill='%2313294b'/%3E%3Ccircle cx='10' cy='10' r='1.7' fill='%23e9a915'/%3E%3Cpath d='M30 5l4 5-4 5-4-5z' fill='%23c3312d'/%3E%3Cpath d='M20 10c0-3 2-5 4-6-1 3-2 5-4 6zM20 10c0 3-2 5-4 6 1-3 2-5 4-6z' fill='%232f7a3d'/%3E%3C/svg%3E");
}

/* Kolory przystanków: --c dekoracyjny, --ct bezpieczny dla tekstu (AA na lnie). */
.tk-c-navy { --c: #13294b; --ct: #13294b; }
.tk-c-blue { --c: #1f5fa8; --ct: #1f5fa8; }
.tk-c-sky { --c: #6fa6d6; --ct: #245f94; }
.tk-c-green { --c: #2f7a3d; --ct: #2b6f38; }
.tk-c-yellow { --c: #e9a915; --ct: #845a00; }
.tk-c-red { --c: #c3312d; --ct: #a9281f; }
.tk-c-brown { --c: #6b4426; --ct: #6b4426; }

/* Zmienne motywu motyw-z-verseo – podmienione na paletę haftu. */
:root:root {
	--color-primary: #13294b;
	--color-primary-hover: #1f5fa8;
	--color-primary-light: #6fa6d6;
	--color-primary-dark: #0d1d37;
	--color-primary-subtle: #ede3cd;
	--color-primary-muted: #b9c6dc;
	--color-accent: #a9281f;
	--color-accent-hover: #8f2019;
	--color-accent-dark: #7a1d17;
	--color-accent-subtle: #fbeceb;
	--color-bg: #f6f0e3;
	--color-bg-alt: #ede3cd;
	--color-border: #dccfb4;
	--color-border-strong: #c9b894;
	--color-text: #16233a;
	--color-text-muted: #55606f;
	--color-text-light: #7d8491;
	--color-success: #2f7a3d;
	--color-warning: #a9281f;
	--font-sans: var(--tk-body);
	--font-serif: var(--tk-display);
	--shadow-xs: 0 1px 2px rgba(19, 41, 75, .05);
	--shadow-sm: 0 2px 8px rgba(19, 41, 75, .08);
	--shadow: 0 4px 16px rgba(19, 41, 75, .10);
	--shadow-md: 0 8px 24px rgba(19, 41, 75, .12);
	--shadow-lg: 0 16px 40px rgba(19, 41, 75, .14);
}

html body {
	font-family: var(--tk-body);
	background: var(--tk-linen);
	color: var(--tk-ink);
}

h1, h2, h3, h4, h5, h6,
.post-header__title,
.page-header__title,
.archive-header h1,
.section-title,
.widget__title,
.footer-brand__name {
	font-family: var(--tk-display);
	letter-spacing: 0;
}

::selection { background: var(--tk-yellow); color: var(--tk-navy); }

:focus-visible { outline: 3px solid var(--tk-yellow); outline-offset: 2px; }

.screen-reader-text:not(:focus) {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute !important;
	white-space: nowrap;
}

/* ---------- Logo ---------- */
.tk-logo,
.site-branding a.tk-logo {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	text-decoration: none;
	color: var(--tk-ink);
}
.tk-logo:hover, .tk-logo:focus { text-decoration: none; color: var(--tk-ink); }
.site-branding .tk-logo__mark,
.tk-logo__mark { flex: none; width: 42px; height: 42px; transition: transform .35s ease; }
.tk-logo:hover .tk-logo__mark { transform: rotate(-6deg) scale(1.04); }
.tk-logo__txt { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.02; }
.tk-logo__txt b {
	font-family: var(--tk-display);
	font-weight: 800;
	font-size: 23px;
	letter-spacing: -.01em;
	color: var(--tk-navy);
	white-space: nowrap;
}
.tk-logo__txt b i { font-style: italic; font-weight: 700; color: var(--tk-red-text); }
.tk-logo__txt > span {
	margin-top: 3px;
	font-family: var(--tk-body);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tk-muted);
	white-space: nowrap;
}

/* ---------- Nagłówek ---------- */
.site-header {
	background: var(--tk-linen);
	border-bottom: 0;
	box-shadow: none;
}
.site-header::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -14px;
	height: 14px;
	background: var(--tk-band) repeat-x left center / 35px 14px;
	background-color: var(--tk-linen);
	pointer-events: none;
	z-index: 5;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(19, 41, 75, .14); }
.site-header .primary-nav a {
	color: var(--tk-ink);
	font-weight: 500;
}
.site-header .primary-nav a:hover,
.site-header .primary-nav .current-menu-item > a,
.site-header .primary-nav .current-menu-ancestor > a {
	color: var(--tk-red-text);
	text-decoration: underline;
	text-decoration-color: var(--tk-red);
	text-decoration-style: dashed;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}
.primary-nav .sub-menu {
	background: var(--tk-card);
	border-color: var(--tk-line);
}
.primary-nav .sub-menu a { text-decoration: none !important; }
.menu-toggle span { background: var(--tk-navy); }
.mobile-nav { background: var(--tk-card); border-top: 1px solid var(--tk-line); }
.mobile-nav a { color: var(--tk-ink); }
.mobile-nav a:hover { background: var(--tk-linen-2); color: var(--tk-red-text); }

/* ---------- Nagłówki podstron i archiwów ---------- */
.page-header,
.archive-header {
	background-color: var(--tk-linen-2);
	border-bottom: 0;
}
.page-header__eyebrow { color: var(--tk-red-text); letter-spacing: .14em; }
.page-header__title,
.archive-header h1 { color: var(--tk-navy); font-weight: 800; }

/* ---------- Wpisy i karty ---------- */
.post-header__title { color: var(--tk-navy); font-weight: 800; }
.post-category-tag,
.post-card__category {
	background: var(--tk-navy);
	color: #fff;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.post-category-tag:hover,
.post-card__category:hover { background: var(--tk-red); color: #fff; }
.post-card {
	background: var(--tk-card);
	border-color: var(--tk-line);
	border-radius: var(--tk-radius);
}
.post-card__title,
.post-card__title a { font-family: var(--tk-display); color: var(--tk-navy); }
.post-card__title a:hover { color: var(--tk-red-text); }

.entry-content a {
	color: var(--tk-blue);
	text-decoration-color: rgba(31, 95, 168, .35);
	text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--tk-red-text); text-decoration-color: currentColor; }
.entry-content h2,
.entry-content h3 { color: var(--tk-navy); font-weight: 800; }
.entry-content ul li::marker,
.entry-content ol li::marker { color: var(--tk-red); }
.entry-content blockquote {
	border-left-color: var(--tk-red);
	background: var(--tk-linen-2);
	font-family: var(--tk-display);
	font-style: italic;
}
.author-box { background: var(--tk-card); border-color: var(--tk-line); }
.tag-link { border-color: var(--tk-line); color: var(--tk-navy); }

/* Własne „Powiązane artykuły” są wstrzykiwane pod treścią – sekcja motywu ukryta, żeby nie było dubla. */
section.related-posts { display: none !important; }

.pagination a,
.pagination span { border-color: var(--tk-line); }
.pagination .current { background: var(--tk-navy); border-color: var(--tk-navy); color: #fff; }

.btn,
.btn--primary { border-radius: 999px; }

/* ---------- Sidebar ---------- */
.widget { background: var(--tk-card); border-color: var(--tk-line); }
.widget__title { color: var(--tk-navy); font-weight: 800; }
.widget-about {
	background: var(--tk-navy);
	background-image:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px),
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px);
}
.widget-categories a:hover,
.widget-recent-posts a:hover { color: var(--tk-red-text); }

/* ---------- Stopka ---------- */
.site-footer {
	position: relative;
	background: var(--tk-navy);
	color: #c8d3e6;
	padding-top: calc(var(--space-16, 4rem) + 16px);
}
.site-footer::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 16px;
	background: var(--tk-band) repeat-x left center / 40px 16px;
	background-color: var(--tk-linen);
}
.site-footer a { color: #e6ecf6; }
.site-footer a:hover { color: #f4c75a; }
.footer-brand__name {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	font-size: 1.6rem;
	font-weight: 800;
}
.footer-brand__name::before {
	content: '';
	flex: none;
	width: 44px;
	height: 44px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' rx='12' fill='%231f5fa8'/%3E%3Cpath d='M7 40c7-1 10-6 17-6s10 5 17 4' fill='none' stroke='%23F2B632' stroke-width='2.4' stroke-linecap='round' stroke-dasharray='3.2 3'/%3E%3Cpath d='M24 30V20' stroke='%234E9B5A' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M24 29c-5 0-8-3-9-6 4 0 7 2 9 6zM24 29c5 0 8-3 9-6-4 0-7 2-9 6z' fill='%234E9B5A'/%3E%3Cpath d='M24 22c-6-1-9-6-8-12 3 2 6 6 8 12zM24 22c6-1 9-6 8-12-3 2-6 6-8 12z' fill='%23D8423C'/%3E%3Cpath d='M24 6c3 4 4 9 0 16-4-7-3-12 0-16z' fill='%236FA6D6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.footer-brand__tagline { color: #aebbd1; }
.footer-col__title { color: #f4c75a; letter-spacing: .14em; font-family: var(--tk-body); }
.footer-col a { color: #dbe4f2; }
.footer-col:not(:has(li)) { display: none; }
.footer-grid { border-bottom-color: rgba(255, 255, 255, .14); }
.footer-bottom { color: #aebbd1; }
.footer-bottom a { color: #dbe4f2; }

@media (max-width: 480px) {
	.tk-logo__txt > span { display: none; }
	.tk-logo__txt b { font-size: 20px; }
	.site-branding .tk-logo__mark,
	.tk-logo__mark { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	.tk-logo__mark { transition: none; }
}

/* ---------- Linkowanie wewnętrzne pod wpisem ---------- */
.tk-inlinks { clear: both; margin: 48px 0 8px; font-family: var(--tk-body); }
.entry-content .tk-inlinks h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	font-family: var(--tk-display);
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--tk-navy);
}
.tk-rel__stitch {
	flex: none;
	width: 40px;
	height: 16px;
	background: var(--tk-band) no-repeat left center / 40px 16px;
}
.entry-content .tk-inlinks ul,
.entry-content .tk-inlinks ol { list-style: none; margin: 0; padding: 0; }
.entry-content .tk-inlinks li { margin: 0; padding: 0; }
.entry-content .tk-inlinks li::before { content: none; display: none; }
.entry-content .tk-inlinks a { text-decoration: none; }

.tk-rel__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.tk-rel__card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--tk-card);
	border: 1px solid var(--tk-line);
	border-radius: var(--tk-radius);
	overflow: hidden;
	color: var(--tk-ink);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tk-rel__card a:hover,
.tk-rel__card a:focus-visible {
	transform: translateY(-3px);
	border-color: var(--tk-navy);
	box-shadow: 0 16px 30px -22px rgba(19, 41, 75, .6);
}
.tk-rel__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tk-linen-2); }
.tk-rel__img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.tk-rel__ph,
.tk-card__ph {
	display: block;
	width: 100%;
	height: 100%;
	background:
		var(--tk-band) repeat left top / 40px 20px,
		var(--tk-linen-2);
	opacity: .9;
}
.tk-rel__cat {
	display: block;
	margin: 14px 16px 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tk-red-text);
}
.tk-rel__title {
	display: block;
	margin: 6px 16px 16px;
	font-family: var(--tk-display);
	font-size: 19px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--tk-navy);
}

.tk-latest {
	margin-top: 36px;
	padding: 24px 26px;
	background: var(--tk-linen-2);
	border-radius: var(--tk-radius);
	border-left: 6px solid var(--tk-navy);
}
.entry-content .tk-inlinks .tk-latest__h { font-size: 22px; margin-bottom: 12px; }
.entry-content .tk-inlinks .tk-latest__list { counter-reset: tkl; }
.entry-content .tk-inlinks .tk-latest__list li {
	counter-increment: tkl;
	display: grid;
	grid-template-columns: 30px 1fr auto;
	gap: 10px;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px dashed rgba(19, 41, 75, .25);
}
.entry-content .tk-inlinks .tk-latest__list li::before {
	content: counter(tkl, decimal-leading-zero);
	display: block;
	font-family: var(--tk-display);
	font-weight: 800;
	color: var(--tk-red-text);
}
.tk-latest__list a { color: var(--tk-navy); font-weight: 500; }
.tk-latest__list a:hover { color: var(--tk-red-text); text-decoration: underline; }
.tk-latest__list time { font-size: 13px; color: var(--tk-muted); white-space: nowrap; }
.entry-content .tk-inlinks .tk-latest__all {
	display: inline-block;
	margin-top: 14px;
	font-weight: 600;
	color: var(--tk-blue);
}

@media (max-width: 767px) {
	.tk-rel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.tk-rel__grid { grid-template-columns: 1fr; }
	.entry-content .tk-inlinks .tk-latest__list li { grid-template-columns: 26px 1fr; }
	.tk-latest__list time { grid-column: 2; }
	.tk-latest { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.tk-rel__card a { transition: none; }
}
