/*
 * Strony bez makiet, strona grupy, blog, wyszukiwarka, 404 (właściciel: A5).
 * Ładowany po styles.css (desktop) / mobile.css (mobile), bez ograniczenia media.
 * Kolory makiety: #1c1958 (granat), #35a9ff (niebieski), #68b001 (zielony), tekst #4e4e4e.
 */

/* ==========================================================================
   Kontenery
   ========================================================================== */

/* Poniżej 1240 px makieta nie daje .wrapper odstępów bocznych – dodajemy je dla widoków A5. */
@media (max-width: 1239px) {
	.wrapper.agpl-wrap {
		box-sizing: border-box;
		padding-left: 20px;
		padding-right: 20px;
	}
}

.agpl-page {
	padding-bottom: 60px;
}

/* ==========================================================================
   Nagłówek strony (H1)
   ========================================================================== */

.agpl-page-head {
	padding: 50px 0 30px;
}

.agpl-page-title {
	color: #1c1958;
	display: inline-block;
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 2.75rem;
	padding-bottom: 14px;
	position: relative;
}

.agpl-page-title::after {
	background-color: #35a9ff;
	bottom: 0;
	content: " ";
	display: block;
	height: 3px;
	left: 0;
	position: absolute;
	width: 80px;
}

.agpl-page-meta {
	color: #8a8a8a;
	font-size: 0.875rem;
	line-height: 1.5rem;
	margin-top: 12px;
}

.agpl-page-intro {
	font-size: 1.0625rem;
	line-height: 1.75rem;
	margin-top: 16px;
	max-width: 760px;
}

.agpl-page-intro p + p {
	margin-top: 10px;
}

.agpl-page-thumb {
	margin-bottom: 30px;
}

.agpl-page-thumb img {
	display: block;
	height: auto;
	max-width: 100%;
}

@media (max-width: 1024px) {
	.agpl-page-head {
		padding: 30px 0 20px;
	}

	.agpl-page-title {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}
}

/* ==========================================================================
   Treść strony (.agpl-content) – typografia
   ========================================================================== */

.agpl-content {
	font-size: 1rem;
	line-height: 1.75rem;
	overflow-wrap: break-word;
}

.agpl-content::after {
	clear: both;
	content: "";
	display: table;
}

