/* ==========================================================================
   Pankaj Yogpeeth: blog.css
   The blog listing (blog.php):
     1. a compact cover on the site's yoga artwork (the Contact page's
        first section), with four glass counters whose icons are the
        Magnific-generated blog-* symbols in assets/icons/menu.svg;
     2. frosted-glass article rows and a glass filter sidebar on a soft
        mint field with the carved jali, so the glass has something to blur.
   Posters are uploaded at 1920 x 1080 with their title in the picture, so
   every image is shown whole at 16:9 (object-fit: contain), never cropped.
   Load more and the pager (pyp-pl-*) are the shared listing controls from
   config/post-listing.php + assets/js/post-listing.js.
   ========================================================================== */

.pyp-blog {
	--pyp-saffron-deep: #d9822b;
	/* Glass: the same recipe as the Contact page */
	--pyp-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.28));
	--pyp-glass-edge: 1px solid rgba(255, 255, 255, 0.75);
	--pyp-glass-blur: blur(18px) saturate(180%);
	--pyp-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.2), 0 18px 36px -22px rgba(15, 59, 39, 0.45);
	--pyp-glass-shadow-lift: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.2), 0 28px 48px -24px rgba(15, 59, 39, 0.55);
	--pyp-tile: linear-gradient(145deg, #2f8a4c, var(--pyp-forest));
	--pyp-blog-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 130V30C0 20 16 14 30 9C40 5 46 3 50 0C54 3 60 5 70 9C84 14 100 20 100 30V121Q100 130 91 130H9Q0 130 0 121Z'/%3E%3C/svg%3E");
	color: var(--pyp-ink);
	font-family: var(--pyp-font-sans);
	background: #f4f9ef;
}

@media (min-width: 768px) {
	.pyp-blog { --pyp-gutter: 28px; }
}

.pyp-blog-glass {
	border: var(--pyp-glass-edge);
	background: var(--pyp-glass-bg);
	-webkit-backdrop-filter: var(--pyp-glass-blur);
	backdrop-filter: var(--pyp-glass-blur);
	box-shadow: var(--pyp-glass-shadow);
}

/* Shared: Om eyebrow, accent words, lotus */
.pyp-blog-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font: 600 11px/1 var(--pyp-font-sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pyp-green);
}

/* Om and the lotus are sacred symbols, so they alone take the saffron */
.pyp-blog-om { flex-shrink: 0; width: 18px; height: 18px; color: var(--pyp-saffron-deep); fill: currentColor; }
.pyp-blog-lotus { display: block; width: 26px; height: 26px; color: var(--pyp-saffron-deep); fill: currentColor; }

