/* =============================================================
   Battle Pencils — article-only styles.
   Loaded ONLY by single.php and archive.php. Adds new class names
   exclusively (bp-* prefix) and overrides nothing in redesign.css,
   so no existing page's appearance, layout or responsiveness changes.
   Brand tokens are inherited from redesign.css :root.
   ============================================================= */

/* ---------- breadcrumbs + byline ---------- */
.bp-crumbs {
	font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap;
	gap: 8px; align-items: center; margin-bottom: 18px;
}
.bp-crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.bp-crumbs a:hover { color: var(--red); border-bottom-color: currentColor; }
.bp-crumbs span[aria-hidden] { opacity: .45; }
.bp-crumbs [aria-current] { color: var(--graphite); font-weight: 600; }

.bp-meta {
	display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
	font-size: .88rem; color: var(--muted); margin-top: 14px;
}
.bp-meta span[aria-hidden] { opacity: .4; }

/* ---------- featured image ---------- */
.bp-featured { margin: 0 auto 6px; max-width: 900px; }
.bp-featured img {
	width: 100%; height: auto; display: block;
	border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- article prose extensions ---------- */
.bp-prose { max-width: 760px; }
.bp-prose figure { margin: 30px 0; }
.bp-prose figure img {
	width: 100%; height: auto; display: block;
	border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.bp-prose figcaption {
	font-size: .85rem; color: var(--muted); margin-top: 10px;
	text-align: center; line-height: 1.5;
}
.bp-prose h2 { scroll-margin-top: 110px; }
.bp-prose h3 { scroll-margin-top: 110px; }

/* ---------- key takeaways ---------- */
.bp-takeaways {
	background: var(--cream); border: 1px solid var(--line);
	border-left: 4px solid var(--red); border-radius: var(--radius-sm);
	padding: 22px 24px; margin: 28px 0;
}
.bp-takeaways h2 {
	font-size: 1rem !important; margin: 0 0 12px !important;
	letter-spacing: 1.2px !important; color: var(--red) !important;
}
.bp-takeaways ul { margin: 0; padding-left: 1.2em; }
.bp-takeaways li { margin-bottom: 8px; }
.bp-takeaways li:last-child { margin-bottom: 0; }

/* ---------- safety / note callout ---------- */
.bp-note {
	background: #fff9ec; border: 1px solid #f0d9a8; border-left: 4px solid var(--orange);
	border-radius: var(--radius-sm); padding: 18px 22px; margin: 26px 0;
}
.bp-note p:last-child { margin-bottom: 0; }
.bp-note strong { color: #8a5a10; }

/* ---------- comparison tables ---------- */
.bp-table-wrap {
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--paper); box-shadow: var(--shadow-sm);
}
.bp-table-wrap table {
	width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem;
}
.bp-table-wrap caption {
	caption-side: top; text-align: left; padding: 14px 18px 12px;
	font-family: var(--display); font-weight: 900; text-transform: uppercase;
	letter-spacing: .6px; font-size: .95rem; color: var(--graphite);
	border-bottom: 1px solid var(--line); background: var(--cream);
}
.bp-table-wrap th, .bp-table-wrap td {
	padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line);
	vertical-align: top; line-height: 1.55;
}
.bp-table-wrap thead th {
	background: var(--graphite); color: #fff; font-weight: 700;
	font-size: .82rem; letter-spacing: .4px; text-transform: uppercase;
	border-bottom: none; white-space: nowrap;
}
.bp-table-wrap tbody tr:last-child td { border-bottom: none; }
.bp-table-wrap tbody tr:nth-child(even) { background: #fcfaf6; }
.bp-table-wrap tbody th {
	font-weight: 700; color: var(--graphite); background: #fcfaf6; white-space: nowrap;
}
.bp-table-wrap .yes { color: #1d7a3d; font-weight: 700; }
.bp-table-wrap .no  { color: var(--red); font-weight: 700; }
.bp-scroll-hint {
	font-size: .78rem; color: var(--muted); margin: -18px 0 26px; font-style: italic;
}
@media (min-width: 680px) { .bp-scroll-hint { display: none; } }

/* ---------- FAQ ---------- */
.bp-faq { margin: 38px 0 10px; }
.bp-faq-item {
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 18px 22px; margin-bottom: 12px; background: var(--paper);
}
.bp-faq-item h3 {
	margin: 0 0 8px !important; font-size: 1.05rem !important; color: var(--graphite);
}
.bp-faq-a p:last-child { margin-bottom: 0; }

/* ---------- inline CTA ---------- */
.bp-cta {
	max-width: 760px; margin: 46px auto 0; text-align: center;
	background: var(--graphite); color: #fff; border-radius: var(--radius);
	padding: 34px 28px; box-shadow: var(--shadow);
}
.bp-cta h2 {
	font-family: var(--display); font-weight: 900; text-transform: uppercase;
	letter-spacing: .8px; font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin-bottom: 10px; color: #fff;
}
.bp-cta p { color: rgba(255,255,255,.82); margin-bottom: 20px; line-height: 1.6; }

/* ---------- related ---------- */
.bp-related { max-width: 900px; margin: 52px auto 0; }
.bp-related > h2 {
	font-family: var(--display); font-weight: 900; text-transform: uppercase;
	letter-spacing: .6px; font-size: 1.3rem; color: var(--graphite); margin-bottom: 18px;
}
.bp-related-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bp-related-grid { grid-template-columns: repeat(3, 1fr); } }
.bp-archive-grid { max-width: 1000px; margin: 0 auto; }
@media (min-width: 720px) { .bp-archive-grid { grid-template-columns: repeat(2, 1fr); } }
.bp-related-card {
	display: block; text-decoration: none; background: var(--paper);
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 20px 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.bp-related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ddd5c6; }
.bp-related-card h2, .bp-related-card h3 {
	font-size: 1.02rem; color: var(--graphite); margin: 0 0 8px; line-height: 1.35; font-weight: 700;
}
.bp-related-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.55; }
.bp-card-date { display: block; margin-top: 12px; font-size: .78rem; color: var(--muted); }

/* ---------- pager ---------- */
.bp-pager { margin-top: 32px; display: flex; justify-content: center; }
.bp-pager ul { list-style: none; display: flex; gap: 8px; padding: 0; flex-wrap: wrap; }
.bp-pager a, .bp-pager span {
	display: inline-block; padding: 8px 14px; border: 1px solid var(--line);
	border-radius: 8px; text-decoration: none; color: var(--graphite); font-size: .9rem;
}
.bp-pager .current { background: var(--red); color: #fff; border-color: var(--red); }

@media (prefers-reduced-motion: reduce) {
	.bp-related-card { transition: none; }
}
