/*
Theme Name: PuppyWeightCal Child
Theme URI: https://puppyweightcal.com/
Author: PuppyWeightCal
Author URI: https://puppyweightcal.com/
Description: A lightweight child theme for PuppyWeightCal.com, built on Astra. Provides the brand design system: friendly blue and green palette, rounded cards, calculator UI, tool grids, growth tables and FAQ styling for the puppy weight calculator, growth guides and breed content.
Version: 1.2.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: puppyweightcal-child
Template: astra
*/

/* ============================================================
   PuppyWeightCal Design System
   Palette (v1.1 premium):
     Royal blue        #247BA0
     Sky blue          #65BCEB
     Fresh green       #48A868
     Mint green        #B8E6C9
     Warm orange       #F4A340
     Soft yellow       #FFE08A
     Coral             #F08080
     Lavender          #B9A3E3
     Dark navy ink     #243447
     Surface           #FFFFFF
     Soft surface      #F6FAFC
   ============================================================ */

:root {
	--pwc-blue: #247BA0;
	--pwc-blue-dark: #1A5C78;
	--pwc-blue-wash: #E8F4F9;
	--pwc-sky: #65BCEB;
	--pwc-green: #48A868;
	--pwc-green-dark: #2F7D4C;
	--pwc-mint: #B8E6C9;
	--pwc-orange: #F4A340;
	--pwc-yellow: #FFE08A;
	--pwc-coral: #F08080;
	--pwc-lavender: #B9A3E3;
	--pwc-ink: #243447;
	--pwc-muted: #5A6B7A;
	--pwc-border: #DCE9EF;
	--pwc-surface: #FFFFFF;
	--pwc-soft: #F5FAFC;
	--pwc-warm: #FFF7EC;
	--pwc-radius: 16px;
	--pwc-radius-sm: 12px;
	--pwc-radius-pill: 999px;
	--pwc-shadow: 0 6px 24px rgba(36, 123, 160, 0.10);
	--pwc-shadow-lg: 0 14px 40px rgba(36, 123, 160, 0.16);
	--pwc-font: "Nunito", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

body {
	font-family: var(--pwc-font);
	color: var(--pwc-ink);
	background: var(--pwc-surface);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pwc-font);
	color: var(--pwc-ink);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

a {
	color: var(--pwc-blue);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--pwc-blue-dark);
	text-decoration: underline;
}

::selection {
	background: var(--pwc-blue-wash);
}

/* ---------- Buttons ---------- */

.pwc-btn,
button.pwc-btn,
a.pwc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.6rem;
	border: 2px solid transparent;
	border-radius: var(--pwc-radius-pill);
	font-family: var(--pwc-font);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	text-decoration: none;
}

.pwc-btn-primary {
	background: var(--pwc-blue);
	color: #fff;
	box-shadow: var(--pwc-shadow);
}

.pwc-btn-primary:hover,
.pwc-btn-primary:focus {
	background: var(--pwc-blue-dark);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.pwc-btn-green {
	background: var(--pwc-green);
	color: #fff;
	box-shadow: 0 6px 24px rgba(72, 168, 104, 0.24);
}

.pwc-btn-green:hover,
.pwc-btn-green:focus {
	background: var(--pwc-green-dark);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.pwc-btn-outline {
	background: #fff;
	border-color: var(--pwc-border);
	color: var(--pwc-blue-dark);
}

.pwc-btn-outline:hover,
.pwc-btn-outline:focus {
	border-color: var(--pwc-blue);
	color: var(--pwc-blue-dark);
	text-decoration: none;
}

.pwc-btn-block {
	width: 100%;
}

/* ---------- Header / Navigation ---------- */

.site-header,
.ast-primary-header-bar {
	background: #fff;
	border-bottom: 1px solid var(--pwc-border);
}

.site-header .site-branding img,
.custom-logo {
	max-height: 52px;
	width: auto;
}

.main-header-menu > .menu-item > a,
.ast-builder-menu-1 .menu-item > a {
	font-weight: 700;
	color: var(--pwc-ink);
	border-radius: var(--pwc-radius-pill);
	padding: 0.45rem 0.9rem;
}

.main-header-menu > .menu-item > a:hover,
.main-header-menu > .current-menu-item > a {
	color: var(--pwc-blue-dark);
	background: var(--pwc-blue-wash);
	text-decoration: none;
}

/* Fallback menu (wp_page_menu) */
.pwc-fallback-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
}

.pwc-fallback-menu a {
	font-weight: 700;
	color: var(--pwc-ink);
	padding: 0.45rem 0.9rem;
	border-radius: var(--pwc-radius-pill);
}

.pwc-fallback-menu a:hover {
	background: var(--pwc-blue-wash);
	color: var(--pwc-blue-dark);
	text-decoration: none;
}

/* ---------- Layout helpers ---------- */

.pwc-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.pwc-section {
	padding: 3.5rem 0;
}

.pwc-section-soft {
	background: var(--pwc-soft);
}

.pwc-section-wash {
	background: var(--pwc-blue-wash);
}

.pwc-section-title {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 2.25rem;
}

.pwc-section-title p {
	color: var(--pwc-muted);
	font-size: 1.075rem;
}

.pwc-eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pwc-green-dark);
	background: rgba(72, 168, 104, 0.14);
	padding: 0.3rem 0.8rem;
	border-radius: var(--pwc-radius-pill);
	margin-bottom: 0.9rem;
}

