/*
 * Detroit Alley Cats -- Cats: Balance theme only (loaded by includes/theme-balance.php).
 *
 * Balance's element rules (a, p, h3, fieldset) outrank the zero-specificity styles in cats.css.
 * These rules carry just enough specificity to restore the redesign's card, button and filter
 * look on Balance. They are not loaded under any other theme.
 */

.cat-listing .cat-card__badge,
.cat-listing .cat-card__name,
.cat-listing .cat-card__meta,
.cat-listing .cat-card__text,
.cat-listing .cat-grid__empty p,
.cat-profile .cat-card__badge,
.cat-profile .cat-profile__meta,
.cat-profile .cat-profile__notes {
	margin: 0;
}

/* Balance gives paragraphs zero padding with ".entry-content p", which clears the label padding. */
.cat-listing .cat-card__badge,
.cat-profile .cat-card__badge {
	padding: var(--space-xxs, 0.4rem) var(--space-xs, 0.8rem);
}

/* Balance indents lists with ".entry-content ul:not(.wp-block-gallery)", so these need .entry-content too. */
.entry-content .cat-listing .cat-grid,
.entry-content .cat-listing .cat-keywords,
.entry-content .cat-profile .cat-keywords,
.entry-content .featured-cat .cat-keywords,
.entry-content .cat-profile .chip-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-content .cat-keywords__item,
.entry-content .cat-profile .chip-list__item {
	list-style: none;
}

.cat-listing .cat-card__link,
.cat-profile__back .arrow-link {
	color: var(--base-dark, #111111);
}

.cat-listing .cat-card__link:hover,
.cat-profile__back .arrow-link:hover {
	color: var(--base-semi-light, #595959);
}

.cat-listing .btn--primary,
.cat-profile .btn--primary {
	background: var(--primary, #0d0d0d);
	color: var(--white, #ffffff);
	text-decoration: none;
}

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

.cat-listing .btn--primary.btn--outline {
	border: var(--btn-border-width, 0.15rem) solid var(--primary, #0d0d0d);
	background: transparent;
	color: var(--primary, #0d0d0d);
}

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

.cat-filters .cat-filters__group {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Balance sets labels to weight 500 with a 10px bottom margin, so the Age label would not match the Sex and Bonded pair legends. */
.cat-filters .cat-filters__label {
	margin: 0 0 var(--space-xxs, 0.4rem);
	font-weight: 600;
}

/* A legend ignores the flex gap, so it takes the Age label's margin plus gap and the checkboxes line up with the Age field. */
.cat-filters fieldset .cat-filters__label {
	margin-bottom: var(--space-xs, 0.8rem);
}

/* Featured cat and the Adoptable Cats page sections. */
.featured-cat .cat-card__badge,
.featured-cat .eyebrow,
.featured-cat .featured-cat__name,
.featured-cat .featured-cat__meta,
.featured-cat .featured-cat__text,
.adopt-page .accordion__text,
.adopt-page .section-heading,
.adopt-page .section-intro,
.adopt-page .apply-band__text {
	margin: 0;
}

.featured-cat .cat-card__badge {
	padding: var(--space-xxs, 0.4rem) var(--space-xs, 0.8rem);
}

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

.entry-content .adopt-page .check-list__item {
	list-style: none;
}

/* Balance gives every dd "margin: 0 1.5em 1.5em"; the prices keep 0.5em below. */
.adopt-page .price-list__price {
	margin-bottom: 0.5em;
}

.featured-cat .arrow-link,
.adopt-page .accordion__links .arrow-link {
	color: var(--base-dark, #111111);
}

.featured-cat .arrow-link:hover,
.adopt-page .accordion__links .arrow-link:hover {
	color: var(--base-semi-light, #595959);
}

.adopt-page .intro__actions .btn--primary {
	background: var(--primary, #0d0d0d);
	color: var(--white, #ffffff);
	text-decoration: none;
}

.adopt-page .intro__actions .btn--primary:hover,
.adopt-page .intro__actions .btn--primary:focus-visible {
	background: var(--primary-hover, #333333);
	color: var(--white, #ffffff);
}

.adopt-page .intro__actions .btn--primary.btn--outline {
	background: transparent;
	color: var(--primary, #0d0d0d);
}

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

.adopt-page .apply-band .btn--white {
	background: var(--white, #ffffff);
	color: var(--primary, #0d0d0d);
	text-decoration: none;
}

.adopt-page .apply-band .btn--white:hover,
.adopt-page .apply-band .btn--white:focus-visible {
	background: var(--white-hover, #e6e6e6);
	color: var(--primary, #0d0d0d);
}

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

/* Balance's base stylesheet sets section, article and summary to display: block. */
.adopt-page .accordion__summary,
.adopt-page .apply-band,
.featured-cat {
	display: flex;
}

.cat-filters .cat-filters__toggle {
	display: inline-flex;
}

/* Balance sets labels to display:block, which lifts the checkbox above its text and above the Age field. */
.cat-filters .cat-filters__option {
	display: inline-flex;
}
