/* Ported mechanically from training-puppies-hello-child 0.5.34 assets/css/tp-v3.css by BUILD/block-migration/chrome/port_css.py
   (colours -> theme.json tokens, translucent ones -> legacy alpha tokens; TOKEN-MAP-2026-11-11.md). Mode A parity CSS: change the tokens, not this file. */
/* v3 (0.5.9): CTA button, final footer, 404 page, breadcrumb sibling menu, sticky "On this page"
   sidebar on guides, header that tightens on scroll. Inspiration: cta.gallery (pill + icon well), footer.design
   (typographic wordmark, CTA band), 404s.design (the number as the joke). Same tokens as the shell. */

:root { --v3-ink: var(--wp--preset--color--text); --v3-muted: var(--wp--preset--color--text-muted); --v3-green: var(--wp--preset--color--action); --v3-green-d: var(--wp--preset--color--action-hover); --v3-tint: var(--wp--custom--color--tint);
	--v3-paper: var(--wp--preset--color--surface); --v3-cream: var(--wp--preset--color--base); --v3-deep: var(--wp--preset--color--surface-alt); --v3-rule: var(--wp--preset--color--border); --v3-rust: var(--wp--preset--color--accent); --v3-pup: var(--wp--custom--color--mark);
	--v3-shadow: var(--wp--custom--legacy--color--shadow-sand); --v3-night: var(--wp--custom--color--footer-bg); --v3-night-2: var(--wp--custom--legacy--color--night-2); --v3-mint: var(--wp--custom--color--footer-link);
	--v3-ease: cubic-bezier(0.23, 1, 0.32, 1); --v3-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--v3-display: "TP Fraunces", "TPA Fraunces", Georgia, serif; }

/* 1. CTA button ------------------------------------------------------------------------------------------ */
body.tp-shell .tp-cta, body.tp-shell .tp-cta:visited {
	display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 8px 8px 26px; border: 0; border-radius: 999px;
	background: var(--v3-green); color: var(--wp--custom--color--on-action); font: 700 17px/1.2 var(--tp-sans, system-ui, sans-serif); text-decoration: none;
	box-shadow: 0 14px 28px -16px var(--wp--custom--legacy--alpha--action-hover-70); transition: background-color 200ms var(--v3-ease), transform 160ms var(--v3-ease), box-shadow 200ms var(--v3-ease);
}
body.tp-shell .tp-cta:hover, body.tp-shell .tp-cta:focus-visible { background: var(--v3-green-d); color: var(--wp--custom--color--on-action); text-decoration: none; box-shadow: 0 18px 30px -16px var(--wp--custom--legacy--alpha--action-hover-80); }
body.tp-shell .tp-cta:active { transform: scale(0.98); }
body.tp-shell .tp-cta:focus-visible { outline: 3px solid var(--v3-ink); outline-offset: 3px; }
body.tp-shell .tp-cta i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--custom--legacy--alpha--on-action-12); font-style: normal; font-size: 18px; transition: transform 300ms var(--v3-spring); }
body.tp-shell .tp-cta:hover i { transform: translateX(3px) rotate(-8deg) scale(1.06); }
body.tp-shell .tp-cta--light, body.tp-shell .tp-cta--light:visited { background: var(--v3-cream); color: var(--v3-ink); box-shadow: 0 14px 28px -16px var(--wp--custom--legacy--alpha--black-60); }
body.tp-shell .tp-cta--light:hover, body.tp-shell .tp-cta--light:focus-visible { background: var(--wp--custom--color--on-action); color: var(--v3-ink); }
body.tp-shell .tp-cta--light i { background: var(--v3-green); color: var(--wp--custom--color--on-action); }
body.tp-shell .tp-cta--light:focus-visible { outline-color: var(--v3-mint); }
body.tp-shell .tp-cta--ghost, body.tp-shell .tp-cta--ghost:visited { background: transparent; color: var(--v3-ink); box-shadow: inset 0 0 0 1.5px var(--v3-ink); }
body.tp-shell .tp-cta--ghost:hover, body.tp-shell .tp-cta--ghost:focus-visible { background: var(--v3-paper); color: var(--v3-ink); box-shadow: inset 0 0 0 1.5px var(--v3-ink), 4px 4px 0 var(--v3-shadow); }
body.tp-shell .tp-cta--ghost i { background: var(--v3-deep); }
@media (max-width: 479px) { body.tp-shell .tp-cta { width: 100%; justify-content: space-between; } }
@media (forced-colors: active) { body.tp-shell .tp-cta { border: 2px solid ButtonText; } }

