/**
 * Boksiowo Portal Engine PRO — Dogs module styles.
 */

.bpe-dogs-grid {
	display: grid;
	grid-template-columns: repeat(var(--bpe-dogs-columns, 4), 1fr);
	gap: 20px;
	margin: 0 0 2em;
}

.bpe-dog-card {
	position: relative;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.bpe-dog-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	background: #f0f0f1;
}

.bpe-dog-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bpe-dog-card__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #e0e0e0;
}

.bpe-dog-card__badge,
.bpe-dog__header .bpe-dog-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 9px;
	border-radius: 3px;
	background: #23282d;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}

.bpe-dog-card__body {
	padding: 14px;
}

.bpe-dog-card__title {
	margin: 0 0 4px;
	font-size: 1.1rem;
}

.bpe-dog-card__title a {
	color: inherit;
	text-decoration: none;
}

.bpe-dog-card__breed {
	margin: 0 0 4px;
	font-size: 0.9rem;
	color: #50575e;
}

.bpe-dog-card__sex {
	margin: 0;
	font-size: 0.85rem;
	color: #787c82;
}

.bpe-dog__header {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 24px;
}

.bpe-dog__thumb {
	flex: 0 0 260px;
	max-width: 260px;
	border-radius: 6px;
	overflow: hidden;
}

.bpe-dog__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.bpe-dog__title {
	margin: 0 0 8px;
}

.bpe-dog__breed {
	margin: 0 0 8px;
	font-size: 1rem;
	color: #50575e;
}

.bpe-dog__stats {
	width: 100%;
	max-width: 480px;
	border-collapse: collapse;
	margin: 0 0 24px;
}

.bpe-dog__stats th,
.bpe-dog__stats td {
	padding: 8px 12px;
	border-bottom: 1px solid #dcdcde;
	text-align: left;
}

.bpe-dog__stats th {
	width: 40%;
	color: #50575e;
	font-weight: 600;
}

.bpe-dog__profile-sections,
.bpe-dog__timeline {
	margin: 0 0 32px;
}

.bpe-dog__profile-section {
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
}

.bpe-dog__timeline ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bpe-dog__timeline li {
	display: flex;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f1;
}

.bpe-dog__timeline-date {
	flex: 0 0 120px;
	color: #787c82;
	font-size: 0.85rem;
}

.bpe-no-dogs {
	color: #787c82;
}

/*
 * Added in v1.29.1 — .bpe-container/.bpe-archive-header/
 * .bpe-archive-title/.bpe-archive-description/.bpe-pagination are used
 * by single-bpe_dog.php and archive-bpe_dog.php but were never actually
 * defined in this module's own stylesheet: they happen to share their
 * names with classes in assets/css/articles.css, but that file is only
 * ever enqueued on Articles screens, not on dog screens, so relying on
 * it here would have been an invisible cross-module dependency — dogs.css
 * defines its own copies instead, keeping the module self-contained.
 */

.bpe-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

.bpe-archive-header {
	margin: 32px 0 24px;
}

.bpe-archive-title {
	margin: 0 0 8px;
}

.bpe-archive-description {
	color: #50575e;
}

.bpe-pagination {
	margin: 24px 0 0;
}

.bpe-dog__content {
	margin: 0 0 24px;
}

/*
 * These three blocks style markup shipped in v1.29.0 ([bpe_dogs],
 * [bpe_dog_gallery], Breadcrumbs) that had no matching CSS at all
 * before this release.
 */

.bpe-breadcrumbs {
	margin: 0 0 16px;
	font-size: 0.85rem;
	color: #787c82;
}

.bpe-breadcrumbs a {
	color: inherit;
	text-decoration: underline;
}

.bpe-breadcrumbs__sep {
	margin: 0 6px;
}

.bpe-breadcrumbs__current {
	color: #1d2327;
	font-weight: 600;
}

.bpe-dogs-list {
	margin: 0 0 2em;
	padding: 0;
	list-style: none;
}

.bpe-dogs-list__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #dcdcde;
}

.bpe-dogs-list__thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 4px;
	overflow: hidden;
	background: #f0f0f1;
}

.bpe-dogs-list__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bpe-dogs-list__name {
	flex: 1 1 auto;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.bpe-dogs-list__breed,
.bpe-dogs-list__sex,
.bpe-dogs-list__birthdate {
	flex: 0 0 auto;
	font-size: 0.85rem;
	color: #50575e;
}

.bpe-dog__gallery {
	margin: 0 0 32px;
}

.bpe-dog-gallery {
	display: grid;
	grid-template-columns: repeat(var(--bpe-dog-gallery-columns, 4), 1fr);
	gap: 12px;
}

.bpe-dog-gallery__item {
	margin: 0;
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f1;
}

.bpe-dog-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 782px) {
	.bpe-dogs-grid,
	.bpe-dog-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.bpe-dogs-grid,
	.bpe-dog-gallery {
		grid-template-columns: 1fr;
	}
}