/* Zagnieżdżony .wrapper w treści (HTML z produkcji) – bez dodatkowych marginesów. */
.agpl-content .wrapper {
	margin: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.agpl-content p,
.agpl-content ul,
.agpl-content ol,
.agpl-content table,
.agpl-content figure,
.agpl-content blockquote,
.agpl-content pre {
	margin-bottom: 20px;
}

.agpl-content p:empty,
.agpl-content h2:empty,
.agpl-content h3:empty {
	display: none;
}

.agpl-content h2,
.agpl-content h3,
.agpl-content h4 {
	color: #1c1958;
	font-weight: 600;
	margin-bottom: 15px;
	padding-top: 10px;
}

.agpl-content h2 {
	font-size: 1.75rem;
	line-height: 2.25rem;
}

.agpl-content h3 {
	font-size: 1.375rem;
	line-height: 1.875rem;
}

.agpl-content h4 {
	font-size: 1.125rem;
	line-height: 1.625rem;
}

.agpl-content * + h2,
.agpl-content * + h3 {
	margin-top: 20px;
}

.agpl-content strong,
.agpl-content b {
	font-weight: 700;
}

.agpl-content em,
.agpl-content i {
	font-style: italic;
}

.agpl-content a {
	color: #35a9ff;
	text-decoration: underline;
}

.agpl-content a:hover {
	color: #1c1958;
}

.agpl-content ul > li {
	padding-left: 22px;
	position: relative;
}

.agpl-content ul > li::before {
	background-color: #35a9ff;
	content: " ";
	display: block;
	height: 6px;
	left: 4px;
	position: absolute;
	top: 0.8rem;
	width: 6px;
}

.agpl-content ol {
	list-style: decimal;
	padding-left: 24px;
}

.agpl-content ol > li {
	padding-left: 6px;
}

.agpl-content li + li {
	margin-top: 4px;
}

.agpl-content li > ul,
.agpl-content li > ol {
	margin: 6px 0 0;
}

.agpl-content blockquote {
	border-left: 3px solid #35a9ff;
	color: #1c1958;
	font-style: italic;
	padding: 4px 0 4px 20px;
}

.agpl-content hr {
	border: 0;
	border-top: 1px solid #e0e7f0;
	margin: 30px 0;
}

/* Tabele */
.agpl-content table {
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.375rem;
	width: 100%;
}

.agpl-content th,
.agpl-content td {
	border: 1px solid #d5dde8;
	padding: 8px 10px;
	text-align: left;
	vertical-align: middle;
}

.agpl-content th,
.agpl-content thead td {
	background-color: #1c1958;
	color: #fff;
	font-weight: 600;
}

.agpl-content tbody tr:nth-of-type(2n) td {
	background-color: #f3f6fa;
}

.agpl-content .wp-block-table {
	overflow-x: auto;
}

.agpl-content .wp-block-table table {
	margin-bottom: 0;
}

/* Obrazki i wyrównanie */
.agpl-content img {
	height: auto;
	max-width: 100%;
}

.agpl-content .alignleft {
	float: left;
	margin: 6px 30px 20px 0;
}

.agpl-content .alignright {
	float: right;
	margin: 6px 0 20px 30px;
}

.agpl-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.agpl-content figure.aligncenter,
.agpl-content .wp-block-image.aligncenter {
	display: table;
}

.agpl-content .wp-caption,
.agpl-content .wp-block-image {
	max-width: 100%;
}

.agpl-content .wp-block-image img {
	display: block;
}

.agpl-content .wp-caption-text,
.agpl-content figcaption,
.agpl-content .wp-element-caption {
	color: #6b6b6b;
	font-size: 0.875rem;
	font-style: italic;
	line-height: 1.375rem;
	padding: 8px 4px 0;
	text-align: center;
}

.agpl-content .wp-block-gallery {
	margin-bottom: 20px;
}

.agpl-content .wp-block-gallery figure,
.agpl-content .wp-block-gallery li {
	margin-bottom: 0;
	padding-left: 0;
}

.agpl-content .wp-block-gallery li::before {
	display: none;
}

.agpl-content .has-text-align-center {
	text-align: center;
}

.agpl-content .has-text-align-right {
	text-align: right;
}

/* Osadzenia (YouTube itp.) */
.agpl-content iframe,
.agpl-content video {
	max-width: 100%;
}

.agpl-content .wp-block-embed {
	margin-bottom: 20px;
}

/* Podział wpisu na strony (wp_link_pages) */
.agpl-page-links {
	clear: both;
	font-weight: 600;
	padding-top: 20px;
}

.agpl-page-links a,
.agpl-page-links > span {
	display: inline-block;
	margin-left: 8px;
}

@media (max-width: 768px) {
	.agpl-content table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}

	.agpl-content .alignleft,
	.agpl-content .alignright {
		float: none;
		margin: 0 0 20px;
	}

	.agpl-content h2 {
		font-size: 1.5rem;
		line-height: 2rem;
	}

	.agpl-content h3 {
		font-size: 1.25rem;
		line-height: 1.75rem;
	}
}

/* ==========================================================================
   Formularze Contact Form 7 w treści (Kontakt i inne strony)
   ========================================================================== */

.agpl-content input[type="text"],
.agpl-content input[type="email"],
.agpl-content input[type="tel"],
.agpl-content input[type="number"],
.agpl-content input[type="url"],
.agpl-content select,
.agpl-content textarea {
	background-color: #fff;
	border: 1px solid #c9d3e0;
	border-radius: 0;
	box-sizing: border-box;
	color: #4e4e4e;
	font: inherit;
	line-height: 1.5rem;
	max-width: 100%;
	padding: 10px 12px;
	width: 100%;
}

.agpl-content textarea {
	min-height: 140px;
}

.agpl-content input:focus,
.agpl-content select:focus,
.agpl-content textarea:focus {
	border-color: #35a9ff;
}

.agpl-content input[type="submit"],
.agpl-content button[type="submit"] {
	background-color: #68b001;
	border: 0;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 10px 30px;
	transition: background-color 100ms ease-in-out;
}

.agpl-content input[type="submit"]:hover,
.agpl-content button[type="submit"]:hover {
	background-color: #1c1958;
}

.agpl-content .wpcf7-list-item {
	margin: 0 1em 0 0;
}

.agpl-content .wpcf7-acceptance,
.agpl-content .wpcf7-acceptance label {
	font-size: 0.875rem;
	line-height: 1.375rem;
}

