/**
 * Amber theme — base layer.
 * Stage 1: design tokens (CSS variables) + minimal reset only.
 * No layout, components, or media queries yet.
 */

:root {
	/* Brand — accent (Amber orange) */
	--amber-orange: #fd7700;       /* z logo */
	--amber-orange-alt: #df6900;   /* #fd7700 −12% (hover/active) */

	/* Brand — river blue */
	--amber-blue: #008ca8;         /* z logo (teal) */
	--amber-blue-alt: #33a3b9;     /* #008ca8 +20% jaśniejszy (gradient hero) */

	/* Surfaces */
	--color-bg: #ffffff;          /* page background */
	--color-section: #f5f5f5;     /* section background */
	--color-footer: #1e2329;      /* dark graphite (our choice) */
	--color-border: #e6e6e6;      /* light hairline border */

	/* Text */
	--color-text: #222222;
	--color-text-muted: #5a5a5a;
	--color-text-invert: #ffffff;
	--color-link: var(--amber-blue);
	--color-link-hover: var(--amber-blue);

	/* Typography */
	--font-heading: "Roboto", system-ui, -apple-system, sans-serif;
	--font-body: "Open Sans", system-ui, -apple-system, sans-serif;
	--fs-base: 1rem;     /* 16px */
	--fs-sm: 0.875rem;
	--fs-lg: 1.25rem;
	--fs-h1: 2.25rem;
	--fs-h2: 1.75rem;
	--fs-h3: 1.375rem;
	--lh-base: 1.6;
	--lh-heading: 1.25;
	--fw-normal: 400;
	--fw-bold: 700;

	/* Spacing scale */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2rem;     /* ~32px — column gap */
	--space-6: 3rem;

	/* Layout */
	--container: 1140px;
	--gap-columns: 32px;
	--radius: 6px;

	/* Breakpoints (reference values; CSS vars can't be used inside @media) */
	--bp-mobile: 768px;
	--bp-desktop: 1140px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	/* Offset so in-page anchors aren't hidden under the mobile sticky header
	   (.site-header min-height 64px). Reset to 0 on desktop (not sticky there). */
	scroll-padding-top: 64px;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	color: var(--color-text);
	background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: var(--lh-heading);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-link);
}

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

/* ==========================================================================
   Fonts (self-hosted, RODO — no Google CDN). latin + latin-ext for Polish.
   ========================================================================== */
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/roboto-400.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: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/roboto-400-ext.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: "Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/roboto-700.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: "Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/roboto-700-ext.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: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/opensans-400.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: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/opensans-400-ext.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: "Open Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/opensans-700.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: "Open Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/opensans-700-ext.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;
}

/* ==========================================================================
   Accessibility utilities
   ========================================================================== */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: var(--space-2);
	left: var(--space-2);
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: var(--space-2) var(--space-3);
	background: var(--color-bg);
	color: var(--color-link);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Layout — container + page grid
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--space-3);
}

.site-main {
	padding-block: var(--space-5);
}

.layout-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gap-columns);
}

.content-area {
	min-width: 0;
}

@media (min-width: 769px) {
	.layout-grid {
		grid-template-columns: 2fr 1fr;
	}
}

/* ==========================================================================
   Top (secondary) menu row — desktop only, small links above the header
   ========================================================================== */
.top-bar-menu {
	background: var(--color-bg);
	border-bottom: 1px solid #e6e6e6;
}

.top-bar-menu .container {
	display: flex;
	justify-content: flex-end;
}

.top-navigation .top-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
}

.top-navigation a {
	display: block;
	padding: var(--space-1) 0;
	color: var(--color-text-muted);
	text-decoration: none;
	font-size: 0.8rem;
	text-transform: uppercase;
}

.top-navigation a:hover,
.top-navigation a:focus,
.top-navigation .current-menu-item > a {
	color: var(--amber-blue);
}

@media (max-width: 1299px) {
	.top-bar-menu {
		display: none;
	}
}

/* ==========================================================================
   Site header — dark bar on mobile, white on desktop
   ========================================================================== */
.site-header {
	/* Mobile: keep the header bar pinned to the top while the page scrolls.
	   The drawer (.main-navigation) is a CHILD of this header, so this z-index
	   sets the stacking level of the whole header subtree. It must sit at/above
	   the nav overlay (z-index 50, a sibling in the root context); otherwise the
	   overlay paints over the trapped drawer and swallows menu-link clicks. */
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--color-footer);
	color: var(--color-text-invert);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 64px;
}

.site-branding {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	flex: 1;
}

.custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 48px;
}

/* Responsive logo: base = mobile -> simple variant (1468, like footer);
   desktop override below swaps to the tagline logo (1803). */
.site-logo-mobile {
	display: block;
}

.site-logo-mobile-img {
	display: block;
	width: auto;
	height: auto;
	max-height: 48px;
}

.site-branding .custom-logo-link {
	display: none;
}

/* Logo is the visual brand in all states; hide the text title (the WP Site
   Title field) visually but keep it for screen readers / SEO. Independent of
   logo markup / sibling order, so it survives DOM changes. */
.site-branding .site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	margin: -1px;
	padding: 0;
	border: 0;
}

.site-title {
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	color: var(--color-text-invert);
	text-decoration: none;
}

/* ==========================================================================
   Header controls — hamburger + search (mobile only)
   ========================================================================== */
.menu-toggle,
.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--color-text-invert);
	cursor: pointer;
}

