/*
Theme Name: UK Kennel Club Style Kennel Theme
Theme URI: https://example.com/kennel-club-theme
Author: Sergey Glinsky
Author URI: https://example.com
Description: Premium institutional kennel visiting-card theme inspired by the UK Kennel Club aesthetic. Features dog galleries, pedigree trees, and a classical WordPress administration workflow.
Version: 1.5.29
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kennel-club-theme
Tags: kennel, dogs, pedigree, custom-post-type, custom-menu, custom-logo, featured-images
*/

@font-face {
	font-family: "Perpetua Titling MT";
	src: url("assets/fonts/perpetua-titling-mt-light.ttf") format("truetype");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Palette aligned with Royal Kennel Club brand tokens */
	--primary-color: #005950;
	--primary-hover: #00423c;
	--accent-color: #d2b470;
	--accent-hover: #ab8735;
	--cta-color: #c4541d;
	--cta-hover: #a3400f;
	--bg-light: #f4f6f5;
	--text-main: #3f4547;
	--muted: #8c8f91;
	--white: #ffffff;
	--border-subtle: #dfe4e3;
	--sage: #95a6a0;
	--max-width: 1120px;
	--font-serif: "Lora", Georgia, "Times New Roman", serif;
	--font-title: "Perpetua Titling MT", Perpetua, "Times New Roman", serif;
	--font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--bg-light);
	color: var(--text-main);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--accent-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-serif);
	color: var(--primary-color);
	font-weight: 600;
	line-height: 1.3;
	margin-top: 0;
}

h1 {
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	letter-spacing: 0.02em;
}

h2 {
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

h3 {
	font-size: 1.25rem;
}

p {
	margin-top: 0;
	margin-bottom: 1.15rem;
}

.site-container {
	width: min(100% - 2.5rem, var(--max-width));
	margin-inline: auto;
}

.site-header {
	background-color: var(--primary-color);
	color: var(--white);
	border-bottom: 3px solid var(--accent-color);
}

.site-header--overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 40;
	background-color: transparent;
	border-bottom: 1px solid rgba(210, 180, 112, 0.35);
	transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header--overlay.is-scrolled {
	position: fixed;
	background-color: rgba(0, 89, 80, 0.94);
	border-bottom-color: var(--accent-color);
	backdrop-filter: blur(8px);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 1.25rem 0;
}

.site-branding {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.site-title {
	margin: 0;
	font-family: var(--font-title);
	font-size: 1.9rem;
	font-weight: 300;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.site-title a {
	color: var(--white);
}

.site-title a:hover,
.site-title a:focus {
	color: var(--accent-color);
}

.site-header--overlay .kennel-cover__logo {
	position: absolute;
	top: 0;
	left: max(1.25rem, calc((100% - var(--max-width)) / 2));
	z-index: 2;
}

.has-kennel-cover .site-header--overlay:not(.is-scrolled) .site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.has-kennel-cover .site-header--overlay.is-scrolled .kennel-cover__logo {
	display: none;
}

.kennel-cover__logo {
	margin: 0;
	padding: 0.85rem 0.95rem 0.7rem;
	line-height: 0;
	background-color: rgba(0, 35, 32, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.kennel-cover__logo .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.kennel-cover__logo .custom-logo {
	width: auto;
	height: 150px;
	max-width: min(46vw, 210px);
}

.site-description {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.primary-navigation {
	flex: 1 1 auto;
}

.primary-navigation .menu,
.primary-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.35rem;
	justify-content: flex-end;
}

.primary-navigation a {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.84rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
	color: var(--accent-color);
	border-bottom-color: var(--accent-color);
}

.site-main {
	padding: 2.75rem 0 3.5rem;
	min-height: 55vh;
}

.site-main--cover {
	padding: 0;
	min-height: 0;
}

.home-content {
	padding: 2.75rem 0 3.5rem;
}

.home-panel {
	background-color: var(--white);
	border: 1px solid var(--border-subtle);
	padding: 1.35rem 1.5rem 1.1rem;
}

.home-panel__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--accent-color);
}

.home-panel__title {
	margin: 0;
	padding-bottom: 0;
	border-bottom: 0;
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.home-panel__more {
	flex-shrink: 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--primary-color);
	white-space: nowrap;
}

.home-panel__more:hover,
.home-panel__more:focus {
	color: var(--cta-color);
}

.home-news .home-panel__title,
.home-news > .home-panel > .home-panel__title {
	margin: 0 0 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--accent-color);
}

.home-news,
.home-galleries {
	margin-bottom: 1.25rem;
}

.home-galleries .home-panel {
	padding: 1.35rem 1.5rem 1.35rem;
}

.home-galleries .dog-gallery {
	margin: 0;
	width: 100%;
}

.home-galleries .dog-card {
	padding: 0.9rem;
	gap: 0.75rem;
}

.home-galleries .dog-card__title {
	font-size: 1.05rem;
}

.home-galleries .dog-card__meta {
	font-size: 0.86rem;
}

.home-galleries .dog-card__meta li {
	grid-template-columns: minmax(0, 5.75rem) minmax(0, 1fr);
	gap: 0.35rem;
}

.home-news__list {
	display: grid;
	gap: 0;
}

.home-news__item + .home-news__item {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--border-subtle);
}

.home-news__item .entry-title {
	margin: 0 0 0.35rem;
	font-family: var(--font-serif);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--primary-color);
}

