/**
 * Midwest Armor Blog Styles
 * Version: 1.6.3
 * Typography: Ruda (all text, weight for hierarchy)
 */

@import url('https://fonts.googleapis.com/css2?family=Ruda:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   ROOT TOKENS
   ============================================ */
:root {
	--ma-navy: #0a1828;
	--ma-navy-deep: #061320;
	--ma-accent: #1a4672;
	--ma-yellow: #f4d73c;
	--ma-text: #1a1a1a;
	--ma-text-light: #4a4a4a;
	--ma-text-muted: #767676;
	--ma-border: #e5e5e5;
	--ma-border-hover: #c5cdd5;
	--ma-bg-soft: #f4f6f8;
	--ma-bg-card: #fafbfc;
	--ma-font: 'Ruda', system-ui, -apple-system, sans-serif;
	--ma-radius: 8px;
	--ma-radius-sm: 4px;
	--ma-radius-pill: 999px;
}

/* ============================================
   BLOG HERO BANNER
   ============================================ */
.ma-blog-hero {
	position: relative;
	background-color: var(--ma-navy);
	background-image: linear-gradient(rgba(6, 19, 32, 0.75), rgba(6, 19, 32, 0.85)), url('https://midwestarmor.com/cdn-cgi/image/width=1500,fit=cover,format=auto,quality=85,sharpen=1/wp-content/uploads/2019/07/category_header_default.jpg');
	background-size: cover;
	background-position: center;
	padding: 80px 0 100px;
	color: #fff;
}
.ma-blog-hero-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}
.ma-blog-hero h1 {
	font-family: var(--ma-font);
	font-weight: 800;
	font-size: clamp(36px, 5vw, 52px);
	letter-spacing: -0.01em;
	margin: 0 0 14px;
	color: #fff;
	line-height: 1.1;
}
.ma-blog-hero .ma-breadcrumb {
	font-family: var(--ma-font);
	font-weight: 400;
	font-size: 14px;
	opacity: 0.85;
	letter-spacing: 0.01em;
}
.ma-blog-hero .ma-breadcrumb a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
}
.ma-blog-hero .ma-breadcrumb a:hover {
	border-color: #fff;
}
.ma-blog-hero .ma-breadcrumb .sep {
	margin: 0 10px;
	opacity: 0.4;
}
@media (max-width: 640px) {
	.ma-blog-hero {
		padding: 50px 0 60px;
	}
}

/* ============================================
   SHARED CONTAINER
   ============================================ */
.ma-blog-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 24px;
	font-family: var(--ma-font);
}
@media (max-width: 768px) {
	.ma-blog-container { padding: 32px 16px; }
}

/* ============================================
   BLOG LANDING INTRO
   ============================================ */
.ma-blog-intro {
	max-width: 820px;
	font-family: var(--ma-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--ma-text);
	margin: 0 auto 48px;
}
.ma-blog-intro--center {
	text-align: center;
	max-width: 720px;
}
.ma-blog-intro--left {
	text-align: left;
	margin-left: 0;
}

/* Category filter chips */
.ma-category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 48px;
	padding: 0 0 28px;
	border-bottom: 1px solid var(--ma-border);
}
.ma-category-filter a {
	display: inline-flex;
	align-items: center;
	padding: 10px 22px;
	border: 1px solid #d5d9de;
	border-radius: var(--ma-radius-pill);
	background: #fff;
	color: var(--ma-navy);
	font-family: var(--ma-font);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.15s ease;
}
.ma-category-filter a:hover {
	background: var(--ma-bg-soft);
	border-color: var(--ma-navy);
}
.ma-category-filter a.active {
	background: var(--ma-navy);
	color: #fff;
	border-color: var(--ma-navy);
}

/* Post grid */
.ma-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-bottom: 48px;
}
@media (max-width: 1024px) {
	.ma-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.ma-post-grid { grid-template-columns: 1fr; gap: 24px; }
}