.search-toggle__icon {
	position: relative;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.search-toggle__icon::after {
	content: "";
	position: absolute;
	right: -5px;
	bottom: -4px;
	width: 2px;
	height: 8px;
	background: currentColor;
	transform: rotate(-45deg);
}

.header-search {
	background: var(--color-footer);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.header-search .container {
	padding-block: var(--space-3);
}

.header-search form {
	display: flex;
	gap: var(--space-2);
}

.header-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: var(--space-2) var(--space-3);
}

/* ==========================================================================
   Primary navigation — off-canvas drawer on mobile
   ========================================================================== */
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before {
	position: absolute;
	top: -7px;
}

.menu-toggle__bars::after {
	position: absolute;
	top: 7px;
}

.main-navigation {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 60;
	width: min(84vw, 320px);
	background: var(--color-footer);
	color: var(--color-text-invert);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	padding-bottom: var(--space-6);
}

.main-navigation.is-open {
	transform: translateX(0);
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.drawer-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	background: none;
	border: 0;
	color: var(--color-text-invert);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.main-navigation .menu,
.main-navigation .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	display: block;
	padding: var(--space-3) var(--space-4);
	color: var(--color-text-invert);
	text-decoration: none;
	font-family: var(--font-heading);
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	color: var(--amber-blue);
}

.main-navigation .menu-item-has-children {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.main-navigation .menu-item-has-children > a {
	flex: 1;
}

.main-navigation .sub-menu {
	flex-basis: 100%;
	display: none;
	background: rgba(0, 0, 0, 0.22);
}

.main-navigation .menu-item-has-children.submenu-open > .sub-menu {
	display: block;
}

.main-navigation .sub-menu a {
	padding-left: var(--space-5);
	font-size: 0.95rem;
	text-transform: none;
	letter-spacing: normal;
}

/* Submenu toggle button (injected by nav.js) */
.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	min-height: 3rem;
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

.submenu-toggle::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.menu-item-has-children.submenu-open > .submenu-toggle::before {
	transform: rotate(-135deg);
}

/* Secondary (top) links inside the mobile drawer */
.drawer-secondary {
	margin-top: var(--space-4);
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: var(--space-3);
}

.drawer-secondary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.drawer-secondary-menu a {
	display: block;
	padding: var(--space-2) var(--space-4);
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 0.95rem;
}

.drawer-secondary-menu a:hover,
.drawer-secondary-menu a:focus {
	color: var(--amber-blue);
}

/* Backdrop behind the drawer */
.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

body.nav-open {
	overflow: hidden;
}

/* ==========================================================================
   Desktop header & navigation (>= 769px)
   ========================================================================== */
@media (min-width: 1300px) {
	.site-header {
		/* Desktop unchanged: header scrolls away as before (not sticky). */
		position: relative;
		background: var(--color-bg);
		color: var(--color-text);
		border-bottom: 1px solid #e6e6e6;
	}

	html {
		scroll-padding-top: 0;
	}

	.site-header__inner {
		justify-content: space-between;
		min-height: 96px;
	}

	.site-branding {
		flex: 0 0 auto;
		justify-content: flex-start;
	}

	.site-title {
		color: var(--color-text);
	}

	.custom-logo {
		max-height: 86px;
	}

	/* Desktop: show the tagline logo (1803), hide the mobile variant. */
	.site-branding .custom-logo-link {
		display: block;
	}

	.site-logo-mobile {
		display: none;
	}

	.menu-toggle,
	.drawer-close,
	.drawer-secondary,
	.nav-overlay {
		display: none;
	}

	/* Search stays visible on desktop: dark icon, to the right of the menu. */
	.search-toggle {
		order: 1;
		color: var(--color-text);
	}

	.header-search {
		background: var(--color-section);
		border-top: 1px solid #e6e6e6;
	}

	.main-navigation {
		position: static;
		width: auto;
		transform: none;
		background: none;
		color: inherit;
		overflow: visible;
		padding: 0;
		box-shadow: none;
		margin-left: auto;
	}

	.main-navigation .menu {
		display: flex;
		align-items: center;
	}

	.main-navigation .menu-item {
		position: relative;
	}

	.main-navigation .menu-item-has-children {
		flex-wrap: nowrap;
	}

	.main-navigation a {
		color: var(--color-text);
		font-size: 0.9rem;
		padding: var(--space-2) 0.4rem;
		letter-spacing: 0;
	}

	/* Down chevron only on items that open a dropdown (desktop). Border-trick,
	   no icon font; currentColor -> teal on hover like the link. The mobile
	   drawer uses .submenu-toggle instead, so this stays desktop-only. */
	.main-navigation .menu-item-has-children > a::after {
		content: "";
		display: inline-block;
		width: 0.4em;
		height: 0.4em;
		margin-left: 0.45em;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-0.15em) rotate(45deg);
	}

	.submenu-toggle {
		display: none;
	}

	.main-navigation .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		display: block;
		min-width: 220px;
		padding: var(--space-1) 0;
		background: var(--color-bg);
		border: 1px solid #e6e6e6;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
		opacity: 0;
		visibility: hidden;
		transform: translateY(4px);
		transition: opacity 0.15s ease, transform 0.15s ease;
	}

	.main-navigation .menu-item-has-children:hover > .sub-menu,
	.main-navigation .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.main-navigation .sub-menu a {
		padding: var(--space-2) var(--space-3);
		font-size: 0.85rem;
		white-space: nowrap;
		color: var(--color-text);
	}

	.main-navigation .sub-menu a:hover,
	.main-navigation .sub-menu a:focus {
		color: var(--amber-blue);
	}
}

/* ==========================================================================
   Sidebar — widget area
   ========================================================================== */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);          /* odstęp między widgetami */
}

.widget {
	font-size: var(--fs-base);
	line-height: var(--lh-base);
}

/* Nagłówek widgetu: UPPERCASE + niebieska kreska (jak bloki sekcji w oryginale) */
.widget-title {
	margin: 0 0 var(--space-3);
	padding-bottom: var(--space-2);
	border-bottom: 2px solid var(--amber-blue);
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--color-text);
}

/* Listy linków (Menu, Najnowsze wpisy, Kategorie, Archiwa…) */
.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	font-size: var(--fs-sm);     /* 14px (było dziedziczone 16px) */
	line-height: 1.9;            /* ~27px oddech zamiast paddingu */
	border-bottom: 1px solid #ececec;
}

.widget li:last-child {
	border-bottom: 0;
}

.widget li a {
	color: var(--color-text);
	text-decoration: none;
}

.widget li a:hover,
.widget li a:focus {
	color: var(--amber-blue);
}

/* Listy zagnieżdżone (podkategorie, podmenu) */
.widget li ul {
	margin-top: var(--space-2);
	padding-left: var(--space-3);
}

.widget li li:first-child {
	border-top: 1px solid #ececec;
	padding-top: var(--space-2);
}

