/*
Theme Name: DailyWagging
Theme URI: https://dailywagging.com/
Author: DailyWagging
Author URI: https://dailywagging.com/
Description: A fast, lightweight theme built for DailyWagging: reward-based dog training, behaviour help and honest breed guides. Includes an automatic affiliate disclosure, product box, comparison table, button and note shortcodes, Google Analytics affiliate click tracking, a table of contents, breadcrumbs, reading time, author box, related posts, an email signup box and five ready-made post layouts.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dailywagging
Update URI: https://dailywagging.com/
Tags: blog, one-column, custom-logo, custom-menu, featured-images, editor-style, wide-blocks, translation-ready
*/

/* ---------- 1. Colours, spacing, fonts ---------- */
:root {
	--dw-primary: #1f6f68;
	--dw-accent: #b34a14;
	--dw-primary-dark: color-mix(in srgb, var(--dw-primary) 78%, #000);
	--dw-primary-soft: color-mix(in srgb, var(--dw-primary) 9%, #fff);
	--dw-primary-line: color-mix(in srgb, var(--dw-primary) 25%, #fff);
	--dw-accent-dark: color-mix(in srgb, var(--dw-accent) 82%, #000);
	--dw-ink: #1f2a2e;
	--dw-muted: #56666b;
	--dw-bg: #fff;
	--dw-cream: #faf6ef;
	--dw-sand: #f1e8da;
	--dw-line: #e5ddd0;
	--dw-star: #e3a008;
	--dw-star-off: #d9d3c9;
	--dw-radius: 14px;
	--dw-radius-sm: 8px;
	--dw-shadow: 0 1px 2px rgba(31, 42, 46, .05), 0 6px 18px rgba(31, 42, 46, .06);
	--dw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--dw-bg);
	color: var(--dw-ink);
	font-family: var(--dw-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img,
video {
	height: auto;
}

a {
	color: var(--dw-primary);
	text-underline-offset: .16em;
}

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

:focus-visible {
	outline: 3px solid var(--dw-accent);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--dw-ink);
	line-height: 1.25;
	letter-spacing: -.01em;
	margin: 1.6em 0 .6em;
	font-weight: 750;
}

h1 { font-size: clamp(1.9rem, 1.45rem + 2vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 1.25rem + .9vw, 1.85rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
	margin: 0 0 1.1em;
}

hr {
	border: 0;
	border-top: 1px solid var(--dw-line);
	margin: 2em 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	border-radius: 8px;
	box-shadow: var(--dw-shadow);
	clip: auto !important;
	clip-path: none;
	color: var(--dw-ink);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 8px;
	padding: 12px 18px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.dw-container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

.dw-narrow { max-width: 760px; }
.dw-wide { max-width: 1140px; }
.dw-wide-post .dw-narrow { max-width: 1000px; }

.dw-main {
	overflow-x: clip;
}

.dw-icon {
	width: 1.25em;
	height: 1.25em;
	flex: 0 0 auto;
}

/* ---------- 3. Buttons ---------- */
.dw-btn,
.dw-button,
.wp-element-button,
.dw-search button,
.comment-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.dw-btn--primary,
.dw-button,
.dw-search button,
.comment-form input[type="submit"] {
	background: var(--dw-primary);
	color: #fff;
}

.dw-btn--primary:hover,
.dw-button:hover,
.dw-search button:hover,
.comment-form input[type="submit"]:hover {
	background: var(--dw-primary-dark);
	color: #fff;
}

.dw-btn--ghost {
	background: #fff;
	border-color: var(--dw-primary);
	color: var(--dw-primary-dark);
}

.dw-btn--ghost:hover {
	background: var(--dw-primary-soft);
	color: var(--dw-primary-dark);
}

.dw-button--aff {
	background: var(--dw-accent);
}

.dw-button--aff:hover {
	background: var(--dw-accent-dark);
}

.dw-button-wrap {
	margin: 1.4em 0;
}

/* ---------- 4. Header and menu ---------- */
.dw-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--dw-line);
}

.admin-bar .dw-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .dw-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .dw-header { top: 0; }
}

.dw-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
	flex-wrap: wrap;
}

.dw-brand a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--dw-ink);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -.01em;
	text-decoration: none;
}

