/* =========================================================
   AnimalShop – main.css
   ========================================================= */

@font-face {
	font-family: "Bricolage";
	src: url("../fonts/brico.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
}
@font-face {
	font-family: "Nunito Sans";
	src: url("../fonts/nunito.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Nunito Sans";
	src: url("../fonts/nunito-i.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

:root {
	--ink: #1d2b53;
	--ink-2: #4b5679;
	--ink-3: #7a84a3;
	--paper: #ffffff;
	--mist: #f3f6ff;
	--line: #e2e7f5;

	--sun: #ffc233;   --sun-soft: #fff3d1;   --sun-deep: #8a5d00;
	--coral: #ff6b6b; --coral-soft: #ffe4e1; --coral-deep: #b8333a;
	--mint: #2ec4a0;  --mint-soft: #d9f6ee;  --mint-deep: #0d6e56;
	--sky: #3d9bff;   --sky-soft: #e0eeff;   --sky-deep: #1559b8;
	--violet: #8b6cff; --violet-soft: #ebe6ff; --violet-deep: #5233c4;

	--t: var(--sky);
	--t-soft: var(--sky-soft);
	--t-deep: var(--sky-deep);

	--f-display: "Bricolage", "Trebuchet MS", system-ui, sans-serif;
	--f-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

	--r-xl: 32px;
	--r-l: 24px;
	--r-m: 16px;
	--r-s: 12px;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--bounce: cubic-bezier(.34, 1.56, .64, 1);
}

[data-tone="sun"]    { --t: var(--sun);    --t-soft: var(--sun-soft);    --t-deep: var(--sun-deep); }
[data-tone="coral"]  { --t: var(--coral);  --t-soft: var(--coral-soft);  --t-deep: var(--coral-deep); }
[data-tone="mint"]   { --t: var(--mint);   --t-soft: var(--mint-soft);   --t-deep: var(--mint-deep); }
[data-tone="sky"]    { --t: var(--sky);    --t-soft: var(--sky-soft);    --t-deep: var(--sky-deep); }
[data-tone="violet"] { --t: var(--violet); --t-soft: var(--violet-soft); --t-deep: var(--violet-deep); }
[data-tone="ink"]    { --t: var(--sky);    --t-soft: var(--mist);        --t-deep: var(--ink); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 750;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Buttons, chips, pills ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	border: 0; cursor: pointer; text-decoration: none;
	background: var(--ink); color: #fff;
	font-weight: 800; font-size: 1rem;
	padding: .85em 1.4em; border-radius: 999px;
	transition: transform .25s var(--bounce), box-shadow .25s, background .2s;
	box-shadow: 0 10px 22px -12px rgba(29, 43, 83, .7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(29, 43, 83, .8); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-small { padding: .55em 1.05em; font-size: .9rem; }

.chip {
	display: inline-flex; align-items: center; gap: .45em;
	padding: .5em 1em; border-radius: 999px;
	background: var(--t-soft); color: var(--t-deep);
	font-weight: 800; font-size: .95rem; text-decoration: none;
	border: 2px solid transparent; cursor: pointer;
	transition: transform .25s var(--bounce), background .2s, border-color .2s;
}
.chip::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--t); }
.chip:hover { transform: translateY(-2px) rotate(-2deg); border-color: var(--t); }

.pill {
	display: inline-block; padding: .3em .8em; border-radius: 999px;
	background: var(--t-soft); color: var(--t-deep);
	font-weight: 800; font-size: .82rem; text-decoration: none; letter-spacing: .01em;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(29, 43, 83, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { max-height: 48px; width: auto; }
.brand-mark {
	display: grid; place-items: center; width: 42px; height: 42px;
	border-radius: 14px 18px 14px 20px;
	background: var(--coral); color: #fff;
	transform: rotate(-8deg);
	transition: transform .5s var(--bounce), border-radius .5s;
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand:hover .brand-mark { transform: rotate(8deg) scale(1.06); border-radius: 20px 14px 18px 14px; }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; }
.brand-word span { color: var(--coral-deep); }

.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav-list a {
	position: relative; display: inline-flex; align-items: center; gap: .45em;
	padding: .55em .85em; border-radius: 999px;
	text-decoration: none; font-weight: 800; font-size: .97rem;
	transition: background .2s, color .2s;
}
.nav-list li[data-tone] > a::before {
	content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--t);
	transition: transform .35s var(--bounce);
}
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current-menu-parent > a { background: var(--t-soft); color: var(--t-deep); }
.nav-list li:not([data-tone]) > a:hover { background: var(--mist); color: var(--ink); }
.nav-list a:hover::before { transform: scale(1.6); }
.nav-list .sub-menu { display: none; }

.header-actions { display: flex; gap: 6px; }
.icon-btn {
	display: grid; place-items: center; width: 44px; height: 44px;
	border-radius: 50%; border: 0; background: var(--mist); cursor: pointer;
	transition: background .2s, transform .25s var(--bounce);
}
.icon-btn:hover { background: var(--line); transform: scale(1.06); }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }

.search-panel { padding: 8px 0 20px; animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

.read-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--sun), var(--coral), var(--violet)); }
.single-post .read-progress span { transform: scaleX(var(--p, 0)); }

/* ---------- Search form ---------- */
.search-form {
	position: relative; display: flex; align-items: center; gap: 8px;
	background: #fff; border: 2px solid var(--line); border-radius: 999px;
	padding: 6px 6px 6px 48px; max-width: 620px;
	transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within { border-color: var(--sky); box-shadow: 0 0 0 5px var(--sky-soft); }
.search-ico { position: absolute; left: 18px; color: var(--ink-3); }
.search-field { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .55em 0; font-size: 1rem; }
.search-field:focus-visible { outline: none; }

/* ---------- Load-in & reveal animations ---------- */
.load-in { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

.js .reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); background:
	radial-gradient(60% 60% at 90% 10%, var(--sun-soft) 0, transparent 70%),
	radial-gradient(50% 60% at 0% 100%, var(--sky-soft) 0, transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-kicker { font-weight: 800; color: var(--coral-deep); margin-bottom: .6em; }
.hero-title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 12ch; }
.hero-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }
.hero-search { margin: 26px 0 20px; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.blob-frame {
	position: absolute; inset: 6%;
	overflow: hidden;
	border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
	background: var(--sun);
	animation: blob 14s ease-in-out infinite alternate;
	box-shadow: 0 40px 80px -40px rgba(29, 43, 83, .55);
}
.blob-frame img { width: 100%; height: 100%; object-fit: cover; animation: zoomin 1.6s var(--ease) both; }
@keyframes zoomin { from { transform: scale(1.15); } }
@keyframes blob {
	0%   { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; }
	33%  { border-radius: 44% 56% 60% 40% / 42% 58% 42% 58%; }
	66%  { border-radius: 52% 48% 38% 62% / 60% 40% 60% 40%; }
	100% { border-radius: 40% 60% 54% 46% / 48% 56% 44% 52%; }
}
.float-badge {
	position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .5em;
	background: #fff; color: var(--ink); text-decoration: none;
	font-weight: 800; font-size: .95rem;
	padding: .7em 1.1em; border-radius: 999px;
	box-shadow: 0 18px 36px -18px rgba(29, 43, 83, .5);
	animation: bob 5s ease-in-out infinite;
	transition: transform .3s var(--bounce);
}
.float-badge .icon { color: var(--t-deep); background: var(--t-soft); border-radius: 50%; padding: 5px; width: 30px; height: 30px; }
.float-badge:hover { animation-play-state: paused; transform: scale(1.06); }
.fb-1 { left: -4%; bottom: 14%; }
.fb-2 { right: -2%; top: 10%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.float-dot { position: absolute; border-radius: 50%; background: var(--t); animation: bob 6s ease-in-out infinite; }
.fd-1 { width: 26px; height: 26px; right: 8%; bottom: 6%; animation-delay: -1s; }
.fd-2 { width: 16px; height: 16px; left: 8%; top: 8%; animation-delay: -3s; }
.fd-3 { width: 40px; height: 40px; left: 2%; top: 46%; opacity: .9; animation-delay: -4.5s; }

/* Paw-print trail: the one signature moment */
.hero-paws { position: absolute; inset: 0; pointer-events: none; }
.hero-paws span {
	position: absolute; left: 0; top: 0; color: var(--ink);
	offset-path: path("M -60 560 C 220 470 380 640 640 560 S 1020 320 1300 380 S 1600 300 1700 240");
	offset-distance: calc(var(--i) * 10% + 6%);
	offset-rotate: auto;
	opacity: 0;
	animation: step 7.2s linear infinite;
	animation-delay: calc(var(--i) * .42s + 1s);
}
.hero-paws span:nth-child(odd) .icon { transform: translateY(-14px) rotate(90deg); }
.hero-paws span:nth-child(even) .icon { transform: translateY(14px) rotate(90deg); }
.hero-paws .icon { width: 26px; height: 26px; }
@keyframes step {
	0% { opacity: 0; }
	4% { opacity: .2; }
	45% { opacity: .16; }
	60%, 100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section:not(.section-tint) + .section:not(.section-tint) { padding-top: 0; }
.section-tint { background: var(--mist); border-radius: var(--r-xl); margin-inline: clamp(0px, 1.5vw, 20px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.link-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; text-decoration: none; color: var(--sky-deep); }
.link-more .icon { transition: transform .3s var(--bounce); }
.link-more:hover .icon { transform: translateX(5px); }

/* ---------- Category tiles ---------- */
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-tile {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
	height: 100%; padding: 24px 16px 22px; border-radius: var(--r-l);
	background: var(--t-soft); text-decoration: none; overflow: hidden;
	transition: transform .4s var(--bounce), box-shadow .4s;
}
.cat-tile::after {
	content: ""; position: absolute; width: 180%; aspect-ratio: 1; left: -40%; top: 62%;
	border-radius: 50%; background: var(--t); opacity: .18;
	transition: transform .6s var(--ease);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px var(--t); }
.cat-tile:hover::after { transform: translateY(-14%); }
.cat-photo {
	position: relative; z-index: 1; width: min(150px, 80%); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
	border: 5px solid #fff; background: var(--t);
	box-shadow: 0 14px 28px -16px rgba(29, 43, 83, .55);
	transition: transform .5s var(--bounce);
}
.cat-photo img, .cat-photo .thumb { width: 100%; height: 100%; object-fit: cover; }
.cat-tile:hover .cat-photo { transform: scale(1.07) rotate(-4deg); }
.cat-name { position: relative; z-index: 1; margin-top: 14px; font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.cat-count { position: relative; z-index: 1; font-weight: 700; font-size: .9rem; color: var(--t-deep); }

/* ---------- Cards ---------- */
.card { height: 100%; }
.card-link {
	display: flex; flex-direction: column; height: 100%;
	text-decoration: none; background: #fff; border-radius: var(--r-l); overflow: hidden;
	border: 1px solid var(--line);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card-link:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -28px rgba(29, 43, 83, .5); border-color: transparent; }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--t-soft); }
.card-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--t); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card-link:hover .card-media::after { transform: scaleX(1); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-link:hover .card-img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card-body .pill { align-self: flex-start; }
.card-title { font-family: var(--f-display); font-weight: 750; font-size: 1.2rem; line-height: 1.22; letter-spacing: -.015em; color: var(--ink); }
.card-excerpt { color: var(--ink-2); font-size: 1rem; }
.card-meta { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; color: var(--ink-3); font-size: .88rem; font-weight: 700; }
.card-meta .icon { width: 1em; height: 1em; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid > div, .mag-grid > div { height: 100%; }
.mag-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.mag-grid > div:first-child { grid-row: span 2; }
.card.big .card-media { aspect-ratio: auto; flex: 1; min-height: 300px; }
.card.big .card-body { flex: none; }
.card.big .card-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.mag-grid > div:not(:first-child) .card-media { aspect-ratio: 16 / 9; }

.thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--t); background: var(--t-soft); }
.thumb-placeholder .icon { width: 30%; height: 30%; opacity: .6; }

/* ---------- Breed rail ---------- */
.rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 18px;
	overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
	padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 28px;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
	scrollbar-width: thin;
}
.breed-card {
	scroll-snap-align: start; position: relative; display: flex; flex-direction: column;
	text-decoration: none; border-radius: var(--r-l); background: var(--t-soft); padding: 10px 10px 18px;
	transition: transform .45s var(--bounce);
}
.breed-card:hover { transform: translateY(-6px) rotate(-1deg); }
.breed-img { display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; }
.breed-img .card-img { height: 100%; }
.breed-card:hover .card-img { transform: scale(1.07); }
.breed-name { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; padding: 14px 8px 4px; letter-spacing: -.02em; }
.breed-facts { display: flex; flex-direction: column; padding: 0 8px; font-size: .9rem; color: var(--ink-2); }
.breed-facts b { color: var(--t-deep); font-weight: 800; }

/* ---------- Tools ---------- */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tool {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
	padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl);
	background: var(--t-soft); text-decoration: none;
	transition: transform .45s var(--ease), box-shadow .45s;
}
.tool::before {
	content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
	background: var(--t); opacity: .25; transition: transform .7s var(--ease);
}
.tool:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px var(--t-deep); }
.tool:hover::before { transform: scale(1.5); }
.tool-ico { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--t); color: #fff; }
.tool-ico .icon { width: 34px; height: 34px; }
.tool:hover .tool-ico { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 25% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }
.tool-title { position: relative; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; }
.tool-text { position: relative; color: var(--ink-2); max-width: 42ch; }
.tool-go { position: relative; display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: var(--t-deep); }
.tool-go .icon { transition: transform .3s var(--bounce); }
.tool:hover .tool-go .icon { transform: translateX(6px); }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; font-weight: 700; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Post ---------- */
.post-hero { position: relative; padding: clamp(24px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); background: var(--t-soft); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.post-hero .pill, .cat-hero .pill { background: #fff; }
.post-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.post-title { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; margin: .35em 0 .4em; }
.post-lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 52ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.post-meta span { display: inline-flex; align-items: center; gap: .4em; }
.post-hero-media { margin: 0; position: relative; }
.post-hero-media .post-img, .post-hero-media .thumb-placeholder {
	position: relative; z-index: 1;
	width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 40px 40px 40px 12px;
	box-shadow: 0 34px 60px -36px rgba(29, 43, 83, .65);
}
.post-hero-media::before {
	content: ""; position: absolute; z-index: 0; inset: auto -14px -14px auto; width: 60%; height: 60%;
	border-radius: 30px; background: var(--t);
}
.post-hero-media figcaption { margin-top: 8px; font-size: .8rem; color: var(--ink-3); text-align: right; }

.post-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(24px, 4vw, 48px) 0 64px; }
.post-main { max-width: 760px; }
.post-aside { position: relative; }
.toc { position: sticky; top: 104px; padding: 18px 18px 14px; border-radius: var(--r-m); background: var(--mist); }
.toc-title { font-family: var(--f-display); font-weight: 800; margin: 0 0 8px; }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; font-size: .93rem; }
.toc li { counter-increment: toc; }
.toc a { position: relative; display: block; padding: 6px 8px 6px 30px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 650; line-height: 1.35; transition: background .2s, color .2s; }
.toc a::before { content: counter(toc); position: absolute; left: 8px; top: 6px; font-weight: 800; font-size: .82rem; color: var(--ink-3); }
.toc a:hover { background: #fff; color: var(--ink); }
.toc a.is-active { background: var(--t-soft); color: var(--t-deep); }
.toc a.is-active::before { color: var(--t-deep); }

.box-title { display: flex; align-items: center; gap: .45em; font-size: 1.3rem; margin-bottom: .6em; }
.box-title .icon { color: var(--t); }
.tldr { padding: 22px 26px; border-radius: var(--r-l); background: var(--t-soft); margin-bottom: 26px; }
.tldr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tldr li { position: relative; padding-left: 28px; font-weight: 650; }
.tldr li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 12px; border-radius: 4px; background: var(--t); transform: rotate(45deg); }

.facts { padding: 24px; border: 2px solid var(--line); border-radius: var(--r-l); margin-bottom: 32px; }
.facts-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.facts-list div { padding: 12px 14px; border-radius: var(--r-s); background: var(--mist); }
.facts-list dt { color: var(--ink-3); font-weight: 700; font-size: .82rem; }
.facts-list dd { margin: 2px 0 0; font-weight: 800; line-height: 1.35; }
.facts-list + .ratings { margin-top: 22px; }
.ratings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.ratings li { display: grid; grid-template-columns: 1fr 44px; gap: 4px 12px; align-items: center; }
.r-label { grid-column: 1 / -1; font-weight: 750; font-size: .95rem; }
.r-bar { height: 12px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.r-bar span { display: block; height: 100%; width: calc(var(--v) * 20%); border-radius: inherit; background: linear-gradient(90deg, var(--t), var(--t-deep)); transform-origin: left; }
.js .r-bar span { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .facts.is-visible .r-bar span { transform: scaleX(1); }
.js .facts.is-visible li:nth-child(2) .r-bar span { transition-delay: .1s; }
.js .facts.is-visible li:nth-child(3) .r-bar span { transition-delay: .2s; }
.js .facts.is-visible li:nth-child(4) .r-bar span { transition-delay: .3s; }
.js .facts.is-visible li:nth-child(5) .r-bar span { transition-delay: .4s; }
.r-val { font-weight: 800; font-size: .9rem; color: var(--t-deep); text-align: right; }

/* ---------- Prose ---------- */
.prose-wrap { max-width: 780px; }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose > * { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); margin: 1.8em 0 .55em; scroll-margin-top: 100px; }
.prose h2::before { content: ""; display: block; width: 42px; height: 6px; border-radius: 6px; background: var(--t); margin-bottom: 14px; }
.prose h3 { font-size: 1.32rem; margin: 1.5em 0 .45em; }
.prose a { color: var(--t-deep); font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--t) 60%, transparent); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--t-deep); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--t-deep); font-weight: 800; }
.prose strong { font-weight: 800; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: var(--r-m); background: var(--t-soft); border-left: 6px solid var(--t); font-weight: 650; }
.prose blockquote p:last-child { margin: 0; }
.prose table, .prose .wp-block-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .97rem; margin: 1.5em 0; border: 2px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.prose .wp-block-table { margin: 1.5em 0; overflow-x: auto; max-width: 100%; }
.prose .wp-block-table table { margin: 0; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--t-soft); color: var(--ink); font-weight: 800; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: #fafbff; }
.prose img { border-radius: var(--r-m); }

