/* PP Engine - front-end styles. Design tokens from the approved mockups. */

/*
 * The hidden attribute must always win over any display set below, and this
 * guard has to live in EVERY stylesheet that sets a display on a hideable
 * element. Stylesheets load conditionally, so the copy in manager.css does
 * nothing for anything styled here. Do not remove it.
 */
.pp-library [hidden],
.pp-book-grid [hidden],
.pp-author-grid [hidden],
.pp-author-main [hidden],
[hidden].pp-series-more,
[hidden].pp-book-grid {
	display: none !important;
}

:root {
	--pp-navy: #131A2B;
	--pp-navy-deep: #0D1322;
	--pp-navy-card: #1E2A45;
	--pp-gold: #B4892E;
	--pp-cream: #FBF8F1;
	--pp-cream-2: #F2ECDD;
	--pp-ink: #131A2B;
	--pp-muted: #4A5164;
	--pp-line: #E6DFCF;
	--pp-serif: "Fraunces", Georgia, serif;
	--pp-sans: "Inter", -apple-system, sans-serif;
}

/* ---- Icons ---- */
/*
 * PP_Manager_Icons outputs .ppmgr-icon, and any screen can use it - the
 * manager, the author dashboard, anything added later. The base size lives
 * HERE, in the stylesheet that always loads, not in manager.css. Putting it
 * there once meant the author dashboard rendered the icons full size.
 */
.ppmgr-icon {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

/* ---- Grids ---- */
.pp-book-grid,
.pp-author-grid {
	display: grid;
	gap: 18px;
}
.pp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pp-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 900px) {
	.pp-cols-4, .pp-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.pp-book-grid, .pp-author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---- Book card ---- */
/*
 * The cover sits inside a tinted panel at its NATURAL proportions. Forcing a
 * 2:3 crop cut titles off any cover that was not 2:3 - the Soldier Mom series
 * lost its own titles mid-word. Never put object-fit: cover on these images.
 */
.pp-book-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}
.pp-book-panel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	padding: 16px;
	background: #EDE7DA;
	border: 1px solid var(--pp-line);
	border-radius: 10px;
	overflow: hidden;
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pp-book-card:hover .pp-book-panel {
	transform: translateY(-4px);
	border-color: var(--pp-gold);
	box-shadow: 0 12px 28px rgba(19, 26, 43, 0.12);
}
.pp-book-card:focus-visible .pp-book-panel { outline: 2px solid var(--pp-gold); outline-offset: 2px; }

.pp-book-panel img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 3px;
	box-shadow: 0 6px 18px rgba(19, 26, 43, 0.28);
}

.pp-cover-fallback {
	display: flex;
	align-items: flex-end;
	width: 74%;
	aspect-ratio: 2 / 3;
	padding: 12px;
	background: var(--pp-navy-card);
	border-radius: 3px;
	box-sizing: border-box;
	box-shadow: 0 6px 18px rgba(19, 26, 43, 0.28);
}
.pp-cover-fallback span {
	font-family: var(--pp-serif);
	color: var(--pp-cream);
	font-size: 14px;
	line-height: 1.3;
}

.pp-badge-pill {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--pp-gold);
	color: var(--pp-navy);
	font-family: var(--pp-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
}
.pp-badge-new { background: #2C5A3A; color: #FFFFFF; }

.pp-book-meta { display: block; padding-top: 11px; }
.pp-book-title {
	display: block;
	font-family: var(--pp-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--pp-ink);
	line-height: 1.35;
}
.pp-book-author {
	display: block;
	font-family: var(--pp-sans);
	font-size: 12.5px;
	color: var(--pp-muted);
	margin-top: 3px;
}
.pp-book-genre {
	display: block;
	font-family: var(--pp-sans);
	font-size: 12px;
	color: var(--pp-muted);
}
.pp-book-formats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pp-format-tag {
	font-family: var(--pp-sans);
	font-size: 10.5px;
	color: #8A8778;
	border: 1px solid #E0D6BC;
	border-radius: 4px;
	padding: 2px 8px;
}
.pp-gold { color: var(--pp-gold) !important; }

/* ---- Featured band ---- */
.pp-featured { background: var(--pp-cream-2); padding: 34px 0; }
.pp-featured-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}
.pp-featured-title {
	font-family: var(--pp-serif);
	font-size: 22px;
	font-weight: 500;
	color: var(--pp-ink);
	margin: 0;
}
.pp-featured-count { font-family: var(--pp-sans); font-size: 13px; color: #6B5A2A; }
.pp-spines { display: flex; gap: 16px; flex-wrap: wrap; }
.pp-spine {
	display: block;
	width: 96px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}
.pp-spine:hover { transform: translateY(-5px); }
.pp-spine img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
	box-shadow: 0 8px 20px rgba(19, 26, 43, 0.22);
}
.pp-spine-fallback {
	display: flex;
	align-items: flex-end;
	width: 100%;
	aspect-ratio: 2 / 3;
	padding: 9px;
	background: var(--pp-navy-card);
	color: var(--pp-cream);
	font-family: var(--pp-serif);
	font-size: 11px;
	line-height: 1.25;
	border-radius: 4px;
	box-sizing: border-box;
}

/* ---- Hero stats ---- */
.pp-hero-stats {
	display: flex;
	gap: 34px;
	flex-wrap: wrap;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #232C42;
}
.pp-hero-stat em { display: block; font-family: var(--pp-serif); font-size: 24px; font-style: normal; color: var(--pp-cream); }
.pp-hero-stat span { display: block; font-family: var(--pp-sans); font-size: 12px; color: #8891A6; margin-top: 2px; }
.pp-hero-stat.is-gold em { color: var(--pp-gold); }

/* ---- CTA tile ---- *//* ---- CTA tile ---- */
.pp-cover-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--pp-cream-2);
	border: 1.5px dashed #C9BE9E;
}
.pp-cover-cta span {
	color: var(--pp-gold);
	font-size: 26px;
	line-height: 1;
}
.pp-cover-cta em {
	font-style: normal;
	font-family: var(--pp-sans);
	font-size: 12px;
	color: #6B5A2A;
}

/* ---- Author card ---- */
/*
 * Photo forward. The portrait is the strongest asset on this page, so it
 * fills the top of the card rather than sitting in a 60px circle.
 */
.pp-author-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pp-author-card:hover {
	transform: translateY(-3px);
	border-color: var(--pp-gold);
	box-shadow: 0 10px 26px rgba(19, 26, 43, 0.08);
}
.pp-author-card:focus-visible { outline: 2px solid var(--pp-gold); outline-offset: 2px; }