.dw-brand .dw-icon {
	width: 30px;
	height: 30px;
	color: var(--dw-primary);
}

.dw-brand .custom-logo {
	display: block;
	max-height: 52px;
	width: auto;
}

.dw-nav__list,
.dw-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dw-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.dw-nav__list li {
	position: relative;
}

.dw-nav__list a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--dw-ink);
	font-size: .98rem;
	font-weight: 600;
	text-decoration: none;
}

.dw-nav__list a:hover,
.dw-nav__list .current-menu-item > a,
.dw-nav__list .current-menu-ancestor > a,
.dw-nav__list .current-menu-parent > a {
	background: var(--dw-primary-soft);
	color: var(--dw-primary-dark);
}

.dw-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 220px;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--dw-line);
	border-radius: 12px;
	box-shadow: var(--dw-shadow);
}

.dw-nav__list li:hover > .sub-menu,
.dw-nav__list li:focus-within > .sub-menu {
	display: block;
}

.dw-menu-toggle {
	display: none;
}

@media (max-width: 860px) {
	.dw-js .dw-menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		padding: 8px 14px;
		background: #fff;
		border: 1px solid var(--dw-line);
		border-radius: 10px;
		color: var(--dw-ink);
		font: inherit;
		font-weight: 600;
		cursor: pointer;
	}

	.dw-menu-toggle__bars,
	.dw-menu-toggle__bars::before,
	.dw-menu-toggle__bars::after {
		display: block;
		width: 18px;
		height: 2px;
		background: currentColor;
		border-radius: 2px;
	}

	.dw-menu-toggle__bars {
		position: relative;
	}

	.dw-menu-toggle__bars::before,
	.dw-menu-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.dw-menu-toggle__bars::before { top: -6px; }
	.dw-menu-toggle__bars::after { top: 6px; }

	.dw-nav {
		width: 100%;
		padding-bottom: 12px;
	}

	.dw-js .dw-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 8px 20px 16px;
		background: #fff;
		border-bottom: 1px solid var(--dw-line);
		box-shadow: var(--dw-shadow);
	}

	.dw-js .dw-nav.is-open {
		display: block;
	}

	.dw-nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.dw-nav__list .sub-menu {
		display: block;
		position: static;
		min-width: 0;
		padding: 0 0 0 14px;
		border: 0;
		box-shadow: none;
	}
}

/* ---------- 5. Homepage ---------- */
.dw-hero {
	position: relative;
	overflow: hidden;
	padding: 56px 0 52px;
	background: var(--dw-cream);
	border-bottom: 1px solid var(--dw-line);
}

.dw-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px;
}

.dw-hero__title {
	margin: 0 0 .4em;
	max-width: 760px;
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.05rem);
}

.dw-hero__intro {
	max-width: 640px;
	margin: 0;
	color: var(--dw-muted);
	font-size: 1.2rem;
}

.dw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.dw-hero__art .dw-icon {
	width: 190px;
	height: 190px;
	color: var(--dw-primary);
	opacity: .14;
	transform: rotate(-14deg);
}

@media (max-width: 760px) {
	.dw-hero { padding: 40px 0; }
	.dw-hero__inner { grid-template-columns: 1fr; }
	.dw-hero__art { display: none; }
}

.dw-section {
	padding: 48px 0 8px;
}

.dw-section__title {
	margin: 0 0 20px;
	font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
}

.dw-topic-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.dw-topic {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--dw-line);
	border-radius: var(--dw-radius);
	box-shadow: var(--dw-shadow);
	transition: border-color .15s ease, transform .15s ease;
}

.dw-topic:hover {
	border-color: var(--dw-primary-line);
	transform: translateY(-2px);
}

.dw-topic__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--dw-primary-soft);
	color: var(--dw-primary);
}

.dw-topic__icon .dw-icon {
	width: 26px;
	height: 26px;
}

.dw-topic__title {
	margin: 4px 0 0;
	font-size: 1.2rem;
}

.dw-topic__title a {
	color: var(--dw-ink);
	text-decoration: none;
}

.dw-topic__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--dw-radius);
}

.dw-topic__desc {
	margin: 0;
	color: var(--dw-muted);
	font-size: .98rem;
}

