/* ==========================================================================
   PawHaven — "The Pet Scrapbook"
   main.css: tokens, base, header, homepage, cards, sidebar, footer, utilities
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--bg: #FFF8F1;
	--card: #FFFFFF;
	--kraft: #E9D8C1;
	--kraft-ink: #5C4633;
	--text: #2B1D14;
	--muted: #6B5A4E;
	--border: #F1E4D6;
	--border-strong: #DCC7B1;
	--primary: #F97316;
	--secondary: #14B8A6;
	--accent: #FACC15;
	--blue: #38BDF8;
	--link: #C2410C;
	--on-pet: #2B1D14;
	--pet: var(--primary);
	--pet-soft: color-mix(in srgb, var(--pet) 16%, transparent);
	--pet-ink: #9A3412;
	--focus: #2563EB;
	--danger: #B91C1C;
	--success: #047857;
	--overlay: rgba(43, 29, 20, .55);
	--header-bg: rgba(255, 248, 241, .82);
	--tape-1: rgba(250, 204, 21, .62);
	--tape-2: rgba(20, 184, 166, .45);
	--tape-3: rgba(249, 115, 22, .45);
	--tape-4: rgba(244, 114, 182, .45);
	--sky-top: #BDE7FF;
	--sky-bottom: #FFF1DA;
	--shadow-sm: 0 1px 2px rgba(43, 29, 20, .06), 0 2px 8px rgba(43, 29, 20, .06);
	--shadow-md: 0 4px 10px rgba(43, 29, 20, .07), 0 12px 28px rgba(43, 29, 20, .10);
	--shadow-lg: 0 10px 20px rgba(43, 29, 20, .10), 0 24px 56px rgba(43, 29, 20, .16);
	--paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
	--r-sm: 8px; --r-md: 12px; --r-lg: 24px; --r-pill: 999px;
	--f-head: "Fraunces", "Iowan Old Style", Georgia, serif;
	--f-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease-out: cubic-bezier(0, 0, .2, 1);
	--ease-in: cubic-bezier(.4, 0, 1, 1);
	--ease-spring: cubic-bezier(.34, 1.56, .64, 1);
	--dur: 250ms;
	--container: 1240px;
	--header-h: 72px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* Personalisation: accent shifts with the chosen buddy */
