/* ==========================================================================
   PixelProfitHub — main stylesheet
   ========================================================================== */

:root {
	--ink: #0F172A;
	--ink-2: #1E293B;
	--ink-3: #334155;
	--slate: #475569;
	--muted: #64748B;
	--line: #E2E8F0;
	--line-2: #CBD5E1;
	--paper: #FAFAF7;
	--white: #FFFFFF;
	--lime: #A3E635;
	--lime-2: #BEF264;
	--lime-ink: #3F6212;
	--violet: #8B5CF6;
	--violet-soft: #F3EFFF;

	--t-affiliate: #84CC16;
	--t-pinterest: #E11D48;
	--t-canva: #0EA5E9;
	--t-ai: #8B5CF6;
	--t-business: #F59E0B;

	--font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
	--shadow-lg: 0 24px 48px -24px rgba(15, 23, 42, .35);
	--container: 1200px;
	--narrow: 780px;
	--header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink-2);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
	outline: 3px solid var(--violet);
	outline-offset: 2px;
	border-radius: 6px;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.pph-icon { width: 1.15em; height: 1.15em; flex: none; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.pph-hp { position: absolute; left: -9999px; }
.pph-center { text-align: center; }

.pph-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.pph-container--narrow { max-width: calc(var(--narrow) + 48px); }

/* ---------- Buttons, badges ---------- */
.pph-btn {
	--bg: var(--ink); --fg: var(--white);
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.35em; border-radius: 999px; border: 2px solid var(--bg);
	background: var(--bg); color: var(--fg);
	font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	white-space: nowrap;
}
.pph-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .45); }
.pph-btn .pph-icon { width: 1.05em; height: 1.05em; }
.pph-btn--primary { --bg: var(--lime); --fg: var(--ink); }
.pph-btn--primary:hover { --bg: var(--lime-2); }
.pph-btn--outline { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.pph-btn--dark { --bg: var(--ink); --fg: var(--white); }
.pph-btn--sm { padding: .6em 1em; font-size: .9rem; }
.pph-btn--lg { padding: 1em 1.7em; font-size: 1.1rem; }
.pph-btn-wrap { margin: 1.5em 0; }

.pph-badge {
	--tone: var(--violet);
	display: inline-flex; align-items: center; gap: .4em;
	font: 700 .72rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	color: var(--ink); text-decoration: none;
	padding: .5em .8em; border-radius: 999px;
	background: color-mix(in srgb, var(--tone) 16%, white);
	border: 1px solid color-mix(in srgb, var(--tone) 35%, white);
}
.pph-badge::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--tone); }
.pph-badge--affiliate-marketing, .pph-tone--affiliate-marketing { --tone: var(--t-affiliate); }
.pph-badge--pinterest, .pph-tone--pinterest { --tone: var(--t-pinterest); }
.pph-badge--canva, .pph-tone--canva { --tone: var(--t-canva); }
.pph-badge--ai-tools, .pph-tone--ai-tools { --tone: var(--t-ai); }
.pph-badge--online-business, .pph-tone--online-business { --tone: var(--t-business); }
.pph-tone--default { --tone: var(--violet); }

.pph-eyebrow {
	display: inline-flex; align-items: center; gap: .5em;
	font: 700 .8rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
	color: var(--violet); margin-bottom: 1rem;
}
.pph-eyebrow--lime { color: var(--lime); }

/* ---------- Progress bar ---------- */
.pph-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; background: transparent; }
.pph-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--violet)); transition: width .1s linear; }

/* ---------- Header ---------- */
.pph-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 250, 247, .88);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .pph-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pph-header { top: 46px; } }
.pph-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.pph-brand { flex: none; }
.pph-brand .custom-logo { max-height: 44px; width: auto; }

.pph-wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; }
.pph-wordmark b { color: var(--violet); font-weight: 800; }
.pph-wordmark__mark { display: grid; grid-template-columns: repeat(2, 10px); gap: 3px; }
.pph-wordmark__mark i { width: 10px; height: 10px; border-radius: 2px; background: var(--ink); }
.pph-wordmark__mark i:nth-child(2) { background: var(--lime); }
.pph-wordmark__mark i:nth-child(3) { background: var(--violet); }
.pph-wordmark--light { color: var(--white); }
.pph-wordmark--light .pph-wordmark__mark i:first-child,
.pph-wordmark--light .pph-wordmark__mark i:last-child { background: var(--white); }
.pph-wordmark--light b { color: var(--lime); }