.ma-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ma-border);
	border-radius: var(--ma-radius);
	overflow: hidden;
	transition: border-color 0.15s ease;
}
.ma-post-card:hover {
	border-color: var(--ma-navy);
}
.ma-post-card:hover .ma-post-card-title a {
	color: var(--ma-accent);
}
.ma-post-card-image {
	aspect-ratio: 16/9;
	overflow: hidden;
	background: var(--ma-bg-soft);
	display: block;
}
.ma-post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ma-post-card-body {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.ma-post-card-category {
	display: inline-block;
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ma-accent);
	background: var(--ma-bg-soft);
	padding: 5px 12px;
	border-radius: var(--ma-radius-sm);
	align-self: flex-start;
	margin-bottom: 14px;
	text-decoration: none;
}
.ma-post-card-title {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.25;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}
.ma-post-card-title a {
	color: var(--ma-navy);
	text-decoration: none;
	transition: color 0.15s ease;
}
.ma-post-card-excerpt {
	font-family: var(--ma-font);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ma-text-light);
	margin: 0 0 16px;
	flex-grow: 1;
}
.ma-post-card-meta {
	font-family: var(--ma-font);
	font-weight: 400;
	font-size: 13px;
	color: var(--ma-text-muted);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.ma-post-card-meta .sep { opacity: 0.5; }

/* Pagination */
.ma-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
}
.ma-pagination a,
.ma-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 16px;
	border: 1px solid var(--ma-border-hover);
	border-radius: var(--ma-radius-sm);
	background: #fff;
	color: var(--ma-text);
	font-family: var(--ma-font);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: all 0.15s ease;
}
.ma-pagination a:hover {
	border-color: var(--ma-navy);
	background: var(--ma-bg-soft);
}
.ma-pagination .current {
	background: var(--ma-navy);
	color: #fff;
	border-color: var(--ma-navy);
}

/* ============================================
   SINGLE POST
   ============================================ */
.ma-post-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 56px;
	max-width: 1120px;
	margin: 0 auto;
}
@media (max-width: 960px) {
	.ma-post-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.ma-post-sidebar {
	position: sticky;
	top: 100px;
	align-self: start;
	padding: 8px 0;
	font-family: var(--ma-font);
	display: flex;
	flex-direction: column;
	gap: 36px;
}
@media (max-width: 960px) {
	.ma-post-sidebar {
		position: static;
	}
}

.ma-sidebar-block {
	font-size: 15px;
}
.ma-sidebar-label {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ma-text-muted);
	margin: 0 0 14px;
}

/* TOC - scrolls internally on desktop when long so Share + Newsletter stay visible */
.ma-post-toc ul {
	list-style: none;
	padding: 0;
	margin: 0;
	border-left: 2px solid var(--ma-border);
	max-height: 50vh;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--ma-border) transparent;
}
.ma-post-toc ul::-webkit-scrollbar {
	width: 4px;
}
.ma-post-toc ul::-webkit-scrollbar-track {
	background: transparent;
}
.ma-post-toc ul::-webkit-scrollbar-thumb {
	background: var(--ma-border);
	border-radius: 4px;
}
.ma-post-toc ul::-webkit-scrollbar-thumb:hover {
	background: var(--ma-text-muted);
}
@media (max-width: 960px) {
	.ma-post-toc ul {
		max-height: none;
		overflow-y: visible;
	}
}
.ma-post-toc li {
	padding: 0;
	margin: 0;
}
.ma-post-toc a {
	display: block;
	padding: 9px 0 9px 16px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	color: var(--ma-text-light);
	text-decoration: none;
	line-height: 1.45;
	font-family: var(--ma-font);
	font-weight: 400;
	font-size: 15px;
	transition: all 0.15s ease;
}
.ma-post-toc a:hover,
.ma-post-toc a.active {
	color: var(--ma-navy);
	border-left-color: var(--ma-navy);
	font-weight: 600;
}

/* Share buttons */
.ma-sidebar-share {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.ma-sidebar-share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ma-border);
	border-radius: var(--ma-radius-sm);
	background: #fff;
	color: var(--ma-text-light);
	text-decoration: none;
	transition: all 0.15s ease;
}
.ma-sidebar-share a:hover {
	background: var(--ma-navy);
	color: #fff;
	border-color: var(--ma-navy);
}
.ma-sidebar-share svg {
	width: 18px;
	height: 18px;
}