.home-news__item .posted-on {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.home-news__item .entry-summary p:last-child {
	margin-bottom: 0;
}

.home-news__empty {
	margin: 0;
	color: var(--muted);
}

.home-news__more {
	display: flex;
	justify-content: flex-end;
	margin: 0.75rem 0 0;
	padding-top: 0.65rem;
	border-top: 1px solid var(--border-subtle);
}

.home-news__more a {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--primary-color);
}

.home-news__more a:hover,
.home-news__more a:focus {
	color: var(--cta-color);
}


.kennel-cover {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 560px;
	overflow: hidden;
	color: var(--white);
	background-color: var(--primary-color);
}

.kennel-cover__viewport {
	position: absolute;
	inset: 0;
}

.kennel-cover__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 1s ease, transform 6.5s ease;
	pointer-events: none;
}

.kennel-cover__slide.is-active {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.kennel-cover__image,
.kennel-cover__fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kennel-cover__fallback {
	background:
		radial-gradient(circle at 20% 20%, rgba(210, 180, 112, 0.28), transparent 42%),
		linear-gradient(145deg, #002320 0%, #005950 48%, #386763 100%);
}

.kennel-cover__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 89, 80, 0.55) 0%, rgba(0, 89, 80, 0.25) 42%, rgba(0, 89, 80, 0.78) 100%),
		linear-gradient(90deg, rgba(0, 89, 80, 0.35), transparent 55%);
	pointer-events: none;
}

.kennel-cover__overlay {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: min(100% - 2.5rem, var(--max-width));
	margin-inline: auto;
	padding: 7.5rem 0 2.25rem;
}

.kennel-cover__content {
	max-width: 42rem;
}

.kennel-cover__eyebrow {
	margin: 0 0 0.85rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent-color);
}

.kennel-cover__brand {
	margin: 0 0 0.85rem;
	font-family: var(--font-title);
	font-size: clamp(2.8rem, 7vw, 5rem);
	font-weight: 300;
	letter-spacing: 0.06em;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--white);
}

.kennel-cover__lead {
	margin: 0 0 1.75rem;
	max-width: 34rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}

.kennel-cover__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.kennel-cover__button {
	display: inline-block;
	padding: 0.8rem 1.35rem;
	border: 1px solid var(--cta-color);
	background-color: var(--cta-color);
	color: var(--white);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.kennel-cover__button:hover,
.kennel-cover__button:focus {
	background-color: var(--cta-hover);
	color: var(--white);
	border-color: var(--cta-hover);
}

.kennel-cover__button--ghost {
	background-color: transparent;
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.7);
}

.kennel-cover__button--ghost:hover,
.kennel-cover__button--ghost:focus {
	border-color: var(--accent-color);
	color: var(--accent-color);
}

.kennel-cover__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.5rem;
	width: 100%;
}

.kennel-cover__controls {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	color: var(--white);
}

.kennel-cover__arrow {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--white);
	font-size: 1.2rem;
	line-height: 1;
	padding: 0.55rem 0.35rem;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.kennel-cover__arrow:hover,
.kennel-cover__arrow:focus {
	opacity: 1;
	color: var(--accent-color);
}

.kennel-cover__count {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	font-weight: 600;
}

.kennel-cover__divider {
	display: inline-block;
	width: 1px;
	height: 1.6rem;
	background-color: rgba(255, 255, 255, 0.55);
	transform: rotate(25deg);
}

