/*
Theme Name: Best Dog Toothbrush
Theme URI: https://bestdogtoothbrush.com/
Author: BestDogToothbrush
Author URI: https://bestdogtoothbrush.com/
Description: SEO-focused affiliate content theme for dog toothbrush reviews, buying guides, comparison tables, and dental care articles.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bestdogtoothbrush
Tags: blog, custom-logo, custom-menu, featured-images, one-column, two-columns, right-sidebar
*/

:root {
	--ink: #172421;
	--muted: #5f716d;
	--line: #dce9e5;
	--soft: #f3faf8;
	--mint: #147d6f;
	--mint-dark: #0d5c52;
	--coral: #f0735f;
	--gold: #f4b84c;
	--paper: #ffffff;
	--shade: 0 18px 50px rgba(23, 36, 33, .11);
	--radius: 8px;
	--max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--ink);
	background: #fbfefd;
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover { color: var(--mint-dark); }

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
}

.skip-link,
.screen-reader-text {
	position: absolute;
	left: -999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.skip-link:focus,
.screen-reader-text:focus {
	left: 8px;
	top: 8px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	background: var(--ink);
	color: #fff;
	z-index: 30;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
}

.nav {
	max-width: var(--max);
	margin: 0 auto;
	padding: 14px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	letter-spacing: 0;
	white-space: nowrap;
}

.brand-logo img {
	width: auto;
	max-height: 42px;
}

.brand-mark {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--mint);
	color: #fff;
	font-weight: 900;
}

.menu-toggle {
	display: none;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	font-weight: 800;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.nav-links .nav-cta,
.nav-cta {
	padding: 10px 14px;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
}

.nav-links .nav-cta:hover { color: #fff; background: var(--mint-dark); }

.affiliate-notice {
	background: #fff7e8;
	border-bottom: 1px solid #f2dfb7;
	color: #66470d;
	font-size: 14px;
}

.affiliate-notice-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 10px 22px;
}

.hero {
	background:
		radial-gradient(circle at 14% 18%, rgba(240, 115, 95, .12), transparent 25%),
		linear-gradient(180deg, #eff9f6 0%, #ffffff 100%);
	border-bottom: 1px solid var(--line);
}

.hero-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 70px 22px 46px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
	gap: 46px;
	align-items: center;
}

.eyebrow {
	margin: 0 0 14px;
	color: var(--mint-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	line-height: 1.12;
	letter-spacing: 0;
}

h1 {
	max-width: 760px;
	font-size: clamp(42px, 6vw, 72px);
}

h2 { font-size: clamp(28px, 4vw, 42px); }

.hero-copy {
	max-width: 620px;
	margin: 22px 0 0;
	color: var(--muted);
	font-size: 19px;
}

.hero-actions {
	margin-top: 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.button,
.wp-block-button__link,
.buy-link,
.mini-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font-weight: 800;
	line-height: 1.1;
	cursor: pointer;
}

.button.primary,
.wp-block-button__link,
.mini-button {
	background: var(--coral);
	color: #fff;
}

.button.secondary {
	border-color: var(--mint);
	color: var(--mint-dark);
	background: #fff;
}

.button:hover,
.buy-link:hover,
.mini-button:hover,
.wp-block-button__link:hover {
	filter: brightness(.96);
	color: #fff;
}

.trust-row {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	color: var(--muted);
	font-size: 14px;
}

.trust-row strong {
	display: block;
	color: var(--ink);
	font-size: 20px;
	line-height: 1.2;
}

.hero-card {
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--shade);
	border: 1px solid rgba(20, 125, 111, .16);
}

.hero-card img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hero-note {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 16px;
	border-top: 1px solid var(--line);
	font-size: 14px;
	color: var(--muted);
}

.hero-note b { color: var(--ink); }

section {
	max-width: var(--max);
	margin: 0 auto;
	padding: 64px 22px;
}

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 24px;
}

.section-head h2 { max-width: 720px; }

.section-head p {
	max-width: 440px;
	margin: 0;
	color: var(--muted);
}

.selector-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.selector {
	min-height: 118px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.selector:hover,
.hub:hover,
.article:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(23, 36, 33, .08);
	border-color: rgba(20, 125, 111, .38);
}