/* ---------- Hero ---------- */

.pwc-hero {
	background: linear-gradient(160deg, var(--pwc-blue-wash) 0%, #ffffff 62%, var(--pwc-warm) 130%);
	padding: 4rem 0 3.5rem;
	border-bottom: 1px solid var(--pwc-border);
}

.pwc-hero-inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 2.5rem;
	align-items: center;
}

.pwc-hero h1 {
	font-size: clamp(2rem, 4.5vw, 3.1rem);
	margin: 0 0 1rem;
}

.pwc-hero h1 .pwc-highlight {
	color: var(--pwc-blue);
}

.pwc-hero .pwc-hero-lead {
	font-size: 1.15rem;
	color: var(--pwc-muted);
	max-width: 34rem;
	margin-bottom: 1.75rem;
}

.pwc-hero-media img {
	border-radius: var(--pwc-radius);
	box-shadow: var(--pwc-shadow-lg);
	width: 100%;
	height: auto;
	display: block;
}

.pwc-hero-points {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	color: var(--pwc-muted);
	font-weight: 600;
	font-size: 0.95rem;
}

.pwc-hero-points li::before {
	content: "✓";
	color: var(--pwc-green);
	font-weight: 800;
	margin-right: 0.4rem;
}

/* ---------- Calculator card ---------- */

.pwc-calc-card {
	background: #fff;
	border: 1px solid var(--pwc-border);
	border-radius: 18px;
	box-shadow: var(--pwc-shadow-lg);
	padding: 2rem;
	max-width: 880px;
	margin: 0 auto;
}

.pwc-calc-card h2,
.pwc-calc-card h3 {
	margin-top: 0;
}

.pwc-calc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem 1.4rem;
}

.pwc-field label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
}

.pwc-field .pwc-field-hint {
	display: block;
	font-weight: 400;
	font-size: 0.83rem;
	color: var(--pwc-muted);
	margin-top: 0.3rem;
}

.pwc-field input[type="text"],
.pwc-field input[type="number"],
.pwc-field input[type="search"],
.pwc-field select,
.pwc-field textarea {
	width: 100%;
	padding: 0.75rem 0.95rem;
	border: 2px solid var(--pwc-border);
	border-radius: var(--pwc-radius-sm);
	font-family: inherit;
	font-size: 1rem;
	color: var(--pwc-ink);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pwc-field input:focus,
.pwc-field select:focus,
.pwc-field textarea:focus {
	border-color: var(--pwc-blue);
	box-shadow: 0 0 0 4px var(--pwc-blue-wash);
	outline: none;
}

/* Unit toggle (lb / kg, weeks / months) */
.pwc-unit-toggle {
	display: inline-flex;
	background: var(--pwc-soft);
	border: 1px solid var(--pwc-border);
	border-radius: var(--pwc-radius-pill);
	padding: 3px;
	gap: 3px;
}

.pwc-unit-toggle button {
	border: 0;
	background: transparent;
	padding: 0.4rem 1rem;
	border-radius: var(--pwc-radius-pill);
	font-family: inherit;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--pwc-muted);
	cursor: pointer;
}

.pwc-unit-toggle button.is-active {
	background: var(--pwc-blue);
	color: #fff;
}

.pwc-calc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* Calculator results */
.pwc-calc-result {
	margin-top: 1.75rem;
	background: var(--pwc-soft);
	border: 1px solid var(--pwc-border);
	border-left: 5px solid var(--pwc-green);
	border-radius: var(--pwc-radius);
	padding: 1.5rem 1.6rem;
}

.pwc-calc-result .pwc-result-headline {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--pwc-blue-dark);
	margin: 0 0 0.25rem;
}

.pwc-calc-result .pwc-result-range {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--pwc-green-dark);
	margin: 0 0 1rem;
}

.pwc-result-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.9rem;
	margin: 1rem 0;
}

.pwc-result-stat {
	background: #fff;
	border: 1px solid var(--pwc-border);
	border-radius: var(--pwc-radius-sm);
	padding: 0.85rem 1rem;
	text-align: center;
}

.pwc-result-stat .pwc-stat-value {
	display: block;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--pwc-ink);
}

.pwc-result-stat .pwc-stat-label {
	display: block;
	font-size: 0.8rem;
	color: var(--pwc-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pwc-disclaimer {
	font-size: 0.85rem;
	color: var(--pwc-muted);
	background: var(--pwc-warm);
	border: 1px dashed #EAD9B8;
	border-radius: var(--pwc-radius-sm);
	padding: 0.8rem 1rem;
	margin-top: 1.25rem;
}

/* Growth progress bar */
.pwc-progress {
	height: 14px;
	background: var(--pwc-blue-wash);
	border-radius: var(--pwc-radius-pill);
	overflow: hidden;
}

.pwc-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--pwc-blue), var(--pwc-green));
	border-radius: var(--pwc-radius-pill);
	transition: width 0.5s ease;
}

/* ---------- Tool cards grid ---------- */

.pwc-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.4rem;
}

.pwc-tool-card {
	background: #fff;
	border: 1px solid var(--pwc-border);
	border-radius: var(--pwc-radius);
	box-shadow: var(--pwc-shadow);
	padding: 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pwc-tool-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--pwc-shadow-lg);
}