.kennel-cover__down {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.45);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.kennel-cover__down:hover,
.kennel-cover__down:focus {
	color: var(--accent-color);
	border-color: var(--accent-color);
}

.kennel-cover__down-icon {
	width: 0.7rem;
	height: 0.7rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	animation: kennel-cover-bounce 2s infinite;
}

@keyframes kennel-cover-bounce {
	0%,
	100% {
		transform: rotate(45deg) translateY(-4px);
	}
	50% {
		transform: rotate(45deg) translateY(2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.kennel-cover__slide,
	.kennel-cover__slide.is-active,
	.kennel-cover__down-icon,
	.site-header--overlay {
		animation: none;
		transition: none;
		transform: none;
	}
}

.page-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-subtle);
}

.page-header .page-title {
	margin-bottom: 0.35rem;
}

.page-header .posted-on {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.page-header .archive-description,
.entry-summary {
	color: var(--muted);
}

.news-article .entry-content,
.news-article .page-content {
	margin-top: 0.25rem;
}

/* Article typography: assets/css/content-typography.css */

.page-parent-link {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
}

.page-parent-link a {
	color: var(--accent-color);
	text-decoration: none;
}

.page-parent-link a:hover {
	text-decoration: underline;
}

.articles-index {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.articles-index li {
	margin: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.articles-index a {
	display: block;
	padding: 0.7rem 0;
	color: inherit;
	text-decoration: none;
}

.articles-index a:hover {
	color: var(--accent-color);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
	display: inline-block;
	background-color: var(--cta-color);
	color: var(--white);
	border: 1px solid var(--cta-color);
	padding: 0.7rem 1.4rem;
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
.button:focus,
.wp-block-button__link:focus,
button:focus,
input[type="submit"]:focus {
	background-color: var(--cta-hover);
	color: var(--white);
	border-color: var(--cta-hover);
}

.dog-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.dog-card {
	background-color: var(--white);
	border: 1px solid var(--accent-color);
	padding: 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	height: 100%;
	min-width: 0;
	width: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dog-card:hover {
	box-shadow: 0 10px 28px rgba(0, 89, 80, 0.08);
	transform: translateY(-2px);
}

.dog-card__media {
	position: relative;
	overflow: hidden;
	background-color: var(--bg-light);
	aspect-ratio: 4 / 3;
}

.dog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dog-card__placeholder {
	width: 100%;
	height: 100%;
	min-height: 100%;
	display: grid;
	place-items: center;
	gap: 0.35rem;
	color: rgba(0, 89, 80, 0.45);
	font-family: var(--font-serif);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	background:
		linear-gradient(135deg, rgba(210, 180, 112, 0.12), transparent 48%),
		repeating-linear-gradient(
			-45deg,
			rgba(0, 89, 80, 0.03),
			rgba(0, 89, 80, 0.03) 8px,
			transparent 8px,
			transparent 16px
		),
		var(--bg-light);
	border: 1px solid var(--accent-color);
	box-sizing: border-box;
}

.dog-card__placeholder::before {
	content: "";
	width: 2.2rem;
	height: 2.2rem;
	border: 1px solid rgba(210, 180, 112, 0.7);
	border-radius: 2px;
	background:
		linear-gradient(to bottom right, transparent 46%, rgba(0, 89, 80, 0.25) 48%, rgba(0, 89, 80, 0.25) 52%, transparent 54%),
		linear-gradient(to bottom left, transparent 46%, rgba(0, 89, 80, 0.25) 48%, rgba(0, 89, 80, 0.25) 52%, transparent 54%);
}

.dog-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	flex: 1;
}

.dog-card__title {
	margin: 0;
	font-size: 1.15rem;
}

.dog-card__title a {
	color: var(--primary-color);
}

.dog-card__meta {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.35rem;
	font-size: 0.92rem;
}

.dog-card__meta li {
	display: grid;
	grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr);
	gap: 0.45rem;
}

.dog-card__meta-label,
.dog-card__meta-value {
	min-width: 0;
	overflow-wrap: anywhere;
}

.dog-card__meta-label {
	color: var(--muted);
	font-weight: 500;
}

.dog-card__meta-value {
	color: var(--text-main);
}

.status-badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	background-color: var(--accent-color);
	color: var(--primary-color);
	padding: 0.35rem 0.7rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dog-card.is-available .status-badge,
.is-available .status-badge {
	display: inline-block;
}

.status-badge--reserved {
	background-color: var(--primary-color);
	color: var(--white);
}

.status-badge--sold {
	background-color: #6b6b6b;
	color: var(--white);
}

.dog-profile {
	display: grid;
	gap: 2rem;
}

.dog-profile__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

.dog-profile__photo {
	background-color: var(--white);
	border: 1px solid var(--accent-color);
	padding: 1rem;
}

.dog-profile__photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.dog-photo-gallery {
	margin-top: 0.5rem;
}

.dog-photo-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.dog-photo-gallery__item {
	margin: 0;
	background-color: var(--white);
	border: 1px solid var(--accent-color);
	overflow: hidden;
}

.dog-photo-gallery__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.dog-photo-gallery__item a:hover img,
.dog-photo-gallery__item a:focus img {
	transform: scale(1.03);
}

@media (max-width: 768px) {
	.dog-photo-gallery__grid {
		grid-template-columns: 1fr;
	}
}

.dog-profile__details {
	background-color: var(--white);
	border: 1px solid var(--border-subtle);
	padding: 1.75rem;
}

.dog-profile__details h1 {
	margin-bottom: 1rem;
}

.dog-profile__facts {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
}

.dog-profile__facts li {
	display: grid;
	grid-template-columns: 10rem 1fr;
	gap: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border-subtle);
}

.dog-profile__facts li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.dog-profile__facts dt,
.dog-profile__facts .label {
	font-weight: 600;
	color: var(--primary-color);
	font-size: 0.88rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pedigree-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.pedigree-section__header .section-title {
	margin-bottom: 0;
	flex: 1 1 auto;
}

.pedigree-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.pedigree-switcher__btn {
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.55rem;
	border: 1px solid var(--accent-color);
	background: transparent;
	color: var(--primary-color);
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}

.pedigree-switcher__btn.is-active,
.pedigree-switcher__btn:hover,
.pedigree-switcher__btn:focus {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--white);
}

.pedigree-switcher__label {
	margin-left: 0.35rem;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.pedigree-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.5rem;
}

.pedigree {
	display: grid;
	grid-template-columns: repeat(var(--pedigree-gens, 3), minmax(140px, 1fr));
	grid-template-rows: repeat(var(--pedigree-rows, 4), minmax(64px, auto));
	min-width: calc(var(--pedigree-gens, 3) * 150px);
	border: 1px solid var(--accent-color);
	background-color: var(--white);
}

.pedigree__cell {
	border: 1px solid var(--accent-color);
	padding: 0.7rem 0.85rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
	background-color: var(--white);
}

.pedigree__subject {
	background-color: var(--bg-light);
}

.pedigree__generation {
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-color);
}

.pedigree__name {
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--primary-color);
	word-break: break-word;
}