.selector span {
	display: block;
	width: 34px;
	height: 34px;
	margin-bottom: 13px;
	border-radius: 50%;
	background: var(--soft);
	color: var(--mint-dark);
	text-align: center;
	line-height: 34px;
	font-weight: 900;
}

.selector b {
	display: block;
	line-height: 1.25;
}

.selector small {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	line-height: 1.35;
}

.picks {
	background: var(--soft);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	max-width: none;
}

.picks-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 22px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.product-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 10px 24px rgba(23, 36, 33, .06);
}

.badge,
.post-categories a,
.tag-links a {
	align-self: flex-start;
	margin: 0 6px 8px 0;
	padding: 5px 9px;
	border-radius: 99px;
	background: #fff4e1;
	color: #7a4d00;
	font-size: 12px;
	font-weight: 800;
}

.post-categories {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.product-visual {
	height: 104px;
	margin-bottom: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		linear-gradient(90deg, transparent 0 20%, rgba(20, 125, 111, .16) 20% 25%, transparent 25% 100%),
		linear-gradient(135deg, #f9fffd, #e7f5f1);
	position: relative;
	overflow: hidden;
}

.product-visual::before {
	content: "";
	position: absolute;
	left: 20%;
	top: 50%;
	width: 62%;
	height: 10px;
	border-radius: 999px;
	background: var(--mint);
	transform: rotate(-12deg);
}

.product-visual::after {
	content: "";
	position: absolute;
	right: 18%;
	top: 33%;
	width: 32px;
	height: 24px;
	border-radius: 4px;
	background: #fff;
	border: 2px solid var(--mint);
	transform: rotate(-12deg);
}

.product-card h3 {
	font-size: 20px;
	margin-bottom: 10px;
}

.product-card p,
.hub p,
.article p,
.entry-summary,
.archive-hero p,
.single-content,
.widget,
.no-results p {
	color: var(--muted);
}

.product-card p {
	margin: 0 0 16px;
	font-size: 15px;
}

.pros {
	margin: auto 0 18px;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 14px;
}

.pros li { margin-top: 7px; }

.pros li::before {
	content: "+";
	margin-right: 8px;
	color: var(--mint);
	font-weight: 900;
}

.buy-link {
	margin-top: auto;
	background: var(--mint);
	color: #fff;
}

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 760px;
}

th,
td {
	padding: 16px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

th {
	background: var(--soft);
	color: var(--ink);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
}

tr:last-child td { border-bottom: 0; }

td { color: var(--muted); }

td strong { color: var(--ink); }

.guide-band {
	display: grid;
	grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	padding: 28px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: #fff;
	box-shadow: 0 12px 34px rgba(23, 36, 33, .06);
}

.guide-band p {
	color: var(--muted);
	margin: 16px 0 0;
}

.steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps li {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--soft);
}

.steps b { display: block; }

.steps span {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 14px;
}

.hub-grid,
.article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.hub,
.article {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hub h3,
.article h3 { font-size: 20px; }

.hub p,
.article p {
	margin: 10px 0 0;
	font-size: 15px;
}

.article-thumb {
	display: block;
	margin: -20px -20px 16px;
	overflow: hidden;
	border-radius: var(--radius) var(--radius) 0 0;
}

.article-thumb img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.text-link {
	display: inline-flex;
	margin-top: 14px;
	color: var(--mint-dark);
	font-weight: 800;
}

.method {
	background: #172421;
	color: #fff;
	max-width: none;
}

.method-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 22px;
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
	gap: 34px;
	align-items: center;
}

.method p { color: #bfd0cc; }

.method .eyebrow { color: #9ee2d8; }

.method-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.method-list li {
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .06);
}

.email-box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 28px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, #fdf4ed, #effaf7);
	border: 1px solid var(--line);
}

.email-box p {
	margin: 10px 0 0;
	color: var(--muted);
}

.form,
.search-form {
	display: flex;
	gap: 10px;
	min-width: 420px;
}

input,
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #c8d8d4;
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
}

