/* Pet-Ready Home – extra styles beyond theme.json */

:root { --prh-radius: 20px; --prh-shadow: 0 6px 18px rgba(28, 43, 42, 0.12); }

.prh-ink { color: var(--wp--preset--color--ink); }
.prh-eyebrow { margin: 0; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--terracotta); }
.prh-eyebrow-sand { color: var(--wp--preset--color--sand); }
a.prh-plain, .prh-plain { text-decoration: none; color: inherit; }
a.prh-plain:hover { text-decoration: underline; }
.prh-more { margin: 0; font-weight: 700; }
.prh-more a { text-decoration: none; }
.prh-more a:hover { text-decoration: underline; }

/* Header */
.prh-header .wp-block-site-logo img { display: block; }
.prh-header .wp-block-search__button { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--wp--preset--color--line); background: #fff; color: var(--wp--preset--color--ink); padding: 0; display: flex; align-items: center; justify-content: center; }
.prh-header .wp-block-search__button svg { width: 20px; height: 20px; fill: currentColor; }
.prh-header .wp-block-search.wp-block-search__searchfield-hidden .wp-block-search__input { border: 0; }
.prh-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper { border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding-left: 0.75rem; background: #fff; }
.prh-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--teal); }

/* Buttons */
.wp-block-button.is-style-prh-text .wp-block-button__link { background: transparent; color: var(--wp--preset--color--teal); padding-left: 0; padding-right: 0; }
.wp-block-button.is-style-prh-text .wp-block-button__link:hover { background: transparent; color: var(--wp--preset--color--teal-dark); text-decoration: underline; }