[data-pet="cat"]  { --pet: var(--secondary); --pet-ink: #0F766E; }
[data-pet="bird"] { --pet: var(--accent);    --pet-ink: #854D0E; }
[data-pet="fish"] { --pet: var(--blue);      --pet-ink: #0369A1; }

/* Dark ("Night Walk") */
[data-theme="dark"] {
	--bg: #16110D;
	--card: #221A14;
	--kraft: #2E2319;
	--kraft-ink: #E3CFB8;
	--text: #F5EDE6;
	--muted: #B8A89A;
	--border: #3A2D23;
	--border-strong: #54432F;
	--primary: #FB923C;
	--secondary: #2DD4BF;
	--accent: #FDE047;
	--blue: #7DD3FC;
	--link: #FDBA74;
	--on-pet: #1A120C;
	--pet-ink: #FDBA74;
	--focus: #93C5FD;
	--danger: #FCA5A5;
	--success: #6EE7B7;
	--overlay: rgba(0, 0, 0, .65);
	--header-bg: rgba(22, 17, 13, .80);
	--tape-1: rgba(253, 224, 71, .38);
	--tape-2: rgba(45, 212, 191, .32);
	--tape-3: rgba(251, 146, 60, .34);
	--tape-4: rgba(244, 114, 182, .32);
	--sky-top: #0B1330;
	--sky-bottom: #2A1E3F;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
	--shadow-md: 0 4px 10px rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .4);
	--shadow-lg: 0 10px 20px rgba(0, 0, 0, .4), 0 24px 56px rgba(0, 0, 0, .5);
	color-scheme: dark;
}
[data-theme="dark"][data-pet="cat"]  { --pet-ink: #5EEAD4; }
[data-theme="dark"][data-pet="bird"] { --pet-ink: #FDE047; }
[data-theme="dark"][data-pet="fish"] { --pet-ink: #7DD3FC; }
/* No-JS fallback follows the OS */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--bg: #16110D; --card: #221A14; --kraft: #2E2319; --kraft-ink: #E3CFB8; --text: #F5EDE6; --muted: #B8A89A;
		--border: #3A2D23; --border-strong: #54432F; --primary: #FB923C; --secondary: #2DD4BF; --accent: #FDE047;
		--link: #FDBA74; --on-pet: #1A120C; --pet-ink: #FDBA74; --header-bg: rgba(22, 17, 13, .8); --focus: #93C5FD;
		--sky-top: #0B1330; --sky-bottom: #2A1E3F; color-scheme: dark;
	}
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
	transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, fill var(--dur) ease !important;
}
body {
	margin: 0;
	background: var(--bg) var(--paper);
	color: var(--text);
	font-family: var(--f-body);
	font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
	line-height: 1.75;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.015em;
	margin: 0 0 var(--s4);
	color: var(--text);
	text-wrap: balance;
}
p { margin: 0 0 var(--s4); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pet); color: var(--on-pet); }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000; top: 12px; left: 12px;
	padding: 12px 20px; background: var(--card); color: var(--text); border-radius: var(--r-md); box-shadow: var(--shadow-md);
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.25em; height: 1.25em; flex: none; }
.i-sm { width: 1em; height: 1em; }

/* ---------- 3. Buttons, pills, stickers ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
	min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill); border: 2px solid transparent;
	font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
	transition: transform 150ms var(--ease-spring), box-shadow var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--pet); color: var(--on-pet); box-shadow: 0 3px 0 color-mix(in srgb, var(--pet) 55%, #000); }
.btn-primary:hover { box-shadow: 0 5px 0 color-mix(in srgb, var(--pet) 55%, #000); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--text); box-shadow: 0 3px 0 var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.btn[aria-busy="true"] .i { animation: ph-bounce .6s var(--ease-out) infinite alternate; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill);
	background: transparent; border: 0; color: var(--text); transition: background-color 150ms, transform 150ms var(--ease-spring);
}
.icon-btn:hover { background: var(--pet-soft); }
.icon-btn:active { transform: scale(.92); }

.pill {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill);
	font-size: .8125rem; font-weight: 800; line-height: 1.4; text-decoration: none;
	background: var(--cat, var(--pet)); color: #2B1D14;
}
a.pill:hover { text-decoration: none; filter: saturate(1.2); }

.sticker {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill);
	background: var(--card); color: var(--text); font-weight: 800; font-size: .9375rem;
	border: 3px solid #fff; box-shadow: var(--shadow-md); transform: rotate(var(--rot, -3deg));
}
[data-theme="dark"] .sticker { border-color: #3A2D23; }
.sticker .i { color: var(--cat, var(--pet-ink)); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s3);
	font-weight: 800; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pet-ink);
}

/* Washi tape */
.tape {
	position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; z-index: 3; pointer-events: none;
	background: var(--tape, var(--tape-1));
	transform: translateX(-50%) rotate(var(--tape-rot, -3deg));
	transform-origin: 20% 50%;
	clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
	transition: transform 300ms var(--ease-spring);
	box-shadow: inset 0 0 0 100px rgba(255, 255, 255, .06);
}

/* Hand-drawn wavy divider */
.wavy {
	height: 14px; width: 100%; color: var(--border-strong); background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14'%3E%3Cpath d='M0 7c6-6 10-6 16 0s10 6 16 0 10-6 16 0' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 48px 14px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14'%3E%3Cpath d='M0 7c6-6 10-6 16 0s10 6 16 0 10-6 16 0' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 48px 14px;
}
.doodle { position: absolute; color: var(--border-strong); pointer-events: none; opacity: .9; }
.doodle svg { width: 100%; height: 100%; }

/* ---------- 4. Ticker + header ---------- */
.ticker {
	background: var(--text); color: var(--bg); font-size: .9375rem; font-weight: 700;
}
.ticker .container { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.ticker a { color: inherit; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ticker a:hover { text-decoration: underline; }
.ticker .i { color: var(--pet); }
.ticker-label { background: var(--pet); color: var(--on-pet); padding: 2px 10px; border-radius: var(--r-pill); font-size: .8125rem; flex: none; }

.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); }
.site-header::before {
	content: ""; position: absolute; inset: 0; background: var(--header-bg);
	-webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--border); transform-origin: top;
	transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.site-header.is-scrolled::before { transform: scaleY(.84); box-shadow: var(--shadow-sm); }
.header-inner {
	position: relative; display: flex; align-items: center; gap: var(--s4); height: 100%;
	transition: transform var(--dur) var(--ease-out);
}
.site-header.is-scrolled .header-inner { transform: translateY(-6px); }
.site-header.is-scrolled .brand { transform: scale(.92); }

.brand {
	display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: var(--text);
	transform-origin: left center; transition: transform var(--dur) var(--ease-out);
}
.brand img { max-height: 48px; width: auto; }
.brand-mark {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; transform: rotate(-8deg);
	background: var(--pet); color: var(--on-pet); box-shadow: 0 3px 0 color-mix(in srgb, var(--pet) 55%, #000);
	transition: transform 300ms var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(8deg) scale(1.06); }
.brand-mark .i { width: 24px; height: 24px; }
.brand-name { font-family: var(--f-head); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }

.primary-nav { margin-inline: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav a {
	position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px;
	color: var(--text); font-weight: 700; font-size: .9875rem; text-decoration: none; border-radius: var(--r-pill);
}
.primary-nav > ul > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 3px;
	background: var(--pet); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li.current-menu-item > a::after,
.primary-nav > ul > li.current-menu-ancestor > a::after,
.primary-nav > ul > li.current-category-ancestor > a::after { transform: scaleX(1); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--pet-ink); }
.primary-nav .menu-item-has-children > a .i { width: 16px; height: 16px; transition: transform var(--dur); }
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 8px;
	background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px) rotate(-1deg);
	transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav li:hover > a .i, .primary-nav li:focus-within > a .i { transform: rotate(180deg); }
.primary-nav .sub-menu a { display: flex; width: 100%; border-radius: var(--r-sm); }
.primary-nav .sub-menu a:hover { background: var(--pet-soft); }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav + .header-actions { margin-left: 0; }
.pet-switch { position: relative; }
.pet-switch-btn .pet-ico { display: none; }
.pet-switch-btn .pet-ico[data-for="all"] { display: block; }
[data-pet="dog"] .pet-switch-btn .pet-ico[data-for="all"],
[data-pet="cat"] .pet-switch-btn .pet-ico[data-for="all"],
[data-pet="bird"] .pet-switch-btn .pet-ico[data-for="all"],
[data-pet="fish"] .pet-switch-btn .pet-ico[data-for="all"] { display: none; }
[data-pet="dog"] .pet-switch-btn .pet-ico[data-for="dog"],
[data-pet="cat"] .pet-switch-btn .pet-ico[data-for="cat"],
[data-pet="bird"] .pet-switch-btn .pet-ico[data-for="bird"],
[data-pet="fish"] .pet-switch-btn .pet-ico[data-for="fish"] { display: block; }
.pet-menu {
	position: absolute; right: 0; top: calc(100% + 8px); display: grid; grid-template-columns: repeat(5, auto); gap: 6px; padding: 10px;
	background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.pet-menu[hidden] { display: none; }
.pet-menu button {
	display: grid; justify-items: center; gap: 2px; min-width: 56px; min-height: 56px; padding: 6px; border: 2px solid transparent;
	border-radius: var(--r-md); background: var(--bg); font-size: .75rem; font-weight: 800;
}
.pet-menu button[aria-pressed="true"] { border-color: var(--pet); background: var(--pet-soft); }

/* Theme switch: sun/moon with a sliding paw */
.theme-toggle {
	position: relative; width: 64px; height: 36px; margin-inline: 4px; padding: 0; border: 2px solid var(--border-strong);
	border-radius: var(--r-pill); background: linear-gradient(90deg, #FFE7A8, #BDE7FF);
}
.theme-toggle::after { content: ""; position: absolute; inset: -6px -2px; } /* 44px hit area */
[data-theme="dark"] .theme-toggle { background: linear-gradient(90deg, #1E1B4B, #312E81); }
.theme-toggle .tt-ico { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; transition: opacity var(--dur), transform var(--dur) var(--ease-out); }
.theme-toggle .tt-sun { left: 8px; color: #B45309; }
.theme-toggle .tt-moon { right: 8px; color: #FDE68A; opacity: .5; }
.theme-toggle .tt-knob {
	position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; display: grid; place-items: center;
	border-radius: 50%; background: #fff; color: var(--primary); box-shadow: var(--shadow-sm);
	transition: transform 350ms var(--ease-spring);
}
.theme-toggle .tt-knob .i { width: 16px; height: 16px; transition: transform 350ms var(--ease-spring); }
[data-theme="dark"] .theme-toggle .tt-knob { transform: translateX(28px); background: #FEF3C7; color: #312E81; }
[data-theme="dark"] .theme-toggle .tt-knob .i { transform: rotate(360deg); }
[data-theme="dark"] .theme-toggle .tt-sun { opacity: .45; }
[data-theme="dark"] .theme-toggle .tt-moon { opacity: 1; }

.menu-toggle { display: none; }
.menu-toggle .bars { position: relative; width: 22px; height: 16px; }
.menu-toggle .bars span {
	position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
	transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 7px; }
.menu-toggle .bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
	.primary-nav, .header-cta { display: none; }
	.menu-toggle { display: inline-grid; }
	.header-actions { margin-left: auto; }
}
@media (max-width: 420px) {
	.header-inner { gap: 8px; }
	.header-actions { gap: 0; }
	.brand { gap: 8px; }
	.brand-mark { width: 36px; height: 36px; border-radius: 12px; }
	.brand-name { font-size: 1.1875rem; }
	.theme-toggle { margin-inline: 2px; }
}
@media (max-width: 359px) {
	.site-header .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

/* Off-canvas */
.drawer-overlay { position: fixed; inset: 0; z-index: 80; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity var(--dur), visibility var(--dur); }
.drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(360px, 88vw); overflow-y: auto; padding: 20px;
	background: var(--bg) var(--paper); box-shadow: var(--shadow-lg); transform: translateX(105%); visibility: hidden;
	transition: transform 300ms var(--ease-out), visibility 300ms;
}
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li { position: relative; border-bottom: 1px dashed var(--border-strong); }
.drawer a { display: flex; align-items: center; min-height: 48px; padding: 8px 48px 8px 4px; color: var(--text); font-weight: 800; text-decoration: none; }
.drawer .sub-menu { display: none; padding: 0 0 8px 16px; }
.drawer .sub-menu li { border: 0; }
.drawer .sub-menu a { font-weight: 600; min-height: 44px; }
.drawer li.is-open > .sub-menu { display: block; }
.drawer .sub-toggle { position: absolute; right: 0; top: 2px; }
.drawer .sub-toggle .i { transition: transform var(--dur); }
.drawer li.is-open > .sub-toggle .i { transform: rotate(180deg); }
.drawer .btn { width: 100%; margin-top: 20px; }

/* Search overlay */
.search-overlay {
	position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start;
	padding: clamp(64px, 12vh, 140px) var(--gutter) 24px; background: var(--overlay);
	opacity: 0; visibility: hidden; transition: opacity var(--dur), visibility var(--dur);
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-panel {
	position: relative; width: min(720px, 100%); max-height: 100%; overflow-y: auto; padding: 28px;
	background: var(--bg) var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
	transform: translateY(-16px) scale(.97) rotate(-.6deg); transition: transform 300ms var(--ease-spring);
}
.search-overlay.is-open .search-panel { transform: none; }
.search-panel .tape { top: -10px; }
.search-close { position: absolute; top: 12px; right: 12px; }
.search-results { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.search-results a {
	display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-md); color: var(--text); text-decoration: none;
	background: var(--card); border: 1px solid var(--border);
}
.search-results a:hover, .search-results a:focus-visible { border-color: var(--pet); }
.search-results img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.search-results strong { display: block; font-weight: 800; line-height: 1.35; }
.search-results small { color: var(--muted); }
.search-hint { color: var(--muted); font-size: .9375rem; margin: 12px 4px 0; }

.search-form { position: relative; display: flex; align-items: center; }
.search-form .i { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.search-form input[type="search"] {
	width: 100%; min-height: 56px; padding: 12px 120px 12px 50px; border: 2px solid var(--border-strong); border-radius: var(--r-pill);
	background: var(--card); color: var(--text); font-size: 1.0625rem; -webkit-appearance: none; appearance: none;
	transition: border-color 150ms, box-shadow 150ms;
}
.search-form input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--pet); box-shadow: 0 0 0 4px var(--pet-soft); }
.search-form button[type="submit"] { position: absolute; right: 6px; min-height: 44px; padding: 8px 18px; }
.search-form--compact input[type="search"] { min-height: 48px; padding-right: 16px; }

/* Pet picker bar */
.pet-picker { display: none; background: var(--kraft); border-bottom: 1px dashed var(--border-strong); color: var(--text); }
.js .pet-picker.is-visible { display: block; animation: ph-drop 400ms var(--ease-spring); }
.pet-picker .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 14px; }
.pet-picker h2 { margin: 0; font-size: 1.375rem; }
.pet-picker-options { display: flex; flex-wrap: wrap; gap: 10px; }
.pet-picker-options .sticker { cursor: pointer; min-height: 48px; transition: transform 200ms var(--ease-spring); }
.pet-picker-options .sticker:hover { transform: rotate(0) scale(1.06); }
.pet-picker-options .sticker:nth-child(2) { --rot: 2deg; }
.pet-picker-options .sticker:nth-child(3) { --rot: -1deg; }
.pet-picker-options .sticker:nth-child(4) { --rot: 3deg; }
.pet-picker-skip { margin-left: auto; }

/* ---------- 5. Sections ---------- */
.section { position: relative; padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-title { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); margin: 0; }
.section-sub { color: var(--muted); max-width: 56ch; margin: 8px 0 0; }
.section-kraft { background: var(--kraft) var(--paper); }
.section + .wavy, .wavy + .section { margin-top: 0; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-block: clamp(24px, 5vw, 64px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-greeting { font-weight: 800; color: var(--pet-ink); font-size: 1.0625rem; margin-bottom: 8px; min-height: 1.75em; }
.hero h1 {
	font-size: clamp(2.375rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 20px; font-weight: 800;
}
.hero h1 .scribble { position: relative; white-space: nowrap; color: var(--pet-ink); }
.hero h1 .scribble svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .4em; color: var(--pet); overflow: visible; }
.hero-sub { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--muted); max-width: 48ch; margin-bottom: 24px; }
.hero .search-form { max-width: 560px; }
.hero-search-wrap { position: relative; max-width: 560px; }
.hero-search-results {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; margin: 0; padding: 8px;
	background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.hero-search-results:empty { display: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.stat-note {
	position: relative; min-width: 128px; padding: 14px 16px 12px; background: var(--card); border-radius: 4px;
	box-shadow: var(--shadow-sm); transform: rotate(var(--rot, -1.5deg));
}
.stat-note:nth-child(2) { --rot: 1.2deg; --tape: var(--tape-2); }
.stat-note:nth-child(3) { --rot: -.6deg; --tape: var(--tape-3); }
.stat-note .tape { width: 54px; height: 18px; top: -9px; }
.stat-num { display: block; font-family: var(--f-head); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .875rem; color: var(--muted); font-weight: 700; }

.hero-stage { position: relative; }
.hero-photo {
	position: relative; padding: 14px 14px 56px; background: var(--card); border-radius: 6px; box-shadow: var(--shadow-lg);
	transform: rotate(1.5deg);
}
.hero-photo .tape { width: 120px; top: -14px; --tape-rot: -4deg; }
.hero-scene {
	position: relative; aspect-ratio: 1 / .92; overflow: hidden; border-radius: 3px;
	background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}
.hero-scene .scene-poster, .hero-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scene canvas { opacity: 0; transition: opacity 600ms var(--ease-out); cursor: pointer; touch-action: pan-y; }
.hero-scene.is-3d canvas { opacity: 1; }
.hero-scene.is-3d .scene-poster { opacity: 0; transition: opacity 600ms var(--ease-out); }
.hero-caption {
	position: absolute; left: 20px; right: 20px; bottom: 12px; display: flex; align-items: center; justify-content: space-between;
	font-family: var(--f-head); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.125rem; color: var(--muted);
}
.hero-caption .day, .hero-caption .night { display: inline; }
.hero-caption .night { display: none; }
[data-theme="dark"] .hero-caption .day { display: none; }
[data-theme="dark"] .hero-caption .night { display: inline; }
.hero-annot { position: absolute; right: -8px; top: 34%; width: 110px; color: var(--text); pointer-events: none; }
.hero-annot text { font-family: var(--f-head); font-style: italic; font-size: 17px; font-weight: 600; fill: currentColor; }
.hero-badge { position: absolute; z-index: 4; animation: ph-float 5s ease-in-out infinite; }
.hero-badge--1 { left: -18px; top: 16%; --rot: -6deg; }
.hero-badge--2 { right: -14px; top: 6%; --rot: 5deg; animation-delay: -1.6s; }
.hero-badge--3 { right: -12px; bottom: 26%; --rot: 3deg; animation-delay: -3.2s; }
.zzz { position: absolute; right: 30%; top: 32%; display: none; pointer-events: none; font-family: var(--f-head); font-weight: 800; color: #E0E7FF; }
.zzz span { position: absolute; opacity: 0; animation: ph-zzz 3s ease-in infinite; }
.zzz span:nth-child(2) { animation-delay: 1s; font-size: 1.3em; }
.zzz span:nth-child(3) { animation-delay: 2s; font-size: 1.6em; }
[data-theme="dark"] .hero-scene.is-3d .zzz, [data-theme="dark"] .hero-scene .zzz { display: block; }
.heart-pop { position: absolute; z-index: 5; width: 22px; height: 22px; color: #F43F5E; pointer-events: none; animation: ph-heart 900ms var(--ease-out) forwards; }

/* Poster (SVG fallback) themed by mode + pet */
.scene-poster .night-only { opacity: 0; }
[data-theme="dark"] .scene-poster .night-only { opacity: 1; }
[data-theme="dark"] .scene-poster .day-only { opacity: 0; }
.scene-poster .pet-art { display: none; }
.scene-poster .pet-art--dog { display: inline; }
[data-pet="cat"] .scene-poster .pet-art--dog, [data-pet="bird"] .scene-poster .pet-art--dog, [data-pet="fish"] .scene-poster .pet-art--dog { display: none; }
[data-pet="cat"] .scene-poster .pet-art--cat, [data-pet="bird"] .scene-poster .pet-art--bird, [data-pet="fish"] .scene-poster .pet-art--fish { display: inline; }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-stage { max-width: 520px; margin-inline: auto; width: 100%; }
	.hero-annot { display: none; }
	.hero-badge--1 { left: -6px; } .hero-badge--2 { right: -4px; }
}

/* ---------- 7. Polaroid cards ---------- */
.polaroid {
	position: relative; display: flex; flex-direction: column; padding: 12px 12px 18px; background: var(--card);
	border-radius: var(--r-md); box-shadow: var(--shadow-md); transform: rotate(var(--tilt, 0deg));
	transition: transform 350ms var(--ease-spring), box-shadow 350ms var(--ease-out);
}
.polaroid:hover, .polaroid:focus-within { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow-lg); }
.polaroid:hover .tape, .polaroid:focus-within .tape { transform: translateX(-50%) translateY(-4px) rotate(calc(var(--tape-rot, -3deg) - 7deg)); }
.polaroid-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--kraft); }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.polaroid:hover .polaroid-photo img { transform: scale(1.06); }
.polaroid-photo .ph-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--kraft-ink); background: var(--kraft) var(--paper); }
.polaroid-photo .ph-fallback .i { width: 56px; height: 56px; opacity: .7; }
.cat-sticker {
	position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px;
	border-radius: 50%; background: var(--cat, var(--pet)); color: #2B1D14; border: 3px solid #fff; box-shadow: var(--shadow-sm);
	transform: rotate(-10deg);
}
.cat-sticker .i { width: 24px; height: 24px; }
.paw-pop {
	position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 30px; height: 30px; color: var(--cat, var(--pet));
	opacity: 0; transform: scale(.3) rotate(-30deg); transition: opacity 200ms, transform 350ms var(--ease-spring);
}
.polaroid:hover .paw-pop { opacity: 1; transform: scale(1) rotate(12deg); }
.polaroid-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 6px 0; flex: 1; }
.polaroid-title { font-size: 1.25rem; line-height: 1.25; margin: 4px 0 0; }
.polaroid-title a { color: var(--text); text-decoration: none; }
.polaroid-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-md); }
.polaroid-title a:focus-visible { outline: none; }
.polaroid-title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 4px; }
.polaroid-excerpt { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.polaroid .pill { position: relative; z-index: 2; align-self: flex-start; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: .875rem; font-weight: 700; margin-top: auto; padding-top: 6px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .i { width: 15px; height: 15px; }

.polaroid--feature .polaroid-photo { aspect-ratio: 16 / 10; }
.polaroid--feature .polaroid-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.polaroid--feature .polaroid-excerpt { -webkit-line-clamp: 4; font-size: 1.0625rem; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 28px; grid-auto-flow: dense; padding-top: 14px; }
.bento > .polaroid--feature { grid-column: span 2; }
[data-pet] .bento > [data-pet-match="1"] { order: -1; }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento > .polaroid--feature { grid-column: auto; } }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 36px 28px; padding-top: 14px; }

/* Skeleton */
.skeleton .polaroid-photo, .skeleton .sk-line { background: linear-gradient(90deg, var(--border) 0%, var(--kraft) 50%, var(--border) 100%); background-size: 200% 100%; animation: ph-shimmer 1.2s linear infinite; }
.sk-line { height: 14px; border-radius: 7px; margin-top: 10px; }
.sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.load-more.is-loading .i { animation: ph-bounce .5s var(--ease-out) infinite alternate; }

/* ---------- 8. Content + sidebar layout ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.sidebar { position: sticky; top: var(--sticky-top, calc(var(--header-h) + 20px)); display: grid; gap: 28px; }
@media (max-width: 1024px) { .with-sidebar { grid-template-columns: 1fr; } .sidebar { position: static; } }

.widget {
	position: relative; padding: 24px 22px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
	border: 1px solid var(--border);
}
.widget:nth-child(3n+1) { --tape: var(--tape-1); --tape-rot: -4deg; }
.widget:nth-child(3n+2) { --tape: var(--tape-2); --tape-rot: 3deg; }
.widget:nth-child(3n) { --tape: var(--tape-4); --tape-rot: -2deg; }
.widget::before {
	content: ""; position: absolute; top: -10px; left: 24px; width: 70px; height: 22px; background: var(--tape); transform: rotate(var(--tape-rot));
	clip-path: polygon(0 8%, 5% 0, 10% 10%, 90% 0, 95% 10%, 100% 8%, 100% 92%, 95% 100%, 90% 90%, 10% 100%, 5% 90%, 0 92%);
}
.widget-title { font-size: 1.3125rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.widget-title .i { color: var(--pet-ink); }
.widget ul, .widget ol { list-style: none; margin: 0; padding: 0; }
.widget-trending li { display: grid; grid-template-columns: 34px 64px 1fr; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border-strong); }
.widget-trending li:last-child { border: 0; }
.paw-rank { position: relative; display: grid; place-items: center; width: 34px; height: 34px; color: var(--pet); }
.paw-rank svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.paw-rank b { position: relative; top: 4px; color: var(--on-pet); font-size: .8125rem; font-weight: 900; }
.widget-trending img, .widget-trending .thumb-fallback { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--kraft); }
.widget-trending a { color: var(--text); font-weight: 800; font-size: .9875rem; line-height: 1.35; text-decoration: none; }
.widget-trending a:hover { color: var(--link); }
.widget-cats li a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-sm); color: var(--text); font-weight: 700; text-decoration: none; }
.widget-cats li a:hover { background: var(--pet-soft); }
.widget-cats .dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cat); color: #2B1D14; flex: none; }
.widget-cats .dot .i { width: 18px; height: 18px; }
.widget-cats .count { margin-left: auto; min-width: 32px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg); font-size: .8125rem; text-align: center; color: var(--muted); }
.widget-potw img { border-radius: 6px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.widget-potw .polaroid { padding-bottom: 14px; --tilt: -1.5deg; box-shadow: var(--shadow-sm); }
.widget-potw h4 { margin: 10px 0 4px; font-size: 1.25rem; }
.widget-potw p { margin: 0; color: var(--muted); font-size: .9875rem; line-height: 1.6; }
.widget-newsletter {
	background: linear-gradient(140deg, #FDBA74, #FB7185 55%, #F97316); color: #2B1D14; border: 0;
}
.widget-newsletter .widget-title, .widget-newsletter .widget-title .i { color: #2B1D14; }
.widget-newsletter p { font-size: .9875rem; font-weight: 600; }
.widget_tag_cloud .tagcloud, .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_tag_cloud a, .wp-block-tag-cloud a, .tag-pills a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: var(--r-pill);
	background: var(--bg); border: 1.5px dashed var(--border-strong); color: var(--text); font-size: .875rem !important; font-weight: 700; text-decoration: none;
	transition: transform 150ms var(--ease-spring);
}
.widget_tag_cloud a:hover, .wp-block-tag-cloud a:hover, .tag-pills a:hover { border-style: solid; border-color: var(--pet); transform: rotate(-3deg); }
.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.widget select { width: 100%; min-height: 44px; }

/* ---------- 9. Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 800; font-size: .9375rem; }
.input, .field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--border-strong); border-radius: var(--r-md);
	background: var(--card); color: var(--text); font-size: 1rem; transition: border-color 150ms, box-shadow 150ms;
}
.field textarea { min-height: 160px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pet); box-shadow: 0 0 0 4px var(--pet-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .875rem; font-weight: 700; min-height: 1em; }
.form-status { margin-top: 12px; padding: 12px 16px; border-radius: var(--r-md); font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.form-status.is-err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 200px; border-radius: var(--r-pill); padding-inline: 20px; }
.widget-newsletter .input { border-color: rgba(43, 29, 20, .25); background: #fff; color: #2B1D14; }

/* ---------- 10. Trending deck ---------- */
.deck-section { overflow: hidden; }
.deck-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.deck-controls { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.deck-arrow { width: 52px; height: 52px; border: 2px solid var(--text); background: var(--card); box-shadow: 0 3px 0 var(--text); }
.deck-arrow:hover { background: var(--pet); color: var(--on-pet); }
.deck-pause { font-size: .875rem; font-weight: 800; }
.deck-dots { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.deck-dots button {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: var(--r-pill);
	border: 2px solid var(--border-strong); background: var(--card); font-size: .8125rem; font-weight: 800; color: var(--text);
	transition: transform 150ms var(--ease-spring), background-color 150ms;
}
.deck-dots button .i { width: 16px; height: 16px; color: var(--muted); }
.deck-dots button[aria-current="true"] { background: var(--cat); border-color: var(--cat); color: #2B1D14; transform: rotate(-2deg) scale(1.04); }
.deck-dots button[aria-current="true"] .i { color: #2B1D14; }
.deck { position: relative; width: min(100%, 460px); margin-inline: auto; aspect-ratio: 460 / 560; touch-action: pan-y; }
.deck:focus-visible { outline-offset: 12px; }
.deck-card {
	position: absolute; inset: 0; margin: 0; --tilt: 0deg;
	transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)) scale(var(--sc, 1));
	transition: transform 450ms var(--ease-spring), opacity 300ms, box-shadow 300ms;
	will-change: transform; user-select: none; -webkit-user-select: none;
}
.deck-card .polaroid-photo { aspect-ratio: 4 / 3.1; }
.deck-card .polaroid-photo img { animation: ph-kenburns 12s ease-in-out infinite alternate; }
.deck-card:not(.is-top) .polaroid-photo img { animation-play-state: paused; }
.deck-card:not(.is-top) { pointer-events: none; }
.deck-card:not(.is-top) .polaroid-body > * { visibility: hidden; }
.deck-card.is-dragging { transition: none; cursor: grabbing; }
.deck-card.is-top { cursor: grab; }
.deck-card.is-out { opacity: 0; }
.deck-card:hover { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)) scale(var(--sc, 1)); }
@media (max-width: 900px) {
	.deck-layout { grid-template-columns: 1fr; }
	.deck-intro { text-align: center; }
	.deck-controls, .deck-dots { justify-content: center; }
	.deck { width: min(100%, 400px); }
}
@media (max-width: 480px) { .deck { aspect-ratio: 400 / 600; } }

/* ---------- 11. Pet ID tags ---------- */
.tags-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 28px; list-style: none; margin: 0; padding: 0; }
.id-tag {
	position: relative; display: grid; justify-items: center; text-decoration: none; color: #2B1D14; padding-top: 30px;
	transform-origin: 50% 8px; min-width: 44px;
}
.id-tag::before { /* hook */
	content: ""; position: absolute; top: 0; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
	border: 3px solid var(--muted); background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.id-tag::after { /* small jump ring */
	content: ""; position: absolute; top: 18px; left: 50%; width: 10px; height: 16px; margin-left: -5px; border-radius: 6px;
	border: 2.5px solid var(--muted);
}
.id-tag .tag-shape { position: relative; display: grid; place-items: center; text-align: center; filter: drop-shadow(0 6px 10px rgba(43, 29, 20, .18)); }
.id-tag .tag-shape > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.id-tag .tag-body { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 12px; line-height: 1.2; }
.id-tag .tag-body .i { width: 30px; height: 30px; }
.id-tag strong { font-family: var(--f-head); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 1.0625rem; }
.id-tag small { font-size: .8125rem; font-weight: 800; opacity: .8; }
.id-tag--round .tag-shape { width: 164px; height: 164px; }
.id-tag--bone .tag-shape { width: 250px; height: 124px; }
.id-tag--bone .tag-body { grid-template-columns: auto auto; column-gap: 10px; align-items: center; text-align: left; max-width: 170px; padding-top: 22px; }
.id-tag--bone .tag-body strong { font-size: 1rem; line-height: 1.15; }
.id-tag--bone .tag-body .i { grid-row: span 2; }
.id-tag .jingle { position: absolute; top: 34px; left: 50%; width: 60px; height: 20px; margin-left: -30px; color: var(--accent); opacity: 0; transition: opacity 200ms; pointer-events: none; }
.id-tag:hover .jingle, .id-tag:focus-visible .jingle { opacity: 1; animation: ph-jingle 400ms steps(2) 3; }
.id-tag:hover, .id-tag:focus-visible { animation: ph-swing 1.2s var(--ease-out); }
.id-tag:focus-visible { outline: none; }
.id-tag:focus-visible .tag-shape { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 24px; }
.id-tag.is-mine .tag-shape { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 8px 16px color-mix(in srgb, var(--pet) 55%, transparent)); }
.tags-row li:nth-child(2n) .id-tag { animation-delay: .05s; }