.pedigree__name a {
	color: inherit;
	border-bottom: 1px solid rgba(210, 180, 112, 0.55);
}

.pedigree__name a:hover,
.pedigree__name a:focus {
	color: var(--accent-color);
}

.file-library__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.file-library__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 0.85rem 0;
}

.file-library__item + .file-library__item {
	border-top: 1px solid var(--border-subtle);
}

.file-library__title {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
}

.file-library__title a {
	color: var(--primary-color);
}

.file-library__excerpt {
	margin: 0;
}

.file-library__excerpt p:last-child {
	margin-bottom: 0;
}

.file-library__meta {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: var(--muted);
}

.file-library__action {
	margin: 0;
	flex-shrink: 0;
}

.file-library__action .button {
	padding: 0.55rem 1rem;
	font-size: 0.75rem;
}

@media (max-width: 700px) {
	.file-library__item {
		flex-direction: column;
	}
}

/* Gallery → carousel inside articles/news */
.entry-content .wp-block-gallery.kennel-carousel,
.page-content .wp-block-gallery.kennel-carousel {
	position: relative;
	display: block !important;
	flex-wrap: nowrap !important;
	margin: 1.5rem 0;
	padding: 0;
	gap: 0 !important;
}

.kennel-carousel__viewport {
	overflow: hidden;
	border: 1px solid var(--border-subtle);
	background: #eaecec;
	height: min(70vw, 560px);
}

.kennel-carousel__track {
	display: flex;
	align-items: stretch;
	height: 100%;
	transition: transform 0.35s ease;
	will-change: transform;
}