/* Liczniki "(N)" przy Kategoriach / Archiwum */
.widget .post-count,
.widget .count {
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

/* Wariant dropdown (Kategorie/Archiwum jako <select>) */
.widget select {
	width: 100%;
	padding: var(--space-2);
	border: 1px solid #e6e6e6;
	border-radius: var(--radius);
	font: inherit;
}

/* Widget Tekst / HTML (Kontakt, oferty) */
.widget p {
	margin: 0 0 var(--space-3);
}

.widget p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Widget "Aktualności" — lead + małe (Amber_Recent_Aktualnosci_Widget)
   ========================================================================== */
.widget-recent__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Wyzeruj globalne .widget li (kreski/line-height z listy linków) — tu mamy
   własny układ z miniaturami, nie listę linków. */
.widget-recent__item {
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	border-bottom: 0;
}

.widget-recent__thumb {
	display: block;
}

.widget-recent__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--radius);
}

/* LEAD: duża miniatura na całą szerokość, pod nią tytuł + data */
.widget-recent__item--lead {
	margin-bottom: var(--space-4);
}

.widget-recent__item--lead .widget-recent__thumb {
	margin-bottom: var(--space-2);
}

.widget-recent__item--lead .widget-recent__image {
	aspect-ratio: 3 / 2;          /* zgodne z amber-card; zero CLS */
}

.widget-recent__item--lead .widget-recent__title {
	font-size: var(--fs-base);
}

/* MAŁE: miniatura z lewej + tytuł/data z prawej */
.widget-recent__item--small {
	display: flex;
	gap: var(--space-3);
	align-items: flex-start;
	padding: var(--space-3) 0;
	border-top: 1px solid #ececec;
}

.widget-recent__item--small .widget-recent__thumb {
	flex: 0 0 90px;
}

.widget-recent__item--small .widget-recent__image {
	width: 90px;
	aspect-ratio: 10 / 7;         /* proporcja małych miniatur z oryginału */
}

.widget-recent__body {
	min-width: 0;                 /* pozwala tytułowi zawijać w flex */
}

.widget-recent__title {
	margin: 0 0 var(--space-1);
	font-family: var(--font-heading);
	font-size: var(--fs-sm);
	line-height: var(--lh-heading);
	font-weight: var(--fw-bold);
}

.widget-recent__title a {
	color: var(--color-text);
	text-decoration: none;
}

.widget-recent__title a:hover,
.widget-recent__title a:focus {
	color: var(--amber-blue);     /* hover teal, jak reszta sidebara */
}

.widget-recent__date {
	display: block;
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
}

.widget a {
	color: var(--color-link);
	text-decoration: none;
}

.widget a:hover,
.widget a:focus {
	color: var(--amber-blue);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--color-footer);
	color: var(--color-text-invert);
	padding-block: var(--space-6) 0;
	margin-top: var(--space-6);
}

.footer-widgets {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-5);
	padding-bottom: var(--space-5);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 769px) {
	.footer-widgets {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

.site-footer .widget-title {
	font-size: var(--fs-lg);
	margin-top: 0;
}

.site-footer a {
	color: #cfe9f7;
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--amber-blue);
}

/* --- Top: centered logo, slogan, contact --- */
.footer-top {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--space-2);
	padding-top: var(--space-3);
}

.footer-logo {
	margin-bottom: var(--space-2);
}

.footer-logo-img {
	max-height: 64px;
	width: auto;
	display: block;
}

.footer-slogan {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
}

.footer-contact {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
}

.footer-contact--mail {
	margin-top: var(--space-3);
}

.footer-contact a {
	color: var(--color-text-invert);
}

.footer-contact a:hover,
.footer-contact a:focus {
	color: var(--amber-blue);
}

/* --- Bottom bar: full-bleed darker strip, copyright + menu --- */
.footer-bar {
	margin-top: var(--space-5);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.18);
}

.footer-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding-block: var(--space-3);
}

/* Keep the menu pinned right even if the bar wraps on narrower desktops. */
.footer-bar__inner .footer-navigation {
	margin-left: auto;
}

.footer-copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: var(--fs-sm);
}

.footer-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
}

.footer-menu a {
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* ==========================================================================
   Post card (blog list)
   ========================================================================== */
.post-card {
	background: var(--color-bg);
	border: 1px solid #e9e9e9;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card + .post-card {
	margin-top: var(--space-5);
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--color-section);
}

.post-card__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.post-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__category {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	padding: 0.3em 0.7em;
	background: var(--amber-orange);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
	font-size: 0.6875rem;
	font-weight: var(--fw-bold);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
}

.post-card__category:hover,
.post-card__category:focus {
	background: var(--amber-orange-alt);
	color: var(--color-text-invert);
}

.post-card__body {
	padding: var(--space-4);
}

/* Category badge when the post has no thumbnail: inline above the title. */
.post-card__body > .post-card__category {
	position: static;
	display: inline-block;
	margin-bottom: var(--space-2);
}

.post-card__title {
	margin: 0 0 var(--space-2);
	font-size: var(--fs-h3);
	line-height: var(--lh-heading);
}

.post-card__title a {
	color: var(--color-text);
	text-decoration: none;
}

.post-card__title a:hover,
.post-card__title a:focus {
	color: var(--amber-orange);
}

.post-card__meta {
	margin-bottom: var(--space-3);
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

.post-card__excerpt {
	margin-bottom: var(--space-3);
}

.post-card__excerpt p:first-child {
	margin-top: 0;
}

.post-card__excerpt p:last-child {
	margin-bottom: 0;
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	color: var(--amber-orange);
	text-decoration: none;
}

.post-card__more:hover,
.post-card__more:focus {
	color: var(--amber-orange-alt);
}

.post-card__arrow {
	transition: transform 0.15s ease;
}

.post-card__more:hover .post-card__arrow,
.post-card__more:focus .post-card__arrow {
	transform: translateX(3px);
}

/* ==========================================================================
   Single post & page (entry)
   ========================================================================== */
.entry-featured {
	margin: 0 0 var(--space-4);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-section);
}

.entry-featured__image {
	display: block;
	width: 100%;
	height: auto;
}