/* 2. Footer ----------------------------------------------------------------------------------------------- */
.tp-site-footer.tp-footer--v3 { position: relative; overflow: hidden; padding-top: 0; background: var(--v3-night); }
.tp-footer--v3 .tp-footer-cta-wrap { max-width: 1216px; margin: 0 auto; padding: 72px var(--tp-gutter, 48px) 0; }
.tp-footer--v3 .tp-footer-cta {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
	padding: 40px 44px 40px 48px; border-radius: 26px; background: var(--v3-cream); color: var(--v3-ink); isolation: isolate; overflow: hidden;
}
.tp-footer--v3 .tp-footer-cta::before { content: ""; position: absolute; z-index: -1; left: -60px; bottom: -120px; width: 260px; height: 220px; border-radius: 50%; background: var(--v3-tint); }
.tp-footer--v3 .tp-footer-cta-k { margin: 0 0 8px; font: 600 14px/1.3 var(--tp-sans); color: var(--v3-rust); }
.tp-footer--v3 .tp-footer-cta h2 { margin: 0; font: 540 clamp(28px, 1.6vw + 16px, 40px)/1.08 var(--v3-display); letter-spacing: -0.015em; color: var(--v3-ink); text-wrap: balance; }
.tp-footer--v3 .tp-footer-cta h2 em { font-style: italic; font-weight: 460; color: var(--v3-green); }
.tp-footer--v3 .tp-footer-cta p.tp-footer-cta-d { margin: 10px 0 0; max-width: 52ch; font: 400 16.5px/1.5 var(--tp-sans); color: var(--v3-muted); }
.tp-footer--v3 .tp-footer-cta .tp-cta { justify-self: end; }
.tp-footer--v3 .tp-footer-inner { padding-top: 64px; }
.tp-footer--v3 .tp-footer-grid { align-items: start; }
.tp-footer--v3 .tp-footer-scope { margin: 16px 0 0; max-width: 34ch; font: 400 14.5px/1.5 var(--tp-sans); color: var(--tp-footer-muted, var(--wp--custom--color--footer-muted)); }
.tp-footer--v3 .tp-footer-heading { letter-spacing: 0.02em; }
.tp-footer--v3 .tp-footer-link { transition: color 160ms var(--v3-ease); }
.tp-footer--v3 .tp-footer-link:hover { text-decoration-color: var(--v3-pup); text-underline-offset: 4px; }
.tp-footer--v3 .tp-footer-mark { position: relative; max-width: 1216px; margin: 40px auto 0; padding: 0 var(--tp-gutter, 48px); pointer-events: none; user-select: none; }
.tp-footer--v3 .tp-footer-mark-t { display: block; font: 560 clamp(56px, 12.4vw, 184px)/0.8 var(--v3-display); letter-spacing: -0.045em; white-space: nowrap; color: var(--v3-night-2); transform: translateY(14%); }
.tp-footer--v3 .tp-footer-mark-t b { font-weight: inherit; font-style: italic; color: var(--wp--custom--legacy--color--night-3); }
.tp-footer--v3 .tp-footer-pup { position: absolute; right: calc(var(--tp-gutter, 48px) + 2%); bottom: 34%; width: clamp(64px, 8vw, 116px); transform-origin: 50% 90%; }
.tp-footer--v3 .tp-footer-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1216px; margin: 0 auto; padding: 18px var(--tp-gutter, 48px) 22px; border-top: 1px solid var(--wp--custom--color--footer-rule); background: var(--v3-night); }
.tp-footer--v3 .tp-footer-bottom a { color: var(--tp-footer-link, var(--wp--custom--color--footer-link)); text-underline-offset: 3px; }
@media (max-width: 1023px) {
	.tp-footer--v3 .tp-footer-cta-wrap { padding-top: 48px; }
	.tp-footer--v3 .tp-footer-cta { grid-template-columns: 1fr; padding: 32px 28px; }
	.tp-footer--v3 .tp-footer-cta .tp-cta { justify-self: start; }
	.tp-footer--v3 .tp-footer-inner { padding-top: 44px; }
}
@media (max-width: 767px) {
	.tp-footer--v3 .tp-footer-cta { padding: 28px 22px; border-radius: 20px; }
	.tp-footer--v3 .tp-footer-mark { margin-top: 28px; }
}