.agpl-content .wpcf7-not-valid-tip {
	color: #d62828;
	font-size: 0.875rem;
}

.agpl-content .wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 10px 15px;
}

/* ==========================================================================
   Stary HTML z produkcji w treści
   ========================================================================== */

/* O nas, Serwis: zdjęcie z etykietą + tekst w dwóch kolumnach */
.agpl-content .page-box-misja {
	align-items: start;
	display: grid;
	gap: 60px;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	margin-bottom: 40px;
}

.agpl-content .page-box-misja .image-box {
	position: relative;
}

.agpl-content .page-box-misja .image-box img {
	display: block;
	width: 100%;
}

.agpl-content .page-box-misja .image-box span {
	background-color: #1c1958;
	bottom: 0;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 600;
	left: 0;
	line-height: 1.75rem;
	padding: 10px 15px;
	position: absolute;
	z-index: 1;
}

.agpl-content .page-box-misja .content-box > :first-child {
	margin-top: 0;
	padding-top: 0;
}

.agpl-content .page-box-misja .content-box strong {
	color: #1c1958;
}

/* Oferta, Silosy: kafelki ze zdjęciem i podpisem */
.agpl-content .page-box-oferta {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 10px 0 40px;
}

.agpl-content .page-box-oferta .item {
	background-color: #1c1958;
	overflow: hidden;
	position: relative;
}

.agpl-content .page-box-oferta .item a {
	display: block;
	text-decoration: none;
}

.agpl-content .page-box-oferta .item img {
	display: block;
	transition: opacity 320ms ease-in-out;
	width: 100%;
}

.agpl-content .page-box-oferta .item span {
	background-color: rgba(28, 25, 88, 0.92);
	bottom: 12px;
	color: #fff;
	display: block;
	font-size: 1.125rem;
	font-weight: 600;
	left: 0;
	line-height: 1.5rem;
	padding: 10px;
	position: absolute;
	right: 0;
	text-align: center;
	transition: padding 120ms ease-in-out;
	z-index: 1;
}

.agpl-content .page-box-oferta .item a:hover img {
	opacity: 0.6;
}

.agpl-content .page-box-oferta .item a:hover span {
	padding: 18px 10px;
}

/* Dealerzy: siatka kart */
.agpl-content .page-box-dealerzy {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 30px;
}

.agpl-content .page-box-dealerzy .item {
	border: 3px solid #e0e7f0;
	font-size: 0.9375rem;
	line-height: 1.625rem;
	padding: 20px 22px;
	transition: border-color 100ms ease-in-out;
}

.agpl-content .page-box-dealerzy .item:hover {
	border-color: #1c1958;
}

.agpl-content .page-box-dealerzy .item h2 {
	font-size: 1.25rem;
	line-height: 1.75rem;
	margin: 0 0 10px;
	padding-top: 0;
}

.agpl-content .page-box-dealerzy .item p {
	margin-bottom: 0;
}

/* Realizacje: galeria miniatur (linki z obrazkami, po wpautop w jednym akapicie) */
.agpl-realizacje p:has(> a > img) {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	margin-bottom: 40px;
}

.agpl-realizacje p > a:has(> img),
.agpl-realizacje > a:has(> img) {
	display: block;
	overflow: hidden;
}

.agpl-realizacje p > a > img,
.agpl-realizacje > a > img {
	aspect-ratio: 1 / 1;
	display: block;
	object-fit: cover;
	transition: transform 200ms ease-in-out;
	width: 100%;
}

.agpl-realizacje p > a:hover > img,
.agpl-realizacje > a:hover > img {
	transform: scale(1.05);
}

/* Kontakt: dane firmy na całą szerokość, działy i formularz w dwóch kolumnach */
.agpl-contact,
.contact-page {
	display: grid;
	gap: 0 8%;
	grid-template-columns: minmax(0, 46%) minmax(0, 46%);
}

.agpl-contact > *,
.contact-page > * {
	grid-column: 1 / -1;
}

.agpl-contact > .contact-page-left {
	grid-column: 1 / 2;
}

.agpl-contact > .contact-page-right {
	grid-column: 2 / 3;
}

.agpl-contact::after,
.contact-page::after {
	display: none;
}

.contact-page-info {
	color: #1c1958;
	margin-bottom: 40px;
}

