/*
 * Detroit Alley Cats -- Cats: card, grid, filter and cat page styles.
 *
 * Class names follow the homepage redesign (cat-card and its elements). Values read the
 * site's Bricks variables (spacing, text sizes, colors, and the Components group's
 * --border-width and --border-color), so a change there reaches the cat cards and pages too;
 * the fallback after each name applies only where a variable is missing. Every selector is wrapped in
 * :where(), which gives it no specificity, so theme and Bricks classes override it.
 * Sizes assume 1rem = 10px, as in both the Balance theme and the redesign.
 */

/* Grid: at most four cards across; each card is at least 24rem wide. */
:where(.cat-grid) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(24rem, (100% - 3 * var(--grid-gap, 2.8rem)) / 4)), 1fr));
	gap: var(--grid-gap, 2.8rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * The theme indents lists in page content, which beats the zero-specificity rules above, so the
 * plugin's own lists reset their indent with ordinary class specificity.
 */
.cat-listing .cat-grid,
.cat-card .cat-keywords,
.cat-profile .cat-keywords,
.cat-filters .cat-filters__active {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

:where(.cat-grid__none, .cat-grid__empty) {
	margin: var(--space-m, 1.6rem) 0;
	font-size: var(--text-l, 1.6rem);
}

:where(.cat-grid__empty) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-s, 1.2rem);
}

:where(.cat-grid__empty p) { margin: 0; }

:where(.cat-grid__empty[hidden], .cat-filters[hidden]) { display: none; }

