:root {
	--ba-bg: #03060a;
	--ba-text: #ffffff;
	--ba-text-dim: rgba(255,255,255,0.7);
	--ba-lime: #cef12b;
	--ba-amber: #ff9c00;
	--ba-card-bg: #181818;
	--ba-border: rgba(255,255,255,0.1);
	--ba-radius: 14px;
	--ba-heading-font: 'Space Grotesk', sans-serif;
}
.blog-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Page header ---------- */
.blog-eyebrow {
	font-family: var(--ba-heading-font); font-weight: 700; font-size: 13px;
	text-transform: uppercase; letter-spacing: 0.08em; color: var(--ba-lime);
	margin-bottom: 10px;
}
.blog-hero {
	padding: 72px 0 48px;
	border-bottom: 1px solid var(--ba-border);
	margin-bottom: 48px;
}
.blog-hero h1 {
	font-family: var(--ba-heading-font); font-weight: 800; text-transform: uppercase;
	font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 0 0 14px;
}
.blog-hero p {
	color: var(--ba-text-dim); font-size: 17px; max-width: 560px; margin: 0;
}

/* ---------- Cards ---------- */
.blog-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px; padding-bottom: 80px;
}
.blog-card {
	background: var(--ba-card-bg);
	border: 1px solid var(--ba-border);
	border-radius: var(--ba-radius);
	padding: 0 0 28px;
	overflow: hidden;
	transition: transform .2s ease, border-color .2s ease;
	display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(206,241,43,0.4); }
.blog-card .blog-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: #0d0d0d; margin-bottom: 20px; }
.blog-card .blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card .blog-card-body { padding: 0 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card time {
	color: var(--ba-amber); font-family: var(--ba-heading-font); font-weight: 700;
	font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
}
.blog-card h2 {
	font-family: var(--ba-heading-font); font-size: 21px; font-weight: 700;
	line-height: 1.3; margin: 10px 0 12px;
}
.blog-card p { color: var(--ba-text-dim); font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; flex: 1; }

/* ---------- Empty state ---------- */
.blog-empty {
	text-align: center; padding: 64px 40px; margin-bottom: 80px;
	background: var(--ba-card-bg); border: 1px solid var(--ba-border); border-radius: var(--ba-radius);
}
.blog-empty h2 { font-family: var(--ba-heading-font); font-size: 26px; margin: 0 0 10px; }
.blog-empty p { color: var(--ba-text-dim); margin: 0 0 24px; }

/* ---------- Buttons ---------- */
.blog-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: 999px;
	background: var(--ba-lime); color: #03060a; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px;
	text-decoration: none; font-family: var(--ba-heading-font);
	border: none; transition: transform .2s ease, box-shadow .2s ease;
}
.blog-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(206,241,43,0.5); }
.blog-btn-ghost {
	background: transparent; color: var(--ba-text) !important; border: 1px solid var(--ba-border);
}
.blog-btn-ghost:hover { border-color: var(--ba-lime); box-shadow: none; }

/* ---------- Pagination ---------- */
.blog-pagination { display: flex; justify-content: center; gap: 8px; padding-bottom: 80px; }
.blog-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
	background: var(--ba-card-bg); border: 1px solid var(--ba-border);
	color: var(--ba-text) !important; font-family: var(--ba-heading-font); font-weight: 700; font-size: 14px;
	text-decoration: none !important;
}
.blog-pagination .page-numbers.current { background: var(--ba-lime); color: #03060a !important; border-color: var(--ba-lime); }
.blog-pagination .page-numbers:hover:not(.current) { border-color: var(--ba-lime); }

/* ---------- Single post ---------- */
body.single-post .blog-container { max-width: 780px; }
.blog-post-meta { margin: 28px 0 18px; }
.blog-post-title {
	font-family: var(--ba-heading-font); font-weight: 800; text-transform: uppercase;
	font-size: clamp(28px, 4vw, 42px); line-height: 1.1; margin: 0 0 32px;
}
.blog-content { color: var(--ba-text-dim); line-height: 1.75; font-size: 17px; padding-bottom: 80px; }
.blog-content h2, .blog-content h3 { font-family: var(--ba-heading-font); color: var(--ba-text); margin: 36px 0 14px; }
.blog-content p { margin: 0 0 20px; }
.blog-content ul, .blog-content ol { margin: 0 0 20px; padding-left: 22px; }
.blog-content li { margin-bottom: 8px; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 0 0 28px; }
.blog-content table th, .blog-content table td { padding: 12px 16px; border: 1px solid var(--ba-border); text-align: left; }
.blog-content table th { background: var(--ba-card-bg); font-family: var(--ba-heading-font); color: var(--ba-text); }
.blog-content img { max-width: 100%; border-radius: var(--ba-radius); }
.blog-content strong { color: var(--ba-text); }

/* ---------- Shared body/link behavior ---------- */
body.blog, body.single-post {
	background: var(--ba-bg); color: var(--ba-text);
}
/* The parent theme's global `a`/heading rules set a dark gray color with
   !important, which otherwise beats even inline styles on post titles,
   hero headings, and body-content links/headings inside our templates. */
.blog-card a, .blog-content a,
body.blog h1, body.blog h2, body.blog h3,
body.single-post h1, body.single-post h2, body.single-post h3 {
	color: var(--ba-text) !important;
}
.blog-card a:hover { color: var(--ba-lime) !important; }
.blog-content a { color: var(--ba-lime) !important; text-decoration: underline; }

/* The parent theme prints a generic sphere-banner + breadcrumb band
   above every page/archive's content (class inner-section-area
   live-breadcrumb, from header-menu-bottom.php). It's a sibling of our
   <main>, not a descendant, so it can't be targeted with a scoped
   descendant selector - it duplicates our own page title, so hide it.
   Safe unscoped: this stylesheet only ever loads on is_home()/
   is_singular('post') (see functions.php's enqueue gate). */
.inner-section-area.live-breadcrumb {
	display: none;
}

@media (max-width: 640px) {
	.blog-hero { padding: 48px 0 32px; }
	.blog-grid { grid-template-columns: 1fr; }
}
