/*
Theme Name:        RKF – Regionalna Kronika Filmowa
Description:       Motyw Regionalnej Kroniki Filmowej (CEiIK Olsztyn) według projektu „Archiwum RKF v2”: typ wpisu „Film” z kategoriami, latami i tagami, lista filmów z filtrami, strona filmu z odtwarzaczem, przekierowania ze starych adresów kroniki.
Version:           2.0.0
Requires at least: 6.0
Requires PHP:      7.4
Author:            CEiIK Olsztyn
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       rkf
*/

/* ---------------------------------------------------------------
   Font: Work Sans (variable, weight 100–900), SIL OFL 1.1 – assets/fonts/OFL.txt
---------------------------------------------------------------- */
@font-face {
	font-family: "Work Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/work-sans-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;
}

@font-face {
	font-family: "Work Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/work-sans-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;
}

/* ---------------------------------------------------------------
   Tokens (from the design). Phones first; desktop from 1024 px.
---------------------------------------------------------------- */
:root {
	--rkf-bg: #faf9f6;
	--rkf-paper: #ffffff;
	--rkf-text: #25241f;
	--rkf-text-2: #3b3a33;
	--rkf-muted: #6b6a60;
	--rkf-meta: #75736a;       /* design: #8a887c, darkened to 4.5:1 for small text */
	--rkf-disabled: #b9b6aa;
	--rkf-line: #e4e1d8;       /* dividers */
	--rkf-edge: #d6d2c6;       /* borders of fields, chips, buttons */
	--rkf-accent: #7a5418;
	--rkf-accent-dark: #4f3610;
	--rkf-accent-soft: #efe7d6;
	--rkf-hover: #efece4;
	--rkf-stripes: repeating-linear-gradient(135deg, #e3dfd4 0 8px, #dcd7ca 8px 16px);
	--rkf-font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--rkf-max: 1280px;
}

/* ---------------------------------------------------------------
   Base
---------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--rkf-bg);
	color: var(--rkf-text);
	font-family: var(--rkf-font);
	font-size: 1rem;
	line-height: 1.5;
}

img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--rkf-accent);
	text-decoration: none;
}

a:hover {
	color: var(--rkf-accent-dark);
}

h1,
h2,
h3,
p {
	margin: 0;
}

button,
input {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--rkf-accent);
	outline-offset: 2px;
}

::selection {
	background: var(--rkf-accent-soft);
	color: var(--rkf-text);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	background: var(--rkf-text);
	color: #fff;
}

/* ---------------------------------------------------------------
   Labels and chips
---------------------------------------------------------------- */
.rkf-label {
	margin-bottom: 12px;
	color: var(--rkf-meta);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rkf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rkf-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	color: var(--rkf-text-2);
	font-size: 13px;
	line-height: 1.4;
	border: 1px solid var(--rkf-edge);
}

a.rkf-chip:hover {
	color: var(--rkf-text);
	border-color: var(--rkf-text-2);
}

.rkf-chip.is-on,
a.rkf-chip.is-on:hover {
	color: #fff;
	background: var(--rkf-accent);
	border-color: var(--rkf-accent);
}

.rkf-chip.is-disabled {
	color: var(--rkf-disabled);
	border-color: var(--rkf-line);
}

.rkf-chips--big,
.rkf-chips--film {
	gap: 8px;
}

.rkf-chips--big .rkf-chip,
.rkf-chips--film .rkf-chip {
	height: 40px;
	padding: 0 12px;
	font-size: 14px;
}

/* ---------------------------------------------------------------
   Header
---------------------------------------------------------------- */
.rkf-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--rkf-bg);
	border-bottom: 1px solid var(--rkf-line);
}