/* Card: the redesign's "Meet a few of our cats" card */
:where(.cat-card) {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: var(--border-width, 1px) solid var(--border-color, #d8d0bf);
	border-radius: var(--radius, 0);
	background: var(--white, #ffffff);
	overflow: hidden;
}

:where(.cat-card)::before { content: none; }

:where(.cat-card[hidden]) { display: none; }

:where(.cat-card__media) { position: relative; }

/* Special case or Adopted! label on the photo's top-left corner */
:where(.cat-card__media .cat-card__badge) {
	position: absolute;
	top: var(--space-xs, 0.8rem);
	left: var(--space-xs, 0.8rem);
	max-width: calc(100% - 2 * var(--space-xs, 0.8rem));
}

:where(.cat-card__photo) {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--neutral-light, #e9e7e3);
}

:where(.cat-card__photo--empty) {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--base-semi-light, #595959);
	font-size: var(--text-xs, 1.3rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

:where(.cat-card__body) {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: var(--space-xs, 0.8rem);
	padding: var(--content-gap, 2rem);
}

:where(.cat-card__badge) {
	align-self: flex-start;
	margin: 0;
	padding: var(--space-xxs, 0.4rem) var(--space-xs, 0.8rem);
	background: var(--primary, #0d0d0d);
	color: var(--white, #ffffff);
	font-size: var(--text-xs, 1.3rem);
	font-weight: 600;
	line-height: 1.4;
}

:where(.cat-card__badge--adopted, .cat-card__badge--status) {
	background: var(--white, #ffffff);
	color: var(--primary, #0d0d0d);
	box-shadow: inset 0 0 0 var(--btn-border-width, 0.15rem) currentColor;
}

:where(.cat-card__name) {
	margin: 0;
	font-family: var(--heading-font-family, inherit);
	font-size: var(--h5, 2.4rem);
	font-weight: var(--heading-font-weight, 400);
	line-height: var(--heading-line-height, 1.15);
}

/* Name with the age beside it; also used by the featured cat. */
:where(.cat-card__heading) {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 var(--space-xs, 0.8rem);
}

:where(.cat-card__age) {
	color: var(--base-semi-dark, #333333);
	font-family: var(--text-font-family, inherit);
	font-size: var(--text-l, 1.6rem);
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
}

/* Keywords on the card, the featured cat and the cat page */
:where(.cat-keywords) {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xxs, 0.4rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.cat-keywords[hidden]) { display: none; }

:where(.cat-keywords__item) {
	margin: 0;
	padding: var(--space-xxs, 0.4rem) var(--space-xs, 0.8rem);
	background: var(--neutral-light, #e9e7e3);
	color: var(--base, #1a1a1a);
	font-size: var(--text-xs, 1.3rem);
	font-weight: 500;
	line-height: 1.4;
}

:where(.cat-card__meta) {
	margin: 0;
	color: var(--base-semi-dark, #333333);
	font-size: var(--text-m, 1.5rem);
	font-weight: 500;
}

/* "1 year · Male": the age and the sex line share one line; the dot shows only when both do. */
:where(.cat-card__meta .cat-card__age) { font-size: inherit; color: inherit; }

:where(.cat-card__meta .cat-card__age:not([hidden]) + .cat-card__meta-text)::before { content: "\00A0\00B7\00A0"; }

:where(.cat-card__meta:empty) { display: none; }

:where(.cat-card__text) {
	margin: 0;
	color: var(--base-medium, #4d4d4d);
	font-size: var(--text-m, 1.5rem);
	line-height: 1.5;
}

:where(.cat-card__link) { margin-top: auto; }

/* The Meet link covers its whole card, so a click anywhere on the card opens the cat's page. */
:where(.cat-card__link, .featured-cat__link)::after {
	content: "";
	position: absolute;
	inset: 0;
}

:where(.cat-card:hover .cat-card__name, .featured-cat:hover .featured-cat__name) { text-decoration: underline; }

/* Redesign link and button patterns, used inside the plugin's own markup only */
:where(.cat-listing, .cat-profile, .cat-profile__back, .featured-cat, .adopt-page) :where(.arrow-link) {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs, 0.8rem);
	min-height: var(--target-s, 4.4rem);
	color: var(--base-dark, #111111);
	font-size: var(--text-m, 1.5rem);
	font-weight: 600;
}

:where(.cat-listing, .cat-profile, .featured-cat, .adopt-page) :where(.btn--primary) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--btn-min-height, 4.8rem);
	padding-inline: var(--btn-padding-inline, 2.4rem);
	border: var(--btn-border-width, 0.15rem) solid var(--primary, #0d0d0d);
	border-radius: var(--radius, 0);
	background: var(--primary, #0d0d0d);
	color: var(--white, #ffffff);
	font: inherit;
	font-size: var(--btn-font-size, 1.5rem);
	font-weight: var(--btn-font-weight, 600);
	text-decoration: none;
	cursor: pointer;
}

:where(.cat-listing, .cat-profile, .featured-cat, .adopt-page) :where(.btn--primary:hover, .btn--primary:focus-visible) {
	background: var(--primary-hover, #333333);
	color: var(--white, #ffffff);
}

:where(.cat-listing, .cat-profile, .adopt-page) :where(.btn--primary.btn--outline) {
	background: transparent;
	color: var(--primary, #0d0d0d);
	font-weight: var(--btn-outline-font-weight, 500);
}

:where(.cat-listing, .cat-profile, .adopt-page) :where(.btn--primary.btn--outline:hover, .btn--primary.btn--outline:focus-visible) {
	background: var(--primary, #0d0d0d);
	color: var(--white, #ffffff);
}

/* Filter bar: basic filters always open, trait lists under "More filters" */
:where(.cat-filters) { margin-bottom: 0; }

:where(.cat-filters__form) {
	display: flex;
	flex-direction: column;
	gap: var(--space-l, 2.4rem);
	margin: 0 0 var(--space-m, 1.6rem);
	padding: var(--space-l, 2.4rem);
	background: var(--neutral-ultra-light, #f3eee3);
}

:where(.cat-filters__basic) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--space-l, 2.4rem) var(--space-xl, 3.2rem);
}

:where(.cat-filters__group) {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs, 0.8rem);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

:where(.cat-filters__label) {
	margin: 0;
	padding: 0;
	color: var(--base, #1a1a1a);
	font-size: var(--text-s, 1.4rem);
	font-weight: 600;
}

/* A legend ignores the flex gap, so it carries its own space. */
:where(legend.cat-filters__label) { margin-bottom: var(--space-xs, 0.8rem); }

:where(.cat-filters__chips) { display: flex; flex-wrap: wrap; gap: var(--space-xs, 0.8rem); }

/* Toggle chips: a real checkbox, hidden visually, with its label drawn as a button. */
:where(.cat-chip) { position: relative; display: inline-flex; cursor: pointer; }

:where(.cat-chip__input) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

:where(.cat-chip__text) {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xxs, 0.4rem);
	min-height: var(--target-s, 4.4rem);
	padding: 0 var(--space-m, 1.6rem);
	border: var(--border-width, 1px) solid var(--base-semi-light, #595959);
	background: var(--white, #ffffff);
	color: var(--base, #1a1a1a);
	font-size: var(--text-s, 1.4rem);
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

:where(.cat-chip__hint) { color: var(--base-medium, #4d4d4d); font-size: var(--text-xs, 1.3rem); font-weight: 400; }

:where(.cat-chip:hover .cat-chip__text) { border-color: var(--accent, #2d5a3d); }

/* Ticked: green with a check mark, so the state does not rely on color alone. */
:where(.cat-chip__input:checked + .cat-chip__text) {
	border-color: var(--accent, #2d5a3d);
	background: var(--accent, #2d5a3d);
	color: var(--white, #ffffff);
}

:where(.cat-chip__input:checked + .cat-chip__text)::before {
	content: "";
	width: 0.9rem;
	height: 0.5rem;
	margin: 0 0.2rem 0.3rem 0;
	border-bottom: 0.2rem solid currentColor;
	border-left: 0.2rem solid currentColor;
	transform: rotate(-45deg);
}

:where(.cat-chip__input:checked + .cat-chip__text .cat-chip__hint) { color: inherit; }

:where(.cat-chip__input:focus-visible + .cat-chip__text) {
	outline: var(--focus-width, 0.3rem) solid var(--focus-color, #0d0d0d);
	outline-offset: var(--focus-offset, 0.3rem);
}

/* Second row: Bonded pairs, the special case switch */
:where(.cat-filters__row) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-s, 1.2rem) var(--space-xl, 3.2rem);
}

:where(.cat-filters__special) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs, 0.8rem) var(--space-m, 1.6rem); }

:where(.cat-switch) {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--space-s, 1.2rem);
	min-height: var(--target-s, 4.4rem);
	color: var(--base, #1a1a1a);
	font-size: var(--text-m, 1.5rem);
	font-weight: 500;
	cursor: pointer;
}

:where(.cat-switch__input) { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

:where(.cat-switch__track) {
	position: relative;
	flex-shrink: 0;
	width: 4.4rem;
	height: 2.4rem;
	border: 0.2rem solid var(--base-semi-light, #595959);
	border-radius: 2.4rem;
	background: var(--white, #ffffff);
	transition: background 0.15s ease, border-color 0.15s ease;
}

:where(.cat-switch__track)::after {
	content: "";
	position: absolute;
	top: 0.2rem;
	left: 0.2rem;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--base-semi-light, #595959);
	transition: transform 0.15s ease;
}

:where(.cat-switch__input:checked + .cat-switch__track) { border-color: var(--accent, #2d5a3d); background: var(--accent, #2d5a3d); }

:where(.cat-switch__input:checked + .cat-switch__track)::after { background: var(--white, #ffffff); transform: translateX(2rem); }

:where(.cat-switch__input:focus-visible + .cat-switch__track) {
	outline: var(--focus-width, 0.3rem) solid var(--focus-color, #0d0d0d);
	outline-offset: var(--focus-offset, 0.3rem);
}

@media (prefers-reduced-motion: reduce) {
	:where(.cat-switch__track, .cat-switch__track::after, .cat-filters__chevron) { transition: none; }
}

:where(.cat-filters__note) { font-size: var(--text-s, 1.4rem); }

/*
 * More filters: a button that opens the trait lists below it. On narrow screens it sits on its own
 * line under a divider; from 1200px the filters form a grid and the button sits under "Good with".
 */
:where(.cat-filters__more) { border-top: var(--border-width, 1px) solid var(--border-color, #d8d0bf); padding-top: var(--space-m, 1.6rem); }

.cat-filters .cat-filters__more-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs, 0.8rem);
	min-height: var(--target-s, 4.4rem);
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--base, #1a1a1a);
	font: inherit;
	font-size: var(--text-m, 1.5rem);
	font-weight: 600;
	cursor: pointer;
}

.cat-filters .cat-filters__more-toggle:hover { color: var(--accent, #2d5a3d); }

:where(.cat-filters__chevron) { transition: transform 0.2s ease; }

:where(.cat-filters__more-toggle[aria-expanded="true"] .cat-filters__chevron) { transform: rotate(180deg); }

/* The form's gap is 2.4rem; the panel sits 1.2rem under the button, as before. */
:where(.cat-filters__more-panel) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 32rem), 1fr));
	gap: var(--space-l, 2.4rem) var(--space-xl, 3.2rem);
	margin-top: calc(var(--space-s, 1.2rem) - var(--space-l, 2.4rem));
}

:where(.cat-filters__more-panel[hidden]) { display: none; }

@media (min-width: 1200px) {
	:where(.cat-filters__form) {
		display: grid;
		grid-template-columns: auto auto auto minmax(0, 1fr);
		gap: var(--space-l, 2.4rem) var(--space-xl, 3.2rem);
	}
	:where(.cat-filters__basic) { display: contents; }
	:where(.cat-filters__row) { grid-column: 1 / 3; }
	:where(.cat-filters__more) { grid-column: 3; align-self: center; padding-top: 0; border-top: 0; }
	:where(.cat-filters__more-panel) {
		grid-column: 1 / -1;
		margin-top: 0;
		padding-top: var(--space-l, 2.4rem);
		border-top: var(--border-width, 1px) solid var(--border-color, #d8d0bf);
	}
}

/* Count, the filters that are on, and Clear all */
:where(.cat-filters__status) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs, 0.8rem) var(--space-m, 1.6rem);
	margin: 0 0 var(--space-l, 2.4rem);
}

:where(.cat-filters__count) {
	margin: 0;
	color: var(--base-semi-dark, #333333);
	font-size: var(--text-m, 1.5rem);
	font-weight: 600;
}

:where(.cat-filters__active) { display: flex; flex-wrap: wrap; gap: var(--space-xs, 0.8rem); margin: 0; }

:where(.cat-filters__active[hidden], .cat-filters__clear[hidden]) { display: none; }

:where(.cat-filters__active li) { margin: 0; }

:where(.cat-filters__active-chip) {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs, 0.8rem);
	min-height: 3.6rem;
	padding: 0 var(--space-s, 1.2rem);
	border: var(--border-width, 1px) solid var(--accent, #2d5a3d);
	border-radius: var(--radius, 0);
	background: var(--white, #ffffff);
	color: var(--accent, #2d5a3d);
	font: inherit;
	font-size: var(--text-s, 1.4rem);
	font-weight: 500;
	cursor: pointer;
}

:where(.cat-filters__active-chip:hover) { background: var(--accent, #2d5a3d); color: var(--white, #ffffff); }

:where(.cat-filters__clear) {
	min-height: var(--target-s, 4.4rem);
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent, #2d5a3d);
	font: inherit;
	font-size: var(--text-s, 1.4rem);
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 600px) {
	:where(.cat-filters__form) { padding: var(--space-m, 1.6rem); }
}

:where(.cat-filters :focus-visible:not(.cat-chip__input, .cat-switch__input), .cat-listing :focus-visible:not(.cat-chip__input, .cat-switch__input), .cat-profile :focus-visible, .featured-cat :focus-visible, .adopt-page :focus-visible) {
	outline: var(--focus-width, 0.3rem) solid var(--focus-color, #0d0d0d);
	outline-offset: var(--focus-offset, 0.3rem);
}

/* Single cat page: photo on the left; details, then the story, on the right */
:where(.cat-profile) {
	display: grid;
	gap: var(--container-gap, 4rem);
	margin-bottom: var(--space-xl, 3.2rem);
}

@media (min-width: 768px) {
	:where(.cat-profile) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
}

/* With no photo the story column takes the full width */
:where(.cat-profile__story:only-child) { grid-column: 1 / -1; }

:where(.cat-profile__details) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-s, 1.2rem);
	margin-bottom: var(--space-xl, 3.2rem);
}

:where(.cat-profile__photo) {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

:where(.cat-profile__badges) {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs, 0.8rem);
}

:where(.cat-profile__meta) {
	margin: 0;
	color: var(--base-semi-dark, #333333);
	font-size: var(--text-l, 1.6rem);
	font-weight: 500;
}

:where(.cat-profile__notes) {
	margin: 0;
	color: var(--base-medium, #4d4d4d);
	font-size: var(--text-m, 1.5rem);
	line-height: 1.5;
}

/* "Good with" pills use the redesign's chip-list component */
:where(.cat-profile) :where(.chip-list) {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs, 0.8rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.cat-profile) :where(.chip-list__item) {
	margin: 0;
	padding: var(--space-xs, 0.8rem) var(--space-s, 1.2rem);
	background: var(--primary, #0d0d0d);
	color: var(--white, #ffffff);
	font-size: var(--text-s, 1.4rem);
	font-weight: 500;
	line-height: 1.2;
}

/* Screen-reader-only text, under the redesign's ACSS class name */
:where(.cat-profile, .featured-cat) :where(.hidden-accessible) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:where(.cat-profile__back) { margin: var(--space-l, 2.4rem) 0 0; }

/* Featured cat: one large card for a random available cat ([featured_cat]) */
:where(.featured-cat) {
	position: relative;
	display: flex;
	flex-direction: column;
	border: var(--border-width, 1px) solid var(--border-color, #d8d0bf);
	background: var(--white, #ffffff);
}

:where(.featured-cat__photo) {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	max-height: 52rem;
	object-fit: contain;
	background: var(--neutral-light, #e9e7e3);
}

/* The whole photo shows, uncropped; a very tall photo is scaled down to fit 52rem. */
:where(.featured-cat__photo.cat-card__photo--empty) { display: flex; aspect-ratio: 4 / 3; }

:where(.featured-cat__body) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-xs, 0.8rem);
	padding: var(--content-gap, 2rem);
}

:where(.featured-cat [hidden]) { display: none; }

:where(.featured-cat .eyebrow) {
	margin: 0;
	color: var(--base-medium, #4d4d4d);
	font-size: var(--text-xs, 1.3rem);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

:where(.featured-cat__name) {
	margin: 0;
	font-family: var(--heading-font-family, inherit);
	font-size: var(--h4, 2.6rem);
	font-weight: var(--heading-font-weight, 400);
	line-height: var(--heading-line-height, 1.15);
}

:where(.featured-cat__meta) {
	margin: 0;
	color: var(--base-semi-dark, #333333);
	font-size: var(--text-m, 1.5rem);
	font-weight: 500;
}

:where(.featured-cat__text) {
	margin: 0;
	color: var(--base-medium, #4d4d4d);
	font-size: var(--text-l, 1.6rem);
	line-height: 1.55;
}

:where(.featured-cat__actions) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs, 0.8rem) var(--space-l, 2.4rem);
	margin-top: var(--space-xs, 0.8rem);
}

/*
 * Adoptable Cats page: the cat listing, the adoption details in three open columns, and the
 * closing apply band. The page content wraps them in .adopt-page.
 */
:where(.adopt-page .listing__header) { margin-bottom: var(--space-l, 2.4rem); }

:where(.adopt-page .section-heading) { margin: 0 0 var(--space-xs, 0.8rem); font-family: var(--heading-font-family, inherit); font-size: var(--h3, 3.2rem); font-weight: var(--heading-font-weight, 400); }

:where(.adopt-page .section-intro) { margin: 0; color: var(--base-medium, #4d4d4d); font-size: var(--text-xl, 1.7rem); line-height: 1.6; }

:where(.adopt-page .details) {
	margin-top: var(--space-xxl, 4.8rem);
	padding-top: var(--space-xxl, 4.8rem);
	border-top: var(--border-width, 1px) solid var(--border-color, #d8d0bf);
	scroll-margin-top: var(--space-l, 2.4rem);
}

:where(.adopt-page .details__grid) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
	gap: var(--container-gap, 4rem);
	margin-top: var(--space-l, 2.4rem);
}

/*
 * Wide screens: the first column as wide as its list, the fee list held to a readable width, and
 * the spare space shared out between the columns, so the three gaps look the same.
 */
@media (min-width: 1200px) {
	:where(.adopt-page .details__grid) {
		grid-template-columns: max-content minmax(24rem, 36rem) minmax(0, 56rem);
		justify-content: space-between;
		column-gap: var(--space-xxl, 4.8rem);
	}
}

:where(.adopt-page .details__col) { display: flex; flex-direction: column; gap: var(--space-s, 1.2rem); scroll-margin-top: var(--space-l, 2.4rem); }

:where(.adopt-page .details__heading) { margin: 0; font-family: var(--heading-font-family, inherit); font-size: var(--h6, 2.2rem); font-weight: 600; line-height: 1.25; }

:where(.adopt-page .details__text) { margin: 0; color: var(--base-semi-dark, #333333); font-size: var(--text-l, 1.6rem); line-height: 1.6; }

.adopt-page .check-list { margin: 0; padding: 0; list-style: none; }

:where(.adopt-page .check-list) { display: flex; flex-direction: column; gap: var(--space-s, 1.2rem); }

:where(.adopt-page .check-list__item) { display: flex; align-items: flex-start; gap: var(--space-xs, 0.8rem); margin: 0; font-size: var(--text-l, 1.6rem); line-height: 1.4; }

:where(.adopt-page .check-list__item svg) { flex-shrink: 0; margin-top: 0.1rem; color: var(--accent, #2d5a3d); }

:where(.adopt-page .price-list) { margin: 0; }

:where(.adopt-page .price-list__row) {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-m, 1.6rem);
	padding-block: var(--space-s, 1.2rem);
	border-bottom: var(--border-width, 1px) solid var(--border-color, #d8d0bf);
}

:where(.adopt-page .price-list__row:first-child) { padding-top: 0; }

:where(.adopt-page .price-list__row:last-child) { padding-bottom: 0; border-bottom: 0; }

:where(.adopt-page .price-list__term) { margin: 0; font-size: var(--text-l, 1.6rem); font-weight: 500; }

:where(.adopt-page .price-list__note) { display: block; color: var(--base-medium, #4d4d4d); font-size: var(--text-s, 1.4rem); font-weight: 400; }

:where(.adopt-page .price-list__price) { margin: 0; font-family: var(--heading-font-family, inherit); font-size: var(--h6, 2.2rem); white-space: nowrap; }

:where(.adopt-page .details__links) { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs, 0.8rem); }

/*
 * Apply band: the closing call to action, green with a cat photo on the left (option B,
 * adopt-page-options-v1.html). The photo fills the band's height; on narrow screens it sits on top.
 * Colors and the photo use plain class selectors, because the theme's heading, text and image
 * rules beat :where().
 */
:where(.adopt-page .apply-band) {
	display: grid;
	grid-template-columns: 28rem minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--container-gap, 4rem);
	margin-top: var(--space-xxl, 4.8rem);
	padding: 0;
	background: var(--accent, #2d5a3d);
}

.adopt-page .apply-band__photo {
	display: block;
	align-self: stretch;
	width: 100%;
	max-width: none;
	height: 100%;
	min-height: 20rem;
	margin: 0;
	object-fit: cover;
}

:where(.adopt-page .apply-band__content) { display: flex; flex-direction: column; gap: var(--space-xs, 0.8rem); max-width: 68rem; padding-block: var(--space-xl, 3.2rem); }

:where(.adopt-page .apply-band__actions) { padding-right: var(--space-xl, 3.2rem); }

.adopt-page .apply-band .section-heading { margin: 0; color: var(--white, #ffffff); }

.adopt-page .apply-band .apply-band__text { margin: 0; color: #f1f5f2; font-size: var(--text-xl, 1.7rem); line-height: 1.6; }

.adopt-page .apply-band :focus-visible { outline-color: var(--white, #ffffff); }

@media (max-width: 900px) {
	:where(.adopt-page .apply-band) { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.adopt-page .apply-band__photo { height: 22rem; min-height: 0; }
	:where(.adopt-page .apply-band__content) { padding: var(--space-xl, 3.2rem) var(--space-l, 2.4rem) var(--content-gap, 2rem); }
	:where(.adopt-page .apply-band__actions) { padding: 0 var(--space-l, 2.4rem) var(--space-xl, 3.2rem); }
}

/*
 * Green button. The theme colors and underlines every link in page content, so this needs
 * more weight than that rule; the :not() adds it without depending on the theme's class names.
 */
.adopt-page a.adopt-btn:not(#adopt-btn-weight) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--btn-min-height, 4.8rem);
	padding-inline: var(--btn-padding-inline, 2.4rem);
	background: var(--accent, #2d5a3d);
	color: var(--white, #ffffff);
	font-size: var(--btn-font-size, 1.5rem);
	font-weight: var(--btn-font-weight, 600);
	text-decoration: none;
}

.adopt-page a.adopt-btn:not(#adopt-btn-weight):hover,
.adopt-page a.adopt-btn:not(#adopt-btn-weight):focus-visible { background: var(--accent-hover, #23482f); color: var(--white, #ffffff); }

/* On the green apply band the button turns white with green text. */
.adopt-page .apply-band a.adopt-btn:not(#adopt-btn-weight) { background: var(--white, #ffffff); color: var(--accent, #2d5a3d); }

.adopt-page .apply-band a.adopt-btn:not(#adopt-btn-weight):hover,
.adopt-page .apply-band a.adopt-btn:not(#adopt-btn-weight):focus-visible { background: var(--neutral-ultra-light, #f3eee3); color: var(--accent-hover, #23482f); }
