/*
Theme Name: Themixify Child
Theme URI:    https://pupentryramps.com/
Description:  PupEntryRamps.com child theme for Themixify: de-bloat, schema fixes and the pet-hardware design system.
Author:       PupEntryRamps
Template:     themixify
Version:      1.0.0
Text Domain:  themixify-child
*/

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
	--pe-slate-900: #0f2419;
	--pe-slate-800: #163022;
	--pe-green: #1b4332;
	--pe-green-600: #2d6a4f;
	--pe-green-50: #ecf5ef;
	--pe-amber: #d97706;
	--pe-amber-hover: #b45309;
	--pe-amber-50: #fffbeb;
	--pe-amber-200: #fcd34d;
	--pe-canvas: #f8fafc;
	--pe-card: #ffffff;
	--pe-text: #1e293b;
	--pe-muted: #64748b;
	--pe-line: #e2e8f0;
	--pe-link-light: #e2e8f0;
	--pe-radius: 10px;
	--pe-shadow: 0 1px 2px rgba(15, 36, 25, .06), 0 4px 14px rgba(15, 36, 25, .06);
	--pe-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

	/* Feed Themixify's own variables where it reads them */
	--tf-accent: var(--pe-green);
	--tf-fs-base: 17px;
}

/* ==========================================================================
   BASE
   ========================================================================== */