/* 3. 404 ---------------------------------------------------------------------------------------------------- */
body.error404 .tp-404 { background: var(--v3-cream); }
.tp-404-wrap { max-width: 1120px; margin: 0 auto; padding: 56px var(--tp-gutter, 48px) 96px; }
.tp-404-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; align-items: center; }
.tp-404-num { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.04em; font: 600 clamp(120px, 17vw, 260px)/0.8 var(--v3-display); letter-spacing: -0.05em; color: var(--v3-ink); }
.tp-404-num > span { display: block; }
.tp-404-zero { position: relative; display: block; width: 0.9em; height: 0.9em; margin: 0 0.02em; }
.tp-404-zero::before { content: ""; position: absolute; inset: 6% 2%; border-radius: 50%; background: var(--v3-tint); }
.tp-404-zero svg { position: absolute; left: -12%; top: 8%; width: 124%; transform-origin: 50% 85%; }
.tp-404-trail { position: absolute; left: 6%; right: 6%; bottom: -46px; height: 34px; display: flex; justify-content: space-between; }
.tp-404-trail i { display: block; width: 18px; height: 16px; opacity: 0.55; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cg fill='%23C9BBA6'%3E%3Cellipse cx='14' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='30' cy='9' rx='7' ry='9'/%3E%3Cellipse cx='47' cy='14' rx='7' ry='9'/%3E%3Cpath d='M32 26c10 0 18 9 18 17 0 7-7 9-18 9s-18-2-18-9c0-8 8-17 18-17z'/%3E%3C/g%3E%3C/svg%3E"); }
.tp-404-trail i:nth-child(odd) { transform: translateY(10px) rotate(-14deg); }
.tp-404-trail i:nth-child(even) { transform: rotate(12deg); }
.tp-404 h1 { margin: 0; font: 540 clamp(34px, 2.2vw + 18px, 52px)/1.05 var(--v3-display); letter-spacing: -0.02em; color: var(--v3-ink); text-wrap: balance; }
.tp-404 h1 em { font-style: italic; font-weight: 460; color: var(--v3-green); }
.tp-404-lede { margin: 16px 0 0; max-width: 46ch; font: 400 18px/1.55 var(--tp-sans); color: var(--v3-muted); }
.tp-404-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tp-404-list-h { margin: 88px 0 6px; font: 540 26px/1.15 var(--v3-display); color: var(--v3-ink); }
.tp-404-list-d { margin: 0 0 20px; color: var(--v3-muted); font-size: 16px; }
.tp-404-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--v3-ink); }
.tp-404-list li { margin: 0; border-bottom: 1px solid var(--v3-rule); }
.tp-404-list a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 14px 6px; color: var(--v3-ink); text-decoration: none; border-radius: 12px; transition: background-color 160ms var(--v3-ease); }
.tp-404-list a:hover, .tp-404-list a:focus-visible { background: var(--v3-tint); }
.tp-404-list a:focus-visible { outline: 3px solid var(--v3-green); outline-offset: 2px; }
.tp-404-list .th { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--v3-deep); }
.tp-404-list .th img, .tp-404-list .th svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-404-list .s { font: 400 15.5px/1.35 var(--tp-sans); color: var(--v3-ink); }
.tp-404-list .s b { font-weight: 700; color: var(--v3-green-d); }
.tp-404-list .t { grid-column: 2; font: 600 13px/1.3 var(--tp-sans); color: var(--v3-muted); letter-spacing: 0.01em; }
.tp-404-list .go { grid-column: 3; grid-row: 1 / span 2; color: var(--v3-green); font-size: 18px; transition: transform 300ms var(--v3-spring); }
.tp-404-list a:hover .go { transform: translateX(4px); }
.tp-404-list a:hover .s { text-decoration: underline; text-decoration-color: var(--v3-pup); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (max-width: 1023px) { .tp-404-hero { grid-template-columns: 1fr; } .tp-404-num { justify-content: flex-start; } }
@media (max-width: 767px) { .tp-404-wrap { padding-top: 36px; } .tp-404-list { grid-template-columns: 1fr; } .tp-404-list-h { margin-top: 72px; } }

/* 4. Breadcrumb sibling menu -------------------------------------------------------------------------------- */
.tp-crumb-group { position: relative; }
.tp-crumb-btn, .tp-crumb-btn:hover, .tp-crumb-btn:focus { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; margin: -6px 0; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tp-crumb-btn:hover, .tp-crumb-btn[aria-expanded="true"] { background: var(--v3-tint); color: var(--v3-green-d); }
.tp-crumb-btn:focus-visible { outline: 3px solid var(--v3-green); outline-offset: 2px; }
.tp-crumb-btn svg { width: 14px; height: 14px; transition: transform 200ms var(--v3-ease); }
.tp-crumb-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.tp-crumb-menu { position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; width: 300px; margin: 0; padding: 8px; list-style: none; background: var(--v3-paper); border: 1.5px solid var(--v3-ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--v3-shadow); }
.tp-crumb-menu[hidden] { display: none; }
.tp-crumb-menu li { margin: 0; }
.tp-crumb-menu a { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 7px 8px; border-radius: 9px; color: var(--v3-ink); text-decoration: none; font: 500 15px/1.25 var(--v3-display); }
.tp-crumb-menu a:hover, .tp-crumb-menu a:focus-visible { background: var(--v3-tint); }
.tp-crumb-menu a[aria-current="page"] { background: var(--v3-deep); color: var(--v3-green-d); }
.tp-crumb-menu .th { width: 36px; height: 36px; border-radius: 9px; overflow: hidden; background: var(--v3-deep); }
.tp-crumb-menu .th img, .tp-crumb-menu .th svg { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .tp-crumb-menu:not([hidden]) { animation: tp-v3-up 220ms var(--v3-ease) both; } }

/* 5. Sticky "On this page" sidebar (guides, >= 1280px) -------------------------------------------------------- */
.tp-side-toc { display: none; }
@media (min-width: 1280px) {
	html.tp-has-side .tp-side-toc { display: block; position: fixed; z-index: 20; top: calc(var(--tp-header-h, 64px) + var(--tp-admin, 0px) + 36px); width: 250px; max-height: calc(100vh - var(--tp-header-h, 64px) - 72px); overflow-y: auto; padding: 18px 16px 16px 18px; border-radius: 16px; background: var(--v3-paper); box-shadow: inset 0 0 0 1px var(--v3-rule); opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--v3-ease), transform 300ms var(--v3-ease), visibility 0s linear 300ms; visibility: hidden; }
	html.tp-has-side .tp-side-toc.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity 300ms var(--v3-ease), transform 300ms var(--v3-ease), visibility 0s; }
	html.tp-has-side .tp-guide-toc { display: none; }
}
.tp-side-toc-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font: 600 13px/1.3 var(--tp-sans); color: var(--v3-rust); }
.tp-side-toc-h span { color: var(--v3-muted); font-weight: 500; }
.tp-side-toc-bar { height: 3px; margin: 0 0 12px; border-radius: 3px; background: var(--v3-deep); overflow: hidden; }
.tp-side-toc-bar i { display: block; height: 100%; width: 100%; background: var(--v3-green); transform-origin: 0 50%; transform: scaleX(0); }
.tp-side-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.tp-side-toc li { margin: 0; }
.tp-side-toc a { position: relative; display: block; padding: 6px 8px 6px 14px; border-radius: 8px; color: var(--v3-muted); font: 400 14.5px/1.35 var(--tp-sans); text-decoration: none; transition: color 160ms var(--v3-ease), background-color 160ms var(--v3-ease); }
.tp-side-toc a::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: transparent; transition: background-color 200ms var(--v3-ease); }
.tp-side-toc a:hover { color: var(--v3-ink); background: var(--v3-cream); }
.tp-side-toc a:focus-visible { outline: 3px solid var(--v3-green); outline-offset: 1px; }
.tp-side-toc a[aria-current="location"] { color: var(--v3-ink); font-weight: 700; }
.tp-side-toc a[aria-current="location"]::before { background: var(--v3-pup); }