/* Mini newsletter in sidebar */
.ma-sidebar-newsletter {
	padding: 20px;
	background: var(--ma-bg-soft);
	border-radius: var(--ma-radius);
}
.ma-sidebar-newsletter-title {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 16px;
	color: var(--ma-navy);
	margin: 0 0 6px;
	letter-spacing: -0.005em;
}
.ma-sidebar-newsletter-desc {
	font-family: var(--ma-font);
	font-weight: 400;
	font-size: 14px;
	color: var(--ma-text-light);
	margin: 0 0 14px;
	line-height: 1.5;
}
.ma-sidebar-newsletter-placeholder {
	font-size: 12px;
	color: var(--ma-text-muted);
	padding: 10px;
	background: #fff;
	border-radius: var(--ma-radius-sm);
	text-align: center;
	border: 1px dashed var(--ma-border);
	font-family: var(--ma-font);
}

/* Post content typography */
.ma-post-content {
	font-family: var(--ma-font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.75;
	color: var(--ma-text);
	max-width: 720px;
}
.ma-post-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 32px;
	font-family: var(--ma-font);
	font-weight: 400;
	font-size: 14px;
	color: var(--ma-text-muted);
}
.ma-post-meta-row .sep { opacity: 0.4; }
.ma-post-meta-row .category-tag {
	background: var(--ma-bg-soft);
	color: var(--ma-accent);
	padding: 5px 12px;
	border-radius: var(--ma-radius-sm);
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.ma-post-featured-image {
	margin: 0 0 40px;
	border-radius: var(--ma-radius);
	overflow: hidden;
}
.ma-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.ma-post-content h2 {
	font-family: var(--ma-font);
	font-weight: 800;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--ma-navy);
	margin: 48px 0 20px;
	padding-top: 8px;
	scroll-margin-top: 100px;
}
.ma-post-content h3 {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--ma-navy);
	margin: 36px 0 14px;
	scroll-margin-top: 100px;
}
.ma-post-content h4 {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 18px;
	color: var(--ma-navy);
	margin: 28px 0 12px;
	line-height: 1.3;
}
.ma-post-content p {
	margin: 0 0 22px;
	font-family: var(--ma-font);
}
.ma-post-content ul,
.ma-post-content ol {
	margin: 0 0 24px;
	padding-left: 24px;
	font-family: var(--ma-font);
}
.ma-post-content li {
	margin-bottom: 10px;
	line-height: 1.7;
}
.ma-post-content a {
	color: var(--ma-accent);
	text-decoration: underline;
	text-decoration-color: rgba(26, 70, 114, 0.3);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s;
}
.ma-post-content a:hover {
	text-decoration-color: currentColor;
}
.ma-post-content strong {
	font-weight: 700;
	color: var(--ma-navy);
}
.ma-post-content em { font-style: italic; }
.ma-post-content blockquote {
	margin: 32px 0;
	padding: 20px 28px;
	border-left: 4px solid var(--ma-navy);
	background: var(--ma-bg-soft);
	font-family: var(--ma-font);
	font-style: italic;
	color: var(--ma-text);
	font-size: 17px;
	line-height: 1.6;
}
.ma-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--ma-radius);
	margin: 28px 0;
}
.ma-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 28px 0;
	font-family: var(--ma-font);
	font-size: 15px;
}
.ma-post-content table th,
.ma-post-content table td {
	border: 1px solid var(--ma-border);
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
}
.ma-post-content table th {
	background: var(--ma-bg-soft);
	font-family: var(--ma-font);
	font-weight: 700;
	letter-spacing: 0.02em;
	font-size: 14px;
	color: var(--ma-navy);
}
.ma-post-body details {
	margin: 0 0 12px;
	border: 1px solid var(--ma-border);
	border-radius: var(--ma-radius);
	background: #fff;
	overflow: hidden;
}
.ma-post-body details summary {
	padding: 16px 20px;
	cursor: pointer;
	font-family: var(--ma-font);
	font-weight: 600;
	color: var(--ma-navy);
	background: var(--ma-bg-card);
	list-style: none;
	position: relative;
	padding-right: 48px;
	font-size: 16px;
}
.ma-post-body details summary::-webkit-details-marker { display: none; }
.ma-post-body details summary::after {
	content: '+';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	color: var(--ma-text-muted);
	transition: transform 0.2s;
	line-height: 1;
	font-weight: 300;
}
.ma-post-body details[open] summary::after { content: '−'; }
.ma-post-body details[open] summary { border-bottom: 1px solid var(--ma-border); }
.ma-post-body details p,
.ma-post-body details ul,
.ma-post-body details ol {
	padding: 16px 20px;
	margin: 0;
}