.dw-topic__links {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.dw-topic__links a,
.dw-subcats a,
.dw-tags a {
	display: inline-block;
	padding: 5px 12px;
	background: var(--dw-cream);
	border: 1px solid var(--dw-line);
	border-radius: 999px;
	color: var(--dw-ink);
	font-size: .86rem;
	font-weight: 600;
	text-decoration: none;
}

.dw-topic__links a:hover,
.dw-subcats a:hover,
.dw-tags a:hover {
	background: var(--dw-primary-soft);
	border-color: var(--dw-primary-line);
	color: var(--dw-primary-dark);
}

.dw-latest {
	padding-bottom: 48px;
}

/* ---------- 6. Post cards ---------- */
.dw-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 22px;
}

.dw-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--dw-line);
	border-radius: var(--dw-radius);
	box-shadow: var(--dw-shadow);
	transition: transform .15s ease, border-color .15s ease;
}

.dw-card:hover {
	border-color: var(--dw-primary-line);
	transform: translateY(-2px);
}

.dw-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--dw-sand);
}

.dw-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dw-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: color-mix(in srgb, var(--dw-primary) 30%, var(--dw-sand));
}

.dw-card__placeholder .dw-icon {
	width: 56px;
	height: 56px;
}

.dw-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
}

.dw-card__title {
	margin: 0;
	font-size: 1.15rem;
}

.dw-card__title a {
	color: var(--dw-ink);
	text-decoration: none;
}

.dw-card__title a:hover {
	color: var(--dw-primary);
}

.dw-card__excerpt {
	margin: 0;
	color: var(--dw-muted);
	font-size: .95rem;
}

.dw-card__meta {
	margin: auto 0 0;
	padding-top: 4px;
	color: var(--dw-muted);
	font-size: .85rem;
}

.dw-cat-label {
	align-self: flex-start;
	color: var(--dw-primary);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-decoration: none;
	text-transform: uppercase;
}

.dw-cat-label:hover {
	text-decoration: underline;
}

.dw-empty {
	padding: 28px;
	background: var(--dw-cream);
	border: 1px dashed var(--dw-line);
	border-radius: var(--dw-radius);
	color: var(--dw-muted);
	text-align: center;
}

.dw-empty p {
	margin: 0;
}

/* ---------- 7. Breadcrumbs, archives, pagination ---------- */
.dw-breadcrumbs {
	padding: 18px 0 0;
	color: var(--dw-muted);
	font-size: .88rem;
}

.dw-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dw-breadcrumbs li {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dw-breadcrumbs li + li::before {
	content: "\203A";
	margin-right: 6px;
	color: #a3aeb0;
}

.dw-breadcrumbs a {
	color: var(--dw-muted);
}

.dw-breadcrumbs [aria-current] {
	color: var(--dw-ink);
}

.dw-archive {
	padding-bottom: 48px;
}

.dw-archive__header {
	padding: 6px 0 26px;
}

.dw-archive__title {
	margin: .35em 0 .3em;
}

.dw-archive__desc {
	max-width: 720px;
	color: var(--dw-muted);
	font-size: 1.08rem;
}

.dw-archive__desc p:last-child {
	margin-bottom: 0;
}

.dw-subcats,
.dw-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.navigation.pagination {
	margin: 36px 0 0;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid var(--dw-line);
	border-radius: 10px;
	color: var(--dw-ink);
	font-weight: 600;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--dw-primary);
	border-color: var(--dw-primary);
	color: #fff;
}

.dw-404 {
	padding-bottom: 56px;
}

/* ---------- 8. Articles ---------- */
.dw-article__header {
	padding-top: 16px;
}

.dw-article__title {
	margin: .3em 0 .4em;
}

.dw-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0 0 24px;
	color: var(--dw-muted);
	font-size: .92rem;
}

.dw-meta a {
	color: inherit;
	font-weight: 600;
}

.dw-article__image {
	margin: 0 auto 28px;
}

.dw-article__image img {
	display: block;
	width: 100%;
	border-radius: var(--dw-radius);
}

.dw-article__image figcaption,
.dw-content figcaption,
.wp-element-caption {
	margin-top: 8px;
	color: var(--dw-muted);
	font-size: .88rem;
	text-align: center;
}