/* 6. Header tightens on scroll (no layout shift: only the inner bar and the mark move) ------------------------ */
.tp-site-header { transition: box-shadow 260ms var(--v3-ease), background-color 260ms var(--v3-ease); }
html.tp-scrolled .tp-site-header { box-shadow: 0 10px 24px -20px var(--wp--custom--legacy--alpha--text-55); background: var(--wp--custom--legacy--alpha--base-97); }
.tp-site-header .tp-brand-mark { transition: transform 260ms var(--v3-ease); transform-origin: 0 50%; }
html.tp-scrolled .tp-site-header .tp-brand-mark { transform: scale(0.86); }
.tp-site-header .tp-brand-name { transition: transform 260ms var(--v3-ease); transform-origin: 0 50%; }
html.tp-scrolled .tp-site-header .tp-brand-name { transform: translateX(-4px); }

/* Motion -------------------------------------------------------------------------------------------------------- */
@keyframes tp-v3-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tp-v3-peek { 0% { transform: translateY(70%) rotate(-10deg); } 100% { transform: translateY(0) rotate(-10deg); } }
@keyframes tp-v3-tilt { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } }
@keyframes tp-v3-sniff { 0%, 100% { transform: rotate(-4deg) translateY(0); } 25% { transform: rotate(3deg) translateY(-3%); } 50% { transform: rotate(-2deg) translateY(1%); } 75% { transform: rotate(5deg) translateY(-2%); } }
@keyframes tp-v3-paw { 0% { opacity: 0; } 30% { opacity: 0.55; } 100% { opacity: 0.55; } }
@media (prefers-reduced-motion: no-preference) {
	.tp-footer--v3 .tp-footer-pup { transform: translateY(70%) rotate(-10deg); }
	.tp-footer--v3.is-in .tp-footer-pup { animation: tp-v3-peek 800ms var(--v3-spring) both, tp-v3-tilt 1.6s 0.9s ease-in-out 2; }
	.tp-404-zero svg { animation: tp-v3-sniff 2.8s 0.4s ease-in-out infinite; }
	.tp-404-trail i { opacity: 0; animation: tp-v3-paw 400ms ease-out both; }
	.tp-404-trail i:nth-child(1) { animation-delay: 0.2s; } .tp-404-trail i:nth-child(2) { animation-delay: 0.45s; } .tp-404-trail i:nth-child(3) { animation-delay: 0.7s; }
	.tp-404-trail i:nth-child(4) { animation-delay: 0.95s; } .tp-404-trail i:nth-child(5) { animation-delay: 1.2s; } .tp-404-trail i:nth-child(6) { animation-delay: 1.45s; }
	.tp-404-trail i:nth-child(7) { animation-delay: 1.7s; } .tp-404-trail i:nth-child(8) { animation-delay: 1.95s; }
}
@media (prefers-reduced-motion: reduce) { .tp-footer--v3 .tp-footer-pup { transform: rotate(-10deg); } }

