/* ==========================================================================
   Blog — index, archives, single post (BuyCustomPaper)
   ========================================================================== */

.bcp-blog {
	--b-ink: var(--primary, #1F2A40);
	--b-kraft: var(--secondary, #9A6B40);
	--b-kraft-text: #7A5636;
	--b-cream: #FBF7F1;
	--b-sand: var(--secondary-soft, #F6EFE6);
	--b-line: #EAE1D4;
	--b-muted: #5D6472;
	--b-radius: 18px;
	--b-shadow: 0 1px 2px rgba(31, 42, 64, .05), 0 12px 32px -12px rgba(31, 42, 64, .14);
	background: #fff;
	color: var(--b-ink);
}
.bcp-blog a { text-decoration: none; }
/* .row.g-5 (3rem gutter) is wider than the container padding on phones: keep it inside. */
@media (max-width: 991.98px) { .bcp-blog .row.g-5 { --bs-gutter-x: 1.5rem; } }

.bcp-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--b-kraft-text);
}
.bcp-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--b-kraft); border-radius: 2px; }

.bcp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px; border-radius: 999px;
	background: var(--b-ink); color: #fff !important; font-weight: 600;
	transition: background .2s, transform .2s;
}
.bcp-btn:hover { background: var(--b-kraft); transform: translateY(-1px); }
.bcp-btn-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--b-kraft-text); }
.bcp-btn-link i { transition: transform .2s; }
.bcp-btn-link:hover i { transform: translateX(4px); }
.bcp-blog :focus-visible { outline: 3px solid var(--b-kraft); outline-offset: 3px; border-radius: 6px; }

/* ---------- Index hero ---------- */
.bcp-blog-hero {
	position: relative; overflow: hidden;
	padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
	text-align: center;
	background:
		radial-gradient(circle at 12% 20%, rgba(154, 107, 64, .10), transparent 40%),
		radial-gradient(circle at 88% 80%, rgba(31, 42, 64, .07), transparent 45%),
		var(--b-cream);
	border-bottom: 1px solid var(--b-line);
}
.bcp-blog-hero .bcp-eyebrow { justify-content: center; }
.bcp-blog-hero__title { margin: 0 auto 14px; max-width: 16ch; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.bcp-blog-hero__lead { max-width: 60ch; margin: 0 auto; font-size: 1.125rem; color: var(--b-muted); }
.bcp-blog-hero__lead p { margin: 0; }

.bcp-blog-body { padding: clamp(48px, 6vw, 80px) 0; }

/* ---------- Featured post ---------- */
.bcp-featured {
	display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 40px;
	background: #fff; border: 1px solid var(--b-line); border-radius: var(--b-radius); overflow: hidden; box-shadow: var(--b-shadow);
}
.bcp-featured__media { display: block; min-height: 300px; background: var(--b-sand); }
.bcp-featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcp-featured__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bcp-featured__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--b-muted); margin-bottom: 10px; }
.bcp-featured__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.15; margin: 12px 0; }
.bcp-featured__title a { color: var(--b-ink); }
.bcp-featured__title a:hover { color: var(--b-kraft-text); }
.bcp-featured__excerpt { color: var(--b-muted); margin-bottom: 20px; }
@media (max-width: 767.98px) { .bcp-featured { grid-template-columns: 1fr; } .bcp-featured__media { min-height: 220px; } }

/* ---------- Post card ---------- */
.bcp-post-card {
	display: flex; flex-direction: column; height: 100%;
	background: #fff; border: 1px solid var(--b-line); border-radius: var(--b-radius); overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.bcp-post-card:hover { transform: translateY(-4px); box-shadow: var(--b-shadow); border-color: transparent; }
.bcp-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--b-sand); }
.bcp-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bcp-post-card:hover .bcp-post-card__media img { transform: scale(1.04); }
.bcp-post-card__ph {
	display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; font-size: 2rem; color: var(--b-kraft);
	background: repeating-linear-gradient(135deg, var(--b-sand) 0 14px, #F1E7DA 14px 28px);
}
.bcp-post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.bcp-post-card__cat {
	align-self: flex-start; display: inline-block; padding: 5px 12px; margin-bottom: 12px;
	font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--b-kraft-text) !important;
	background: var(--b-sand); border-radius: 999px;
}
.bcp-post-card__title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
.bcp-post-card__title a { color: var(--b-ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.bcp-post-card__title a:hover { background-size: 100% 1px; }
.bcp-post-card__excerpt { color: var(--b-muted); font-size: .95rem; margin: 0 0 18px; }
.bcp-post-card__meta {
	margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--b-line);
	display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--b-muted);
}
.bcp-post-card__more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--b-kraft-text); }
.bcp-post-card__more i { transition: transform .2s; }
.bcp-post-card:hover .bcp-post-card__more i { transform: translateX(4px); }