.agpl-content .contact-page-info h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 15px;
	padding-top: 0;
}

.agpl-content .contact-page-info ul,
.agpl-content .contact-page-left ul {
	margin-bottom: 0;
}

.agpl-content .contact-page-info ul > li,
.agpl-content .contact-page-left ul > li {
	display: inline-block;
	margin: 0 30px 6px 0;
	padding-left: 0;
}

.agpl-content .contact-page-info ul > li::before,
.agpl-content .contact-page-left ul > li::before {
	display: none;
}

/* Ikony w liście danych mają w treści klasę aligncenter – wyświetlamy je w linii. */
.agpl-content .contact-page-info li img,
.agpl-content .contact-page-left li img {
	display: inline-block;
	margin: 0 8px 0 0;
	max-height: 16px;
	max-width: 16px;
	position: relative;
	top: -1px;
	vertical-align: middle;
	width: auto;
}

.contact-page-left > div {
	border-bottom: 1px solid #e0e7f0;
	color: #1c1958;
	margin-bottom: 30px;
	padding-bottom: 25px;
}

.agpl-content .contact-page-left > div h3 {
	font-size: 1.125rem;
	line-height: 1.625rem;
	margin: 0 0 8px;
	padding-top: 0;
}

.contact-page-right {
	padding-top: 10px;
}

@media (max-width: 1024px) {
	.agpl-content .page-box-misja {
		gap: 30px;
		grid-template-columns: minmax(0, 1fr);
	}

	.agpl-content .page-box-misja .image-box {
		max-width: 420px;
	}

	.agpl-content .page-box-oferta,
	.agpl-content .page-box-dealerzy {
		gap: 20px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.agpl-contact,
	.contact-page {
		display: block;
	}

	.contact-page-right {
		padding-top: 0;
	}
}

@media (max-width: 600px) {
	.agpl-content .page-box-oferta,
	.agpl-content .page-box-dealerzy {
		grid-template-columns: minmax(0, 1fr);
	}

	.agpl-realizacje p:has(> a > img) {
		gap: 8px;
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	}
}

/* ==========================================================================
   Strona grupy produktów (makiety/grupa.html)
   ========================================================================== */

.group-hero {
	background-color: #1c1958;
	color: #fff;
	padding: 60px 0 70px;
}

.group-hero-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.group-hero h1 {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 3rem;
}

.group-hero-intro {
	font-size: 1.0625rem;
	line-height: 1.7rem;
	max-width: 760px;
}

.group-hero-intro p + p {
	margin-top: 10px;
}

.group-hero-intro a {
	color: #fff;
	text-decoration: underline;
}

.group-body {
	padding-bottom: 20px;
}

.group-grid {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: -40px 0 60px;
	position: relative;
}

/* Bez kafelków treść nie wchodzi na granatowy pas. */
.group-body > .group-content:first-child {
	margin-top: 40px;
}

.group-tile {
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	display: flex;
	padding: 20px;
	transition: box-shadow 80ms ease-in-out;
}

.group-tile:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.group-tile-thumb {
	flex: 0 0 110px;
	text-align: center;
}

.group-tile-thumb img {
	display: block;
	height: 110px;
	object-fit: contain;
	width: 110px;
}

.group-tile-info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	font-size: 0.9375rem;
	line-height: 1.5rem;
	min-width: 0;
	padding: 10px 0 0 15px;
}

.group-tile-name a {
	color: #000;
	display: block;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.5rem;
	margin-bottom: 8px;
	text-decoration: none;
}

.group-tile-name a:hover {
	color: #35a9ff;
	text-decoration: underline;
}

.group-tile-more {
	align-items: center;
	align-self: flex-start;
	color: #35a9ff;
	display: inline-flex;
	font-weight: 600;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	text-decoration: none;
}

.group-tile-more:hover {
	color: #1c1958;
}

/* Strzałka str-1.svg jest biała – na niebieskim kwadracie jak .onblog-link. */
.group-tile-arrow {
	align-items: center;
	background-color: #35a9ff;
	display: inline-flex;
	height: 24px;
	justify-content: center;
	transition: background-color 100ms ease-in-out;
	width: 24px;
}

.group-tile-more:hover .group-tile-arrow {
	background-color: #1c1958;
}

.group-tile-arrow img {
	display: block;
	height: 11px;
	width: 7px;
}

.group-content {
	margin: 0 0 60px;
}