.pp-author-photo {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--pp-navy);
	overflow: hidden;
}
.pp-author-photo img {
	width: 100%;
	height: 100%;
	/*
	 * Top-weighted so a landscape crop of a portrait headshot keeps the face
	 * rather than cutting it off. A few images may still need re-cropping.
	 */
	object-fit: cover;
	object-position: center 22%;
	display: block;
}
.pp-author-photo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: var(--pp-serif);
	font-size: 42px;
	color: var(--pp-cream);
	background: linear-gradient(160deg, #2A3550, var(--pp-navy));
}
.pp-author-badge {
	position: absolute;
	top: 11px;
	left: 11px;
	background: var(--pp-gold);
	color: var(--pp-navy);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	padding: 4px 11px;
	border-radius: 999px;
}

.pp-author-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 17px 17px;
}
.pp-author-name {
	display: block;
	font-family: var(--pp-serif);
	font-size: 20px;
	color: var(--pp-ink);
	line-height: 1.2;
}
.pp-author-tagline {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pp-muted);
	margin: 6px 0 14px;
	/* Fixed height so cards line up regardless of tagline length. */
	min-height: 39px;
}

.pp-author-foot {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 13px;
	border-top: 1px solid #F0EADB;
}
.pp-author-spines { display: flex; flex-shrink: 0; }
.pp-author-spine img {
	display: block;
	width: 26px;
	height: 39px;
	object-fit: cover;
	border-radius: 3px;
	border: 1.5px solid #FFFFFF;
}
.pp-author-spine + .pp-author-spine { margin-left: -10px; }
.pp-author-count { font-size: 12px; color: var(--pp-muted); }
.pp-author-more {
	margin-left: auto;
	font-size: 12.5px;
	color: var(--pp-gold);
	white-space: nowrap;
}
.pp-author-more::after { content: " \2192"; }

/* Compact variant, used by the homepage widget where covers are off. */
.pp-author-card.is-compact .pp-author-photo { aspect-ratio: 1 / 1; }

/* ---- Authors directory ---- */
.pp-directory-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 26px 0 20px;
}
.pp-directory-search { flex: 1; min-width: 200px; }
.pp-directory-search input {
	width: 100%;
	border: 1px solid var(--pp-line);
	border-radius: 999px;
	padding: 11px 18px;
	font-family: var(--pp-sans);
	font-size: 14px;
	background: #FFFFFF;
	color: var(--pp-ink);
	box-sizing: border-box;
}
.pp-directory-search input:focus { outline: 2px solid var(--pp-gold); outline-offset: 1px; }
.pp-directory-go {
	border: 1px solid var(--pp-line);
	background: #FFFFFF;
	border-radius: 999px;
	padding: 11px 20px;
	font-family: var(--pp-sans);
	font-size: 14px;
	color: var(--pp-ink);
	cursor: pointer;
}
.pp-directory-go:hover { background: var(--pp-cream); }
.pp-directory-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.pp-directory-filters .pp-pill { text-decoration: none; display: flex; align-items: center; gap: 7px; }
.pp-directory-filters .pp-pill span { font-size: 11px; opacity: 0.75; }
.pp-directory-count { font-size: 12.5px; color: #8A8778; margin: 16px 0 0; }

.pp-directory-cta {
	background: var(--pp-cream-2);
	padding: 60px 0;
	margin-top: 50px;
	text-align: center;
}
.pp-section-title-center { text-align: center; }
.pp-directory-cta-text {
	font-family: var(--pp-sans);
	font-size: 15px;
	color: var(--pp-muted);
	max-width: 420px;
	margin: 0 auto 22px;
}
.pp-btn.pp-btn-navy { background: var(--pp-navy); color: var(--pp-cream); }
.pp-btn-navy:hover { background: #1F2A44; }

.pp-hero-sub-wide { max-width: 560px; }

.pp-pagination ul {
	list-style: none;
	display: flex;
	gap: 8px;
	margin: 26px 0 0;
	padding: 0;
	flex-wrap: wrap;
}
.pp-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 13px;
	border: 1px solid #D9D1BC;
	border-radius: 8px;
	font-family: var(--pp-sans);
	font-size: 13px;
	color: var(--pp-muted);
	text-decoration: none;
}
.pp-pagination .page-numbers.current {
	background: var(--pp-navy);
	border-color: var(--pp-navy);
	color: var(--pp-cream);
}
.pp-pagination .page-numbers:hover { border-color: var(--pp-gold); }

@media (max-width: 620px) {
	.pp-directory-filters { margin-left: 0; }
	.pp-author-name { font-size: 18px; }
}

/* ---- Stats strip ---- */
.pp-stats {
	display: flex;
	justify-content: center;
	gap: 44px;
	flex-wrap: wrap;
}
.pp-stat {
	text-align: center;
}
.pp-stat-number {
	display: block;
	font-family: var(--pp-serif);
	font-size: 26px;
	color: var(--pp-ink);
}
.pp-stat-label {
	display: block;
	font-family: var(--pp-sans);
	font-size: 12px;
	color: var(--pp-muted);
	margin-top: 2px;
}
.pp-stats-dark .pp-stat-number { color: #F5EFDF; }
.pp-stats-dark .pp-stat-label { color: #8891A6; }

/* ---- Layout ---- */
.pp-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}
.pp-two-col {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 32px;
	padding-top: 40px;
	padding-bottom: 40px;
}
@media (max-width: 860px) {
	.pp-two-col { grid-template-columns: 1fr; }
}
.pp-band {
	background: var(--pp-cream-2);
	padding: 40px 0;
	margin-top: 24px;
}
.pp-section-title {
	font-family: var(--pp-serif);
	font-size: 24px;
	font-weight: 500;
	color: var(--pp-ink);
	margin: 0 0 14px;
}
.pp-prose {
	font-size: 16px;
	line-height: 1.75;
	color: var(--pp-muted);
}
.pp-eyebrow {
	font-family: var(--pp-sans);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--pp-gold);
	margin: 0 0 8px;
}
.pp-eyebrow-dark { color: var(--pp-gold); }

/* ---- Heroes ---- */
.pp-book-hero,
.pp-author-hero,
.pp-archive-hero {
	background: var(--pp-navy);
	color: var(--pp-cream);
	padding: 48px 0;
}
.pp-book-hero-inner,
.pp-author-hero-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	gap: 34px;
	align-items: center;
}
.pp-book-hero-inner { align-items: flex-start; }
.pp-book-hero-cover { width: 190px; flex-shrink: 0; }
.pp-book-hero-body { flex: 1; }
.pp-hero-title {
	font-family: var(--pp-serif);
	font-size: 36px;
	font-weight: 500;
	color: var(--pp-cream);
	line-height: 1.2;
	margin: 0;
}
.pp-archive-hero .pp-hero-title { max-width: 620px; }
.pp-hero-sub {
	font-family: var(--pp-sans);
	font-size: 15px;
	color: #9AA3B8;
	margin: 8px 0 0;
}
.pp-hero-byline {
	font-family: var(--pp-sans);
	font-size: 14px;
	color: #C7CDDB;
	margin: 10px 0 0;
}
.pp-hero-byline a { color: var(--pp-gold); text-decoration: none; }
.pp-hero-byline a:hover { text-decoration: underline; }