/* fixes after the first visual pass */
.tp-404-num > .tp-404-trail { display: flex; }
.tp-footer--v3 .tp-footer-mark-t { font-size: min(9.4vw, 136px); color: var(--wp--custom--legacy--color--art-ink-2); }
.tp-footer--v3 .tp-footer-mark-t b { color: var(--wp--custom--legacy--color--art-ink-3); }
.tp-footer--v3 .tp-footer-pup { right: calc(var(--tp-gutter, 48px) + 1%); bottom: 30%; }
body.tp-shell .tp-guide-breadcrumb .tp-crumb-btn, body.tp-shell .tp-guide-breadcrumb .tp-crumb-btn:hover, body.tp-shell .tp-guide-breadcrumb .tp-crumb-btn:focus, body.tp-shell .tp-guide-breadcrumb .tp-crumb-btn:active { border: 0; box-shadow: none; text-decoration: none; }
body.tp-shell .tp-guide-breadcrumb .tp-crumb-btn { background: transparent; color: inherit; }
body.tp-shell .tp-guide-breadcrumb .tp-crumb-btn:hover, body.tp-shell .tp-guide-breadcrumb .tp-crumb-btn[aria-expanded="true"] { background: var(--v3-tint); color: var(--v3-green-d); }
/* sidebar holds the page's one nav.tp-guide-toc (moved there >= 1280px) */
@media (min-width: 1280px) {
	html.tp-has-side .tp-side-toc nav.tp-guide-toc { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
}
.tp-side-toc .tp-guide-toc__label { display: none; }
.tp-side-toc .tp-guide-toc__list { display: block; columns: auto; margin: 0; padding: 0; list-style: none; }
.tp-side-toc .tp-guide-toc__list li { margin: 0; padding: 0; list-style: none; }
.tp-side-toc .tp-guide-toc__list li::marker { content: none; }
.tp-crumb-menu .is-here { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 7px 8px; border-radius: 9px; background: var(--v3-deep); color: var(--v3-green-d); font: 600 15px/1.25 var(--v3-display); }
/* wordmark as SVG text: decorative, always exactly the footer width */
.tp-footer--v3 .tp-footer-mark-svg { display: block; width: 100%; height: auto; margin-bottom: -2.2%; overflow: visible; }
.tp-footer--v3 .tp-footer-mark-svg text { font-family: "TP Fraunces", "TPA Fraunces", Georgia, serif; font-size: 168px; font-weight: 560; fill: var(--wp--custom--legacy--color--art-ink-2); letter-spacing: -6px; }
.tp-footer--v3 .tp-footer-mark-svg .it { font-style: italic; fill: var(--wp--custom--legacy--color--art-ink-3); }
.tp-footer--v3 .tp-footer-pup { bottom: 46%; }


/* 0.5.9: 404 as a div inside the single main; document pages; byline; footer legal links ------------------ */
body.error404 .tp-main { background: var(--v3-cream); }
.tp-404-wrap { padding-bottom: 96px; }
body.tp-doc .tp-main { background: var(--v3-cream); }
body.tp-doc .site-main { box-sizing: border-box; max-width: 760px; margin: 0 auto; padding: 56px var(--tp-gutter, 48px) 88px; }
body.tp-doc .page-header { margin: 0 0 28px; padding: 0 0 22px; border-bottom: 1.5px solid var(--v3-ink); }
body.tp-doc .page-header .entry-title { margin: 0; font: 540 clamp(34px, 2vw + 20px, 50px)/1.06 var(--v3-display); letter-spacing: -0.02em; color: var(--v3-ink); }
body.tp-doc .page-content { font: 400 17.5px/1.65 var(--tp-sans); color: var(--v3-ink); }
body.tp-doc .page-content > :first-child { margin-top: 0; }
body.tp-doc .page-content h2 { margin: 40px 0 10px; font: 560 25px/1.2 var(--v3-display); color: var(--v3-ink); }
body.tp-doc .page-content h3 { margin: 26px 0 6px; font: 600 19px/1.3 var(--v3-display); color: var(--v3-green-d); }
body.tp-doc .page-content p, body.tp-doc .page-content ul { margin: 0 0 14px; }
body.tp-doc .page-content ul { padding-left: 22px; }
body.tp-doc .page-content li { margin-bottom: 6px; }
body.tp-doc .page-content a { color: var(--v3-green-d); text-decoration: underline; text-underline-offset: 3px; }
body.tp-doc .page-content a:focus-visible { outline: 3px solid var(--v3-green); outline-offset: 2px; }
body.tp-doc .tp-doc-meta { color: var(--v3-muted); font-size: 15px; }
body.tp-doc .tp-doc-lede { font: 400 20px/1.5 var(--v3-display); color: var(--v3-ink); }
body.tp-doc .tp-doc-box { margin: 24px 0; padding: 18px 22px; border-radius: 14px; background: var(--v3-paper); box-shadow: inset 0 0 0 1px var(--v3-rule); }
body.tp-doc .tp-doc-box > :last-child { margin-bottom: 0; }
body.tp-doc .tp-doc-mail { display: inline-block; margin: 4px 0 8px; font: 600 22px/1.3 var(--v3-display); }
.tp-byline { margin: 10px 0 0; font: 400 14px/1.4 var(--tp-sans); color: var(--v3-muted); }
.tp-byline a { color: var(--v3-green-d); text-decoration: underline; text-underline-offset: 3px; }
.tp-footer--v3 .tp-footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.tp-footer--v3 .tp-footer-legal li { margin: 0; }
.tp-footer--v3 .tp-footer-bottom a, .tp-footer--v3 .tp-footer-bottom span { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 767px) { body.tp-doc .site-main { padding-top: 36px; } }


/* 0.5.10: link from every guide's "Where to go next" to the age pillar (Puppy Training Schedule by Age) */
body.tp-shell .tp-guide-pillar-link, body.tp-shell .tp-guide-pillar-link:visited { display: grid; gap: 4px; max-width: 560px; margin: 0 0 22px; padding: 18px 22px 18px 20px; border-radius: 16px; background: var(--v3-tint); color: var(--v3-ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--wp--custom--legacy--alpha--action-22); transition: transform 200ms var(--v3-ease), box-shadow 200ms var(--v3-ease); }
body.tp-shell .tp-guide-pillar-link:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--wp--custom--legacy--alpha--action-35), 0 12px 24px -18px var(--wp--custom--legacy--alpha--action-hover-70); color: var(--v3-ink); }
body.tp-shell .tp-guide-pillar-link:focus-visible { outline: 3px solid var(--v3-green); outline-offset: 3px; }
body.tp-shell .tp-guide-pillar-link__k { font: 600 13px/1.3 var(--tp-sans); color: var(--v3-rust); }
body.tp-shell .tp-guide-pillar-link__t { font: 560 21px/1.2 var(--v3-display); color: var(--v3-green-d); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 160ms var(--v3-ease); }
body.tp-shell .tp-guide-pillar-link:hover .tp-guide-pillar-link__t, body.tp-shell .tp-guide-pillar-link:focus-visible .tp-guide-pillar-link__t { text-decoration-color: var(--wp--custom--color--mark); }
body.tp-shell .tp-guide-pillar-link__d { font: 400 15px/1.45 var(--tp-sans); color: var(--v3-muted); }