/* Logged-in users: WordPress keeps its admin bar fixed only above 600 px; below that it scrolls away with the page. */
@media (min-width: 601px) {
	.admin-bar .rkf-header {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

.rkf-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-width: var(--rkf-max);
	margin: 0 auto;
	padding: 12px 16px;
}

.rkf-logo {
	display: block;
	flex: none;
}

.rkf-logo img {
	width: auto;
	height: 44px;
}

.rkf-back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: -10px;
	color: var(--rkf-text);
	font-size: 22px;
}

.rkf-header__tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.rkf-icon-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--rkf-text);
	font: 700 20px/1 Helvetica, Arial, sans-serif;
	background: var(--rkf-paper);
	border: 1px solid var(--rkf-edge);
	cursor: pointer;
}

.rkf-icon-btn:hover,
.rkf-menu-btn[aria-expanded="true"] {
	color: #fff;
	background: var(--rkf-text);
	border-color: var(--rkf-text);
}

.rkf-menu-btn span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.rkf-menu-btn[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.rkf-menu-btn[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.rkf-menu-btn[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.no-js .rkf-menu-btn,
.single-rkf_film .rkf-menu-btn {
	display: none;
}

/* On phones the menu opens as a list under the header bar. */
.rkf-nav {
	flex: 0 0 calc(100% + 32px); /* full width: the header has 16 px padding on each side */
	order: 10;
	margin: 12px -16px -12px;
	border-top: 1px solid var(--rkf-line);
}

.js .rkf-nav:not(.is-open) {
	display: none;
}

.rkf-nav ul {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rkf-nav a {
	display: block;
	padding: 14px 16px;
	color: var(--rkf-muted);
	font-size: 16px;
	font-weight: 500;
	border-left: 3px solid transparent;
}

.rkf-nav a:hover {
	color: var(--rkf-text);
}

.rkf-nav .current-menu-item > a,
.rkf-nav a[aria-current="page"] {
	color: var(--rkf-text);
	border-left-color: var(--rkf-accent);
}

/* ---------------------------------------------------------------
   Search box
---------------------------------------------------------------- */
.rkf-search {
	display: flex;
	align-items: center;
	background: var(--rkf-paper);
	border: 1px solid var(--rkf-edge);
}

.rkf-search:focus-within {
	outline: 2px solid var(--rkf-accent);
	outline-offset: 1px;
}

.rkf-search input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	color: var(--rkf-text);
	font-size: 16px;
	background: transparent;
	border: 0;
	outline: 0;
}

.rkf-search input::placeholder {
	color: var(--rkf-meta);
}

.rkf-search button {
	height: 46px;
	padding: 0 14px;
	color: var(--rkf-accent);
	font-size: 14px;
	font-weight: 600;
	background: none;
	border: 0;
	cursor: pointer;
}

.rkf-search button:hover {
	color: var(--rkf-accent-dark);
}

.rkf-search--header {
	display: none;
}

.rkf-search--list {
	margin: 16px 16px 0;
}

/* ---------------------------------------------------------------
   Film list
---------------------------------------------------------------- */
.rkf-list {
	max-width: var(--rkf-max);
	margin: 0 auto;
}

.rkf-cat-chips {
	display: flex;
	gap: 8px;
	padding: 12px 16px;
	overflow-x: auto;
	scrollbar-width: none;
}

.rkf-cat-chips::-webkit-scrollbar {
	display: none;
}

.rkf-cat-chip {
	display: flex;
	flex: none;
	align-items: center;
	height: 40px;
	padding: 0 14px;
	color: var(--rkf-text-2);
	font-size: 14px;
	white-space: nowrap;
	background: var(--rkf-paper);
	border: 1px solid var(--rkf-edge);
}

.rkf-cat-chip:hover {
	color: var(--rkf-text);
	border-color: var(--rkf-text-2);
}

.rkf-cat-chip.is-on,
.rkf-cat-chip.is-on:hover {
	color: #fff;
	background: var(--rkf-text);
	border-color: var(--rkf-text);
}

.rkf-sidebar {
	display: none;
}

/* Without JavaScript the tag panel cannot open: show the sidebar above the results instead. */
.no-js .rkf-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 16px;
}

.rkf-cats {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rkf-cats a {
	display: block;
	margin-left: -10px;
	padding: 6px 10px;
	color: var(--rkf-text-2);
	font-size: 14px;
}

.rkf-cats a:hover {
	color: var(--rkf-text);
	background: var(--rkf-hover);
}

.rkf-cats a.is-on {
	color: var(--rkf-accent);
	font-weight: 600;
	background: var(--rkf-accent-soft);
}

.rkf-results {
	padding: 4px 16px 24px;
	scroll-margin-top: 84px; /* below the sticky header on phones */
}

/* While the next list is loading in the background. */
.rkf-results[aria-busy="true"] .rkf-grid,
.rkf-results[aria-busy="true"] .rkf-more,
.rkf-results[aria-busy="true"] .rkf-pager {
	opacity: 0.45;
	transition: opacity 0.2s;
}

.rkf-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
}

.rkf-more .rkf-more__btn {
	flex: none;
	min-width: 260px;
}

.rkf-more__btn[aria-busy="true"] {
	cursor: progress;
	opacity: 0.75;
}

.rkf-more__info {
	color: var(--rkf-meta);
	font-size: 13px;
}

.rkf-results__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
}

.rkf-results__title {
	flex: 1 1 auto;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.rkf-tags-btn {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	color: var(--rkf-text);
	font-size: 14px;
	font-weight: 500;
	background: transparent;
	border: 1px solid var(--rkf-text);
	cursor: pointer;
}

.no-js .rkf-tags-btn {
	display: none;
}

.rkf-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	color: #fff;
	font-size: 12px;
	background: var(--rkf-accent);
}

.rkf-clear {
	flex-basis: 100%;
	font-size: 14px;
}

.rkf-empty {
	padding: 24px 0;
	color: var(--rkf-meta);
	font-size: 15px;
}

/* Film cards: a row (frame + text) on phones, a column from 640 px. */
.rkf-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.rkf-card {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 12px;
	color: var(--rkf-text);
}

.rkf-card:hover {
	color: var(--rkf-text);
}

.rkf-card:hover .rkf-card__title {
	color: var(--rkf-accent);
}

.rkf-card__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--rkf-stripes);
}