.pyp-blog :is(h1, h2) em {
	font-style: normal;
	color: var(--pyp-green);
	background: linear-gradient(100deg, #12512f 0%, #1d7044 40%, #2f8a4c 70%, #4a9e45 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}


/* 1. Compact cover
   ========================================================================== */
.pyp-blog-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(20px, 2.4vw, 34px) clamp(24px, 2.8vw, 40px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.pyp-blog-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

/* Keep the words crisp over the artwork */
.pyp-blog-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(248, 251, 244, 0.92) 0%, rgba(248, 251, 244, 0.7) 45%, rgba(248, 251, 244, 0.15) 100%);
}

.pyp-blog-hero__grid {
	display: grid;
	gap: 20px;
	align-items: center;
}

.pyp-blog-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

/* Breadcrumb on light glass */
.pyp-blog-crumbs ol {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0 0 4px;
	padding: 4px;
	border: var(--pyp-glass-edge);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: inset 0 1px 0 #fff, 0 8px 18px -14px rgba(15, 59, 39, 0.4);
	list-style: none;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1;
}

.pyp-blog-crumbs li { display: inline-flex; align-items: center; min-width: 0; }

.pyp-blog-crumbs li + li::before {
	content: '';
	width: 5px;
	height: 5px;
	margin: 0 5px 0 2px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	color: rgba(15, 59, 39, 0.35);
	transform: rotate(45deg);
}

.pyp-blog-crumbs :is(a, span) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border-radius: 999px;
	color: var(--pyp-ink-soft);
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-blog-crumbs a:hover { background: rgba(29, 112, 68, 0.08); color: var(--pyp-forest); }
.pyp-blog-crumbs [aria-current] span { max-width: 30ch; overflow: hidden; text-overflow: ellipsis; color: var(--pyp-forest); font-weight: 600; }

.pyp-blog-hero__title {
	margin: 0;
	font: 500 clamp(30px, 3.2vw, 48px)/1.08 var(--pyp-font-menu);
	letter-spacing: -0.015em;
	color: var(--pyp-forest);
	text-wrap: balance;
}

.pyp-blog-hero__lede {
	max-width: 60ch;
	margin: 0;
	font: 400 clamp(14.5px, 1.1vw, 16px)/1.6 var(--pyp-font-sans);
	color: var(--pyp-ink-soft);
	text-wrap: pretty;
}

/* Counters: glass tiles with the generated icons */
.pyp-blog-counters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pyp-blog-counters li {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px 14px 12px 12px;
	border: var(--pyp-glass-edge);
	border-radius: 18px;
	background: var(--pyp-glass-bg);
	-webkit-backdrop-filter: var(--pyp-glass-blur);
	backdrop-filter: var(--pyp-glass-blur);
	box-shadow: var(--pyp-glass-shadow);
}

.pyp-blog-counters__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: var(--pyp-tile);
	box-shadow: 0 10px 18px -10px rgba(15, 59, 39, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	color: #fff;
}

.pyp-blog-counters__icon svg { width: 24px; height: 24px; fill: currentColor; }

.pyp-blog-counters li > span:last-child { display: grid; gap: 3px; min-width: 0; }

.pyp-blog-counters b {
	overflow: hidden;
	font: 500 clamp(18px, 1.5vw, 22px)/1.1 var(--pyp-font-menu);
	color: var(--pyp-forest);
	white-space: nowrap;
	text-overflow: ellipsis;
	font-variant-numeric: tabular-nums;
}

.pyp-blog-counters small {
	font: 600 10px/1 var(--pyp-font-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pyp-ink-soft);
}

@media (min-width: 1100px) {
	.pyp-blog-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; }
}

@media (min-width: 1500px) {
	/* One row of four; each tile keeps its icon on the left and the figure on the right */
	.pyp-blog-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 900px); }
	.pyp-blog-counters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* 2. The field: soft mint, carved jali and a glow for the glass to blur
   ========================================================================== */
.pyp-blog-field {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(24px, 3vw, 44px) clamp(48px, 6vw, 88px);
	background:
		radial-gradient(50% 40% at 100% 0%, rgba(156, 207, 104, 0.3), transparent 70%),
		radial-gradient(45% 35% at 0% 60%, rgba(156, 207, 104, 0.22), transparent 70%),
		linear-gradient(180deg, #f6f9f1 0%, #eef5e7 50%, #f6f9f1 100%);
}

.pyp-blog-jali {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: rgba(29, 112, 68, 0.07);
	stroke-width: 1;
	pointer-events: none;
}

.pyp-blog-field__glow {
	position: absolute;
	top: 18%;
	left: 30%;
	z-index: -1;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(200, 230, 160, 0.55), transparent 65%);
	filter: blur(30px);
	pointer-events: none;
}

.pyp-blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.pyp-blog-main { min-width: 0; }

.pyp-blog-list__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 18px;
	margin-bottom: 18px;
}

.pyp-blog-list__title {
	margin: 0;
	font: 500 clamp(22px, 2vw, 30px)/1.15 var(--pyp-font-menu);
	letter-spacing: -0.015em;
	color: var(--pyp-forest);
}

.pyp-blog-list__count { margin: 6px 0 0; font-size: 13.5px; color: var(--pyp-ink-soft); }
.pyp-blog-list__count b { color: var(--pyp-forest); font-weight: 600; }

.pyp-blog-clear {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 5px 5px 5px 16px;
	border-radius: 999px;
	background: var(--pyp-tile);
	box-shadow: 0 10px 20px -12px rgba(15, 59, 39, 0.7);
	color: #fff;
	font: 500 14px/1 var(--pyp-font-menu);
	text-decoration: none;
}