.pp-author-portrait {
	width: 160px;
	flex-shrink: 0;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	border: 2px solid var(--pp-gold);
	aspect-ratio: 4 / 5;
	background: #2A3550;
}
.pp-author-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}
.pp-author-portrait-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: var(--pp-serif);
	font-size: 46px;
	color: var(--pp-cream);
}
.pp-author-hero-body { flex: 1; min-width: 260px; }
.pp-author-hero-body .pp-hero-sub { margin-bottom: 0; }

@media (max-width: 760px) {
	.pp-book-hero-inner,
	.pp-author-hero-inner { flex-direction: column; align-items: flex-start; }
	.pp-hero-title { font-size: 28px; }
	.pp-author-portrait { width: 128px; }
}

/* ---- Author profile layout ---- */
.pp-author-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 34px;
	padding-top: 34px;
	padding-bottom: 50px;
	align-items: start;
}
.pp-author-side { position: sticky; top: 24px; }
@media (max-width: 900px) {
	.pp-author-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.pp-author-side { position: static; }
}

.pp-prose-measure { max-width: 620px; }

.pp-glance-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--pp-sans);
	font-size: 13px;
	color: var(--pp-muted);
	padding: 7px 0;
	border-bottom: 1px solid #F0EADB;
}
.pp-glance-row:last-child { border-bottom: 0; }
.pp-glance-row strong { color: var(--pp-ink); font-weight: 600; text-align: right; }

/* ---- Featured book ---- */
.pp-featured-book {
	display: flex;
	gap: 20px;
	background: #FFFFFF;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 34px;
	flex-wrap: wrap;
}
.pp-featured-book-cover { width: 104px; flex-shrink: 0; display: block; }
.pp-featured-book-cover img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 5px;
	box-shadow: 0 8px 20px rgba(19, 26, 43, 0.22);
}
.pp-featured-book-body { flex: 1; min-width: 200px; }
.pp-featured-book-title {
	font-family: var(--pp-serif);
	font-size: 22px;
	font-weight: 500;
	margin: 0;
	line-height: 1.25;
}
.pp-featured-book-title a { color: var(--pp-ink); text-decoration: none; }
.pp-featured-book-title a:hover { color: var(--pp-gold); }
.pp-featured-book-series {
	font-family: var(--pp-sans);
	font-size: 13px;
	color: var(--pp-muted);
	margin: 5px 0 0;
}
.pp-buy-row-tight { margin-top: 14px; }
.pp-btn.pp-btn-outline { border: 1px solid var(--pp-line); color: var(--pp-ink); }
.pp-btn-outline:hover { background: var(--pp-cream); }