/* Product CTA callout */
.ma-product-cta {
	display: flex;
	gap: 20px;
	align-items: center;
	padding: 22px;
	margin: 32px 0;
	border: 1px solid var(--ma-border);
	border-radius: var(--ma-radius);
	background: var(--ma-bg-card);
}
.ma-product-cta-img {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	border-radius: var(--ma-radius-sm);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ma-border);
}
.ma-product-cta-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
}
.ma-product-cta-body { flex: 1; }
.ma-product-cta-body h4 {
	margin: 0 0 8px !important;
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 18px;
}
.ma-product-cta-body p {
	margin: 0 0 14px !important;
	font-size: 15px;
	color: var(--ma-text-light);
}
.ma-product-cta-btn {
	display: inline-block;
	padding: 10px 22px;
	background: var(--ma-navy);
	color: #fff !important;
	font-family: var(--ma-font);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-radius: var(--ma-radius-sm);
	font-size: 14px;
	transition: background 0.15s;
}
.ma-product-cta-btn:hover {
	background: var(--ma-accent);
}
@media (max-width: 640px) {
	.ma-product-cta {
		flex-direction: column;
		text-align: center;
	}
	.ma-product-cta-img {
		width: 100%;
		max-width: 200px;
		height: auto;
		aspect-ratio: 1/1;
	}
}

/* ============================================
   POST FOOTER - KEEP READING (simple text list)
   ============================================ */
.ma-post-footer {
	margin-top: 64px;
	padding-top: 48px;
	border-top: 1px solid var(--ma-border);
}
.ma-related-posts {
	margin-bottom: 48px;
}
.ma-related-posts-heading {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ma-text-muted);
	margin: 0 0 8px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ma-border);
}
.ma-related-list {
	display: block;
}
a.ma-related-row,
.ma-related-row {
	display: block !important;
	padding: 18px 0 !important;
	border: none !important;
	border-bottom: 1px solid var(--ma-border) !important;
	border-radius: 0 !important;
	background: transparent !important;
	text-decoration: none !important;
	color: inherit !important;
	transition: none !important;
}
.ma-related-row:last-child {
	border-bottom: none !important;
}
.ma-related-row-image,
.ma-related-row-image img {
	display: none !important;
}
.ma-related-row-body {
	display: block !important;
}
.ma-related-row-title {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.35;
	color: var(--ma-navy);
	margin: 0 0 6px;
	letter-spacing: -0.005em;
	transition: color 0.15s ease;
}
.ma-related-row:hover .ma-related-row-title {
	color: var(--ma-accent);
}
.ma-related-row-category {
	display: inline;
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ma-text-muted);
	margin: 0;
}
.ma-related-row-category::after {
	content: "·";
	margin: 0 6px;
	opacity: 0.5;
}
.ma-related-row-meta {
	display: inline;
	font-family: var(--ma-font);
	font-weight: 400;
	font-size: 13px;
	color: var(--ma-text-muted);
	margin: 0;
}
.ma-related-row-meta .sep { opacity: 0.5; margin: 0 4px; }
.ma-related-row-category {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ma-accent);
	margin: 0;
}
.ma-related-row-title {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	color: var(--ma-navy);
	margin: 0;
	letter-spacing: -0.005em;
	transition: color 0.15s ease;
}
.ma-related-row-meta {
	font-family: var(--ma-font);
	font-weight: 400;
	font-size: 13px;
	color: var(--ma-text-muted);
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}
.ma-related-row-meta .sep { opacity: 0.5; }
@media (max-width: 640px) {
	.ma-related-row {
		padding: 12px;
		gap: 14px;
	}
	.ma-related-row-image {
		width: 88px;
		height: 64px;
	}
	.ma-related-row-title { font-size: 15px; }
}