.pyp-blog-clear i {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #c8e6a0;
	color: var(--pyp-forest);
	font-size: 11px;
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-blog-clear:hover { color: #fff; }
.pyp-blog-clear:hover i { transform: rotate(90deg); }


/* 3. Article rows: frosted glass, the poster whole on the left
   ========================================================================== */
.pyp-blog-posts {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pyp-blog-post {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px;
	padding: 8px;
	border: var(--pyp-glass-edge);
	border-radius: 24px;
	background: var(--pyp-glass-bg);
	-webkit-backdrop-filter: var(--pyp-glass-blur);
	backdrop-filter: var(--pyp-glass-blur);
	box-shadow: var(--pyp-glass-shadow);
	transition: transform 450ms var(--pyp-ease-out), box-shadow 450ms var(--pyp-ease-out), background-color 450ms var(--pyp-ease-out);
}

.pyp-blog-post.is-new {
	animation: pyp-blog-in 600ms var(--pyp-ease-out) both;
	animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes pyp-blog-in {
	from { opacity: 0; transform: translateY(16px); }
}

.pyp-blog-post__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 17px;
	background: rgba(242, 246, 241, 0.8);
}

.pyp-blog-post__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain; /* posters are 16:9 with text in them: always the whole picture */
	transition: transform 1000ms var(--pyp-ease-out);
}

.pyp-blog-post__ph { display: grid; place-items: center; height: 100%; color: rgba(29, 112, 68, 0.3); font-size: 40px; }

.pyp-blog-post__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 6px 11px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	background: rgba(29, 112, 68, 0.85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font: 600 10px/1 var(--pyp-font-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

.pyp-blog-post__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 9px;
	min-width: 0;
	padding: 12px 10px 8px;
}

.pyp-blog-post__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font: 500 clamp(18px, 1.4vw, 21px)/1.3 var(--pyp-font-menu);
	letter-spacing: -0.005em;
	color: var(--pyp-forest);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	text-wrap: pretty;
}

.pyp-blog-post__dek {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--pyp-ink-soft);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* Rows from 700px: poster left, words right; the newest article on page one gets a larger poster */
@media (min-width: 700px) {
	.pyp-blog-post {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: 6px;
		align-items: center;
	}

	.pyp-blog-post__body { padding: 10px 18px 10px 14px; }
	.pyp-blog-post.is-lead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
	.pyp-blog-post.is-lead .pyp-blog-post__title { font-size: clamp(21px, 1.9vw, 28px); -webkit-line-clamp: 3; }
}

.pyp-blog-post:active { transform: scale(0.99); }

@media (hover: hover) and (pointer: fine) {
	.pyp-blog-post:hover { transform: translateY(-3px); box-shadow: var(--pyp-glass-shadow-lift); }
	.pyp-blog-post:hover .pyp-blog-post__media img { transform: scale(1.03); }
	.pyp-blog-post:hover .pyp-blog-read .bi { transform: translateX(3px); }
	.pyp-blog-post:hover .pyp-blog-post__title { color: var(--pyp-green); }
}

/* Meta, the stretched title link, the read cue */
.pyp-blog-meta {
	position: relative;
	z-index: 2; /* above the stretched title link, so the category stays clickable */
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0;
	font: 400 12px/1.2 var(--pyp-font-sans);
	color: var(--pyp-ink-soft);
}

.pyp-blog-meta__cat {
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 999px;
	background: rgba(29, 112, 68, 0.1);
	color: var(--pyp-green);
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-blog-meta__cat:hover { background: var(--pyp-green); color: #fff; }
.pyp-blog-meta__info { display: inline-flex; align-items: center; white-space: nowrap; }

.pyp-blog-meta__info > * + *::before {
	content: '';
	display: inline-block;
	width: 3px;
	height: 3px;
	margin: 0 9px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
	vertical-align: middle;
}

.pyp-blog-link { color: inherit; text-decoration: none; }
.pyp-blog-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pyp-blog-link:focus-visible { outline: none; }
.pyp-blog-post:has(.pyp-blog-link:focus-visible) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pyp-green); }

.pyp-blog-read {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-top: 2px;
	font: 500 13.5px/1 var(--pyp-font-menu);
	color: var(--pyp-green);
}

.pyp-blog-read .bi { font-size: 12px; transition: transform 200ms var(--pyp-ease-out); }

/* Button: a forest pill ending in a leaf-green circle */
.pyp-blog-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 46px;
	padding: 0 5px 0 20px;
	border-radius: 999px;
	background: linear-gradient(135deg, #23824f, var(--pyp-forest));
	box-shadow: 0 12px 24px -12px rgba(15, 59, 39, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
	font: 500 15px/1 var(--pyp-font-menu);
	color: #fff;
	text-decoration: none;
	transition: transform 160ms var(--pyp-ease-out), box-shadow 200ms ease;
}

.pyp-blog-btn .bi {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #c8e6a0;
	color: var(--pyp-forest);
	font-size: 15px;
	transition: transform 300ms var(--pyp-ease-out), background-color 200ms ease;
}

.pyp-blog-btn:active { transform: scale(0.97); }
.pyp-blog-btn:focus-visible { outline: 2px solid var(--pyp-green); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
	.pyp-blog-btn:hover { color: #fff; box-shadow: 0 16px 30px -12px rgba(15, 59, 39, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
	.pyp-blog-btn:hover .bi { background: #fff; transform: rotate(-45deg); }
}

.pyp-blog-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 56px 20px;
	border: var(--pyp-glass-edge);
	border-radius: 24px;
	background: var(--pyp-glass-bg);
	-webkit-backdrop-filter: var(--pyp-glass-blur);
	backdrop-filter: var(--pyp-glass-blur);
	box-shadow: var(--pyp-glass-shadow);
	text-align: center;
}

.pyp-blog-empty h3 { margin: 0; font: 500 22px/1.2 var(--pyp-font-menu); color: var(--pyp-forest); }
.pyp-blog-empty p { margin: 0 0 8px; color: var(--pyp-ink-soft); }


/* 4. Filter sidebar: glass panels
   ========================================================================== */
.pyp-blog-panel {
	padding: 18px;
	border: var(--pyp-glass-edge);
	border-radius: 22px;
	background: var(--pyp-glass-bg);
	-webkit-backdrop-filter: var(--pyp-glass-blur);
	backdrop-filter: var(--pyp-glass-blur);
	box-shadow: var(--pyp-glass-shadow);
}

.pyp-blog-panel__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font: 600 11px/1 var(--pyp-font-sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pyp-green);
}

.pyp-blog-panel__title svg { width: 18px; height: 18px; fill: currentColor; }
.pyp-blog-panel__title .bi { font-size: 15px; }

/* Search */
.pyp-blog-search {
	position: relative;
	display: flex;
	align-items: center;
	padding: 6px;
	border-radius: 999px;
}

.pyp-blog-search > i { position: absolute; left: 20px; color: var(--pyp-green); pointer-events: none; }

.pyp-blog-search input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 12px 0 40px;
	border: 0;
	background: transparent;
	color: var(--pyp-ink);
	font-size: 15px;
	outline: 0;
}

.pyp-blog-search input::placeholder { color: var(--pyp-ink-soft); }
.pyp-blog-search input::-webkit-search-cancel-button { display: none; }

.pyp-blog-search button {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--pyp-tile);
	color: #fff;
	transition: transform var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-blog-search button:active { transform: scale(0.94); }
.pyp-blog-search:focus-within { box-shadow: 0 0 0 3px rgba(29, 112, 68, 0.16), var(--pyp-glass-shadow); }

/* Categories: rows with counts */
.pyp-blog-filter--cats ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

.pyp-blog-filter--cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 10px 10px 12px;
	border-radius: 14px;
	color: var(--pyp-forest);
	font: 500 15px/1.2 var(--pyp-font-menu);
	text-decoration: none;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-blog-filter b {
	min-width: 28px;
	padding: 5px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--pyp-green);
	font: 600 11.5px/1 var(--pyp-font-sans);
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.pyp-blog-filter--cats a:hover { background: rgba(255, 255, 255, 0.7); }

.pyp-blog-filter a.is-on {
	background: var(--pyp-tile);
	box-shadow: 0 10px 20px -12px rgba(15, 59, 39, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
	color: #fff;
}

.pyp-blog-filter a.is-on b { background: #c8e6a0; color: var(--pyp-forest); }

/* Sort: a two-way switch */
.pyp-blog-sort {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	box-shadow: inset 0 1px 2px rgba(15, 59, 39, 0.08);
}

.pyp-blog-sort a {
	padding: 10px 8px;
	border-radius: 999px;
	color: var(--pyp-ink-soft);
	font: 500 14px/1 var(--pyp-font-menu);
	text-align: center;
	text-decoration: none;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-blog-sort a:hover { color: var(--pyp-forest); }
.pyp-blog-sort a.is-on { background: #fff; color: var(--pyp-forest); box-shadow: var(--pyp-neu-raised); }

/* Archive years and topics: pills */
.pyp-blog-years,
.pyp-blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.pyp-blog-years a,
.pyp-blog-tags a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	color: var(--pyp-forest);
	font: 500 14px/1 var(--pyp-font-menu);
	text-decoration: none;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-blog-tags a { padding: 8px 12px; font-size: 13px; }
.pyp-blog-years a:hover,
.pyp-blog-tags a:hover { background: #fff; }

/* Invitation: the arch and lotus, a single Sanskrit word, one call to action */
.pyp-blog-invite {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(200, 230, 160, 0.55), transparent 60%),
		var(--pyp-glass-bg);
}

.pyp-blog-invite__mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 48px;
	padding-top: 6px;
	background: linear-gradient(180deg, #2f8a4c 0%, #1d7044 55%, #12512f 100%);
	-webkit-mask: var(--pyp-blog-arch) center / 100% 100% no-repeat;
	mask: var(--pyp-blog-arch) center / 100% 100% no-repeat;
}

.pyp-blog-invite__mark svg { width: 20px; height: 20px; color: #fff; fill: currentColor; }

.pyp-blog-invite__verse {
	margin: 4px 0 0;
	font: italic 400 15px/1 Georgia, 'Times New Roman', serif;
	letter-spacing: 0.04em;
	color: var(--pyp-green);
}

.pyp-blog-invite__title { margin: 0; font: 500 20px/1.25 var(--pyp-font-menu); color: var(--pyp-forest); }
.pyp-blog-invite__text { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--pyp-ink-soft); }

/* Desktop: two columns; the sidebar sticks via Canvas's sticky-sidebar-wrap (no CSS sticky here) */
@media (min-width: 992px) {
	.pyp-blog-layout {
		grid-template-columns: minmax(0, 1fr) clamp(290px, 24vw, 350px);
		column-gap: clamp(28px, 3vw, 48px);
		align-items: start;
	}

	.pyp-blog-side { display: block; }
	.pyp-blog-panel + .pyp-blog-panel { margin-top: 16px; }
}

/* Below 992px the sidebar's panels become separate items: search and the categories
   (a sideways row of pills) above the articles, sort, archive, topics and the invitation below. */
@media (max-width: 991.98px) {
	.pyp-blog-side,
	.pyp-blog-side > .scwStickySidebar { display: contents; }

	.pyp-blog-search { order: 1; }
	.pyp-blog-filter--cats { order: 2; }
	.pyp-blog-main { order: 3; margin-top: 8px; }
	.pyp-blog-filter--sort,
	.pyp-blog-filter--years,
	.pyp-blog-filter--topics,
	.pyp-blog-invite { order: 4; }

	.pyp-blog-filter--cats { padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.pyp-blog-filter--cats .pyp-blog-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

	.pyp-blog-filter--cats ul {
		display: flex;
		gap: 8px;
		margin-inline: calc(-1 * var(--pyp-gutter));
		padding: 2px var(--pyp-gutter) 6px;
		overflow-x: auto;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
	}

	.pyp-blog-filter--cats ul::-webkit-scrollbar { display: none; }
	.pyp-blog-filter--cats li { flex: none; scroll-snap-align: start; }

	.pyp-blog-filter--cats a {
		padding: 6px 6px 6px 14px;
		border: var(--pyp-glass-edge);
		border-radius: 999px;
		background: var(--pyp-glass-bg);
		-webkit-backdrop-filter: var(--pyp-glass-blur);
		backdrop-filter: var(--pyp-glass-blur);
		box-shadow: var(--pyp-glass-shadow);
		white-space: nowrap;
		font-size: 14px;
	}
}


/* 5. Load more + pager (shared listing controls)
   ========================================================================== */
.pyp-pl-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(26px, 3vw, 40px); }
.pyp-pl-more[hidden] { display: none; }

.pyp-pl-more__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 52px;
	padding: 0 6px 0 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #23824f, var(--pyp-forest));
	box-shadow: 0 14px 28px -14px rgba(15, 59, 39, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
	color: #fff;
	font: 500 16px/1 var(--pyp-font-menu);
	cursor: pointer;
	transition: transform 160ms var(--pyp-ease-out), box-shadow 200ms ease;
}

.pyp-pl-more__left {
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font: 600 12px/1 var(--pyp-font-sans);
	font-variant-numeric: tabular-nums;
}

.pyp-pl-more__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #c8e6a0;
	color: var(--pyp-forest);
	font-size: 16px;
	transition: transform 300ms var(--pyp-ease-out), background-color 200ms ease;
}

.pyp-pl-more__spin {
	position: absolute;
	inset: 10px;
	border: 2px solid rgba(15, 59, 39, 0.2);
	border-top-color: var(--pyp-forest);
	border-radius: 50%;
	opacity: 0;
	animation: pyp-blog-spin 700ms linear infinite;
}

.pyp-pl-more__btn:active { transform: scale(0.97); }
.pyp-pl-more__btn:focus-visible { outline: 2px solid var(--pyp-green); outline-offset: 3px; }
.pyp-pl-more__btn.is-busy { cursor: progress; }
.pyp-pl-more__btn.is-busy .pyp-pl-more__icon .bi { opacity: 0; }
.pyp-pl-more__btn.is-busy .pyp-pl-more__spin { opacity: 1; }

@keyframes pyp-blog-spin { to { transform: rotate(360deg); } }

@media (hover: hover) and (pointer: fine) {
	.pyp-pl-more__btn:hover { box-shadow: 0 18px 32px -14px rgba(15, 59, 39, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
	.pyp-pl-more__btn:hover .pyp-pl-more__icon { background: #fff; transform: translateY(2px); }
}

.pyp-pl-more__status { min-height: 1em; margin: 0; font-size: 13px; color: var(--pyp-ink-soft); }

.pyp-pl-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }

/* With JavaScript the pager steps back behind "Load more", but it stays a real, crawlable control */
.pyp-pl-more:not([hidden]) + .pyp-pl-pager { margin-top: 12px; transform: scale(0.94); opacity: 0.85; }

.pyp-pl-pager__pages { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }

.pyp-pl-pager__page,
.pyp-pl-pager__btn,
.pyp-pl-pager__gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	font: 500 14px/1 var(--pyp-font-menu);
	text-decoration: none;
}

.pyp-pl-pager__page,
.pyp-pl-pager__btn {
	border: var(--pyp-glass-edge);
	background: rgba(255, 255, 255, 0.55);
	color: var(--pyp-forest);
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-pl-pager__page:hover,
.pyp-pl-pager__btn:hover { background: #fff; color: var(--pyp-green); }
.pyp-pl-pager__page.is-current { border-color: transparent; background: var(--pyp-forest); color: #fff; }
.pyp-pl-pager__gap { min-width: 20px; padding: 0; color: var(--pyp-ink-soft); }


/* 6. Small screens and reduced motion
   ========================================================================== */
@media (max-width: 767.98px) {
	.pyp-blog-hero::before { background: linear-gradient(180deg, rgba(248, 251, 244, 0.92), rgba(248, 251, 244, 0.75)); }
	.pyp-blog-counters li { padding: 10px; gap: 10px; }
	.pyp-blog-counters__icon { width: 38px; height: 38px; border-radius: 11px; }
	.pyp-blog-counters__icon svg { width: 21px; height: 21px; }
	.pyp-blog-post { border-radius: 20px; padding: 6px; }
	.pyp-blog-post__media { border-radius: 15px; }
	.pyp-pl-pager__btn span { display: none; }
	.pyp-pl-more__btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
	.pyp-blog-post.is-new { animation: none; }
	.pyp-blog-post,
	.pyp-blog-post__media img,
	.pyp-blog-read .bi,
	.pyp-blog-btn .bi,
	.pyp-blog-clear i,
	.pyp-pl-more__icon { transition: none; }
}
