/* Blog home (/blogs/) - mu-plugins/rise-blog-home.php. Colours are the aimo theme-option
   palette (gold #ba8706, amber #9f5d01, light gold #edc66b); headings Lexend, copy Inter. */

body.rise-blog-home #pxl-main { padding: 0; }

.rbh {
	--rbh-gold: #ba8706;
	--rbh-amber: #9f5d01;
	--rbh-light: #edc66b;
	--rbh-ink: #1c160a;
	--rbh-text: #5a5446;
	--rbh-muted: #746c5a;
	--rbh-bg: #f7f4ee;
	--rbh-card: #ffffff;
	--rbh-line: #e8e1d2;
	--rbh-tag-bg: #f5ecd6;
	--rbh-tag-ink: #7a5803;
	--rbh-ease: cubic-bezier(.2, .7, .2, 1);
	background: var(--rbh-bg);
	padding: 96px 0 112px;
	font-family: Inter, 'DM Sans', system-ui, sans-serif;
	color: var(--rbh-text);
}
.rbh *, .rbh *::before, .rbh *::after { box-sizing: border-box; }
.rbh [hidden] { display: none !important; }

.rbh-wrap {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 15px;
}

.rbh-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---- section head ---------------------------------------------------- */
.rbh-head {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: end;
	gap: 24px 64px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--rbh-line);
}
.rbh .rbh-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font: 600 12.5px/1.2 Inter, sans-serif;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rbh-amber);
}
.rbh .rbh-eyebrow::before {
	content: "";
	inline-size: 28px;
	block-size: 2px;
	background: linear-gradient(90deg, var(--rbh-gold), var(--rbh-amber));
	flex: none;
}
.rbh .rbh-head__title {
	margin: 0;
	font: 600 clamp(30px, 3.3vw, 44px)/1.14 Lexend, 'DM Sans', sans-serif;
	letter-spacing: -.02em;
	color: var(--rbh-ink);
	text-wrap: balance;
}
.rbh .rbh-head__lede {
	margin: 0;
	max-width: 52ch;
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--rbh-text);
}

/* ---- topic filter ---------------------------------------------------- */
.rbh-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}
.rbh .rbh-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: auto;
	margin: 0;
	padding: 9px 16px;
	font: 500 14px/1.2 Inter, sans-serif;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rbh-ink);
	background: var(--rbh-card);
	background-image: none;
	border: 1px solid var(--rbh-line);
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .2s, background-color .2s, color .2s;
}
/* The theme paints every focused/hovered <button> amber (button:not(.btn):focus). */
.rbh .rbh-chip:hover,
.rbh .rbh-chip:focus:not([aria-pressed="true"]) { border-color: var(--rbh-gold); color: var(--rbh-ink); background: var(--rbh-card); }
.rbh .rbh-chip:focus-visible { outline: 2px solid var(--rbh-gold); outline-offset: 2px; }
.rbh .rbh-chip[aria-pressed="true"] {
	color: #fff;
	background: var(--rbh-ink);
	border-color: var(--rbh-ink);
	cursor: default;
}
.rbh-chip__n {
	min-width: 22px;
	padding: 2px 7px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	color: var(--rbh-muted);
	background: var(--rbh-bg);
	border-radius: 999px;
}
.rbh-chip[aria-pressed="true"] .rbh-chip__n { color: var(--rbh-ink); background: var(--rbh-light); }

/* ---- shared bits ------------------------------------------------------ */
.rbh-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}
.rbh-tag {
	display: inline-block;
	padding: 5px 11px;
	font: 600 12px/1.2 Inter, sans-serif;
	letter-spacing: .02em;
	color: var(--rbh-tag-ink);
	background: var(--rbh-tag-bg);
	border-radius: 999px;
}
.rbh-badge {
	display: inline-block;
	padding: 5px 11px;
	font: 700 11px/1.2 Inter, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rbh-light);
	background: var(--rbh-ink);
	border-radius: 999px;
}
.rbh-read { margin-left: auto; font-size: 13px; color: var(--rbh-muted); }

/* One link per article: the title's link is stretched over the whole card. */
.rbh .rbh-link { color: inherit; text-decoration: none; }
.rbh .rbh-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}
.rbh .rbh-link:focus-visible::after { outline: 3px solid var(--rbh-gold); outline-offset: 3px; }