/* Breadcrumbs: subtle orientation/SEO path. Mobile-first — wraps, never overflows. */
.breadcrumbs {
	margin-bottom: var(--space-4);
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs__item {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Separator before every item except the first. */
.breadcrumbs__item + .breadcrumbs__item::before {
	content: "›";
	margin-right: var(--space-2);
	color: var(--color-text-muted);
}

.breadcrumbs a {
	color: var(--color-text-muted);
	text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
	color: var(--amber-blue);
	text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
	color: var(--color-text);
}

.entry-header {
	margin-bottom: var(--space-4);
}

/* Standalone category badge for single posts (decoupled from the post card). */
.entry-category {
	display: inline-block;
	margin-bottom: var(--space-3);
	padding: 0.3em 0.7em;
	background: var(--amber-orange);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
	font-size: 0.6875rem;
	font-weight: var(--fw-bold);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
}

.entry-category:hover,
.entry-category:focus {
	background: var(--amber-orange-alt);
	color: var(--color-text-invert);
}

.entry-title {
	margin: 0 0 var(--space-3);
	/* Fluid heading: scales between mobile and the --fs-h1 token. */
	font-size: clamp(1.75rem, 1.25rem + 2.4vw, var(--fs-h1));
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-3);
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

/* --- Post / page body --- */
.entry-content {
	--measure: 72ch;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: var(--space-4);
}

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

/* --- Post footer: tag pills (single.php) --- */
/* Discreet block under the content; only rendered when the post has tags.
   Mobile-first: pills wrap, comfortable tap targets, no horizontal scroll. */
.entry-footer {
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-border);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-2) var(--space-3);
}

.entry-tags__label {
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
}

.entry-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-tags__link {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem; /* ~36px comfortable tap target on mobile */
	padding: 0.35em 0.85em;
	background: var(--color-section);
	color: var(--amber-blue);
	font-size: var(--fs-sm);
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.entry-tags__link:hover,
.entry-tags__link:focus {
	background: var(--amber-blue);
	color: var(--color-text-invert);
	border-color: var(--amber-blue);
}

/* --- Post extra (single.php): tabbed carousel ("Powiązane artykuły" /
   "Więcej od autora"). Clickable tabs, one panel + 3 cards at a time, prev/next
   arrows. Enhanced by amber-post-extra.js; degrades to a plain grid without JS.
   Mobile-first card grid: 1 column, then 2, then 3. */
.post-extra {
	margin-top: var(--space-6);
	padding-top: var(--space-5);
	border-top: 1px solid var(--color-border);
}

.post-extra__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1);
	margin-bottom: var(--space-4);
	border-bottom: 2px solid var(--amber-blue);
}

.post-extra__tab {
	margin: 0;
	padding: var(--space-2) var(--space-4);
	background: var(--color-section);
	color: var(--color-text-muted);
	font-family: var(--font-heading);
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 0;
	border-radius: var(--radius) var(--radius) 0 0;
	cursor: pointer;
}

.post-extra__tab.is-active {
	background: var(--amber-blue);
	color: var(--color-text-invert);
}

.post-extra__track {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
}

@media (min-width: 560px) {
	.post-extra__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.post-extra__track {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Carousel controls: small chevron buttons, bottom-left like the old site. */
.post-extra__controls {
	display: flex;
	gap: var(--space-2);
	margin-top: var(--space-4);
}

.post-extra__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--color-section);
	color: var(--amber-blue);
	font-size: var(--fs-lg);
	line-height: 1;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.post-extra__nav:hover:not(:disabled),
.post-extra__nav:focus:not(:disabled) {
	background: var(--amber-blue);
	color: var(--color-text-invert);
	border-color: var(--amber-blue);
}

.post-extra__nav:disabled {
	opacity: 0.4;
	cursor: default;
}

/* Compact related card: lighter than the blog post card. */
.related-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover,
.related-card:focus-within {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.related-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--color-section);
}

.related-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-card__body {
	display: block;
	padding: var(--space-3);
}

.related-card__date {
	display: block;
	margin-bottom: var(--space-1);
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

.related-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2; /* clamp to 2 lines; fallback below caps height */
	line-clamp: 2;
	max-height: calc(2 * var(--lh-heading) * var(--fs-base)); /* fallback when line-clamp unsupported */
	overflow: hidden;
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	font-size: var(--fs-base);
	line-height: var(--lh-heading);
	color: var(--color-text);
}

.related-card__link:hover .related-card__title,
.related-card__link:focus .related-card__title {
	color: var(--amber-blue);
}

/* Keep flowing text to a comfortable measure; let tables/media use full width. */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > dl,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > blockquote,
.entry-content > .page-links {
	max-width: var(--measure);
}

.entry-content h2 {
	margin-top: var(--space-5);
	font-size: var(--fs-h2);
}

.entry-content h3 {
	margin-top: var(--space-5);
	font-size: var(--fs-h3);
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li + li {
	margin-top: var(--space-2);
}

/* Normalise legacy single-post typography imported from classic editor/Office.
   Scoped to single posts so booking, gallery, rental tables and pages are not affected. */
body.single .entry-content [style*="font-family"] {
	font-family: inherit !important;
}

/* Keep nested unordered lists visually consistent: black disc bullets, not hollow circles. */
body.single .entry-content ul,
body.single .entry-content ul ul {
	list-style-type: disc;
}

/* Majówka/offer posts (#1120, #1470, #1723): heavy Office/classic-editor markup —
   inconsistent inline font-size (13–32px) and colours, plus a hardcoded width:800px
   caption on #1470 that blew the mobile layout viewport out to ~816px. Scoped to these
   three posts only, so other route posts are untouched. Inline text-align left as-is. */
body.postid-1120 .entry-content [style*="font-size"],
body.postid-1470 .entry-content [style*="font-size"],
body.postid-1723 .entry-content [style*="font-size"] {
	font-size: inherit !important;
}

body.postid-1120 .entry-content [style*="color"],
body.postid-1470 .entry-content [style*="color"],
body.postid-1723 .entry-content [style*="color"] {
	color: inherit !important;
}

/* Cap legacy fixed-width captions to the container (fixes #1470 mobile blowout). */
body.postid-1120 .entry-content .wp-caption,
body.postid-1470 .entry-content .wp-caption,
body.postid-1723 .entry-content .wp-caption {
	max-width: 100%;
	width: auto !important;
	height: auto;
}

body.postid-1120 .entry-content .wp-caption img,
body.postid-1470 .entry-content .wp-caption img,
body.postid-1723 .entry-content .wp-caption img {
	max-width: 100%;
	height: auto;
}

/* --- Offer layout component (clean Majówka/oferty: program days + price list) ---
   Scoped to .offer-* classes, so it only styles rebuilt offer content. Mobile-first. */
.entry-content .offer-lead {
	font-size: var(--fs-lg);
	color: var(--color-text-muted);
}

.entry-content .offer-hero {
	margin-block: var(--space-4);
}

.entry-content .offer-hero img {
	width: 100%;
	height: auto;
}

.entry-content .offer-program {
	display: grid;
	gap: var(--space-4);
	margin-block: var(--space-5);
}

.entry-content .offer-day {
	padding: var(--space-4);
	background: var(--color-section);
	border-left: 4px solid var(--amber-blue);
	border-radius: var(--radius);
}

.entry-content .offer-day > :first-child {
	margin-top: 0;
}

.entry-content .offer-day > :last-child {
	margin-bottom: 0;
}

.entry-content .offer-day h3 {
	margin-top: 0;
	color: var(--amber-blue);
}

.entry-content .offer-section {
	margin-block: var(--space-5);
}

.entry-content .offer-price-list {
	max-width: 28rem;
	padding-left: 0;
	list-style: none;
}

.entry-content .offer-price-list li {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--color-border);
}