/* ---- Series blocks ---- */
.pp-series-block { margin-top: 34px; }
.pp-series-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
}
.pp-section-title-flush { margin-bottom: 0; }
.pp-series-count { font-family: var(--pp-sans); font-size: 13px; color: #8A8778; }
.pp-series-rule {
	display: block;
	width: 44px;
	height: 2px;
	background: var(--pp-gold);
	margin: 10px 0 18px;
}
.pp-series-more { margin-top: 16px; }
.pp-series-toggle {
	border: 0;
	background: transparent;
	padding: 12px 0 0;
	font-family: var(--pp-sans);
	font-size: 13.5px;
	color: var(--pp-gold);
	cursor: pointer;
}
.pp-series-toggle:hover { text-decoration: underline; }
.pp-series-toggle:focus-visible { outline: 2px solid var(--pp-gold); outline-offset: 2px; }

.pp-book-number {
	display: block;
	font-family: var(--pp-sans);
	font-size: 11.5px;
	color: #8A8778;
	margin-top: 2px;
}

/* ---- Buttons ---- *//* ---- Buttons ---- */
.pp-buy-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 18px;
}
.pp-btn {
	display: inline-block;
	font-family: var(--pp-sans);
	font-size: 14px;
	font-weight: 500;
	padding: 11px 20px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.pp-btn:hover { transform: translateY(-1px); }
.pp-btn:focus-visible { outline: 2px solid var(--pp-gold); outline-offset: 2px; }
.pp-btn.pp-btn-gold { background: var(--pp-gold); color: var(--pp-navy); }
.pp-btn.pp-btn-ghost { border: 1px solid #3A4358; color: #D8DCE6; }

/* ---- Library: rail plus results ---- */
.pp-library {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 30px;
	padding: 32px 0 56px;
	align-items: start;
}

.pp-library-rail { position: sticky; top: 24px; }
.pp-rail-heading {
	font-family: var(--pp-sans);
	font-size: 10.5px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--pp-gold);
	margin: 0 0 10px;
}
.pp-rail-heading-rule {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--pp-line);
}
.pp-rail-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	border: 0;
	background: transparent;
	padding: 7px 9px;
	border-radius: 7px;
	font-family: var(--pp-sans);
	font-size: 13.5px;
	color: var(--pp-muted);
	text-align: left;
	cursor: pointer;
}
.pp-rail-item em { font-style: normal; font-size: 11.5px; color: #A39C88; }
.pp-rail-item:hover { background: var(--pp-cream-2); color: var(--pp-ink); }
.pp-rail-item:focus-visible { outline: 2px solid var(--pp-gold); outline-offset: 1px; }
.pp-rail-item.is-active {
	background: var(--pp-navy);
	color: var(--pp-cream);
	font-weight: 500;
}
.pp-rail-item.is-active em { color: #8891A6; }

.pp-rail-toggle {
	border: 0;
	background: transparent;
	padding: 7px 9px;
	font-family: var(--pp-sans);
	font-size: 13px;
	color: var(--pp-gold);
	cursor: pointer;
	text-align: left;
}
.pp-rail-toggle:hover { text-decoration: underline; }

.pp-library-search {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.pp-search-input {
	flex: 1;
	min-width: 200px;
	border: 1px solid var(--pp-line);
	border-radius: 999px;
	padding: 11px 18px;
	font-family: var(--pp-sans);
	font-size: 14px;
	background: #FFFFFF;
	color: var(--pp-ink);
	box-sizing: border-box;
}
.pp-sort {
	border: 1px solid var(--pp-line);
	border-radius: 999px;
	padding: 11px 16px;
	font-family: var(--pp-sans);
	font-size: 14px;
	background: #FFFFFF;
	color: var(--pp-ink);
}
.pp-search-input:focus,
.pp-sort:focus { outline: 2px solid var(--pp-gold); outline-offset: 1px; }

[data-pp-results].is-busy { opacity: 0.45; transition: opacity 0.15s ease; }
.pp-library-status {
	margin-top: 14px;
	font-family: var(--pp-sans);
	font-size: 14px;
	color: #8A3A3A;
}
.pp-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 44px 20px;
	font-family: var(--pp-sans);
	color: var(--pp-muted);
}

@media (max-width: 900px) {
	.pp-library { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.pp-library-rail {
		position: static;
		display: flex;
		flex-wrap: wrap;
		gap: 7px;
	}
	/* On a phone the rail collapses back to chips, where a short row works. */
	.pp-rail-heading { width: 100%; margin: 6px 0 2px; }
	.pp-rail-item {
		width: auto;
		border: 1px solid #D9D1BC;
		border-radius: 999px;
		padding: 6px 14px;
		font-size: 12.5px;
	}
	.pp-rail-item.is-active { border-color: var(--pp-navy); }
	.pp-rail-more { display: contents; }
}

/* ---- Side cards ---- *//* ---- Side cards ---- */
.pp-side-card {
	background: #FFFFFF;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 14px;
}
.pp-side-card-dark {
	background: var(--pp-navy);
	border-color: var(--pp-navy);
	text-align: center;
}
.pp-side-cta-title {
	font-family: var(--pp-serif);
	font-size: 17px;
	color: var(--pp-cream);
	margin: 0 0 6px;
}
.pp-side-cta-body {
	font-family: var(--pp-sans);
	font-size: 13px;
	color: #9AA3B8;
	margin: 0 0 14px;
}
.pp-side-author {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	margin-bottom: 8px;
}
.pp-avatar-sm { width: 46px; height: 46px; margin-bottom: 0; }
.pp-side-author .pp-author-name,
.pp-side-author .pp-author-tagline { display: block; text-align: left; margin: 0; }

.pp-media-list { list-style: none; margin: 0; padding: 0; }
.pp-media-list li {
	font-family: var(--pp-sans);
	font-size: 13.5px;
	color: var(--pp-ink);
	padding: 8px 0;
	border-bottom: 1px solid #EFE8D6;
}
.pp-media-list li:last-child { border-bottom: 0; }

.pp-tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pp-tag {
	font-family: var(--pp-sans);
	font-size: 12px;
	background: var(--pp-cream-2);
	color: #6B5A2A;
	padding: 5px 12px;
	border-radius: 999px;
}
.pp-badge-static { position: static; }

/* ---- Progress tracker ---- */
.pp-progress { margin: 12px 0; }
.pp-progress-bars { display: flex; gap: 5px; margin-bottom: 8px; }
.pp-progress-bar {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: var(--pp-line);
}
.pp-progress-bar.is-done { background: var(--pp-gold); }
.pp-progress-labels {
	display: flex;
	justify-content: space-between;
	font-family: var(--pp-sans);
	font-size: 11px;
	color: var(--pp-muted);
}
.pp-progress-label.is-current { color: var(--pp-gold); font-weight: 600; }

.pp-pagination { padding: 20px 0 48px; font-family: var(--pp-sans); }

@media (prefers-reduced-motion: reduce) {
	.pp-btn, .pp-book-cover, .pp-author-card, [data-pp-results] { transition: none; }
	.pp-btn:hover, .pp-book-card:hover .pp-book-cover, .pp-author-card:hover { transform: none; }
}

/* ---- Packages ---- */
.pp-packages { padding: 8px 0 24px; }

.pp-pkg-intro { text-align: center; margin-bottom: 34px; }
.pp-pkg-intro-line {
	font-family: var(--pp-serif);
	font-size: 26px;
	line-height: 1.3;
	color: var(--pp-ink);
	max-width: 620px;
	margin: 0 auto;
}
.pp-pkg-trust {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin: 16px 0 0;
	padding: 0;
	font-family: var(--pp-sans);
	font-size: 13.5px;
	color: var(--pp-muted);
}
.pp-pkg-trust li::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 10px;
	margin-right: 8px;
	border: solid #2C7A5A;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	vertical-align: 1px;
}

.pp-pkg-grid {
	display: grid;
	gap: 16px;
	align-items: start;
}
.pp-pkg-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-pkg-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-pkg-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1080px) {
	.pp-pkg-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.pp-pkg-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.pp-pkg-grid { grid-template-columns: minmax(0, 1fr) !important; }
	.pp-pkg-intro-line { font-size: 21px; }
}

.pp-pkg-card {
	position: relative;
	background: #FFFFFF;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	padding: 24px 20px 22px;
	font-family: var(--pp-sans);
}
.pp-pkg-card.has-badge {
	border: 2px solid var(--pp-gold);
	padding: 24px 19px 21px;
}
.pp-pkg-card.is-dark {
	background: var(--pp-navy);
	border-color: var(--pp-gold);
}

.pp-pkg-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	background: var(--pp-gold);
	color: var(--pp-navy);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 5px 15px;
	border-radius: 999px;
}
.pp-pkg-card.is-dark .pp-pkg-badge {
	background: var(--pp-navy);
	color: var(--pp-gold);
	border: 1px solid var(--pp-gold);
}

.pp-pkg-name {
	font-family: var(--pp-serif);
	font-size: 28px;
	font-weight: 500;
	color: var(--pp-ink);
	margin: 0;
	line-height: 1.15;
}
.pp-pkg-card.is-dark .pp-pkg-name { color: var(--pp-cream); }

.pp-pkg-summary {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--pp-muted);
	margin: 10px 0 18px;
	min-height: 66px;
}
.pp-pkg-card.is-dark .pp-pkg-summary { color: #9AA3B8; }

.pp-pkg-tagline {
	display: block;
	font-size: 12px;
	color: #8A8778;
	margin-bottom: 3px;
}
.pp-pkg-card.is-dark .pp-pkg-tagline { color: #8891A6; }

.pp-pkg-price {
	display: flex;
	align-items: flex-start;
	gap: 2px;
}
.pp-pkg-currency {
	font-family: var(--pp-serif);
	font-size: 19px;
	color: var(--pp-ink);
	margin-top: 7px;
}
.pp-pkg-amount {
	font-family: var(--pp-serif);
	font-size: 40px;
	line-height: 1;
	color: var(--pp-ink);
}
.pp-pkg-card.is-dark .pp-pkg-currency,
.pp-pkg-card.is-dark .pp-pkg-amount { color: var(--pp-cream); }

.pp-pkg-price-note {
	font-family: var(--pp-serif);
	font-size: 20px;
	color: var(--pp-ink);
	line-height: 1.3;
}
.pp-pkg-card.is-dark .pp-pkg-price-note { color: var(--pp-cream); }

.pp-pkg-highlight {
	background: var(--pp-cream);
	border-radius: 8px;
	padding: 12px 14px;
	margin: 18px 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--pp-muted);
}
.pp-pkg-card.is-dark .pp-pkg-highlight {
	background: #1C2438;
	color: #C7CDDB;
}
.pp-pkg-em { color: var(--pp-ink); font-weight: 600; }
.pp-pkg-card.is-dark .pp-pkg-em { color: var(--pp-cream); }

.pp-pkg-cta {
	display: block;
	text-align: center;
	border: 1px solid #D9D1BC;
	border-radius: 10px;
	padding: 12px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--pp-ink);
	text-decoration: none;
	margin-bottom: 18px;
	transition: background 0.15s ease, transform 0.15s ease;
}
.pp-pkg-cta:hover { background: var(--pp-cream); transform: translateY(-1px); }
.pp-pkg-cta:focus-visible { outline: 2px solid var(--pp-gold); outline-offset: 2px; }
.pp-pkg-cta.is-primary {
	background: var(--pp-gold);
	border-color: var(--pp-gold);
	color: var(--pp-navy);
}
.pp-pkg-cta.is-primary:hover { background: #C79733; }

.pp-pkg-list-heading {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--pp-ink);
	margin-bottom: 10px;
}
.pp-pkg-card.is-dark .pp-pkg-list-heading { color: var(--pp-cream); }