.dw-content {
	font-size: 1.125rem;
	line-height: 1.75;
}

.dw-content::after {
	content: "";
	display: table;
	clear: both;
}

.dw-content h2 {
	margin-top: 2em;
}

.dw-content h3 {
	margin-top: 1.6em;
}

.dw-content :is(h2, h3, h4)[id] {
	scroll-margin-top: 96px;
}

.dw-content ul,
.dw-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.dw-content li {
	margin: .35em 0;
}

.dw-content img {
	border-radius: 10px;
}

.dw-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--dw-primary);
	font-style: italic;
}

.dw-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.dw-content th,
.dw-content td {
	padding: 10px 12px;
	border: 1px solid var(--dw-line);
	text-align: left;
	vertical-align: top;
}

.dw-content thead th {
	background: var(--dw-cream);
}

.dw-content pre,
.dw-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
}

.dw-content pre {
	overflow-x: auto;
	padding: 16px;
	background: var(--dw-cream);
	border-radius: var(--dw-radius-sm);
}

.dw-content .alignwide {
	width: min(1100px, calc(100vw - 40px));
	max-width: none;
	margin-left: calc(50% - min(1100px, calc(100vw - 40px)) / 2);
}

.dw-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

.dw-content .alignfull img,
.dw-content .alignwide img {
	width: 100%;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
	margin: .3em 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: .3em 0 1em 1.4em;
}

@media (max-width: 600px) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1em;
	}
}

.dw-page-links {
	margin: 1.6em 0;
	font-weight: 600;
}

.dw-article {
	padding-bottom: 40px;
}

.dw-article__footer {
	padding-bottom: 8px;
}

/* ---------- 9. Table of contents ---------- */
.dw-toc {
	margin: 1.6em 0 2em;
	background: var(--dw-cream);
	border: 1px solid var(--dw-line);
	border-radius: var(--dw-radius);
	font-size: 1rem;
	line-height: 1.5;
}

.dw-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.dw-toc summary::-webkit-details-marker {
	display: none;
}

.dw-toc summary::after {
	content: "+";
	font-size: 1.3rem;
	line-height: 1;
	color: var(--dw-primary);
}

.dw-toc details[open] summary::after {
	content: "\2013";
}

.dw-toc ol {
	margin: 0;
	padding: 0 18px 16px 40px;
}

.dw-toc ol ol {
	padding: 4px 0 0 18px;
	list-style: lower-alpha;
}

.dw-toc li {
	margin: .35em 0;
}

.dw-toc a {
	text-decoration: none;
}

.dw-toc a:hover {
	text-decoration: underline;
}

/* ---------- 10. Disclosure and notes ---------- */
.dw-disclosure {
	margin: 0 0 1.6em;
	padding: 12px 16px;
	background: #fff8e8;
	border: 1px solid #f0dfb8;
	border-radius: var(--dw-radius-sm);
	color: #4a3d1f;
	font-size: .92rem;
	line-height: 1.55;
}

.dw-disclosure p {
	margin: 0;
}

.dw-disclosure a {
	color: inherit;
	font-weight: 600;
}

.dw-note {
	margin: 1.6em 0;
	padding: 16px 18px 4px;
	border: 1px solid;
	border-radius: var(--dw-radius);
	font-size: 1.02rem;
	line-height: 1.6;
}

.dw-note__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 .5em;
	font-size: .9rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.dw-note__body p {
	margin: 0 0 .8em;
}

.dw-note--tip {
	background: var(--dw-primary-soft);
	border-color: var(--dw-primary-line);
}

.dw-note--tip .dw-note__label {
	color: var(--dw-primary-dark);
}

.dw-note--vet,
.dw-note--info {
	background: #eef4fb;
	border-color: #cddff3;
}

.dw-note--vet .dw-note__label,
.dw-note--info .dw-note__label {
	color: #1d4f86;
}

.dw-note--warning {
	background: #fdf0ee;
	border-color: #f3d0ca;
}

.dw-note--warning .dw-note__label {
	color: #9b2c1f;
}

.dw-insurance-note {
	font-size: .95rem;
}

