.dso-sales,
.dso-breeder-ads {
	--dso-accent: #087eae;
	--dso-border: #d9e0e5;
	--dso-border-strong: #b8c7d0;
	--dso-muted: #f4f6f7;
	--dso-text-muted: #53616a;
	box-sizing: border-box;
	color: inherit;
}

.dso-sales *,
.dso-breeder-ads * {
	box-sizing: border-box;
}

.dso-sales-nav {
	display: flex;
	align-items: center;
	gap: 0.65rem 1rem;
	margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
	padding: 0.85rem 1rem;
	border: 1px solid var(--dso-border);
	border-radius: 0.65rem;
	background: var(--dso-muted);
}

.dso-sales-nav__label {
	font-weight: 700;
	white-space: nowrap;
}

.dso-sales-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dso-sales-nav__list a {
	display: inline-block;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--dso-accent);
	border-radius: 999px;
	background: #fff;
	color: var(--dso-accent);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.dso-sales-nav__list a:hover,
.dso-sales-nav__list a:focus-visible {
	background: var(--dso-accent);
	color: #fff;
}

.dso-sales__section {
	scroll-margin-top: 2rem;
}

.dso-sales__section + .dso-sales__section {
	margin-top: clamp(3rem, 7vw, 6rem);
}

.dso-sales__heading {
	margin: 0 0 1.25rem;
	padding-bottom: 0.55rem;
	border-bottom: 3px solid var(--dso-accent);
}

.dso-sales__list {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.dso-listing {
	overflow: hidden;
	border: 1px solid var(--dso-border);
	border-radius: 0.65rem;
	background: #fff;
	box-shadow: 0 0.35rem 1.2rem rgba(28, 44, 53, 0.08);
}

.dso-listing__header,
.dso-listing__facts,
.dso-cats,
.dso-listing__gallery,
.dso-breeder {
	padding: clamp(1rem, 3vw, 1.6rem);
}

.dso-listing__title,
.dso-cat__name,
.dso-breeder__name {
	margin-top: 0;
}

.dso-listing__title {
	margin-bottom: 0.45rem;
}

.dso-listing__description > :last-child {
	margin-bottom: 0;
}

.dso-listing__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 1px;
	margin: 0;
	background: var(--dso-border);
	border-block: 1px solid var(--dso-border);
}

.dso-listing__fact {
	padding: 0.85rem 1rem;
	background: var(--dso-muted);
}

.dso-listing__fact dt,
.dso-cat__facts dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--dso-text-muted);
}

.dso-listing__fact dd,
.dso-cat__facts dd {
	margin: 0.15rem 0 0;
}

.dso-cats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1.25rem;
}

.dso-cat {
	overflow: hidden;
	border: 1px solid var(--dso-border);
	border-radius: 0.5rem;
	background: #fff;
}

.dso-cat__media {
	background: var(--dso-muted);
}

.dso-cat__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.dso-cat__body {
	padding: 1rem;
}

.dso-cat__name {
	margin-bottom: 0.35rem;
}

.dso-cat__status {
	display: inline-block;
	margin: 0 0 0.8rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--dso-accent);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.dso-cat__facts {
	display: grid;
	gap: 0.55rem;
	margin: 0;
}

.dso-cat__description {
	margin-bottom: 0;
	font-style: italic;
}

.dso-listing__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	gap: 0.75rem;
	padding-top: 0;
}

.dso-listing__gallery-link {
	display: block;
	overflow: hidden;
	border-radius: 0.4rem;
}

.dso-listing__gallery-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 160ms ease;
}

/* A single gallery image should not dominate the entire listing card. */
.dso-listing__gallery-link:only-child .dso-listing__gallery-image {
	height: 250px;
	max-height: 250px;
	aspect-ratio: auto;
}

.dso-listing__gallery-link:hover .dso-listing__gallery-image {
	transform: scale(1.025);
}

.dso-breeder {
	background: var(--dso-muted);
	border-top: 1px solid var(--dso-border);
}

.dso-breeder p {
	margin: 0.25rem 0;
}

.dso-breeder span,
.dso-breeder-ad span {
	font-weight: 700;
}

.dso-breeder__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
}

.dso-breeder-ads {
	display: grid;
	gap: 2rem;
}

.dso-breeder-ad {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
	overflow: hidden;
	border: 2px solid var(--dso-border-strong);
	border-radius: 0.65rem;
	background: #fff;
	box-shadow: 0 0.35rem 1.1rem rgb(35 55 65 / 10%);
}

.dso-breeder-ad:nth-child(even) {
	grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr);
}

.dso-breeder-ad:nth-child(even) .dso-breeder-ad__body {
	order: 1;
}

.dso-breeder-ad:nth-child(even) .dso-breeder-ad__media {
	order: 2;
}

.dso-breeder-ad__media {
	display: flex;
	align-items: center;
	padding: clamp(0.6rem, 1.25vw, 1rem);
	background: #fff;
}

.dso-breeder-ad__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.25rem;
}

.dso-breeder-ad__body {
	padding: 1.25rem;
}

.dso-breeder-ad__body:only-child {
	grid-column: 1 / -1;
}

.dso-breeder-ad__body h2 {
	margin-top: 0;
}

.dso-breeder-ad__badge img {
	max-width: 8rem;
	height: auto;
}

.dso-listings__notice {
	padding: 1rem;
	border-left: 4px solid #b32d2e;
	background: #fff3f3;
}

@media (max-width: 700px) {
	.dso-sales-nav {
		align-items: flex-start;
		flex-direction: column;
	}

	.dso-breeder-ad {
		grid-template-columns: 1fr;
	}

	.dso-breeder-ad:nth-child(even) {
		grid-template-columns: 1fr;
	}

	.dso-breeder-ad:nth-child(even) .dso-breeder-ad__media,
	.dso-breeder-ad:nth-child(even) .dso-breeder-ad__body {
		order: initial;
	}
}
