/* Blog archive + single */

.pb-main--blog {
	padding-top: 0;
}

.pb-blog-hero {
	padding: 2.4rem 0 1.8rem;
	background:
		radial-gradient(520px 180px at 8% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
		linear-gradient(180deg, #f4f7ff 0%, #fff 100%);
	border-bottom: 1px solid var(--pb-border);
	margin-bottom: 1.6rem;
}

.pb-blog-hero h1 {
	margin: 0;
	font-family: var(--pb-font-display);
	font-size: clamp(2rem, 3.4vw, 2.7rem);
	letter-spacing: -0.035em;
}

.pb-blog-hero__eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pb-action-blue);
}

.pb-blog-hero__text {
	margin: 0.65rem 0 0;
	max-width: 42rem;
	color: var(--pb-text-secondary);
}

.pb-blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2rem;
	align-items: start;
	padding-bottom: 2.5rem;
	overflow: visible;
}

.pb-blog-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.pb-blog-grid .pb-blog-card--featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	min-height: 280px;
}

.pb-blog-card {
	background: #fff;
	border: 1px solid var(--pb-border);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.pb-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.pb-blog-card__media {
	display: block;
	background: #eef2ff;
	overflow: hidden;
	min-height: 180px;
}

.pb-blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 420ms ease;
}

.pb-blog-card:hover .pb-blog-card__media img {
	transform: scale(1.05);
}

.pb-blog-card__ph {
	display: grid;
	place-items: center;
	height: 100%;
	min-height: 180px;
	color: var(--pb-action-blue);
}

.pb-blog-card__body {
	padding: 1rem 1.05rem 1.1rem;
}

.pb-blog-card__meta {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.45rem;
	font-size: 0.75rem;
	color: var(--pb-text-secondary);
}

.pb-blog-card__cat {
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: #eef3ff;
	color: var(--pb-action-blue);
	font-weight: 750;
	text-decoration: none;
}

.pb-blog-card__title {
	margin: 0 0 0.4rem;
	font-size: 1.12rem;
	line-height: 1.3;
}

.pb-blog-card--featured .pb-blog-card__title { font-size: 1.55rem; }

.pb-blog-card__title a {
	color: inherit;
	text-decoration: none;
}

.pb-blog-card__title a:hover { color: var(--pb-action-blue); }

.pb-blog-card__excerpt {
	margin: 0 0 0.75rem;
	color: var(--pb-text-secondary);
	font-size: 0.92rem;
	line-height: 1.55;
}

.pb-blog-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.84rem;
	font-weight: 750;
	color: var(--pb-action-blue);
	text-decoration: none;
}

.pb-blog-card__more .pb-icon { width: 0.95rem; height: 0.95rem; }

/* Sidebar */
.pb-blog-sidebar {
	background: #fff;
	border: 1px solid var(--pb-border);
	border-radius: 18px;
	padding: 1.1rem 1.05rem 1.2rem;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.pb-blog-widget + .pb-blog-widget {
	margin-top: 1.15rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--pb-border);
}

.pb-blog-widget__title {
	margin: 0 0 0.7rem;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--pb-text-secondary);
}

.pb-blog-search {
	display: flex;
	align-items: center;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	background: #f8fafc;
	overflow: hidden;
}

.pb-blog-search__icon {
	display: grid;
	place-items: center;
	padding-left: 0.7rem;
	color: var(--pb-text-secondary);
}

.pb-blog-search__icon .pb-icon { width: 1rem; height: 1rem; }

.pb-blog-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.7rem 0.55rem;
	outline: none;
}

.pb-blog-search button {
	width: 42px;
	height: 42px;
	border: 0;
	background: var(--pb-action-blue);
	color: #fff;
	cursor: pointer;
}

.pb-blog-search button .pb-icon { width: 1.05rem; height: 1.05rem; }

.pb-blog-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-blog-cats a {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.48rem 0.6rem;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
	font-weight: 650;
	font-size: 0.9rem;
}

.pb-blog-cats a:hover,
.pb-blog-cats li.is-active a {
	background: #eef3ff;
	color: var(--pb-action-blue);
}

.pb-blog-cats em {
	font-style: normal;
	min-width: 1.5rem;
	text-align: center;
	border-radius: 999px;
	background: #f3f4f6;
	font-size: 0.7rem;
	font-weight: 750;
	color: var(--pb-text-secondary);
}

.pb-blog-picks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}

.pb-blog-picks a {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 0.7rem;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.pb-blog-picks__img {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	background: #f3f4f6;
}

.pb-blog-picks__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pb-blog-picks__meta strong {
	display: block;
	font-size: 0.86rem;
	line-height: 1.3;
	margin-bottom: 0.15rem;
}

.pb-blog-picks__meta b {
	color: var(--pb-action-blue);
	font-size: 0.82rem;
}

.pb-blog-widget__more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0.85rem;
	font-size: 0.82rem;
	font-weight: 750;
	color: var(--pb-action-blue);
	text-decoration: none;
}

/* Sticky desktop sidebars */
@media (min-width: 901px) {
	.pb-blog-sidebar,
	.pb-shop-sidebar {
		position: sticky;
		top: calc(var(--pb-header-h, 70px) + 16px);
		max-height: calc(100dvh - var(--pb-header-h, 70px) - 32px);
		overflow-y: auto;
		align-self: start;
		overscroll-behavior: contain;
		z-index: 4;
	}

	.admin-bar .pb-blog-sidebar,
	.admin-bar .pb-shop-sidebar {
		top: calc(var(--pb-header-h, 70px) + 48px);
		max-height: calc(100dvh - var(--pb-header-h, 70px) - 64px);
	}
}