/* ---------- Pagination ---------- */
.bcp-pagination { margin-top: 44px; }
.bcp-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.bcp-pagination a, .bcp-pagination span.page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border: 1px solid var(--b-line); border-radius: 12px; font-weight: 600; color: var(--b-ink);
	transition: background .2s, color .2s, border-color .2s;
}
.bcp-pagination a:hover { border-color: var(--b-kraft); color: var(--b-kraft-text); }
.bcp-pagination .current { background: var(--b-ink); border-color: var(--b-ink); color: #fff; }
.bcp-pagination .dots { border: 0; }

/* ---------- Sidebar ---------- */
.bcp-sidebar { display: flex; flex-direction: column; gap: 24px; }
.bcp-sidebar--sticky { position: sticky; top: 110px; }
@media (max-width: 991.98px) { .bcp-sidebar--sticky { position: static; } }
.bcp-widget { padding: 26px; background: #fff; border: 1px solid var(--b-line); border-radius: var(--b-radius); }
.bcp-widget p { color: var(--b-muted); font-size: .95rem; }
.bcp-widget__title { font-size: 1.1rem; font-weight: 700; margin: 0 0 16px; color: var(--b-ink); }
.bcp-widget--cta { background: var(--b-ink); border-color: var(--b-ink); }
.bcp-widget--cta .bcp-widget__title, .bcp-widget--cta p { color: #fff; }
.bcp-widget--cta .bcp-eyebrow { color: var(--secondary-light, #E8DBC9); }
.bcp-widget--cta .bcp-eyebrow::before { background: var(--secondary-light, #E8DBC9); }
.bcp-widget--cta .bcp-btn { background: #fff; color: var(--b-ink) !important; }
.bcp-widget--cta .bcp-btn:hover { background: var(--secondary-light, #E8DBC9); }
.bcp-widget--news { background: var(--b-cream); }

.bcp-search { position: relative; }
.bcp-search input[type="search"] {
	width: 100%; height: 50px; padding: 0 52px 0 16px; font: inherit; font-size: 16px;
	border: 1px solid var(--b-line); border-radius: 12px; background: var(--b-cream);
}
.bcp-search input:focus { outline: none; border-color: var(--b-kraft); box-shadow: 0 0 0 3px rgba(154, 107, 64, .18); }
.bcp-search button {
	position: absolute; top: 5px; right: 5px; width: 40px; height: 40px; border: 0; border-radius: 10px;
	background: var(--b-ink); color: #fff; cursor: pointer;
}
/* Live results (assets/js/blog-search.js) */
.bcp-search.is-loading button i::before { content: "\f110"; }
.bcp-search.is-loading button i { animation: fa-spin 1s linear infinite; }
.bcp-live { margin-top: 10px; border: 1px solid var(--b-line); border-radius: 12px; background: #fff; box-shadow: var(--b-shadow); overflow: hidden; }
.bcp-live__msg { margin: 0; padding: 14px 16px; font-size: .95rem; color: var(--b-muted); }
.bcp-live__list { list-style: none; margin: 0; padding: 6px; max-height: min(60vh, 420px); overflow-y: auto; }
.bcp-live__item { border-radius: 10px; }
.bcp-live__item[aria-selected="true"], .bcp-live__item:hover { background: var(--b-sand); }
.bcp-live__item[aria-selected="true"] { outline: 2px solid var(--b-kraft); outline-offset: -2px; }
.bcp-live__item a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; color: var(--b-ink); }
.bcp-live__item img, .bcp-live__ph { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--b-sand); }
.bcp-live__text { display: flex; flex-direction: column; min-width: 0; }
.bcp-live__title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.bcp-live__date { font-size: .85rem; color: var(--b-muted); }
.bcp-live__more { display: block; padding: 12px 16px; border-top: 1px solid var(--b-line); font-weight: 600; color: var(--b-kraft-text); }
.bcp-live__more:hover { background: var(--b-cream); }
.bcp-topics { list-style: none; margin: 0; padding: 0; }
.bcp-topics a {
	display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
	color: var(--b-ink); border-bottom: 1px solid var(--b-line); font-weight: 500;
}
.bcp-topics li:last-child a { border-bottom: 0; }
.bcp-topics a:hover { color: var(--b-kraft-text); }
.bcp-topics span { min-width: 30px; padding: 2px 8px; text-align: center; font-size: 12px; border-radius: 999px; background: var(--b-sand); color: var(--b-kraft-text); }

.bcp-empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--b-line); border-radius: var(--b-radius); background: var(--b-cream); }
.bcp-empty i { font-size: 2.5rem; color: var(--b-kraft); margin-bottom: 16px; }
.bcp-empty p { color: var(--b-muted); max-width: 46ch; margin: 0 auto 20px; }

/* ---------- Single post ---------- */
.bcp-article-hero {
	padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); text-align: center;
	background: linear-gradient(180deg, var(--b-cream), #fff);
}
.bcp-crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 14px; color: var(--b-muted); }
.bcp-crumbs a { color: var(--b-muted); }
.bcp-crumbs a:hover { color: var(--b-kraft-text); }
.bcp-article-hero__title { max-width: 22ch; margin: 6px auto 16px; font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.bcp-article-hero__lead { max-width: 62ch; margin: 0 auto 26px; font-size: 1.15rem; color: var(--b-muted); }
.bcp-article-meta { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.bcp-article-meta img { border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--b-line); }
.bcp-article-meta__author { display: block; font-weight: 700; color: var(--b-ink); }
.bcp-article-meta__sub { font-size: 14px; color: var(--b-muted); }

.bcp-article-cover { margin: 0 auto; max-width: 1100px; }
.bcp-article-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 24px; box-shadow: var(--b-shadow); display: block; }
.bcp-article-cover figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--b-muted); }

.bcp-article-body { padding: clamp(40px, 5vw, 72px) 0; }

.bcp-prose { font-size: 1.125rem; line-height: 1.8; color: #2E3646; max-width: 72ch; }
.bcp-prose > * + * { margin-top: 1.1em; }
.bcp-prose h2 { font-size: 1.75rem; font-weight: 800; line-height: 1.25; margin-top: 2em; color: var(--b-ink); }
.bcp-prose h3 { font-size: 1.35rem; font-weight: 700; margin-top: 1.7em; color: var(--b-ink); }
.bcp-prose h4 { font-size: 1.15rem; font-weight: 700; margin-top: 1.5em; }
.bcp-prose p { margin-bottom: 0; }
.bcp-prose a { color: var(--b-kraft-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bcp-prose a:hover { color: var(--b-ink); }
.bcp-prose ul, .bcp-prose ol { padding-left: 1.3em; }
.bcp-prose li + li { margin-top: .4em; }
.bcp-prose ul li::marker { color: var(--b-kraft); }
.bcp-prose blockquote {
	margin: 2em 0; padding: 22px 26px; border-left: 4px solid var(--b-kraft);
	background: var(--b-cream); border-radius: 0 14px 14px 0; font-size: 1.2rem; font-style: italic; color: var(--b-ink);
}
.bcp-prose blockquote p { margin: 0; }
.bcp-prose img, .bcp-prose figure img { max-width: 100%; height: auto; border-radius: 14px; }
.bcp-prose figure { margin: 2em 0; }
.bcp-prose figcaption { font-size: 14px; color: var(--b-muted); text-align: center; margin-top: 8px; }
.bcp-prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.bcp-prose th, .bcp-prose td { padding: 10px 12px; border-bottom: 1px solid var(--b-line); text-align: left; }
.bcp-prose th { background: var(--b-sand); }
.bcp-prose code { padding: 2px 6px; border-radius: 6px; background: var(--b-sand); font-size: .9em; }
.bcp-prose hr { border: 0; border-top: 1px solid var(--b-line); margin: 2.5em 0; }

.bcp-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 40px 0 0; }
.bcp-tags a { display: inline-block; padding: 6px 14px; border: 1px solid var(--b-line); border-radius: 999px; font-size: 14px; color: var(--b-muted); }
.bcp-tags a:hover { border-color: var(--b-kraft); color: var(--b-kraft-text); }

.bcp-author-box {
	display: flex; gap: 20px; align-items: flex-start; margin-top: 40px; padding: 28px;
	background: var(--b-cream); border: 1px solid var(--b-line); border-radius: var(--b-radius);
}
.bcp-author-box img { border-radius: 50%; flex-shrink: 0; }
.bcp-author-box .bcp-eyebrow { margin-bottom: 4px; }
.bcp-author-box__name { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; }
.bcp-author-box p { color: var(--b-muted); }
@media (max-width: 575.98px) { .bcp-author-box { flex-direction: column; } }

.bcp-share { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.bcp-share a {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--b-line); color: var(--b-ink); transition: background .2s, color .2s, border-color .2s;
}
.bcp-share a:hover { background: var(--b-ink); border-color: var(--b-ink); color: #fff; }

.bcp-related { padding: clamp(48px, 6vw, 88px) 0; background: var(--b-cream); border-top: 1px solid var(--b-line); }
.bcp-related__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 32px; }

@media (prefers-reduced-motion: reduce) {
	.bcp-blog *, .bcp-blog *::before, .bcp-blog *::after { transition: none !important; }
}