.agpl-content.group-content h2 {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 2rem;
}

/* Film: gdy template-parts/video.php ma własny .wrapper – bez podwójnych odstępów. */
.agpl-video-wrap > .wrapper {
	margin: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

@media (max-width: 1024px) {
	.group-hero {
		padding: 40px 0 60px;
	}

	.group-hero h1 {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}

	.group-grid {
		gap: 20px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: -30px;
	}
}

@media (max-width: 768px) {
	.group-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 400px) {
	.group-tile {
		padding: 15px;
	}

	.group-tile-thumb {
		flex-basis: 80px;
	}

	.group-tile-thumb img {
		height: 80px;
		width: 80px;
	}
}

/* ==========================================================================
   Blog: kafelki wpisów (styl .onblog-item), paginacja, nawigacja wpisu
   ========================================================================== */

.agpl-posts-wrap {
	padding-top: 10px;
}

.agpl-posts {
	display: grid;
	gap: 40px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agpl-post-card {
	background-color: #fff;
	display: flex;
	line-height: 1.625rem;
	padding: 18px;
	position: relative;
	z-index: 0;
}

.agpl-post-card::before {
	background-color: rgba(0, 0, 0, 0.15);
	bottom: -3px;
	content: " ";
	display: block;
	filter: blur(16px);
	left: 0;
	opacity: 0.35;
	position: absolute;
	right: 0;
	top: 3px;
	transition: opacity 150ms ease-in-out;
	z-index: -1;
}

.agpl-post-card:hover::before {
	opacity: 1;
}

.agpl-post-card-thumb {
	flex: 0 0 38%;
}

.agpl-post-card-thumb a,
.agpl-post-card-thumb img {
	display: block;
}

.agpl-post-card-thumb img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
}

.agpl-post-card-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 0 20px 0 40px;
}

.agpl-post-card--no-thumb .agpl-post-card-content {
	padding-left: 20px;
}

.agpl-post-card-title a {
	color: #1c1958;
	display: inline-block;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.75rem;
	padding: 14px 0 8px;
}

.agpl-post-card-title a:hover {
	color: #35a9ff;
	text-decoration: underline;
}

.agpl-post-card-date {
	color: #8a8a8a;
	display: block;
	font-size: 0.875rem;
	line-height: 1.375rem;
	margin-bottom: 10px;
}

.agpl-post-card-intro {
	font-size: 0.9375rem;
	margin-bottom: 15px;
}

.agpl-post-card-link {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
}

.agpl-post-card-link a {
	align-items: center;
	color: #35a9ff;
	display: inline-flex;
	font-size: 0.9375rem;
	font-weight: 600;
	gap: 10px;
}

.agpl-post-card-link a:hover {
	color: #1c1958;
}

.agpl-post-card-arrow {
	align-items: center;
	background-color: #35a9ff;
	display: inline-flex;
	height: 28px;
	justify-content: center;
	transition: background-color 100ms ease-in-out, width 100ms ease-in-out;
	width: 28px;
}

.agpl-post-card-link a:hover .agpl-post-card-arrow {
	background-color: #1c1958;
	width: 48px;
}

.agpl-post-card-arrow img {
	display: block;
	height: 11px;
	width: 7px;
}

/* Paginacja (the_posts_pagination / paginate_links) */
.agpl-pagination {
	padding-top: 40px;
}

.agpl-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.agpl-pagination .page-numbers {
	border: 1px solid #e0e7f0;
	color: #1c1958;
	display: inline-block;
	font-weight: 600;
	line-height: 1.5rem;
	min-width: 42px;
	padding: 8px 12px;
	text-align: center;
}

.agpl-pagination a.page-numbers:hover {
	border-color: #35a9ff;
	color: #35a9ff;
}

.agpl-pagination .page-numbers.current {
	background-color: #1c1958;
	border-color: #1c1958;
	color: #fff;
}

.agpl-pagination .page-numbers.dots {
	border-color: transparent;
}

/* Wpis: poprzedni / następny */
.agpl-post-nav {
	border-top: 1px solid #e0e7f0;
	margin-top: 40px;
	padding-top: 25px;
}

.agpl-post-nav .nav-links {
	display: flex;
	gap: 30px;
	justify-content: space-between;
}

.agpl-post-nav .nav-next {
	margin-left: auto;
	text-align: right;
}