.entry-content .offer-note {
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

/* --- Route/trip single posts: tidy legacy parameter tables, legacy equipment
   icons and leftover inline font-size. Scoped to single posts, so pages (#311
   rental tables, booking, gallery) and the rebuilt Majówka offers (no tables/
   inline) are untouched. */
body.single-post .entry-content [style*="font-size"] {
	font-size: inherit !important;
}

/* The cell borders define the table. No border/radius on the display:block table
   box: at width:100% it stretches a grey frame wider than the (shrink-to-content)
   cells. Keep the global overflow-x:auto + teal header; just keep it to the cells. */
body.single-post .entry-content table {
	border: 0;
	border-radius: 0;
}

body.single-post .entry-content th,
body.single-post .entry-content td {
	padding: var(--space-3);
	border-color: var(--color-border);
	vertical-align: middle;
}

/* Cap any small legacy image that sits inside a table cell. */
body.single-post .entry-content td img,
body.single-post .entry-content th img {
	max-width: 96px;
	height: auto;
	border-radius: var(--radius);
	vertical-align: middle;
}

/* Legacy equipment icons (kajak/canoe/przenoska/domek/namiot) sit in the body as
   oversized, mismatched thumbnails. Cap them to a small, even size. */
body.single-post .entry-content img[src*="domek.png"],
body.single-post .entry-content img[src*="namiot.png"],
body.single-post .entry-content img[src*="kajak-1-os"],
body.single-post .entry-content img[src*="canoe-e1493374864579"],
body.single-post .entry-content img[src*="kajak-2-os"],
body.single-post .entry-content img[src*="przenoska.jpg"] {
	max-width: 96px;
	width: auto;
	height: auto;
	vertical-align: middle;
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figcaption {
	margin-top: var(--space-2);
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

.entry-content blockquote {
	margin-inline: 0;
	padding: var(--space-2) var(--space-4);
	border-left: 4px solid var(--amber-orange);
	background: var(--color-section);
	font-style: italic;
}

/* Route-parameter tables: readable, bordered, striped. */
.entry-content table {
	/* display:block + overflow-x lets a wide table scroll inside its own box
	   instead of pushing the page wider on mobile (no horizontal page blowout). */
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	margin-block: var(--space-4);
	font-size: var(--fs-sm);
}

.entry-content th,
.entry-content td {
	padding: var(--space-2) var(--space-3);
	border: 1px solid #e2e2e2;
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: var(--amber-blue);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
}

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

/* Pasted tables often lack <thead>/<th> (header is the first <td><strong> row).
   Give that first row a light header look so the table reads clearly. */
.entry-content table:not(:has(thead)) tr:first-child td {
	background: var(--color-section);
	border-bottom: 2px solid var(--amber-blue);
	font-family: var(--font-heading);
}

/* Old "message-box" callouts from imported content (kept as styling hooks).
   Subtle teal accent in the theme colour — deliberately NOT a background fill:
   these wrappers hold full paragraphs (with links) and even the route table,
   so a fill would hide the teal links and swamp the table. A single accent
   colour (--amber-blue), no second highlight colour. The leftover inline
   highlight spans (#33cccc / #008ca8) are normalised separately in step 2c. */
.entry-content .message-box-head,
.entry-content .message-box-title {
	border-left: 4px solid var(--amber-blue);
	padding-left: var(--space-3);
	margin-block: var(--space-3);
}

.entry-content .message-box-content {
	padding: var(--space-2) var(--space-3);
	background: var(--color-section);
	border-radius: var(--radius);
}

/* Kayak spec card — rebuilt from imported nested tables (744 "Kajak TEST").
   Header colour comes from the existing .entry-content thead th rule (teal),
   responsive scroll from .entry-content table — no hardcoded colours here. */
.kayak-card {
	margin-block: var(--space-5);
	padding: var(--space-4);
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.kayak-card h3 {
	margin-top: 0;
	font-size: var(--fs-h3);
}

.kayak-card__img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	margin-bottom: var(--space-3);
}

/* Spec list as label/value pairs — no horizontal scroll for the 8 params.
   auto-fit: 1 column on narrow (mobile/sidebar), 2 columns when there's room. */
.kayak-specs-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 var(--space-4);
	margin: 0;
	font-size: var(--fs-sm);
}

.kayak-specs-list > div {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-2) 0;
	border-bottom: 1px solid #ececec;
}

.kayak-specs-list dt {
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	color: var(--amber-blue);
}

.kayak-specs-list dd {
	margin: 0;
	text-align: right;
	color: var(--color-text);
}

/* ==========================================================================
   Post navigation (prev / next)
   ========================================================================== */
.post-navigation {
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid #e6e6e6;
}

.post-navigation .nav-links {
	display: grid;
	gap: var(--space-3);
}

@media (min-width: 769px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.post-navigation .nav-next {
		text-align: right;
	}
}

.post-navigation a {
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	text-decoration: none;
}

.post-navigation .nav-subtitle {
	display: block;
	margin-bottom: var(--space-1);
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-weight: var(--fw-normal);
	font-size: var(--fs-sm);
}

/* ==========================================================================
   Paginated post/page links
   ========================================================================== */
.page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-5);
	font-family: var(--font-heading);
}

