/*
 * Our Horses cards (page 1602). Copied from the person card component (1614) and its
 * global classes (sundown-flush, sundown-elev-2, sundown-photo-stitch, sundown-eyebrow,
 * sundown-balance, sundown-pretty) with the same tokens, so dark mode follows them.
 * Grid: 3 columns, 2 at tablet (1024px), 1 on phones (767px), 32px gap, as on the page before.
 */
.sundown-horses {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	width: 100%;
	padding: 0;
}
@media (max-width: 1024px) {
	.sundown-horses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.sundown-horses { grid-template-columns: minmax(0, 1fr); }
}

.sundown-horses .sundown-horse {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: var(--sundown-radius-md, 6px);
	background-color: var(--sundown-surface-raised, #FFFFFF);
	box-shadow: 0 8px 20px 0 var(--sundown-shadow, rgba(0, 0, 0, .18));
}

.sundown-horses .sundown-horse__photo {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: 2px dashed rgba(255, 244, 224, .85);
	outline-offset: -9px;
}
.sundown-horses .sundown-horse__photo--none {
	background: var(--sundown-paper, #F7E6C6);
}

.sundown-horses .sundown-horse__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	align-items: flex-start;
	gap: 8px;
	padding: 24px 28px 28px;
}

.sundown-horses .sundown-horse__eyebrow {
	margin: 0;
	padding: 0;
	font-family: var(--sundown-font-body, Raleway), sans-serif;
	font-weight: 800;
	font-size: var(--sundown-text-label, 13px);
	line-height: 1.5;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--sundown-accent-text, #9A5319);
}

.sundown-horses .sundown-horse__name {
	margin: 0;
	padding: 0;
	font-family: var(--sundown-font-display, Sancreek), Georgia, serif;
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.15;
	letter-spacing: normal;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--sundown-text, #1B2726);
}

.sundown-horses .sundown-horse__about p {
	margin: 0;
	padding: 0;
	font-family: var(--sundown-font-body, Raleway), sans-serif;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.6;
	text-wrap: pretty;
	color: var(--sundown-text, #1B2726);
}
.sundown-horses .sundown-horse__about p + p { margin-top: .8em; }
.sundown-horses .sundown-horse__about a {
	color: inherit;
	text-decoration: underline;
	font-weight: 700;
}

/* Sponsorship: pinned to the bottom of the card, so the bars in a row line up (J.J. chose this, 2026-11-19). */
.sundown-horses .sundown-horse__sponsor,
.sundown-horses .sundown-horse__owner {
	margin: auto 0 0;
	padding-top: 16px;
	width: 100%;
}
.sundown-horses .sundown-horse__sponsor {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.sundown-horses .sundown-horse__by,
.sundown-horses .sundown-horse__owner {
	margin-bottom: 0;
	font-family: var(--sundown-font-body, Raleway), sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--sundown-text-muted, #3A4644);
}
.sundown-horses .sundown-horse__by { margin: 0; padding: 0; }
.sundown-horses .sundown-horse__who {
	font-weight: 700;
	font-size: 19px;
	color: #B91C07;
}

.sundown-horses .sundown-horse__meter {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}
.sundown-horses .sundown-horse__bar {
	position: relative;
	flex: 1 1 auto;
	height: 8px;
	border-radius: 999px;
	overflow: hidden;
	background: color-mix(in srgb, var(--sundown-text, #1B2726) 14%, transparent);
}
.sundown-horses .sundown-horse__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--sundown-green-huron-pine, #2F5F4E);
}
.sundown-horses .sundown-horse__pct {
	flex: 0 0 auto;
	font-family: var(--sundown-font-body, Raleway), sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--sundown-text-muted, #3A4644);
}

/* Dark mode follows the page's Light/Dark choice (data-sundown-theme, set by the
   Sundown theme script); Auto (no attribute) follows the device.
   Ember Red name reads on Charcoal (3.7:1, large text). The bar fill is Sunrise Yellow. */
html[data-sundown-theme="dark"] .sundown-horses .sundown-horse__who { color: #E8341C; }
html[data-sundown-theme="dark"] .sundown-horses .sundown-horse__fill { background: var(--sundown-yellow-sunrise, #FFB612); }
@media (prefers-color-scheme: dark) {
	html:not([data-sundown-theme="light"]) .sundown-horses .sundown-horse__who { color: #E8341C; }
	html:not([data-sundown-theme="light"]) .sundown-horses .sundown-horse__fill { background: var(--sundown-yellow-sunrise, #FFB612); }
}

/* "Sponsor me": the small stitched button (#95 stitch: 2px Arena Red patch, 1px dashed Cream line, Rye). */
.sundown-horses a.sundown-horse__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	box-sizing: border-box;
	margin: 0 0 2px;
	padding: 0 13px;
	border: 2px solid var(--sundown-brand, #B91C07);
	border-radius: 6px;
	background: var(--sundown-brand, #B91C07);
	color: #FFFFFF;
	font: 400 13px/1.2 var(--sundown-font-stitch, "Rye"), Georgia, serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, .35);
	filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .22));
	transition: transform .15s ease, background-color .15s ease;
}
.sundown-horses a.sundown-horse__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px dashed var(--sundown-cream, #FFF4E0);
	border-radius: 4px;
	pointer-events: none;
}
.sundown-horses a.sundown-horse__btn:hover {
	transform: translateY(-2px);
	background: var(--sundown-brand-hover, #8E1504);
	border-color: var(--sundown-brand-hover, #8E1504);
	color: #FFFFFF;
}
.sundown-horses a.sundown-horse__btn:focus-visible {
	outline: 3px solid var(--sundown-focus, #9A5319);
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	.sundown-horses a.sundown-horse__btn { transition: none; }
	.sundown-horses a.sundown-horse__btn:hover { transform: none; }
}