.pp-pkg-features {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.7;
	color: var(--pp-muted);
}
.pp-pkg-card.is-dark .pp-pkg-features { color: #C7CDDB; }
.pp-pkg-features li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 7px;
}
.pp-pkg-features li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 6px;
	width: 5px;
	height: 9px;
	border: solid var(--pp-gold);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.pp-pkg-footnote {
	font-size: 11.5px;
	line-height: 1.5;
	color: #8A8778;
	margin: 12px 0 0;
}
.pp-pkg-card.is-dark .pp-pkg-footnote { color: #6B7488; }

@media (prefers-reduced-motion: reduce) {
	.pp-pkg-cta { transition: none; }
	.pp-pkg-cta:hover { transform: none; }
}

/* ---- Testimonials ---- */
.pp-quotes {
	display: grid;
	gap: 16px;
	font-family: var(--pp-sans);
}
.pp-quote-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-quote-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-quote-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
	.pp-quote-cols-3, .pp-quote-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.pp-quotes { grid-template-columns: minmax(0, 1fr) !important; }
}

.pp-quote {
	background: #FFFFFF;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	padding: 22px 20px 20px;
	margin: 0;
	display: flex;
	flex-direction: column;
}
.pp-quotes.is-dark .pp-quote {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.22);
}
.pp-quote-mark {
	font-family: var(--pp-serif);
	font-size: 40px;
	line-height: 0.7;
	color: var(--pp-gold);
	margin-bottom: 10px;
}
.pp-quote-body {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--pp-muted);
	flex: 1;
	border: 0;
	padding: 0;
	quotes: none;
}
.pp-quotes.is-dark .pp-quote-body { color: #F0EAE0; }
.pp-quote-cite { font-style: normal; }
.pp-quote-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--pp-ink);
}
.pp-quote-role {
	display: block;
	font-size: 12.5px;
	color: #8A8778;
	margin-top: 2px;
}
.pp-quotes.is-dark .pp-quote-name { color: #FFFFFF; }
.pp-quotes.is-dark .pp-quote-role { color: rgba(255, 255, 255, 0.75); }

/* ---- Retailer strip ---- */
.pp-retailers {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 38px;
	flex-wrap: wrap;
	font-family: var(--pp-sans);
}
.pp-retailer {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.3px;
	color: var(--pp-muted);
	opacity: 0.85;
}
.pp-retailer img {
	display: block;
	max-height: 34px;
	width: auto;
}
@media (max-width: 620px) {
	.pp-retailers { gap: 22px; }
	.pp-retailer { font-size: 13.5px; }
}

/* ---- Author grid at 4 across ---- */
/*
 * The author card carries a portrait, a two-line tagline and a cover strip,
 * so it needs more room than a book cover does. It steps down earlier than
 * the shared .pp-cols-* breakpoints allow, and drops to a single column on
 * phones rather than the two the generic rule would force.
 */
.pp-author-grid.pp-cols-4 .pp-author-name { font-size: 18px; }
.pp-author-grid.pp-cols-4 .pp-author-tagline { font-size: 12.5px; }

@media (max-width: 1140px) {
	.pp-author-grid.pp-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.pp-author-grid.pp-cols-4,
	.pp-author-grid.pp-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.pp-author-grid { grid-template-columns: minmax(0, 1fr) !important; }
	.pp-author-grid.pp-cols-4 .pp-author-name { font-size: 20px; }
}

/* ---- Book page ---- */
.pp-book-hero-cover { width: 178px; flex-shrink: 0; }
.pp-book-hero-cover img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
	/* Never cropped. Covers are not all 2:3. */
	object-fit: contain;
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.pp-book-byline { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pp-byline-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	display: block;
}
.pp-byline-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-byline-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2A3550;
	color: var(--pp-cream);
	font-family: var(--pp-serif);
	font-size: 13px;
}
.pp-byline-text { font-family: var(--pp-sans); font-size: 14px; color: #C7CDDB; }
.pp-byline-text a { color: var(--pp-gold); text-decoration: none; }
.pp-byline-text a:hover { text-decoration: underline; }

.pp-hero-facts {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid #232C42;
}
.pp-hero-fact strong {
	display: block;
	font-family: var(--pp-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--pp-cream);
}
.pp-hero-fact span {
	display: block;
	font-family: var(--pp-sans);
	font-size: 11.5px;
	color: #8891A6;
	margin-top: 2px;
}

.pp-book-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	gap: 34px;
	padding-top: 34px;
	padding-bottom: 44px;
	align-items: start;
}
.pp-book-side { position: sticky; top: 24px; }
@media (max-width: 900px) {
	.pp-book-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.pp-book-side { position: static; }
}

.pp-details-card {
	background: #FFFFFF;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	padding: 18px 20px;
	margin-top: 28px;
	max-width: 620px;
}
.pp-details-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 26px;
}
@media (max-width: 620px) {
	.pp-details-grid { grid-template-columns: minmax(0, 1fr); }
}
.pp-details-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--pp-sans);
	font-size: 13px;
	color: var(--pp-muted);
	padding: 8px 0;
	border-bottom: 1px solid #F0EADB;
}
.pp-details-row strong { color: var(--pp-ink); font-weight: 600; text-align: right; }