.rbh-cover {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--rbh-ease);
}
.rbh-cover--blank {
	display: grid;
	place-items: center;
	font: 600 28px/1 Lexend, sans-serif;
	letter-spacing: .3em;
	color: rgba(255, 255, 255, .85);
	background: linear-gradient(135deg, var(--rbh-gold), var(--rbh-amber));
}

.rbh-arrow { flex: none; transition: transform .3s var(--rbh-ease); }

.rbh .rbh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	font: 600 15px/1.2 Inter, sans-serif;
	color: #fff;
	text-decoration: none;
	background: var(--rbh-ink);
	border: 1px solid transparent;
	border-radius: 999px;
	transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}

/* ---- featured story -------------------------------------------------- */
.rbh-feature {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
	margin-top: 28px;
	background: var(--rbh-card);
	border: 1px solid var(--rbh-line);
	border-radius: 24px;
	overflow: clip;
	box-shadow: 0 1px 2px rgba(61, 47, 11, .05);
	transition: box-shadow .4s var(--rbh-ease), border-color .4s;
}
.rbh-feature__media {
	position: relative;
	min-width: 0;
	background: var(--rbh-ink);
}
/* At least the cover's own 40:21 shape; taller when the text column is. The covers keep
   their subject in the middle of the frame, so a slight side crop never cuts it. */
.rbh-feature__media::before { content: ""; display: block; padding-top: 52.5%; }
.rbh-feature__media .rbh-cover { position: absolute; inset: 0; }
.rbh-feature__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	padding: clamp(28px, 3.6vw, 52px);
}
.rbh .rbh-feature__title {
	margin: 4px 0 0;
	font: 600 clamp(24px, 2.35vw, 33px)/1.2 Lexend, 'DM Sans', sans-serif;
	letter-spacing: -.015em;
	color: var(--rbh-ink);
	text-wrap: balance;
	transition: color .25s;
}
.rbh .rbh-feature__excerpt {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--rbh-text);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	line-clamp: 4;
	overflow: clip;
}
.rbh .rbh-byline {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	color: var(--rbh-muted);
}
.rbh-dot { inline-size: 4px; block-size: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.rbh-feature .rbh-btn { margin-top: 8px; }

/* ---- grid ------------------------------------------------------------ */
.rbh-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 28px;
}
.rbh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--rbh-card);
	border: 1px solid var(--rbh-line);
	border-radius: 20px;
	overflow: clip;
	box-shadow: 0 1px 2px rgba(61, 47, 11, .05);
	transition: transform .4s var(--rbh-ease), box-shadow .4s var(--rbh-ease), border-color .4s;
}
.rbh-card__media {
	aspect-ratio: 40 / 21;
	overflow: clip;
	background: var(--rbh-ink);
}
.rbh-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 22px 24px 20px;
}
.rbh .rbh-card__title {
	margin: 2px 0 0;
	font: 600 19px/1.38 Lexend, 'DM Sans', sans-serif;
	letter-spacing: -.01em;
	color: var(--rbh-ink);
	text-wrap: pretty;
	transition: color .25s;
}
.rbh .rbh-card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--rbh-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	overflow: clip;
}
.rbh-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--rbh-line);
	font-size: 13.5px;
	color: var(--rbh-muted);
}
.rbh-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--rbh-amber);
}

/* ---- hover ----------------------------------------------------------- */
@media (hover: hover) {
	.rbh-card:hover {
		transform: translateY(-4px);
		border-color: #dfcb98;
		box-shadow: 0 22px 44px -22px rgba(61, 47, 11, .38);
	}
	.rbh-feature:hover {
		border-color: #dfcb98;
		box-shadow: 0 28px 60px -30px rgba(61, 47, 11, .42);
	}
	.rbh-card:hover .rbh-cover,
	.rbh-feature:hover .rbh-cover { transform: scale(1.04); }
	.rbh-card:hover .rbh-card__title,
	.rbh-feature:hover .rbh-feature__title { color: var(--rbh-amber); }
	.rbh-card:hover .rbh-arrow,
	.rbh-feature:hover .rbh-arrow,
	.rbh-cta .rbh-btn:hover .rbh-arrow { transform: translateX(4px); }
	.rbh-feature:hover .rbh-btn { background: var(--rbh-amber); }
}

