/* ============================================================
   MERIT page template stylesheet (page-merit.php)
   Consolidated from the former page-merit.php inline <style>
   plus the playbook component supplement. Delivered as a real
   enqueued file (functions.php, conditional on the page-merit.php
   template) and excluded from WP Rocket Remove-Unused-CSS so the
   gradients/backgrounds are never stripped.
   All rules scoped under .merit-content.
   ============================================================ */

/* ---- Page shell ---- */
.merit-page {
	background: #f8fafc;
	padding: 0;
}
.merit-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 28px 24px 80px;
}
.merit-content {
	background: #ffffff;
	padding: 48px 64px;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.7;
	color: #2c3e50;
	font-size: 16px;
}

/* ---- Full-width hero band (matches the whitepaper wp-cover) ---- */
.merit-hero {
	width: 100%;
	background: linear-gradient(135deg, #2ca9d5 0%, #1a7a9e 100%);
	padding: 38px 24px 26px;
	text-align: center;
	color: #ffffff;
}
.merit-hero-inner {
	max-width: 1000px;
	margin: 0 auto;
}
.merit-hero-eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
}
.merit-hero-title {
	margin: 0 0 12px;
	color: #ffffff;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
	border: none;
	padding: 0;
}
.merit-hero-lede {
	margin: 0 auto 22px;
	max-width: 780px;
	color: rgba(255, 255, 255, 0.95);
	font-size: 18px;
	line-height: 1.6;
}
.merit-hero-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
}
.merit-hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.30);
	color: #ffffff;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.merit-hero-pill:hover {
	background: rgba(255, 255, 255, 0.26);
	color: #ffffff;
}
.merit-hero-pill.is-active {
	background: #ffffff;
	border-color: #ffffff;
	color: #1a7a9e;
}
.merit-hero-pill-letter {
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
}
.merit-hero-pill-name {
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
@media (max-width: 767px) {
	.merit-hero { padding: 26px 18px 20px; }
	.merit-hero-title { font-size: 26px; }
	.merit-hero-lede { font-size: 15px; margin-bottom: 18px; }
	.merit-hero-pill { padding: 6px 12px; }
	.merit-hero-pill-name { font-size: 10px; }
}

/* ---- Typography ---- */
.merit-content h1 {
	font-size: 38px;
	line-height: 1.2;
	margin: 0 0 24px;
	color: #1e293b;
	font-weight: 700;
}
.merit-content h2 {
	font-size: 28px;
	line-height: 1.3;
	margin: 56px 0 16px;
	color: #1e293b;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 10px;
	font-weight: 700;
}
.merit-content h2:first-child { margin-top: 0; }
.merit-content h3 {
	font-size: 22px;
	line-height: 1.3;
	margin: 32px 0 12px;
	color: #1e293b;
	font-weight: 600;
}
.merit-content h4 {
	font-size: 18px;
	line-height: 1.4;
	margin: 24px 0 8px;
	color: #334155;
	font-weight: 600;
}
.merit-content p {
	margin: 0 0 16px;
}
.merit-content ul,
.merit-content ol {
	margin: 0 0 16px 24px;
	padding: 0;
}
.merit-content li {
	margin-bottom: 8px;
}
.merit-content a {
	color: #2ca9d5;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.merit-content a:hover {
	color: #1a7a9e;
}
.merit-content strong {
	color: #1e293b;
}
.merit-content code {
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;
	font-size: 0.9em;
}
.merit-content pre {
	background: #f8fafc;
	padding: 16px 20px;
	border-left: 4px solid #2ca9d5;
	font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;
	font-size: 14px;
	color: #1e293b;
	margin: 20px 0;
	overflow-x: auto;
	white-space: pre-wrap;
	line-height: 1.5;
}

/* ---- Callout, stat, warning, example boxes ---- */
.merit-content .callout-box {
	background: #f8fafc;
	border-left: 4px solid #64748b;
	padding: 18px 22px;
	margin: 28px 0;
	border-radius: 4px;
}
.merit-content .stat-box {
	background: #e8f4f8;
	border-left: 4px solid #2ca9d5;
	padding: 18px 22px;
	margin: 28px 0;
	border-radius: 4px;
}
.merit-content .warning-box {
	background: #fef3c7;
	border-left: 4px solid #f59e0b;
	padding: 18px 22px;
	margin: 28px 0;
	border-radius: 4px;
}
.merit-content .example-box {
	background: #f0fdf4;
	border-left: 4px solid #10b981;
	padding: 18px 22px;
	margin: 28px 0;
	border-radius: 4px;
}
.merit-content .callout-box strong:first-child,
.merit-content .stat-box strong:first-child,
.merit-content .warning-box strong:first-child,
.merit-content .example-box strong:first-child {
	display: block;
	font-size: 15px;
	margin-bottom: 8px;
}

/* ---- MERIT pillar badge ---- */
.merit-content .merit-badge {
	display: inline-block;
	background: linear-gradient(135deg, #2ca9d5 0%, #1a7a9e 100%);
	color: white;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 6px;
	font-size: 15px;
	margin: 28px 0 12px;
}

/* ---- Chapter header (used on Playbook chapter pages) ---- */
.merit-content .strategy-header {
	background: linear-gradient(135deg, #2ca9d5 0%, #1a7a9e 100%);
	color: white;
	padding: 28px 32px;
	border-radius: 8px;
	margin: 0 0 32px;
}
.merit-content .strategy-number {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 8px;
}
.merit-content .strategy-title {
	color: #ffffff !important;
	font-size: 30px;
	line-height: 1.2;
	margin: 0;
	border: none;
	padding: 0;
	font-weight: 700;
}

/* ---- Chapter card grid (whitepaper page) ---- */
.merit-content .chapter-grid-intro {
	font-size: 16px;
	line-height: 1.65;
	color: #475569;
	margin-bottom: 12px;
}
.merit-content .chapter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin: 28px 0;
}
.merit-content .chapter-card {
	border: 1px solid #e2e8f0;
	border-left: 4px solid #2ca9d5;
	border-radius: 8px;
	padding: 20px 22px;
	background: white;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: flex;
	flex-direction: column;
}
.merit-content .chapter-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.merit-content .chapter-card-meta {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #94a3b8;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.merit-content .chapter-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
	color: #1e293b;
}
.merit-content .chapter-card-title a {
	color: #1e293b;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.15s ease;
}
.merit-content .chapter-card-title a:hover {
	border-bottom-color: #2ca9d5;
	color: #2ca9d5;
}
.merit-content .chapter-card-summary {
	font-size: 14px;
	line-height: 1.55;
	color: #475569;
	margin: 0;
	flex: 1;
}

/* ---- Pillar chip row (Playbook chapters) ---- */
.merit-content .pillar-chip-row {
	display: flex;
	gap: 8px;
	margin: 0 0 20px;
	flex-wrap: wrap;
}
.merit-content .pillar-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #e2e8f0;
	transition: background 0.15s ease, color 0.15s ease;
}
.merit-content .pillar-chip:hover {
	background: #e2e8f0;
	color: #1e293b;
}
.merit-content .pillar-chip.active {
	background: linear-gradient(135deg, #2ca9d5 0%, #1a7a9e 100%);
	color: white;
	border-color: transparent;
}
.merit-content .pillar-chip-letter {
	font-weight: 700;
}
.merit-content .pillar-chip .pillar-chip-name {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 600;
}
.merit-content .breadcrumb {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 24px;
}
.merit-content .breadcrumb a {
	color: #64748b;
	text-decoration: none;
}
.merit-content .breadcrumb a:hover {
	color: #2ca9d5;
	text-decoration: underline;
}
.merit-content .breadcrumb-separator {
	margin: 0 6px;
	color: #cbd5e1;
}

/* ---- MERIT-map aside ---- */
.merit-content .merit-map {
	background: #f8fafc;
	border-left: 4px solid #2ca9d5;
	padding: 24px 28px;
	margin: 40px 0;
	border-radius: 6px;
}
.merit-content .merit-map-header {
	font-weight: 700;
	font-size: 16px;
	color: #1e293b;
	margin-bottom: 12px;
}
.merit-content .merit-map ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.merit-content .merit-map li {
	padding: 8px 0;
	border-bottom: 1px solid #e2e8f0;
}
.merit-content .merit-map li:last-child {
	border-bottom: none;
}
.merit-content .merit-map-pillar {
	display: inline-block;
	width: 22px;
	height: 22px;
	background: #2ca9d5;
	color: white;
	text-align: center;
	line-height: 22px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 12px;
	margin-right: 10px;
}

/* ---- Chapter nav (prev/next) ---- */
.merit-content .chapter-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 48px 0 0;
	padding-top: 32px;
	border-top: 1px solid #e2e8f0;
}
.merit-content .chapter-nav a {
	display: block;
	padding: 16px 20px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	text-decoration: none;
	color: #1e293b;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.merit-content .chapter-nav a:hover {
	border-color: #2ca9d5;
	background: #f0f9ff;
}
.merit-content .chapter-nav-next {
	text-align: right;
}
.merit-content .chapter-nav-direction {
	font-size: 12px;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 4px;
}
.merit-content .chapter-nav-title {
	font-size: 15px;
	font-weight: 600;
}

/* ---- Playbook home: pillar cards ---- */
.merit-content .pillar-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 40px 0;
}
.merit-content a.pillar-card,
.merit-content .pillar-card {
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	padding: 28px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
	color: inherit;
	display: block;
}
.merit-content a.pillar-card:hover,
.merit-content .pillar-card:hover {
	border-color: #2ca9d5;
	box-shadow: 0 4px 12px rgba(44, 169, 213, 0.15);
}
.merit-content .pillar-card-letter {
	display: inline-block;
	background: #2ca9d5;
	color: #ffffff;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	font-size: 28px;
	font-weight: 700;
	text-align: center;
	line-height: 48px;
	margin-bottom: 16px;
}
.merit-content .pillar-card-name {
	font-size: 22px;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 8px;
}
.merit-content .pillar-card-summary {
	font-size: 15px;
	color: #475569;
	line-height: 1.6;
	margin-bottom: 16px;
}
.merit-content .pillar-card-strategies {
	font-size: 13px;
	color: #64748b;
	border-top: 1px solid #e2e8f0;
	padding-top: 12px;
}