/* 0.5.14: links inside callouts and step text are underlined, like links in Check/Try rows (axe link-in-text-block) */
body.tp-shell .elementor .tp-guide-callout__body a:not(.tp-guide-cite),
body.tp-shell .elementor .tp-guide-step__text a:not(.tp-guide-cite) { color: var(--tp-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; padding: 10px 0; }
body.tp-shell .elementor .tp-guide-callout__body a:not(.tp-guide-cite):hover,
body.tp-shell .elementor .tp-guide-callout__body a:not(.tp-guide-cite):focus,
body.tp-shell .elementor .tp-guide-step__text a:not(.tp-guide-cite):hover,
body.tp-shell .elementor .tp-guide-step__text a:not(.tp-guide-cite):focus { color: var(--tp-primary-dark); text-decoration-thickness: 2px; }

/* 0.5.20: compact footer. Same width as the header (1120px content), a slimmer CTA, denser link columns
   (32px rows with a fine pointer, 40px on touch), a smaller wordmark with the puppy beside it; on phones the
   guide links sit in two columns. Content and links unchanged. */
.tp-footer--v3 .tp-footer-cta-wrap { max-width: 1216px; padding-top: 48px; }
.tp-footer--v3 .tp-footer-cta { gap: 16px 40px; padding: 26px 32px 26px 36px; border-radius: 22px; }
.tp-footer--v3 .tp-footer-cta::before { width: 200px; height: 170px; bottom: -110px; }
.tp-footer--v3 .tp-footer-cta-k { margin-bottom: 4px; font-size: 13.5px; }
.tp-footer--v3 .tp-footer-cta h2 { font-size: clamp(24px, 1vw + 16px, 30px); }
.tp-footer--v3 .tp-footer-cta p.tp-footer-cta-d { margin-top: 6px; font-size: 15.5px; }
.tp-site-footer.tp-footer--v3 .tp-footer-inner { padding-top: 40px; padding-bottom: 8px; }
.tp-site-footer.tp-footer--v3 .tp-footer-grid { grid-template-columns: minmax(200px, 1.1fr) repeat(var(--tp-cols, 0), minmax(0, 1fr)); gap: 28px 40px; }
.tp-footer--v3 .tp-footer-brand .tp-brand-name { font-size: 22px; }
.tp-footer--v3 .tp-footer-scope { max-width: 30ch; font-size: 14px; }
.tp-site-footer.tp-footer--v3 .tp-footer-heading { margin-bottom: 6px; }
.tp-site-footer.tp-footer--v3 .tp-footer-list { grid-template-columns: minmax(0, 1fr); }
.tp-site-footer.tp-footer--v3 .tp-footer-link { min-height: 40px; font-size: 14.5px; }
@media (hover: hover) and (pointer: fine) {
	.tp-site-footer.tp-footer--v3 .tp-footer-link { min-height: 32px; }
}
.tp-footer--v3 .tp-footer-mark { display: flex; align-items: flex-end; gap: 14px; margin-top: 20px; }
.tp-footer--v3 .tp-footer-mark-svg { width: min(52%, 560px); margin-bottom: -1.4%; }
.tp-footer--v3 .tp-footer-pup { position: relative; right: auto; bottom: auto; flex: none; width: clamp(48px, 5vw, 72px); margin-bottom: 6px; }
.tp-footer--v3 .tp-footer-bottom { padding-top: 14px; padding-bottom: 18px; }
@media (min-width: 1024px) {
	.tp-footer--v3 .tp-footer-cta-wrap, .tp-site-footer.tp-footer--v3 .tp-footer-inner, .tp-footer--v3 .tp-footer-mark, .tp-footer--v3 .tp-footer-bottom { max-width: calc(1120px + 2 * var(--tp-gutter, 48px)); }
}
@media (max-width: 1023px) {
	.tp-footer--v3 .tp-footer-cta { padding: 24px 24px; }
	.tp-site-footer.tp-footer--v3 .tp-footer-inner { padding-top: 32px; }
	.tp-site-footer.tp-footer--v3 .tp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 24px; }
	.tp-site-footer.tp-footer--v3 .tp-footer-brand { grid-column: 1 / -1; }
	.tp-footer--v3 .tp-footer-scope { max-width: 46ch; }
}
@media (max-width: 767px) {
	.tp-footer--v3 .tp-footer-cta-wrap { padding-top: 32px; }
	.tp-footer--v3 .tp-footer-cta { padding: 22px 20px; border-radius: 18px; }
	.tp-site-footer.tp-footer--v3 .tp-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tp-site-footer.tp-footer--v3 .tp-footer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
	.tp-site-footer.tp-footer--v3 .tp-footer-link { min-height: 40px; font-size: 14px; line-height: 1.3; }
	.tp-footer--v3 .tp-footer-mark { margin-top: 16px; }
	.tp-footer--v3 .tp-footer-mark-svg { width: 74%; }
	.tp-footer--v3 .tp-footer-bottom { gap: 6px 18px; }
}