/* Newsletter CTA (full width in post footer) */
.ma-newsletter-cta {
	margin-top: 48px;
	padding: 44px 32px;
	background: var(--ma-navy);
	color: #fff;
	border-radius: var(--ma-radius);
	text-align: center;
}
.ma-newsletter-cta h3 {
	font-family: var(--ma-font);
	font-weight: 800;
	font-size: 28px;
	letter-spacing: -0.01em;
	margin: 0 0 12px;
	color: #fff;
}
.ma-newsletter-cta p {
	font-family: var(--ma-font);
	font-weight: 400;
	margin: 0 0 24px;
	opacity: 0.85;
	font-size: 15px;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}
.ma-newsletter-cta .klaviyo-embed-placeholder {
	max-width: 480px;
	margin: 0 auto;
	padding: 16px;
	background: rgba(255,255,255,0.05);
	border: 1px dashed rgba(255,255,255,0.2);
	border-radius: var(--ma-radius-sm);
	font-size: 13px;
	opacity: 0.7;
	font-family: var(--ma-font);
}

/* ============================================
   PILLAR PAGES
   ============================================ */

/* Pillar hero - larger, with subtitle and meta */
.ma-pillar-hero {
	padding: 100px 0 120px;
	background-image: linear-gradient(rgba(6, 19, 32, 0.85), rgba(6, 19, 32, 0.92)), url('https://midwestarmor.com/cdn-cgi/image/width=1500,fit=cover,format=auto,quality=85,sharpen=1/wp-content/uploads/2019/07/category_header_default.jpg');
	border-bottom: 4px solid var(--ma-yellow);
}
.ma-pillar-hero .ma-breadcrumb {
	margin-bottom: 20px;
}
.ma-pillar-eyebrow {
	display: inline-block;
	font-family: var(--ma-font);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ma-yellow);
	background: rgba(244, 215, 60, 0.12);
	border: 1px solid rgba(244, 215, 60, 0.4);
	padding: 6px 14px;
	border-radius: var(--ma-radius-pill);
	margin-bottom: 20px;
}
.ma-pillar-hero h1 {
	font-size: clamp(38px, 5.5vw, 60px);
	line-height: 1.05;
	max-width: 900px;
	margin-bottom: 20px;
}
.ma-pillar-subtitle {
	font-family: var(--ma-font);
	font-weight: 400;
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.5;
	color: rgba(255,255,255,0.85);
	max-width: 720px;
	margin: 0 0 24px;
}
.ma-pillar-meta {
	font-family: var(--ma-font);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.7);
	display: flex;
	align-items: center;
	gap: 10px;
}
.ma-pillar-meta .sep { opacity: 0.5; }
@media (max-width: 640px) {
	.ma-pillar-hero {
		padding: 60px 0 70px;
	}
}

/* Pillar content - more breathing room, distinct section styling */
.ma-pillar-content {
	font-size: 17px;
	line-height: 1.8;
}
.ma-pillar-content h2 {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--ma-border);
	font-size: 32px;
	position: relative;
}
.ma-pillar-content h2::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	width: 48px;
	height: 3px;
	background: var(--ma-navy);
}
.ma-pillar-content .ma-post-body h2:first-of-type {
	margin-top: 24px;
	padding-top: 0;
	border-top: none;
}
.ma-pillar-content .ma-post-body h2:first-of-type::before {
	display: none;
}
.ma-pillar-content h3 {
	margin-top: 40px;
}
.ma-pillar-content table {
	font-size: 14px;
}
/* Pillar inline quick nav - shown on mobile only, collapsible using native <details>/<summary>.
   All properties reset explicitly so FAQ-accordion or Elementor styles can't leak in. */