.agpl-post-nav a {
	display: block;
	max-width: 520px;
}

.agpl-post-nav-label {
	color: #8a8a8a;
	display: block;
	font-size: 0.8125rem;
	line-height: 1.25rem;
	text-transform: uppercase;
}

.agpl-post-nav-title {
	color: #1c1958;
	display: block;
	font-weight: 600;
	line-height: 1.5rem;
}

.agpl-post-nav a:hover .agpl-post-nav-title {
	color: #35a9ff;
	text-decoration: underline;
}

.agpl-single .onblog-header-page {
	margin-top: 60px;
}

@media (max-width: 1024px) {
	.agpl-posts {
		gap: 24px;
		grid-template-columns: minmax(0, 1fr);
	}

	.agpl-post-card {
		padding: 15px;
	}

	.agpl-post-card-thumb {
		flex-basis: 120px;
	}

	.agpl-post-card-content {
		padding: 0 0 0 20px;
	}

	.agpl-post-card--no-thumb .agpl-post-card-content {
		padding-left: 0;
	}

	.agpl-post-card-title a {
		font-size: 1.0625rem;
		line-height: 1.5rem;
		padding-top: 0;
	}
}

@media (max-width: 600px) {
	.agpl-post-card-thumb {
		flex-basis: 90px;
	}

	.agpl-post-card-intro {
		display: none;
	}

	.agpl-post-nav .nav-links {
		flex-direction: column;
		gap: 15px;
	}

	.agpl-post-nav .nav-next {
		margin-left: 0;
		text-align: left;
	}
}

/* ==========================================================================
   Wyszukiwarka, brak wyników, 404
   ========================================================================== */

.agpl-search-form {
	display: flex;
	max-width: 560px;
}

.agpl-search-field {
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	border: 1px solid #c9d3e0;
	border-radius: 0;
	box-sizing: border-box;
	color: #4e4e4e;
	flex: 1 1 auto;
	font: inherit;
	line-height: 1.5rem;
	min-width: 0;
	padding: 10px 14px;
}

.agpl-search-field:focus {
	border-color: #35a9ff;
}

.agpl-search-submit {
	-webkit-appearance: none;
	appearance: none;
	background-color: #1c1958;
	border: 0;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	flex: 0 0 auto;
	font: inherit;
	font-weight: 600;
	padding: 10px 24px;
	transition: background-color 100ms ease-in-out;
}

.agpl-search-submit:hover {
	background-color: #35a9ff;
}

.agpl-search-box {
	margin-bottom: 30px;
}

.agpl-none {
	padding: 10px 0 20px;
}

.agpl-none-message {
	font-size: 1.0625rem;
	margin-bottom: 20px;
}

.agpl-404-body > p {
	max-width: 760px;
}

.agpl-404-body .agpl-404-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 30px;
}

.agpl-404-body .agpl-404-links > li {
	padding-left: 0;
}

.agpl-404-body .agpl-404-links > li + li {
	margin-top: 0;
}

.agpl-404-body .agpl-404-links > li::before {
	display: none;
}

.agpl-404-body .agpl-404-links a {
	background-color: #1c1958;
	color: #fff;
	display: inline-block;
	font-weight: 600;
	padding: 8px 22px;
	text-decoration: none;
	transition: background-color 100ms ease-in-out;
}

.agpl-404-body .agpl-404-links a:hover {
	background-color: #68b001;
	color: #fff;
}

.agpl-404-body .agpl-search-form {
	margin-top: 10px;
}

/* Kafelek grupy bez obrazka wyróżniającego: neutralne logo firmy na jasnym tle (group-tile.php),
   zamiast grafiki konkretnego produktu (myliła przy np. „Częściach zamiennych”). */
.group-tile-thumb--placeholder {
	align-items: center;
	align-self: flex-start;
	background-color: #f2f3f7;
	box-sizing: border-box;
	display: flex;
	height: 110px;
	justify-content: center;
	padding: 14px;
}

.group-tile .group-tile-thumb--placeholder img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

@media (max-width: 400px) {
	.group-tile-thumb--placeholder {
		height: 80px;
		padding: 10px;
	}
}

/* Obrazek wyróżniający wpisu: na desktopie do 620 px szerokości (rozmiar large, single.php). */
@media (min-width: 1025px) {
	.agpl-single .agpl-page-thumb img {
		max-width: 620px;
	}
}