/* Single article */
.pb-article__hero {
	padding: 2.1rem 0 0.4rem;
	background: linear-gradient(180deg, #f4f7ff 0%, #fff 100%);
}

.pb-article__crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.85rem;
	font-size: 0.8rem;
	color: var(--pb-text-secondary);
}

.pb-article__crumbs a { color: inherit; text-decoration: none; }
.pb-article__crumbs a:hover { color: var(--pb-action-blue); }

.pb-article__cat {
	display: inline-flex;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: #e8f0ff;
	color: var(--pb-action-blue);
	font-size: 0.75rem;
	font-weight: 800;
	text-decoration: none;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pb-article__title {
	margin: 0.7rem 0 0.75rem;
	max-width: 18ch;
	font-family: var(--pb-font-display);
	font-size: clamp(2rem, 4vw, 3.1rem);
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.pb-article__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	color: var(--pb-text-secondary);
	font-size: 0.88rem;
	font-weight: 650;
	padding-bottom: 1.2rem;
}

.pb-article__date {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.pb-article__date .pb-icon { width: 0.95rem; height: 0.95rem; }

.pb-article__cover {
	margin: 0 0 1.6rem;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.pb-article__cover img {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	display: block;
}

.pb-article__content {
	max-width: 42rem;
	font-size: 1.05rem;
	line-height: 1.75;
}

.pb-article__content p { margin: 0 0 1.1rem; }
.pb-article__content h2,
.pb-article__content h3 {
	margin: 1.6rem 0 0.6rem;
	letter-spacing: -0.02em;
}

.pb-more {
	margin-top: 2.6rem;
	padding: 1.35rem 1.25rem 1.15rem;
	border: 1px solid #dbe4ff;
	border-radius: 22px;
	background:
		radial-gradient(280px 120px at 100% 0%, rgba(37, 99, 235, 0.1), transparent 70%),
		linear-gradient(180deg, #f7f9ff 0%, #fff 68%);
}

.pb-more__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.pb-more__eyebrow {
	margin: 0 0 0.2rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pb-action-blue);
}

.pb-more__head h2 {
	margin: 0;
	font-family: var(--pb-font-display);
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.pb-more__all {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	flex-shrink: 0;
	font-size: 0.82rem;
	font-weight: 750;
	color: var(--pb-action-blue);
	text-decoration: none;
	white-space: nowrap;
}

.pb-more__all .pb-icon { width: 0.95rem; height: 0.95rem; }
.pb-more__all:hover { color: #1d4ed8; }

.pb-more__list {
	display: grid;
	gap: 0.55rem;
}

.pb-more__item {
	display: grid;
	grid-template-columns: 2rem 76px minmax(0, 1fr) 2.4rem;
	align-items: center;
	gap: 0.8rem;
	padding: 0.55rem 0.65rem;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e8edf7;
	text-decoration: none;
	color: inherit;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pb-more__item:hover {
	transform: translateY(-2px);
	border-color: #c7d7fe;
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.pb-more__num {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #93c5fd;
	text-align: center;
}

.pb-more__item:hover .pb-more__num { color: var(--pb-action-blue); }

.pb-more__thumb {
	width: 76px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	background: #eef2ff;
}

.pb-more__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 360ms ease;
}

.pb-more__item:hover .pb-more__thumb img { transform: scale(1.06); }

.pb-more__ph {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--pb-action-blue);
}

.pb-more__ph .pb-icon { width: 1.1rem; height: 1.1rem; }

.pb-more__copy {
	min-width: 0;
	display: grid;
	gap: 0.18rem;
}

.pb-more__cat {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pb-action-blue);
}

.pb-more__title {
	font-size: 0.98rem;
	line-height: 1.3;
	letter-spacing: -0.02em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pb-more__date {
	font-size: 0.75rem;
	font-weight: 650;
	color: var(--pb-text-secondary);
}

.pb-more__go {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: #eef3ff;
	color: var(--pb-action-blue);
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.pb-more__go .pb-icon { width: 1rem; height: 1rem; }

.pb-more__item:hover .pb-more__go {
	background: var(--pb-action-blue);
	color: #fff;
	transform: translateX(2px);
}

@media (max-width: 640px) {
	.pb-more { padding: 1.1rem 0.85rem 0.9rem; }
	.pb-more__item {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 0.7rem;
	}
	.pb-more__num,
	.pb-more__go { display: none; }
	.pb-more__thumb {
		width: 64px;
		height: 64px;
	}
}

.pb-blog-pager { margin-top: 1.5rem; }

/* Comments */
.pb-comments {
	margin-top: 2.2rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--pb-border);
}

.pb-comments__title { margin: 0 0 1rem; font-size: 1.2rem; }

.pb-comments__list {
	list-style: none;
	margin: 0 0 1.4rem;
	padding: 0;
}

.pb-comments__list .comment {
	padding: 0.9rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--pb-border);
	border-radius: 12px;
	padding: 0.7rem 0.85rem;
	margin-bottom: 0.7rem;
}

.comment-form .submit,
.comment-form .pb-btn {
	min-height: 44px;
	padding: 0 1.2rem;
	border: 0;
	border-radius: 999px;
	background: var(--pb-action-blue);
	color: #fff;
	font-weight: 750;
	cursor: pointer;
}

@media (max-width: 900px) {
	.pb-blog-layout {
		grid-template-columns: 1fr;
	}

	.pb-blog-sidebar {
		order: -1;
	}

	.pb-blog-grid,
	.pb-blog-grid .pb-blog-card--featured {
		grid-template-columns: 1fr;
	}

	.pb-article__title { max-width: none; }
}