.pph-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.pph-nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.pph-nav__list li { position: relative; }
.pph-nav__list a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-3); }
.pph-nav__list a:hover, .pph-nav__list .current-menu-item > a, .pph-nav__list .current-menu-parent > a { color: var(--ink); background: rgba(15, 23, 42, .05); }
.pph-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.pph-nav__list li:hover > .sub-menu, .pph-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.pph-header__tools { display: flex; gap: 4px; }
.pph-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.pph-iconbtn:hover { background: rgba(15, 23, 42, .06); }
.pph-menu-toggle { display: none; }
.pph-menu-toggle .is-close { display: none; }
.pph-search { border-top: 1px solid var(--line); padding: 16px 0; background: var(--white); }

@media (max-width: 960px) {
	.pph-menu-toggle { display: inline-grid; }
	.pph-header__tools { margin-left: auto; }
	.pph-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
		flex-direction: column; align-items: stretch; gap: 12px;
		padding: 16px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-lg);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
		max-height: calc(100vh - var(--header-h)); overflow: auto;
	}
	.admin-bar .pph-nav { top: calc(var(--header-h) + 46px); }
	.pph-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.pph-nav__list { flex-direction: column; }
	.pph-nav__list a { padding: 12px; font-size: 1.05rem; }
	.pph-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
	.menu-open .pph-menu-toggle .is-open { display: none; }
	.menu-open .pph-menu-toggle .is-close { display: block; }
}

.pph-searchform { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 640px; }
.pph-searchform .pph-icon { color: var(--muted); }
.pph-searchform input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 8px 0; outline: none; }

/* ---------- Hero ---------- */
.pph-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(139, 92, 246, .35), transparent 60%),
		radial-gradient(700px 400px at -10% 110%, rgba(163, 230, 53, .18), transparent 60%),
		var(--ink);
	color: #CBD5E1;
}
.pph-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(180deg, #000 30%, transparent);
	-webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.pph-hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 88px 24px 96px; }