/* ---- pagination (shown only once there are more than 13 posts) ------- */
.rbh-pages {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 48px;
}
.rbh-pages .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	font: 600 15px/1 Inter, sans-serif;
	color: var(--rbh-ink);
	background: var(--rbh-card);
	border: 1px solid var(--rbh-line);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color .2s, color .2s;
}
.rbh-pages a.page-numbers:hover { border-color: var(--rbh-gold); color: var(--rbh-amber); }
.rbh-pages .page-numbers.current { color: #fff; background: var(--rbh-ink); border-color: var(--rbh-ink); }
.rbh-pages .page-numbers.dots { border-color: transparent; background: none; }

/* ---- call to action -------------------------------------------------- */
.rbh-cta {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) auto;
	align-items: center;
	gap: 32px 56px;
	margin-top: 88px;
	padding: clamp(32px, 5vw, 64px);
	color: #d9d1bf;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(237, 198, 107, .20), transparent 55%),
		linear-gradient(135deg, #1d170b, #0b0905);
	border: 1px solid rgba(237, 198, 107, .22);
	border-radius: 28px;
	overflow: clip;
}
.rbh .rbh-eyebrow--light { color: var(--rbh-light); }
.rbh .rbh-eyebrow--light::before { background: var(--rbh-light); }
.rbh .rbh-cta__title {
	margin: 0;
	font: 600 clamp(26px, 2.7vw, 38px)/1.18 Lexend, 'DM Sans', sans-serif;
	letter-spacing: -.02em;
	color: #fff;
	text-wrap: balance;
}
.rbh .rbh-cta__copy {
	margin: 14px 0 0;
	max-width: 56ch;
	font-size: 16.5px;
	line-height: 1.7;
	color: #d9d1bf;
}
.rbh-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 260px;
}
.rbh .rbh-btn--gold {
	color: var(--rbh-ink);
	background: linear-gradient(90deg, #f1d488, #d9a83a);
}
.rbh .rbh-btn--gold:hover { color: var(--rbh-ink); box-shadow: 0 10px 30px -10px rgba(237, 198, 107, .6); }
.rbh .rbh-btn--ghost {
	color: #fff;
	background: transparent;
	border-color: rgba(255, 255, 255, .28);
}
.rbh .rbh-btn--ghost:hover { color: var(--rbh-light); border-color: var(--rbh-light); }
.rbh .rbh-btn:focus-visible { outline: 2px solid var(--rbh-light); outline-offset: 3px; }

.rbh-empty { margin: 0; font-size: 17px; text-align: center; }

/* ---- breakpoints ----------------------------------------------------- */
@media (max-width: 1199px) {
	.rbh-grid { gap: 24px; }
	.rbh-card__body { padding: 20px 20px 18px; }
}
@media (max-width: 991px) {
	.rbh { padding: 72px 0 88px; }
	.rbh-head { grid-template-columns: 1fr; }
	.rbh-feature { grid-template-columns: 1fr; }
	.rbh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rbh-cta { grid-template-columns: 1fr; margin-top: 64px; }
	.rbh-cta__actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 640px) {
	.rbh { padding: 56px 0 72px; }
	.rbh-wrap { padding-inline: 16px; }
	.rbh-head { padding-bottom: 24px; }
	.rbh .rbh-head__lede { font-size: 15.5px; }
	.rbh-filter { gap: 8px; margin-top: 22px; }
	.rbh .rbh-chip { padding: 8px 13px; font-size: 13.5px; }
	.rbh-feature { border-radius: 20px; }
	.rbh-feature__body { padding: 24px 22px 26px; gap: 14px; }
	.rbh .rbh-feature__excerpt { font-size: 15.5px; -webkit-line-clamp: 3; line-clamp: 3; }
	.rbh-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
	.rbh-cta { border-radius: 22px; margin-top: 56px; }
	.rbh-cta__actions { flex-direction: column; }
	.rbh-cta__actions .rbh-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.rbh-card, .rbh-feature, .rbh-cover, .rbh-arrow, .rbh .rbh-btn { transition: none; }
	.rbh-card:hover { transform: none; }
	.rbh-card:hover .rbh-cover, .rbh-feature:hover .rbh-cover { transform: none; }
}