.page-links a,
.page-links > span {
	display: inline-flex;
	min-width: 2.25rem;
	min-height: 2.25rem;
	align-items: center;
	justify-content: center;
	padding: 0 var(--space-2);
	border: 1px solid #e6e6e6;
	border-radius: var(--radius);
	text-decoration: none;
}

.page-links a:hover,
.page-links a:focus {
	border-color: var(--amber-orange);
	color: var(--amber-orange);
}

/* ==========================================================================
   Front-page hero (1 lead + 3 small featured posts)
   ========================================================================== */
.hero {
	margin-bottom: var(--space-5);
}

.hero__grid {
	display: grid;
	gap: 6px;
	grid-template-columns: 1fr;
}

.hero__item {
	position: relative;
	display: grid;
	overflow: hidden;
	border-radius: var(--radius);
	/* Fallback when a post has no featured image. */
	background: linear-gradient(135deg, var(--amber-blue-alt), var(--amber-orange));
	isolation: isolate;
}

/* Stack image and content in the same grid cell. */
.hero__media,
.hero__content {
	grid-area: 1 / 1;
}

.hero__media {
	position: relative;
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

/* Gradient for text legibility over the photo. */
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 75%);
}

.hero__item:hover .hero__image {
	transform: scale(1.05);
}

.hero__content {
	align-self: end;
	z-index: 1;
	padding: var(--space-4);
	color: var(--color-text-invert);
}

/* Category badge — orange pill, kept clickable above the stretched link. */
.hero__category {
	position: relative;
	z-index: 1;
	display: inline-block;
	margin-bottom: var(--space-2);
	padding: 0.3em 0.7em;
	background: var(--amber-orange);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
	font-size: 0.6875rem;
	font-weight: var(--fw-bold);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
}

.hero__category:hover,
.hero__category:focus {
	background: var(--amber-orange-alt);
	color: var(--color-text-invert);
}

.hero__title {
	margin: 0;
	font-family: var(--font-heading);
	line-height: var(--lh-heading);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero__title-link {
	color: var(--color-text-invert);
	text-decoration: none;
}

/* Stretched link makes the whole tile clickable (offset parent = .hero__item). */
.hero__title-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__title-link:hover,
.hero__title-link:focus {
	color: var(--color-text-invert);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-2);
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.85);
}

/* --- Tile sizing (match old amber.travel: wide, short tiles) --- */
.hero__item--small {
	aspect-ratio: 2 / 1; /* old: 324x160 ≈ 2:1 */
}

.hero__item--lead {
	aspect-ratio: 3 / 2; /* old big tile: 741x486 ≈ 1.52:1 (mobile full-width) */
}

/* Short tiles get tighter padding and a 2-line clamped title so it fits. */
.hero__item--small .hero__content {
	padding: var(--space-3);
}

.hero__item--small .hero__title {
	font-size: var(--fs-base);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero__item--lead .hero__title {
	font-size: clamp(1.5rem, 1rem + 2.6vw, 2.25rem);
}

/* --- Desktop: lead spans the full height of the 3 stacked small tiles --- */
@media (min-width: 769px) {
	.hero__grid {
		grid-template-columns: 2.3fr 1fr; /* old ratio 741:324 ≈ 2.29:1 */
	}

	.hero__item--lead {
		grid-column: 1;
		grid-row: 1 / span 3;
		aspect-ratio: auto; /* stretch to match the 3 small rows */
	}

	.hero__item--small {
		grid-column: 2;
	}
}

/* ==========================================================================
   Posts pagination (numbered)
   ========================================================================== */
.pagination {
	margin-top: var(--space-5);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
	font-family: var(--font-heading);
}

.pagination .page-numbers {
	display: inline-flex;
	min-width: 2.25rem;
	min-height: 2.25rem;
	align-items: center;
	justify-content: center;
	padding: 0 var(--space-2);
	border: 1px solid #e6e6e6;
	border-radius: var(--radius);
	color: var(--color-text);
	text-decoration: none;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus {
	border-color: var(--amber-orange);
	color: var(--amber-orange);
}

.pagination .page-numbers.current {
	background: var(--amber-orange);
	border-color: var(--amber-orange);
	color: var(--color-text-invert);
}

/* Ellipsis: no box. */
.pagination .page-numbers.dots {
	border-color: transparent;
}

/* ==========================================================================
   Lightbox — image overlay (amber-lightbox.js)
   ========================================================================== */
.amber-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4);
	background: rgba(0, 0, 0, 0.85);
}

.amber-lightbox[hidden] {
	display: none;
}

/* Prevent the page behind the overlay from scrolling. */
body.amber-lightbox-open {
	overflow: hidden;
}

.amber-lightbox__figure {
	margin: 0;
	max-width: 92vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.amber-lightbox__img {
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--radius);
	background: #fff;
}

.amber-lightbox__caption {
	margin-top: var(--space-2);
	max-width: 92vw;
	color: var(--color-text-invert);
	font-size: var(--fs-sm);
	text-align: center;
}

.amber-lightbox__caption[hidden] {
	display: none;
}

.amber-lightbox__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: var(--color-text-invert);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.amber-lightbox__btn:hover,
.amber-lightbox__btn:focus {
	background: var(--amber-blue);
	outline: 2px solid var(--color-text-invert);
}

.amber-lightbox__btn[hidden] {
	display: none;
}

.amber-lightbox__close {
	top: var(--space-3);
	right: var(--space-3);
}

.amber-lightbox__prev {
	left: var(--space-3);
}

.amber-lightbox__next {
	right: var(--space-3);
}

/* Show that image links in content are clickable previews. */
.entry-content a[href$=".jpg"],
.entry-content a[href$=".jpeg"],
.entry-content a[href$=".png"],
.entry-content a[href$=".webp"] {
	cursor: zoom-in;
}

@media (max-width: 768px) {
	.amber-lightbox__btn {
		width: 2.5rem;
		height: 2.5rem;
		font-size: 1.5rem;
	}
}

/* ==========================================================================
   Accommodation media — gallery grid + map CTA (scoped, mobile-first)
   Scoped to .accommodation-gallery so it never touches other galleries.
   Theme supports html5 'gallery' → WP prints no default gallery CSS, so this
   is the only styling; clean CSS Grid instead of the classic float layout.
   ========================================================================== */
.accommodation-media {
	margin-block: var(--space-5);
}

.accommodation-media > h2 {
	margin-bottom: var(--space-3);
}

