/**
 * Native Blog topic hub — Aug-15 composition bound to real WordPress terms,
 * published posts, the category main query and native pagination.
 */

.pps-main--topic-hub {
	overflow: clip;
}

/* Topic-local width only: 1304 minus the shared 32px gutters = 1240px. */
.pps-main--topic-hub .wrap {
	max-width: 1304px;
}

.pps-topic-hub__breadcrumb {
	padding-top: clamp(18px, 3vw, 26px);
}

.pps-topic-hub__breadcrumb ol {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--stone);
}

.pps-topic-hub__breadcrumb a {
	display: inline;
	min-height: 0;
	color: var(--gold-deep);
	text-decoration: none;
}

.pps-topic-hub__breadcrumb span[aria-current="page"] {
	color: var(--ink);
}

.pps-topic-hub__hero {
	max-width: 62ch;
	padding-top: clamp(20px, 3vw, 32px);
}

.pps-topic-hub__devanagari {
	font-family: "Noto Serif Devanagari", serif;
	font-size: clamp(19px, 2.3vw, 26px);
	font-weight: 400;
	line-height: 1.35;
	color: var(--gold-deep);
}

.pps-topic-hub__hero h1 {
	margin: 6px 0 0;
	font-size: clamp(32px, 4.8vw, 56px) !important;
	font-weight: 500;
	line-height: 1.04 !important;
	letter-spacing: -0.025em !important;
	text-wrap: balance;
}

.pps-topic-hub__hero p {
	margin: 14px 0 0;
	font-size: clamp(16.5px, 1.9vw, 19px);
	line-height: 1.7;
	color: var(--ink-soft);
	text-wrap: pretty;
}

.pps-topic-hub__topics {
	padding-top: clamp(20px, 3vw, 28px);
}

.pps-topic-hub__topics-label,
.pps-topic-hub__start-label {
	margin-bottom: 8px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--stone);
}

.pps-topic-hub__chip-row {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding-bottom: 2px;
	scrollbar-width: none;
}

.pps-topic-hub__chip-row::-webkit-scrollbar {
	display: none;
}

.pps-topic-hub__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	flex: 0 0 auto;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--paper);
	color: var(--ink);
	font-size: 13.5px;
	line-height: 1.2;
	white-space: nowrap;
	transition: border-color .15s, background .15s, color .15s;
}

.pps-topic-hub__chip:hover {
	border-color: var(--gold);
	background: var(--ivory-2);
	color: var(--ink);
}