.pp-side-author-row { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.pp-side-author-name { display: block; font-family: var(--pp-sans); font-size: 14px; font-weight: 600; color: var(--pp-ink); }
.pp-side-author-meta { display: block; font-family: var(--pp-sans); font-size: 12px; color: var(--pp-muted); }
.pp-side-author-bio {
	font-family: var(--pp-sans);
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--pp-muted);
	margin: 0 0 14px;
}
.pp-btn-block { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.pp-side-card-soft { background: var(--pp-cream-2); border-color: #E0D6BC; }
.pp-side-cta-title-dark { font-family: var(--pp-serif); font-size: 17px; color: var(--pp-ink); margin: 0 0 6px; }
.pp-side-cta-body-dark { font-family: var(--pp-sans); font-size: 12.5px; color: #6B5A2A; margin: 0 0 14px; line-height: 1.6; }

/* ---- Series shelf ---- */
.pp-shelf { background: var(--pp-cream-2); padding: 36px 0; }
.pp-alsoby { background: var(--pp-cream); padding: 36px 0 52px; }
.pp-shelf-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
}
.pp-shelf-title {
	font-family: var(--pp-serif);
	font-size: 22px;
	font-weight: 500;
	color: var(--pp-ink);
	margin: 0;
}
.pp-shelf-count { font-family: var(--pp-sans); font-size: 13px; color: #6B5A2A; }

.pp-shelf-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.pp-shelf-item {
	display: block;
	width: 104px;
	text-decoration: none;
	transition: transform 0.2s ease;
}
.pp-shelf-item:hover { transform: translateY(-4px); }
.pp-shelf-cover { display: block; }
.pp-shelf-cover img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 5px;
	box-shadow: 0 8px 20px rgba(19, 26, 43, 0.22);
}
.pp-shelf-item.is-current .pp-shelf-cover img,
.pp-shelf-item.is-current .pp-spine-fallback {
	outline: 2px solid var(--pp-gold);
	outline-offset: 2px;
}
.pp-shelf-name {
	display: block;
	font-family: var(--pp-sans);
	font-size: 12px;
	color: var(--pp-muted);
	margin-top: 9px;
	line-height: 1.35;
}
.pp-shelf-item.is-current .pp-shelf-name { color: var(--pp-ink); font-weight: 600; }
.pp-shelf-num {
	display: block;
	font-family: var(--pp-sans);
	font-size: 11px;
	color: #8A8778;
	margin-top: 2px;
}
.pp-shelf-item.is-current .pp-shelf-num { color: var(--pp-gold); font-weight: 500; }

@media (max-width: 620px) {
	.pp-shelf-item { width: 84px; }
	.pp-book-hero-cover { width: 140px; }
}

/* ---- Split hero ---- */
.pp-hero-split {
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}
.pp-hero-split-body { flex: 1; min-width: 280px; }
.pp-hero-text {
	font-family: var(--pp-sans);
	font-size: 16.5px;
	line-height: 1.75;
	color: #9AA3B8;
	max-width: 520px;
	margin: 16px 0 24px;
}
.pp-hero-covers {
	display: flex;
	align-items: flex-end;
	gap: 14px;
	flex-shrink: 0;
	width: 330px;
	max-width: 100%;
}
.pp-hero-cover { flex: 1; display: block; transition: transform 0.25s ease; }
.pp-hero-cover img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 5px;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.48);
}
/* The middle cover stands proud, so three covers read as a shelf. */
.pp-hero-cover-2 { margin-bottom: 22px; }
.pp-hero-cover:hover { transform: translateY(-6px); }

@media (max-width: 820px) {
	.pp-hero-covers { width: 100%; }
	.pp-hero-cover-2 { margin-bottom: 0; }
}

/* ---- Value cards ---- */
.pp-value-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
@media (max-width: 700px) {
	.pp-value-cards { grid-template-columns: minmax(0, 1fr); }
}
.pp-value-card {
	background: #FFFFFF;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	padding: 20px;
}
.pp-value-num {
	display: block;
	font-family: var(--pp-serif);
	font-size: 18px;
	color: var(--pp-gold);
	margin-bottom: 8px;
}
.pp-value-text {
	display: block;
	font-family: var(--pp-sans);
	font-size: 15px;
	line-height: 1.65;
	color: var(--pp-muted);
}
.pp-value-card.is-feature {
	grid-column: 1 / -1;
	background: var(--pp-navy);
	border-color: var(--pp-navy);
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.pp-value-card.is-feature .pp-value-num { margin-bottom: 0; }
.pp-value-card.is-feature .pp-value-text { flex: 1; min-width: 220px; color: #C7CDDB; }

/* ---- Proof band ---- */
.pp-proof { display: flex; align-items: stretch; flex-wrap: wrap; }
.pp-proof-body {
	flex: 1;
	min-width: 280px;
	padding: 46px 0 46px 0;
	align-self: center;
}
.pp-proof.is-textonly .pp-proof-body { text-align: center; margin: 0 auto; max-width: 600px; }
.pp-proof-title {
	font-family: var(--pp-serif);
	font-size: 30px;
	font-weight: 500;
	color: var(--pp-cream);
	line-height: 1.25;
	margin: 0;
}
.pp-proof-text {
	font-family: var(--pp-sans);
	font-size: 15px;
	line-height: 1.75;
	color: #9AA3B8;
	margin: 14px 0 0;
	max-width: 460px;
}
.pp-proof.is-textonly .pp-proof-text { margin-left: auto; margin-right: auto; }
.pp-proof-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 3px;
	width: 46%;
	min-width: 280px;
}
.pp-proof-photo {
	display: block;
	min-height: 150px;
	background-size: cover;
	background-position: center;
	background-color: #2A3550;
}
@media (max-width: 860px) {
	.pp-proof-grid { width: 100%; }
	.pp-proof-body { padding: 34px 0; }
}

/* ---- Testimonial avatars ---- */
.pp-quote-cite { display: flex; align-items: center; gap: 11px; }
.pp-quote-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	display: block;
}
.pp-quote-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-quote-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pp-navy);
	color: var(--pp-cream);
	font-family: var(--pp-serif);
	font-size: 14px;
}
.pp-quotes.is-dark .pp-quote-initials { background: rgba(255, 255, 255, 0.16); }
.pp-quote-who { display: block; }

/*
 * BUTTON COLOUR RULES USE DOUBLED CLASSES (0,2,0) ON PURPOSE.
 *
 * A single class is 0,1,0 and loses to any theme rule shaped like
 * ".elementor a" at 0,1,1 - which painted gold text onto gold buttons and
 * made them look empty. check-buttons.py fails the build if one of these
 * drops back to a single class. Do not simplify them.
 */
.pp-pkg-cta.pp-pkg-cta { color: var(--pp-ink); }
.pp-pkg-cta.is-primary { color: var(--pp-navy); }

