.breed-detail-page { max-width: 1180px; margin: 0 auto; }
.breed-detail-animal-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 10px; margin: 0 0 24px; }
.breed-detail-animal-link { display: flex; min-height: 78px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 9px; border: 1px solid #e1e9e3; border-radius: 12px; background: #fff; color: #315746; font-weight: 700; text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.breed-detail-animal-link:hover, .breed-detail-animal-link.is-current { border-color: #9dc5a8; background: #f1f8f2; color: #234b3c; }
.breed-detail-animal-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(35, 75, 60, .1); }
.breed-detail-animal-link:focus-visible { outline: 3px solid #247a56 !important; outline-offset: 3px; }
.breed-detail-animal-link img { width: 34px; height: 34px; object-fit: contain; }
.breed-detail-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr); grid-template-areas: "heading image" "description image"; grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; overflow: hidden; margin-bottom: 28px; padding: 28px; border: 1px solid #e0ebe3; border-radius: 18px; background: linear-gradient(135deg, #f1f8f2, #fff 72%); }
.breed-detail-heading { grid-area: heading; min-width: 0; }
.breed-detail-eyebrow { margin: 0 0 7px; color: #438061; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.breed-detail-title { margin: 0 0 17px; color: #234b3c; font-size: 34px; line-height: 1.18; overflow-wrap: anywhere; }
.breed-detail-description { grid-area: description; min-width: 0; color: #53645a; font-size: 16px; line-height: 1.8; }
.breed-detail-description p { margin: 0 0 16px; }
.breed-detail-description p:last-child { margin-bottom: 0; }
.breed-detail-media { grid-area: image; min-width: 0; }
.breed-detail-video-list { display: grid; gap: 18px; margin-top: 18px; }
.breed-detail-video-item { overflow: hidden; border: 5px solid rgba(255,255,255,.9); border-radius: 15px; background: #fff; box-shadow: 0 12px 30px rgba(35, 75, 60, .13); }
.breed-detail-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.breed-detail-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.breed-detail-video-actions { padding: 10px 12px; font-size: 13px; color: #344b3d; }
.breed-detail-video [hidden] { display: none; }
.breed-detail-image-wrap { min-width: 0; overflow: hidden; margin: 0; border: 5px solid rgba(255,255,255,.9); border-radius: 15px; background: #eaf1eb; box-shadow: 0 12px 30px rgba(35, 75, 60, .13); }
.breed-detail-image { display: block; width: 100%; max-height: 430px; aspect-ratio: 4 / 3; object-fit: contain; }
.breed-detail-empty-image { display: grid; min-height: 240px; place-items: center; color: #617168; text-align: center; }
.breed-detail-commons-caption { padding: 10px 12px; color: #344b3d; background: #fff; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.breed-detail-commons-caption a { color: #1b6542; text-decoration: underline; }
.breed-detail-report { display: block; margin-top: 8px; padding: 6px 10px; border: 1px solid #347653; border-radius: 7px; background: #fff; color: #234b3c; cursor: pointer; }
.breed-detail-report:disabled { cursor: default; opacity: .7; }
.breed-detail-report-status { display: block; margin-top: 6px; }
.breed-detail-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; background: #fff; }
.breed-detail-carousel-controls button { padding: 7px 12px; border: 1px solid #347653; border-radius: 7px; background: #fff; color: #234b3c; cursor: pointer; }
.breed-detail-carousel-controls button:focus-visible { outline: 3px solid #247a56; outline-offset: 2px; }
.breed-detail-image-wrap [hidden] { display: none; }
.breed-detail-references { margin-bottom: 28px; padding: 24px 28px; border: 1px solid #e0ebe3; border-radius: 18px; background: #fff; }
.breed-detail-references h2 { margin: 0 0 8px; color: #234b3c; font-size: 21px; }
.breed-detail-references p { margin: 0 0 16px; color: #53645a; }
.breed-detail-reference-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.breed-detail-reference-links a { display: inline-block; padding: 10px 14px; border: 1px solid #b9d5c0; border-radius: 9px; background: #f1f8f2; color: #234b3c; font-weight: 700; }
.breed-detail-reference-links a:hover { border-color: #347653; background: #e7f2e9; color: #234b3c; }
.breed-detail-reference-links a:focus-visible { outline: 3px solid #247a56 !important; outline-offset: 3px; }
#footer > .container:first-child { display: none; }
@media (max-width: 767px) {
	.breed-detail-animal-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
	.breed-detail-animal-link { min-height: 74px; }
	.breed-detail-hero { grid-template-columns: 1fr; grid-template-areas: "heading" "image" "description"; grid-template-rows: auto; gap: 20px; padding: 20px; border-radius: 14px; }
	.breed-detail-title { font-size: 27px; }
	.breed-detail-heading .breed-detail-title { margin-bottom: 0; }
	.breed-detail-description { font-size: 15px; }
	.breed-detail-image { max-height: 340px; }
	.breed-detail-references { padding: 20px; border-radius: 14px; }
}
@media (orientation: portrait) and (max-width: 1199px) {
	.side-header:not(.open-header) #wrapper #content .breed-detail-container { width: 100% !important; max-width: none; margin: 0; padding: 0 10px; }
	#content .content-wrap { padding-top: 24px; padding-bottom: 24px; }
	.breed-detail-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "image" "description"; grid-template-rows: auto; gap: 20px; padding: 12px; }
	.breed-detail-heading .breed-detail-title { margin-bottom: 0; }
	.breed-detail-references { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.breed-detail-animal-link { transition: none; }
}
.breed-detail-facts { margin-top: 18px; padding: 16px 18px; border: 1px solid #e0ebe3; border-radius: 15px; background: #fff; color: #344b3d; font-size: 14px; }
.breed-detail-facts dl { display: grid; gap: 8px; margin: 0 0 12px; }
.breed-detail-facts dl div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid #edf3ee; }
.breed-detail-facts dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.breed-detail-facts dt { margin: 0; color: #438061; font-weight: 700; }
.breed-detail-facts dd { margin: 0; text-align: right; }
.breed-detail-facts [hidden] { display: none; }
.breed-detail-facts-source { margin: 0; color: #718076; font-size: 12px; }
.breed-detail-facts-source a { color: #438061; text-decoration: underline; }

.breed-detail-photo-credit { margin-top: 6px; font-size: 12px; color: #6b7280; }
.breed-detail-photo-credit a { color: inherit; text-decoration: underline; }