.pps-topic-hub__chip.is-current,
.pps-topic-hub__chip[aria-current="page"] {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.pps-topic-hub__start,
.pps-topic-hub__articles {
	padding-top: clamp(26px, 4vw, 40px);
}

.pps-topic-hub__start-box {
	padding: clamp(22px, 3.5vw, 34px);
	border-radius: 22px;
	background: #efe7d6;
}

.pps-topic-hub__start-label {
	margin-bottom: 0;
	letter-spacing: .16em;
	color: var(--gold-deep);
}

.pps-topic-hub__start h2 {
	margin: 10px 0 0;
	font-size: clamp(23px, 2.9vw, 32px) !important;
	font-weight: 500;
	line-height: 1.15 !important;
	letter-spacing: -.015em !important;
}

.pps-topic-hub__start ol {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.pps-topic-hub__start li {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 13px;
	align-items: baseline;
}

.pps-topic-hub__start-number {
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--gold-deep);
}

.pps-topic-hub__start li > span:last-child {
	min-width: 0;
}

.pps-topic-hub__start a {
	font-size: 16.5px;
	line-height: 1.45;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pps-topic-hub__start a + span {
	display: block;
	margin-top: 3px;
	font-size: 14px;
	line-height: 1.62;
	color: var(--ink-soft);
}

.pps-topic-hub__articles {
	padding-bottom: 0;
}

.pps-topic-hub__section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.pps-topic-hub__section-heading h2 {
	margin: 0;
	font-size: clamp(23px, 2.9vw, 32px) !important;
	font-weight: 500;
	line-height: 1.15 !important;
	letter-spacing: -.015em !important;
}

.pps-topic-hub__section-heading > p {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--stone);
	white-space: nowrap;
}

.pps-topic-hub__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.pps-topic-card {
	min-width: 0;
}

.pps-topic-card__link {
	display: flex;
	height: 100%;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--paper);
	color: inherit;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.pps-topic-card__link:hover {
	border-color: color-mix(in srgb, var(--gold) 50%, transparent);
	box-shadow: 0 16px 34px -22px rgba(26, 22, 19, .4);
	transform: translateY(-2px);
}

.pps-topic-card__media {
	position: relative;
	display: flex;
	height: 150px;
	overflow: hidden;
	align-items: center;
	justify-content: center;
	color: color-mix(in srgb, var(--ink) 28%, transparent);
}

.pps-topic-card__media--tone-1 { background: linear-gradient(150deg, #e9dfc9, #cdb68c); }
.pps-topic-card__media--tone-2 { background: linear-gradient(150deg, #e4d9c0, #c2ac83); }
.pps-topic-card__media--tone-3 { background: linear-gradient(150deg, #ede3cd, #d3be95); }
.pps-topic-card__media--tone-4 { background: linear-gradient(150deg, #e6dbc4, #c9b287); }

.pps-topic-card__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pps-topic-card__motif {
	display: inline-flex;
}

.pps-topic-card__media-label {
	position: absolute;
	right: 12px;
	bottom: 9px;
	left: 11px;
	width: fit-content;
	max-width: calc(100% - 23px);
	overflow: hidden;
	padding: 4px 8px;
	border-radius: var(--r-pill);
	background: rgba(251, 247, 238, .9);
	color: rgba(26, 22, 19, .62);
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.25;
	letter-spacing: .09em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.pps-topic-card__body {
	display: flex;
	min-width: 0;
	padding: 20px 22px;
	flex: 1;
	flex-direction: column;
}

.pps-topic-card__topic {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold-deep);
}

.pps-topic-card__title {
	margin-top: 7px;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
	text-wrap: pretty;
}

.pps-topic-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--ink-soft);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.pps-topic-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: auto;
	padding-top: 14px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--stone);
}

.pps-main--topic-hub .navigation.pagination {
	margin: clamp(30px, 5vw, 48px) 0 0;
}

.pps-main--topic-hub .navigation.pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.pps-main--topic-hub .navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 13px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--paper);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--ink-soft);
}

.pps-main--topic-hub .navigation.pagination .page-numbers.current {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.pps-main--topic-hub .navigation.pagination .page-numbers:hover {
	border-color: var(--gold);
	color: var(--ink);
}

.pps-topic-hub__empty {
	max-width: 680px;
	padding: clamp(28px, 5vw, 46px);
	border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
	border-radius: 20px;
	background: var(--paper);
}

.pps-topic-hub__empty h2 {
	font-size: clamp(26px, 3vw, 34px) !important;
	line-height: 1.15 !important;
	letter-spacing: -.015em !important;
}

.pps-topic-hub__empty p {
	margin-top: 10px;
	line-height: 1.7;
	color: var(--ink-soft);
}

.pps-topic-hub__empty .btn {
	margin-top: 18px;
}

.pps-topic-hub__related {
	padding-top: clamp(32px, 5vw, 56px);
}

.pps-topic-hub__related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(22px, 3.5vw, 40px);
}

.pps-topic-hub__related h2 {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 12px !important;
	font-weight: 400;
	line-height: 1.4 !important;
	letter-spacing: .16em !important;
	text-transform: uppercase;
	color: var(--gold-deep);
}

.pps-topic-hub__related ul {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	font-size: 15.5px;
}

.pps-topic-hub__related a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
}

.pps-topic-hub__other-topics {
	padding: clamp(32px, 5vw, 56px) 0 clamp(44px, 7vw, 80px);
}

.pps-topic-hub__other-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.pps-topic-hub__other-heading h2 {
	margin: 0;
	font-size: clamp(23px, 2.9vw, 32px) !important;
	font-weight: 500;
	line-height: 1.15 !important;
	letter-spacing: -.02em !important;
}

.pps-topic-hub__other-heading > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 14.5px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pps-topic-hub__other-topics .pps-topic-hub__chip-row {
	margin-top: 14px;
}

.pps-topic-hub__breadcrumb a:focus-visible,
.pps-topic-hub__chip:focus-visible,
.pps-topic-hub__start a:focus-visible,
.pps-topic-card__link:focus-visible,
.pps-topic-hub__related a:focus-visible,
.pps-topic-hub__other-heading > a:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

@media (max-width: 980px) {
	.pps-topic-hub__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.pps-topic-hub__start,
	.pps-topic-hub__articles {
		padding-top: 26px !important;
		padding-bottom: 0 !important;
	}

	.pps-topic-hub__related {
		padding-top: 32px !important;
		padding-bottom: 0 !important;
	}

	.pps-topic-hub__related-grid > section {
		padding: 0 !important;
	}

	.pps-topic-hub__other-topics {
		padding-top: 32px !important;
		padding-bottom: 44px !important;
	}

	.pps-topic-hub__section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.pps-topic-hub__related-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.pps-topic-hub__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 599px) {
	.pps-main--topic-hub .wrap {
		padding-inline: 16px !important;
	}
}

@media (max-width: 420px) {
	.pps-topic-card__body {
		padding: 18px;
	}

	.pps-main--topic-hub .navigation.pagination .page-numbers:not(.prev):not(.next):not(.current) {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pps-topic-card__link,
	.pps-topic-hub__chip {
		transition: none;
	}

	.pps-topic-card__link:hover {
		transform: none;
	}
}