.dw-editor-hint {
	margin: .8em 0;
	padding: 8px 12px;
	background: #fff4d6;
	border: 1px dashed #d9a400;
	border-radius: 8px;
	color: #5c4400;
	font-size: .88rem;
	line-height: 1.5;
}

/* ---------- 11. Product box ---------- */
.dw-product {
	position: relative;
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 22px;
	margin: 2em 0;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--dw-line);
	border-radius: var(--dw-radius);
	box-shadow: var(--dw-shadow);
	font-size: 1.02rem;
	line-height: 1.6;
}

.dw-product--no-image {
	grid-template-columns: minmax(0, 1fr);
}

.dw-product__badge {
	position: absolute;
	top: -12px;
	left: 18px;
	padding: 4px 12px;
	background: var(--dw-accent);
	border-radius: 999px;
	color: #fff;
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.dw-product__media {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: start;
	aspect-ratio: 1 / 1;
	padding: 10px;
	background: var(--dw-cream);
	border-radius: 10px;
}

.dw-product__media a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.dw-content .dw-product__img,
.dw-product__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 0;
}

.dw-product__name {
	margin: 0 0 6px;
	font-size: 1.3rem;
}

.dw-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--dw-muted);
	font-size: .92rem;
}

.dw-stars {
	--dw-rating: 0;
	display: inline-block;
	font-size: 1.15rem;
	letter-spacing: 2px;
	line-height: 1;
	background: linear-gradient(90deg, var(--dw-star) calc(var(--dw-rating) / 5 * 100%), var(--dw-star-off) 0);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.dw-stars::before {
	content: "\2605\2605\2605\2605\2605";
}

.dw-product__note {
	margin: 0 0 12px;
	color: var(--dw-muted);
	font-size: .86rem;
	font-style: italic;
}

.dw-product__desc p {
	margin: 0 0 .8em;
}

.dw-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 12px 0 16px;
}

.dw-proscons__title {
	margin: 0 0 6px;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.dw-pros .dw-proscons__title { color: var(--dw-primary-dark); }
.dw-cons .dw-proscons__title { color: #9b2c1f; }

.dw-content .dw-proscons ul,
.dw-proscons ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dw-proscons li {
	position: relative;
	margin: .3em 0;
	padding-left: 24px;
	font-size: .98rem;
}

.dw-proscons li::before {
	position: absolute;
	left: 0;
	font-weight: 800;
}

.dw-pros li::before {
	content: "\2713";
	color: var(--dw-primary);
}

.dw-cons li::before {
	content: "\2715";
	color: #b4372a;
}

.dw-product__action {
	margin: 4px 0 0;
}

@media (max-width: 640px) {
	.dw-product {
		grid-template-columns: minmax(0, 1fr);
	}

	.dw-product__media {
		max-width: 220px;
	}

	.dw-proscons {
		grid-template-columns: 1fr;
	}
}

/* ---------- 12. Comparison table ---------- */
.dw-compare {
	margin: 2em 0;
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--dw-line);
	border-radius: var(--dw-radius);
	box-shadow: var(--dw-shadow);
}

.dw-content .dw-compare table,
.dw-compare table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: .98rem;
	line-height: 1.5;
}

.dw-content .dw-compare th,
.dw-content .dw-compare td,
.dw-compare th,
.dw-compare td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--dw-line);
	text-align: left;
	vertical-align: middle;
}

.dw-compare caption {
	padding: 12px 14px 0;
	color: var(--dw-muted);
	font-size: .9rem;
	text-align: left;
}

.dw-content .dw-compare thead th,
.dw-compare thead th {
	background: var(--dw-cream);
	color: var(--dw-muted);
	font-size: .8rem;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.dw-compare tbody tr:last-child > * {
	border-bottom: 0;
}

.dw-compare tbody th {
	font-weight: 700;
}

.dw-compare .dw-button {
	padding: 9px 16px;
	font-size: .9rem;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.dw-compare {
		overflow: visible;
		background: none;
		border: 0;
		box-shadow: none;
	}

	.dw-compare thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.dw-compare tr {
		display: block;
		margin-bottom: 12px;
		padding: 6px 0;
		background: #fff;
		border: 1px solid var(--dw-line);
		border-radius: 12px;
	}

	.dw-content .dw-compare th,
	.dw-content .dw-compare td,
	.dw-compare th,
	.dw-compare td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 14px;
		border: 0;
		text-align: right;
	}

	.dw-compare [data-label]::before {
		content: attr(data-label);
		color: var(--dw-muted);
		font-weight: 700;
		text-align: left;
	}

	.dw-compare .dw-compare__action {
		justify-content: center;
	}

	.dw-compare .dw-compare__action:empty {
		display: none;
	}
}