/* ---- Team ---- */
.pp-team-grid {
	display: grid;
	gap: 18px;
	align-items: stretch;
}
.pp-team-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-team-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-team-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1000px) {
	.pp-team-cols-3, .pp-team-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.pp-team-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

.pp-team-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.pp-team-card:hover {
	transform: translateY(-3px);
	border-color: var(--pp-gold);
	box-shadow: 0 10px 26px rgba(19, 26, 43, 0.08);
}
a.pp-team-card:focus-visible { outline: 2px solid var(--pp-gold); outline-offset: 2px; }

/*
 * A fixed square crop. Their source photos are a mix of landscape portraits,
 * a snapshot in front of a mural and a car selfie - one consistent shape
 * makes mismatched sources look deliberate.
 */
.pp-team-photo {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--pp-navy);
	overflow: hidden;
}
.pp-team-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
	display: block;
}
.pp-team-photo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: var(--pp-serif);
	font-size: 40px;
	color: var(--pp-cream);
	background: linear-gradient(160deg, #2A3550, var(--pp-navy));
}

.pp-team-body {
	display: block;
	padding: 16px 17px 18px;
}
.pp-team-name {
	display: block;
	font-family: var(--pp-serif);
	font-size: 19px;
	color: var(--pp-ink);
	line-height: 1.2;
}
.pp-team-role {
	display: block;
	font-family: var(--pp-sans);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--pp-gold);
	margin-top: 5px;
	/* Roles run long. Two lines keeps every card the same height. */
	min-height: 38px;
}
.pp-team-bio {
	display: block;
	font-family: var(--pp-sans);
	font-size: 13px;
	line-height: 1.65;
	color: var(--pp-muted);
	margin-top: 10px;
}

/* =====================================================================
 * FAQ, testimonials and contact.
 *
 * The hidden guard at the top of this file covers only the selectors that
 * existed then. Everything below that sets a display on a hideable element
 * needs its own guard, so it is repeated here rather than assumed.
 * ===================================================================== */

.pp-faq [hidden],
.pp-faq-main [hidden],
.pp-tst-wall [hidden],
[hidden].pp-faq-group,
[hidden].pp-faq-a,
[hidden].pp-faq-none,
[hidden].pp-tst-frame,
[hidden].pp-tst-poster,
[hidden].pp-faq-item {
	display: none !important;
}

/* ---- FAQ ---- */
.pp-faq {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 44px;
	align-items: start;
}
.pp-faq-rail {
	position: sticky;
	top: 90px;
}
.pp-faq-search {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 0 14px;
	border: 1px solid var(--pp-line);
	border-radius: 999px;
	background: #fff;
	margin-bottom: 26px;
}
.pp-faq-search .ppmgr-icon { color: var(--pp-muted); }
.pp-faq-search input {
	flex: 1;
	border: 0;
	background: none;
	padding: 12px 0;
	font-family: var(--pp-sans);
	font-size: 14px;
	color: var(--pp-ink);
	outline: none;
}
.pp-faq-rail-title {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--pp-gold);
	margin-bottom: 12px;
}
.pp-faq-cats { display: flex; flex-direction: column; gap: 2px; }
.pp-faq-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 11px 16px;
	border: 0;
	border-radius: 8px;
	background: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--pp-sans);
	font-size: 14.5px;
	color: var(--pp-muted);
	transition: background .15s ease, color .15s ease;
}
.pp-faq-cat:hover { background: var(--pp-cream-2); color: var(--pp-ink); }
.pp-faq-cat.is-active {
	background: var(--pp-navy);
	color: #F5EFDF;
	font-weight: 600;
}
.pp-faq-cat-count { font-size: 13px; opacity: .75; }

.pp-faq-group-title {
	font-family: var(--pp-serif);
	font-size: 27px;
	font-weight: 500;
	color: var(--pp-ink);
	margin: 0 0 6px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--pp-gold);
	display: inline-block;
}
.pp-faq-item {
	border: 1px solid var(--pp-line);
	border-radius: 10px;
	background: #fff;
	margin-top: 12px;
	overflow: hidden;
}
.pp-faq-item.is-open { border-color: var(--pp-gold); }
.pp-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: 20px 24px;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--pp-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--pp-ink);
}
.pp-faq-sign {
	position: relative;
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	color: var(--pp-gold);
}
.pp-faq-sign::before,
.pp-faq-sign::after {
	content: "";
	position: absolute;
	background: currentColor;
	transition: opacity .15s ease;
}
.pp-faq-sign::before { top: 7px; left: 0; width: 15px; height: 1.5px; }
.pp-faq-sign::after { left: 7px; top: 0; width: 1.5px; height: 15px; }
.pp-faq-item.is-open .pp-faq-sign::after { opacity: 0; }

.pp-faq-a {
	padding: 0 24px 22px;
	font-size: 15px;
	line-height: 1.75;
	color: var(--pp-muted);
}
.pp-faq-a p { margin: 0 0 12px; }
.pp-faq-a p:last-child { margin-bottom: 0; }
.pp-faq-a a { color: var(--pp-gold); }

.pp-faq-none {
	padding: 30px 4px;
	font-size: 15px;
	color: var(--pp-muted);
}
.pp-faq-ask {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 30px;
	padding: 26px 30px;
	border-radius: 12px;
	background: var(--pp-navy);
}
.pp-faq-ask-title {
	display: block;
	font-family: var(--pp-serif);
	font-size: 21px;
	color: #F5EFDF;
}
.pp-faq-ask-sub {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	color: #9AA3B8;
}

@media (max-width: 860px) {
	.pp-faq { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.pp-faq-rail { position: static; }
	.pp-faq-cats { flex-direction: row; flex-wrap: wrap; }
	.pp-faq-cat { width: auto; }
}

/* ---- Testimonials ---- */
.pp-tst-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 46px;
	padding: 24px 30px;
	border-radius: 12px 12px 0 0;
	background: var(--pp-navy);
}
.pp-tst-stat-n {
	display: block;
	font-family: var(--pp-serif);
	font-size: 27px;
	color: #F5EFDF;
	line-height: 1.1;
}
.pp-tst-stat-n.is-gold { color: var(--pp-gold); }
.pp-tst-stat-l {
	display: block;
	margin-top: 3px;
	font-size: 11.5px;
	color: #9AA3B8;
}

.pp-tst-feature {
	position: relative;
	margin: 0;
	padding: 30px 34px;
	background: #fff;
	border-left: 3px solid var(--pp-gold);
	border-radius: 0 10px 10px 0;
}
.pp-tst-mark {
	display: block;
	font-family: var(--pp-serif);
	font-size: 40px;
	line-height: 1;
	color: var(--pp-gold);
	margin-bottom: 6px;
}
.pp-tst-feature-quote {
	margin: 0 0 20px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--pp-ink);
}