.rkf-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Darkened frame with a play mark: every card reads as a video at a glance. */
.rkf-card__thumb::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(37, 36, 31, 0.22);
	transition: background-color 0.15s;
}

.rkf-card__thumb::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	/* The triangle is drawn in the circle's own 52×52 box with its centroid on the centre, so it reads as centred. */
	background: var(--rkf-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Cpath d='M20.5 16.5v19L37 26z' fill='%2325241f'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	border-radius: 50%;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
	transition: background-color 0.15s, transform 0.15s;
}

.rkf-card:hover .rkf-card__thumb::before,
.rkf-card:focus-visible .rkf-card__thumb::before {
	background-color: rgba(37, 36, 31, 0.42);
}

.rkf-card:hover .rkf-card__thumb::after,
.rkf-card:focus-visible .rkf-card__thumb::after {
	background-color: var(--rkf-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Cpath d='M20.5 16.5v19L37 26z' fill='%23ffffff'/%3E%3C/svg%3E");
	transform: scale(1.08);
}

@media (min-width: 640px) {
	.rkf-card__thumb::after {
		width: 52px;
		height: 52px;
		margin: -26px 0 0 -26px;
	}
}

.rkf-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.rkf-card__title {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-wrap: pretty;
}

.rkf-card__meta {
	color: var(--rkf-meta);
	font-size: 13px;
}

/* Pagination: previous / count / next on phones, numbered on desktop. */
.rkf-pager {
	margin-top: 24px;
}

.rkf-pager__info,
.rkf-pager__numbers {
	display: none;
}

.rkf-pager__simple {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 14px;
}

.rkf-pager__simple a,
.rkf-pager__simple .is-disabled {
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 16px;
	color: var(--rkf-text);
	border: 1px solid var(--rkf-edge);
}

.rkf-pager__simple .is-disabled {
	color: var(--rkf-disabled);
	border-color: var(--rkf-line);
}

.rkf-pager__count {
	color: var(--rkf-muted);
}

/* Tag panel on phones (a <dialog> sliding up from the bottom). */
.rkf-sheet {
	width: 100%;
	max-width: 100%;
	max-height: 75vh;
	margin: auto 0 0;
	padding: 0;
	color: var(--rkf-text);
	background: var(--rkf-bg);
	border: 0;
}

.rkf-sheet::backdrop {
	background: rgba(37, 36, 31, 0.45);
}

.rkf-sheet__inner {
	display: flex;
	flex-direction: column;
	max-height: 75vh;
}

.rkf-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-bottom: 1px solid var(--rkf-line);
}