/* ---------- Products ---------- */
.products { margin-top: 40px; padding: 24px; border-radius: var(--r-l); background: var(--mist); }
.prod-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prod-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r-m); background: #fff; transition: transform .3s var(--bounce); }
.prod-list li:hover { transform: translateY(-3px); }
.prod-name { font-weight: 800; }
.prod-why { color: var(--ink-2); font-size: .95rem; }
.prod-list .btn { align-self: flex-start; margin-top: 6px; }
.aff-note { margin: 14px 0 0; font-size: .85rem; color: var(--ink-3); }

.product-card { display: flex; gap: 18px; align-items: center; padding: 18px; margin: 1.5em 0; border-radius: var(--r-l); border: 2px solid var(--line); }
.product-card img { width: 120px; height: 120px; object-fit: contain; border-radius: var(--r-m); background: #fff; }
.product-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--t-soft); color: var(--t-deep); flex: none; }
.product-name { font-weight: 800; font-size: 1.1rem; margin: 0 0 4px; }
.product-desc { margin: 0 0 8px; color: var(--ink-2); }
.product-cta { display: flex; align-items: center; gap: 14px; margin: 0; }
.product-price { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; }
.faq h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); }
.faq-item { border-radius: var(--r-m); background: #fff; border: 2px solid var(--line); margin-bottom: 10px; transition: border-color .25s, background .25s; interpolate-size: allow-keywords; }
.faq-item[open] { border-color: var(--t); background: var(--t-soft); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-weight: 800; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--t-soft); color: var(--t-deep); flex: none; transition: transform .4s var(--bounce), background .2s; }
.faq-item[open] .faq-ico { transform: rotate(135deg); background: #fff; }
.faq-a { padding: 0 18px 4px; color: var(--ink-2); }
.faq-item::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.faq-item[open]::details-content { height: auto; }

.vet-note { margin-top: 36px; font-size: .9rem; color: var(--ink-3); }

/* ---------- Page & category heros ---------- */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(16px, 3vw, 28px); background: linear-gradient(180deg, var(--t-soft), #fff); }
.page-entry:not([data-tone]) { --t: var(--violet); --t-soft: var(--violet-soft); --t-deep: var(--violet-deep); }
.cat-hero { padding: clamp(28px, 5vw, 56px) 0; background: var(--t-soft); border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; }
.cat-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cat-hero-photo { width: clamp(160px, 22vw, 280px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid #fff; background: var(--t); box-shadow: 0 30px 50px -30px var(--t-deep); animation: rise .9s var(--ease) both, spinIn 1.2s var(--bounce) both; }
@keyframes spinIn { from { transform: rotate(-20deg) scale(.8); } }
.cat-hero-photo img, .cat-hero-photo .thumb { width: 100%; height: 100%; object-fit: cover; }
.cat-desc { margin: 64px auto 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters .chip { --t: var(--ink-3); --t-soft: var(--mist); --t-deep: var(--ink-2); }
.filters .chip.is-active { --t: var(--ink); --t-soft: var(--ink); --t-deep: #fff; }
.filter-grid > div.is-hidden { display: none; }

.empty { padding: 32px; border-radius: var(--r-l); background: var(--mist); font-weight: 650; }

.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--mist); text-decoration: none; font-weight: 800; }
.nav-links .current { background: var(--ink); color: #fff; }

/* ---------- Calculators ---------- */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: clamp(18px, 3vw, 28px); margin: 8px auto 48px; max-width: 1000px; border-radius: var(--r-xl); background: #fff; border: 2px solid var(--line); box-shadow: 0 30px 60px -44px rgba(29, 43, 83, .5); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: .95rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field small { font-weight: 600; color: var(--ink-3); }
.field input[type="number"], .field select {
	width: 100%; padding: .75em .9em; border-radius: var(--r-s); border: 2px solid var(--line); background: #fff; font-weight: 700;
	transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--t); box-shadow: 0 0 0 4px var(--t-soft); }
.field:has(small), #age-calc .field:first-child, .sizes { grid-column: 1 / -1; }
.field input[type="range"] { width: 100%; accent-color: var(--t-deep); height: 28px; }
.range-out { font-family: var(--f-display); font-size: 1.4rem; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sizes legend { margin-bottom: 6px; }
.sizes label { cursor: pointer; }
.sizes input { position: absolute; opacity: 0; }
.sizes label span { display: block; text-align: center; padding: 12px 6px; border-radius: var(--r-s); border: 2px solid var(--line); font-weight: 800; line-height: 1.25; transition: all .25s var(--bounce); }
.sizes input:checked + span { border-color: var(--t); background: var(--t-soft); transform: translateY(-2px); }
.sizes input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.calc-result { padding: 24px; border-radius: var(--r-l); background: var(--t-soft); display: flex; flex-direction: column; }
.res-label { font-weight: 800; color: var(--t-deep); margin: 0; }
.res-big { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -.04em; margin: 8px 0 18px; }
.res-big.pop { animation: pop .45s var(--bounce); }
@keyframes pop { 40% { transform: scale(1.06); } }
.res-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; margin: 0; border-top: 1px dashed color-mix(in srgb, var(--t-deep) 30%, transparent); }
.res-note { margin: auto 0 0; padding-top: 14px; font-size: .88rem; color: var(--ink-2); }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound .hero-search .search-form { margin: 24px auto; }
.nf-paws { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; color: var(--coral); }
.nf-paws span { animation: paw-in 2.5s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); opacity: .2; }
.nf-paws span:nth-child(odd) { transform: translateY(10px); }
.nf-paws .icon { width: 34px; height: 34px; transform: rotate(90deg); }
@keyframes paw-in { 30%, 60% { opacity: 1; } }

/* ---------- Home about ---------- */
.home-about h2:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 80px; background: var(--ink); color: #dfe5f7; }
.footer-wave { position: absolute; top: -79px; left: 0; width: 100%; height: 80px; fill: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
.footer-brand p { margin-top: 14px; max-width: 36ch; color: #b8c2e0; }
.brand-light .brand-word { color: #fff; }
.brand-light .brand-word span { color: var(--sun); }
.footer-title { font-size: 1.05rem; color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; color: #c9d2ee; font-weight: 650; display: inline-flex; align-items: center; gap: .5em; transition: color .2s, transform .25s var(--bounce); }
.footer-links li[data-tone] a::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--t); }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #9fabcf; }
.footer-bottom p { margin: 0; }
.to-top { color: #fff; font-weight: 800; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.cat-grid { grid-template-columns: repeat(3, 1fr); }
	.post-layout { grid-template-columns: 1fr; }
	.post-aside { display: none; }
	.post-main { margin-inline: auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
	.menu-toggle { display: grid; }
	.main-nav {
		position: fixed; inset: 76px 0 auto 0; background: #fff; padding: 12px var(--gutter) 24px;
		box-shadow: 0 30px 40px -30px rgba(29, 43, 83, .5);
		transform: translateY(-12px); opacity: 0; visibility: hidden;
		transition: opacity .3s, transform .35s var(--ease), visibility .3s;
	}
	.main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.nav-list { flex-direction: column; }
	.nav-list a { font-size: 1.15rem; padding: .7em .9em; }
	.header-actions { margin-left: auto; }
	.hero-grid, .post-hero-grid { grid-template-columns: 1fr; }
	.hero-visual { max-width: 340px; order: -1; }
	.hero-title { max-width: none; }
	.mag-grid { grid-template-columns: 1fr 1fr; }
	.mag-grid > div:first-child { grid-column: 1 / -1; grid-row: auto; }
	.card-grid { grid-template-columns: 1fr 1fr; }
	.tools { grid-template-columns: 1fr; }
	.calc { grid-template-columns: 1fr; }
	.ratings { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.cat-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.mag-grid, .card-grid { grid-template-columns: 1fr; }
	.prod-list { grid-template-columns: 1fr; }
	.calc-fields { grid-template-columns: 1fr; }
	.sizes { grid-template-columns: 1fr 1fr; }
	.cat-hero-grid { grid-template-columns: 1fr; }
	.cat-hero-photo { order: -1; }
	.footer-grid { grid-template-columns: 1fr; }
	.fb-1 { left: 0; }
	.fb-2 { right: 0; }
	.search-form { padding-left: 42px; }
	.search-form .btn { padding: .7em 1em; }
	.prose { font-size: 1.04rem; }
	.facts-list { grid-template-columns: 1fr 1fr; }
	.section-tint { margin-inline: 0; border-radius: var(--r-l); }
	.hero-paws { display: none; }
	.product-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.hero-paws { display: none; }
}