/* ---------- 13. Signup, author box, related posts ---------- */
.dw-signup {
	display: grid;
	gap: 8px;
	margin: 2.4em 0;
	padding: 28px;
	background: var(--dw-primary);
	border-radius: var(--dw-radius);
	color: #fff;
}

.dw-signup__title {
	margin: 0;
	color: #fff;
	font-size: 1.4rem;
}

.dw-signup__text {
	margin: 0 0 8px;
	opacity: .92;
}

.dw-signup__form {
	padding: 16px;
	background: #fff;
	border-radius: 12px;
	color: var(--dw-ink);
}

.dw-signup--home {
	margin: 8px 0 56px;
}

.dw-author-box {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin: 2em 0;
	padding: 20px;
	background: var(--dw-cream);
	border: 1px solid var(--dw-line);
	border-radius: var(--dw-radius);
}

.dw-author-box__avatar {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.dw-author-box__name {
	margin: 0 0 4px;
	font-size: 1.05rem;
	font-weight: 800;
}

.dw-author-box__bio {
	font-size: .98rem;
}

.dw-author-box__bio p {
	margin: 0 0 .6em;
}

.dw-author-box__bio p:last-child {
	margin-bottom: 0;
}

@media (max-width: 520px) {
	.dw-author-box {
		flex-direction: column;
	}
}

.dw-related {
	padding: 40px 0 48px;
	background: var(--dw-cream);
	border-top: 1px solid var(--dw-line);
}

/* ---------- 14. Forms, search, comments ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid #cfc6b8;
	border-radius: 10px;
	color: var(--dw-ink);
	font: inherit;
	font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--dw-primary);
	outline: 2px solid var(--dw-primary-line);
	outline-offset: 0;
}

.dw-search {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin: 18px 0;
}

.dw-search input[type="search"] {
	flex: 1;
}

.dw-comments {
	margin: 40px 0;
}

.dw-comment-list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.dw-comment-list .children {
	margin: 0;
	padding-left: 24px;
	list-style: none;
}

.dw-comment-list .comment-body {
	margin: 0 0 16px;
	padding: 16px 18px;
	background: var(--dw-cream);
	border-radius: var(--dw-radius-sm);
}

.dw-comment-list .comment-meta {
	margin-bottom: 8px;
	font-size: .9rem;
}

.dw-comment-list .avatar {
	float: left;
	margin-right: 10px;
	border-radius: 50%;
}

.comment-form p {
	margin: 0 0 14px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

/* ---------- 15. Footer ---------- */
.dw-footer {
	padding: 40px 0 28px;
	background: #1d2629;
	color: #d7dfe0;
	font-size: .95rem;
}

.dw-footer a {
	color: #fff;
}

.dw-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px 40px;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.dw-footer__name {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 800;
}

.dw-footer__name .dw-icon {
	color: #7fc4bb;
}

.dw-footer__tagline {
	margin: 4px 0 0;
	color: #aebbbd;
}

.dw-footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dw-footer-nav a {
	text-decoration: none;
}

.dw-footer-nav a:hover {
	text-decoration: underline;
}

.dw-social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.dw-footer__note {
	max-width: 760px;
	margin: 18px 0 8px;
	color: #aebbbd;
	font-size: .88rem;
}

.dw-footer__copy {
	margin: 0;
	color: #8fa0a3;
	font-size: .85rem;
}

/* ---------- 16. Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.dw-header,
	.dw-footer,
	.dw-related,
	.dw-signup,
	.dw-toc,
	.dw-comments,
	.dw-breadcrumbs {
		display: none !important;
	}

	body {
		font-size: 12pt;
	}

	.dw-content a::after {
		content: " (" attr(href) ")";
		font-size: .85em;
	}
}
