/*
 * Refresh: animal pages (inc/refresh-animal-pages.php): Cats, Dogs, Horses, Ferrets, Rabbits as cards (Aaron, Nov 19, 2026).
 * The banner and intro are pages.css (pb-std).
 * 01 Card grid   02 Name bar   03 Story and Read more   04 Cats' donate button   05 In Memoriam   06 Tablets and phones
 */

/* 01 Card grid: three across, each card as tall as its own story */
body.pb-animal-page .entry-content ul.pb-acards {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: start;
	box-sizing: border-box;
	width: 100%;
	max-width: 1140px !important;
	margin: 32px auto 56px !important;
	padding: 0 !important;
	align-self: stretch;
}
body.pb-animal-page .entry-content ul.pb-acards > li.pb-acard {
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border-radius: 26px;
	background: var(--pb-white);
	box-shadow: 0 0 0 2px var(--pb-pale), 0 14px 32px rgba(15, 76, 117, 0.07);
	font-size: 17px;
	line-height: 1.6;
	text-align: left;
}
body.pb-animal-page .entry-content ul.pb-acards > li.pb-acard::before { display: none; }
body.pb-animal-page .entry-content .pb-acard__img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0; border-radius: 0; }

/* 02 Name bar: name, facts and age in white on blue */
body.pb-animal-page .entry-content .pb-acard__bar { padding: 16px 22px 18px; border-bottom: 6px solid var(--pb-sky); background: var(--pb-blue); color: var(--pb-white); }
body.pb-animal-page .entry-content .pb-acard__bar h3 {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--pb-font) !important;
	font-weight: 900 !important;
	font-size: 26px !important;
	line-height: 1.15 !important;
	text-transform: none;
	color: var(--pb-white) !important;
}
body.pb-animal-page .entry-content .pb-acard__bar h3::before { display: none !important; }
body.pb-animal-page .entry-content .pb-acard__bar .pb-acard__facts { margin: 6px 0 0 !important; max-width: none !important; font-size: 15px !important; line-height: 1.45 !important; font-weight: 600; color: var(--pb-white) !important; }
body.pb-animal-page .entry-content .pb-acard__bar .pb-acard__facts em { font-style: normal; }

/* 03 Story; long ones shortened to five lines until "Read more" */
body.pb-animal-page .entry-content .pb-acard__body { padding: 20px 22px 24px; }
body.pb-animal-page .entry-content .pb-acard__story p { margin: 0 !important; max-width: none !important; font-size: 17px !important; line-height: 1.6 !important; color: var(--pb-ink); }
body.pb-animal-page .entry-content .pb-acard.is-clamped .pb-acard__story { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
body.pb-animal-page .entry-content .pb-acard__more {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin-top: 10px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--pb-blue);
	font-family: var(--pb-font);
	font-weight: 800;
	font-size: 16px;
	text-decoration: underline;
	text-decoration-color: var(--pb-sky);
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
	cursor: pointer;
}
body.pb-animal-page .entry-content .pb-acard__more[hidden] { display: none; }
body.pb-animal-page .entry-content .pb-acard__more:hover { color: var(--pb-navy); }
body.pb-animal-page .entry-content .pb-acard__more:focus-visible { outline: 3px solid var(--pb-navy); outline-offset: 3px; border-radius: 4px; }

/* 04 Cats: "Donate towards NAME's care" */
body.pb-animal-page .entry-content a.pb-acard__give {
	display: block;
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--pb-blue);
	box-shadow: 0 4px 0 var(--pb-navy);
	color: var(--pb-white) !important;
	font-weight: 900;
	font-size: 16px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none !important;
}
body.pb-animal-page .entry-content a.pb-acard__give:hover { background: var(--pb-navy); }
body.pb-animal-page .entry-content a.pb-acard__give:focus-visible { outline: 3px solid var(--pb-navy); outline-offset: 3px; }

/* 05 In Memoriam: grey-green, softer photos (as the pig memorial cards) */
body.pb-animal-page .entry-content .pb-acard--mem .pb-acard__bar { background: #4f6b5c; border-bottom-color: #c9d6ce; }
body.pb-animal-page .entry-content .pb-acard--mem .pb-acard__img { filter: saturate(0.8); }
body.pb-animal-page .entry-content .pb-acard--mem .pb-acard__more { color: #2f4a3d; text-decoration-color: #9fb5a8; }

/* 06 Tablets and phones */
@media (max-width: 1023px) {
	body.pb-animal-page .entry-content ul.pb-acards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 639px) {
	body.pb-animal-page .entry-content ul.pb-acards { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px !important; }
	body.pb-animal-page .entry-content .pb-acard__img { aspect-ratio: 4 / 3; }
}