.faq {
	display: grid;
	grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
	gap: 26px;
	align-items: start;
}

details {
	border-bottom: 1px solid var(--line);
	padding: 18px 0;
}

summary {
	cursor: pointer;
	font-weight: 800;
}

details p {
	color: var(--muted);
	margin: 10px 0 0;
}

.content-shell {
	max-width: var(--max);
	margin: 0 auto;
	padding: 58px 22px;
}

.content-shell.narrow { max-width: 860px; }

.archive-hero,
.single-header,
.not-found {
	margin-bottom: 34px;
	padding: 34px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: linear-gradient(135deg, #effaf7, #fff);
}

.archive-hero h1,
.single-header h1,
.not-found h1 {
	font-size: clamp(34px, 5vw, 56px);
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	align-items: start;
}

.post-list {
	display: grid;
	gap: 22px;
}

.entry-card {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 22px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.entry-thumb img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
}

.entry-title {
	font-size: 28px;
	margin-bottom: 10px;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	color: var(--muted);
	font-size: 14px;
}

.byline::before { content: "by "; }

.single-entry {
	max-width: 860px;
	margin: 0 auto;
}

.single-featured {
	margin-bottom: 28px;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.single-featured img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.single-content {
	font-size: 18px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
	margin: 1.7em 0 .5em;
	color: var(--ink);
}

.single-content p,
.single-content ul,
.single-content ol,
.single-content table,
.single-content blockquote {
	margin-top: 0;
	margin-bottom: 1.2em;
}

.single-content a {
	color: var(--mint-dark);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.single-content blockquote {
	padding: 18px 22px;
	border-left: 4px solid var(--mint);
	background: var(--soft);
	color: var(--ink);
}

.single-content .wp-block-table {
	overflow-x: auto;
}

.single-footer {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.sidebar {
	position: sticky;
	top: 92px;
	display: grid;
	gap: 18px;
}

.widget {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.widget-title {
	margin-bottom: 12px;
	font-size: 20px;
}

.widget ul {
	margin: 0;
	padding-left: 18px;
}

.widget li { margin: 8px 0; }

.nav-links,
.post-navigation,
.posts-navigation,
.pagination {
	clear: both;
}

.nav-links .page-numbers,
.pagination .page-numbers {
	display: inline-flex;
	margin: 0 4px 6px 0;
	padding: 8px 11px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
}

.nav-links .current,
.pagination .current {
	background: var(--mint);
	color: #fff;
}

.post-navigation {
	max-width: 860px;
	margin: 36px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.comment-list {
	padding-left: 0;
	list-style: none;
}

.comment-body {
	margin-bottom: 16px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.site-footer {
	border-top: 1px solid var(--line);
	background: #fff;
}

.footer-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 28px 22px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	color: var(--muted);
	font-size: 14px;
}

.footer-links {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1020px) {
	.hero-inner,
	.guide-band,
	.method-inner,
	.faq,
	.email-box,
	.content-layout {
		grid-template-columns: 1fr;
	}

	.sidebar { position: static; }

	.selector-grid,
	.product-grid,
	.hub-grid,
	.article-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.form,
	.search-form { min-width: 0; }
}

@media (max-width: 760px) {
	.nav {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
	}

	.nav-links {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		padding-top: 12px;
	}

	.nav.is-open .nav-links { display: flex; }

	.nav-links a {
		display: block;
		padding: 10px 0;
	}

	.nav-links .nav-cta { text-align: center; }

	.hero-inner {
		padding-top: 42px;
		grid-template-columns: 1fr;
	}

	h1 { font-size: 42px; }

	.hero-copy { font-size: 17px; }

	.trust-row,
	.selector-grid,
	.product-grid,
	.hub-grid,
	.article-grid,
	.steps,
	.method-list,
	.entry-card {
		grid-template-columns: 1fr;
	}

	.section-head { display: block; }

	.section-head p { margin-top: 12px; }

	.form,
	.search-form {
		flex-direction: column;
	}

	.hero-note,
	.footer-inner {
		flex-direction: column;
	}

	.archive-hero,
	.single-header,
	.not-found,
	.guide-band,
	.email-box {
		padding: 22px;
	}
}