/* Mobile-first: single column, full-width images, no horizontal scroll. */
.accommodation-gallery .gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3);
	margin: 0;
}

.accommodation-gallery .gallery-item {
	width: auto;
	margin: 0;
	float: none;
}

.accommodation-gallery .gallery-icon {
	margin: 0;
}

.accommodation-gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
}

/* Tablet/desktop: 2-column grid. */
@media (min-width: 640px) {
	.accommodation-gallery .gallery {
		grid-template-columns: 1fr 1fr;
	}
}

/* Map link as a button-like CTA — full width on mobile, inline on desktop. */
.map-cta {
	margin-top: var(--space-4);
}

.map-cta a {
	display: block;
	padding: var(--space-3) var(--space-4);
	background: var(--amber-blue);
	border-radius: var(--radius);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	text-align: center;
	text-decoration: none;
}

.map-cta a:hover,
.map-cta a:focus {
	background: var(--amber-blue-alt);
	color: var(--color-text-invert);
}

@media (min-width: 640px) {
	.map-cta a {
		display: inline-block;
	}
}

/* ==========================================================================
   Video facade — privacy-friendly YouTube (amber-video-facade.js)
   Static thumbnail + play button; the heavy youtube-nocookie iframe loads only
   on click. Mobile-first, 16/9, no horizontal scroll.
   ========================================================================== */
.video-facade {
	margin-block: var(--space-4);
}

.video-facade__link {
	display: block;
	text-decoration: none;
	color: var(--color-link);
}

.video-facade__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: #000;
}

.video-facade__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: var(--color-text-invert);
	font-size: 1.5rem;
}

.video-facade__link:hover .video-facade__play,
.video-facade__link:focus .video-facade__play {
	background: var(--amber-blue);
}

.video-facade__text {
	display: block;
	margin-top: var(--space-2);
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
}

/* Activated state: iframe replaces the thumbnail, same 16/9 box. */
.video-facade__embed {
	aspect-ratio: 16 / 9;
}

.video-facade__embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--radius);
}

/* Override kolorow formularza Amber Booking na palete amber.travel */
:root {
    --amber-primary: #008ca8;
    --amber-primary-dark: #006d83;
    --amber-success: #008ca8;
    --amber-secondary: #fd7700;
}

/* ==========================================================================
   404 — branded "page not found" (mobile-first)
   Hero card inside the content area; river/compass theme, no external assets.
   ========================================================================== */
.error-404 {
	margin-block: var(--space-4);
	padding: var(--space-5) var(--space-4);
	background: var(--color-section);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	text-align: center;
}

.error-404__icon {
	display: block;
	width: clamp(90px, 28vw, 120px);
	height: auto;
	margin: 0 auto var(--space-3);
	color: var(--amber-blue);
}

.error-404__needle-n {
	fill: var(--amber-orange);
}

.error-404__needle-s {
	fill: var(--amber-blue-alt);
}

.error-404__code {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(3rem, 12vw, 4.5rem);
	font-weight: var(--fw-bold);
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--amber-orange);
}

.error-404__title {
	margin: var(--space-2) 0 0;
	font-family: var(--font-heading);
	font-size: var(--fs-h2);
	line-height: var(--lh-heading);
}

.error-404__intro {
	max-width: 48ch;
	margin: var(--space-3) auto 0;
	color: var(--color-text-muted);
}

.error-404__search {
	margin-top: var(--space-4);
}

.error-404__search form {
	display: flex;
	gap: var(--space-2);
	max-width: 28rem;
	margin: 0 auto;
}

.error-404__search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.error-404__search button,
.error-404__search input[type="submit"] {
	padding: var(--space-2) var(--space-4);
	background: var(--amber-blue);
	border: 0;
	border-radius: var(--radius);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	cursor: pointer;
}

.error-404__search button:hover,
.error-404__search button:focus,
.error-404__search input[type="submit"]:hover,
.error-404__search input[type="submit"]:focus {
	background: var(--amber-blue-alt);
}

.error-404__actions {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	max-width: 28rem;
	margin: var(--space-4) auto 0;
}

.error-404__primary,
.error-404__secondary {
	display: block;
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	text-align: center;
	text-decoration: none;
}

.error-404__primary {
	background: var(--amber-orange);
	color: var(--color-text-invert);
}

.error-404__primary:hover,
.error-404__primary:focus {
	background: var(--amber-orange-alt);
	color: var(--color-text-invert);
}

.error-404__secondary {
	background: transparent;
	border: 1px solid var(--amber-blue);
	color: var(--amber-blue);
}

.error-404__secondary:hover,
.error-404__secondary:focus {
	background: var(--amber-blue);
	color: var(--color-text-invert);
}

.error-404__links {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2);
	max-width: 28rem;
	margin: var(--space-5) auto 0;
	padding: 0;
	list-style: none;
}

.error-404__links a {
	display: block;
	padding: var(--space-3);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
	font-family: var(--font-heading);
	text-decoration: none;
}

.error-404__links a:hover,
.error-404__links a:focus {
	border-color: var(--amber-blue);
	color: var(--amber-blue);
}

/* Desktop polish: a touch more breathing room and a 2-up quick-links grid. */
@media (min-width: 768px) {
	.error-404 {
		padding: var(--space-6) var(--space-5);
	}

	.error-404__actions {
		flex-direction: row;
		justify-content: center;
	}

	.error-404__primary,
	.error-404__secondary {
		flex: 0 1 auto;
		min-width: 12rem;
	}

	.error-404__links {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==========================================================================
   Search — results header + helpful empty state (mobile-first)
   Reuses the post cards for hits; styles the WP search form + popular links
   for the no-results state. Mirrors the .error-404 look with its own classes.
   ========================================================================== */
.search-header {
	margin-block: var(--space-4);
}

.search-header__query {
	color: var(--amber-orange);
}

.search-no-results {
	margin-block: var(--space-4);
}

.search-no-results__lead {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--fs-h2);
	line-height: var(--lh-heading);
}

.search-no-results__hint {
	max-width: 48ch;
	margin: var(--space-2) 0 0;
	color: var(--color-text-muted);
}

.search-no-results__form {
	margin-top: var(--space-4);
}

.search-no-results__form form {
	display: flex;
	gap: var(--space-2);
	max-width: 28rem;
}

.search-no-results__form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.search-no-results__form button,
.search-no-results__form input[type="submit"] {
	padding: var(--space-2) var(--space-4);
	background: var(--amber-blue);
	border: 0;
	border-radius: var(--radius);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	cursor: pointer;
}

.search-no-results__form button:hover,
.search-no-results__form button:focus,
.search-no-results__form input[type="submit"]:hover,
.search-no-results__form input[type="submit"]:focus {
	background: var(--amber-blue-alt);
}

.search-no-results__links {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2);
	max-width: 28rem;
	margin: var(--space-5) 0 0;
	padding: 0;
	list-style: none;
}