.pwc-tool-card .pwc-tool-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--pwc-blue-wash);
	color: var(--pwc-blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}

.pwc-tool-card .pwc-tool-icon.pwc-icon-green {
	background: rgba(72, 168, 104, 0.14);
	color: var(--pwc-green-dark);
}

.pwc-tool-card h3 {
	margin: 0;
	font-size: 1.15rem;
}

.pwc-tool-card p {
	margin: 0;
	color: var(--pwc-muted);
	font-size: 0.95rem;
	flex: 1;
}

.pwc-tool-card a.pwc-tool-link {
	font-weight: 700;
	color: var(--pwc-blue);
}

.pwc-tool-card a.pwc-tool-link::after {
	content: " →";
}

/* ---------- Article / blog cards ---------- */

.pwc-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.6rem;
}

.pwc-article-card {
	background: #fff;
	border: 1px solid var(--pwc-border);
	border-radius: var(--pwc-radius);
	box-shadow: var(--pwc-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.pwc-article-card img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.pwc-article-card .pwc-card-body {
	padding: 1.3rem 1.4rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	flex: 1;
}

.pwc-article-card .pwc-card-meta {
	font-size: 0.82rem;
	color: var(--pwc-muted);
	font-weight: 600;
}

.pwc-article-card .pwc-card-category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--pwc-blue-dark);
	background: var(--pwc-blue-wash);
	padding: 0.2rem 0.65rem;
	border-radius: var(--pwc-radius-pill);
	align-self: flex-start;
}

.pwc-article-card h3 {
	margin: 0;
	font-size: 1.2rem;
}

.pwc-article-card h3 a {
	color: var(--pwc-ink);
}

.pwc-article-card h3 a:hover {
	color: var(--pwc-blue-dark);
}

.pwc-article-card p {
	margin: 0;
	color: var(--pwc-muted);
	font-size: 0.95rem;
	flex: 1;
}

/* Single article typography */
.entry-content .pwc-callout {
	background: var(--pwc-blue-wash);
	border-radius: var(--pwc-radius);
	padding: 1.2rem 1.4rem;
	margin: 1.5rem 0;
}

.entry-content .pwc-callout-green {
	background: rgba(72, 168, 104, 0.09);
}

/* ---------- Tables (growth charts) ---------- */

.pwc-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--pwc-border);
	border-radius: var(--pwc-radius);
	box-shadow: var(--pwc-shadow);
	margin: 1.5rem 0;
	-webkit-overflow-scrolling: touch;
}

table.pwc-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 0.95rem;
	min-width: 480px;
}

table.pwc-table caption {
	text-align: left;
	font-weight: 800;
	padding: 1rem 1.2rem 0.4rem;
	color: var(--pwc-ink);
}

table.pwc-table th,
table.pwc-table td {
	padding: 0.75rem 1.1rem;
	text-align: left;
	border-bottom: 1px solid var(--pwc-border);
}

table.pwc-table thead th {
	background: var(--pwc-blue);
	color: #fff;
	font-weight: 700;
	border-bottom: none;
	white-space: nowrap;
}

table.pwc-table tbody tr:nth-child(even) {
	background: var(--pwc-soft);
}

table.pwc-table tbody tr:hover {
	background: var(--pwc-blue-wash);
}

table.pwc-table td.pwc-num,
table.pwc-table th.pwc-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* Breed size filter pills */
.pwc-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.pwc-filter-pills button,
.pwc-filter-pills a {
	border: 2px solid var(--pwc-border);
	background: #fff;
	color: var(--pwc-ink);
	font-family: inherit;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 0.45rem 1.1rem;
	border-radius: var(--pwc-radius-pill);
	cursor: pointer;
	text-decoration: none;
}

.pwc-filter-pills button.is-active,
.pwc-filter-pills a.is-active {
	background: var(--pwc-green);
	border-color: var(--pwc-green);
	color: #fff;
}

/* ---------- FAQ accordion ---------- */

.pwc-faq {
	max-width: 820px;
	margin: 0 auto;
}

.pwc-faq-item {
	background: #fff;
	border: 1px solid var(--pwc-border);
	border-radius: var(--pwc-radius);
	margin-bottom: 0.85rem;
	overflow: hidden;
}

.pwc-faq-item summary,
.pwc-faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.05rem 1.3rem;
	font-weight: 700;
	font-size: 1.02rem;
	cursor: pointer;
	list-style: none;
	color: var(--pwc-ink);
}

.pwc-faq-item summary::-webkit-details-marker {
	display: none;
}

.pwc-faq-item summary::after,
.pwc-faq-question::after {
	content: "+";
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--pwc-blue-wash);
	color: var(--pwc-blue-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	font-weight: 800;
	transition: transform 0.2s ease;
}

.pwc-faq-item[open ] summary::after,
.pwc-faq-item.is-open .pwc-faq-question::after {
	transform: rotate(45deg);
	background: var(--pwc-blue);
	color: #fff;
}

.pwc-faq-answer {
	padding: 0 1.3rem 1.15rem;
	color: var(--pwc-muted);
}

.pwc-faq-answer p:first-child {
	margin-top: 0;
}

/* ---------- Forms (contact etc.) ---------- */

.pwc-form {
	max-width: 640px;
}

.pwc-form .pwc-field {
	margin-bottom: 1.1rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="search"],
