/* -----------------------------------------------------------------------------
   telix.pl design system — self-hosted Inter + yellow accent tokens
   Loaded site-wide (before header.css). No external font CDN (GDPR-safe).
   Inter is OFL-1.1 — see assets/fonts/LICENSE.txt.
-------------------------------------------------------------------------------- */

/* Inter variable, split by subset. latin-ext carries the Polish glyphs
   (ą ć ę ł ń ś ź ż). font-display:swap so text paints immediately. */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/InterVariable-latin.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+2074, 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('../fonts/InterVariable-latinext.woff2') format('woff2');
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
		U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----- Design tokens ------------------------------------------------------- */
:root {
	/* Brand accent. Yellow is used for non-text accents (bars, markers, buttons,
	   the dark header); dark gold is used where the accent must be readable TEXT
	   on a white background. */
	--telix-accent:       #ffcc00;
	--telix-accent-hover: #e6b800;
	--telix-accent-text:  #9a7a00; /* AA on #fff for bold/small text */
	--telix-accent-ink:   #14181f; /* text that sits ON yellow */

	--telix-ink:   #14181f;
	--telix-muted: #6b7280;
	--telix-line:  #e4e7ec;

	--telix-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ----- Base typography ----------------------------------------------------- */
body,
button,
input,
select,
textarea,
.entry-title,
h1, h2, h3, h4, h5, h6 {
	font-family: var(--telix-font);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: var(--telix-ink);
	font-feature-settings: 'cv05' 1, 'ss03' 1; /* Inter: single-storey a-ish niceties */
	letter-spacing: -0.003em;
}

h1, h2, h3, h4 {
	font-weight: 800;
	letter-spacing: -0.018em;
	line-height: 1.2;
}

/* Accent text selection + keyboard focus ring (yellow) */
::selection {
	background: var(--telix-accent);
	color: var(--telix-accent-ink);
}
:focus-visible {
	outline: 2px solid var(--telix-accent);
	outline-offset: 2px;
}

/* ----- Tag badges (shared site-wide: homepage cards, news lists, archives) -- */
.telix-tags {
	display: flex;
	flex-wrap: wrap;
	margin-top: 8px;
}
.telix-tag {
	display: inline-block;
	font-size: .7rem;
	font-weight: 600;
	line-height: 1;
	padding: 4px 8px;
	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-tag:hover {
	background: var(--telix-accent);
	color: var(--telix-accent-ink);
}

/* ----- Screen-reader-only (e.g. the accessible homepage H1) ---------------- */
.telix-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ----- Breadcrumbs (Yoast) ------------------------------------------------- */
.telix-breadcrumb {
	font-size: .82rem;
	line-height: 1.5;
	color: var(--telix-muted);
	margin: 0 0 14px;
}
.telix-breadcrumb a { color: var(--telix-muted); text-decoration: none; }
.telix-breadcrumb a:hover { color: var(--telix-accent-text); }
.telix-breadcrumb .breadcrumb_last { color: var(--telix-ink); font-weight: 600; }