.search-no-results__links a {
	display: block;
	padding: var(--space-3);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
	font-family: var(--font-heading);
	text-decoration: none;
}

.search-no-results__links a:hover,
.search-no-results__links a:focus {
	border-color: var(--amber-blue);
	color: var(--amber-blue);
}

@media (min-width: 768px) {
	.search-no-results__links {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==========================================================================
   Photo gallery (/galeria/) — core gallery block with hero-style hover zoom
   Selectors scoped to .amber-gallery-grid so normal content images are
   untouched. Motion mirrors .hero__image; rounded corners use --radius
   (NOT core is-style-rounded, which renders pill/circle shapes).
   ========================================================================== */
.amber-gallery-grid.wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: 1fr; /* mobile-first: single column */
	gap: var(--space-3);
	align-items: stretch;
}

/* Core prints (inline) `figure.wp-block-image:not(#individual-image){width:calc(50% …)}`
   — an ID-level selector that otherwise wins and shrinks every tile to ~half a
   column. We match that specificity with :not(#individual-image) so each tile
   fills its grid cell. */
.amber-gallery-grid.wp-block-gallery.has-nested-images figure.wp-block-image,
.amber-gallery-grid.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: 100%;
	max-width: none;
	flex-basis: auto;
	margin: 0;
	overflow: hidden; /* clip the zoom, like .hero__item */
	border-radius: var(--radius);
}

/* Link must be a block box so the image fills the whole tile (core forces
   display:flex on it via the same ID-level selector). */
.amber-gallery-grid.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) > a,
.amber-gallery-grid figure.wp-block-image a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Override core's img height:100% (also ID-level) with an explicit aspect-ratio
   so tiles get a real, uniform height in the grid. */
.amber-gallery-grid.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img,
.amber-gallery-grid figure.wp-block-image img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.4s ease; /* same motion as .hero__image */
}

/* Subtle zoom on hover/focus — mirrors .hero__item:hover .hero__image. */
.amber-gallery-grid figure.wp-block-image:hover img,
.amber-gallery-grid figure.wp-block-image:focus-within img {
	transform: scale(1.05);
}

@media (min-width: 640px) {
	.amber-gallery-grid.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.amber-gallery-grid.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.amber-gallery-grid figure.wp-block-image img,
	.amber-gallery-grid figure.wp-block-image:hover img,
	.amber-gallery-grid figure.wp-block-image:focus-within img {
		transition: none;
		transform: none;
	}
}

/* ==========================================================================
   Kayak rental (/wypozyczalnia-kajakow/, #311) — minimal responsive fixes for
   legacy classic-editor content. No redesign: only stop tables/images from
   breaking layout. Theme globals already give img{max-width:100%} and
   .entry-content table{display:block;overflow-x:auto}; this only patches the
   things that actually break.
   ========================================================================== */

/* Defeat inline style="height:NNpx" on legacy tables — it combines with
   overflow-x:auto (→ overflow-y:auto) to collapse tables into tiny scroll boxes. */
body.page-id-311 .entry-content table {
	height: auto !important;
}

/* Let the 7-column spec sheets wrap on mobile instead of forcing each value
   onto one line: nowrap made rows ~711px wide, which blew the layout viewport
   out to ~712px on phones (no horizontal page scroll allowed). Values are short
   (e.g. "55×100 cm", "300 kg") so wrapping stays readable. On desktop there is
   room, so restore normal word-breaking to avoid needless mid-token breaks.
   Scoped to .table-data-sheet only — price/normal tables are untouched. */
body.page-id-311 .entry-content .table-data-sheet td,
body.page-id-311 .entry-content .table-data-sheet th {
	white-space: normal;
	overflow-wrap: anywhere;
}

@media (min-width: 768px) {
	body.page-id-311 .entry-content .table-data-sheet td,
	body.page-id-311 .entry-content .table-data-sheet th {
		overflow-wrap: normal;
	}
}

/* Legacy centered images that the theme doesn't style: block-center them and
   guarantee they stay within the container on mobile. */
body.page-id-311 .entry-content .aligncenter {
	display: block;
	margin-inline: auto;
	max-width: 100%;
	height: auto;
}

/* Legacy captioned images (.wp-caption, classic editor) carry inline
   style="width:600–696px"; global img{max-width:100%} caps the <img> but not the
   figure wrapper, so on mobile the figure stayed ~696px and blew the layout
   viewport out to ~712px. Cap the wrapper; let the image scale. */
body.page-id-311 .entry-content .wp-caption {
	max-width: 100%;
	width: auto !important;
	height: auto;
}

body.page-id-311 .entry-content .wp-caption img {
	max-width: 100%;
	height: auto;
}

/* Bike-rental page (313): the two imported equipment photos as a simple
   2-column thumbnail grid. Mobile-first — single column on phones, two columns
   from 520px. Links stay intact so the global lightbox (which intercepts
   .entry-content image links) still captures them. */
body.page-id-313 .entry-content .bike-rental-gallery {
	display: grid;
	gap: 1rem;
	margin-block: 1.5rem;
	/* Trim ~20px per thumbnail (~40px total) and re-centre the whole grid. */
	max-width: calc(100% - 40px);
	margin-inline: auto;
}

body.page-id-313 .entry-content .bike-rental-gallery a,
body.page-id-313 .entry-content .bike-rental-gallery img {
	display: block;
}

body.page-id-313 .entry-content .bike-rental-gallery img {
	width: 100%;
	height: auto;
}

@media (min-width: 520px) {
	body.page-id-313 .entry-content .bike-rental-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Contact page (364): the address/phone/email card is centred. Done page-scoped
   here instead of inline style on each heading. Not global — only this page. */
body.page-id-364 .entry-content h3 {
	text-align: center;
}