/* ---- Strategy list (playbook home chapter list) ---- */
.merit-content .strategy-list {
	list-style: none;
	margin-left: 0;
	padding: 0;
}
.merit-content .strategy-list li {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 14px;
	transition: border-color 0.2s ease;
}
.merit-content .strategy-list li:hover {
	border-color: #2ca9d5;
}
.merit-content .strategy-list-number {
	display: inline-block;
	background: #2ca9d5;
	color: #ffffff;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	margin-right: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.merit-content .strategy-list-title {
	font-size: 18px;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 6px;
}
.merit-content .strategy-list-title a {
	color: #2c3e50;
	text-decoration: none;
}
.merit-content .strategy-list-title a:hover {
	color: #2ca9d5;
}
.merit-content .strategy-list-summary {
	font-size: 14px;
	color: #475569;
	margin-top: 8px;
}

/* ---- Strategy grid/cards (pillar landing pages)
   Reconstructed from strategy-list + pillar-card design language;
   source playbook.css does not define these. ---- */
.merit-content .strategy-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin: 32px 0;
}
.merit-content a.strategy-card,
.merit-content .strategy-card {
	display: block;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 24px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.merit-content a.strategy-card:hover,
.merit-content .strategy-card:hover {
	border-color: #2ca9d5;
	box-shadow: 0 4px 12px rgba(44, 169, 213, 0.15);
}
.merit-content .strategy-card-number {
	display: inline-block;
	background: #2ca9d5;
	color: #ffffff;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.merit-content .strategy-card-title {
	font-size: 19px;
	font-weight: 700;
	color: #2c3e50;
	margin: 0 0 8px;
	line-height: 1.3;
}
.merit-content .strategy-card-title a {
	color: #2c3e50;
	text-decoration: none;
}
.merit-content .strategy-card-title a:hover {
	color: #2ca9d5;
}
.merit-content .strategy-card-summary {
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
	margin: 0;
}

/* ---- CTA box ---- */
.merit-content .cta-box {
	background: linear-gradient(135deg, #2ca9d5 0%, #1a7a9e 100%);
	color: #ffffff;
	padding: 30px;
	border-radius: 8px;
	margin: 40px 0;
	text-align: center;
}
.merit-content .cta-box h3 {
	color: #ffffff;
	margin-top: 0;
	border: none;
	padding: 0;
}
.merit-content .cta-box p {
	color: rgba(255, 255, 255, 0.95);
	margin-bottom: 20px;
}
.merit-content a.cta-button,
.merit-content .cta-button {
	display: inline-block;
	background: #ffffff;
	color: #2ca9d5;
	padding: 12px 28px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 700;
	transition: background 0.2s ease;
}
.merit-content a.cta-button:hover,
.merit-content .cta-button:hover {
	background: #f7fafc;
}

/* ---- stat-box modifiers ---- */
.merit-content .stat-box-research {
	background: #f0fdf4;
	border-left: 4px solid #10b981;
}
.merit-content .stat-box-key {
	background: #e8f4f8;
	border-left: 4px solid #2ca9d5;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.merit-container { padding: 32px 16px 48px; }
	.merit-content { padding: 36px 28px; }
	.merit-content h1 { font-size: 30px; }
	.merit-content h2 { font-size: 24px; margin-top: 40px; }
	.merit-content h3 { font-size: 20px; }
	.merit-content .strategy-title { font-size: 26px; }
}
@media (max-width: 1024px) {
	.merit-content .pillar-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.merit-content .pillar-grid,
	.merit-content .strategy-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.merit-content .pillar-card,
	.merit-content .strategy-card {
		padding: 22px;
	}
}
@media (max-width: 600px) {
	.merit-content { padding: 28px 20px; }
	.merit-content .chapter-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.merit-content .chapter-card { padding: 18px 20px; }
	.merit-content .chapter-nav { grid-template-columns: 1fr; }
	.merit-content .chapter-nav-next { text-align: left; }
}

/* Suppress the theme footer flower (hero-bg-v2.svg) on the MERIT template
   to match production, where the flower was removed site-wide. Scoped to
   this template; a no-op on prod where it is already gone. */
.page-template-page-merit .site-footer::before {
	content: none !important;
	background: none !important;
	display: none !important;
}