/* Hero */
.prh-hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.prh-hero-art::before { content: ""; position: absolute; inset: 0 4% 0 4%; background: var(--wp--preset--color--peach); border-radius: 58% 42% 52% 48% / 50% 46% 54% 50%; z-index: 0; }
.prh-hero-art .prh-hero-photo { position: relative; z-index: 1; width: 78%; margin: 0; }
.prh-hero-art .prh-hero-photo img { border-radius: 28px; aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; height: auto; box-shadow: var(--prh-shadow); }
.prh-chip { position: absolute; z-index: 2; margin: 0; padding: 0.6rem 1rem; border-radius: 999px; background: #fff; color: var(--wp--preset--color--teal-dark); font-size: 0.875rem; font-weight: 700; box-shadow: var(--prh-shadow); line-height: 1.2; }
.prh-chip-1 { top: 8%; left: 0; }
.prh-chip-2 { bottom: 12%; left: 2%; }
.prh-chip-3 { top: 28%; right: 0; background: var(--wp--preset--color--teal); color: #fff; }
.prh-trust .prh-icon { flex: 0 0 auto; margin-top: 2px; }
.prh-trust p { margin: 0; }

/* Search pill */
.prh-search-pill .wp-block-search__inside-wrapper { border: 1.5px solid var(--wp--preset--color--line) !important; border-radius: 999px; padding: 4px 4px 4px 18px; background: #fff; }
.prh-search-pill .wp-block-search__input { border: 0; font-size: 1rem; background: transparent; min-height: 44px; }
.prh-search-pill .wp-block-search__input:focus { outline: none; }
.prh-search-pill .wp-block-search__inside-wrapper:focus-within { border-color: var(--wp--preset--color--teal) !important; }
.prh-search-pill .wp-block-search__button { border-radius: 999px; background: var(--wp--preset--color--teal); color: #fff; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; margin-left: 4px; }
.prh-search-pill .wp-block-search__button svg { fill: currentColor; }

/* Problem tiles */
.prh-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.prh-tile { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; padding: 1.5rem 1rem; background: var(--wp--preset--color--mint); border-radius: var(--prh-radius); color: var(--wp--preset--color--teal); text-decoration: none; text-align: center; transition: transform .15s ease, background .15s ease; }
.prh-tile span { color: var(--wp--preset--color--ink); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.prh-tile:hover, .prh-tile:focus-visible { background: #E2EFEA; transform: translateY(-2px); }
@media (max-width: 960px) { .prh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .prh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cards */
.prh-card .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.prh-card .wp-block-post-featured-image img { transition: transform .3s ease; }
.prh-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.prh-card .wp-block-post-title a:hover { text-decoration: underline; }
.prh-card .wp-block-post-excerpt__excerpt { margin: 0; }
.prh-card-row .wp-block-post-featured-image { flex: 0 0 96px; }
.prh-checklist img { background: var(--wp--preset--color--cream); }
.prh-topic .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--teal); }
.prh-topic .wp-block-post-title a:hover { text-decoration: underline; }
.prh-topic-list .wp-block-post-template { margin: 0; padding: 0; }

/* About box */
.prh-logo-disc { flex: 0 0 auto; margin: 0; }
.prh-logo-disc img { border-radius: 50%; display: block; }
.prh-about .wp-block-button__link:hover { background: #F0C9A6 !important; color: var(--wp--preset--color--ink) !important; }

/* Article */
.prh-breadcrumb { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.prh-breadcrumb a { color: var(--wp--preset--color--muted); }
.prh-dek p { color: #3E4E4C; line-height: 1.55; margin: 0; }
.prh-byline p { margin: 0; }
.prh-logo-mark { border-radius: 50%; display: block; background: var(--wp--preset--color--mint); }
.prh-article-main { min-width: 0; max-width: 740px; }
.prh-content { font-size: 1.125rem; line-height: 1.75; }
.prh-content > * + * { margin-top: 1.25rem; }
.prh-content h2 { scroll-margin-top: 1.5rem; }
.prh-content img { border-radius: 16px; height: auto; }
.prh-content table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid #DCE5E2; border-radius: 16px; overflow: hidden; }
.prh-content th { background: var(--wp--preset--color--teal-dark); color: #fff; text-align: left; font-weight: 700; }
.prh-content th, .prh-content td { padding: 0.8rem 1rem; border: 0; border-top: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.prh-content tr:first-child th, .prh-content tr:first-child td { border-top: 0; }
.prh-content tbody tr:nth-child(even) td { background: #FAFCFB; }
.prh-content .wp-block-table { overflow-x: auto; }

/* Callout boxes (block styles + patterns) */
.is-style-prh-summary, .is-style-prh-tip, .is-style-prh-safety { border-radius: 18px; padding: 1.4rem 1.6rem; }
.is-style-prh-summary { background: var(--wp--preset--color--mint); }
.is-style-prh-tip { background: var(--wp--preset--color--mint); border-left: 0; }
.is-style-prh-safety { background: var(--wp--preset--color--blush); }
.is-style-prh-summary > * + *, .is-style-prh-tip > * + *, .is-style-prh-safety > * + * { margin-top: 0.5rem; }
.prh-callout-title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.125rem; margin: 0; color: var(--wp--preset--color--teal-dark); }
.is-style-prh-safety .prh-callout-title { color: #7A3219; }

/* "On this page" */
.prh-article-aside { position: relative; }
.prh-toc { position: sticky; top: 1.5rem; border: 1px solid var(--wp--preset--color--line); border-radius: var(--prh-radius); padding: 1.3rem 1.5rem; }
.prh-toc-title { margin: 0 0 0.8rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.prh-toc ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.9375rem; line-height: 1.4; font-weight: 600; }
.prh-toc a { color: var(--wp--preset--color--ink); text-decoration: none; }
.prh-toc a:hover, .prh-toc a.is-active { color: var(--wp--preset--color--teal); text-decoration: underline; }
@media (max-width: 781px) { .prh-article-aside { display: none; } }

/* Feedback */
.prh-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 2.5rem; padding: 1.1rem 1.4rem; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; }
.prh-feedback-q { font-weight: 700; flex: 1 1 200px; color: var(--wp--preset--color--ink); }
.prh-feedback button { min-height: 44px; padding: 0 1.3rem; border-radius: 999px; border: 1.5px solid #CFDCD6; background: #fff; font: inherit; font-weight: 700; font-size: 0.9375rem; color: var(--wp--preset--color--teal-dark); cursor: pointer; }
.prh-feedback button:hover { border-color: var(--wp--preset--color--teal); }
.prh-feedback-thanks { font-weight: 600; color: var(--wp--preset--color--teal); }

/* Related */
.prh-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; margin-top: 1.75rem; }
.prh-related-card { display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none; color: inherit; }
.prh-related-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; height: auto; }
.prh-related-cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--terracotta); }
.prh-related-title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--wp--preset--color--teal-dark); }
.prh-related-card:hover .prh-related-title { text-decoration: underline; }
@media (max-width: 781px) { .prh-related { grid-template-columns: 1fr; } }

/* Pagination */
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: 0.4rem 0.8rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.wp-block-query-pagination .current { background: var(--wp--preset--color--teal); color: #fff; }

/* Mobile hero */
@media (max-width: 781px) {
	.prh-hero-art { min-height: 320px; margin-top: 1rem; }
}

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--wp--preset--color--sand); outline-offset: 2px; }

/* Fixes after staging review */
.prh-logo-link { display: block; line-height: 0; }
.prh-tagline { margin: 0; font-size: 0.75rem; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group { margin-block-start: 0; }
.prh-footer-links a { text-decoration: none; }
.prh-footer-links a:hover { text-decoration: underline; }
@media (min-width: 782px) {
	.prh-about { flex-wrap: nowrap !important; }
	.prh-about > .wp-block-group { flex: 1 1 0; min-width: 0; }
}
.prh-search-pill { max-width: 100%; }
.prh-search-pill .wp-block-search__inside-wrapper { box-sizing: border-box; max-width: 100%; }
@media (max-width: 600px) {
	.prh-search-pill, .prh-search-pill .wp-block-search__inside-wrapper { width: 100% !important; }
}

/* Full-page photo background (v1.2) */
html { background: #fff; }
body { background-color: transparent !important; }
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background-image: var(--prh-bg-photo, none);
	background-size: cover; background-position: center; background-repeat: no-repeat;
	opacity: var(--prh-bg-strength, 0.42);
}
.prh-header.has-white-background-color { background-color: rgba(255, 255, 255, 0.86) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.has-cream-background-color { background-color: rgba(251, 247, 242, 0.74) !important; }
.has-mint-background-color { background-color: rgba(238, 245, 242, 0.78) !important; }
.prh-topic, .prh-toc, .prh-feedback { background-color: rgba(255, 255, 255, 0.92); }
.prh-tile { background-color: rgba(238, 245, 242, 0.92); }
/* Article: a soft white panel keeps long text easy to read */
.single .prh-article-main { background: rgba(255, 255, 255, 0.86); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.5rem); box-sizing: border-box; }
main.prh-page-panel { background: rgba(255, 255, 255, 0.82); border-radius: 28px; max-width: 900px; margin-left: auto !important; margin-right: auto !important; margin-top: 2rem !important; margin-bottom: 2rem; }