/* ---------- 12. Breed spotlight ---------- */
.spotlight-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px 28px; padding-top: 14px; }
.spotlight-grid .polaroid:first-child { grid-row: span 2; }
.spotlight-grid .polaroid:first-child .polaroid-photo { aspect-ratio: 3 / 4; }
@media (max-width: 900px) { .spotlight-grid { grid-template-columns: 1fr 1fr; } .spotlight-grid .polaroid:first-child { grid-row: auto; grid-column: span 2; } .spotlight-grid .polaroid:first-child .polaroid-photo { aspect-ratio: 16/10; } }
@media (max-width: 560px) { .spotlight-grid { grid-template-columns: 1fr; } .spotlight-grid .polaroid:first-child { grid-column: auto; } }

/* ---------- 13. Pet tools ---------- */
.tools-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tools-tabs [role="tab"] {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border-radius: var(--r-pill);
	border: 2px solid var(--text); background: var(--card); font-weight: 800; color: var(--text); box-shadow: 0 3px 0 var(--text);
	transition: transform 150ms var(--ease-spring);
}
.tools-tabs [role="tab"][aria-selected="true"] { background: var(--pet); color: var(--on-pet); transform: rotate(-1.5deg); }
.tool-card {
	position: relative; padding: clamp(20px, 4vw, 36px); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.tool-card .tape { left: 28px; transform: rotate(-4deg); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 20px; }
.tool-result {
	margin-top: 8px; padding: 18px 20px; border-radius: var(--r-md); background: var(--kraft) var(--paper); border: 2px dashed var(--border-strong);
	font-weight: 700;
}
.tool-result:empty { display: none; }
.tool-result .big { display: block; font-family: var(--f-head); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 2rem; font-weight: 800; line-height: 1.2; color: var(--text); }
.tool-note { font-size: .875rem; color: var(--muted); margin: 12px 0 0; }
.name-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; list-style: none; padding: 0; }
.name-chips li { padding: 6px 16px; border-radius: var(--r-pill); background: var(--card); border: 2px solid var(--border-strong); font-weight: 800; animation: ph-pop 350ms var(--ease-spring) both; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border-radius: var(--r-pill); border: 2px solid var(--border-strong); font-weight: 700; cursor: pointer; }
.seg input:checked + span { background: var(--pet); border-color: var(--pet); color: var(--on-pet); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- 14. Breed quiz ---------- */
.quiz { position: relative; max-width: 760px; margin-inline: auto; }
.quiz-card { position: relative; padding: clamp(24px, 4vw, 44px); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); transform: rotate(-.6deg); }
.quiz-card .tape { --tape: var(--tape-2); }
.quiz-progress { height: 10px; border-radius: 5px; background: var(--border); overflow: hidden; margin-bottom: 20px; }
.quiz-progress span { display: block; height: 100%; background: var(--pet); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 400ms var(--ease-out); }
.quiz-step { font-weight: 800; color: var(--muted); font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
.quiz-q { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 6px 0 20px; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.quiz-options button {
	display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; text-align: left; border-radius: var(--r-md);
	border: 2px solid var(--border-strong); background: var(--bg); color: var(--text); font-weight: 800;
	transition: transform 200ms var(--ease-spring), border-color 150ms;
}
.quiz-options button:hover { border-color: var(--pet); transform: rotate(-1deg) translateY(-2px); }
.quiz-options button[aria-pressed="true"] { border-color: var(--pet); background: var(--pet-soft); }
.quiz-options .i { color: var(--pet-ink); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-panel { animation: ph-in 350ms var(--ease-out); }
.quiz-result { text-align: center; }
.quiz-result .match { display: inline-block; margin: 8px 0 4px; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.quiz-result .score { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; color: var(--pet-ink); }
.quiz-result .share-row { justify-content: center; }
.quiz-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.quiz-confetti svg { position: absolute; top: -20px; width: 20px; height: 20px; animation: ph-fall 1.6s var(--ease-in) forwards; }

/* ---------- 15. Newsletter band ---------- */
.newsletter-band {
	position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0;
	background: linear-gradient(120deg, #FED7AA 0%, #FDA4AF 45%, #FDE68A 100%); color: #2B1D14;
}
[data-theme="dark"] .newsletter-band { background: linear-gradient(120deg, #7C2D12 0%, #831843 50%, #713F12 100%); color: #FFF7ED; }
.newsletter-band h2 { color: inherit; font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); margin-bottom: 8px; }
.newsletter-band p { font-weight: 600; max-width: 52ch; }
.newsletter-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.newsletter-band .input { background: #fff; color: #2B1D14; border-color: transparent; }
.newsletter-band .btn-primary { background: #2B1D14; color: #FFF8F1; box-shadow: 0 3px 0 #000; }
[data-theme="dark"] .newsletter-band .btn-primary { background: #FFF8F1; color: #2B1D14; }
.newsletter-band small { display: block; margin-top: 10px; font-weight: 600; opacity: .85; }
.floating-paws { position: absolute; inset: 0; pointer-events: none; }
.floating-paws svg { position: absolute; width: 28px; height: 28px; color: currentColor; opacity: .14; animation: ph-drift 9s ease-in-out infinite; }
.floating-paws svg:nth-child(1) { left: 6%; top: 18%; }
.floating-paws svg:nth-child(2) { left: 18%; bottom: 12%; animation-delay: -2s; width: 20px; }
.floating-paws svg:nth-child(3) { right: 40%; top: 10%; animation-delay: -4s; }
.floating-paws svg:nth-child(4) { right: 8%; bottom: 20%; animation-delay: -6s; width: 36px; }
.floating-paws svg:nth-child(5) { right: 22%; top: 55%; animation-delay: -3s; width: 18px; }
@media (max-width: 800px) { .newsletter-inner { grid-template-columns: 1fr; } }

/* ---------- 16. Ask the Vet FAQ ---------- */
.faq-chat { max-width: 820px; margin-inline: auto; display: grid; gap: 18px; }
.faq-item { display: grid; gap: 10px; }
.faq-q {
	justify-self: end; display: flex; align-items: center; gap: 12px; max-width: min(92%, 640px); padding: 14px 18px 14px 22px; text-align: left;
	border: 0; border-radius: 22px 22px 6px 22px; background: var(--pet); color: var(--on-pet); font-weight: 800; font-size: 1.0625rem; line-height: 1.45;
	box-shadow: 0 3px 0 color-mix(in srgb, var(--pet) 55%, #000); transition: transform 200ms var(--ease-spring);
}
.faq-q:hover { transform: translateY(-2px); }
.faq-q .i { flex: none; transition: transform 300ms var(--ease-spring); }
.faq-q[aria-expanded="true"] .i { transform: rotate(45deg); }
.faq-a { display: flex; align-items: flex-end; gap: 10px; max-width: min(96%, 700px); }
.faq-a[hidden] { display: none; }
.vet-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--secondary); color: #06302B; border: 3px solid var(--card); box-shadow: var(--shadow-sm); }
.faq-bubble {
	position: relative; padding: 16px 20px; border-radius: 22px 22px 22px 6px; background: var(--card); border: 1px solid var(--border);
	box-shadow: var(--shadow-sm); animation: ph-bubble 300ms var(--ease-spring);
}
.faq-bubble p { margin: 0; font-size: 1.0156rem; line-height: 1.7; }
.faq-bubble .vet-name { display: block; font-size: .8125rem; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.typing { display: inline-flex; gap: 5px; padding: 8px 2px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: ph-typing 900ms ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 150ms; } .typing i:nth-child(3) { animation-delay: 300ms; }
.faq-bubble .typing { display: none; }
.faq-bubble.is-typing .typing { display: inline-flex; }
.faq-bubble.is-typing .faq-text { display: none; }
.faq-disclaimer { display: flex; justify-content: center; align-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: .9375rem; margin-top: 20px; }

/* ---------- 17. Footer ---------- */
.site-footer { position: relative; margin-top: 110px; background: #2B1D14; color: #F5EDE6; }
[data-theme="dark"] .site-footer { background: #0E0A07; }
.site-footer a { color: #F5EDE6; }
.footer-wave { position: absolute; left: 0; right: 0; bottom: 100%; height: 60px; color: #2B1D14; overflow: hidden; }
[data-theme="dark"] .footer-wave { color: #0E0A07; }
.footer-wave { z-index: 1; pointer-events: none; }
.footer-wave svg.wave { position: absolute; bottom: -1px; left: 0; width: 200%; max-width: none; height: 60px; animation: ph-wave 18s linear infinite; }
.walker { position: absolute; bottom: 36px; left: 0; width: 64px; height: 36px; color: #2B1D14; animation: ph-walk 28s linear infinite; }
[data-theme="dark"] .walker { color: #0E0A07; }
.walker svg { width: 100%; height: 100%; animation: ph-trot .35s ease-in-out infinite alternate; }
.peekers { position: absolute; right: clamp(16px, 8vw, 120px); bottom: calc(100% - 2px); display: flex; gap: 6px; z-index: 0; }
.peeker { position: relative; display: block; width: 74px; height: 78px; overflow: hidden; }
.peeker svg { position: absolute; left: 0; bottom: 6px; width: 74px; height: 70px; max-width: none; transition: transform 350ms var(--ease-spring); }
.peeker:nth-child(2) svg { bottom: 10px; }
.peeker:hover svg { transform: translateY(115%); }
.footer-main { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 48px 40px; }
.footer-main h2 { color: #FFF8F1; font-size: 1.25rem; margin-bottom: 14px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-main li a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; opacity: .9; }
.footer-main li a:hover { opacity: 1; text-decoration: underline; }
.footer-about p { color: #D9CBBE; font-size: 1rem; }
.footer-about .brand { color: #FFF8F1; margin-bottom: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: transform 200ms var(--ease-spring), background-color 150ms; }
.socials a:hover { background: var(--primary); color: #2B1D14; transform: rotate(-10deg) scale(1.08); }
.footer-pop li a { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; font-weight: 700; line-height: 1.35; padding: 6px 0; }
.footer-pop img, .footer-pop .thumb-fallback { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #3A2D23; }
.footer-bottom { border-top: 1px dashed rgba(245, 237, 230, .2); padding-block: 20px 28px; font-size: .9375rem; color: #D9CBBE; }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: #F5EDE6; text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-disclaimer { width: 100%; margin: 0; font-size: .875rem; opacity: .85; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } .peekers { right: 16px; } .peeker { width: 60px; } }

/* Back to top — bone with progress ring */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
	background: var(--card); color: var(--text); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8);
	transition: opacity var(--dur), transform 300ms var(--ease-spring), visibility var(--dur);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 4; }
.to-top .ring .track { stroke: var(--border); }
.to-top .ring .bar { stroke: var(--pet); stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: calc(151 - 151 * var(--p, 0)); }
.to-top .bone { position: absolute; inset: 14px; width: 28px; height: 28px; transform: rotate(-45deg); transition: transform 300ms var(--ease-spring); }
.to-top:hover .bone { transform: rotate(-45deg) translate(3px, -3px); }

/* Cursor paw prints */
.cursor-paw { position: fixed; z-index: 30; width: 18px; height: 18px; margin: -9px 0 0 -9px; color: var(--pet); pointer-events: none; opacity: 0; }
.cursor-paw.is-on { animation: ph-paw-fade 1.4s var(--ease-out) forwards; }

/* ---------- 18. Page scaffolding ---------- */
.page-hero { position: relative; padding-block: clamp(32px, 5vw, 64px) 16px; }
.page-hero h1 { font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem); letter-spacing: -.025em; }
.archive-desc { color: var(--muted); max-width: 64ch; }
.archive-badge { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--cat, var(--pet)); color: #2B1D14; border: 4px solid var(--card); box-shadow: var(--shadow-md); transform: rotate(-8deg); margin-bottom: 16px; }
.archive-badge .i { width: 36px; height: 36px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-pill); border: 2px solid var(--border-strong); background: var(--card); color: var(--text); font-weight: 800; text-decoration: none; }
.page-numbers.current { background: var(--pet); border-color: var(--pet); color: var(--on-pet); }
.page-numbers.dots { border: 0; background: none; }
.breadcrumbs { font-size: .9375rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: ""; width: 14px; height: 14px; background: currentColor; opacity: .5; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='6' cy='9.6' rx='2' ry='2.5'/%3E%3Cellipse cx='9.6' cy='5.6' rx='2' ry='2.6'/%3E%3Cellipse cx='14.4' cy='5.6' rx='2' ry='2.6'/%3E%3Cellipse cx='18' cy='9.6' rx='2' ry='2.5'/%3E%3Cpath d='M12 11.2c-2.9 0-6.1 3.7-6.1 6.4 0 1.9 1.5 2.8 3 2.8 1.3 0 2-.7 3.1-.7s1.8.7 3.1.7c1.5 0 3-.9 3-2.8 0-2.7-3.2-6.4-6.1-6.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='6' cy='9.6' rx='2' ry='2.5'/%3E%3Cellipse cx='9.6' cy='5.6' rx='2' ry='2.6'/%3E%3Cellipse cx='14.4' cy='5.6' rx='2' ry='2.6'/%3E%3Cellipse cx='18' cy='9.6' rx='2' ry='2.5'/%3E%3Cpath d='M12 11.2c-2.9 0-6.1 3.7-6.1 6.4 0 1.9 1.5 2.8 3 2.8 1.3 0 2-.7 3.1-.7s1.8.7 3.1.7c1.5 0 3-.9 3-2.8 0-2.7-3.2-6.4-6.1-6.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.breadcrumbs a { color: var(--muted); text-decoration: none; font-weight: 700; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 700; }

/* Empty states / 404 */
.empty-state { text-align: center; padding-block: 24px 48px; }
.empty-state .art { width: min(280px, 70vw); margin: 0 auto 16px; }
.empty-state h1, .empty-state h2 { font-size: clamp(2rem, 1.6rem + 2vw, 3.25rem); }
.empty-state p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.empty-state .search-form { max-width: 520px; margin: 24px auto 0; }
.lost-stage { position: relative; width: 260px; height: 260px; margin: 0 auto 12px; }
.lost-stage .track { position: absolute; inset: 30px; border: 3px dashed var(--border-strong); border-radius: 50%; }
.lost-stage .runner { position: absolute; inset: 0; animation: ph-spin 3.2s linear infinite; }
.lost-stage .runner svg { position: absolute; top: 4px; left: 50%; width: 70px; height: 52px; margin-left: -35px; }
.lost-stage .runner svg .legs { animation: ph-trot .25s ease-in-out infinite alternate; transform-origin: center; }
.lost-stage .squirrel { position: absolute; inset: 0; animation: ph-spin 3.2s linear infinite; animation-delay: -.8s; }
.lost-stage .squirrel svg { position: absolute; top: 12px; left: 50%; width: 40px; height: 40px; margin-left: -20px; color: #B45309; }
.lost-stage .num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-head); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 4rem; color: var(--pet-ink); }

/* Generic prose for pages (non-article) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.75rem; margin-top: 2em; }
.prose h3 { font-size: 1.375rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.page-layout { padding-bottom: 48px; }
.card-panel { position: relative; padding: clamp(20px, 4vw, 40px); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Ads — reserved space, zero CLS */
.ad-slot { display: grid; place-items: center; margin: 32px auto; width: 100%; max-width: 728px; min-height: 280px; overflow: hidden; }
.ad-slot--sidebar { min-height: 600px; max-width: 300px; }
.ad-slot--below { min-height: 250px; }
.ad-slot::before { content: attr(data-label); display: block; width: 100%; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .ad-slot { min-height: 300px; } .ad-slot--sidebar { min-height: 280px; } }

/* ---------- 19. Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px) rotate(var(--tilt, 0deg)); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
.js .polaroid.reveal.is-in:hover, .js .polaroid.reveal.is-in:focus-within { transform: rotate(0) translateY(-4px); transition-delay: 0ms; }

/* ---------- 20. Keyframes ---------- */
@keyframes ph-float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); } }
@keyframes ph-bounce { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes ph-shimmer { to { background-position: -200% 0; } }
@keyframes ph-kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
@keyframes ph-swing { 0% { transform: rotate(0); } 20% { transform: rotate(9deg); } 40% { transform: rotate(-7deg); } 60% { transform: rotate(4deg); } 80% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
@keyframes ph-jingle { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-3px) scale(1.1); } }
@keyframes ph-drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes ph-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes ph-pop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes ph-bubble { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ph-typing { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes ph-drift { 0%, 100% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(-18px) rotate(12deg); } }
@keyframes ph-wave { to { transform: translateX(-50%); } }
@keyframes ph-walk { from { transform: translateX(-80px); } to { transform: translateX(calc(100vw + 80px)); } }
@keyframes ph-trot { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes ph-spin { to { transform: rotate(360deg); } }
@keyframes ph-zzz { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -60px); } }
@keyframes ph-heart { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--hx, 0px), -80px) scale(1.2); } }
@keyframes ph-paw-fade { 0% { opacity: .32; transform: rotate(var(--a, 0deg)) scale(.7); } 100% { opacity: 0; transform: rotate(var(--a, 0deg)) scale(1); } }
@keyframes ph-fall { to { transform: translateY(560px) rotate(540deg); opacity: 0; } }

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
	.hero-badge, .floating-paws svg, .walker, .footer-wave svg.wave, .deck-card .polaroid-photo img, .lost-stage .runner, .lost-stage .squirrel { animation: none !important; }
	.cursor-paw { display: none; }
	.zzz span { opacity: 1; animation: none; }
	.zzz span:nth-child(1) { transform: translate(0, 0); } .zzz span:nth-child(2) { transform: translate(14px, -22px); } .zzz span:nth-child(3) { transform: translate(28px, -48px); }
}

/* ---------- 22. Misc components ---------- */
.h3 { font-size: 1.5rem; }
.h4 { font-size: 1.25rem; }
fieldset.field { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.drawer a .i { display: none; }
.cat-sticker, .paw-pop, .tape { pointer-events: none; }
.faq-h { margin: 0; justify-self: end; max-width: min(92%, 640px); font: inherit; letter-spacing: 0; }
.faq-h .faq-q { max-width: 100%; }
.pet-poke:focus-visible {
	clip: auto; width: auto; height: auto; margin: 0; overflow: visible; white-space: normal;
	left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 6; padding: 10px 18px;
	background: var(--card); color: var(--text); border: 2px solid var(--text); border-radius: var(--r-pill); font-weight: 800;
}
.custom-logo-link { display: inline-flex; align-items: center; flex: none; }
.custom-logo-link img { max-height: 48px; width: auto; }
.newsletter-band { padding-bottom: clamp(96px, 10vw, 128px); }
.newsletter-band + .site-footer { margin-top: 0; }
.id-tag--bone::after { height: 56px; }
.id-tag--round::after { height: 26px; }
.share-row .label { display: inline-flex; align-items: center; gap: 6px; }
.widget-potw h3 { margin: 10px 0 4px; }
.widget-potw figcaption { text-align: left; }
.thumb-fallback { display: block; background: var(--kraft) var(--paper); }

/* Core / block widgets in the sidebar */
.widget .wp-block-search__label, .widget .wp-block-heading, .widget h2:not(.widget-title) { display: block; font-family: var(--f-head); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: 1.3125rem; margin: 0 0 12px; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget .wp-block-search__input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 16px; border: 2px solid var(--border-strong); border-radius: var(--r-pill); background: var(--card); color: var(--text); }
.widget .wp-block-search__button { min-height: 48px; margin: 0; padding: 8px 18px; border: 0; border-radius: var(--r-pill); background: var(--pet); color: var(--on-pet); font-weight: 800; }
.widget .wp-block-latest-posts li, .widget .wp-block-categories li, .widget .wp-block-archives li, .widget .wp-block-latest-comments li, .widget .wp-block-page-list li,
.widget_recent_entries li, .widget_categories li, .widget_archive li, .widget_pages li, .widget_meta li, .widget_nav_menu li, .widget_recent_comments li { padding: 8px 0; border-bottom: 1px dashed var(--border-strong); line-height: 1.45; }
.widget .wp-block-latest-posts a, .widget .wp-block-categories a, .widget .wp-block-archives a, .widget .wp-block-page-list a,
.widget_recent_entries a, .widget_categories a, .widget_archive a, .widget_pages a, .widget_meta a, .widget_nav_menu a { color: var(--text); font-weight: 700; text-decoration: none; }
.widget .wp-block-latest-comments { padding: 0; margin: 0; }
.widget li:last-child { border-bottom: 0; }

/* ---------- 23. WordPress core ---------- */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .875rem; color: var(--muted); text-align: center; margin-top: 8px; }
.sticky .polaroid { outline: 3px dashed var(--pet); }
.bypostauthor { }
.gallery-caption { }