.ma-pillar-quick-nav {
	background: var(--ma-bg-soft);
	border: 1px solid var(--ma-border);
	border-radius: var(--ma-radius);
	padding: 0;
	margin: 0 0 32px;
	display: none;
	overflow: hidden;
}
.ma-pillar-quick-nav details,
.ma-pillar-quick-nav details[open] {
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	overflow: visible;
}
.ma-pillar-quick-nav summary {
	all: unset;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	cursor: pointer;
	background: transparent;
	list-style: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	font-family: var(--ma-font);
}
.ma-pillar-quick-nav summary::-webkit-details-marker,
.ma-pillar-quick-nav summary::marker {
	display: none;
	content: '';
}
.ma-pillar-quick-nav summary::after {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--ma-text-muted);
	border-bottom: 2px solid var(--ma-text-muted);
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
	flex-shrink: 0;
	position: relative;
	top: -2px;
}
.ma-pillar-quick-nav details[open] summary::after {
	transform: rotate(-135deg) translateY(-2px);
	top: 2px;
}
.ma-pillar-quick-nav summary:focus {
	outline: none;
}
.ma-pillar-quick-nav summary:focus-visible {
	outline: 2px solid var(--ma-navy);
	outline-offset: -2px;
}
.ma-pillar-quick-nav-label {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ma-navy);
	margin: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
}
.ma-pillar-quick-nav-count {
	font-family: var(--ma-font);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--ma-text-muted);
	margin-left: 10px;
	opacity: 0.85;
}
.ma-pillar-quick-nav ol {
	margin: 0;
	padding: 14px 20px 20px 44px;
	columns: 1;
	column-gap: 0;
	font-size: 15px;
	line-height: 1.9;
	list-style-type: decimal;
	border-top: 1px solid var(--ma-border);
	background: #fff;
}
.ma-pillar-quick-nav ol li {
	margin: 0;
	padding: 0;
}
.ma-pillar-quick-nav ol li::marker {
	color: var(--ma-text-muted);
	font-weight: 500;
}
.ma-pillar-quick-nav a {
	color: var(--ma-navy);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}
.ma-pillar-quick-nav a:hover {
	border-bottom-color: var(--ma-navy);
}
@media (max-width: 960px) {
	.ma-pillar-quick-nav {
		display: block;
	}
	/* Hide the sidebar TOC on mobile - the collapsible inline nav replaces it */
	.ma-pillar-container .ma-post-sidebar .ma-post-toc {
		display: none;
	}
	/* Put sidebar (share + newsletter) BELOW the article on mobile for pillars.
	   Article first, then sidebar. Blog posts keep the default order. */
	.ma-pillar-container .ma-post-layout {
		display: flex;
		flex-direction: column;
	}
	.ma-pillar-container .ma-post-content {
		order: 1;
	}
	.ma-pillar-container .ma-post-sidebar {
		order: 2;
		margin-top: 24px;
	}
}

/* Pillar related guides grid */
.ma-related-guides {
	margin-bottom: 56px;
}
.ma-related-guides-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
@media (max-width: 640px) {
	.ma-related-guides-grid {
		grid-template-columns: 1fr;
	}
}
.ma-guide-card {
	display: block;
	padding: 24px;
	border: 1px solid var(--ma-border);
	border-radius: var(--ma-radius);
	background: #fff;
	text-decoration: none !important;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.ma-guide-card:hover {
	border-color: var(--ma-navy);
}
.ma-guide-card:hover .ma-guide-card-title {
	color: var(--ma-accent);
}
.ma-guide-card-label {
	display: inline-block;
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ma-accent);
	margin-bottom: 10px;
}
.ma-guide-card-title {
	font-family: var(--ma-font);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.25;
	color: var(--ma-navy);
	margin: 0 0 10px;
	letter-spacing: -0.01em;
	transition: color 0.15s ease;
}
.ma-guide-card-excerpt {
	font-family: var(--ma-font);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ma-text-light);
	margin: 0;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.ma-no-posts {
	text-align: center;
	padding: 64px 24px;
	color: var(--ma-text-light);
	font-family: var(--ma-font);
	font-size: 17px;
}