/* 0.5.25: search results page (same list as the 404 page). */
body.search .tp-404 { background: var(--v3-cream); }
.tp-search .tp-search-head { max-width: 760px; margin-bottom: 36px; }
.tp-search .tp-search-k { margin: 0 0 10px; font: 600 14px/1.3 var(--tp-sans); color: var(--v3-rust); }
.tp-search h1 { margin: 0; font: 560 clamp(32px, 2vw + 20px, 48px)/1.08 var(--v3-display); letter-spacing: -0.02em; color: var(--v3-ink); text-wrap: balance; }
.tp-search .tp-search-form { margin-top: 22px; }
.tp-search .tp-search-label { display: block; margin-bottom: 8px; font: 400 15px/1.4 var(--tp-sans); color: var(--v3-muted); }
.tp-search .tp-search-row { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--wp--preset--color--surface); box-shadow: inset 0 0 0 1px var(--wp--preset--color--border); }
.tp-search .tp-search-row:focus-within { box-shadow: inset 0 0 0 2px var(--wp--preset--color--action); }
body .tp-search form.tp-search-form input.tp-search-input.tp-search-input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; outline: none; font: 400 18px/1 var(--tp-sans); color: var(--wp--preset--color--text); }
body .tp-search form.tp-search-form button.tp-search-btn { height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--wp--preset--color--action); color: var(--wp--custom--color--on-action); font: 700 16px/1 var(--tp-sans); cursor: pointer; }
body .tp-search form.tp-search-form button.tp-search-btn:hover { background: var(--wp--preset--color--action-hover); }
body .tp-search form.tp-search-form button.tp-search-btn:focus-visible { outline: 3px solid var(--wp--preset--color--action); outline-offset: 2px; }
.tp-search .tp-404-list-d { margin-top: 14px; }