.pp-tst-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}
.pp-tst {
	border-radius: 10px;
	overflow: hidden;
}
.pp-tst-written {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 26px;
	border: 1px solid var(--pp-line);
	background: #fff;
}
.pp-tst-quote {
	margin: 0;
	flex: 1;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--pp-muted);
}
.pp-tst-by {
	display: flex;
	align-items: center;
	gap: 11px;
	padding-top: 14px;
	border-top: 1px solid var(--pp-line);
}
.pp-tst-feature .pp-tst-by { border-top: 0; padding-top: 0; }
.pp-tst-avatar {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	object-fit: cover;
	flex-shrink: 0;
}
.pp-tst-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pp-navy);
	color: #F5EFDF;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .5px;
}
.pp-tst-name {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pp-ink);
}
.pp-tst-role {
	display: block;
	font-size: 12px;
	color: var(--pp-muted);
}

.pp-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--pp-gold);
}
.pp-star { width: 12px; height: 12px; }

.pp-tst-video { background: var(--pp-navy); }
.pp-tst-poster {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	border: 0;
	padding: 0;
	cursor: pointer;
	background-color: var(--pp-navy-card);
	background-size: cover;
	background-position: center;
}
.pp-tst-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: var(--pp-gold);
	color: var(--pp-navy);
}
.pp-tst-play svg { width: 20px; height: 20px; margin-left: 2px; }
.pp-tst-length {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 7px;
	border-radius: 5px;
	background: rgba(13, 19, 34, .82);
	color: #F5EFDF;
	font-size: 11px;
}
.pp-tst-frame { aspect-ratio: 16 / 10; }
.pp-tst-frame iframe,
.pp-tst-frame video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.pp-tst-vfoot { padding: 14px 18px; }
.pp-tst-vfoot .pp-tst-name { color: #F5EFDF; }
.pp-tst-vfoot .pp-tst-role { color: #9AA3B8; }

.pp-tst-cta {
	margin-top: 20px;
	padding: 34px 30px;
	text-align: center;
	background: var(--pp-cream-2);
	border-radius: 12px;
}
.pp-tst-cta-title {
	display: block;
	font-family: var(--pp-serif);
	font-size: 25px;
	color: var(--pp-ink);
}
.pp-tst-cta-sub {
	display: block;
	margin: 6px 0 18px;
	font-size: 14px;
	color: var(--pp-muted);
}

@media (max-width: 720px) {
	.pp-tst-grid { grid-template-columns: minmax(0, 1fr); }
	.pp-tst-stats { gap: 28px; }
}

/* ---- Contact ---- */
.pp-contact {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 26px;
	align-items: start;
}
.pp-contact.is-single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }

.pp-contact-form {
	padding: 30px 32px;
	border: 1px solid var(--pp-line);
	border-radius: 12px;
	background: #fff;
}
.pp-contact-title {
	display: block;
	font-family: var(--pp-serif);
	font-size: 23px;
	color: var(--pp-ink);
}
.pp-contact-sub {
	margin: 5px 0 20px;
	font-size: 13.5px;
	color: var(--pp-muted);
}
.pp-hp { position: absolute; left: -9999px; }

.pp-field { display: block; margin-bottom: 16px; }
.pp-field > span,
.pp-fieldset legend {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pp-ink);
}
.pp-fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.pp-field input[type="text"],
.pp-field input[type="email"],
.pp-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--pp-line);
	border-radius: 7px;
	background: var(--pp-cream);
	font-family: var(--pp-sans);
	font-size: 14.5px;
	color: var(--pp-ink);
}
.pp-field input:focus,
.pp-field textarea:focus {
	outline: none;
	border-color: var(--pp-gold);
}
.pp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pp-stage-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-stage input { position: absolute; opacity: 0; pointer-events: none; }
.pp-stage span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--pp-line);
	border-radius: 999px;
	font-size: 13px;
	color: var(--pp-muted);
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}
.pp-stage input:checked + span {
	border-color: var(--pp-gold);
	color: var(--pp-gold);
	font-weight: 600;
}
.pp-stage input:focus-visible + span { outline: 2px solid var(--pp-gold); outline-offset: 2px; }

.pp-btn-block { display: block; width: 100%; text-align: center; }
.pp-contact-fine {
	margin: 10px 0 0;
	text-align: center;
	font-size: 12px;
	color: var(--pp-muted);
}
.pp-note {
	padding: 11px 14px;
	border-radius: 7px;
	font-size: 13.5px;
	margin-bottom: 16px;
}
.pp-note-ok { background: #EAF3EC; color: #2C5738; }
.pp-note-warn { background: #F7ECEA; color: #7A2E22; }

.pp-contact-aside { display: flex; flex-direction: column; gap: 14px; }
.pp-next {
	padding: 22px 24px;
	border: 1px solid var(--pp-line);
	border-radius: 12px;
	background: #fff;
}
.pp-next-title {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--pp-gold);
	margin-bottom: 14px;
}
.pp-next-list { list-style: none; margin: 0; padding: 0; }
.pp-next-step {
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--pp-muted);
}
.pp-next-step:last-child { margin-bottom: 0; }
.pp-next-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 23px;
	height: 23px;
	flex-shrink: 0;
	border-radius: 999px;
	border: 1px solid var(--pp-line);
	font-size: 12px;
	color: var(--pp-muted);
}
.pp-next-step.is-first .pp-next-num {
	background: var(--pp-gold);
	border-color: var(--pp-gold);
	color: var(--pp-navy);
	font-weight: 600;
}

.pp-contact-mail {
	padding: 22px 24px;
	border-radius: 12px;
	background: var(--pp-navy);
}
.pp-contact-mail-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--pp-gold);
	margin-bottom: 10px;
}
.pp-contact-mail-link {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14.5px;
	font-weight: 600;
	color: #F5EFDF;
	text-decoration: none;
}
.pp-contact-mail-note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #9AA3B8;
}

.pp-contact-existing {
	padding: 22px 24px;
	border-radius: 12px;
	background: var(--pp-cream-2);
}
.pp-contact-existing-title {
	display: block;
	font-family: var(--pp-serif);
	font-size: 18px;
	color: var(--pp-ink);
}
.pp-contact-existing-note {
	margin: 6px 0 14px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--pp-muted);
}

@media (max-width: 860px) {
	.pp-contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
	.pp-field-row { grid-template-columns: minmax(0, 1fr); }
}

/*
 * Ghost buttons are defined for navy panels (pale text on a dark ground). On
 * the cream "already an author" card that reads as invisible, so it is
 * restated here. Doubled class deliberately: a single .pp-btn-ghost (0,1,0)
 * loses to Elementor's .elementor a (0,1,1) and the colour silently reverts.
 */
.pp-contact-existing .pp-btn.pp-btn-ghost {
	border: 1px solid var(--pp-navy);
	color: var(--pp-navy);
}
.pp-contact-existing .pp-btn.pp-btn-ghost:hover {
	background: var(--pp-navy);
	color: var(--pp-cream);
}