.rkf-sheet__title {
	font-size: 18px;
	font-weight: 600;
}

.rkf-sheet__close {
	width: 44px;
	height: 44px;
	margin-right: -10px;
	color: var(--rkf-text);
	font-size: 22px;
	background: none;
	border: 0;
	cursor: pointer;
}

.rkf-sheet__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
	overflow-y: auto;
}

.rkf-sheet__foot {
	display: flex;
	gap: 8px;
	padding: 12px 16px 24px;
	border-top: 1px solid var(--rkf-line);
}

.rkf-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 12px;
	color: var(--rkf-text);
	font-size: 15px;
	background: transparent;
	border: 1px solid var(--rkf-edge);
	cursor: pointer;
}

.rkf-btn:hover {
	color: var(--rkf-text);
	border-color: var(--rkf-text-2);
}

.rkf-btn--dark {
	color: #fff;
	font-weight: 500;
	background: var(--rkf-text);
	border-color: var(--rkf-text);
}

.rkf-btn--dark:hover {
	color: #fff;
	background: var(--rkf-text-2);
	border-color: var(--rkf-text-2);
}

/* In the tag panel the two buttons share the width 1 : 2. */
.rkf-sheet__foot .rkf-btn {
	flex: 1;
}

.rkf-sheet__foot .rkf-btn--dark {
	flex: 2;
}

/* ---------------------------------------------------------------
   Film page
---------------------------------------------------------------- */
.rkf-film {
	max-width: var(--rkf-max);
	margin: 0 auto;
}

.rkf-crumbs {
	display: none;
}

.rkf-player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

/* Positioned absolutely, so neither the poster nor the video's own size can stretch the 16:9 box while it loads. */
.rkf-player video,
.rkf-player__missing {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.rkf-player video {
	object-fit: contain;
	background: #000;
}

.rkf-player__missing {
	display: grid;
	place-items: center;
	margin: 0;
	padding: 16px;
	color: var(--rkf-edge);
	text-align: center;
	background: #2a2924;
}

.rkf-film__intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 16px 0;
}

.rkf-film__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	color: var(--rkf-meta);
	font-size: 13px;
}

.rkf-film__title {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
}

.rkf-film__aside {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 16px 0;
}

.rkf-facts {
	margin: 0;
}

.rkf-facts__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	font-size: 15px;
	border-bottom: 1px solid var(--rkf-line);
}

.rkf-facts dt {
	color: var(--rkf-meta);
}

.rkf-facts dd {
	margin: 0;
	font-weight: 500;
	text-align: right;
}

.rkf-film__tags .rkf-label {
	display: none;
}

.rkf-related {
	padding: 36px 16px 32px;
}

.rkf-related__title {
	margin-bottom: 16px;
	font-size: 19px;
	font-weight: 600;
}

.rkf-related .rkf-grid {
	margin-top: 0;
}

/* ---------------------------------------------------------------
   Pages and text
---------------------------------------------------------------- */
.rkf-page {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: var(--rkf-max);
	margin: 0 auto;
	padding: 24px 16px 40px;
}