html body {
	background: var(--pe-canvas);
	color: var(--pe-text);
	font-family: var(--pe-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body h1, body h2, body h3, body h4, body h5, body h6 {
	font-family: var(--pe-font);
	color: var(--pe-slate-900);
	line-height: 1.25;
	letter-spacing: -0.01em;
}
body a { color: var(--pe-green); text-underline-offset: 2px; }
body a:hover { color: var(--pe-green-600); }
body :focus-visible { outline: 3px solid var(--pe-amber); outline-offset: 2px; }

@media (max-width: 767px) {
	html body { font-size: 16px; }
}

/* Content cards */
body .tf-main article,
body .tf-main .entry-content,
body .tf-main .tf-card {
	background-color: var(--pe-card);
}
body.single .tf-main article,
body.page:not(.home) .tf-main article {
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	box-shadow: var(--pe-shadow);
}

/* ==========================================================================
   HEADER & FOOTER — Deep Forest Slate
   ========================================================================== */
body .tf-site-header {
	background: var(--pe-slate-900);
	border-bottom: 1px solid var(--pe-slate-800);
	box-shadow: none;
}
body .tf-site-header .tf-brand,
body .tf-site-header .tf-menu a,
body .tf-site-header a {
	color: #ffffff;
	text-decoration: none;
}
body .tf-site-header .tf-menu a:hover,
body .tf-site-header .tf-menu .current-menu-item > a {
	color: var(--pe-amber-200);
}
body .tf-site-header .tf-menu .sub-menu {
	background: var(--pe-slate-800);
	border-color: var(--pe-slate-800);
}
body .tf-site-header .tf-brand--logo img { display: block; height: 40px; width: auto; }
body .tf-nav-toggle span { background: #ffffff; }
@media (max-width: 900px) {
	body .tf-site-header .tf-menu { background: var(--pe-slate-900); }
}

body .tf-site-footer,
body .pe-footer-legal {
	background: var(--pe-slate-900);
	color: var(--pe-link-light);
}
body .tf-site-footer a,
body .pe-footer-legal a {
	color: var(--pe-link-light);
}
body .tf-site-footer a:hover,
body .pe-footer-legal a:hover {
	color: #ffffff;
}
body .tf-site-footer h2,
body .tf-site-footer h3,
body .tf-site-footer .widget-title {
	color: #ffffff;
}
body .tf-site-footer .tf-footer-bottom {
	border-top: 1px solid var(--pe-slate-800);
	color: var(--pe-link-light);
}
.pe-footer-legal {
	border-top: 1px solid var(--pe-slate-800);
	padding: 18px 16px 26px;
	font-size: .875rem;
	text-align: center;
}
.pe-footer-legal ul {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 20px;
}
.pe-footer-legal .pe-amazon-statement { margin: 0; color: var(--pe-link-light); }

/* Breadcrumbs */
body .tf-breadcrumbs { font-size: .875rem; color: var(--pe-muted); }
body .tf-breadcrumbs a { color: var(--pe-green); }

/* ==========================================================================
   BUTTONS — High-CTR affiliate CTA (Warm Golden Amber)
   ========================================================================== */
.pe-btn,
.cta-btn,
.wp-block-button.is-style-amazon .wp-block-button__link,
a.amazon-btn {
	display: inline-block;
	background: var(--pe-amber);
	color: #ffffff !important;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	padding: 14px 26px;
	border: 0;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(180, 83, 9, .28);
	transition: background-color .15s ease, transform .15s ease;
	cursor: pointer;
}
.pe-btn:hover,
.cta-btn:hover,
.wp-block-button.is-style-amazon .wp-block-button__link:hover,
a.amazon-btn:hover {
	background: var(--pe-amber-hover);
	color: #ffffff !important;
	transform: translateY(-1px);
}
.pe-btn--ghost {
	background: transparent;
	color: var(--pe-green) !important;
	border: 2px solid var(--pe-green);
	box-shadow: none;
}
.pe-btn--ghost:hover { background: var(--pe-green); color: #fff !important; }
@media (max-width: 600px) {
	.pe-btn, .cta-btn, a.amazon-btn { display: block; width: 100%; }
}

/* ==========================================================================
   ARTICLE CONVERSION COMPONENTS
   ========================================================================== */

/* Quiet affiliate micro-note */
.ftc-micro-note {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0 0 14px 0;
	padding: 0;
	background: none;
	border: 0;
	line-height: 1.5;
}

/* Above-the-fold verdict grid */
.quick-verdict-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 22px 0 30px;
}
.quick-verdict-grid > * {
	background: var(--pe-card);
	border: 1px solid var(--pe-line);
	border-top: 4px solid var(--pe-green);
	border-radius: var(--pe-radius);
	padding: 18px 18px 20px;
	box-shadow: var(--pe-shadow);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.quick-verdict-grid .verdict-label {
	font-size: .75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--pe-green);
}
.quick-verdict-grid h3 { font-size: 1.05rem; margin: 0; }
.quick-verdict-grid p { margin: 0; font-size: .9375rem; color: var(--pe-muted); }
.quick-verdict-grid .pe-btn { margin-top: auto; padding: 11px 16px; font-size: .9375rem; }
@media (max-width: 860px) {
	.quick-verdict-grid { grid-template-columns: 1fr; }
}

/* Spec tables — scroll inside wrapper, never break the layout */
.spec-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 20px 0 28px;
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	background: var(--pe-card);
}
.spec-table,
.spec-table-wrap table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: .9375rem;
	margin: 0;
}
.spec-table th,
.spec-table td,
.spec-table-wrap th,
.spec-table-wrap td {
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--pe-line);
}
.spec-table thead th,
.spec-table-wrap thead th {
	background: var(--pe-green);
	color: #ffffff;
	font-weight: 700;
	white-space: nowrap;
}
.spec-table tbody tr:nth-child(even),
.spec-table-wrap tbody tr:nth-child(even) { background: #f8fafc; }
.spec-table tbody tr:last-child td,
.spec-table-wrap tbody tr:last-child td { border-bottom: 0; }
.spec-table caption,
.spec-table-wrap caption {
	caption-side: top;
	text-align: left;
	font-weight: 700;
	padding: 12px 14px 4px;
	color: var(--pe-slate-900);
}

/* Product review card */
.product-review-card {
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	background: var(--pe-card);
	box-shadow: var(--pe-shadow);
	margin: 34px 0;
	overflow: hidden;
}
.product-review-card .card-badge {
	background: var(--pe-green);
	color: #ffffff;
	font-size: .8125rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 9px 20px;
}
.product-review-card .card-body { padding: 20px 22px 24px; }
.product-review-card h3 { margin: 0 0 12px; font-size: 1.3rem; }
.product-review-card .spec-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}
.product-review-card .spec-pills li {
	background: var(--pe-green-50);
	color: var(--pe-green);
	border: 1px solid #cfe3d6;
	border-radius: 999px;
	font-size: .8125rem;
	font-weight: 600;
	padding: 4px 12px;
}
.product-review-card .pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 0 0 18px;
}
.what-we-like,
.watch-out-for {
	border-radius: 8px;
	padding: 14px 16px;
	font-size: .9375rem;
}
.what-we-like { background: #f0fdf4; border: 1px solid #bbf7d0; }
.watch-out-for { background: #fef2f2; border: 1px solid #fecaca; }
.what-we-like h4,
.watch-out-for h4 { margin: 0 0 8px; font-size: .9375rem; }
.what-we-like h4 { color: #166534; }
.watch-out-for h4 { color: #991b1b; }
.what-we-like ul,
.watch-out-for ul { margin: 0; padding-left: 1.1em; }
.what-we-like li,
.watch-out-for li { margin: 0 0 4px; }
.install-living-tips {
	background: #f1f5f9;
	border-left: 4px solid var(--pe-green-600);
	border-radius: 0 8px 8px 0;
	padding: 12px 16px;
	margin: 0 0 20px;
	font-size: .9375rem;
}
.install-living-tips strong:first-child { color: var(--pe-green); }
.product-review-card .card-cta { text-align: center; }
@media (max-width: 700px) {
	.product-review-card .pros-cons { grid-template-columns: 1fr; }
}

/* Measure-first checklist */
.measure-first-box {
	background: var(--pe-amber-50);
	border: 1px solid var(--pe-amber-200);
	border-left: 5px solid var(--pe-amber);
	border-radius: var(--pe-radius);
	padding: 18px 20px;
	margin: 26px 0;
}
.measure-first-box h3,
.measure-first-box h4 { margin: 0 0 10px; color: #92400e; font-size: 1.05rem; }
.measure-first-box ul,
.measure-first-box ol { margin: 0; padding-left: 1.2em; }
.measure-first-box li { margin: 0 0 6px; }

/* Methodology trust box */
.methodology-box {
	background: var(--pe-card);
	border: 1px solid var(--pe-line);
	border-left: 5px solid var(--pe-green);
	border-radius: var(--pe-radius);
	padding: 20px 22px;
	margin: 28px 0;
	box-shadow: var(--pe-shadow);
}
.methodology-box h2,
.methodology-box h3 { margin: 0 0 10px; font-size: 1.2rem; }
.methodology-box p:last-child { margin-bottom: 0; }

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */
.pe-home { padding-bottom: 40px; }
.pe-home > .pe-section { margin: 0 0 44px; }
.pe-hero {
	background: linear-gradient(160deg, var(--pe-slate-900) 0%, var(--pe-green) 100%);
	color: #ffffff;
	border-radius: 0 0 var(--pe-radius) var(--pe-radius);
	padding: 56px 24px 52px;
	margin: 0 0 40px;
	text-align: center;
}
.pe-hero h1 {
	color: #ffffff;
	font-size: clamp(1.75rem, 4.2vw, 2.6rem);
	max-width: 820px;
	margin: 0 auto 14px;
}
.pe-hero p {
	color: #e2e8f0;
	font-size: 1.125rem;
	max-width: 720px;
	margin: 0 auto 26px;
}
.pe-hero .pe-btn { margin: 4px 6px; }
.pe-hero .pe-btn--ghost { color: #ffffff !important; border-color: #ffffff; }
.pe-hero .pe-btn--ghost:hover { background: #ffffff; color: var(--pe-green) !important; }

.pe-section h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 8px; }
.pe-section > p.pe-lead { color: var(--pe-muted); margin: 0 0 20px; }

.pe-silo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.pe-silo-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--pe-card);
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	padding: 22px;
	box-shadow: var(--pe-shadow);
	text-decoration: none !important;
	color: var(--pe-text) !important;
	transition: border-color .15s ease, transform .15s ease;
}
.pe-silo-card:hover { border-color: var(--pe-green); transform: translateY(-2px); }
.pe-silo-card .pe-silo-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--pe-green-50);
	color: var(--pe-green);
	display: grid;
	place-items: center;
}
.pe-silo-card h3 { margin: 0; font-size: 1.125rem; color: var(--pe-slate-900); }
.pe-silo-card p { margin: 0; font-size: .9375rem; color: var(--pe-muted); }
.pe-silo-card .pe-silo-link { margin-top: auto; font-weight: 700; color: var(--pe-green); font-size: .9375rem; }
@media (max-width: 860px) {
	.pe-silo-grid { grid-template-columns: 1fr; }
}

.pe-container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.pe-small { font-size: .875rem; color: var(--pe-muted); }

/* Legal / trust pages */
.pe-page-prose { max-width: 760px; }
.pe-page-prose h2 { margin-top: 1.6em; }

/* ==========================================================================
   AFFILIATE BUTTON ALIASES (same amber CTA as .pe-btn)
   ========================================================================== */
.btn-amazon,
.affiliate-button,
.buy-btn {
	display: inline-block;
	background: var(--pe-amber);
	color: #ffffff !important;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	padding: 14px 26px;
	border: 0;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(180, 83, 9, .28);
	transition: background-color .15s ease, transform .15s ease;
}
.btn-amazon:hover,
.affiliate-button:hover,
.buy-btn:hover {
	background: var(--pe-amber-hover);
	color: #ffffff !important;
	transform: translateY(-1px);
}
.spec-table .btn-amazon,
.spec-table .pe-btn { padding: 9px 14px; font-size: .875rem; white-space: nowrap; }

/* ==========================================================================
   SINGLE-COLUMN READING LAYOUT — archives & posts (no sidebar)
   ========================================================================== */
body.archive .tf-sidebar,
body.single .tf-sidebar,
body.archive aside.tf-sidebar,
body.single aside.tf-sidebar { display: none !important; }

body.archive .tf-layout,
body.single .tf-layout,
body.tf-has-sidebar.archive .tf-layout,
body.tf-has-sidebar.single .tf-layout {
	grid-template-columns: minmax(0, 1fr) !important;
	max-width: 860px;
	margin-inline: auto;
}
body.archive .tf-primary,
body.single .tf-primary { width: 100%; max-width: 860px; margin-inline: auto; }

/* Category intro card spans the full main column */
body.archive .tf-archive-header {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: var(--pe-card);
	border: 1px solid var(--pe-line);
	border-left: 5px solid var(--pe-green);
	border-radius: var(--pe-radius);
	box-shadow: var(--pe-shadow);
	padding: 22px 24px;
	margin: 0 0 28px;
}
body.archive .tf-archive-header__title { margin: 0 0 8px; font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
body.archive .tf-archive-header__desc { color: var(--pe-muted); margin: 0; }
body.archive .tf-archive-header__desc p:last-child { margin-bottom: 0; }

/* Themixify FAQ ([themixify_faq]) */
.tf-faq__item {
	background: var(--pe-card);
	border: 1px solid var(--pe-line);
	border-radius: 8px;
	margin: 0 0 10px;
	padding: 0 18px;
}
.tf-faq__q { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--pe-slate-900); }
.tf-faq__a { padding: 0 0 14px; }

/* ==========================================================================
   MOBILE-FIRST CRO (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
	/* Hamburger: crisp white icon, 48×48 tap target */
	body .tf-site-header .tf-nav-toggle {
		display: inline-flex;
		min-width: 48px;
		min-height: 48px;
		width: 48px;
		height: 48px;
		background: transparent;
		border: 1px solid rgba(255, 255, 255, .35);
		border-radius: 8px;
	}
	body .tf-site-header .tf-nav-toggle span { background: #ffffff; width: 22px; height: 2px; }

	/* Drawer links: thumb-friendly padding */
	body .tf-site-header .tf-menu a {
		display: block;
		padding: 14px 20px;
		color: #ffffff;
	}

	/* Breathing room without squeezing text */
	body .tf-container,
	.pe-container { padding-left: 14px; padding-right: 14px; }
	.product-review-card .card-body,
	.methodology-box,
	.measure-first-box,
	.quick-verdict-grid > *,
	body.archive .tf-archive-header,
	.pe-silo-card { padding: 16px; }
	body.single .tf-main article,
	body.page:not(.home) .tf-main article { padding-left: 16px; padding-right: 16px; }
	.what-we-like,
	.watch-out-for,
	.install-living-tips { padding: 12px 14px; }

	/* Thumb-zone CTAs */
	.btn-amazon,
	.affiliate-button,
	.buy-btn,
	.pe-btn {
		display: block;
		width: 100%;
		min-height: 48px;
		text-align: center;
		padding: 14px 16px;
		font-size: 1.05rem;
		box-sizing: border-box;
	}
	.spec-table .btn-amazon,
	.spec-table .pe-btn { display: inline-block; width: auto; min-height: 44px; font-size: .9375rem; padding: 12px 14px; }

	/* Comparison tables: swipe with a sticky first column */
	.spec-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-behavior: smooth;
		overscroll-behavior-x: contain;
	}
	.spec-table-wrap::before {
		content: "\2190  Swipe sideways to compare specs  \2192";
		display: block;
		position: sticky;
		left: 0;
		padding: 8px 14px 0;
		font-size: .8125rem;
		color: var(--pe-muted);
		text-align: center;
	}
	.spec-table-wrap th:first-child,
	.spec-table-wrap td:first-child {
		position: sticky;
		left: 0;
		z-index: 2;
		background: #ffffff;
		box-shadow: 2px 0 4px rgba(15, 36, 25, .08);
		min-width: 120px;
	}
	.spec-table-wrap tbody tr:nth-child(even) td:first-child { background: #f8fafc; }
	.spec-table-wrap thead th:first-child { background: var(--pe-green); z-index: 3; }
}