textarea,
select {
	border-radius: var(--pwc-radius-sm);
}

input[type="submit"],
button[type="submit"] {
	background: var(--pwc-blue);
	color: #fff;
	border: 0;
	border-radius: var(--pwc-radius-pill);
	padding: 0.8rem 1.8rem;
	font-family: var(--pwc-font);
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
	background: var(--pwc-blue-dark);
}

/* ---------- Footer ---------- */

.site-footer,
.ast-footer-copyright {
	color: var(--pwc-muted);
}

.site-footer {
	background: var(--pwc-soft);
	border-top: 1px solid var(--pwc-border);
}

.site-footer h2,
.site-footer h3,
.site-footer .widget-title {
	color: var(--pwc-ink);
	font-size: 1rem;
	margin-bottom: 0.8rem;
}

.site-footer a {
	color: var(--pwc-muted);
}

.site-footer a:hover {
	color: var(--pwc-blue-dark);
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer li {
	margin-bottom: 0.45rem;
}

.pwc-footer-note {
	font-size: 0.85rem;
	color: var(--pwc-muted);
	text-align: center;
	padding: 1rem 0 0;
}

/* ---------- Breadcrumbs ---------- */

.pwc-breadcrumbs,
.rank-math-breadcrumb,
.yoast-breadcrumbs {
	font-size: 0.88rem;
	color: var(--pwc-muted);
	margin-bottom: 1.25rem;
}

.pwc-breadcrumbs a {
	color: var(--pwc-blue);
	font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
	.pwc-hero-inner {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.pwc-hero {
		padding: 3rem 0 2.5rem;
	}

	.pwc-section {
		padding: 2.75rem 0;
	}
}

@media (max-width: 640px) {
	.pwc-calc-grid {
		grid-template-columns: 1fr;
	}

	.pwc-calc-card {
		padding: 1.4rem 1.15rem;
		border-radius: 14px;
	}

	.pwc-calc-actions .pwc-btn {
		flex: 1 1 100%;
	}

	.pwc-hero-points {
		flex-direction: column;
		gap: 0.35rem;
	}

	.site-header .site-branding img,
	.custom-logo {
		max-height: 44px;
	}

	table.pwc-table {
		font-size: 0.9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pwc-tool-card,
	.pwc-btn,
	.pwc-progress-bar {
		transition: none;
	}

	.pwc-tool-card:hover,
	.pwc-btn-primary:hover,
	.pwc-btn-green:hover {
		transform: none;
	}
}

/* ============================================================
   PREMIUM LAYER v1.1 — colour, motion, hero, cards, blog
   Lightweight CSS animations only; one tiny reveal script.
   ============================================================ */

html { scroll-behavior: smooth; }

/* ---------- Gradient buttons ---------- */
.pwc-btn-primary {
	background: linear-gradient(120deg, var(--pwc-blue) 0%, var(--pwc-sky) 130%);
	box-shadow: 0 8px 22px rgba(36, 123, 160, 0.30);
}
.pwc-btn-primary:hover, .pwc-btn-primary:focus {
	background: linear-gradient(120deg, var(--pwc-blue-dark) 0%, var(--pwc-blue) 130%);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(36, 123, 160, 0.34);
}
.pwc-btn-green {
	background: linear-gradient(120deg, var(--pwc-green) 0%, #6CC287 130%);
	box-shadow: 0 8px 22px rgba(72, 168, 104, 0.30);
}
.pwc-btn-green:hover, .pwc-btn-green:focus { transform: translateY(-2px); }
.pwc-btn-orange {
	background: linear-gradient(120deg, var(--pwc-orange) 0%, #F7BC6B 130%);
	color: #243447;
	box-shadow: 0 8px 22px rgba(244, 163, 64, 0.35);
}
.pwc-btn-orange:hover, .pwc-btn-orange:focus {
	color: #243447; text-decoration: none; transform: translateY(-2px);
}

/* ---------- Header polish + dropdown motion ---------- */
.site-header, .ast-primary-header-bar {
	box-shadow: 0 2px 14px rgba(36, 52, 71, 0.05);
}
.main-header-menu .sub-menu, .ast-builder-menu-1 .sub-menu {
	border-radius: 14px;
	box-shadow: var(--pwc-shadow-lg);
	border: 1px solid var(--pwc-border);
	padding: 0.5rem;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.main-header-menu .menu-item:hover > .sub-menu,
.main-header-menu .menu-item.focus > .sub-menu,
.ast-builder-menu-1 .menu-item:hover > .sub-menu {
	opacity: 1; transform: translateY(0);
}
.main-header-menu .sub-menu a { border-radius: 9px; }
.main-header-menu .sub-menu a:hover { background: var(--pwc-blue-wash); text-decoration: none; }

/* ---------- Hero (premium) ---------- */
.pwc-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(130deg, #E8F4F9 0%, #DFF3E4 48%, #FFF3DC 100%);
	background-size: 160% 160%;
	animation: pwc-hero-pan 16s ease-in-out infinite alternate;
	border-bottom: none;
	padding: 4.5rem 0 4rem;
}
@keyframes pwc-hero-pan {
	from { background-position: 0% 40%; }
	to   { background-position: 90% 60%; }
}
.pwc-hero::before, .pwc-hero::after {
	content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.pwc-hero::before {
	width: 340px; height: 340px; right: -110px; top: -130px;
	background: radial-gradient(circle, rgba(101,188,235,0.35), rgba(101,188,235,0) 70%);
}
.pwc-hero::after {
	width: 300px; height: 300px; left: -100px; bottom: -140px;
	background: radial-gradient(circle, rgba(244,163,64,0.30), rgba(244,163,64,0) 70%);
}
.pwc-hero-inner { position: relative; z-index: 1; }
.pwc-hero h1 { animation: pwc-rise 0.7s ease both; }
.pwc-hero h1 .pwc-highlight {
	color: var(--pwc-blue);
	background: linear-gradient(transparent 62%, var(--pwc-yellow) 62%);
	padding: 0 0.08em;
}
.pwc-hero .pwc-hero-lead { animation: pwc-rise 0.7s ease 0.12s both; }
.pwc-hero .pwc-hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; animation: pwc-rise 0.7s ease 0.24s both; }
.pwc-hero-points { animation: pwc-rise 0.7s ease 0.36s both; }
.pwc-hero-media { animation: pwc-rise 0.8s ease 0.2s both; }
.pwc-hero-media img {
	border-radius: 22px;
	border: 6px solid #fff;
	animation: pwc-float 7s ease-in-out infinite;
}
@keyframes pwc-rise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes pwc-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-9px); }
}
.pwc-hero-badge {
	display: inline-block; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em;
	text-transform: uppercase; color: var(--pwc-blue-dark);
	background: rgba(255,255,255,0.75); border: 1px solid rgba(36,123,160,0.18);
	padding: 0.35rem 0.85rem; border-radius: var(--pwc-radius-pill); margin-bottom: 1.1rem;
	animation: pwc-rise 0.7s ease both;
}

/* ---------- Scroll reveal (JS-gated, no-JS safe) ---------- */
html.pwc-js .pwc-reveal { opacity: 0; transform: translateY(16px); }
html.pwc-js .pwc-reveal.pwc-in {
	opacity: 1; transform: translateY(0);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---------- Front-page section styling ---------- */
.home .entry-content > h2 {
	position: relative; padding-bottom: 0.55rem; margin-top: 2.6rem;
}
.home .entry-content > h2::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--pwc-blue), var(--pwc-green));
}
.home .pwc-calc-card {
	border: 2px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box,
	            linear-gradient(130deg, var(--pwc-sky), var(--pwc-mint), var(--pwc-yellow)) border-box;
}

/* ---------- Tool cards: palette accents ---------- */
.pwc-tool-card { border-top: 5px solid var(--pwc-sky); }
.pwc-tool-card:nth-child(4n+2) { border-top-color: var(--pwc-green); }
.pwc-tool-card:nth-child(4n+3) { border-top-color: var(--pwc-orange); }
.pwc-tool-card:nth-child(4n+4) { border-top-color: var(--pwc-lavender); }
.pwc-tool-card:nth-child(4n+2) .pwc-tool-icon { background: rgba(72,168,104,0.13); color: var(--pwc-green-dark); }
.pwc-tool-card:nth-child(4n+3) .pwc-tool-icon { background: rgba(244,163,64,0.16); color: #B26E14; }
.pwc-tool-card:nth-child(4n+4) .pwc-tool-icon { background: rgba(185,163,227,0.20); color: #6D55A3; }
.pwc-tool-card:hover { transform: translateY(-5px); }

/* ---------- Blog archive cards (Astra) ---------- */
.blog .ast-article-post, .archive .ast-article-post, .search .ast-article-post {
	background: #fff; border: 1px solid var(--pwc-border); border-radius: var(--pwc-radius);
	box-shadow: var(--pwc-shadow); overflow: hidden; padding: 0 0 1.4rem;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.blog .ast-article-post:hover, .archive .ast-article-post:hover {
	transform: translateY(-4px); box-shadow: var(--pwc-shadow-lg);
}
.blog .ast-article-post .post-thumb, .archive .ast-article-post .post-thumb { overflow: hidden; }
.blog .ast-article-post .post-thumb img, .archive .ast-article-post .post-thumb img {
	transition: transform 0.5s ease; width: 100%;
}
.blog .ast-article-post:hover .post-thumb img, .archive .ast-article-post:hover .post-thumb img {
	transform: scale(1.05);
}
.blog .ast-article-post .entry-header, .blog .ast-article-post .entry-content,
.blog .ast-article-post .entry-meta, .blog .ast-article-post .read-more,
.archive .ast-article-post .entry-header, .archive .ast-article-post .entry-content {
	padding-left: 1.5rem; padding-right: 1.5rem;
}
.ast-article-post .read-more a, .pwc-article-card a.pwc-tool-link {
	font-weight: 800; color: var(--pwc-blue);
}
.ast-article-post .read-more a:hover { color: var(--pwc-orange); text-decoration: none; }

/* Article card image zoom (theme cards) */
.pwc-article-card { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.pwc-article-card:hover { transform: translateY(-4px); box-shadow: var(--pwc-shadow-lg); }
.pwc-article-card img { transition: transform 0.5s ease; }
.pwc-article-card:hover img { transform: scale(1.04); }

/* Single post hero image */
.single-post .post-thumb img { border-radius: var(--pwc-radius); box-shadow: var(--pwc-shadow); }

/* ---------- Footer (premium) ---------- */
.site-footer {
	background: linear-gradient(180deg, #EFF8FB 0%, #EAF6EE 100%);
	border-top: 3px solid transparent;
	border-image: linear-gradient(90deg, var(--pwc-sky), var(--pwc-mint), var(--pwc-yellow)) 1;
}
.site-footer a { transition: color 0.18s ease; }
.site-footer a:hover { color: var(--pwc-blue); }

/* ---------- Calculator loading shimmer ---------- */
.pwc-calc-result.is-loading { position: relative; overflow: hidden; }
.pwc-calc-result.is-loading::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
	animation: pwc-shimmer 1.1s ease-in-out infinite;
}
@keyframes pwc-shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }

/* ---------- Reduced motion: respect the user ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pwc-hero, .pwc-hero h1, .pwc-hero .pwc-hero-lead, .pwc-hero .pwc-hero-cta,
	.pwc-hero-points, .pwc-hero-media, .pwc-hero-media img, .pwc-hero-badge,
	.pwc-calc-result.is-loading::after { animation: none !important; }
	html.pwc-js .pwc-reveal { opacity: 1; transform: none; transition: none; }
	.blog .ast-article-post, .pwc-article-card, .pwc-tool-card { transition: none; }
	.blog .ast-article-post:hover .post-thumb img { transform: none; }
}

/* ============================================================
   FINAL DESIGN LAYER v1.2 — multicolor system
   Mix target: ~50% soft purple/blue/green/turquoise grounds,
   ~25% purple-violet-blue-green gradients, ~25% warm accents
   (orange, yellow, red, magenta) used as highlights only.
   Article/body text stays dark navy for readability.
   ============================================================ */

:root {
	--pwc-violet: #7C5CBF;
	--pwc-purple-soft: #EFE9FB;
	--pwc-turquoise: #2BB3A3;
	--pwc-turquoise-soft: #E2F5F2;
	--pwc-magenta: #C93A8A;
	--pwc-red: #E05252;
	--pwc-grad-main: linear-gradient(120deg, #7C5CBF 0%, #247BA0 52%, #48A868 105%);
	--pwc-grad-warm: linear-gradient(120deg, #F4A340 0%, #F08080 60%, #C93A8A 110%);
}

/* ---------- Page grounds: no more plain white ---------- */
body { background: linear-gradient(180deg, #F7F3FD 0%, #F2F9FC 34%, #F1FAF4 68%, #FBF6EE 100%); background-attachment: fixed; }
.site-content, .ast-container { background: transparent; }

/* Header: white bar with a multicolor gradient underline */
.site-header, .ast-primary-header-bar { border-bottom: none; }
.site-header::after {
	content: ""; display: block; height: 3px;
	background: linear-gradient(90deg, var(--pwc-violet), var(--pwc-sky), var(--pwc-turquoise), var(--pwc-green), var(--pwc-yellow), var(--pwc-orange), var(--pwc-magenta));
}

/* ---------- Homepage: alternating soft section tints ---------- */
.home .entry-content { position: relative; }
.home .entry-content > h2::after { background: var(--pwc-grad-main); }
.home .entry-content > ul {
	background: rgba(255,255,255,0.72); border: 1px solid var(--pwc-border);
	border-left: 5px solid var(--pwc-violet); border-radius: var(--pwc-radius);
	padding: 1.2rem 1.4rem 1.2rem 2.2rem; box-shadow: var(--pwc-shadow);
}
.home .pwc-calc-card {
	background: linear-gradient(#ffffff, #ffffff) padding-box,
	            linear-gradient(130deg, var(--pwc-violet), var(--pwc-sky), var(--pwc-turquoise), var(--pwc-yellow)) border-box;
}
.home .pwc-faq-item:nth-child(odd)  { background: var(--pwc-purple-soft); }
.home .pwc-faq-item:nth-child(even) { background: var(--pwc-turquoise-soft); }
.home .pwc-faq-item summary::after { background: #fff; }

/* Hero: richer violet-blue-green animated gradient */
.pwc-hero {
	background: linear-gradient(125deg, #E4DBFA 0%, #CFEAF8 38%, #CDF0DA 72%, #FFE9C4 110%);
	background-size: 170% 170%;
}
.pwc-hero::before { background: radial-gradient(circle, rgba(201,58,138,0.22), rgba(201,58,138,0) 70%); }
.pwc-hero-badge { color: var(--pwc-violet); border-color: rgba(124,92,191,0.35); }

/* ---------- Tool cards: full multicolor cycle ---------- */
.pwc-tool-card { background: linear-gradient(180deg, #ffffff 0%, #F4F8FE 100%); }
.pwc-tool-card:nth-child(6n+1) { border-top-color: var(--pwc-violet); }
.pwc-tool-card:nth-child(6n+2) { border-top-color: var(--pwc-sky); }
.pwc-tool-card:nth-child(6n+3) { border-top-color: var(--pwc-turquoise); }
.pwc-tool-card:nth-child(6n+4) { border-top-color: var(--pwc-green); }
.pwc-tool-card:nth-child(6n+5) { border-top-color: var(--pwc-orange); }
.pwc-tool-card:nth-child(6n+6) { border-top-color: var(--pwc-magenta); }
.pwc-tool-card .pwc-tool-icon { animation: pwc-icon-float 6s ease-in-out infinite; }
.pwc-tool-card:nth-child(6n+1) .pwc-tool-icon { background: rgba(124,92,191,0.14); color: var(--pwc-violet); }
.pwc-tool-card:nth-child(6n+3) .pwc-tool-icon { background: rgba(43,179,163,0.14); color: #1D8577; }
.pwc-tool-card:nth-child(6n+5) .pwc-tool-icon { background: rgba(244,163,64,0.16); color: #B26E14; }
.pwc-tool-card:nth-child(6n+6) .pwc-tool-icon { background: rgba(201,58,138,0.12); color: var(--pwc-magenta); }
@keyframes pwc-icon-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Calculator: gradient result + warm accent button states */
.pwc-calc-result { background: linear-gradient(135deg, #F0EBFC 0%, #EAF6FB 55%, #EAF7EE 100%); border-left-color: var(--pwc-violet); }
.pwc-progress-bar { background: var(--pwc-grad-warm); }
.pwc-unit-toggle button.is-active { background: var(--pwc-grad-main); }

/* Tables: violet-to-blue gradient header */
table.pwc-table thead th { background: linear-gradient(90deg, var(--pwc-violet), var(--pwc-blue)); }
table.pwc-table tbody tr:hover { background: var(--pwc-purple-soft); }

/* ---------- Blog cards: rotating soft tints ---------- */
.blog .ast-article-post:nth-child(4n+1), .archive .ast-article-post:nth-child(4n+1) { background: linear-gradient(180deg, #ffffff, #F5F0FE); }
.blog .ast-article-post:nth-child(4n+2), .archive .ast-article-post:nth-child(4n+2) { background: linear-gradient(180deg, #ffffff, #EFF7FD); }
.blog .ast-article-post:nth-child(4n+3), .archive .ast-article-post:nth-child(4n+3) { background: linear-gradient(180deg, #ffffff, #EDF9F1); }
.blog .ast-article-post:nth-child(4n+4), .archive .ast-article-post:nth-child(4n+4) { background: linear-gradient(180deg, #ffffff, #EAF8F6); }
.ast-article-post .entry-meta, .pwc-article-card .pwc-card-meta { color: var(--pwc-violet); }

/* ---------- Single articles: colourful, readable ---------- */
.single-post .ast-single-post-order, .single-post .entry-header {
	background: linear-gradient(120deg, rgba(124,92,191,0.10), rgba(101,188,235,0.10) 55%, rgba(72,168,104,0.10));
	border-radius: var(--pwc-radius); padding: 1.2rem 1.4rem;
}
.single-post .entry-content { color: var(--pwc-ink); }
.single-post .entry-content h2 {
	color: var(--pwc-blue-dark); border-left: 5px solid var(--pwc-violet);
	padding-left: 0.8rem; margin-top: 2.2rem;
}
.single-post .entry-content h2:nth-of-type(3n+2) { border-left-color: var(--pwc-turquoise); }
.single-post .entry-content h2:nth-of-type(3n)   { border-left-color: var(--pwc-orange); }
.single-post .entry-content h3 { color: var(--pwc-violet); }
.single-post .entry-content blockquote {
	background: var(--pwc-purple-soft); border-left: 5px solid var(--pwc-magenta);
	border-radius: 0 var(--pwc-radius-sm) var(--pwc-radius-sm) 0;
	padding: 1rem 1.3rem; font-style: normal;
}
.single-post .entry-content .pwc-callout { background: linear-gradient(120deg, #EFE9FB, #E8F4F9); }
.single-post .post-thumb img { border: 5px solid #fff; box-shadow: var(--pwc-shadow-lg); }
.single-post .entry-content a:hover { color: var(--pwc-magenta); }

/* Related posts / post navigation cards */
.ast-related-posts .ast-article-post, .post-navigation .nav-links > div {
	background: #fff; border: 1px solid var(--pwc-border); border-top: 4px solid var(--pwc-turquoise);
	border-radius: var(--pwc-radius); box-shadow: var(--pwc-shadow);
}

/* ---------- Footer: violet-blue-green gradient ---------- */
.site-footer {
	background: linear-gradient(120deg, #E9E2FA 0%, #DCEFFA 45%, #DDF3E4 100%);
	border-image: linear-gradient(90deg, var(--pwc-violet), var(--pwc-sky), var(--pwc-turquoise), var(--pwc-orange), var(--pwc-magenta)) 1;
}
.site-footer a:hover { color: var(--pwc-magenta); }

/* Warm accent for primary CTA hover glow */
.pwc-btn-primary:hover { box-shadow: 0 12px 30px rgba(124,92,191,0.35); }

/* Reduced motion: still the user's call */
@media (prefers-reduced-motion: reduce) {
	.pwc-tool-card .pwc-tool-icon { animation: none !important; }
}

/* ============================================================
   PATCH v1.2.1 — fixes from live QC
   1) Footer gradient: inner Astra footer wraps painted white
      over the footer gradient — make them transparent.
   2) Mobile menu clipping: drop background-attachment:fixed
      and the header ::after block (both new in v1.2.0); the
      rainbow header line is now a border-image, and an
      overflow-x clip guards against any residual shift.
   3) Blog cards: stronger full tints + coloured top borders.
   ============================================================ */

body { background-attachment: scroll; }
.site-header::after { content: none; display: none; }
.ast-primary-header-bar {
	border-bottom: 3px solid transparent;
	border-image: linear-gradient(90deg, var(--pwc-violet), var(--pwc-sky), var(--pwc-turquoise), var(--pwc-green), var(--pwc-yellow), var(--pwc-orange), var(--pwc-magenta)) 1;
}
html, body { overflow-x: clip; }

.site-footer {
	background: linear-gradient(120deg, #E9E2FA 0%, #DCEFFA 45%, #DDF3E4 100%) !important;
}
.site-footer [class*="footer-wrap"],
.site-footer .ast-footer-bar,
.site-footer .ast-small-footer,
.site-footer .site-footer-focus-item {
	background: transparent !important;
	background-color: transparent !important;
}

.blog .ast-article-post, .archive .ast-article-post { border-top: 4px solid var(--pwc-sky); }
.blog .ast-article-post:nth-child(4n+1), .archive .ast-article-post:nth-child(4n+1) {
	background: linear-gradient(180deg, #FBFAFF, #EFE9FB); border-top-color: var(--pwc-violet);
}
.blog .ast-article-post:nth-child(4n+2), .archive .ast-article-post:nth-child(4n+2) {
	background: linear-gradient(180deg, #FAFCFF, #E2F1FB); border-top-color: var(--pwc-sky);
}
.blog .ast-article-post:nth-child(4n+3), .archive .ast-article-post:nth-child(4n+3) {
	background: linear-gradient(180deg, #FAFEFB, #E4F4E9); border-top-color: var(--pwc-green);
}
.blog .ast-article-post:nth-child(4n+4), .archive .ast-article-post:nth-child(4n+4) {
	background: linear-gradient(180deg, #FAFEFD, #DFF5F1); border-top-color: var(--pwc-turquoise);
}

/* Auto-wrapped homepage tool cards (built by reveal.js) */
.pwc-tools-auto { margin: 1.6rem 0 2.4rem; }
.pwc-tools-auto .pwc-tool-card h3 { margin: 0; }

/* ============================================================
   PATCH v1.2.2 — mobile toggle restoration
   v1.2.1's header/body experiments are reverted to the
   v1.1.0 known-good header behaviour. The rainbow header line
   returns as the ::after strip (the toggle rendered fine with
   it in v1.2.0); the body gradient stays but scrolls (the
   'fixed' attachment is what shifted the page when the
   off-canvas menu opened). Footer/tool-card/blog fixes from
   v1.2.1 are untouched. A safeguard rule also forces the
   mobile toggle icon to render in the dark brand colour.
   ============================================================ */

html, body { overflow-x: visible; }
.ast-primary-header-bar { border-bottom: none; border-image: none; }
.site-header::after {
	content: ""; display: block; height: 3px;
	background: linear-gradient(90deg, var(--pwc-violet), var(--pwc-sky), var(--pwc-turquoise), var(--pwc-green), var(--pwc-yellow), var(--pwc-orange), var(--pwc-magenta));
}
.menu-toggle.main-header-menu-toggle,
.ast-mobile-menu-trigger-minimal,
.ast-mobile-menu-trigger {
	color: var(--pwc-ink) !important;
	opacity: 1 !important;
	visibility: visible !important;
}
.menu-toggle .mobile-menu-toggle-icon svg,
.ast-mobile-menu-trigger-minimal svg {
	fill: currentColor;
}

/* ============================================================
   PATCH v1.2.3 — mobile overflow root-cause fix
   Diagnosis (live QC): at phone widths the header row's
   contents (260px logo + site-title link still taking layout
   space + toggle) exceed the viewport, widening the whole
   document, pushing the toggle off-screen and shifting the
   page when the off-canvas menu opens. Fixes: cap the mobile
   logo, remove the hidden title from header layout, guard
   header widths, contain content overflow, and give article
   tables their own horizontal scroll on small screens.
   ============================================================ */

@media (max-width: 921px) {
	.site-header .custom-logo,
	.site-header .site-branding img {
		max-width: 200px !important;
		height: auto !important;
	}
	.site-header .site-title { display: none !important; }
	.site-header .site-branding,
	.site-header .site-logo-img { min-width: 0; }
	.ast-primary-header-bar,
	.ast-mobile-header-wrap,
	.ast-builder-grid-row { max-width: 100%; }
}

.site-content { overflow-x: clip; }

.entry-content table { max-width: 100%; }
@media (max-width: 640px) {
	.entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.entry-content .pwc-table-wrap { overflow-x: auto; max-width: 100%; }
}

/* ============================================================
   SEO LAYER v1.2.4
   - The header's site-title element (kept in the markup by the
     header builder although branding is logo-only) is removed
     from layout at every width: it was producing a duplicate
     H1 on the homepage and widening the mobile header.
   - Blog home gets a real H1 (injected by the theme) styled
     to match the archive title area.
   ============================================================ */

.site-header .site-title { display: none !important; }

.pwc-blog-h1 {
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	margin: 0.5rem 0 1.6rem;
	padding-bottom: 0.6rem;
	position: relative;
}
.pwc-blog-h1::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px;
	border-radius: 4px; background: var(--pwc-grad-main);
}
.pwc-blog-h1 .pwc-blog-h1-sub {
	display: block; font-size: 1.02rem; font-weight: 600; color: var(--pwc-muted);
	margin-top: 0.45rem; letter-spacing: 0;
}