.pph-hero__inner--center { grid-template-columns: 1fr; text-align: center; max-width: 860px; }
.pph-hero__inner--center .pph-community__actions { justify-content: center; }
.pph-hero__title { color: var(--white); font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 20px; }
.pph-hero__text { font-size: 1.2rem; max-width: 34em; color: #CBD5E1; }
.pph-hero__inner--center .pph-hero__text { margin-left: auto; margin-right: auto; }
.pph-hero__form { margin-top: 32px; max-width: 520px; padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.pph-hero__kit { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.pph-hero__kit .pph-icon { color: var(--lime); }
.pph-hero__form .pph-nl__note { color: #94A3B8; }
.pph-hero__art img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.pph-hero .pph-crumbs a, .pph-hero .pph-crumbs { color: #94A3B8; }

/* Built-in pixel illustration */
.pph-pixelart { position: relative; aspect-ratio: 1 / 1; max-width: 440px; margin-left: auto; }
.pph-pixelart__screen {
	position: absolute; inset: 12% 8% 14% 8%;
	display: flex; align-items: flex-end; gap: 6%;
	padding: 10% 9% 9%; border-radius: 22px;
	background: linear-gradient(160deg, #1E293B, #0B1222);
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.pph-pixelart__bar {
	flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
	background:
		repeating-linear-gradient(0deg, transparent 0 10px, rgba(15, 23, 42, .35) 10px 12px),
		linear-gradient(180deg, var(--lime), #65A30D);
	transform-origin: bottom; animation: pph-grow 1s cubic-bezier(.2, .8, .2, 1) both;
}
.pph-pixelart__bar:nth-child(2) { animation-delay: .08s; }
.pph-pixelart__bar:nth-child(3) { animation-delay: .16s; }
.pph-pixelart__bar:nth-child(4) { animation-delay: .24s; }
.pph-pixelart__bar:nth-child(5) { animation-delay: .32s; }
.pph-pixelart__bar:nth-child(6) { animation-delay: .4s; background: repeating-linear-gradient(0deg, transparent 0 10px, rgba(15, 23, 42, .3) 10px 12px), linear-gradient(180deg, #C4B5FD, var(--violet)); }
@keyframes pph-grow { from { transform: scaleY(0); } }
.pph-pixelart__chip {
	position: absolute; display: grid; place-items: center; width: 64px; height: 64px;
	border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
	animation: pph-float 6s ease-in-out infinite;
}
.pph-pixelart__chip .pph-icon { width: 28px; height: 28px; }
.pph-pixelart__chip--a { top: 2%; left: 4%; color: var(--t-pinterest); }
.pph-pixelart__chip--b { top: 6%; right: 0; color: var(--t-canva); animation-delay: -1.5s; }
.pph-pixelart__chip--c { bottom: 2%; right: 12%; color: var(--violet); animation-delay: -3s; }
.pph-pixelart__chip--d { bottom: 8%; left: 0; color: #4D7C0F; animation-delay: -4.5s; }
@keyframes pph-float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .pph-pixelart__bar, .pph-pixelart__chip { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
	.pph-hero__inner { grid-template-columns: 1fr; padding: 56px 24px 64px; gap: 40px; }
	.pph-pixelart { max-width: 320px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
.pph-section { padding: 72px 0; }
.pph-section--tint { background: var(--white); border-block: 1px solid var(--line); }
.pph-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.pph-section-head .pph-section-title { margin: 0; }
.pph-section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 28px; }
.pph-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink); }
.pph-link-arrow:hover { color: var(--violet); }
.pph-empty { color: var(--muted); }

/* Pillars */
.pph-pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pph-pillar {
	display: flex; flex-direction: column; gap: 10px; padding: 24px 20px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
	position: relative; overflow: hidden;
}
.pph-pillar::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone); }
.pph-pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tone) 50%, white); }
.pph-pillar__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--tone) 15%, white); color: color-mix(in srgb, var(--tone) 80%, black); }
.pph-pillar__icon .pph-icon { width: 24px; height: 24px; }
.pph-pillar__name { font: 700 1.15rem/1.2 var(--font-display); color: var(--ink); }
.pph-pillar__blurb { color: var(--slate); font-size: .95rem; line-height: 1.5; flex: 1; }
.pph-pillar__count { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--ink-3); }
@media (max-width: 1080px) { .pph-pillars { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .pph-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .pph-pillars { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.pph-grid { display: grid; gap: 28px; }
.pph-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pph-grid__wide { grid-column: 1 / -1; }
@media (max-width: 960px) { .pph-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pph-grid--3 { grid-template-columns: 1fr; } }

.pph-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.pph-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pph-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.pph-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pph-card:hover .pph-card__media img { transform: scale(1.03); }
.pph-card__placeholder {
	display: grid; place-items: center; width: 100%; height: 100%;
	background:
		linear-gradient(rgba(15, 23, 42, .06) 1px, transparent 1px) 0 0 / 20px 20px,
		linear-gradient(90deg, rgba(15, 23, 42, .06) 1px, transparent 1px) 0 0 / 20px 20px,
		color-mix(in srgb, var(--tone) 18%, white);
	color: color-mix(in srgb, var(--tone) 80%, black);
}
.pph-card__placeholder .pph-icon { width: 48px; height: 48px; }
.pph-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.pph-card__body .pph-badge { align-self: flex-start; }
.pph-card__title { font-size: 1.22rem; line-height: 1.25; margin: 0; }
.pph-card__title a { text-decoration: none; }
.pph-card__title a:hover { color: var(--violet); }
.pph-card__excerpt { color: var(--slate); font-size: .95rem; line-height: 1.55; margin: 0; flex: 1; }
.pph-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }
.pph-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.pph-card__price { color: var(--ink); font-size: 1.05rem; }

/* ---------- Newsletter ---------- */
.pph-nl__row { display: flex; gap: 8px; }
.pph-nl__row input {
	flex: 1; min-width: 0; font: inherit; padding: .85em 1.1em;
	border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink);
}
.pph-nl__row input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }
.pph-nl__note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.pph-nl__success { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--lime-ink); background: #ECFCCB; padding: 10px 14px; border-radius: 10px; margin: 12px 0 0; }
.pph-nl__success[hidden] { display: none; }
.pph-nl__title { font: 700 1.3rem/1.25 var(--font-display); color: var(--ink); margin: 0 0 6px; }
.pph-nl__text { color: var(--slate); margin: 0 0 16px; }
.pph-nl__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--ink); margin-bottom: 12px; }