.rkf-page__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 720px;
}

.rkf-page__title {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
}

.rkf-prose {
	color: var(--rkf-text-2);
	font-size: 15px;
	line-height: 1.6;
}

.rkf-prose > * + * {
	margin-top: 1em;
}

.rkf-prose h2,
.rkf-prose h3 {
	margin-top: 1.6em;
	color: var(--rkf-text);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}

.rkf-prose a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rkf-prose ul,
.rkf-prose ol {
	padding-left: 1.2em;
}

.rkf-page__aside {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--rkf-line);
}

.rkf-page__aside .rkf-label {
	margin-bottom: 0;
}

.rkf-page__org {
	font-size: 15px;
	line-height: 1.5;
}

.rkf-page__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	margin-top: 12px;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	background: var(--rkf-text);
}

.rkf-page__cta:hover {
	color: #fff;
	background: var(--rkf-text-2);
}

/* ---------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.rkf-footer {
	border-top: 1px solid var(--rkf-line);
}

.rkf-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: var(--rkf-max);
	margin: 0 auto;
	padding: 24px 16px 32px;
}

.rkf-footer__funding {
	display: flex;
	flex-direction: column;
	gap: 16px;
	order: -1;
}

.rkf-footer__logos {
	width: 100%;
	max-width: 300px;
	height: auto;
	mix-blend-mode: multiply;
}

.rkf-footer__note {
	color: var(--rkf-meta);
	font-size: 12px;
	line-height: 1.45;
}

.rkf-footer__legal {
	display: flex;
	flex-direction: column-reverse;
	gap: 16px;
}

.rkf-footer__copy {
	color: var(--rkf-muted);
	font-size: 12px;
}

.rkf-footer__links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	font-size: 13px;
	list-style: none;
}

/* ---------------------------------------------------------------
   Tablet: two columns of films
---------------------------------------------------------------- */
@media (min-width: 640px) {
	.rkf-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.rkf-card {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.rkf-card__title {
		line-height: 1.35;
	}
}

/* ---------------------------------------------------------------
   Desktop
---------------------------------------------------------------- */
@media (min-width: 1024px) {
	.rkf-header {
		position: static;
	}

	.rkf-header__inner {
		flex-wrap: nowrap;
		gap: 48px;
		padding: 20px 48px;
	}

	.rkf-logo img {
		height: 76px;
	}

	.rkf-back,
	.rkf-menu-btn {
		display: none;
	}

	.rkf-nav,
	.js .rkf-nav:not(.is-open) {
		display: block;
		flex: 0 1 auto;
		order: 0;
		margin: 0;
		border: 0;
	}

	.rkf-nav ul {
		flex-direction: row;
		gap: 32px;
	}

	.rkf-nav a {
		padding: 0 0 4px;
		font-size: 15px;
		border-bottom: 2px solid transparent;
		border-left: 0;
	}

	.rkf-nav .current-menu-item > a,
	.rkf-nav a[aria-current="page"] {
		border-bottom-color: var(--rkf-accent);
	}

	.rkf-header__tools {
		gap: 16px;
	}

	.rkf-search--header {
		display: flex;
		width: 310px; /* the whole "Szukaj filmu, miejscowości…" hint fits */
	}

	.rkf-search--header input,
	.rkf-search--header button {
		height: 42px;
	}

	.rkf-search--header input {
		font-size: 14px;
	}

	.rkf-search--header button {
		font-size: 13px;
	}

	.rkf-icon-btn {
		width: 42px;
		height: 42px;
	}

	.rkf-search--list,
	.rkf-cat-chips,
	.rkf-tags-btn {
		display: none;
	}

	.rkf-list__layout {
		display: grid;
		grid-template-columns: 250px minmax(0, 1fr);
	}

	.rkf-sidebar,
	.no-js .rkf-sidebar {
		display: flex;
		flex-direction: column;
		gap: 36px;
		padding: 32px 32px 48px 48px;
		border-right: 1px solid var(--rkf-line);
	}

	.rkf-results {
		padding: 32px 48px 48px;
		scroll-margin-top: 16px;
	}

	.rkf-results__head {
		align-items: baseline;
		margin-bottom: 24px;
	}

	.rkf-results__title {
		font-size: 26px;
	}

	.rkf-clear {
		flex-basis: auto;
		font-size: 13px;
	}

	.rkf-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 0;
	}

	.rkf-pager {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding-top: 20px;
		border-top: 1px solid var(--rkf-line);
	}

	.rkf-pager__simple {
		display: none;
	}

	.rkf-pager__info {
		display: block;
		color: var(--rkf-muted);
		font-size: 14px;
	}

	.rkf-pager__numbers {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		font-size: 14px;
	}

	.rkf-pager__numbers .page-numbers {
		padding: 8px 13px;
		color: var(--rkf-text);
		border: 1px solid var(--rkf-edge);
	}

	.rkf-pager__numbers a.page-numbers:hover {
		border-color: var(--rkf-text);
	}

	.rkf-pager__numbers .current {
		color: #fff;
		background: var(--rkf-text);
		border-color: var(--rkf-text);
	}

	.rkf-pager__numbers .dots {
		color: var(--rkf-meta);
		border-color: transparent;
	}

	.rkf-pager__numbers .prev,
	.rkf-pager__numbers .next {
		padding: 8px 16px;
	}

	.rkf-crumbs {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		padding: 20px 48px 0;
		color: var(--rkf-meta);
		font-size: 13px;
	}

	.rkf-crumbs [aria-current] {
		color: var(--rkf-text);
	}

	.rkf-film__layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 40px;
		padding: 20px 48px 0;
	}

	.rkf-film__main {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.rkf-film__intro {
		gap: 24px;
		padding: 0;
	}

	.rkf-film__meta {
		display: none;
	}

	.rkf-film__title {
		font-size: 34px;
		line-height: 1.15;
	}

	.rkf-film__aside {
		gap: 28px;
		padding: 0;
	}

	.rkf-facts__row {
		font-size: 14px;
	}

	.rkf-film__tags .rkf-label {
		display: block;
	}

	.rkf-chips--film {
		gap: 6px;
	}

	.rkf-chips--film .rkf-chip {
		height: auto;
		padding: 4px 9px;
		font-size: 13px;
	}

	.rkf-related {
		padding: 56px 48px 48px;
	}

	.rkf-related__title {
		margin-bottom: 24px;
		font-size: 22px;
	}

	.rkf-related .rkf-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}

	.rkf-page {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 56px;
		padding: 56px 48px 72px;
	}

	.rkf-page__main {
		gap: 24px;
	}

	.rkf-page__title {
		font-size: 34px;
		line-height: 1.15;
	}

	.rkf-page__aside {
		gap: 12px;
		padding-top: 0;
		border-top: 0;
	}

	.rkf-page__cta,
	.rkf-page__cta:hover {
		display: inline;
		height: auto;
		color: var(--rkf-accent);
		font-size: 14px;
		background: none;
	}

	.rkf-page__cta:hover {
		color: var(--rkf-accent-dark);
	}

	.rkf-page__cta::after {
		content: " →";
	}

	.rkf-footer__inner {
		flex-direction: row;
		align-items: center;
		gap: 40px;
		padding: 32px 48px;
	}

	.rkf-footer__legal {
		flex-direction: column;
		gap: 6px;
	}

	.rkf-footer__links ul {
		gap: 16px;
		font-size: 12px;
	}

	.rkf-footer__funding {
		align-items: flex-end;
		gap: 8px;
		order: 0;
		margin-left: auto;
	}

	.rkf-footer__logos {
		width: auto;
		max-width: none;
		height: 44px;
	}

	.rkf-footer__note {
		max-width: 420px;
		font-size: 11px;
		line-height: 1.4;
		text-align: right;
	}
}

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