.kennel-carousel__slide,
.kennel-carousel .wp-block-image.kennel-carousel__slide,
.kennel-carousel figure.kennel-carousel__slide {
	position: relative !important;
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
	height: 100% !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #eaecec;
}

/* Kill WP gallery crop/absolute positioning */
.kennel-carousel.kennel-carousel.is-cropped .kennel-carousel__slide::before,
.kennel-carousel .kennel-carousel__slide::before {
	content: none !important;
	display: none !important;
	padding: 0 !important;
}

.kennel-carousel__slide > a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.kennel-carousel__slide img,
.kennel-carousel.is-cropped .kennel-carousel__slide img,
.kennel-carousel.has-nested-images .kennel-carousel__slide img,
.kennel-carousel .wp-block-image img {
	position: static !important;
	inset: auto !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
	display: block !important;
	margin: 0 auto !important;
}

.kennel-carousel__slide:has(figcaption) {
	padding-bottom: 2.5rem !important;
}

.kennel-carousel__slide figcaption {
	position: absolute !important;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100% !important;
	margin: 0 !important;
	padding: 0.55rem 1rem !important;
	font-size: 0.88rem !important;
	line-height: 1.4;
	color: var(--muted) !important;
	text-align: center;
	background: rgba(255, 255, 255, 0.94) !important;
}

@media (max-width: 700px) {
	.kennel-carousel__viewport {
		height: min(85vw, 360px);
	}
}

.kennel-carousel__arrow {
	appearance: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--border-subtle);
	background: rgba(255, 255, 255, 0.92);
	color: var(--primary-color);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.kennel-carousel__arrow--prev {
	left: 0.75rem;
}

.kennel-carousel__arrow--next {
	right: 0.75rem;
}

.kennel-carousel__arrow:hover,
.kennel-carousel__arrow:focus {
	border-color: var(--accent-color);
	color: var(--cta-color);
}

.kennel-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	margin-top: 0.85rem;
}

.kennel-carousel__dot {
	appearance: none;
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--border-subtle);
	cursor: pointer;
}

.kennel-carousel__dot.is-active {
	background: var(--primary-color);
}

@media (prefers-reduced-motion: reduce) {
	.kennel-carousel__track {
		transition: none;
	}
}

.posts-list {
	display: grid;
	gap: 1.5rem;
}

.post-card {
	background-color: var(--white);
	border: 1px solid var(--border-subtle);
	padding: 1.5rem 1.75rem;
}

.post-card h2 {
	margin-bottom: 0.5rem;
	font-size: 1.35rem;
}

.post-card .posted-on {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero-panel {
	background-color: var(--white);
	border: 1px solid var(--accent-color);
	padding: 2.25rem;
	margin-bottom: 2.5rem;
}

.hero-panel__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-color);
}

.hero-panel p:last-child {
	margin-bottom: 0;
}

.section-title {
	margin-bottom: 1.25rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--accent-color);
}

.site-footer {
	background-color: var(--primary-color);
	color: rgba(255, 255, 255, 0.82);
	border-top: 3px solid var(--accent-color);
	padding: 2rem 0;
	margin-top: auto;
}

.site-footer a {
	color: var(--accent-color);
}

.site-footer__inner {
	display: flex;
	justify-content: center;
	text-align: center;
}

.site-footer__copy {
	margin: 0;
	font-size: 0.88rem;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.alignwide,
.alignfull {
	max-width: none;
}

@media (max-width: 900px) {
	.dog-profile__hero {
		grid-template-columns: 1fr;
	}

	.dog-card__meta li,
	.dog-profile__facts li {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}
}

@media (max-width: 768px) {
	.site-header__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.primary-navigation .menu,
	.primary-navigation ul {
		justify-content: flex-start;
	}

	.hero-panel {
		padding: 1.5rem;
	}

	.site-container {
		width: min(100% - 1.5rem, var(--max-width));
	}

	.kennel-cover {
		min-height: 100svh;
	}

	.kennel-cover__overlay {
		width: min(100% - 1.5rem, var(--max-width));
		padding-top: 6.5rem;
		padding-bottom: 1.5rem;
	}

	.has-kennel-cover .site-header--overlay .kennel-cover__logo {
		display: none;
	}

	.has-kennel-cover .site-header--overlay:not(.is-scrolled) .site-title {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0;
		overflow: visible;
		clip: auto;
		white-space: normal;
	}

	.kennel-cover__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
	}

	.kennel-cover__down {
		align-self: flex-end;
	}
}