.pph-nl--inline {
	margin: 2.2em 0; padding: 28px; border-radius: var(--radius);
	background: linear-gradient(135deg, var(--violet-soft), #F7FEE7);
	border: 1px solid #E4DCFD;
}
.pph-nl--sidebar { padding: 22px; border-radius: var(--radius); background: var(--ink); color: #CBD5E1; }
.pph-nl--sidebar .pph-nl__title { color: var(--white); font-size: 1.1rem; }
.pph-nl--sidebar .pph-nl__text { color: #94A3B8; font-size: .9rem; }
.pph-nl--sidebar .pph-nl__row { flex-direction: column; }
.pph-nl--sidebar .pph-nl__row input { border-color: transparent; }
.pph-nl--sidebar .pph-nl__note { color: #94A3B8; }
@media (max-width: 520px) { .pph-nl__row { flex-direction: column; } .pph-nl__row .pph-btn { width: 100%; } }

.pph-band { background: var(--ink); color: #CBD5E1; position: relative; overflow: hidden; }
.pph-band::before {
	content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; opacity: .5;
	background:
		linear-gradient(rgba(163, 230, 53, .25) 2px, transparent 2px) 0 0 / 24px 24px,
		linear-gradient(90deg, rgba(163, 230, 53, .25) 2px, transparent 2px) 0 0 / 24px 24px;
	mask-image: radial-gradient(closest-side, #000, transparent);
	-webkit-mask-image: radial-gradient(closest-side, #000, transparent);
}
.pph-band__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.pph-band h2 { color: var(--white); font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.pph-band .pph-eyebrow { color: var(--lime); }
.pph-band .pph-nl__note { color: #94A3B8; }
@media (max-width: 860px) { .pph-band__inner { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Footer ---------- */
.pph-footer { background: #0A1020; color: #94A3B8; padding: 64px 0 28px; font-size: .95rem; }
.pph-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.pph-footer__about p { margin-top: 16px; max-width: 34ch; }
.pph-footer .widget-title { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.pph-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pph-footer a { text-decoration: none; }
.pph-footer a:hover { color: var(--lime); }
.pph-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-top: 24px; font-size: .85rem; }
.pph-footer__bottom p { margin: 0; }
.pph-footer__menu { display: flex !important; gap: 20px !important; }
.pph-footer .pph-nav__list { flex-direction: column; }
.pph-footer .pph-nav__list a { padding: 0; color: #94A3B8; font-weight: 500; }
.pph-footer .pph-nav__list a:hover { background: none; color: var(--lime); }
@media (max-width: 860px) { .pph-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pph-footer__grid { grid-template-columns: 1fr; } }

.pph-social { display: flex; gap: 8px; margin-top: 18px; }
.pph-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #CBD5E1; }
.pph-social a:hover { background: var(--lime); color: var(--ink); }

/* ---------- Archive head ---------- */
.pph-archive-head { --tone: var(--violet); padding: 64px 0 48px; background: var(--white); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.pph-archive-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--tone); }
.pph-archive-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; }
.pph-archive-head p, .pph-archive-head__desc { color: var(--slate); font-size: 1.1rem; max-width: 60ch; }
.pph-archive-head__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; background: color-mix(in srgb, var(--tone) 16%, white); color: color-mix(in srgb, var(--tone) 80%, black); }
.pph-archive-head__icon .pph-icon { width: 28px; height: 28px; }
.pph-archive-head__search { margin-top: 20px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Article ---------- */
.pph-article__head { padding: 48px 0 32px; }
.pph-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.pph-crumbs a { text-decoration: none; }
.pph-crumbs a:hover { color: var(--violet); }
.pph-article__title { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; margin: 16px 0 16px; }
.pph-article__dek { font-size: 1.25rem; color: var(--slate); line-height: 1.5; }
.pph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: .92rem; margin-top: 20px; }
.pph-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pph-meta__author { color: var(--ink); font-weight: 700; }
.pph-meta__author img { border-radius: 50%; }
.pph-article__hero { margin: 0 auto 40px; }
.pph-article__hero img { width: 100%; border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; }
.pph-article__hero figcaption { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 10px; }

.pph-article__layout { display: grid; grid-template-columns: minmax(0, var(--narrow)) 300px; justify-content: center; gap: 64px; }
.pph-article__layout.no-toc { grid-template-columns: minmax(0, var(--narrow)); }
.pph-article__main { min-width: 0; }
.pph-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.admin-bar .pph-sticky { top: calc(var(--header-h) + 56px); }
.pph-toc--inline { display: none; }
@media (max-width: 1080px) {
	.pph-article__layout { grid-template-columns: minmax(0, var(--narrow)); }
	.pph-article__side { display: none; }
	.pph-toc--inline { display: block; }
}

/* Table of contents */
.pph-toc details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pph-toc summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 700 .8rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.pph-toc summary::-webkit-details-marker { display: none; }
.pph-toc--inline summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; }
.pph-toc--inline details[open] summary::after { content: "–"; }
.pph-toc--inline { margin: 0 0 32px; }
.pph-toc__list { list-style: none; counter-reset: toc; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.pph-toc__list > li { counter-increment: toc; }
.pph-toc__list a { display: block; padding: 6px 10px 6px 34px; position: relative; text-decoration: none; color: var(--slate); font-size: .92rem; line-height: 1.4; border-radius: 8px; }
.pph-toc__list > li > a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 8px; top: 7px; font: 700 .72rem/1.4 var(--font-body); color: var(--line-2); }
.pph-toc__list a:hover { color: var(--ink); background: var(--paper); }
.pph-toc__list a.is-active { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--lime) 22%, white); }
.pph-toc__list a.is-active::before { color: var(--lime-ink); }
.pph-toc__sub { list-style: none; padding: 0; margin: 0; }
.pph-toc__sub a { padding-left: 48px; font-size: .86rem; }
.pph-toc--sidebar .pph-toc__list { max-height: 55vh; overflow: auto; }

/* Disclosure */
.pph-disclosure { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--slate); background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 28px; }
.pph-disclosure p { margin: 0; }
.pph-disclosure .pph-icon { color: var(--muted); margin-top: 3px; }

/* ---------- Prose (readability) ---------- */
.pph-prose { font-size: 1.125rem; line-height: 1.78; color: var(--ink-2); }
.pph-prose > * { margin-top: 0; margin-bottom: 1.25em; }
.pph-prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 2.2em 0 .7em; padding-top: .2em; }
.pph-prose h3 { font-size: 1.35rem; margin: 1.8em 0 .6em; }
.pph-prose h4 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.pph-prose h2 + h3 { margin-top: .8em; }
.pph-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 600; transition: background .15s ease; }
.pph-prose a:hover { background: color-mix(in srgb, var(--lime) 30%, white); }
.pph-prose strong { color: var(--ink); }
.pph-prose ul, .pph-prose ol { padding-left: 1.4em; }
.pph-prose li { margin-bottom: .5em; padding-left: .2em; }
.pph-prose ul li::marker { color: var(--violet); }
.pph-prose ol li::marker { color: var(--violet); font-weight: 700; }
.pph-prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--lime); font-size: 1.2rem; color: var(--ink); font-style: italic; }
.pph-prose blockquote cite { display: block; font-size: .9rem; color: var(--muted); font-style: normal; margin-top: 8px; }
.pph-prose img { border-radius: var(--radius); }
.pph-prose figure { margin: 2em 0; }
.pph-prose figcaption, .pph-prose .wp-element-caption { color: var(--muted); font-size: .88rem; text-align: center; margin-top: 10px; }
.pph-prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.pph-prose code { font-size: .88em; background: #F1F5F9; padding: .15em .4em; border-radius: 6px; }
.pph-prose pre { background: var(--ink); color: #E2E8F0; padding: 20px; border-radius: var(--radius); overflow: auto; font-size: .9rem; }
.pph-prose pre code { background: none; padding: 0; }
.pph-prose table, .pph-prose .wp-block-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; line-height: 1.5; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.pph-prose .wp-block-table { overflow-x: auto; }
.pph-prose th { background: var(--ink); color: var(--white); text-align: left; font-weight: 700; padding: 12px 14px; }
.pph-prose td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.pph-prose tr:nth-child(even) td { background: #F8FAFC; }
.pph-prose .wp-block-button__link { background: var(--lime); color: var(--ink); border-radius: 999px; font-weight: 700; text-decoration: none; }
.pph-prose .wp-block-pullquote { border-color: var(--violet); }
.pph-prose .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.pph-prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.pph-prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.pph-prose .aligncenter { margin-left: auto; margin-right: auto; }
.pph-prose--wide { max-width: none; }
@media (max-width: 1080px) { .pph-prose .alignwide { margin-left: 0; margin-right: 0; } }
@media (max-width: 600px) { .pph-prose { font-size: 1.06rem; } .pph-prose .alignleft, .pph-prose .alignright { float: none; max-width: 100%; margin: 1.5em 0; } }

/* Content boxes */
.pph-box { margin: 2em 0; padding: 22px 24px; border-radius: var(--radius); border: 1px solid; font-size: 1.02rem; }
.pph-box__title { display: flex; align-items: center; gap: 8px; font: 700 .8rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.pph-box__title .pph-icon { width: 20px; height: 20px; }
.pph-box__body > :last-child { margin-bottom: 0; }
.pph-box__body ul { list-style: none; padding: 0; margin: 0; }
.pph-box__body li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.pph-box__body li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: currentColor; opacity: .7; }
.pph-box--takeaways { background: var(--ink); border-color: var(--ink); color: #E2E8F0; }
.pph-box--takeaways .pph-box__title { color: var(--lime); }
.pph-box--takeaways li::before { background: var(--lime); opacity: 1; }
.pph-box--takeaways strong { color: var(--white); }
.pph-box--tip { background: #F7FEE7; border-color: #D9F99D; }
.pph-box--tip .pph-box__title { color: var(--lime-ink); }
.pph-box--warning { background: #FFF7ED; border-color: #FED7AA; }
.pph-box--warning .pph-box__title { color: #C2410C; }

.pph-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 2em 0; padding: 22px 24px; border-radius: var(--radius); background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--lime); }
.pph-cta__title { font: 700 1.2rem/1.25 var(--font-display); color: var(--ink); margin: 0 0 4px; }
.pph-cta__text { margin: 0; color: var(--slate); font-size: .98rem; }
.pph-prose .pph-cta a, .pph-prose .pph-btn { text-decoration: none; }
.pph-prose .pph-btn:hover { background: var(--bg); }
@media (max-width: 600px) { .pph-cta { flex-direction: column; align-items: flex-start; } }

/* Article footer */
.pph-article__foot { margin-top: 48px; display: grid; gap: 28px; }
.pph-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pph-tags a { font-size: .85rem; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.pph-tags a::before { content: "#"; color: var(--violet); }
.pph-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-block: 1px solid var(--line); }
.pph-share__label { font-weight: 700; margin-right: 6px; }
.pph-share__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; cursor: pointer; font: 600 .9rem var(--font-body); }
.pph-share__btn:hover { border-color: var(--ink); }
.pph-share__btn--pin { background: var(--t-pinterest); color: var(--white); border-color: var(--t-pinterest); }
.pph-share__btn--pin:hover { filter: brightness(1.08); border-color: var(--t-pinterest); }
.pph-share__btn.is-copied { background: var(--lime); border-color: var(--lime); }
.pph-author { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.pph-author img { border-radius: 50%; flex: none; }
.pph-author__name { font: 700 1.1rem var(--font-display); color: var(--ink); margin: 0 0 4px; }
.pph-author__bio { margin: 0; color: var(--slate); font-size: .95rem; }
.pph-related { padding: 72px 0 24px; }

/* ---------- Community teaser ---------- */
.pph-community {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center;
	padding: 48px; border-radius: 24px; color: #CBD5E1;
	background: radial-gradient(600px 300px at 100% 0, rgba(139, 92, 246, .45), transparent 60%), var(--ink);
}
.pph-community h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pph-community p { font-size: 1.1rem; max-width: 52ch; }
.pph-community__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pph-community__grid i { aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.pph-community__grid i:nth-child(3n) { background: var(--violet); }
.pph-community__grid i:nth-child(5n) { background: var(--lime); }
.pph-community__grid i:nth-child(7n) { background: rgba(255, 255, 255, .9); }
.pph-community__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.pph-community__price { font: 800 1.4rem var(--font-display); color: var(--white); }
@media (max-width: 760px) { .pph-community { grid-template-columns: 1fr; padding: 32px 24px; } .pph-community__grid { max-width: 160px; } }
.pph-course-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.pph-course-facts li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--white); font-size: .9rem; font-weight: 600; }

/* ---------- Landing, pages, 404 ---------- */
.pph-landing { padding: 56px 0; }
.pph-404 { padding: 96px 0; text-align: center; }
.pph-404__code { font: 800 clamp(5rem, 14vw, 9rem)/1 var(--font-display); letter-spacing: -0.05em; color: var(--ink); margin: 0; background: linear-gradient(135deg, var(--violet), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pph-404 .pph-searchform { margin: 28px auto; }
.pph-404__topics .pph-nav__list { justify-content: center; flex-wrap: wrap; }

/* Widgets */
.widget { margin: 0; }
.pph-article__side .widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pph-article__side .widget-title { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-body); }
.pph-article__side .widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pph-article__side .widget a { text-decoration: none; }
.pph-article__side .widget a:hover { color: var(--violet); }

/* WordPress core */
.alignnone { margin: 1em 0; }
.wp-caption { max-width: 100%; }
.sticky .pph-card { border-color: var(--lime); }
.bypostauthor { display: block; }
.pph-pages { display: flex; gap: 8px; margin: 2em 0; font-weight: 700; }
